Settings, removed leaf and tiktok proxy
This commit is contained in:
parent
de4e726e1f
commit
042e36fffc
15 changed files with 370 additions and 663 deletions
24
views/about.blade.php
Normal file
24
views/about.blade.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>About - TikTok</title>
|
||||
<link rel="stylesheet" href="https://unpkg.com/bulmaswatch/superhero/bulmaswatch.min.css">
|
||||
</head>
|
||||
<body>
|
||||
@include('navbar')
|
||||
<section class="hero is-primary">
|
||||
<div class="hero-body">
|
||||
<div class="container">
|
||||
<p class="title">About</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="section">
|
||||
<p>TODO</p>
|
||||
</section>
|
||||
@include('footer')
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,52 +1,53 @@
|
|||
<section class="section">
|
||||
<div class="columns is-multiline is-vcentered">
|
||||
@foreach ($feed->items as $item)
|
||||
<div class="column is-one-quarter">
|
||||
<a id="{{$item->id}}" href="#{{$item->id}}" class="clickable-img" data-video_url="{{ $item->video->playAddr }}"
|
||||
data-video_download="{{ $item->video->downloadAddr }}"
|
||||
data-desc="{{ $item->desc }}"
|
||||
data-video_width="{{ $item->video->width }}"
|
||||
data-video_height="{{ $item->video->height }}"
|
||||
data-music_title="{{ $item->music->title }}"
|
||||
data-music_url="{{ $item->music->playUrl }}">
|
||||
<img src="{{ $item->video->originCover }}"/>
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
<div class="buttons">
|
||||
@isset ($_GET['cursor'])
|
||||
<a class="button is-danger" href="?cursor=0">First</a>
|
||||
@endisset
|
||||
<a class="button is-danger" href="javascript:history.back()">Back</a>
|
||||
@if ($feed->hasMore)
|
||||
<a class="button is-success" href="?cursor={{ $feed->maxCursor }}">Next</a>
|
||||
@else
|
||||
<a class="button is-success" disabled title="No more videos available">Next</a>
|
||||
@endif
|
||||
<div class="columns is-multiline is-vcentered">
|
||||
@foreach ($feed->items as $item)
|
||||
<div class="column is-one-quarter">
|
||||
<a id="{{$item->id}}" href="#{{$item->id}}" class="clickable-img"
|
||||
data-video_url="./stream?url={{ $item->video->playAddr }}"
|
||||
data-video_download="./stream?url={{urlencode($item->video->downloadAddr)}}"
|
||||
data-desc="{{ $item->desc }}"
|
||||
data-video_width="{{ $item->video->width }}"
|
||||
data-video_height="{{ $item->video->height }}"
|
||||
data-music_title="{{ $item->music->title }}"
|
||||
data-music_url="./audios?url={{ urlencode($item->music->playUrl) }}">
|
||||
<img loading="lazy" src="./images?url={{ urlencode($item->video->originCover) }}"/>
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
<div class="buttons">
|
||||
@isset ($_GET['cursor'])
|
||||
<a class="button is-danger" href="?cursor=0">First</a>
|
||||
@endisset
|
||||
<a class="button is-danger" href="javascript:history.back()">Back</a>
|
||||
@if ($feed->hasMore)
|
||||
<a class="button is-success" href="?cursor={{ $feed->maxCursor }}">Next</a>
|
||||
@else
|
||||
<a class="button is-success" disabled title="No more videos available">Next</a>
|
||||
@endif
|
||||
</div>
|
||||
</section>
|
||||
<div id="modal" class="modal">
|
||||
<div id="modal-background" class="modal-background"></div>
|
||||
<div class="modal-card">
|
||||
<header class="modal-card-head">
|
||||
<button id="modal-close" class="delete" aria-label="close"></button>
|
||||
<p class="modal-card-title" id="item_title"></p>
|
||||
</header>
|
||||
<section class="modal-card-body has-text-centered" style="overflow: hidden;">
|
||||
<video id="video" controls preload="none"></video>
|
||||
</section>
|
||||
<footer class="modal-card-foot has-text-centered">
|
||||
<div class="container">
|
||||
<a id="download_button" target="_blank" class="button is-info" href="" download>Download</a>
|
||||
<p id="audio_title"></p>
|
||||
<audio id="audio" controls></audio>
|
||||
<div class="buttons">
|
||||
<button id="back-button" class="button is-danger">Back</button>
|
||||
<button id="next-button" class="button is-success">Next</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<div id="modal-background" class="modal-background"></div>
|
||||
<div class="modal-card">
|
||||
<header class="modal-card-head">
|
||||
<button id="modal-close" class="delete" aria-label="close"></button>
|
||||
<p class="modal-card-title" id="item_title"></p>
|
||||
</header>
|
||||
<section class="modal-card-body has-text-centered" style="overflow: hidden;">
|
||||
<video id="video" controls preload="none"></video>
|
||||
</section>
|
||||
<footer class="modal-card-foot has-text-centered">
|
||||
<div class="container">
|
||||
<a id="download_button" target="_blank" class="button is-info" href="" download>Download</a>
|
||||
<p id="audio_title"></p>
|
||||
<audio id="audio" controls preload="none"></audio>
|
||||
<div class="buttons">
|
||||
<button id="back-button" class="button is-danger">Back</button>
|
||||
<button id="next-button" class="button is-success">Next</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
<script src="../scripts/feed.js"></script>
|
||||
|
|
|
|||
7
views/footer.blade.php
Normal file
7
views/footer.blade.php
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<footer class="footer">
|
||||
<div class="content">
|
||||
<p class="has-text-centered">
|
||||
Made with <span style="color: #e25555;">♥</span> in <a href="https://github.com/pablouser1/tiktok-viewer">Github</a>
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
@ -10,7 +10,8 @@
|
|||
</head>
|
||||
|
||||
<body>
|
||||
<section class="hero is-fullheight">
|
||||
@include('navbar')
|
||||
<section class="hero is-fullheight-with-navbar">
|
||||
<div class="hero-body">
|
||||
<div class="container has-text-centered">
|
||||
<p class="title">Welcome to TikTok Viewer!</p>
|
||||
|
|
@ -30,6 +31,10 @@
|
|||
<p>Trending:</p>
|
||||
<a class="button is-success" href="./trending">Go</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hero-foot">
|
||||
@include('footer')
|
||||
</div>
|
||||
</section>
|
||||
<script>
|
||||
const goToUser = (e) => {
|
||||
17
views/navbar.blade.php
Normal file
17
views/navbar.blade.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<nav class="navbar" role="navigation" aria-label="main navigation">
|
||||
<div class="navbar-brand">
|
||||
<a role="button" id="navbar-burger" class="navbar-burger" aria-label="menu" aria-expanded="false">
|
||||
<span aria-hidden="true"></span>
|
||||
<span aria-hidden="true"></span>
|
||||
<span aria-hidden="true"></span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div id="navbar-menu" class="navbar-menu">
|
||||
<div class="navbar-start">
|
||||
<a href="./home" class="navbar-item">Home</a>
|
||||
<a href="./settings" class="navbar-item">Settings</a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<script src="./scripts/navbar.js"></script>
|
||||
40
views/settings.blade.php
Normal file
40
views/settings.blade.php
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Settings - TikTok</title>
|
||||
<link rel="stylesheet" href="https://unpkg.com/bulmaswatch/superhero/bulmaswatch.min.css">
|
||||
</head>
|
||||
<body>
|
||||
@include('navbar')
|
||||
<section class="hero is-primary">
|
||||
<div class="hero-body">
|
||||
<div class="container">
|
||||
<p class="title">Settings</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="section">
|
||||
<!-- Proxy settings -->
|
||||
<p class="title">Proxy</p>
|
||||
<form action="./settings" method="POST">
|
||||
@foreach ( $proxy_elements as $element)
|
||||
<div class="field">
|
||||
<label class="label">{{ $element }}</label>
|
||||
<div class="control">
|
||||
<input name="{{ $element }}" class="input" value="{{ isset($_COOKIE[$element]) ? $_COOKIE[$element] : ''}}" required />
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
<div class="field">
|
||||
<div class="control">
|
||||
<button class="button is-success" type="submit">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
@include('footer')
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,21 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Trending - TikTok</title>
|
||||
<link rel="stylesheet" href="https://unpkg.com/bulmaswatch/superhero/bulmaswatch.min.css">
|
||||
<link rel="stylesheet" href="../styles/feed.css">
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Trending - TikTok</title>
|
||||
<link rel="stylesheet" href="https://unpkg.com/bulmaswatch/superhero/bulmaswatch.min.css">
|
||||
<link rel="stylesheet" href="../styles/feed.css">
|
||||
</head>
|
||||
<body>
|
||||
<section class="hero is-primary">
|
||||
<div class="hero-body">
|
||||
<div class="container">
|
||||
<p class="title">Trending page</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@include('feed')
|
||||
<section class="hero is-primary">
|
||||
<div class="hero-body">
|
||||
<div class="container">
|
||||
<p class="title">Trending page</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@include('navbar')
|
||||
@include('feed')
|
||||
@include('footer')
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -1,22 +1,24 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>{{ $feed->info->detail->user->nickname }} - TikTok</title>
|
||||
<link rel="stylesheet" href="https://unpkg.com/bulmaswatch/superhero/bulmaswatch.min.css">
|
||||
<link rel="stylesheet" href="../styles/feed.css">
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>{{ $feed->info->detail->user->nickname }} - TikTok</title>
|
||||
<link rel="stylesheet" href="https://unpkg.com/bulmaswatch/superhero/bulmaswatch.min.css">
|
||||
<link rel="stylesheet" href="../styles/feed.css">
|
||||
</head>
|
||||
<body>
|
||||
<section class="hero is-primary">
|
||||
<div class="hero-body">
|
||||
<div class="container">
|
||||
<p class="title">{{ $feed->info->detail->user->uniqueId }}'s profile</p>
|
||||
<p class="subtitle">{{ $feed->info->detail->user->signature }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@include('feed')
|
||||
@include('navbar')
|
||||
<section class="hero is-primary">
|
||||
<div class="hero-body">
|
||||
<div class="container">
|
||||
<p class="title">{{ $feed->info->detail->user->uniqueId }}'s profile</p>
|
||||
<p class="subtitle">{{ $feed->info->detail->user->signature }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@include('feed')
|
||||
@include('footer')
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue