Compare commits

...

42 Commits

Author SHA1 Message Date
w33b f8022b3f18 Use CSS classes to hide n-th elements instead of JS 2026-05-27 17:12:13 +02:00
w33b 57d1ec34c3 Show two covers side by side on mobile 2026-05-26 16:14:29 +02:00
w33b 81639aaabf Use laravel task scheduler 2026-05-26 15:17:57 +02:00
w33b 5dc1bff60c Add an indicator for v2 releases in the download popup #7 2026-05-26 14:36:21 +02:00
w33b 2f3f0edc30 Add ability to edit hentai title & Update design of edit modal 2026-05-26 14:18:48 +02:00
w33b a71b2976af Add ability for mods to edit episode & Refactor code 2026-05-26 13:45:13 +02:00
w33b 2c016274ab Update packages 2026-05-26 12:06:54 +02:00
w33b 5ba0a55316 Update series page design & Refactor 2026-05-26 12:01:36 +02:00
w33b a6fe34a0d1 Reduce queries on home page by eager loading into cache 2026-05-24 22:15:16 +02:00
w33b bb53e06c69 Smaller style fix 2026-05-24 21:39:46 +02:00
w33b 5cae5dc658 Fix more responsiveness issues 2026-05-24 19:39:20 +02:00
w33b 356d07365f Update episode card design 2026-05-24 19:38:50 +02:00
w33b 3574d20fae Update hentai info design & Remove livewire view count 2026-05-24 15:52:22 +02:00
w33b 9fc9e8ed10 Update comments design 2026-05-24 14:49:46 +02:00
w33b f5c706b587 Fix smaller design issues 2026-05-24 12:14:19 +02:00
w33b cbea71d9ae Make home more responsive depending on screen width 2026-05-24 12:06:44 +02:00
w33b 64a621173c Fix hover to preview once and for all 2026-05-23 14:48:25 +02:00
w33b 839779b82e Update cover/thumbnail design 2026-05-23 14:43:35 +02:00
w33b 112cf9433e Make background darker 2026-05-23 14:00:11 +02:00
w33b 26a6500fca Remove unused modals 2026-05-23 11:46:30 +02:00
w33b d8cf70e747 Update more modal designs 2026-05-23 11:46:20 +02:00
w33b 0d4545c2ab Update language selector modal design 2026-05-23 11:00:18 +02:00
w33b 900103e1c2 Fix setting locale for guest users 2026-05-23 10:59:30 +02:00
w33b d4c90976f8 Fix janky loading icon & weird offset of modal 2026-05-23 10:29:07 +02:00
w33b 72263127df Update filter modal designs & Refactor code 2026-05-23 00:01:02 +02:00
w33b 6d3de59929 Update search filter design 2026-05-22 23:20:00 +02:00
w33b ddb1bc2d14 Stream page sidebar fix lightmode 2026-05-22 23:13:00 +02:00
w33b 5f3874a233 Stream page sidebar make padding consistent 2026-05-22 23:10:41 +02:00
w33b ba3650899e Refactor home template 2026-05-22 23:07:19 +02:00
w33b 904604fcfb Update hover color of tabs on home page 2026-05-22 22:44:38 +02:00
w33b b7b34b503c Update categories design 2026-05-22 22:43:57 +02:00
w33b 4928733383 Refactor by using app layout 2026-05-22 22:34:03 +02:00
w33b 6340302ac6 Update Cover & Thumbnail Design & Refactor 2026-05-22 22:16:31 +02:00
w33b c1829ba7bd Fix offset of thumbnail as guest 2026-05-22 20:59:45 +02:00
w33b 0b155bbb80 Update new comments design 2026-05-22 20:34:06 +02:00
w33b 9f959efa14 Update footer design 2026-05-22 20:31:38 +02:00
w33b 38e3346dc3 Update stats design 2026-05-22 19:41:07 +02:00
w33b 09c08f3fea Add comment restore button 2026-05-06 21:15:15 +02:00
w33b 75f631c3e6 Add MogLog System 2026-05-06 21:08:51 +02:00
w33b fdf26604f3 Add ability to delete comments by moderators 2026-05-06 19:02:50 +02:00
w33b 59cb39ca77 Fix remove role function 2026-05-06 16:27:42 +02:00
w33b 62647be75c Fix active status not showing immediatly (livewire) 2026-05-05 16:02:00 +02:00
89 changed files with 3255 additions and 2815 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ class GenerateSitemap extends Command
* *
* @var string * @var string
*/ */
protected $signature = 'sitemap:generate'; protected $signature = 'app:generate-sitemap';
/** /**
* The console command description. * The console command description.
@@ -8,6 +8,7 @@ use Illuminate\Console\Command;
use Illuminate\Support\Facades\Crypt; use Illuminate\Support\Facades\Crypt;
use Illuminate\Support\Facades\Http; use Illuminate\Support\Facades\Http;
use Illuminate\Contracts\Encryption\DecryptException; use Illuminate\Contracts\Encryption\DecryptException;
use Illuminate\Support\Facades\Log;
class SyncSubscriptionKeys extends Command class SyncSubscriptionKeys extends Command
{ {
@@ -83,8 +84,11 @@ class SyncSubscriptionKeys extends Command
->whereNotIn('subscription_key', $activeKeys) ->whereNotIn('subscription_key', $activeKeys)
->chunk(100, function ($users) { ->chunk(100, function ($users) {
foreach($users as $user) { foreach($users as $user) {
if ($user->hasRole(UserRole::SUPPORTER)) {
Log::info("Removed Supporter Role from {$user->name}");
$user->removeRole(UserRole::SUPPORTER); $user->removeRole(UserRole::SUPPORTER);
} }
}
}); });
} }
@@ -95,8 +99,11 @@ class SyncSubscriptionKeys extends Command
->whereIn('subscription_key', $activeKeys) ->whereIn('subscription_key', $activeKeys)
->chunk(100, function ($users) { ->chunk(100, function ($users) {
foreach($users as $user) { foreach($users as $user) {
if (!$user->hasRole(UserRole::SUPPORTER)) {
Log::info("Added Supporter Role for {$user->name}");
$user->addRole(UserRole::SUPPORTER); $user->addRole(UserRole::SUPPORTER);
} }
}
}); });
} }
} }
+1 -1
View File
@@ -128,7 +128,7 @@ class CacheHelper
public static function getLatestComments() public static function getLatestComments()
{ {
return Cache::remember('latest_comments', now()->addMinutes(60), function () { return Cache::remember('latest_comments', now()->addMinutes(60), function () {
return Comment::latest()->take(10)->get(); return Comment::with('user')->latest()->take(10)->get();
}); });
} }
} }
+102
View File
@@ -0,0 +1,102 @@
<?php
namespace App\Helpers;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Cache;
use Conner\Tagging\Model\Tag;
class FilterCategories
{
public static function getFilterCategories()
{
$taglist = Cache::remember(
'searchtags',
300,
fn () => Tag::where('count', '>', 0)
->orderBy('slug')
->get(),
);
$appearances = [
'Loli',
'Shota',
'Milf',
'Futanari',
'Big Boobs',
'Small Boobs',
'Dark Skin',
'Cosplay',
'Elf',
'Maid',
'Nekomimi',
'Nurse',
'School Girl',
'Succubus',
'Teacher',
'Trap',
'Pregnant',
'Glasses',
'Swim Suit',
'Ugly Bastard',
'Monster',
];
$types = [
'3D',
'4K',
'48Fps',
'4K 48Fps',
'Censored',
'Uncensored',
'Comedy',
'Fantasy',
'Horror',
'Vanilla',
'Ntr',
'Pov',
'Filmed',
'X-Ray',
];
$actions = [
'Anal',
'Bdsm',
'Facial',
'Blow Job',
'Boob Job',
'Foot Job',
'Hand Job',
'Rimjob',
'Inflation',
'Masturbation',
'Public Sex',
'Rape',
'Reverse Rape',
'Threesome',
'Orgy',
'Gangbang',
];
$excluded = [...$appearances, ...$types, ...$actions];
$categories = [
'Genres' => $taglist
->reject(fn ($tag) => in_array($tag->name, $excluded))
->pluck('name')
->toArray(),
'Actions' => $actions,
'Appearance' => collect($appearances)
->reject(function ($tag) {
return Auth::guest() && in_array($tag, ['Loli', 'Shota']);
})
->toArray(),
'Types' => $types,
];
return $categories;
}
}
@@ -2,6 +2,7 @@
namespace App\Http\Controllers\Admin; namespace App\Http\Controllers\Admin;
use App\Enums\UserRole;
use App\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use App\Jobs\DiscordReleaseNotification; use App\Jobs\DiscordReleaseNotification;
use App\Models\Episode; use App\Models\Episode;
@@ -63,6 +64,17 @@ class EpisodeController extends Controller
public function update(Request $request): RedirectResponse public function update(Request $request): RedirectResponse
{ {
$episode = Episode::with('hentai')->where('id', $request->input('episode_id'))->firstOrFail(); $episode = Episode::with('hentai')->where('id', $request->input('episode_id'))->firstOrFail();
if ($request->user()->hasRole(UserRole::MODERATOR)) {
$this->episodeService->updateEpisodeModerator($request, $episode->id);
cache()->flush();
return to_route('hentai.index', [
'title' => $episode->slug,
]);
}
$studio = $this->episodeService->getOrCreateStudio(json_decode($request->input('studio'))[0]->value); $studio = $this->episodeService->getOrCreateStudio(json_decode($request->input('studio'))[0]->value);
$oldinterpolated = $episode->interpolated; $oldinterpolated = $episode->interpolated;
+4 -2
View File
@@ -17,11 +17,13 @@ class IsModerator
*/ */
public function handle(Request $request, Closure $next): Response public function handle(Request $request, Closure $next): Response
{ {
if (Auth::check() && Auth::user()->hasRole(UserRole::MODERATOR)) { if (Auth::check() && (
Auth::user()->hasRole(UserRole::MODERATOR) ||
Auth::user()->hasRole(UserRole::ADMINISTRATOR))) {
return $next($request); return $next($request);
} }
session()->flash('error_msg', 'This resource is restricted to Administrators!'); session()->flash('error_msg', 'This resource is restricted to Moderators!');
return redirect()->route('home.index'); return redirect()->route('home.index');
} }
+3 -1
View File
@@ -25,7 +25,9 @@ class SetLocale
} }
// 2. Session (guest or user override) // 2. Session (guest or user override)
if (session()->has('locale') && in_array($request->language, config('app.supported_locales'), true)) { if ($request->session()->has('locale') &&
in_array(session('locale'), config('app.supported_locales'), true)) {
App::setLocale(session('locale')); App::setLocale(session('locale'));
return $next($request); return $next($request);
+37 -1
View File
@@ -2,7 +2,9 @@
namespace App\Livewire; namespace App\Livewire;
use App\Enums\UserRole;
use App\Models\Episode; use App\Models\Episode;
use App\Models\ModLog;
use App\Models\User; use App\Models\User;
use App\Notifications\CommentNotification; use App\Notifications\CommentNotification;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests; use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
@@ -43,7 +45,7 @@ class Comment extends Component
'replyState.body' => 'reply', 'replyState.body' => 'reply',
]; ];
public function updatedIsEditing($isEditing) public function updatedIsEditing(bool $isEditing)
{ {
if (! $isEditing) { if (! $isEditing) {
return; return;
@@ -67,11 +69,45 @@ class Comment extends Component
{ {
$this->authorize('destroy', $this->comment); $this->authorize('destroy', $this->comment);
$user = Auth::user();
if ($user->hasRole(UserRole::ADMINISTRATOR) || $user->hasRole(UserRole::MODERATOR)) {
// Log to ModLog
ModLog::create([
'moderator' => $user->name,
'data' => "Deleted comment {$this->comment->id} written by {$this->comment->user->id} with contents: {$this->comment->body}",
]);
$this->comment->deleted_by_moderator_id = $user->id;
$this->comment->save();
$this->dispatch('refresh');
return;
}
$this->comment->delete(); $this->comment->delete();
$this->dispatch('refresh'); $this->dispatch('refresh');
} }
public function restoreComment()
{
$this->authorize('restore', $this->comment);
$user = Auth::user();
if ($user->hasRole(UserRole::ADMINISTRATOR) || $user->hasRole(UserRole::MODERATOR)) {
// Log to ModLog
ModLog::create([
'moderator' => $user->name,
'data' => "Restored comment {$this->comment->id} written by {$this->comment->user->id} with contents: {$this->comment->body}",
]);
$this->comment->deleted_by_moderator_id = null;
$this->comment->save();
$this->dispatch('refresh');
}
}
public function postReply() public function postReply()
{ {
if (! ($this->comment->depth() < 2)) { if (! ($this->comment->depth() < 2)) {
+10
View File
@@ -23,11 +23,21 @@ class DownloadButton extends Component
public $fileExtension = 'HEVC'; public $fileExtension = 'HEVC';
public $version = '';
public function mount() public function mount()
{ {
if (str_contains($this->downloadUrl, 'AV1')) { if (str_contains($this->downloadUrl, 'AV1')) {
$this->fileExtension = 'AV1'; $this->fileExtension = 'AV1';
} }
if (str_contains($this->downloadUrl, 'v2')) {
$this->version = 'v2';
}
if (str_contains($this->downloadUrl, 'v3')) {
$this->version = 'v3';
}
} }
public function clicked($downloadId) public function clicked($downloadId)
+5
View File
@@ -2,6 +2,7 @@
namespace App\Livewire; namespace App\Livewire;
use App\Enums\UserRole;
use App\Models\User; use App\Models\User;
use App\Services\SubscriptionService; use App\Services\SubscriptionService;
use Livewire\Component; use Livewire\Component;
@@ -14,6 +15,8 @@ class UserSubscription extends Component
public $subscriptionKey = ''; public $subscriptionKey = '';
public $isActive = false;
protected $rules = [ protected $rules = [
'subscriptionKey' => 'required|string|size:48', 'subscriptionKey' => 'required|string|size:48',
]; ];
@@ -22,6 +25,7 @@ class UserSubscription extends Component
{ {
$this->userId = $user ? $user->id : auth()->user()->id; $this->userId = $user ? $user->id : auth()->user()->id;
$this->subscriptionKey = $user->subscription_key ?? ''; $this->subscriptionKey = $user->subscription_key ?? '';
$this->isActive = $user->hasRole(UserRole::SUPPORTER) ?? false;
} }
public function applyKey(SubscriptionService $subscriptionService) public function applyKey(SubscriptionService $subscriptionService)
@@ -61,6 +65,7 @@ class UserSubscription extends Component
$user->subscription_key = $this->subscriptionKey; $user->subscription_key = $this->subscriptionKey;
$user->save(); $user->save();
$this->isActive = true;
} }
public function render() public function render()
-29
View File
@@ -1,29 +0,0 @@
<?php
namespace App\Livewire;
use App\Models\Episode;
use Livewire\Component;
class ViewCount extends Component
{
public $episodeId = 0;
public $viewCount = 0;
public function mount(Episode $episode)
{
$this->episodeId = $episode->id;
$this->viewCount = $episode->view_count;
}
public function update()
{
$this->viewCount = Episode::where('id', $this->episodeId)->firstOrFail()->view_count;
}
public function render()
{
return view('livewire.view-count');
}
}
+8
View File
@@ -72,4 +72,12 @@ class Comment extends Model
{ {
return cache()->remember('commentLikes'.$this->id, 300, fn () => $this->likes->count()); return cache()->remember('commentLikes'.$this->id, 300, fn () => $this->likes->count());
} }
/**
* Returns wether or not comment has been removed by moderation
*/
public function isDeletedByModerator(): bool
{
return $this->deleted_by_moderator_id !== null;
}
} }
+18
View File
@@ -0,0 +1,18 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ModLog extends Model
{
/**
* The attributes that are mass assignable.
*
* @var string[]
*/
protected $fillable = [
'moderator',
'data',
];
}
+5 -1
View File
@@ -157,7 +157,11 @@ class User extends Authenticatable implements HasPasskeys
return; return;
} }
$this->roles = array_diff($this->roles, [$role->value]); $this->roles = collect($this->roles)
->reject(fn ($value) => $value === $role->value)
->values()
->all();
$this->save(); $this->save();
} }
} }
+21
View File
@@ -2,6 +2,7 @@
namespace App\Policies; namespace App\Policies;
use App\Enums\UserRole;
use App\Models\Comment; use App\Models\Comment;
use App\Models\User; use App\Models\User;
use Illuminate\Auth\Access\HandlesAuthorization; use Illuminate\Auth\Access\HandlesAuthorization;
@@ -17,6 +18,26 @@ class CommentPolicy
public function destroy(User $user, Comment $comment): bool public function destroy(User $user, Comment $comment): bool
{ {
if ($user->hasRole(UserRole::ADMINISTRATOR) ||
$user->hasRole(UserRole::MODERATOR)) {
return true;
}
return $user->id === $comment->user_id; return $user->id === $comment->user_id;
} }
public function restore(User $user, Comment $comment): bool
{
// Comment not deleted
if ($comment->deleted_by_moderator_id === null) {
return false;
}
if ($user->hasRole(UserRole::ADMINISTRATOR) ||
$user->hasRole(UserRole::MODERATOR)) {
return true;
}
return false;
}
} }
+84 -7
View File
@@ -5,6 +5,7 @@ namespace App\Services;
use App\Models\Episode; use App\Models\Episode;
use App\Models\Hentai; use App\Models\Hentai;
use App\Models\Studios; use App\Models\Studios;
use App\Models\ModLog;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Support\Carbon; use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Storage; use Illuminate\Support\Facades\Storage;
@@ -62,6 +63,68 @@ class EpisodeService
return $episode; return $episode;
} }
private function applyTags(Request $request, Episode $episode): void
{
$tags = json_decode($request->input('tags'));
$newtags = [];
foreach ($tags as $t) {
$newtags[] = $t->value;
}
$newTagsTemp = $newtags;
$oldTagsTemp = $episode->tagNames();
sort($newTagsTemp);
sort($oldTagsTemp);
if ($newTagsTemp !== $oldTagsTemp) {
ModLog::create([
'moderator' => $request->user()->name,
'data' => sprintf(
'Updated Episode tags from %s to %s',
implode(', ', $oldTagsTemp),
implode(', ', $newTagsTemp),
),
]);
}
$episode->retag($newtags);
}
private function updateTitle(Request $request, Episode $episode): void
{
$updates = [];
if ($episode->title !== $request->input('title')) {
$updates['title'] = $request->input('title');
$updates['title_search'] = preg_replace(
'/[^A-Za-z0-9 ]/',
'',
$request->input('title')
);
// Log to ModLog
ModLog::create([
'moderator' => $request->user()->name,
'data' => "Updating Hentai Title from {$episode->title} to {$request->input('title')}",
]);
}
if ($episode->title_jpn !== $request->input('title_jpn')) {
$updates['title_jpn'] = $request->input('title_jpn');
// Log to ModLog
ModLog::create([
'moderator' => $request->user()->name,
'data' => "Updating Hentai Title from {$episode->title_jpn} to {$request->input('title_jpn')}",
]);
}
if (! empty($updates)) {
$episode->hentai->episodes()->update($updates);
}
}
public function updateEpisode(Request $request, Studios $studio, int $episodeId): Episode public function updateEpisode(Request $request, Studios $studio, int $episodeId): Episode
{ {
$episode = Episode::where('id', $episodeId)->firstOrFail(); $episode = Episode::where('id', $episodeId)->firstOrFail();
@@ -75,17 +138,31 @@ class EpisodeService
$episode->dmca_takedown = $request->input('dmca_takedown') == 'true'; $episode->dmca_takedown = $request->input('dmca_takedown') == 'true';
$episode->save(); $episode->save();
// Tagging $this->applyTags($request, $episode);
$tags = json_decode($request->input('tags')); $this->updateTitle($request, $episode);
$newtags = [];
foreach ($tags as $t) {
$newtags[] = $t->value;
}
$episode->retag($newtags);
return $episode; return $episode;
} }
public function updateEpisodeModerator(Request $request, int $episodeId): void
{
$episode = Episode::where('id', $episodeId)->firstOrFail();
$oldDescription = $episode->description;
$episode->description = $request->input('description');
$episode->save();
if ($episode->description !== $oldDescription) {
// Log to ModLog
ModLog::create([
'moderator' => $request->user()->name,
'data' => "Updated Episode description from {$oldDescription} to {$episode->description}",
]);
}
$this->applyTags($request, $episode);
$this->updateTitle($request, $episode);
}
public function getOrCreateStudio(string $studioName): Studios public function getOrCreateStudio(string $studioName): Studios
{ {
return Studios::firstOrCreate( return Studios::firstOrCreate(
Generated
+430 -427
View File
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('comments', function (Blueprint $table) {
$table->bigInteger('deleted_by_moderator_id')
->nullable()
->after('parent_id');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('comments', function (Blueprint $table) {
$table->dropColumn('deleted_by_moderator_id');
});
}
};
@@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('mod_logs', function (Blueprint $table) {
$table->id();
$table->string('moderator');
$table->text('data');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('mod_logs');
}
};
+382 -319
View File
File diff suppressed because it is too large Load Diff
+40 -44
View File
@@ -1,56 +1,52 @@
const sleep = (ms = 0) => new Promise(resolve => setTimeout(resolve, ms)); function initGalleryPreviews() {
var old_timestamp = document.getElementById('ts_reference').value; const previews = document.querySelectorAll('.preview-gallery');
function initPreviews() { previews.forEach((img) => {
var thumbs = document.querySelectorAll('div[data-thumbs]'); // Prevent double initialization
thumbs.forEach(function (thumb) { if (img.dataset.previewInitialized) return;
var thumbsJSON = JSON.parse(thumb.dataset.thumbs);
var originalImage = thumb.children[0].children[1].src;
var interval;
var i = 1;
function clear() { img.dataset.previewInitialized = 'true';
thumb.children[0].children[1].src = originalImage;
i = 1;
clearTimeout(interval);
}
function toggle() { let images = [];
if (i == 0) {
clear(); try {
images = JSON.parse(img.dataset.gallery);
} catch (e) {
console.error('Invalid gallery JSON', e);
return; return;
} }
thumb.children[0].children[1].src = thumbsJSON[i]; if (images.length <= 1) return;
i = (i + 1) % thumbsJSON.length;
}
function interval() { const original = img.src;
// Start Preview
interval = setInterval(toggle, 700);
}
thumb.addEventListener('mouseenter', interval); let index = 0;
thumb.addEventListener('mouseleave', clear); let interval = null;
const startPreview = () => {
console.log("startPreview");
interval = setInterval(() => {
index = (index + 1) % images.length;
img.src = images[index];
}, 700);
};
const stopPreview = () => {
console.log("stopPreview");
clearInterval(interval);
interval = null;
index = 0;
img.src = original;
};
img.addEventListener('mouseenter', startPreview);
img.addEventListener('mouseleave', stopPreview);
}); });
} }
async function init() { // Initial page load
for (let i = 0; i < 9; i++) { document.addEventListener('DOMContentLoaded', initGalleryPreviews);
var new_timestamp = document.getElementById('ts_reference').value;
if (new_timestamp != old_timestamp) {
console.log('== Changed ==');
initPreviews();
break;
}
console.log('== Didnt Change ==');
await sleep(1000);
}
}
window.addEventListener('contentChanged', event => { // Livewire v3 navigation/update
console.log('== Received contentChanged Event =='); document.addEventListener('contentChanged', initGalleryPreviews);
init();
});
initPreviews();
@@ -1,13 +1,32 @@
<div data-te-modal-init class="fixed left-0 top-0 z-[1055] hidden h-full w-full overflow-y-auto overflow-x-hidden outline-none" id="modalEditEpisode" tabindex="-1" aria-labelledby="Upload" aria-modal="true" role="dialog"> <div
<div data-te-modal-dialog-ref class="pointer-events-none relative flex min-h-[calc(100%-1rem)] w-auto translate-y-[-50px] items-center opacity-0 transition-all duration-300 ease-in-out min-[576px]:mx-auto min-[576px]:mt-7 min-[576px]:min-h-[calc(100%-3.5rem)] min-[576px]:max-w-[95%] md:min-[576px]:max-w-[90%] lg:min-[576px]:max-w-[80%] xl:min-[576px]:max-w-[70%] 2xl:min-[576px]:max-w-[50%]"> data-te-modal-init
<div class="flex relative flex-col w-full text-current bg-clip-padding bg-white rounded-md border-none shadow-lg outline-none pointer-events-auto dark:bg-neutral-800"> id="modalEditEpisode"
tabindex="-1"
aria-modal="true"
role="dialog"
class="fixed inset-0 z-[1055] hidden overflow-y-auto bg-black/60 backdrop-blur-sm"
>
<div data-te-modal-dialog-ref class="flex min-h-screen items-center justify-center p-4">
<div class="relative w-full max-w-7xl overflow-hidden rounded-2xl border border-neutral-200 bg-white shadow-2xl dark:border-neutral-700 dark:bg-neutral-900">
<x-modal-header :title="__('Edit Episode')"/> <x-modal-header :title="__('Edit Episode')"/>
<!--Modal body--> <!--Modal body-->
<div class="relative p-4 pt-0"> <div class="relative p-4 pt-0">
<form method="POST" action="{{ route('admin.edit') }}" enctype="multipart/form-data"> <form method="POST" action="{{ route('admin.episode.edit') }}" enctype="multipart/form-data">
@csrf @csrf
<div class="grid grid-cols-3"> <div class="flex flex-col gap-2 p-2">
<div>
<label class="leading-tight text-gray-800 dark:text-gray-200 w-full" for="title">Title:</label>
<x-text-input id="title" value="{{ $episode->title }}" class="block w-full" type="text" name="title" required autofocus/>
</div>
<div>
<label class="leading-tight text-gray-800 dark:text-gray-200 w-full" for="title_jpn">Title JPN:</label>
<x-text-input id="title_jpn" value="{{ $episode->title_jpn }}" class="block w-full" type="text" name="title_jpn" required />
</div>
</div>
<div class="grid grid-cols-3 p-2">
<div class="col-span-2"> <div class="col-span-2">
<!-- Tags --> <!-- Tags -->
<div class="row-span-2 p-0"> <div class="row-span-2 p-0">
@@ -16,6 +35,7 @@
</div> </div>
</div> </div>
@if(auth()->user()->hasRole(\App\Enums\UserRole::ADMINISTRATOR))
<div class="grid grid-rows-2"> <div class="grid grid-rows-2">
<!-- Studio --> <!-- Studio -->
<div class="p-2 pt-0"> <div class="p-2 pt-0">
@@ -47,13 +67,16 @@
</div> </div>
</div> </div>
</div> </div>
@endif
</div> </div>
@if(auth()->user()->hasRole(\App\Enums\UserRole::ADMINISTRATOR))
<!-- Stream URL --> <!-- Stream URL -->
<div class="p-2 pt-0"> <div class="p-2 pt-0">
<label class="w-full leading-tight text-gray-800 dark:text-gray-200" for="baseurl">Stream:</label> <label class="w-full leading-tight text-gray-800 dark:text-gray-200" for="baseurl">Stream:</label>
<x-text-input id="baseurl" class="block w-full" type="text" name="baseurl" value="{{ $episode->url }}" required /> <x-text-input id="baseurl" class="block w-full" type="text" name="baseurl" value="{{ $episode->url }}" required />
</div> </div>
@endif
<input name="episode_id" id="episode_id" type="hidden" value="{{ $episode->id }}" /> <input name="episode_id" id="episode_id" type="hidden" value="{{ $episode->id }}" />
@@ -62,6 +85,7 @@
<textarea rows="4" cols="50" id="description" name="description" class="block mt-1 w-full rounded-md border-gray-300 shadow-sm dark:border-gray-700 dark:bg-neutral-900 dark:text-gray-300 focus:border-rose-500 dark:focus:border-rose-600 focus:ring-rose-500 dark:focus:ring-rose-600" required>{{ $episode->description }}</textarea> <textarea rows="4" cols="50" id="description" name="description" class="block mt-1 w-full rounded-md border-gray-300 shadow-sm dark:border-gray-700 dark:bg-neutral-900 dark:text-gray-300 focus:border-rose-500 dark:focus:border-rose-600 focus:ring-rose-500 dark:focus:ring-rose-600" required>{{ $episode->description }}</textarea>
</div> </div>
@if(auth()->user()->hasRole(\App\Enums\UserRole::ADMINISTRATOR))
<!-- Episodes --> <!-- Episodes -->
<div class="grid grid-cols-2"> <div class="grid grid-cols-2">
<!-- Cover --> <!-- Cover -->
@@ -95,8 +119,10 @@
<label class="w-full leading-tight text-gray-800 dark:text-gray-200" for="downloadUHDi1">Download 4k Interpolated:</label> <label class="w-full leading-tight text-gray-800 dark:text-gray-200" for="downloadUHDi1">Download 4k Interpolated:</label>
<x-text-input id="downloadUHDi1" class="block w-full" type="text" name="downloadUHDi1" value="{{ $episode->getDownloadByType('UHDi')->url ?? '' }}" /> <x-text-input id="downloadUHDi1" class="block w-full" type="text" name="downloadUHDi1" value="{{ $episode->getDownloadByType('UHDi')->url ?? '' }}" />
</div> </div>
@endif
<div class="flex flex-wrap flex-shrink-0 justify-end items-center p-4 rounded-b-md"> <div class="sticky bottom-0 flex items-center justify-end gap-3 border-t border-neutral-200 bg-white/90 px-6 py-4 backdrop-blur dark:border-neutral-700 dark:bg-neutral-900/90">
@if(auth()->user()->hasRole(\App\Enums\UserRole::ADMINISTRATOR))
<div class="inline-block mr-2"> <div class="inline-block mr-2">
<input class="w-4 h-4 text-rose-600 bg-gray-100 border-gray-300 rounded focus:ring-rose-500 dark:focus:ring-rose-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600" <input class="w-4 h-4 text-rose-600 bg-gray-100 border-gray-300 rounded focus:ring-rose-500 dark:focus:ring-rose-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"
type="checkbox" value="true" id="v2" name="v2" /> type="checkbox" value="true" id="v2" name="v2" />
@@ -111,10 +137,17 @@
DMCA Takedown DMCA Takedown
</label> </label>
</div> </div>
<button type="button" class="inline-block px-6 pt-2.5 pb-2 text-xs font-medium leading-normal uppercase rounded transition duration-150 ease-in-out bg-primary-100 text-primary-700 hover:bg-primary-accent-100 focus:bg-primary-accent-100 focus:outline-none focus:ring-0 active:bg-primary-accent-200" data-te-modal-dismiss data-te-ripple-init data-te-ripple-color="light"> @endif
<button
type="button"
data-te-modal-dismiss
class="rounded-xl border border-neutral-300 px-5 py-2.5 text-sm font-medium text-neutral-700 transition hover:bg-neutral-100 dark:border-neutral-600 dark:text-neutral-200 dark:hover:bg-neutral-800">
Cancel Cancel
</button> </button>
<button type="submit" class="inline-block px-6 pt-2.5 pb-2 ml-1 text-xs font-medium leading-normal text-white uppercase bg-rose-600 rounded transition duration-150 ease-in-out hover:bg-rose-700 focus:bg-rose-600" data-te-ripple-init data-te-ripple-color="light"> <button
type="submit"
data-te-ripple-init
class="rounded-xl bg-rose-600 px-5 py-2.5 text-sm font-semibold text-white shadow-lg shadow-rose-600/20 transition hover:bg-rose-700">
Edit Edit
</button> </button>
</div> </div>
-19
View File
@@ -1,19 +0,0 @@
@auth
@if(Auth::user()->hasRole(\App\Enums\UserRole::ADMINISTRATOR))
<div class="relative p-5 bg-white dark:bg-neutral-700/40 rounded-lg overflow-hidden z-10">
<div class="float-left">
<a data-te-toggle="modal" data-te-target="#modalUploadEpisode" class="text-xl text-gray-800 dark:text-gray-200 leading-tight cursor-pointer whitespace-nowrap">
<i class="fa-solid fa-plus pr-[6px]"></i> Add Episode
</a>
</div>
<div class="float-right">
<a data-te-toggle="modal" data-te-target="#modalAddSubtitles" class="text-xl text-gray-800 dark:text-gray-200 leading-tight cursor-pointer whitespace-nowrap">
<i class="fa-solid fa-plus pr-[6px]"></i> Add Subtitles
</a>
<a data-te-toggle="modal" data-te-target="#modalEditEpisode" class="text-xl text-gray-800 dark:text-gray-200 leading-tight cursor-pointer whitespace-nowrap">
<i class="fa-solid fa-pen pr-[6px]"></i> Edit Episode
</a>
</div>
</div>
@endif
@endauth
@@ -1,5 +1,5 @@
<x-guest-layout> <x-guest-layout>
<div class="w-full sm:max-w-md mt-6 px-6 py-4 bg-white dark:bg-neutral-950/50 shadow-md overflow-hidden sm:rounded-lg"> <div class="w-full sm:max-w-md mt-6 px-6 py-4 bg-white dark:bg-neutral-800 shadow-md overflow-hidden sm:rounded-lg">
<div class="mb-4 text-sm text-gray-600 dark:text-gray-400"> <div class="mb-4 text-sm text-gray-600 dark:text-gray-400">
{{ __('This is a secure area of the application. Please confirm your password before continuing.') }} {{ __('This is a secure area of the application. Please confirm your password before continuing.') }}
</div> </div>
@@ -1,5 +1,5 @@
<x-guest-layout> <x-guest-layout>
<div class="w-full sm:max-w-md mt-6 px-6 py-4 bg-white dark:bg-neutral-950/50 shadow-md overflow-hidden sm:rounded-lg"> <div class="w-full sm:max-w-md mt-6 px-6 py-4 bg-white dark:bg-neutral-800 shadow-md overflow-hidden sm:rounded-lg">
<div class="mb-4 text-sm text-gray-600 dark:text-gray-400"> <div class="mb-4 text-sm text-gray-600 dark:text-gray-400">
{{ __('Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one.') }} {{ __('Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one.') }}
</div> </div>
+4 -4
View File
@@ -3,13 +3,13 @@
<div class="w-full sm:max-w-md mt-6"> <div class="w-full sm:max-w-md mt-6">
<ul class="flex list-none flex-row flex-wrap border-b-0 pl-0 relative " role="tablist" data-te-nav-ref> <ul class="flex list-none flex-row flex-wrap border-b-0 pl-0 relative " role="tablist" data-te-nav-ref>
<li role="presentation" class="flex-auto text-center"> <li role="presentation" class="flex-auto text-center">
<a href="#tabs-login" class="rounded-l-lg my-2 block border-x-0 border-b-2 border-t-0 border-transparent px-7 pb-3.5 pt-4 text-xs font-medium uppercase leading-tight text-neutral-500 hover:isolate hover:border-transparent hover:bg-neutral-50 focus:isolate focus:border-transparent data-[te-nav-active]:border-rose-600 data-[te-nav-active]:text-black dark:text-neutral-400 bg-white/50 dark:bg-neutral-950/50 backdrop-blur-sm dark:hover:bg-neutral-800 dark:data-[te-nav-active]:text-white" <a href="#tabs-login" class="rounded-l-lg my-2 block border-x-0 border-b-2 border-t-0 border-transparent px-7 pb-3.5 pt-4 text-xs font-medium uppercase leading-tight text-neutral-500 hover:isolate hover:border-transparent hover:bg-neutral-50 focus:isolate focus:border-transparent data-[te-nav-active]:border-rose-600 data-[te-nav-active]:text-black dark:text-neutral-400 bg-white/50 dark:bg-neutral-800 backdrop-blur-sm dark:hover:bg-neutral-900 dark:data-[te-nav-active]:text-white"
data-te-toggle="pill" data-te-target="#tabs-login" data-te-nav-active role="tab" aria-controls="tabs-login" aria-selected="true"> data-te-toggle="pill" data-te-target="#tabs-login" data-te-nav-active role="tab" aria-controls="tabs-login" aria-selected="true">
{{ __('Login') }} {{ __('Login') }}
</a> </a>
</li> </li>
<li role="presentation" class="flex-auto text-center"> <li role="presentation" class="flex-auto text-center">
<a href="#tabs-register" class="rounded-r-lg my-2 block border-x-0 border-b-2 border-t-0 border-transparent px-7 pb-3.5 pt-4 text-xs font-medium uppercase leading-tight text-neutral-500 hover:isolate hover:border-transparent hover:bg-neutral-50 focus:isolate focus:border-transparent data-[te-nav-active]:border-rose-600 data-[te-nav-active]:text-black dark:text-neutral-400 bg-white/50 dark:bg-neutral-950/50 backdrop-blur-sm dark:hover:bg-neutral-800 dark:data-[te-nav-active]:text-white" <a href="#tabs-register" class="rounded-r-lg my-2 block border-x-0 border-b-2 border-t-0 border-transparent px-7 pb-3.5 pt-4 text-xs font-medium uppercase leading-tight text-neutral-500 hover:isolate hover:border-transparent hover:bg-neutral-50 focus:isolate focus:border-transparent data-[te-nav-active]:border-rose-600 data-[te-nav-active]:text-black dark:text-neutral-400 bg-white/50 dark:bg-neutral-800 backdrop-blur-sm dark:hover:bg-neutral-900 dark:data-[te-nav-active]:text-white"
data-te-toggle="pill" data-te-target="#tabs-register" role="tab" aria-controls="tabs-register" aria-selected="false"> data-te-toggle="pill" data-te-target="#tabs-register" role="tab" aria-controls="tabs-register" aria-selected="false">
{{ __('Register') }} {{ __('Register') }}
</a> </a>
@@ -19,7 +19,7 @@
<!-- Login --> <!-- Login -->
<div class="w-full sm:max-w-md hidden opacity-100 transition-opacity duration-150 ease-linear data-[te-tab-active]:block" id="tabs-login" role="tabpanel" aria-labelledby="tabs-login" data-te-tab-active> <div class="w-full sm:max-w-md hidden opacity-100 transition-opacity duration-150 ease-linear data-[te-tab-active]:block" id="tabs-login" role="tabpanel" aria-labelledby="tabs-login" data-te-tab-active>
<div class="px-6 py-4 bg-white dark:bg-neutral-950/50 shadow-md overflow-hidden sm:rounded-lg"> <div class="px-6 py-4 bg-white dark:bg-neutral-800 shadow-md overflow-hidden sm:rounded-lg">
<div class="w-full text-center text-white mb-3"> <div class="w-full text-center text-white mb-3">
<a href="{{ route('discord.login') }}"> <a href="{{ route('discord.login') }}">
<div <div
@@ -102,7 +102,7 @@
<!-- Register --> <!-- Register -->
<div class="w-full sm:max-w-md hidden opacity-0 transition-opacity duration-150 ease-linear data-[te-tab-active]:block" id="tabs-register" role="tabpanel" aria-labelledby="tabs-register"> <div class="w-full sm:max-w-md hidden opacity-0 transition-opacity duration-150 ease-linear data-[te-tab-active]:block" id="tabs-register" role="tabpanel" aria-labelledby="tabs-register">
<div class="px-6 py-4 bg-white dark:bg-neutral-950/50 shadow-md overflow-hidden sm:rounded-lg"> <div class="px-6 py-4 bg-white dark:bg-neutral-800 shadow-md overflow-hidden sm:rounded-lg">
<form method="POST" action="{{ route('register') }}"> <form method="POST" action="{{ route('register') }}">
@csrf @csrf
@@ -1,5 +1,5 @@
<x-guest-layout> <x-guest-layout>
<div class="w-full sm:max-w-md mt-6 px-6 py-4 bg-white dark:bg-neutral-950/50 shadow-md overflow-hidden sm:rounded-lg"> <div class="w-full sm:max-w-md mt-6 px-6 py-4 bg-white dark:bg-neutral-800 shadow-md overflow-hidden sm:rounded-lg">
<form method="POST" action="{{ route('password.store') }}"> <form method="POST" action="{{ route('password.store') }}">
@csrf @csrf
+1 -1
View File
@@ -1,5 +1,5 @@
<x-guest-layout> <x-guest-layout>
<div class="w-full sm:max-w-md mt-6 px-6 py-4 bg-white dark:bg-neutral-950/50 shadow-md overflow-hidden sm:rounded-lg"> <div class="w-full sm:max-w-md mt-6 px-6 py-4 bg-white dark:bg-neutral-800 shadow-md overflow-hidden sm:rounded-lg">
<div class="mb-4 text-sm text-gray-600 dark:text-gray-400"> <div class="mb-4 text-sm text-gray-600 dark:text-gray-400">
{{ __('Thanks for signing up! Before getting started, could you verify your email address by clicking on the link we just emailed to you? If you didn\'t receive the email, we will gladly send you another.') }} {{ __('Thanks for signing up! Before getting started, could you verify your email address by clicking on the link we just emailed to you? If you didn\'t receive the email, we will gladly send you another.') }}
</div> </div>
@@ -0,0 +1,129 @@
@props([
'episode',
'view',
'displayjapanese' => false
])
@php
$title = $displayjapanese
? "{$episode->title_jpn} ({$episode->title}) - {$episode->episode}"
: "{$episode->title} - {$episode->episode}";
$isLoggedIn = auth()->check();
$isWatched = $isLoggedIn
? $episode->userWatched(auth()->id())
: false;
$problematic = cache()->rememberForever(
"episodeProblematic{$episode->id}",
fn () => $episode->getProblematicTags()
);
@endphp
<div class="group w-full p-1">
<a
href="{{ route('hentai.index', ['title' => $episode->slug]) }}"
class="block overflow-hidden rounded-2xl border border-neutral-200 bg-white transition-all duration-300 hover:-translate-y-1 hover:border-neutral-400 hover:shadow-xl dark:border-neutral-800 dark:bg-neutral-900 dark:hover:border-neutral-700"
>
<div class="relative overflow-hidden">
{{-- Thumbnail / Cover --}}
@if ($view === 'poster')
<img
src="{{ $episode->cover_url }}"
alt="{{ $episode->title }} - {{ $episode->episode }}"
loading="lazy"
width="400"
class="aspect-[11/16] w-full object-cover object-center transition-transform duration-500 group-hover:scale-[1.03]"
>
@elseif ($view === 'thumbnail')
@php
$galleryImages = $episode->gallery
->pluck('thumbnail_url')
->filter()
->values();
@endphp
<img
src="{{ $galleryImages->first() }}"
alt="{{ $episode->title }} - {{ $episode->episode }}"
loading="lazy"
width="1000"
data-gallery='@json($galleryImages)'
class="preview-gallery aspect-video w-full object-cover object-center transition-transform duration-500 group-hover:scale-[1.03]"
>
@endif
{{-- Dark Overlay --}}
<div class="pointer-events-none absolute inset-0 bg-gradient-to-t from-black/90 via-black/20 to-transparent"></div>
{{-- Top Meta --}}
<div class="pointer-events-none absolute inset-x-0 top-0 z-20 flex items-start justify-between p-3">
{{-- Problematic Tags --}}
@if (!empty($problematic))
<div class="rounded-full bg-red-700/40 px-2 py-1 text-[11px] font-semibold uppercase tracking-wide text-white ring-1 ring-red-700/70">
<i class="fa-solid fa-triangle-exclamation mr-1"></i>
{{ $problematic }}
</div>
@endif
{{-- Resolution --}}
<div class="ml-auto rounded-full bg-black/70 px-2 py-1 text-[11px] font-semibold tracking-wide text-white ring-1 ring-white/10">
{{ $episode->getResolution() }}
</div>
</div>
{{-- Bottom Content --}}
<div class="pointer-events-none absolute inset-x-0 bottom-0 z-20 p-4">
{{-- Title --}}
<h3 class=" text-sm font-semibold leading-snug text-white md:text-base">
{{ $title }}
</h3>
{{-- Bottom Row --}}
<div class="mt-3 flex items-center justify-between gap-3">
{{-- Stats --}}
<div class="flex flex-wrap items-center gap-3 text-sm font-bold text-neutral-200">
<span class="flex items-center gap-1">
<i class="fa-regular fa-eye text-neutral-200 font-bold"></i>
{{ $episode->viewCountFormatted() }}
</span>
<span class="flex items-center gap-1">
<i class="fa-regular fa-heart text-neutral-200 font-bold"></i>
{{ $episode->likeCount() }}
</span>
<span class="flex items-center gap-1">
<i class="fa-regular fa-comment text-neutral-200 font-bold"></i>
{{ $episode->commentCount() }}
</span>
</div>
{{-- Watched Status (logged in users only) --}}
@auth
@if ($isWatched)
<div class="shrink-0 rounded-full bg-emerald-800/40 px-2.5 py-1 text-xs font-semibold text-emerald-300 ring-1 ring-emerald-500/30">
@if ($view === 'thumbnail')
<i class="fa-solid fa-eye mr-1"></i> Watched
@else
<i class="fa-solid fa-eye"></i>
@endif
</div>
@else
<div class="shrink-0 rounded-full bg-rose-800/40 px-2.5 py-1 text-xs font-semibold text-rose-300 ring-1 ring-rose-500/30">
<i class="fa-solid fa-eye-slash"></i>
</div>
@endif
@endauth
</div>
</div>
</div>
</a>
</div>
@@ -1,58 +0,0 @@
@props(['episode'])
<div class="relative p-1 mb-8 w-full transition duration-300 ease-in-out md:p-2 md:hover:-translate-y-1 md:hover:scale-110">
<a class="hover:text-blue-600" href="{{ route('hentai.index', ['title' => $episode->slug]) }}">
<img alt="{{ $episode->title }} - {{ $episode->episode }}" loading="lazy" width="1000"
class="block object-cover object-center relative z-20 rounded-lg aspect-video"
src="{{ $episode->gallery->first()->thumbnail_url }}"></img>
@guest
<p
class="absolute right-1 md:right-2 top-1 md:top-2 bg-rose-700/70 !text-white rounded-bl-lg rounded-tr-lg p-1 pr-2 pl-2 font-semibold text-sm z-30">
{{ $episode->getResolution() }}</p>
<p
class="absolute left-1 md:left-4 bottom-1 md:bottom-2 bg-rose-700/70 !text-white rounded-bl-lg rounded-tr-lg p-1 pr-2 pl-2 font-semibold text-sm z-30">
<i class="fa-regular fa-eye"></i> {{ $episode->viewCountFormatted() }} <i class="fa-regular fa-heart"></i>
{{ $episode->likeCount() }} <i class="fa-regular fa-comment"></i>
{{ $episode->commentCount() }}
</p>
@endguest
@php $problematic = cache()->rememberForever('episodeProblematic'.$episode->id, fn () => $episode->getProblematicTags()); @endphp
@if (!empty($problematic))
<p
class="absolute left-4 top-2 bg-red-700/70 !text-white rounded-br-lg rounded-tl-lg p-1 pr-2 pl-2 font-semibold text-sm z-30">
<i class="fa-solid fa-triangle-exclamation"></i> {{ $problematic }}
</p>
@endif
@auth
@if ($episode->userWatched(auth()->user()->id))
<p
class="absolute right-1 md:right-2 top-1 md:top-2 bg-green-600/80 !text-white rounded-bl-lg rounded-tr-lg p-1 pr-2 pl-2 font-semibold text-sm z-30">
{{ $episode->getResolution() }}</p>
<p
class="absolute left-1 md:left-2 bottom-1 md:bottom-2 bg-green-600/80 !text-white rounded-bl-lg rounded-tr-lg p-1 pr-2 pl-2 font-semibold text-sm z-30">
<i class="fa-regular fa-eye"></i> {{ $episode->viewCountFormatted() }} <i
class="fa-regular fa-heart"></i> {{ $episode->likeCount() }} <i class="fa-regular fa-comment"></i>
{{ $episode->commentCount() }}
</p>
@else
<p
class="absolute right-1 md:right-2 top-1 md:top-2 bg-rose-700/70 !text-white rounded-bl-lg rounded-tr-lg p-1 pr-2 pl-2 font-semibold text-sm z-30">
{{ $episode->getResolution() }}</p>
<p
class="absolute left-1 md:left-2 bottom-1 md:bottom-2 bg-rose-700/70 !text-white rounded-bl-lg rounded-tr-lg p-1 pr-2 pl-2 font-semibold text-sm z-30">
<i class="fa-regular fa-eye"></i> {{ $episode->viewCountFormatted() }} <i
class="fa-regular fa-heart"></i> {{ $episode->likeCount() }} <i class="fa-regular fa-comment"></i>
{{ $episode->commentCount() }}
</p>
@endif
@endauth
<div class="absolute w-[95%] grid grid-cols-1 text-center">
<p class="text-sm text-center text-black dark:text-white">{{ $episode->title }} -
{{ $episode->episode }}</p>
</div>
</a>
</div>
@@ -1,13 +1,19 @@
@props(['title']) @props(['title'])
<div class="flex flex-shrink-0 items-center justify-between rounded-t-md p-4 bg-rose-600"> <div class="sticky top-0 z-10 flex items-center justify-between border-b border-neutral-200 bg-white/90 px-6 py-4 backdrop-blur dark:border-neutral-700 dark:bg-neutral-900/90">
<!--Modal title--> <div>
<h5 class="text-xl font-medium leading-normal text-white"> <h2
id="modalGenresLabel"
class="text-xl font-semibold text-neutral-900 dark:text-white"
>
{{ $title }} {{ $title }}
</h5> </h2>
<!--Close button--> </div>
<button type="button" class="box-content text-white rounded-none border-none hover:no-underline hover:opacity-75 focus:opacity-100 focus:shadow-none focus:outline-none" data-te-modal-dismiss aria-label="Close">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="h-6 w-6"> <button
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" /> type="button"
</svg> data-te-modal-dismiss
class="rounded-lg p-2 text-neutral-500 transition hover:bg-neutral-100 hover:text-black dark:hover:bg-neutral-800 dark:hover:text-white"
>
</button> </button>
</div> </div>
@@ -1,61 +1,83 @@
<p class="leading-normal font-bold text-lg text-neutral-800 dark:text-white"> <p class="text-lg font-bold leading-normal text-neutral-800 dark:text-white">
{{ __('home.categories') }} {{ __('home.categories') }}
</p> </p>
@php @php
$categories = [ $categories = collect([
'Uncensored' => 'uncensored', ['name' => 'Uncensored', 'slug' => 'uncensored'],
'Milf' => 'milf', ['name' => 'Milf', 'slug' => 'milf'],
'Maid' => 'maid', ['name' => 'Maid', 'slug' => 'maid'],
'School Girl' => 'school-girl', ['name' => 'School Girl', 'slug' => 'school-girl'],
'Succubus' => 'succubus', ['name' => 'Succubus', 'slug' => 'succubus'],
'Tentacle' => 'tentacle', ['name' => 'Tentacle', 'slug' => 'tentacle'],
'Big Boobs' => 'big-boobs', ['name' => 'Big Boobs', 'slug' => 'big-boobs'],
'BDSM' => 'bdsm', ['name' => 'BDSM', 'slug' => 'bdsm'],
'Elf' => 'elf', ['name' => 'Elf', 'slug' => 'elf'],
'4k 48fps' => '4k-48fps', ['name' => '4K 48FPS', 'slug' => '4k-48fps'],
]);
@endphp
<div class="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-5">
@foreach ($categories as $category)
@php
$episodes = cache()->remember(
"category_{$category['slug']}",
now()->addMinutes(15),
fn () => \App\Models\Episode::query()
->withAllTags([$category['slug']])
->inRandomOrder()
->limit(3)
->get()
);
[$left, $center, $right] = [
$episodes->get(0),
$episodes->get(1),
$episodes->get(2),
]; ];
@endphp @endphp
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-5 lg:grid-cols-5 xl:grid-cols-5 2xl:grid-cols-5 gap-2"> <a
@foreach ($categories as $name => $slug) href="{{ route('hentai.search', [
@php 'order' => 'recently-uploaded',
$cacheKey = 'category_' . $slug; 'tags[0]' => $category['slug'],
]) }}"
class="group relative overflow-hidden rounded-2xl border dark:border-neutral-800 border-neutral-300 dark:bg-neutral-900 dark:hover:border-neutral-700 hover:border-neutral-400 hover:shadow-2xl hover:shadow-black/30 shadow-md transition-all duration-300 hover:-translate-y-1"
>
<div class="p-4">
<h2 class="text-center text-lg font-semibold text-neutral-900 dark:text-white">
{{ $category['name'] }}
</h2>
$collection = \cache()->remember( <div class="relative mt-4 flex h-52 items-center justify-center">
$cacheKey, @if ($left)
900, <img
fn() => \App\Models\Episode::withAllTags([$slug]) src="{{ $left->cover_url }}"
->inRandomOrder() alt="{{ $category['name'] }}"
->limit(3) loading="lazy"
->get(), class="absolute left-2 top-4 h-44 w-32 rotate-[-12deg] rounded-xl object-cover shadow-lg transition-transform duration-300 group-hover:rotate-[-16deg]"
); >
$count = $collection->count();
@endphp
<a href="{{ route('hentai.search', ['order' => 'recently-uploaded', 'tags[0]' => $slug]) }}"
class="relative mx-auto w-96 sm:w-full h-56 bg-white dark:bg-neutral-800 text-black dark:text-white rounded-lg overflow-hidden shadow-lg mt-4 transition ease-in-out hover:-translate-y-1 hover:scale-110 duration-300">
<h2 class="text-lg font-semibold text-center pt-2">{{ $name }}</h2>
<div class="relative w-full h-full flex justify-center">
<!-- Left Image -->
@if ($count > 0)
<img src="{{ $collection->first()->cover_url }}"
class="absolute w-32 h-44 rounded-lg object-cover shadow-md left-4 top-4 rotate-[-15deg] z-0">
@endif @endif
<!-- Center Image --> @if ($center)
@if ($count > 1) <img
<img src="{{ $collection->skip(1)->first()->cover_url }}" src="{{ $center->cover_url }}"
class="absolute w-32 h-44 rounded-lg object-cover shadow-lg top-4 z-10"> alt="{{ $category['name'] }}"
loading="lazy"
class="absolute top-2 z-10 h-44 w-32 rounded-xl object-cover shadow-2xl transition-transform duration-300 group-hover:scale-105"
>
@endif @endif
<!-- Right Image --> @if ($right)
@if ($count > 2) <img
<img src="{{ $collection->skip(2)->first()->cover_url }}" src="{{ $right->cover_url }}"
class="absolute w-32 h-44 rounded-lg object-cover shadow-lg right-4 top-14 z-20 rotate-[15deg]"> alt="{{ $category['name'] }}"
loading="lazy"
class="absolute right-2 top-8 z-20 h-44 w-32 rotate-[12deg] rounded-xl object-cover shadow-lg transition-transform duration-300 group-hover:rotate-[16deg]"
>
@endif @endif
</div> </div>
</div>
</a> </a>
@endforeach @endforeach
</div> </div>
@@ -1,68 +1,80 @@
<p class="text-lg font-bold leading-normal text-neutral-800 dark:text-white"> <p class="mb-6 text-2xl font-bold tracking-tight text-neutral-900 dark:text-white">
{{ __('home.latest-comments') }} {{ __('home.latest-comments') }}
</p> </p>
<div class="grid gap-2 grid-cols-1 xl:grid-cols-2"> <div class="grid grid-cols-1 gap-6 xl:grid-cols-2">
@foreach ($latestComments as $comment) @foreach ($latestComments as $comment)
@if ($comment->commentable_type == \App\Models\Episode::class)
@php $episode = cache()->rememberForever('commentEpisode'.$comment->commentable_id, fn () => App\Models\Episode::with('gallery')->where('id', $comment->commentable_id)->first()); @endphp @php
<div id="comments" class="flex p-4 bg-white rounded-lg dark:bg-neutral-950"> $isEpisode = $comment->commentable_type == \App\Models\Episode::class;
if ($isEpisode) {
$item = cache()->rememberForever(
'commentEpisode' . $comment->commentable_id,
fn () => \App\Models\Episode::with('gallery')
->find($comment->commentable_id)
);
$url = route('hentai.index', ['title' => $item->slug]);
$title = $item->title . ' - ' . $item->episode;
$thumbnail = $item->gallery->first()?->thumbnail_url ?? $item->cover_url;
$cover = $item->cover_url;
$resolution = $item->getResolution();
} else {
$item = cache()->rememberForever(
'commentHentai' . $comment->commentable_id,
fn () => \App\Models\Hentai::with('gallery', 'episodes')
->find($comment->commentable_id)
);
$episode = $item->episodes->first();
$url = route('hentai.index', ['title' => $item->slug]);
$title = $episode?->title;
$thumbnail = $item->gallery->first()?->thumbnail_url ?? $episode?->cover_url;
$cover = $episode?->cover_url;
$resolution = $episode?->getResolution();
}
@endphp
<div <div
class="w-[15vw] mr-5 p-1 md:p-2 mb-4 relative transition ease-in-out hover:-translate-y-1 hover:scale-110 duration-300"> class="group overflow-hidden rounded-2xl border dark:border-neutral-800 border-neutral-300 dark:bg-neutral-900 dark:hover:border-neutral-700 hover:border-neutral-400 hover:shadow-2xl hover:shadow-black/30 shadow-md transition-all duration-300 hover:-translate-y-1">
<a class="hidden 2xl:block"
href="{{ route('hentai.index', ['title' => $episode->slug]) }}"> <div class="flex flex-col md:flex-row">
<img alt="{{ $episode->title }} - {{ $episode->episode }}" loading="lazy" width="1000"
class="block object-cover object-center relative z-20 rounded-lg aspect-video" {{-- Thumbnail --}}
src="{{ $episode->gallery->first()->thumbnail_url }}"></img> <a href="{{ $url }}"
<p class="relative w-full md:w-72 shrink-0 overflow-hidden">
class="absolute right-2 top-2 bg-rose-700/70 !text-white rounded-bl-lg rounded-tr-lg p-1 pr-2 pl-2 font-semibold text-sm z-30">
{{ $episode->getResolution() }}</p> {{-- Desktop Thumbnail --}}
<div class="absolute w-[95%] grid grid-cols-1 text-center"> <img
<p class="text-sm text-center text-black dark:text-white truncate">{{ $episode->title }} - src="{{ $thumbnail }}"
{{ $episode->episode }}</p> alt="{{ $title }}"
loading="lazy"
class="h-full w-full object-cover transition-transform duration-500 group-hover:scale-105 aspect-video"
>
{{-- Resolution Badge --}}
<div class="absolute right-2 top-2 rounded-lg bg-black/70 px-2 py-1 text-[11px] font-semibold tracking-wide text-white ring-1 ring-white/10">
{{ $resolution }}
</div>
{{-- Gradient Overlay --}}
<div
class="absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/80 via-black/30 to-transparent p-4">
<p class="line-clamp-1 text-sm font-medium text-white">
{{ $title }}
</p>
</div> </div>
</a> </a>
<a class="block 2xl:hidden" {{-- Comment Content --}}
href="{{ route('hentai.index', ['title' => $episode->slug]) }}"> <div class="flex-1 p-4 md:p-6 bg-neutral-50 dark:bg-neutral-900">
<img alt="{{ $episode->title }} - {{ $episode->episode }}" loading="lazy" width="1000"
class="block object-cover object-center relative z-20 rounded-lg"
src="{{ $episode->cover_url }}"></img>
</a>
</div>
<div class="w-[60vw] pt-4 bg-neutral-100 dark:bg-neutral-800 rounded-lg pl-4">
@include('partials.comment', ['comment' => $comment]) @include('partials.comment', ['comment' => $comment])
</div> </div>
</div>
@elseif($comment->commentable_type == \App\Models\Hentai::class)
@php $hentai = cache()->rememberForever('commentHentai'.$comment->commentable_id, fn () => App\Models\Hentai::with('gallery', 'episodes')->where('id', $comment->commentable_id)->first()); @endphp
<div id="comments" class="flex p-4 bg-white rounded-lg dark:bg-neutral-950">
<div
class="w-[15vw] mr-5 p-1 md:p-2 mb-8 relative transition ease-in-out hover:-translate-y-1 hover:scale-110 duration-300">
<a class="hidden 2xl:block" href="{{ route('hentai.index', ['title' => $hentai->slug]) }}">
<img alt="{{ $hentai->episodes->first()->title }}" loading="lazy" width="1000"
class="block object-cover object-center relative z-20 rounded-lg aspect-video"
src="{{ $hentai->gallery->first()->thumbnail_url }}"></img>
<p
class="absolute right-2 top-2 bg-rose-700/70 !text-white rounded-bl-lg rounded-tr-lg p-1 pr-2 pl-2 font-semibold text-sm z-30">
{{ $hentai->episodes->first()->getResolution() }}</p>
<div class="absolute w-[95%] grid grid-cols-1 text-center">
<p class="text-sm text-center text-black dark:text-white truncate">
{{ $hentai->episodes->first()->title }}</p>
</div>
</a>
<a class="block 2xl:hidden"
href="{{ route('hentai.index', ['title' => $hentai->slug]) }}">
<img alt="{{ $hentai->episodes->first()->title }}" loading="lazy" width="1000"
class="block object-cover object-center relative z-20 rounded-lg"
src="{{ $hentai->episodes->first()->cover_url }}"></img>
</a>
</div>
<div class="w-[60vw] pt-4 bg-neutral-100 dark:bg-neutral-800 rounded-lg pl-4">
@include('partials.comment', ['comment' => $comment])
</div> </div>
</div> </div>
@endif
@endforeach @endforeach
</div> </div>
@@ -4,10 +4,10 @@
@php @php
$random = \cache()->remember('random_home', 300, function () { $random = \cache()->remember('random_home', 300, function () {
return \App\Models\Episode::inRandomOrder()->limit(8)->get(); ; return \App\Models\Episode::inRandomOrder()->limit(16)->get(); ;
}); });
@endphp @endphp
<div class="mb-6"> <div class="mb-6">
@include('home.partials.tab.template', ['episodes' => $random, 'showThumbnails' => false]) @include('home.partials.tab.template', ['episodes' => $random, 'isThumbnail' => false])
</div> </div>
@@ -1,9 +1,46 @@
@if ($showThumbnails) @props(['isThumbnail'])
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 gap-2">
@include('partials.episode-thumbnail', ['limit' => 15]) @php
</div> // Render enough items for largest possible layout
$limit = 16;
$view = $isThumbnail ? 'thumbnail' : 'poster';
@endphp
@if ($isThumbnail)
<div
class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-3 2xl:grid-cols-4 3xl:grid-cols-5
[&>.episode-item]:hidden
[&>.episode-item:nth-child(-n+8)]:block
md:[&>.episode-item:nth-child(-n+8)]:block
lg:[&>.episode-item:nth-child(-n+9)]:block
xl:[&>.episode-item:nth-child(-n+9)]:block
2xl:[&>.episode-item:nth-child(-n+12)]:block
3xl:[&>.episode-item:nth-child(-n+15)]:block"
>
@else @else
<div class="grid grid-cols-2 sm:grid-cols-4 md:grid-cols-5 lg:grid-cols-6 xl:grid-cols-7 2xl:grid-cols-8 gap-2"> <div
@include('partials.episode-cover', ['limit' => 16]) class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-4 2xl:grid-cols-5 3xl:grid-cols-8
</div> [&>.episode-item]:hidden
[&>.episode-item:nth-child(-n+12)]:block
md:[&>.episode-item:nth-child(-n+12)]:block
xl:[&>.episode-item:nth-child(-n+12)]:block
2xl:[&>.episode-item:nth-child(-n+15)]:block
3xl:[&>.episode-item:nth-child(-n+16)]:block"
>
@endif @endif
@foreach ($episodes->take($limit) as $ep)
@php
$episode = isset($popularView)
? $ep->episode
: $ep;
@endphp
<div class="episode-item p-1">
<x-episode-cover
:episode="$episode"
:view="$view"
/>
</div>
@endforeach
</div>
@@ -2,7 +2,7 @@
<ul class="-mb-6 flex list-none flex-row flex-wrap border-b-0 pl-0 relative z-10" role="tablist" data-te-nav-ref> <ul class="-mb-6 flex list-none flex-row flex-wrap border-b-0 pl-0 relative z-10" role="tablist" data-te-nav-ref>
<li role="presentation" class="flex-auto text-center"> <li role="presentation" class="flex-auto text-center">
<a href="#tabs-most-views" <a href="#tabs-most-views"
class="rounded-l-lg my-2 block border-x-0 border-b-2 border-t-0 border-transparent px-7 pb-3.5 pt-4 text-xs font-medium uppercase leading-tight text-neutral-500 hover:isolate hover:border-transparent hover:bg-neutral-50 focus:isolate focus:border-transparent data-[te-nav-active]:border-rose-600 data-[te-nav-active]:text-black dark:text-neutral-400 bg-white dark:bg-neutral-950 dark:hover:bg-neutral-800 dark:data-[te-nav-active]:text-white" class="rounded-l-xl my-2 block border-x-0 border-b-2 border-t-0 border-transparent px-7 pb-3.5 pt-4 text-xs font-medium uppercase leading-tight text-neutral-500 hover:isolate hover:border-transparent hover:bg-neutral-50 focus:isolate focus:border-transparent data-[te-nav-active]:border-rose-600 data-[te-nav-active]:text-black dark:text-neutral-400 bg-white dark:bg-neutral-900 dark:hover:bg-neutral-800 dark:data-[te-nav-active]:text-white"
data-te-toggle="pill" data-te-target="#tabs-most-views" data-te-nav-active role="tab" data-te-toggle="pill" data-te-target="#tabs-most-views" data-te-nav-active role="tab"
aria-controls="tabs-most-views" aria-selected="true"> aria-controls="tabs-most-views" aria-selected="true">
{{ __('home.most-views') }} {{ __('home.most-views') }}
@@ -10,7 +10,7 @@
</li> </li>
<li role="presentation" class="flex-auto text-center"> <li role="presentation" class="flex-auto text-center">
<a href="#tabs-most-likes" <a href="#tabs-most-likes"
class="my-2 block border-x-0 border-b-2 border-t-0 border-transparent px-7 pb-3.5 pt-4 text-xs font-medium uppercase leading-tight text-neutral-500 hover:isolate hover:border-transparent hover:bg-neutral-50 focus:isolate focus:border-transparent data-[te-nav-active]:border-rose-600 data-[te-nav-active]:text-black dark:text-neutral-400 bg-white dark:bg-neutral-950 dark:hover:bg-neutral-800 dark:data-[te-nav-active]:text-white" class="my-2 block border-x-0 border-b-2 border-t-0 border-transparent px-7 pb-3.5 pt-4 text-xs font-medium uppercase leading-tight text-neutral-500 hover:isolate hover:border-transparent hover:bg-neutral-50 focus:isolate focus:border-transparent data-[te-nav-active]:border-rose-600 data-[te-nav-active]:text-black dark:text-neutral-400 bg-white dark:bg-neutral-900 dark:hover:bg-neutral-800 dark:data-[te-nav-active]:text-white"
data-te-toggle="pill" data-te-target="#tabs-most-likes" role="tab" aria-controls="tabs-most-likes" data-te-toggle="pill" data-te-target="#tabs-most-likes" role="tab" aria-controls="tabs-most-likes"
aria-selected="false"> aria-selected="false">
{{ __('home.most-likes') }} {{ __('home.most-likes') }}
@@ -18,7 +18,7 @@
</li> </li>
<li role="presentation" class="flex-auto text-center"> <li role="presentation" class="flex-auto text-center">
<a href="#tabs-popular-weekly" <a href="#tabs-popular-weekly"
class="my-2 block border-x-0 border-b-2 border-t-0 border-transparent px-7 pb-3.5 pt-4 text-xs font-medium uppercase leading-tight text-neutral-500 hover:isolate hover:border-transparent hover:bg-neutral-50 focus:isolate focus:border-transparent data-[te-nav-active]:border-rose-600 data-[te-nav-active]:text-black dark:text-neutral-400 bg-white dark:bg-neutral-950 dark:hover:bg-neutral-800 dark:data-[te-nav-active]:text-white" class="my-2 block border-x-0 border-b-2 border-t-0 border-transparent px-7 pb-3.5 pt-4 text-xs font-medium uppercase leading-tight text-neutral-500 hover:isolate hover:border-transparent hover:bg-neutral-50 focus:isolate focus:border-transparent data-[te-nav-active]:border-rose-600 data-[te-nav-active]:text-black dark:text-neutral-400 bg-white dark:bg-neutral-900 dark:hover:bg-neutral-800 dark:data-[te-nav-active]:text-white"
data-te-toggle="pill" data-te-target="#tabs-popular-weekly" role="tab" data-te-toggle="pill" data-te-target="#tabs-popular-weekly" role="tab"
aria-controls="tabs-popular-weekly" aria-selected="false"> aria-controls="tabs-popular-weekly" aria-selected="false">
{{ __('home.popular-weekly') }} {{ __('home.popular-weekly') }}
@@ -26,7 +26,7 @@
</li> </li>
<li role="presentation" class="flex-auto text-center"> <li role="presentation" class="flex-auto text-center">
<a href="#tabs-popular-monthly" <a href="#tabs-popular-monthly"
class="rounded-r-lg my-2 block border-x-0 border-b-2 border-t-0 border-transparent px-7 pb-3.5 pt-4 text-xs font-medium uppercase leading-tight text-neutral-500 hover:isolate hover:border-transparent hover:bg-neutral-50 focus:isolate focus:border-transparent data-[te-nav-active]:border-rose-600 data-[te-nav-active]:text-black dark:text-neutral-400 bg-white dark:bg-neutral-950 dark:hover:bg-neutral-800 dark:data-[te-nav-active]:text-white" class="rounded-r-xl my-2 block border-x-0 border-b-2 border-t-0 border-transparent px-7 pb-3.5 pt-4 text-xs font-medium uppercase leading-tight text-neutral-500 hover:isolate hover:border-transparent hover:bg-neutral-50 focus:isolate focus:border-transparent data-[te-nav-active]:border-rose-600 data-[te-nav-active]:text-black dark:text-neutral-400 bg-white dark:bg-neutral-900 dark:hover:bg-neutral-800 dark:data-[te-nav-active]:text-white"
data-te-toggle="pill" data-te-target="#tabs-popular-monthly" role="tab" data-te-toggle="pill" data-te-target="#tabs-popular-monthly" role="tab"
aria-controls="tabs-popular-monthly" aria-selected="false"> aria-controls="tabs-popular-monthly" aria-selected="false">
{{ __('home.popular-monthly') }} {{ __('home.popular-monthly') }}
@@ -34,11 +34,11 @@
</li> </li>
</ul> </ul>
@php $showThumbnails = true; @endphp @php $isThumbnail = true; @endphp
@auth @auth
@if (!Auth::user()->home_middle_design) @if (!Auth::user()->home_middle_design)
@php $showThumbnails = false; @endphp @php $isThumbnail = false; @endphp
@endif @endif
@endauth @endauth
@@ -48,7 +48,7 @@
id="tabs-most-views" role="tabpanel" aria-labelledby="tabs-most-views-tab" data-te-tab-active> id="tabs-most-views" role="tabpanel" aria-labelledby="tabs-most-views-tab" data-te-tab-active>
@include('home.partials.tab.template', [ @include('home.partials.tab.template', [
'episodes' => $popularAllTime, 'episodes' => $popularAllTime,
'showThumbnails' => $showThumbnails, 'isThumbnail' => $isThumbnail,
]) ])
<div class="grid text-center pt-5 "> <div class="grid text-center pt-5 ">
<a href="{{ route('hentai.search', ['order' => 'view-count']) }}" <a href="{{ route('hentai.search', ['order' => 'view-count']) }}"
@@ -61,7 +61,7 @@
id="tabs-most-likes" role="tabpanel" aria-labelledby="tabs-most-likes-tab"> id="tabs-most-likes" role="tabpanel" aria-labelledby="tabs-most-likes-tab">
@include('home.partials.tab.template', [ @include('home.partials.tab.template', [
'episodes' => $mostLikes, 'episodes' => $mostLikes,
'showThumbnails' => $showThumbnails, 'isThumbnail' => $isThumbnail,
]) ])
<div class="grid text-center pt-5 "> <div class="grid text-center pt-5 ">
<a href="{{ route('hentai.search', ['order' => 'view-count']) }}" <a href="{{ route('hentai.search', ['order' => 'view-count']) }}"
@@ -74,7 +74,7 @@
id="tabs-popular-weekly" role="tabpanel" aria-labelledby="tabs-popular-weekly-tab"> id="tabs-popular-weekly" role="tabpanel" aria-labelledby="tabs-popular-weekly-tab">
@include('home.partials.tab.template', [ @include('home.partials.tab.template', [
'episodes' => $popularWeekly, 'episodes' => $popularWeekly,
'showThumbnails' => $showThumbnails, 'isThumbnail' => $isThumbnail,
'popularView' => true, 'popularView' => true,
]) ])
<div class="grid text-center pt-5 "> <div class="grid text-center pt-5 ">
@@ -88,7 +88,7 @@
id="tabs-popular-monthly" role="tabpanel" aria-labelledby="tabs-popular-monthly-tab"> id="tabs-popular-monthly" role="tabpanel" aria-labelledby="tabs-popular-monthly-tab">
@include('home.partials.tab.template', [ @include('home.partials.tab.template', [
'episodes' => $popularMonthly, 'episodes' => $popularMonthly,
'showThumbnails' => $showThumbnails, 'isThumbnail' => $isThumbnail,
'popularView' => true, 'popularView' => true,
]) ])
<div class="grid text-center pt-5 "> <div class="grid text-center pt-5 ">
@@ -1,19 +1,19 @@
<!--Tabs navigation--> <!--Tabs navigation-->
<ul class="-mb-6 flex list-none flex-row flex-wrap border-b-0 pl-0 relative z-10" role="tablist" data-te-nav-ref> <ul class="-mb-6 flex list-none flex-row flex-wrap border-b-0 pl-0 relative z-10" role="tablist" data-te-nav-ref>
<li role="presentation" class="flex-auto text-center"> <li role="presentation" class="flex-auto text-center">
<a href="#tabs-recently-uploaded" class="rounded-l-lg my-2 block border-x-0 border-b-2 border-t-0 border-transparent px-7 pb-3.5 pt-4 text-xs font-medium uppercase leading-tight text-neutral-500 hover:isolate hover:border-transparent hover:bg-neutral-50 focus:isolate focus:border-transparent data-[te-nav-active]:border-rose-600 data-[te-nav-active]:text-black dark:text-neutral-400 bg-white/50 dark:bg-neutral-950/50 backdrop-blur-sm dark:hover:bg-neutral-800 dark:data-[te-nav-active]:text-white" <a href="#tabs-recently-uploaded" class="rounded-l-xl my-2 block border-x-0 border-b-2 border-t-0 border-transparent px-7 pb-3.5 pt-4 text-xs font-medium uppercase leading-tight text-neutral-500 hover:isolate hover:border-transparent hover:bg-neutral-50 focus:isolate focus:border-transparent data-[te-nav-active]:border-rose-600 data-[te-nav-active]:text-black dark:text-neutral-400 bg-white/50 dark:bg-neutral-900/50 backdrop-blur-sm dark:hover:dark:hover:bg-neutral-900 dark:data-[te-nav-active]:text-white"
data-te-toggle="pill" data-te-target="#tabs-recently-uploaded" data-te-nav-active role="tab" aria-controls="tabs-recently-uploaded" aria-selected="true"> data-te-toggle="pill" data-te-target="#tabs-recently-uploaded" data-te-nav-active role="tab" aria-controls="tabs-recently-uploaded" aria-selected="true">
{{ __('home.recently-uploaded') }} ({{ Carbon\Carbon::parse($recentlyUploaded[0]->created_at)->diffForHumans([ 'parts' => 2 ]) }}) {{ __('home.recently-uploaded') }} ({{ Carbon\Carbon::parse($recentlyUploaded[0]->created_at)->diffForHumans([ 'parts' => 2 ]) }})
</a> </a>
</li> </li>
<li role="presentation" class="flex-auto text-center"> <li role="presentation" class="flex-auto text-center">
<a href="#tabs-recently-released" class="my-2 block border-x-0 border-b-2 border-t-0 border-transparent px-7 pb-3.5 pt-4 text-xs font-medium uppercase leading-tight text-neutral-500 hover:isolate hover:border-transparent hover:bg-neutral-50 focus:isolate focus:border-transparent data-[te-nav-active]:border-rose-600 data-[te-nav-active]:text-black dark:text-neutral-400 bg-white/50 dark:bg-neutral-950/50 backdrop-blur-sm dark:hover:bg-neutral-800 dark:data-[te-nav-active]:text-white" <a href="#tabs-recently-released" class="my-2 block border-x-0 border-b-2 border-t-0 border-transparent px-7 pb-3.5 pt-4 text-xs font-medium uppercase leading-tight text-neutral-500 hover:isolate hover:border-transparent hover:bg-neutral-50 focus:isolate focus:border-transparent data-[te-nav-active]:border-rose-600 data-[te-nav-active]:text-black dark:text-neutral-400 bg-white/50 dark:bg-neutral-900/50 backdrop-blur-sm dark:hover:bg-neutral-900 dark:data-[te-nav-active]:text-white"
data-te-toggle="pill" data-te-target="#tabs-recently-released" role="tab" aria-controls="tabs-recently-released" aria-selected="false"> data-te-toggle="pill" data-te-target="#tabs-recently-released" role="tab" aria-controls="tabs-recently-released" aria-selected="false">
{{ __('home.recently-released') }} {{ __('home.recently-released') }}
</a> </a>
</li> </li>
<li role="presentation" class="flex-auto text-center"> <li role="presentation" class="flex-auto text-center">
<a href="#tabs-trending" class="rounded-r-lg my-2 block border-x-0 border-b-2 border-t-0 border-transparent px-7 pb-3.5 pt-4 text-xs font-medium uppercase leading-tight text-neutral-500 hover:isolate hover:border-transparent hover:bg-neutral-50 focus:isolate focus:border-transparent data-[te-nav-active]:border-rose-600 data-[te-nav-active]:text-black dark:text-neutral-400 bg-white/50 dark:bg-neutral-950/50 backdrop-blur-sm dark:hover:bg-neutral-800 dark:data-[te-nav-active]:text-white" <a href="#tabs-trending" class="rounded-r-xl my-2 block border-x-0 border-b-2 border-t-0 border-transparent px-7 pb-3.5 pt-4 text-xs font-medium uppercase leading-tight text-neutral-500 hover:isolate hover:border-transparent hover:bg-neutral-50 focus:isolate focus:border-transparent data-[te-nav-active]:border-rose-600 data-[te-nav-active]:text-black dark:text-neutral-400 bg-white/50 dark:bg-neutral-900/50 backdrop-blur-sm dark:hover:bg-neutral-900 dark:data-[te-nav-active]:text-white"
data-te-toggle="pill" data-te-target="#tabs-trending" role="tab" aria-controls="tabs-trending" aria-selected="false"> data-te-toggle="pill" data-te-target="#tabs-trending" role="tab" aria-controls="tabs-trending" aria-selected="false">
{{ __('home.trending') }} {{ __('home.trending') }}
</a> </a>
@@ -21,18 +21,18 @@
</ul> </ul>
@php $showThumbnails = false; @endphp @php $isThumbnail = false; @endphp
@auth @auth
@if(Auth::user()->home_top_design) @if(Auth::user()->home_top_design)
@php $showThumbnails = true; @endphp @php $isThumbnail = true; @endphp
@endif @endif
@endauth @endauth
<!--Tabs content--> <!--Tabs content-->
<div class="mb-6"> <div class="mb-6">
<div class="hidden opacity-100 transition-opacity duration-150 ease-linear data-[te-tab-active]:block" id="tabs-recently-uploaded" role="tabpanel" aria-labelledby="tabs-recently-uploaded-tab" data-te-tab-active> <div class="hidden opacity-100 transition-opacity duration-150 ease-linear data-[te-tab-active]:block" id="tabs-recently-uploaded" role="tabpanel" aria-labelledby="tabs-recently-uploaded-tab" data-te-tab-active>
@include('home.partials.tab.template', ['episodes' => $recentlyUploaded, 'showThumbnails' => $showThumbnails]) @include('home.partials.tab.template', ['episodes' => $recentlyUploaded, 'isThumbnail' => $isThumbnail])
<div class="grid text-center pt-5 "> <div class="grid text-center pt-5 ">
<a href="{{ route('hentai.search', ['order' => 'recently-uploaded']) }}" <a href="{{ route('hentai.search', ['order' => 'recently-uploaded']) }}"
class="rounded bg-rose-600 p-1 mr-2 text-xs font-medium uppercase leading-normal text-white transition duration-150 ease-in-out hover:bg-rose-700 focus:bg-rose-600"> class="rounded bg-rose-600 p-1 mr-2 text-xs font-medium uppercase leading-normal text-white transition duration-150 ease-in-out hover:bg-rose-700 focus:bg-rose-600">
@@ -41,7 +41,7 @@
</div> </div>
</div> </div>
<div class="hidden opacity-0 transition-opacity duration-150 ease-linear data-[te-tab-active]:block" id="tabs-recently-released" role="tabpanel"aria-labelledby="tabs-recently-released-tab"> <div class="hidden opacity-0 transition-opacity duration-150 ease-linear data-[te-tab-active]:block" id="tabs-recently-released" role="tabpanel"aria-labelledby="tabs-recently-released-tab">
@include('home.partials.tab.template', ['episodes' => $recentlyReleased, 'showThumbnails' => $showThumbnails]) @include('home.partials.tab.template', ['episodes' => $recentlyReleased, 'isThumbnail' => $isThumbnail])
<div class="grid text-center pt-5 "> <div class="grid text-center pt-5 ">
<a href="{{ route('hentai.search', ['order' => 'recently-released']) }}" <a href="{{ route('hentai.search', ['order' => 'recently-released']) }}"
class="rounded bg-rose-600 p-1 mr-2 text-xs font-medium uppercase leading-normal text-white transition duration-150 ease-in-out hover:bg-rose-700 focus:bg-rose-600"> class="rounded bg-rose-600 p-1 mr-2 text-xs font-medium uppercase leading-normal text-white transition duration-150 ease-in-out hover:bg-rose-700 focus:bg-rose-600">
@@ -50,7 +50,7 @@
</div> </div>
</div> </div>
<div class="hidden opacity-0 transition-opacity duration-150 ease-linear data-[te-tab-active]:block" id="tabs-trending" role="tabpanel"aria-labelledby="tabs-trending-tab"> <div class="hidden opacity-0 transition-opacity duration-150 ease-linear data-[te-tab-active]:block" id="tabs-trending" role="tabpanel"aria-labelledby="tabs-trending-tab">
@include('home.partials.tab.template', ['episodes' => $popularDaily, 'showThumbnails' => $showThumbnails, 'popularView' => true]) @include('home.partials.tab.template', ['episodes' => $popularDaily, 'isThumbnail' => $isThumbnail, 'popularView' => true])
<div class="grid text-center pt-5 "> <div class="grid text-center pt-5 ">
<a href="{{ route('hentai.search', ['order' => 'recently-released']) }}" <a href="{{ route('hentai.search', ['order' => 'recently-released']) }}"
class="rounded invisible bg-rose-600 p-1 mr-2 text-xs font-medium uppercase leading-normal text-white transition duration-150 ease-in-out hover:bg-rose-700 focus:bg-rose-600"> class="rounded invisible bg-rose-600 p-1 mr-2 text-xs font-medium uppercase leading-normal text-white transition duration-150 ease-in-out hover:bg-rose-700 focus:bg-rose-600">
+54 -23
View File
@@ -1,47 +1,78 @@
<x-app-layout> <x-app-layout>
<div class="container my-24 mx-auto md:px-6 z-10 relative"> <div class="container mx-auto px-4 py-12 md:py-24">
<section class="mb-32 text-center"> <section class="text-center mb-16">
<div class="flex justify-center pb-10"> <!-- Logo -->
<img src="/images/cropped-HS-1-270x270.webp" class="max-w-[150px]" alt="hstream.moe Logo" /> <div class="flex justify-center mb-8">
<img
src="/images/cropped-HS-1-270x270.webp"
alt="hstream.moe Logo"
class="max-w-[150px] w-full h-auto rounded-lg"
/>
</div> </div>
<div class="grid md:grid-cols-2 lg:grid-cols-4 lg:gap-x-12">
<div class="mb-12 md:mb-0"> <!-- Stats Grid -->
<div class="mb-6 inline-block rounded-md bg-white dark:bg-neutral-950 p-4 text-sky-500"> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 md:gap-8">
<i class="fa-solid fa-eye text-3xl"> {{ number_format($viewCount) }}</i> <!-- View Count Card -->
<div class="bg-sky-300/50 dark:bg-sky-950/50 rounded-xl p-6 shadow-sm hover:shadow-md transition-shadow duration-300">
<div class="flex justify-center mb-4">
<i class="fa-solid fa-eye text-4xl text-sky-600 dark:text-sky-400 p-3"></i>
</div> </div>
<h5 class="text-lg font-medium dark:text-neutral-300"> <div class="text-3xl font-bold text-gray-900 dark:text-white mb-2">
{{ number_format($viewCount) }}
</div>
<h5 class="text-lg font-medium text-gray-700 dark:text-neutral-300">
total views total views
</h5> </h5>
</div> </div>
<div class="mb-12 md:mb-0">
<div class="b-6 inline-block rounded-md bg-white dark:bg-neutral-950 p-4 text-sky-500"> <!-- Episode Count Card -->
<i class="fa-solid fa-video text-3xl"> {{ $episodeCount }}</i> <div class="bg-sky-300/50 dark:bg-sky-950/50 rounded-xl p-6 shadow-sm hover:shadow-md transition-shadow duration-300">
<div class="flex justify-center mb-4">
<i class="fa-solid fa-video text-4xl text-sky-600 dark:text-sky-400 p-3"></i>
</div> </div>
<h5 class="text-lg font-medium dark:text-neutral-300"> <div class="text-3xl font-bold text-gray-900 dark:text-white mb-2">
{{ $episodeCount }}
</div>
<h5 class="text-lg font-medium text-gray-700 dark:text-neutral-300">
episodes on this site episodes on this site
</h5> </h5>
</div> </div>
<div class="mb-12 md:mb-0">
<div class="mb-6 inline-block rounded-md bg-white dark:bg-neutral-950 p-4 text-rose-600"> <!-- Hentai Count Card -->
<i class="fa-solid fa-list text-3xl"> {{ $hentaiCount }}</i> <div class="bg-rose-300/50 dark:bg-rose-950/50 rounded-xl p-6 shadow-sm hover:shadow-md transition-shadow duration-300">
<div class="flex justify-center mb-4">
<i class="fa-solid fa-list text-4xl text-rose-600 dark:text-rose-400 p-3"></i>
</div> </div>
<h5 class="text-lg font-medium dark:text-neutral-300"> <div class="text-3xl font-bold text-gray-900 dark:text-white mb-2">
{{ $hentaiCount }}
</div>
<h5 class="text-lg font-medium text-gray-700 dark:text-neutral-300">
hentais on this site hentais on this site
</h5> </h5>
</div> </div>
<div class="mb-12 md:mb-0">
<div class="mb-6 inline-block rounded-md bg-white dark:bg-neutral-950 p-4 text-rose-600"> <!-- Watch Time Card -->
<i class="fa-solid fa-clock text-3xl"> {{ number_format($viewCount * 6) }}</i> <div class="bg-rose-300/50 dark:bg-rose-950/50 rounded-xl p-6 shadow-sm hover:shadow-md transition-shadow duration-300">
<div class="flex justify-center mb-4">
<i class="fa-solid fa-clock text-4xl text-rose-600 dark:text-rose-400 p-3"></i>
</div> </div>
<h5 class="text-lg font-medium dark:text-neutral-300"> <div class="text-3xl font-bold text-gray-900 dark:text-white mb-2">
{{ number_format($viewCount * 6) }}
</div>
<h5 class="text-lg font-medium text-gray-700 dark:text-neutral-300">
estimated minutes of watch time estimated minutes of watch time
</h5> </h5>
</div> </div>
</div> </div>
<div class="flex justify-center dark:bg-neutral-950 bg-gray-50 rounded-xl md:m-11 hidden md:block">
<canvas id="monthlyChart"></canvas> <!-- Chart Container -->
<div class="mt-12 mx-auto max-w-4xl">
<div class="bg-gray-50 dark:bg-neutral-950 rounded-xl p-4 md:p-6 shadow-inner hidden sm:block">
<canvas id="monthlyChart" class="w-full h-64 md:h-80"></canvas>
</div>
</div> </div>
</section> </section>
</div> </div>
@vite(['resources/js/stats.js']) @vite(['resources/js/stats.js'])
</x-app-layout> </x-app-layout>
+1 -1
View File
@@ -4,7 +4,7 @@
@include('partials.head') @include('partials.head')
<body class="font-sans antialiased"> <body class="font-sans antialiased">
<div class="flex flex-col min-h-screen bg-gray-100 dark:bg-neutral-900"> <div class="flex flex-col min-h-screen bg-gray-100 dark:bg-neutral-950">
@include('layouts.navigation') @include('layouts.navigation')
<!-- Page Heading --> <!-- Page Heading -->
+89 -67
View File
@@ -1,77 +1,99 @@
<footer class="bg-white z-10 rounded-lg shadow dark:bg-neutral-950 m-4 mb-0 mt-auto"> <footer class="bg-white z-10 rounded-xl shadow-lg dark:bg-neutral-950 m-4 mb-0 mt-auto">
<div class="w-full xl:max-w-[95%] 2xl:max-w-[84%] mx-auto p-4"> <div class="w-full max-w-7xl mx-auto px-4 py-6">
<div class="sm:flex sm:items-center sm:justify-between"> <div class="grid grid-cols-1 md:grid-cols-3 gap-6 items-center">
<a href="https://hstream.moe/" class="flex items-center mb-4 sm:mb-0"> <!-- Logo -->
<img src="/images/cropped-HS-1-192x192.webp" class="h-8 mr-3" alt="hstream.moe Logo" /> <div class="flex items-center justify-center md:justify-start">
<span class="self-center text-2xl font-semibold whitespace-nowrap dark:text-white">hstream.moe</span> <a href="https://hstream.moe/" class="flex items-center">
<img src="/images/cropped-HS-1-192x192.webp"
class="h-10 w-10 mr-3 rounded-lg object-cover"
alt="hstream.moe Logo" />
<span class="text-xl font-bold whitespace-nowrap text-gray-600 dark:text-white">hstream.moe</span>
</a> </a>
<ul class="flex flex-wrap items-center mb-6 text-sm font-medium text-gray-500 sm:mb-0 dark:text-gray-400"> </div>
<li>
<a href="{{ route('contact.index') }}" class="mr-4 hover:underline md:mr-6 "><i
class="fa-solid fa-message"></i> Contact</a>
</li>
<li>
<a href="{{ config('discord.invite_link') }}" class="mr-4 hover:underline md:mr-6 "><i
class="fa-brands fa-discord"></i> Discord</a>
</li>
<li>
<a href="{{ route('home.stats') }}" class="mr-4 hover:underline md:mr-6 "><i
class="fa-solid fa-chart-simple"></i> Stats</a>
</li>
</ul>
<!-- Links to friendly sites -->
<ul class="flex flex-wrap items-center mb-6 text-sm font-medium text-gray-500 sm:mb-0 dark:text-gray-400">
<li>
<a target="_blank" href="https://everythingmoe.com/"
class="mr-4 hover:underline md:mr-6">everythingmoe.com</a>
</li>
<li>
<a target="_blank" href="https://theindex.moe/"
class="mr-4 hover:underline md:mr-6">theindex.moe</a>
</li>
<li>
<a target="_blank" href="https://www.squid-board.org/"
class="mr-4 hover:underline md:mr-6">squidboard.org</a>
</li>
<li>
<a target="_blank" href="https://hentaizilla.com/"
class="hover:underline md:mr-6">hentaizilla.com</a>
</li>
<li>
<a target="_blank" href="https://hentaipulse.com/"
class="hover:underline md:mr-6">hentaipulse.com</a>
</li>
<li>
<a target="_blank" href="https://hentaisites.com/"
class="hover:underline md:mr-6">hentaisites.com</a>
</li>
<li>
<a target="_blank" href="https://zhentube.com/"
class="hover:underline md:mr-6">zhentube.com</a>
</li>
</ul>
<ul class="flex flex-wrap items-center mb-6 text-sm font-medium text-gray-500 sm:mb-0 dark:text-gray-400">
<li>
<a class="hover:underline md:mr-6 cursor-pointer" data-te-toggle="modal"
data-te-target="#modalLanguage">Language</a>
</li>
</ul>
<!-- Main Navigation -->
<div class="flex justify-center">
<ul class="flex flex-wrap items-center gap-4 text-sm font-medium text-gray-600 dark:text-gray-300">
<li>
<a href="{{ route('contact.index') }}"
class="flex items-center gap-1 hover:text-blue-600 transition-colors">
<i class="fa-solid fa-message"></i> Contact
</a>
</li>
<li>
<a href="{{ config('discord.invite_link') }}"
class="flex items-center gap-1 hover:text-blue-600 transition-colors">
<i class="fa-brands fa-discord"></i> Discord
</a>
</li>
<li>
<a href="{{ route('home.stats') }}"
class="flex items-center gap-1 hover:text-blue-600 transition-colors">
<i class="fa-solid fa-chart-simple"></i> Stats
</a>
</li>
</ul>
</div>
<!-- Language Selector -->
<div class="flex justify-center md:justify-end">
<button data-te-toggle="modal"
data-te-target="#modalLanguage"
class="flex items-center gap-1 text-sm font-medium text-gray-600 hover:text-blue-600 transition-colors dark:text-gray-300">
<i class="fa-solid fa-globe"></i> Language
</button>
</div>
</div>
<!-- Friendly Sites -->
<div class="mt-6 pt-6 border-t border-gray-200 dark:border-gray-700">
<h3 class="text-sm font-semibold text-gray-500 dark:text-gray-400 mb-3 text-center">Friendly Sites</h3>
<div class="flex flex-wrap justify-center gap-3">
@foreach([
'everythingmoe.com' => 'https://everythingmoe.com/',
'theindex.moe' => 'https://theindex.moe/',
'squidboard.org' => 'https://www.squid-board.org/',
'hentaizilla.com' => 'https://hentaizilla.com/',
'hentaipulse.com' => 'https://hentaipulse.com/',
'hentaisites.com' => 'https://hentaisites.com/',
'zhentube.com' => 'https://zhentube.com/'
] as $name => $url)
<a href="{{ $url }}"
target="_blank"
class="text-sm text-gray-600 hover:text-blue-600 transition-colors dark:text-gray-300">
{{ $name }}
</a>
@endforeach
</div>
</div>
</div>
</footer>
<!-- Footer Info -->
<div class="m-4 w-full max-w-7xl mx-auto">
<div class="text-xs text-gray-500 text-center dark:text-gray-400">
<p>Render time: {{ number_format(microtime(true) - (defined('LARAVEL_START') ? LARAVEL_START : request()->server('REQUEST_TIME_FLOAT')), 3) }} seconds |
Memory usage: {{ number_format(memory_get_peak_usage(true) / 1048576, 2) }} MB |
Git: <a href="https://gitea.hstream.moe/w33b/hstream/commits/branch/main"
target="_blank"
class="hover:text-blue-600 transition-colors">
{{ \App\Helpers\GitHelper::shortCommit() }}
</a>
</p>
</div>
</div>
<!-- SweetAlert Scripts -->
@if (!Session::has('alert.config')) @if (!Session::has('alert.config'))
<script src="{{ asset('vendor/sweetalert/sweetalert.all.js') }}"></script> <script src="{{ asset('vendor/sweetalert/sweetalert.all.js') }}"></script>
@endif @endif
@if (config('sweetalert.theme') != 'default') @if (config('sweetalert.theme') != 'default')
<link href="https://cdn.jsdelivr.net/npm/@sweetalert2/theme-{{ config('sweetalert.theme') }}" <link href="https://cdn.jsdelivr.net/npm/@sweetalert2/theme-{{ config('sweetalert.theme') }}" rel="stylesheet">
rel="stylesheet">
@endif @endif
@include('sweetalert::alert') @include('sweetalert::alert')
</div>
</div> <!-- Modals -->
</footer>
@include('modals.language-selector') @include('modals.language-selector')
<div class="m-2 w-full mx-auto"> <!-- Thumbnail hover -->
<div class="text-sm text-gray-500 text-center"> @vite(['resources/js/preview.js'])
<p>Render time: {{ number_format(microtime(true) - (defined('LARAVEL_START') ? LARAVEL_START : request()->server('REQUEST_TIME_FLOAT')), 3) }} seconds | Memory usage: {{ number_format(memory_get_peak_usage(true) / 1048576, 2) }} MB | Git: <a href="https://gitea.hstream.moe/w33b/hstream/commits/branch/main" target="_blank">{{ \App\Helpers\GitHelper::shortCommit() }}</a></p>
</div>
</div>
+1 -1
View File
@@ -4,7 +4,7 @@
@include('partials.head') @include('partials.head')
<body class="font-sans antialiased"> <body class="font-sans antialiased">
<div class="min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-gray-100 dark:bg-neutral-900"> <div class="min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-gray-100 dark:bg-neutral-950">
<div> <div>
<a href="/"> <a href="/">
<x-application-logo class="w-24 h-24 fill-current text-gray-500" /> <x-application-logo class="w-24 h-24 fill-current text-gray-500" />
+189 -57
View File
@@ -1,121 +1,253 @@
<div> <div id="comment-{{ $comment->id }}">
<div class="flex" id="comment-{{ $comment->id }}">
<div class="flex-shrink-0 mr-4"> <div class="group flex gap-4">
<img class="h-10 w-10 rounded-full" src="{{ $comment->user->getAvatar() }}" alt="{{ $comment->user->name }}">
{{-- Avatar --}}
<div class="shrink-0">
@if($comment->isDeletedByModerator())
<img
class="h-10 w-10 rounded-full object-cover opacity-60"
src="{{ asset('images/default-avatar.webp') }}"
alt="Deleted comment"
>
@else
<img
class="h-10 w-10 rounded-full object-cover ring-2 ring-white dark:ring-neutral-800"
src="{{ $comment->user->getAvatar() }}"
alt="{{ $comment->user->name }}"
>
@endif
</div> </div>
<div class="flex-grow">
<div class="flex gap-2"> {{-- Content --}}
<p class="font-medium text-gray-900 dark:text-gray-100">{{ $comment->user->name }}</p> <div class="min-w-0 flex-1">
<div class="rounded-2xl border border-neutral-200 bg-white px-5 py-4 shadow-sm transition group-hover:border-neutral-300 dark:border-neutral-800 dark:bg-neutral-800 dark:group-hover:border-neutral-700">
{{-- Header --}}
<div class="mb-3 flex flex-wrap items-center gap-2">
@if($comment->isDeletedByModerator())
<span class="font-semibold text-neutral-900 dark:text-neutral-100">
@if (Auth::check() && (Auth::user()->hasRole(\App\Enums\UserRole::ADMINISTRATOR) || Auth::user()->hasRole(\App\Enums\UserRole::MODERATOR)))
Deleted ({{ $comment->user->name }})
@else
Deleted
@endif
</span>
@else
<span class="font-semibold text-neutral-900 dark:text-neutral-100">
{{ $comment->user->name }}
</span>
@endif
{{-- Badges --}}
@if($comment->user->hasRole(\App\Enums\UserRole::ADMINISTRATOR)) @if($comment->user->hasRole(\App\Enums\UserRole::ADMINISTRATOR))
<a data-te-toggle="tooltip" title="Admin"><i class="fa-solid fa-crown text-yellow-600"></i></a> <span class="inline-flex items-center rounded-full bg-yellow-100 px-2 py-0.5 text-xs font-medium text-yellow-700 dark:bg-yellow-500/10 dark:text-yellow-400">
<i class="fa-solid fa-crown mr-1"></i>
Admin
</span>
@endif @endif
@if($comment->user->hasRole(\App\Enums\UserRole::MODERATOR))
<span class="inline-flex items-center rounded-full bg-rose-100 px-2 py-0.5 text-xs font-medium text-rose-700 dark:bg-rose-500/10 dark:text-rose-400">
Moderator
</span>
@endif
@if($comment->user->hasRole(\App\Enums\UserRole::SUPPORTER)) @if($comment->user->hasRole(\App\Enums\UserRole::SUPPORTER))
<a data-te-toggle="tooltip" title="Badge of appreciation for the horny people supporting us! :3"><i class="fa-solid fa-hand-holding-heart text-rose-600"></i></a> <span class="inline-flex items-center rounded-full bg-pink-100 px-2 py-0.5 text-xs font-medium text-pink-700 dark:bg-pink-500/10 dark:text-pink-400">
<i class="fa-solid fa-heart mr-1"></i>
Supporter
</span>
@endif @endif
</div> </div>
<div class="mt-1 flex-grow w-full">
{{-- Body --}}
<div class="prose prose-sm max-w-none dark:prose-invert">
@if($comment->isDeletedByModerator())
<p class="italic text-neutral-500 dark:text-neutral-400">
Deleted by moderation.
</p>
@if (Auth::check() && (Auth::user()->hasRole(\App\Enums\UserRole::ADMINISTRATOR) || Auth::user()->hasRole(\App\Enums\UserRole::MODERATOR)))
<div class="mt-3 rounded-xl bg-neutral-100 p-3 text-sm dark:bg-neutral-800">
{!! $comment->presenter()->markdownBody() !!}
</div>
@endif
@else
@if ($isEditing) @if ($isEditing)
<form wire:submit.prevent="editComment">
<div> <form wire:submit.prevent="editComment" class="space-y-4">
<label for="comment" class="sr-only">Comment body</label>
<textarea id="comment" name="comment" rows="3" <textarea
class="bg-white dark:bg-neutral-700 shadow-sm block w-full focus:ring-rose-500 focus:border-rose-500 border-gray-300 dark:border-gray-400/40 text-gray-900 dark:text-gray-200 placeholder:text-gray-400 rounded-md rows="4"
@error('editState.body') border-red-500 @enderror" wire:model.defer="editState.body"
placeholder="Write something" wire:model.defer="editState.body"></textarea> class="w-full rounded-2xl border border-neutral-300 bg-white px-4 py-3 text-sm text-neutral-900 shadow-sm transition focus:border-rose-500 focus:outline-none focus:ring-4 focus:ring-rose-500/10 dark:border-neutral-700 dark:bg-neutral-950 dark:text-neutral-100 @error('editState.body') border-red-500 @enderror"
></textarea>
@error('editState.body') @error('editState.body')
<p class="mt-2 text-sm text-red-500">{{ $message }}</p> <p class="text-sm text-red-500">
{{ $message }}
</p>
@enderror @enderror
</div>
<div class="mt-3 flex items-center justify-between"> <div class="flex justify-end">
<button type="submit" <button
class="inline-flex items-center justify-center px-4 py-2 border border-transparent font-medium rounded-md shadow-sm text-white bg-rose-600 hover:bg-rose-700 focus:outline-none focus:ring-2 focus:ring-rose-500"> type="submit"
Edit class="rounded-xl bg-rose-600 px-4 py-2 text-sm font-medium text-white transition hover:bg-rose-700"
>
Save Changes
</button> </button>
</div> </div>
</form> </form>
@else @else
<div class="text-gray-700 dark:text-gray-200">{!! $comment->presenter()->markdownBody() !!}</div> <div class="text-gray-700 dark:text-gray-200">
@endif {!! $comment->presenter()->markdownBody() !!}
</div> </div>
<div class="mt-2 space-x-2 flex flex-row"> @endif
<span class="text-gray-500 dark:text-gray-300">
@endif
</div>
{{-- Footer --}}
<div class="mt-4 flex flex-wrap items-center gap-4 text-sm">
<span class="text-neutral-500 dark:text-neutral-400">
{{ $comment->presenter()->relativeCreatedAt() }} {{ $comment->presenter()->relativeCreatedAt() }}
</span> </span>
{{-- Like --}}
@guest @guest
<span data-te-toggle="tooltip" title="Please login to like the episode" class="text-gray-800 cursor-pointer dark:text-gray-200"> <span class="flex items-center gap-1 text-neutral-500 dark:text-neutral-400">
<i class="fa-regular fa-heart"></i> {{ $comment->likeCount() }} <i class="fa-regular fa-heart"></i>
{{ $comment->likeCount() }}
</span> </span>
@endguest @endguest
@auth @auth
<!-- Like Button --> <button
<button class="text-gray-800 dark:text-gray-200 leading-tight cursor-pointer whitespace-nowrap" wire:click="like"> wire:click="like"
class="flex items-center gap-1 text-neutral-500 transition hover:text-rose-600 dark:text-neutral-400 dark:hover:text-rose-400"
>
@if ($liked) @if ($liked)
<i class="fa-solid fa-heart text-rose-600"></i> {{ $likeCount }} <i class="fa-solid fa-heart text-rose-600"></i>
@else @else
<i class="fa-solid fa-heart"></i> {{ $likeCount }} <i class="fa-regular fa-heart"></i>
@endif @endif
{{ $likeCount }}
</button> </button>
@endauth @endauth
{{-- Actions --}}
@auth @auth
@if ($comment->depth() < 2) @if ($comment->depth() < 2)
<button wire:click="$toggle('isReplying')" type="button" class="text-gray-900 dark:text-gray-100 font-medium"> <button
wire:click="$toggle('isReplying')"
class="font-medium text-neutral-600 transition hover:text-neutral-900 dark:text-neutral-400 dark:hover:text-neutral-100"
>
Reply Reply
</button> </button>
@endif @endif
@can ('update', $comment) @can ('update', $comment)
<button wire:click="$toggle('isEditing')" type="button" class="text-gray-900 dark:text-gray-100 font-medium"> <button
wire:click="$toggle('isEditing')"
class="font-medium text-neutral-600 transition hover:text-neutral-900 dark:text-neutral-400 dark:hover:text-neutral-100"
>
Edit Edit
</button> </button>
@endcan @endcan
@can ('destroy', $comment) @can ('destroy', $comment)
<button x-data="{ <button
x-data="{
confirmCommentDeletion () { confirmCommentDeletion () {
if (window.confirm('Are you sure you want to delete this comment?')) { if (window.confirm('Delete this comment?')) {
@this.call('deleteComment'); @this.call('deleteComment');
} }
} }
}" }"
@click="confirmCommentDeletion" @click="confirmCommentDeletion"
type="button" class="font-medium text-red-500 transition hover:text-red-600"
class="text-gray-900 dark:text-gray-100 font-medium"
> >
Delete Delete
</button> </button>
@endcan @endcan
@can ('restore', $comment)
<button
wire:click="restoreComment"
class="font-medium text-emerald-600 transition hover:text-emerald-700"
>
Restore
</button>
@endcan
@endauth @endauth
</div>
</div>
</div> </div>
<div class="ml-14 mt-6">
@if ($isReplying)
<form wire:submit.prevent="postReply" class="my-4">
<div>
<label for="comment" class="sr-only">Reply body</label>
<textarea id="comment" name="comment" rows="3"
class="bg-white dark:bg-neutral-700 shadow-sm block w-full focus:ring-rose-500 focus:border-rose-500 border-gray-300 dark:border-gray-400/40 text-gray-900 dark:text-gray-200 placeholder:text-gray-400 rounded-md
@error('replyState.body') border-red-500 @enderror"
placeholder="Write something" wire:model.defer="replyState.body"></textarea>
@error('replyState.body')
<p class="mt-2 text-sm text-red-500">{{ $message }}</p>
@enderror
</div> </div>
<div class="mt-3 flex items-center justify-between">
<button type="submit" {{-- Reply Form --}}
class="inline-flex items-center justify-center px-4 py-2 border border-transparent font-medium rounded-md shadow-sm text-white bg-rose-600 hover:bg-rose-700 focus:outline-none focus:ring-2 focus:ring-rose-500"> @if ($isReplying)
Comment
<div class="mt-4 ml-2">
<form wire:submit.prevent="postReply" class="space-y-4">
<textarea
rows="3"
wire:model.defer="replyState.body"
placeholder="Write a reply..."
class="w-full rounded-2xl border border-neutral-300 bg-white px-4 py-3 text-sm text-neutral-900 shadow-sm transition focus:border-rose-500 focus:outline-none focus:ring-4 focus:ring-rose-500/10 dark:border-neutral-700 dark:bg-neutral-950 dark:text-neutral-100 @error('replyState.body') border-red-500 @enderror"
></textarea>
@error('replyState.body')
<p class="text-sm text-red-500">
{{ $message }}
</p>
@enderror
<div class="flex justify-end">
<button
type="submit"
class="rounded-xl bg-rose-600 px-4 py-2 text-sm font-medium text-white transition hover:bg-rose-700"
>
Reply
</button> </button>
</div> </div>
</form> </form>
</div>
@endif @endif
{{-- Replies --}}
@if ($comment->children->count())
<div class="mt-2 space-y-2 border-l-2 border-neutral-200 pl-6 dark:border-neutral-700">
@foreach ($comment->children as $child) @foreach ($comment->children as $child)
<livewire:comment :comment="$child" :key="$child->id"/> <livewire:comment :comment="$child" :key="$child->id"/>
@endforeach @endforeach
</div> </div>
@endif
</div>
</div>
</div> </div>
+65 -32
View File
@@ -1,60 +1,93 @@
<section> <section>
<div class="bg-white dark:bg-neutral-800 shadow sm:rounded-lg sm:overflow-hidden"> <div id="comments" class="overflow-hidden rounded-2xl border border-neutral-200 bg-white shadow-sm dark:border-neutral-800 dark:bg-neutral-900">
<div class="divide-y divide-gray-200 dark:divide-gray-400/40">
<div class="px-4 py-5 sm:px-6"> {{-- Header --}}
<h2 class="text-lg font-medium text-gray-900 dark:text-gray-200">Comments</h2> <div class="border-b border-neutral-200 px-6 py-5 dark:border-neutral-800">
<h2 class="text-xl font-semibold tracking-tight text-neutral-900 dark:text-neutral-100">
Comments
</h2>
</div> </div>
<div>
<!-- Comment Input --> {{-- Comment Form --}}
<div class="bg-gray-50 dark:bg-neutral-800 px-4 py-6 sm:px-6"> <div class="border-b border-neutral-200 bg-neutral-50/80 px-6 py-6 dark:border-neutral-800 dark:bg-neutral-950/40">
@auth @auth
<div class="flex"> <div class="flex gap-4">
<div class="flex-shrink-0 mr-4"> <img
<img class="h-10 w-10 rounded-full" src="{{ auth()->user()->getAvatar() }}" alt="{{ auth()->user()->name }}"> class="h-11 w-11 rounded-full object-cover ring-2 ring-white dark:ring-neutral-800"
</div> src="{{ auth()->user()->getAvatar() }}"
<div class="min-w-0 flex-1"> alt="{{ auth()->user()->name }}"
<form wire:submit.prevent="postComment"> >
<div class="flex-1">
<form wire:submit.prevent="postComment" class="space-y-4">
<div> <div>
<label for="comment" class="sr-only">Comment body</label> <label for="comment" class="sr-only">
<textarea id="comment" name="comment" rows="3" Comment body
class="peer block min-h-[auto] w-full border-1 bg-transparent px-3 py-[0.32rem] leading-[1.6] outline-none transition-all duration-200 ease-linear dark:placeholder:text-neutral-200 border-gray-300 dark:border-neutral-950 dark:bg-neutral-900 dark:text-gray-300 focus:border-rose-500 dark:focus:border-rose-600 focus:ring-rose-500 dark:focus:ring-rose-600 rounded-md shadow-sm </label>
@error('newCommentState.body') border-red-500 @enderror"
placeholder="Write something" wire:model.defer="newCommentState.body"></textarea> <textarea
id="comment"
rows="4"
wire:model.defer="newCommentState.body"
placeholder="Write a comment..."
class="w-full rounded-2xl border border-neutral-300 bg-white px-4 py-3 text-sm text-neutral-900 placeholder:text-neutral-400 shadow-sm transition focus:border-rose-500 focus:outline-none focus:ring-4 focus:ring-rose-500/10 dark:border-neutral-700 dark:bg-neutral-900 dark:text-neutral-100 dark:placeholder:text-neutral-500 dark:focus:border-rose-500 @error('newCommentState.body') border-red-500 @enderror"
></textarea>
@error('newCommentState.body') @error('newCommentState.body')
<p class="mt-2 text-sm text-red-500">{{ $message }}</p> <p class="mt-2 text-sm text-red-500">
{{ $message }}
</p>
@enderror @enderror
</div> </div>
<div class="mt-3 flex items-center justify-between">
<button type="submit" <div class="flex justify-end">
class="inline-flex items-center justify-center px-4 py-2 border border-transparent font-medium rounded-md shadow-sm text-white bg-rose-600 hover:bg-rose-700 focus:outline-none focus:ring-2 focus:ring-rose-500"> <button
Comment type="submit"
class="inline-flex items-center rounded-xl bg-rose-600 px-5 py-2.5 text-sm font-medium text-white transition hover:bg-rose-700 focus:outline-none focus:ring-4 focus:ring-rose-500/30"
>
Post Comment
</button> </button>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
@endauth @endauth
@guest @guest
<p class="text-gray-900 dark:text-gray-200">Log in to comment.</p> <div class="rounded-xl border border-dashed border-neutral-300 p-6 text-center dark:border-neutral-700">
<p class="text-sm text-neutral-600 dark:text-neutral-400">
Log in to join the discussion.
</p>
</div>
@endguest @endguest
</div> </div>
<!-- Comments --> {{-- Comments --}}
<div class="px-4 py-6 sm:px-6"> <div class="px-6 py-6">
<div class="space-y-8">
@if ($comments->isNotEmpty()) @if ($comments->isNotEmpty())
<div class="space-y-6">
@foreach($comments as $comment) @foreach($comments as $comment)
<livewire:comment :comment="$comment" :key="$comment->id"/> <livewire:comment :comment="$comment" :key="$comment->id"/>
@endforeach @endforeach
</div>
<div class="mt-8">
{{ $comments->links('pagination::tailwind') }} {{ $comments->links('pagination::tailwind') }}
</div>
@else @else
<p class="text-gray-900 dark:text-gray-200">No comments yet.</p>
<div class="rounded-2xl border border-dashed border-neutral-300 py-12 text-center dark:border-neutral-700">
<p class="text-neutral-500 dark:text-neutral-400">
No comments yet.
</p>
</div>
@endif @endif
</div> </div>
</div> </div>
</div>
</div>
</div>
</section> </section>
@@ -8,10 +8,18 @@
</div> </div>
<div class="flex flex-col text-center w-full"> <div class="flex flex-col text-center w-full">
@if($fillNumbers) @if($fillNumbers)
@if($version)
<p class="text-lg">Episode {{ str_pad($episodeNumber, 2, '0', STR_PAD_LEFT) }} ({{ $version }})</p>
@else
<p class="text-lg">Episode {{ str_pad($episodeNumber, 2, '0', STR_PAD_LEFT) }}</p> <p class="text-lg">Episode {{ str_pad($episodeNumber, 2, '0', STR_PAD_LEFT) }}</p>
@endif
@else
@if($version)
<p class="text-lg">Episode {{ $episodeNumber }} ({{ $version }})</p>
@else @else
<p class="text-lg">Episode {{ $episodeNumber }}</p> <p class="text-lg">Episode {{ $episodeNumber }}</p>
@endif @endif
@endif
<p class="text-xs">{{ $fileExtension }} MKV {{ $fileSize ?? '' }}</p> <p class="text-xs">{{ $fileExtension }} MKV {{ $fileSize ?? '' }}</p>
<p class="text-xs" id="count-{{ $downloadId }}">Downloaded {{ $downloadCount }} times</p> <p class="text-xs" id="count-{{ $downloadId }}">Downloaded {{ $downloadCount }} times</p>
</div> </div>
@@ -1,13 +1,9 @@
<div> <div>
@if (Auth::check()) <button class="inline-flex font-bold items-center gap-2 rounded-xl bg-gray-100 px-4 py-2 text-gray-700 dark:bg-white/5 dark:text-gray-200" wire:click="like" wire:poll.90000ms="update">
<div class="text-xl text-gray-800 dark:text-gray-200 leading-tight cursor-pointer whitespace-nowrap" wire:click="like" wire:poll.90000ms="update">
@else
<div data-te-toggle="tooltip" title="Please login to like the episode" class="text-xl text-gray-800 dark:text-gray-200 leading-tight cursor-pointer whitespace-nowrap" wire:poll.60000ms="update">
@endif
@if ($liked) @if ($liked)
<i class="fa-solid fa-heart pr-[4px] text-rose-600"></i> {{ $likeCount }} <i class="fa-solid fa-heart pr-[4px] text-rose-600"></i> {{ $likeCount }}
@else @else
<i class="fa-regular fa-heart pr-[4px]"></i> {{ $likeCount }} <i class="fa-regular fa-heart pr-[4px]"></i> {{ $likeCount }}
@endif @endif
</div> </button>
</div> </div>
@@ -1,4 +1,4 @@
<div class="py-24"> <div class="py-10">
<div class="mx-auto sm:px-6 lg:px-8 space-y-6 max-w-[100%] xl:max-w-[95%] 2xl:max-w-[90%]"> <div class="mx-auto sm:px-6 lg:px-8 space-y-6 max-w-[100%] xl:max-w-[95%] 2xl:max-w-[90%]">
@include('livewire.partials.search-filter') @include('livewire.partials.search-filter')
</div> </div>
@@ -24,5 +24,4 @@
</div> </div>
{{ $episodes->appends(['tags' => $selectedtags])->links('pagination::tailwind') }} {{ $episodes->appends(['tags' => $selectedtags])->links('pagination::tailwind') }}
</div> </div>
@vite(['resources/js/preview.js'])
</div> </div>
@@ -1,90 +1,141 @@
<!-- Search Filter --> <!-- Search Filters -->
<div> <div>
<div class="p-4 sm:p-8 bg-white/40 dark:bg-neutral-950/40 backdrop-blur shadow sm:rounded-lg"> <div class="rounded-2xl border border-neutral-200/70 bg-white/80 p-4 shadow-sm backdrop-blur-xl dark:border-neutral-800 dark:bg-neutral-950/70 space-y-4">
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 gap-4">
<!-- Title --> <!-- Filters Grid -->
<div> <div class="grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-5">
<label for="live-search" class="mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white">Search</label>
<div class="relative right-2 left-0 sm:left-2 transition-all"> <!-- Search -->
<div class="absolute inset-y-0 left-2 flex items-center pl-3 pointer-events-none"> <div class="xl:col-span-2">
<svg class="w-4 h-4 text-gray-500 dark:text-gray-400" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20"> <label for="live-search" class="sr-only">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z" /> {{ __('search.search-hentai') }}
</label>
<div class="relative">
<!-- Search Icon -->
<div class="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-4">
<svg class="h-5 w-5 text-neutral-400" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z" />
</svg> </svg>
</div> </div>
<input wire:model.live.debounce.600ms="search" type="search" id="live-search" class="block w-full p-4 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-rose-800 focus:border-rose-900 dark:bg-neutral-900 dark:border-neutral-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-rose-800 dark:focus:border-rose-900" placeholder="{{ __('search.search-hentai') }}" required> <!-- Input -->
<input
wire:model.live.debounce.500ms="search"
type="search"
id="live-search"
placeholder="{{ __('search.search-hentai') }}"
class="w-full rounded-xl border border-neutral-300 bg-white py-5 pl-12 pr-12 text-sm text-neutral-900 shadow-sm transition focus:border-rose-500 focus:outline-none focus:ring-4 focus:ring-rose-500/20 dark:border-neutral-700 dark:bg-neutral-900 dark:text-white dark:placeholder-neutral-500"
/>
<div class="absolute right-0 top-[11px]" wire:loading> <!-- Loading -->
<svg aria-hidden="true" class="inline w-8 h-8 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-pink-600" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg"> <div wire:loading.class="opacity-100" class="opacity-0">
<path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor" /> <div class="absolute inset-y-0 right-3 flex items-center">
<path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="currentFill" /> <svg class="h-5 w-5 animate-spin text-rose-500" viewBox="0 0 24 24" fill="none">
<circle class="opacity-20" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
<path class="opacity-90" fill="currentColor"
d="M22 12a10 10 0 0 1-10 10V18a6 6 0 0 0 6-6h4Z">
</path>
</svg> </svg>
</div> </div>
</div> </div>
</div> </div>
</div>
<!-- Genres --> <!-- Genres -->
<div> <button
<div class="relative right-2 left-0 sm:left-2 transition-all"> type="button"
<div class="absolute inset-y-0 left-2 flex items-center pl-3 pointer-events-none"> data-te-toggle="modal"
<i class="fa-solid fa-sliders text-gray-500 dark:text-gray-400"></i> data-te-target="#modalGenres"
</div> class="group flex items-center gap-3 rounded-xl border border-neutral-300 bg-white px-4 py-3 text-left shadow-sm transition hover:border-rose-400 hover:bg-rose-50 dark:border-neutral-700 dark:bg-neutral-900 dark:hover:bg-neutral-800"
<p data-te-toggle="modal" data-te-target="#modalGenres" data-te-ripple-init data-te-ripple-color="light" id="genres-filter" class="block cursor-pointer w-full p-4 pl-10 text-sm text-gray-500 dark:text-gray-400 border border-gray-300 rounded-lg bg-gray-50 focus:ring-rose-800 focus:border-rose-900 dark:bg-neutral-900 dark:border-neutral-600 dark:placeholder-gray-400 dark:focus:ring-rose-800 dark:focus:border-rose-900"> >
<i class="fa-solid fa-sliders text-neutral-400 group-hover:text-rose-500"></i>
<div class="flex flex-col">
<span class="text-xs font-medium uppercase tracking-wide text-neutral-400">
Genres
</span>
<span class="text-sm text-neutral-700 dark:text-neutral-200">
@if($tagcount === 0) @if($tagcount === 0)
Select Genres Select Genres
@elseif($tagcount === 1) @elseif($tagcount === 1)
Selected {{$tagcount }} Genre 1 Genre Selected
@elseif($tagcount > 1) @else
Selected {{$tagcount }} Genres {{ $tagcount }} Genres Selected
@endif @endif
</p> </span>
</div>
</div> </div>
</button>
<!-- Genres Blacklist --> <!-- Blacklist -->
<div> <button
<div class="relative right-2 left-0 sm:left-2 transition-all"> type="button"
<div class="absolute inset-y-0 left-2 flex items-center pl-3 pointer-events-none"> data-te-toggle="modal"
<i class="fa-solid fa-shield text-gray-500 dark:text-gray-400"></i> data-te-target="#modalBlacklist"
</div> class="group flex items-center gap-3 rounded-xl border border-neutral-300 bg-white px-4 py-3 text-left shadow-sm transition hover:border-rose-400 hover:bg-rose-50 dark:border-neutral-700 dark:bg-neutral-900 dark:hover:bg-neutral-800"
<p data-te-toggle="modal" data-te-target="#modalBlacklist" data-te-ripple-init data-te-ripple-color="light" id="blacklist-filter" class="block cursor-pointer w-full p-4 pl-10 text-sm text-gray-500 dark:text-gray-400 border border-gray-300 rounded-lg bg-gray-50 focus:ring-rose-800 focus:border-rose-900 dark:bg-neutral-900 dark:border-neutral-600 dark:placeholder-gray-400 dark:focus:ring-rose-800 dark:focus:border-rose-900"> >
<i class="fa-solid fa-shield text-neutral-400 group-hover:text-rose-500"></i>
<div class="flex flex-col">
<span class="text-xs font-medium uppercase tracking-wide text-neutral-400">
Blacklist
</span>
<span class="text-sm text-neutral-700 dark:text-neutral-200">
@if($blacklistcount === 0) @if($blacklistcount === 0)
Select Blacklist Select Blacklist
@elseif($blacklistcount === 1) @elseif($blacklistcount === 1)
Selected {{ $blacklistcount }} Blacklist Item 1 Item Selected
@elseif($blacklistcount > 1) @else
Selected {{ $blacklistcount }} Blacklist Items {{ $blacklistcount }} Items Selected
@endif @endif
</p> </span>
</div>
</div> </div>
</button>
<!-- Studios --> <!-- Studios -->
<div> <button
<div class="relative right-2 left-0 sm:left-2 transition-all"> type="button"
<div class="absolute inset-y-0 left-2 flex items-center pl-3 pointer-events-none"> data-te-toggle="modal"
<i class="fa-solid fa-microphone-lines text-gray-500 dark:text-gray-400"></i> data-te-target="#modalStudios"
</div> class="group flex items-center gap-3 rounded-xl border border-neutral-300 bg-white px-4 py-3 text-left shadow-sm transition hover:border-rose-400 hover:bg-rose-50 dark:border-neutral-700 dark:bg-neutral-900 dark:hover:bg-neutral-800"
<p data-te-toggle="modal" data-te-target="#modalStudios" data-te-ripple-init data-te-ripple-color="light" id="studios-filter" class="block cursor-pointer w-full p-4 pl-10 text-sm text-gray-500 dark:text-gray-400 border border-gray-300 rounded-lg bg-gray-50 focus:ring-rose-800 focus:border-rose-900 dark:bg-neutral-900 dark:border-neutral-600 dark:placeholder-gray-400 dark:focus:ring-rose-800 dark:focus:border-rose-900"> >
<i class="fa-solid fa-microphone-lines text-neutral-400 group-hover:text-rose-500"></i>
<div class="flex flex-col">
<span class="text-xs font-medium uppercase tracking-wide text-neutral-400">
Studios
</span>
<span class="text-sm text-neutral-700 dark:text-neutral-200">
@if($studiocount === 0) @if($studiocount === 0)
Select Studios Select Studios
@elseif($studiocount === 1) @elseif($studiocount === 1)
Selected {{ $studiocount }} Studio 1 Studio Selected
@elseif($studiocount > 1) @else
Selected {{ $studiocount }} Studios {{ $studiocount }} Studios Selected
@endif @endif
</p> </span>
</div> </div>
</button>
</div> </div>
<!-- Ordering --> <!-- Bottom Controls -->
<div class="grid grid-cols-2"> <div class="mt-4 flex flex-col gap-4 border-t border-neutral-200 pt-4 dark:border-neutral-800 lg:flex-row lg:items-center lg:justify-between">
<div class="relative right-2 left-0 sm:left-2 transition-all">
<div class="absolute inset-y-0 left-2 flex items-center pl-3 pointer-events-none"> <!-- Selects -->
<i class="fa-solid fa-sort text-gray-500 dark:text-gray-400"></i> <div class="grid grid-cols-1 gap-4 sm:grid-cols-2">
</div>
<select wire:model.live="order" class="block w-full p-4 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-rose-800 focus:border-rose-900 dark:bg-neutral-900 dark:border-neutral-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-rose-800 dark:focus:border-rose-900"> <!-- Order -->
<div class="relative">
<i class="fa-solid fa-sort pointer-events-none absolute left-4 top-1/2 -translate-y-1/2 text-neutral-400"></i>
<select
wire:model.live="order"
class="w-full appearance-none rounded-xl border border-neutral-300 bg-white py-3 pl-11 pr-10 text-sm text-neutral-900 shadow-sm transition focus:border-rose-500 focus:outline-none focus:ring-4 focus:ring-rose-500/20 dark:border-neutral-700 dark:bg-neutral-900 dark:text-white"
>
<option value="az">A-Z</option> <option value="az">A-Z</option>
<option value="za">Z-A</option> <option value="za">Z-A</option>
<option value="recently-uploaded">{{ __('home.recently-uploaded') }}</option> <option value="recently-uploaded">{{ __('home.recently-uploaded') }}</option>
@@ -95,28 +146,40 @@
</select> </select>
</div> </div>
<div class="relative right-2 left-0 ml-2 sm:left-2 transition-all"> <!-- View -->
<div class="absolute inset-y-0 left-2 flex items-center pl-3 pointer-events-none"> <div class="relative">
<i class="fa-solid fa-list text-gray-500 dark:text-gray-400"></i> <i class="fa-solid fa-list pointer-events-none absolute left-4 top-1/2 -translate-y-1/2 text-neutral-400"></i>
</div>
<select wire:model.live="view" class="block w-full p-4 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-rose-800 focus:border-rose-900 dark:bg-neutral-900 dark:border-neutral-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-rose-800 dark:focus:border-rose-900"> <select
wire:model.live="view"
class="w-full appearance-none rounded-xl border border-neutral-300 bg-white py-3 pl-11 pr-10 text-sm text-neutral-900 shadow-sm transition focus:border-rose-500 focus:outline-none focus:ring-4 focus:ring-rose-500/20 dark:border-neutral-700 dark:bg-neutral-900 dark:text-white"
>
<option value="thumbnail">Thumbnail</option> <option value="thumbnail">Thumbnail</option>
<option value="poster">Poster</option> <option value="poster">Poster</option>
</select> </select>
</div> </div>
</div> </div>
</div>
<!-- Auth Options -->
@auth @auth
<div class="float-right pt-1"> <label
<input class="w-4 h-4 text-rose-600 bg-gray-100 border-gray-300 rounded focus:ring-rose-500 dark:focus:ring-rose-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600" for="checkBoxHideWatched"
type="checkbox" wire:model.live="hideWatched" value="true" id="checkBoxHideWatched" /> class="flex cursor-pointer items-center gap-3 text-sm text-neutral-700 dark:text-neutral-300"
<label class="inline-block hover:cursor-pointer dark:text-white" for="checkBoxHideWatched"> >
Hide watched <input
id="checkBoxHideWatched"
type="checkbox"
wire:model.live="hideWatched"
class="h-4 w-4 rounded border-neutral-300 text-rose-600 focus:ring-rose-500 dark:border-neutral-700 dark:bg-neutral-800"
/>
<span>Hide watched</span>
</label> </label>
</div>
@endauth @endauth
</div> </div>
</div>
<!-- Modals -->
@include('modals.filter-genres') @include('modals.filter-genres')
@include('modals.filter-studios') @include('modals.filter-studios')
@include('modals.filter-blacklist') @include('modals.filter-blacklist')
@@ -1,86 +1,3 @@
<div wire:key="episode-{{ $episode->id }}"> <div wire:key="episode-{{ $episode->id }}">
@if ($searchIsJpn) <x-episode-cover :episode="$episode" :view="$view" :displayjapanese="$searchIsJpn" />
<div class="relative p-1 mb-14 w-full transition duration-300 ease-in-out md:p-2 md:hover:-translate-y-1 md:hover:scale-110"
data-thumbs="{{ optional($episode->gallery)->pluck('thumbnail_url') }}">
@else
<div class="relative p-1 mb-8 w-full transition duration-300 ease-in-out md:p-2 md:hover:-translate-y-1 md:hover:scale-110"
data-thumbs="{{ optional($episode->gallery)->pluck('thumbnail_url') }}">
@endif
<a class="hover:text-blue-600" href="{{ route('hentai.index', ['title' => $episode->slug]) }}">
<div class="absolute w-[95%] top-[38%] text-center z-10">
<svg aria-hidden="true"
class="inline mr-2 w-8 h-8 text-gray-200 animate-spin dark:text-gray-600 fill-pink-600"
viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z"
fill="currentColor" />
<path
d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z"
fill="currentFill" />
</svg>
</div>
@switch(true)
@case($view === 'thumbnail')
<img alt="{{ $episode->title }} - {{ $episode->episode }}" loading="lazy" width="500"
class="block object-cover object-center relative z-20 rounded-lg aspect-video"
src="{{ optional($episode->gallery->first())->thumbnail_url }}">
@if ($episode->hasAutoTrans())
<p
class="absolute right-1 md:right-2 bottom-1 md:bottom-2 bg-blue-600/80 !text-white rounded-tl-lg rounded-br-lg p-1 pr-2 pl-2 font-semibold text-sm z-30">
<i class="fa-regular fa-closed-captioning"></i> Multi-Subs
</p>
@endif
@break
@case($view === 'poster')
<img alt="{{ $episode->title }} - {{ $episode->episode }}" loading="lazy" width="400"
class="block relative rounded-lg object-cover object-center aspect-[11/16] z-20"
src="{{ $episode->cover_url }}">
@break
@endswitch
@php $problematic = cache()->rememberForever('episodeProblematic'.$episode->id, fn () => $episode->getProblematicTags()); @endphp
@if (!empty($problematic))
<p
class="absolute left-1 md:left-2 top-1 md:top-2 bg-red-700/70 !text-white rounded-br-lg rounded-tl-lg p-1 pr-2 pl-2 font-semibold text-sm z-30">
<i class="fa-solid fa-triangle-exclamation"></i> {{ $problematic }}
</p>
@endif
@if (auth()->check() && $episode->userWatched(auth()->user()->id))
<p
class="absolute right-1 md:right-2 top-1 md:top-2 bg-green-600/80 !text-white rounded-bl-lg rounded-tr-lg p-1 pr-2 pl-2 font-semibold text-sm z-30">
{{ $episode->getResolution() }}</p>
<p
class="absolute left-1 md:left-2 bottom-1 md:bottom-2 bg-green-600/80 !text-white rounded-bl-lg rounded-tr-lg p-1 pr-2 pl-2 font-semibold text-sm z-30">
<i class="fa-regular fa-eye"></i> {{ $episode->viewCountFormatted() }} <i
class="fa-regular fa-heart"></i>
{{ $episode->likeCount() }} <i class="fa-regular fa-comment"></i> {{ $episode->commentCount() }}
</p>
@else
<p
class="absolute right-1 md:right-2 top-1 md:top-2 bg-rose-700/70 !text-white rounded-bl-lg rounded-tr-lg p-1 pr-2 pl-2 font-semibold text-sm z-30">
{{ $episode->getResolution() }}</p>
<p
class="absolute left-1 md:left-2 bottom-1 md:bottom-2 bg-rose-700/70 !text-white rounded-bl-lg rounded-tr-lg p-1 pr-2 pl-2 font-semibold text-sm z-30">
<i class="fa-regular fa-eye"></i>
{{ $episode->viewCountFormatted() }}
<i class="fa-regular fa-heart"></i> {{ $episode->likeCount() }} <i class="fa-regular fa-comment"></i>
{{ $episode->commentCount() }}
</p>
@endif
<div class="absolute w-[95%] grid grid-cols-1 text-center">
@if ($searchIsJpn)
<p class="text-sm text-center text-black dark:text-white">{{ $episode->title }}
({{ $episode->title_jpn }}) - {{ $episode->episode }}</p>
@else
<p class="text-sm text-center text-black dark:text-white">{{ $episode->title }} -
{{ $episode->episode }}</p>
@endif
</div>
</a>
</div>
</div> </div>
@@ -24,5 +24,4 @@
</div> </div>
{{ $episodes->appends(['tags' => $selectedtags])->links('pagination::tailwind') }} {{ $episodes->appends(['tags' => $selectedtags])->links('pagination::tailwind') }}
</div> </div>
@vite(['resources/js/preview.js'])
</div </div
@@ -10,10 +10,6 @@
</p> </p>
</div> </div>
@php
$isActive = auth()->user()->hasRole(\App\Enums\UserRole::SUPPORTER);
@endphp
<span class="inline-flex items-center gap-2 rounded-full px-3 py-1 text-sm font-medium border <span class="inline-flex items-center gap-2 rounded-full px-3 py-1 text-sm font-medium border
{{ $isActive ? 'bg-green-500/10 text-green-300 border-green-500/20' : 'bg-red-500/10 text-red-300 border-red-500/20' }}"> {{ $isActive ? 'bg-green-500/10 text-green-300 border-green-500/20' : 'bg-red-500/10 text-red-300 border-red-500/20' }}">
<span class="h-2 w-2 rounded-full {{ $isActive ? 'bg-green-400' : 'bg-red-400' }}"></span> <span class="h-2 w-2 rounded-full {{ $isActive ? 'bg-green-400' : 'bg-red-400' }}"></span>
@@ -1,5 +0,0 @@
<div>
<a class="text-xl text-gray-800 dark:text-gray-200 leading-tight whitespace-nowrap" wire:poll.90000ms="update">
<i class="fa-regular fa-eye pr-0.5"></i> {{ $viewCount }}
</a>
</div>
+3 -3
View File
@@ -12,10 +12,10 @@
</p> </p>
</div> </div>
<div class="flex justify-center"> <div class="flex justify-center">
<div class="grid grid-cols-1 gap-2 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5"> <div class="grid grid-cols-1 gap-2 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-4">
@foreach ($episodes as $episode) @foreach ($episodes as $episode)
<div class="mt-2 mb-6 ml-4"> <div class="mt-2 mb-6 ml-4">
<x-episode-thumbnail :episode="$episode->episode" /> <x-episode-cover :episode="$episode->episode" view="thumbnail" />
</div> </div>
@endforeach @endforeach
</div> </div>
@@ -25,4 +25,4 @@
</ol> </ol>
{{ $watched->links('pagination::tailwind') }} {{ $watched->links('pagination::tailwind') }}
</div> </div>
</div </div>
@@ -1,8 +1,14 @@
@auth @auth
<!--Verically centered modal--> <div
<div data-te-modal-init class="fixed left-0 top-0 z-[1055] hidden h-full w-full overflow-y-auto overflow-x-hidden outline-none" id="modalAddToPlaylist" tabindex="-1" aria-labelledby="Playlist" aria-modal="true" role="dialog"> data-te-modal-init
<div data-te-modal-dialog-ref class="pointer-events-none relative flex min-h-[calc(100%-1rem)] w-auto translate-y-[-50px] items-center opacity-0 transition-all duration-300 ease-in-out min-[576px]:mx-auto min-[576px]:mt-7 min-[576px]:min-h-[calc(100%-3.5rem)] min-[576px]:max-w-[95%] md:min-[576px]:max-w-[90%] lg:min-[576px]:max-w-[80%] xl:min-[576px]:max-w-[70%] 2xl:min-[576px]:max-w-[30%]"> id="modalAddToPlaylist"
<div class="pointer-events-auto relative flex w-full flex-col rounded-md border-none bg-white bg-clip-padding text-current shadow-lg outline-none dark:bg-neutral-800"> tabindex="-1"
aria-modal="true"
role="dialog"
class="fixed inset-0 z-[1055] hidden overflow-y-auto bg-black/60 backdrop-blur-sm"
>
<div data-te-modal-dialog-ref class="flex min-h-screen items-center justify-center p-4">
<div class="relative w-full max-w-2xl overflow-hidden rounded-2xl border border-neutral-200 bg-white shadow-2xl dark:border-neutral-700 dark:bg-neutral-900">
<x-modal-header :title="__('Add to Playlist')" /> <x-modal-header :title="__('Add to Playlist')" />
<!--Modal body--> <!--Modal body-->
@@ -26,11 +32,16 @@
<x-input-error :messages="$errors->get('playlist')" class="mt-2" /> <x-input-error :messages="$errors->get('playlist')" class="mt-2" />
</div> </div>
<div class="flex flex-shrink-0 flex-wrap items-center justify-end rounded-b-md p-4"> <div class="flex flex-shrink-0 flex-wrap items-center justify-end rounded-b-md p-4 gap-3">
<a id="playlist-cancel" class="inline-block cursor-pointer rounded bg-primary-100 px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-primary-700 transition duration-150 ease-in-out hover:bg-primary-accent-100 focus:bg-primary-accent-100 focus:outline-none focus:ring-0 active:bg-primary-accent-200" data-te-modal-dismiss data-te-ripple-init data-te-ripple-color="light"> <a
data-te-modal-dismiss
id="playlist-cancel"
class="cursor-pointer rounded-xl border border-neutral-300 px-5 py-2.5 text-sm font-medium text-neutral-700 transition hover:bg-neutral-100 dark:border-neutral-600 dark:text-neutral-200 dark:hover:bg-neutral-800">
Cancel Cancel
</a> </a>
<a id="playlist-add" class="ml-1 cursor-pointer inline-block rounded bg-rose-600 px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-white transition duration-150 ease-in-out hover:bg-rose-700 focus:bg-rose-600" data-te-ripple-init data-te-ripple-color="light"> <a
id="playlist-add"
class="cursor-pointer rounded-xl bg-rose-600 px-5 py-2.5 text-sm font-semibold text-white shadow-lg shadow-rose-600/20 transition hover:bg-rose-700">
Add Add
</a> </a>
</div> </div>
@@ -52,7 +63,9 @@
</div> </div>
<div class="flex flex-shrink-0 flex-wrap items-center justify-end rounded-b-md p-4"> <div class="flex flex-shrink-0 flex-wrap items-center justify-end rounded-b-md p-4">
<a id="playlist-create-and-add" class="ml-1 cursor-pointer inline-block rounded bg-rose-600 px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-white transition duration-150 ease-in-out hover:bg-rose-700 focus:bg-rose-600" data-te-ripple-init data-te-ripple-color="light"> <a
id="playlist-create-and-add"
class="cursor-pointer rounded-xl bg-rose-600 px-5 py-2.5 text-sm font-semibold text-white shadow-lg shadow-rose-600/20 transition hover:bg-rose-700">
Create and Add Episode Create and Add Episode
</a> </a>
</div> </div>
@@ -1,50 +0,0 @@
<!--Verically centered modal-->
<div
data-te-modal-init
class="fixed left-0 top-0 z-[1055] hidden h-full w-full overflow-y-auto overflow-x-hidden outline-none"
id="comment-modal-{{ $comment->getKey() }}"
tabindex="-1"
aria-labelledby="exampleModalCenterTitle"
aria-modal="true"
role="dialog">
<div data-te-modal-dialog-ref class="pointer-events-none relative flex min-h-[calc(100%-1rem)] w-auto translate-y-[-50px] items-center opacity-0 transition-all duration-300 ease-in-out min-[576px]:mx-auto min-[576px]:mt-7 min-[576px]:min-h-[calc(100%-3.5rem)] min-[576px]:max-w-[95%] md:min-[576px]:max-w-[90%] lg:min-[576px]:max-w-[80%] xl:min-[576px]:max-w-[70%] 2xl:min-[576px]:max-w-[40%]">
<div class="pointer-events-auto relative flex w-full flex-col rounded-md border-none bg-white bg-clip-padding text-current shadow-lg outline-none dark:bg-neutral-800">
<x-modal-header :title="__('comments::comments.edit_comment')" />
<!--Modal body-->
<div class="relative p-4">
<form method="POST" action="{{ route('comments.update', $comment->getKey()) }}">
@method('PUT')
@csrf
<div class="modal-body">
<div class="form-group">
<label class="mb-2 leading-tight text-gray-800 dark:text-gray-200 w-full" for="message">@lang('comments::comments.update_your_message_here')</label>
<textarea class="peer block min-h-[auto] w-full border-1 bg-transparent px-3 py-[0.32rem] leading-[1.6] outline-none transition-all duration-200 ease-linear dark:placeholder:text-neutral-200 border-gray-300 dark:border-neutral-950 dark:bg-neutral-900 dark:text-gray-300 focus:border-rose-500 dark:focus:border-rose-600 focus:ring-rose-500 dark:focus:ring-rose-600 rounded-md shadow-sm" name="message" rows="3">{{ $comment->comment }}</textarea>
</div>
</div>
<div class="flex flex-shrink-0 flex-wrap items-center justify-end rounded-b-md p-4">
<button
type="button"
id="modal-blacklist-filter-close-bottom"
class="inline-block rounded bg-primary-100 px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-primary-700 transition duration-150 ease-in-out hover:bg-primary-accent-100 focus:bg-primary-accent-100 focus:outline-none focus:ring-0 active:bg-primary-accent-200"
data-te-modal-dismiss
data-te-ripple-init
data-te-ripple-color="light">
@lang('comments::comments.cancel')
</button>
<button
type="submit"
id="modal-blacklist-filter-save"
class="ml-1 inline-block rounded bg-rose-600 px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-white transition duration-150 ease-in-out hover:bg-rose-700 focus:bg-rose-600"
data-te-modal-dismiss
data-te-ripple-init
data-te-ripple-color="light">
@lang('comments::comments.update')
</button>
</div>
</form>
</div>
</div>
</div>
</div>
@@ -1,49 +0,0 @@
<!--Verically centered modal-->
<div
data-te-modal-init
class="fixed left-0 top-0 z-[1055] hidden h-full w-full overflow-y-auto overflow-x-hidden outline-none"
id="reply-modal-{{ $comment->getKey() }}"
tabindex="-1"
aria-labelledby="exampleModalCenterTitle"
aria-modal="true"
role="dialog">
<div data-te-modal-dialog-ref class="pointer-events-none relative flex min-h-[calc(100%-1rem)] w-auto translate-y-[-50px] items-center opacity-0 transition-all duration-300 ease-in-out min-[576px]:mx-auto min-[576px]:mt-7 min-[576px]:min-h-[calc(100%-3.5rem)] min-[576px]:max-w-[95%] md:min-[576px]:max-w-[90%] lg:min-[576px]:max-w-[80%] xl:min-[576px]:max-w-[70%] 2xl:min-[576px]:max-w-[40%]">
<div class="pointer-events-auto relative flex w-full flex-col rounded-md border-none bg-white bg-clip-padding text-current shadow-lg outline-none dark:bg-neutral-800">
<x-modal-header :title="__('comments::comments.reply_to_comment')" />
<!--Modal body-->
<div class="relative p-4">
<form method="POST" action="{{ route('comments.reply', $comment->getKey()) }}">
@csrf
<div class="modal-body">
<div class="form-group">
<label class="mb-2 leading-tight text-gray-800 dark:text-gray-200 w-full" for="message">@lang('comments::comments.enter_your_message_here')</label>
<textarea required class="peer block min-h-[auto] w-full border-1 bg-transparent px-3 py-[0.32rem] leading-[1.6] outline-none transition-all duration-200 ease-linear dark:placeholder:text-neutral-200 border-gray-300 dark:border-neutral-950 dark:bg-neutral-900 dark:text-gray-300 focus:border-rose-500 dark:focus:border-rose-600 focus:ring-rose-500 dark:focus:ring-rose-600 rounded-md shadow-sm" name="message" rows="3"></textarea>
</div>
</div>
<div class="flex flex-shrink-0 flex-wrap items-center justify-end rounded-b-md p-4">
<button
type="button"
id="modal-blacklist-filter-close-bottom"
class="inline-block rounded bg-primary-100 px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-primary-700 transition duration-150 ease-in-out hover:bg-primary-accent-100 focus:bg-primary-accent-100 focus:outline-none focus:ring-0 active:bg-primary-accent-200"
data-te-modal-dismiss
data-te-ripple-init
data-te-ripple-color="light">
@lang('comments::comments.cancel')
</button>
<button
type="submit"
id="modal-blacklist-filter-save"
class="ml-1 inline-block rounded bg-rose-600 px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-white transition duration-150 ease-in-out hover:bg-rose-700 focus:bg-rose-600"
data-te-modal-dismiss
data-te-ripple-init
data-te-ripple-color="light">
@lang('comments::comments.reply')
</button>
</div>
</form>
</div>
</div>
</div>
</div>
@@ -1,7 +1,14 @@
<!--Verically centered modal--> <div
<div data-te-modal-init class="fixed left-0 top-0 z-[1055] hidden h-full w-full overflow-y-auto overflow-x-hidden outline-none" id="modalCreatePlaylist" tabindex="-1" aria-labelledby="Playlist" aria-modal="true" role="dialog"> data-te-modal-init
<div data-te-modal-dialog-ref class="pointer-events-none relative flex min-h-[calc(100%-1rem)] w-auto translate-y-[-50px] items-center opacity-0 transition-all duration-300 ease-in-out min-[576px]:mx-auto min-[576px]:mt-7 min-[576px]:min-h-[calc(100%-3.5rem)] min-[576px]:max-w-[95%] md:min-[576px]:max-w-[90%] lg:min-[576px]:max-w-[80%] xl:min-[576px]:max-w-[70%] 2xl:min-[576px]:max-w-[30%]"> id="modalCreatePlaylist"
<div class="pointer-events-auto relative flex w-full flex-col rounded-md border-none bg-white bg-clip-padding text-current shadow-lg outline-none dark:bg-neutral-800"> tabindex="-1"
aria-labelledby="modalCreatePlaylist"
aria-modal="true"
role="dialog"
class="fixed inset-0 z-[1055] hidden overflow-y-auto bg-black/60 backdrop-blur-sm"
>
<div data-te-modal-dialog-ref class="flex min-h-screen items-center justify-center p-4">
<div class="relative w-full max-w-4xl overflow-hidden rounded-2xl border border-neutral-200 bg-white shadow-2xl dark:border-neutral-700 dark:bg-neutral-900">
<x-modal-header :title="__('Create Playlist')" /> <x-modal-header :title="__('Create Playlist')" />
<!--Modal body--> <!--Modal body-->
+12 -5
View File
@@ -1,8 +1,15 @@
<!--Verically centered modal--> <div
<div data-te-modal-init class="fixed left-0 top-0 z-[1055] hidden h-full w-full overflow-y-auto overflow-x-hidden outline-none" id="modalDownload" tabindex="-1" aria-labelledby="Download" aria-modal="true" role="dialog"> data-te-modal-init
<div data-te-modal-dialog-ref class="pointer-events-none relative flex min-h-[calc(100%-1rem)] w-auto translate-y-[-50px] items-center opacity-0 transition-all duration-300 ease-in-out min-[576px]:mx-auto min-[576px]:mt-7 min-[576px]:min-h-[calc(100%-3.5rem)] min-[576px]:max-w-[95%] md:min-[576px]:max-w-[90%] lg:min-[576px]:max-w-[80%] xl:min-[576px]:max-w-[50%] 2xl:min-[576px]:max-w-[30%]"> id="modalDownload"
<div class="pointer-events-auto relative flex w-full flex-col rounded-md border-none bg-white bg-clip-padding text-current shadow-lg outline-none dark:bg-neutral-800"> tabindex="-1"
<x-modal-header :title='__("Download {$episode->title} - {$episode->episode}")' /> aria-labelledby="modalDownload"
aria-modal="true"
role="dialog"
class="fixed inset-0 z-[1055] hidden overflow-y-auto bg-black/60 backdrop-blur-sm"
>
<div data-te-modal-dialog-ref class="flex min-h-screen items-center justify-center p-4">
<div class="relative w-full max-w-4xl overflow-hidden rounded-2xl border border-neutral-200 bg-white shadow-2xl dark:border-neutral-700 dark:bg-neutral-900">
<x-modal-header title="Download {{ $episode->title }} - {{ $episode->episode }}" />
@php @php
$dldomains = config('hstream.download_domain'); $dldomains = config('hstream.download_domain');
+90 -148
View File
@@ -1,165 +1,107 @@
<!--Verically centered modal-->
<div data-te-modal-init
class="fixed left-0 top-0 z-[1055] hidden h-full w-full overflow-y-auto overflow-x-hidden outline-none"
id="modalBlacklist" tabindex="-1" aria-labelledby="modalBlacklist" aria-modal="true" role="dialog">
<div data-te-modal-dialog-ref
class="pointer-events-none relative flex min-h-[calc(100%-1rem)] w-auto translate-y-[-50px] items-center opacity-0 transition-all duration-300 ease-in-out min-[576px]:mx-auto min-[576px]:mt-7 min-[576px]:min-h-[calc(100%-3.5rem)] min-[576px]:max-w-[95%] md:min-[576px]:max-w-[90%] lg:min-[576px]:max-w-[80%] xl:min-[576px]:max-w-[70%] 2xl:min-[576px]:max-w-[60%]">
<div <div
class="pointer-events-auto relative flex w-full flex-col rounded-md border-none bg-white bg-clip-padding text-current shadow-lg outline-none dark:bg-neutral-800"> data-te-modal-init
<x-modal-header :title="__('Blacklist')" /> id="modalBlacklist"
tabindex="-1"
aria-labelledby="modalBlacklistLabel"
aria-modal="true"
role="dialog"
class="fixed inset-0 z-[1055] hidden overflow-y-auto bg-black/60 backdrop-blur-sm"
>
<div
data-te-modal-dialog-ref
class="flex min-h-screen items-center justify-center p-4"
>
<div
class="relative w-full max-w-6xl overflow-hidden rounded-2xl border border-neutral-200 bg-white shadow-2xl dark:border-neutral-700 dark:bg-neutral-900"
>
<!-- Header -->
<div class="sticky top-0 z-10 flex items-center justify-between border-b border-neutral-200 bg-white/90 px-6 py-4 backdrop-blur dark:border-neutral-700 dark:bg-neutral-900/90">
<div>
<h2
id="modalGenresLabel"
class="text-xl font-semibold text-neutral-900 dark:text-white"
>
Genres & Filters
</h2>
<!--Modal body--> <p class="mt-1 text-sm text-neutral-500 dark:text-neutral-400">
<div class="relative p-4"> Select tags to blacklist from your content.
</p>
</div>
<button
type="button"
data-te-modal-dismiss
wire:click="revertFilters"
class="rounded-lg p-2 text-neutral-500 transition hover:bg-neutral-100 hover:text-black dark:hover:bg-neutral-800 dark:hover:text-white"
>
</button>
</div>
<!-- Body -->
<form class="max-h-[75vh] overflow-y-auto">
<div class="space-y-8 p-6">
@foreach (\App\Helpers\FilterCategories::getFilterCategories() as $section => $items)
<section>
<div class="mb-4 flex items-center justify-between">
<h3 class="text-lg font-semibold text-neutral-800 dark:text-white">
{{ $section }}
</h3>
<div class="h-px flex-1 bg-neutral-200 ml-4 dark:bg-neutral-700"></div>
</div>
<div class="flex flex-wrap gap-3">
@foreach ($items as $tag)
@php @php
$taglist = \cache()->remember( $slug = Str::slug($tag);
'searchtags',
300,
fn() => Conner\Tagging\Model\Tag::where('count', '>', 0)->orderBy('slug', 'ASC')->get(),
);
$appearances = [
'Loli',
'Shota',
'Milf',
'Futanari',
'Big Boobs',
'Small Boobs',
'Dark Skin',
'Cosplay',
'Elf',
'Maid',
'Nekomimi',
'Nurse',
'School Girl',
'Succubus',
'Teacher',
'Trap',
'Pregnant',
'Glasses',
'Swim Suit',
'Ugly Bastard',
'Monster',
];
$types = [
'3D',
'4K',
'48Fps',
'4K 48Fps',
'Censored',
'Uncensored',
'Comedy',
'Fantasy',
'Horror',
'Vanilla',
'Ntr',
'Pov',
'Filmed',
'X-Ray',
];
$actions = [
'Anal',
'Bdsm',
'Facial',
'Blow Job',
'Boob Job',
'Foot Job',
'Hand Job',
'Rimjob',
'Inflation',
'Masturbation',
'Public Sex',
'Rape',
'Reverse Rape',
'Threesome',
'Orgy',
'Gangbang',
];
@endphp @endphp
<ul class="list-none text-justify" style="overflow: hidden;"> <div>
@foreach ($taglist as $tag) <input
@if (in_array($tag->name, $types) || in_array($tag->name, $appearances) || in_array($tag->name, $actions)) wire:model="blacklist"
@continue type="checkbox"
@endif id="blacklist-{{ $slug }}"
<li class="inline-block m-1"> name="blacklist[]"
<input class="m-5 hidden peer" wire:model="blacklist" type="checkbox" value="{{ $slug }}"
id="blacklist-{{ $tag->slug }}" name="blacklist[]" value="{{ $tag->slug }}"> class="peer hidden"
<label >
class="relative block cursor-pointer p-2 rounded bg-neutral-200 dark:bg-neutral-600 peer-checked:bg-rose-600 text-black peer-checked:text-white dark:peer-checked:text-white dark:text-white select-none"
for="blacklist-{{ $tag->slug }}">{{ $tag->name }}</label>
</li>
@endforeach
</ul>
<br>
<!-- Actions -->
<p class="font-medium leading-normal text-neutral-800 dark:text-white">
Action
</p>
<ul class="list-none text-justify" style="overflow: hidden;">
@foreach ($actions as $tag)
<li class="inline-block m-1">
@php $slug = Illuminate\Support\Str::slug($tag); @endphp
<input class="m-5 hidden peer" wire:model="blacklist" type="checkbox"
id="blacklist-{{ $slug }}" name="blacklist[]" value="{{ $slug }}">
<label <label
class="relative block cursor-pointer p-2 rounded bg-neutral-200 dark:bg-neutral-600 peer-checked:bg-rose-600 text-black peer-checked:text-white dark:peer-checked:text-white dark:text-white select-none" for="blacklist-{{ $slug }}"
for="blacklist-{{ $slug }}">{{ $tag }}</label> class="inline-flex cursor-pointer items-center rounded-full border border-neutral-300 bg-neutral-100 px-4 py-2 text-sm font-medium text-neutral-700 transition-all duration-200 hover:border-rose-400 hover:bg-rose-50 hover:text-rose-600 peer-checked:border-rose-600 peer-checked:bg-rose-600 peer-checked:text-white dark:border-neutral-700 dark:bg-neutral-800 dark:text-neutral-200 dark:hover:border-rose-500 dark:hover:bg-neutral-700"
</li> >
{{ $tag }}
</label>
</div>
@endforeach @endforeach
</ul> </div>
</section>
<br>
<!-- Character Appearance -->
<p class="font-medium leading-normal text-neutral-800 dark:text-white">
Appearance
</p>
<ul class="list-none text-justify" style="overflow: hidden;">
@foreach ($appearances as $tag)
@guest
@php if ($tag === "Loli" || $tag === "Shota") continue; @endphp
@endguest
<li class="inline-block m-1">
@php $slug = Illuminate\Support\Str::slug($tag); @endphp
<input class="m-5 hidden peer" wire:model="blacklist" type="checkbox"
id="blacklist-{{ $slug }}" name="blacklist[]" value="{{ $slug }}">
<label
class="relative block cursor-pointer p-2 rounded bg-neutral-200 dark:bg-neutral-600 peer-checked:bg-rose-600 text-black peer-checked:text-white dark:peer-checked:text-white dark:text-white select-none"
for="blacklist-{{ $slug }}">{{ $tag }}</label>
</li>
@endforeach @endforeach
</ul>
<br>
<!-- Video Types -->
<p class="font-medium leading-normal text-neutral-800 dark:text-white">
Type
</p>
<ul class="list-none text-justify" style="overflow: hidden;">
@foreach ($types as $tag)
<li class="inline-block m-1">
@php $slug = Illuminate\Support\Str::slug($tag); @endphp
<input class="m-5 hidden peer" wire:model="blacklist" type="checkbox"
id="blacklist-{{ $slug }}" name="blacklist[]" value="{{ $slug }}">
<label
class="relative block cursor-pointer p-2 rounded bg-neutral-200 dark:bg-neutral-600 peer-checked:bg-rose-600 text-black peer-checked:text-white dark:peer-checked:text-white dark:text-white select-none"
for="blacklist-{{ $slug }}">{{ $tag }}</label>
</li>
@endforeach
</ul>
</div> </div>
<!--Modal footer--> <!-- Footer -->
<div class="flex flex-shrink-0 flex-wrap items-center justify-end rounded-b-md p-4"> <div class="sticky bottom-0 flex items-center justify-end gap-3 border-t border-neutral-200 bg-white/90 px-6 py-4 backdrop-blur dark:border-neutral-700 dark:bg-neutral-900/90">
<button data-te-modal-dismiss wire:click="revertFilters" type="button" <button
class="inline-block rounded bg-primary-100 px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-primary-700 transition duration-150 ease-in-out hover:bg-primary-accent-100 focus:bg-primary-accent-100 focus:outline-none focus:ring-0 active:bg-primary-accent-200"> type="button"
Close data-te-modal-dismiss
wire:click="revertFilters"
class="rounded-xl border border-neutral-300 px-5 py-2.5 text-sm font-medium text-neutral-700 transition hover:bg-neutral-100 dark:border-neutral-600 dark:text-neutral-200 dark:hover:bg-neutral-800"
>
Cancel
</button> </button>
<button data-te-modal-dismiss wire:click="applyFilters" type="button"
class="ml-1 inline-block rounded bg-rose-600 px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-white transition duration-150 ease-in-out hover:bg-rose-700 focus:bg-rose-600"> <button
Apply type="button"
data-te-modal-dismiss
wire:click="applyFilters"
class="rounded-xl bg-rose-600 px-5 py-2.5 text-sm font-semibold text-white shadow-lg shadow-rose-600/20 transition hover:bg-rose-700"
>
Apply Filters
</button> </button>
</div> </div>
</form>
</div> </div>
</div> </div>
</div> </div>
+90 -154
View File
@@ -1,163 +1,99 @@
<!--Verically centered modal-->
<div data-te-modal-init
class="fixed left-0 top-0 z-[1055] hidden h-full w-full overflow-y-auto overflow-x-hidden outline-none"
id="modalGenres" tabindex="-1" aria-labelledby="modalGenres" aria-modal="true" role="dialog">
<div data-te-modal-dialog-ref
class="pointer-events-none relative flex min-h-[calc(100%-1rem)] w-auto translate-y-[-50px] items-center opacity-0 transition-all duration-300 ease-in-out min-[576px]:mx-auto min-[576px]:mt-7 min-[576px]:min-h-[calc(100%-3.5rem)] min-[576px]:max-w-[95%] md:min-[576px]:max-w-[90%] lg:min-[576px]:max-w-[80%] xl:min-[576px]:max-w-[70%] 2xl:min-[576px]:max-w-[60%]">
<div <div
class="pointer-events-auto relative flex w-full flex-col rounded-md border-none bg-white bg-clip-padding text-current shadow-lg outline-none dark:bg-neutral-800"> data-te-modal-init
<x-modal-header :title="__('Genres')" /> id="modalGenres"
<form> tabindex="-1"
<!--Modal body--> aria-labelledby="modalGenresLabel"
<div class="relative p-4"> aria-modal="true"
@php role="dialog"
$taglist = cache()->remember( class="fixed inset-0 z-[1055] hidden overflow-y-auto bg-black/60 backdrop-blur-sm"
'searchtags', >
300, <div data-te-modal-dialog-ref class="flex min-h-screen items-center justify-center p-4">
fn() => Conner\Tagging\Model\Tag::where('count', '>', 0)->orderBy('slug', 'ASC')->get(), <div class="relative w-full max-w-6xl overflow-hidden rounded-2xl border border-neutral-200 bg-white shadow-2xl dark:border-neutral-700 dark:bg-neutral-900">
); <!-- Header -->
$appearances = [ <div class="sticky top-0 z-10 flex items-center justify-between border-b border-neutral-200 bg-white/90 px-6 py-4 backdrop-blur dark:border-neutral-700 dark:bg-neutral-900/90">
'Loli', <div>
'Shota', <h2
'Milf', id="modalGenresLabel"
'Futanari', class="text-xl font-semibold text-neutral-900 dark:text-white"
'Big Boobs', >
'Small Boobs', Genres & Filters
'Dark Skin', </h2>
'Cosplay',
'Elf',
'Maid',
'Nekomimi',
'Nurse',
'School Girl',
'Succubus',
'Teacher',
'Trap',
'Pregnant',
'Glasses',
'Swim Suit',
'Ugly Bastard',
'Monster',
];
$types = [
'3D',
'4K',
'48Fps',
'4K 48Fps',
'Censored',
'Uncensored',
'Comedy',
'Fantasy',
'Horror',
'Vanilla',
'Ntr',
'Pov',
'Filmed',
'X-Ray',
];
$actions = [
'Anal',
'Bdsm',
'Facial',
'Blow Job',
'Boob Job',
'Foot Job',
'Hand Job',
'Rimjob',
'Inflation',
'Masturbation',
'Public Sex',
'Rape',
'Reverse Rape',
'Threesome',
'Orgy',
'Gangbang',
];
@endphp
<ul class="list-none text-justify" style="overflow: hidden;"> <p class="mt-1 text-sm text-neutral-500 dark:text-neutral-400">
@foreach ($taglist as $tag) Select tags to filter your content.
@if (in_array($tag->name, $types) || in_array($tag->name, $appearances) || in_array($tag->name, $actions))
@continue
@endif
<li class="inline-block m-1">
<input class="m-5 hidden peer" wire:model="tags" type="checkbox"
id="tags-{{ $tag->slug }}" name="tags[]" value="{{ $tag->slug }}">
<label
class="relative block cursor-pointer p-2 rounded bg-neutral-200 dark:bg-neutral-600 peer-checked:bg-rose-600 text-black peer-checked:text-white dark:peer-checked:text-white dark:text-white select-none"
for="tags-{{ $tag->slug }}">{{ $tag->name }}</label>
</li>
@endforeach
</ul>
<br>
<!-- Actions -->
<p class="font-medium leading-normal text-neutral-800 dark:text-white">
Action
</p> </p>
<ul class="list-none text-justify" style="overflow: hidden;">
@foreach ($actions as $tag)
<li class="inline-block m-1">
@php $slug = Illuminate\Support\Str::slug($tag); @endphp
<input class="m-5 hidden peer" wire:model="tags" type="checkbox"
id="tags-{{ $slug }}" name="tags[]" value="{{ $slug }}">
<label
class="relative block cursor-pointer p-2 rounded bg-neutral-200 dark:bg-neutral-600 peer-checked:bg-rose-600 text-black peer-checked:text-white dark:peer-checked:text-white dark:text-white select-none"
for="tags-{{ $slug }}">{{ $tag }}</label>
</li>
@endforeach
</ul>
<br>
<!-- Character Appearance -->
<p class="font-medium leading-normal text-neutral-800 dark:text-white">
Appearance
</p>
<ul class="list-none text-justify" style="overflow: hidden;">
@foreach ($appearances as $tag)
@guest
@php if ($tag === "Loli" || $tag === "Shota") continue; @endphp
@endguest
<li class="inline-block m-1">
@php $slug = Illuminate\Support\Str::slug($tag); @endphp
<input class="m-5 hidden peer" wire:model="tags" type="checkbox"
id="tags-{{ $slug }}" name="tags[]" value="{{ $slug }}">
<label
class="relative block cursor-pointer p-2 rounded bg-neutral-200 dark:bg-neutral-600 peer-checked:bg-rose-600 text-black peer-checked:text-white dark:peer-checked:text-white dark:text-white select-none"
for="tags-{{ $slug }}">{{ $tag }}</label>
</li>
@endforeach
</ul>
<br>
<!-- Video Types -->
<p class="font-medium leading-normal text-neutral-800 dark:text-white">
Type
</p>
<ul class="list-none text-justify" style="overflow: hidden;">
@foreach ($types as $tag)
<li class="inline-block m-1">
@php $slug = Illuminate\Support\Str::slug($tag); @endphp
<input class="m-5 hidden peer" wire:model="tags" type="checkbox"
id="tags-{{ $slug }}" name="tags[]" value="{{ $slug }}">
<label
class="relative block cursor-pointer p-2 rounded bg-neutral-200 dark:bg-neutral-600 peer-checked:bg-rose-600 text-black peer-checked:text-white dark:peer-checked:text-white dark:text-white select-none"
for="tags-{{ $slug }}">{{ $tag }}</label>
</li>
@endforeach
</ul>
</div> </div>
<!--Modal footer--> <button
<div class="flex flex-shrink-0 flex-wrap items-center justify-end rounded-b-md p-4"> type="button"
<button data-te-modal-dismiss wire:click="revertFilters" type="button" data-te-modal-dismiss
class="inline-block rounded bg-primary-100 px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-primary-700 transition duration-150 ease-in-out hover:bg-primary-accent-100 focus:bg-primary-accent-100 focus:outline-none focus:ring-0 active:bg-primary-accent-200"> wire:click="revertFilters"
Close class="rounded-lg p-2 text-neutral-500 transition hover:bg-neutral-100 hover:text-black dark:hover:bg-neutral-800 dark:hover:text-white"
>
</button> </button>
<button data-te-modal-dismiss wire:click="applyFilters" type="button" </div>
class="ml-1 inline-block rounded bg-rose-600 px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-white transition duration-150 ease-in-out hover:bg-rose-700 focus:bg-rose-600">
Apply <!-- Body -->
<form class="max-h-[75vh] overflow-y-auto">
<div class="space-y-8 p-6">
@foreach (\App\Helpers\FilterCategories::getFilterCategories() as $section => $items)
<section>
<div class="mb-4 flex items-center justify-between">
<h3 class="text-lg font-semibold text-neutral-800 dark:text-white">
{{ $section }}
</h3>
<div class="h-px flex-1 bg-neutral-200 ml-4 dark:bg-neutral-700"></div>
</div>
<div class="flex flex-wrap gap-3">
@foreach ($items as $tag)
@php
$slug = Str::slug($tag);
@endphp
<div>
<input
wire:model="tags"
type="checkbox"
id="tags-{{ $slug }}"
name="tags[]"
value="{{ $slug }}"
class="peer hidden"
>
<label
for="tags-{{ $slug }}"
class="inline-flex cursor-pointer items-center rounded-full border border-neutral-300 bg-neutral-100 px-4 py-2 text-sm font-medium text-neutral-700 transition-all duration-200 hover:border-rose-400 hover:bg-rose-50 hover:text-rose-600 peer-checked:border-rose-600 peer-checked:bg-rose-600 peer-checked:text-white dark:border-neutral-700 dark:bg-neutral-800 dark:text-neutral-200 dark:hover:border-rose-500 dark:hover:bg-neutral-700"
>
{{ $tag }}
</label>
</div>
@endforeach
</div>
</section>
@endforeach
</div>
<!-- Footer -->
<div class="sticky bottom-0 flex items-center justify-end gap-3 border-t border-neutral-200 bg-white/90 px-6 py-4 backdrop-blur dark:border-neutral-700 dark:bg-neutral-900/90">
<button
type="button"
data-te-modal-dismiss
wire:click="revertFilters"
class="rounded-xl border border-neutral-300 px-5 py-2.5 text-sm font-medium text-neutral-700 transition hover:bg-neutral-100 dark:border-neutral-600 dark:text-neutral-200 dark:hover:bg-neutral-800"
>
Cancel
</button>
<button
type="button"
data-te-modal-dismiss
wire:click="applyFilters"
class="rounded-xl bg-rose-600 px-5 py-2.5 text-sm font-semibold text-white shadow-lg shadow-rose-600/20 transition hover:bg-rose-700"
>
Apply Filters
</button> </button>
</div> </div>
</form> </form>
+72 -26
View File
@@ -1,40 +1,86 @@
<!--Verically centered modal-->
<div data-te-modal-init
class="fixed left-0 top-0 z-[1055] hidden h-full w-full overflow-y-auto overflow-x-hidden outline-none"
id="modalStudios" tabindex="-1" aria-labelledby="modalStudios" aria-modal="true" role="dialog">
<div data-te-modal-dialog-ref
class="pointer-events-none relative flex min-h-[calc(100%-1rem)] w-auto translate-y-[-50px] items-center opacity-0 transition-all duration-300 ease-in-out min-[576px]:mx-auto min-[576px]:mt-7 min-[576px]:min-h-[calc(100%-3.5rem)] min-[576px]:max-w-[95%] md:min-[576px]:max-w-[90%] lg:min-[576px]:max-w-[80%] xl:min-[576px]:max-w-[70%] 2xl:min-[576px]:max-w-[60%]">
<div <div
class="pointer-events-auto relative flex w-full flex-col rounded-md border-none bg-white bg-clip-padding text-current shadow-lg outline-none dark:bg-neutral-800"> data-te-modal-init
<x-modal-header :title="__('Studios')" /> id="modalStudios"
tabindex="-1"
aria-labelledby="modalStudios"
aria-modal="true"
role="dialog"
class="fixed inset-0 z-[1055] hidden overflow-y-auto bg-black/60 backdrop-blur-sm"
>
<div data-te-modal-dialog-ref class="flex min-h-screen items-center justify-center p-4">
<div class="relative w-full max-w-6xl overflow-hidden rounded-2xl border border-neutral-200 bg-white shadow-2xl dark:border-neutral-700 dark:bg-neutral-900">
<!-- Header -->
<div class="sticky top-0 z-10 flex items-center justify-between border-b border-neutral-200 bg-white/90 px-6 py-4 backdrop-blur dark:border-neutral-700 dark:bg-neutral-900/90">
<div>
<h2
id="modalGenresLabel"
class="text-xl font-semibold text-neutral-900 dark:text-white"
>
Studios
</h2>
<!--Modal body--> <p class="mt-1 text-sm text-neutral-500 dark:text-neutral-400">
<div class="relative p-4"> Select studios to filter your content.
<ul class="list-none text-justify" style="overflow: hidden;"> </p>
</div>
<button
type="button"
data-te-modal-dismiss
wire:click="revertFilters"
class="rounded-lg p-2 text-neutral-500 transition hover:bg-neutral-100 hover:text-black dark:hover:bg-neutral-800 dark:hover:text-white"
>
</button>
</div>
<!-- Body -->
<form class="max-h-[75vh] overflow-y-auto">
<div class="space-y-8 p-6">
@php $studios = \cache()->remember('searchstudios', 300, fn () => App\Models\Studios::orderBy('name', 'ASC')->get()); @endphp @php $studios = \cache()->remember('searchstudios', 300, fn () => App\Models\Studios::orderBy('name', 'ASC')->get()); @endphp
<div class="flex flex-wrap gap-3">
@foreach ($studios as $studio) @foreach ($studios as $studio)
<li class="inline-block m-1"> <div>
<input class="m-5 hidden peer" wire:model="studios" type="checkbox" <input
id="studio-{{ $studio->slug }}" name="studios[]" value="{{ $studio->slug }}"> wire:model="studios"
type="checkbox"
id="studio-{{ $studio->slug }}"
name="studios[]"
value="{{ $studio->slug }}"
class="m-5 hidden peer"
>
<label <label
class="relative block cursor-pointer p-2 rounded bg-neutral-200 dark:bg-neutral-600 peer-checked:bg-rose-600 text-black peer-checked:text-white dark:peer-checked:text-white dark:text-white select-none" for="studio-{{ $studio->slug }}"
for="studio-{{ $studio->slug }}">{{ $studio->name }}</label> class="inline-flex cursor-pointer items-center rounded-full border border-neutral-300 bg-neutral-100 px-4 py-2 text-sm font-medium text-neutral-700 transition-all duration-200 hover:border-rose-400 hover:bg-rose-50 hover:text-rose-600 peer-checked:border-rose-600 peer-checked:bg-rose-600 peer-checked:text-white dark:border-neutral-700 dark:bg-neutral-800 dark:text-neutral-200 dark:hover:border-rose-500 dark:hover:bg-neutral-700"
</li> >
{{ $studio->name }}
</label>
</div>
@endforeach @endforeach
</ul> </div>
</div> </div>
<!--Modal footer--> <!-- Footer -->
<div class="flex flex-shrink-0 flex-wrap items-center justify-end rounded-b-md p-4"> <div class="sticky bottom-0 flex items-center justify-end gap-3 border-t border-neutral-200 bg-white/90 px-6 py-4 backdrop-blur dark:border-neutral-700 dark:bg-neutral-900/90">
<button data-te-modal-dismiss wire:click="revertFilters" type="button" <button
class="inline-block rounded bg-primary-100 px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-primary-700 transition duration-150 ease-in-out hover:bg-primary-accent-100 focus:bg-primary-accent-100 focus:outline-none focus:ring-0 active:bg-primary-accent-200"> type="button"
Close data-te-modal-dismiss
wire:click="revertFilters"
class="rounded-xl border border-neutral-300 px-5 py-2.5 text-sm font-medium text-neutral-700 transition hover:bg-neutral-100 dark:border-neutral-600 dark:text-neutral-200 dark:hover:bg-neutral-800"
>
Cancel
</button> </button>
<button data-te-modal-dismiss wire:click="applyFilters" type="button"
class="ml-1 inline-block rounded bg-rose-600 px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-white transition duration-150 ease-in-out hover:bg-rose-700 focus:bg-rose-600"> <button
Apply type="button"
data-te-modal-dismiss
wire:click="applyFilters"
class="rounded-xl bg-rose-600 px-5 py-2.5 text-sm font-semibold text-white shadow-lg shadow-rose-600/20 transition hover:bg-rose-700"
>
Apply Filters
</button> </button>
</div> </div>
</form>
</div> </div>
</div> </div>
</div> </div>
@@ -1,18 +1,45 @@
<!--Verically centered modal-->
<div data-te-modal-init
class="fixed left-0 top-0 z-[1055] hidden h-full w-full overflow-y-auto overflow-x-hidden outline-none"
id="modalLanguage" tabindex="-1" aria-modal="true" role="dialog">
<div data-te-modal-dialog-ref
class="pointer-events-none relative flex min-h-[calc(100%-1rem)] w-auto translate-y-[-50px] items-center opacity-0 transition-all duration-300 ease-in-out min-[576px]:mx-auto min-[576px]:mt-7 min-[576px]:min-h-[calc(100%-3.5rem)] min-[576px]:max-w-[90%] md:min-[576px]:max-w-[80%] lg:min-[576px]:max-w-[60%] xl:min-[576px]:max-w-[40%] 2xl:min-[576px]:max-w-[20%]">
<div <div
class="pointer-events-auto relative flex w-full flex-col rounded-md border-none bg-white bg-clip-padding text-current shadow-lg outline-none dark:bg-neutral-800"> data-te-modal-init
<x-modal-header :title="__('Language')" /> id="modalLanguage"
tabindex="-1"
aria-labelledby="modalLanguage"
aria-modal="true"
role="dialog"
class="fixed inset-0 z-[1055] hidden overflow-y-auto bg-black/60 backdrop-blur-sm"
>
<div data-te-modal-dialog-ref class="flex min-h-screen items-center justify-center p-4">
<div class="relative w-full max-w-2xl overflow-hidden rounded-2xl border border-neutral-200 bg-white shadow-2xl dark:border-neutral-700 dark:bg-neutral-900">
<!-- Header -->
<div class="sticky top-0 z-10 flex items-center justify-between border-b border-neutral-200 bg-white/90 px-6 py-4 backdrop-blur dark:border-neutral-700 dark:bg-neutral-900/90">
<div>
<h2
id="modalGenresLabel"
class="text-xl font-semibold text-neutral-900 dark:text-white"
>
Language
</h2>
<p class="mt-1 text-sm text-neutral-500 dark:text-neutral-400">
Select your preffered language of the website.
</p>
</div>
<button
type="button"
data-te-modal-dismiss
wire:click="revertFilters"
class="rounded-lg p-2 text-neutral-500 transition hover:bg-neutral-100 hover:text-black dark:hover:bg-neutral-800 dark:hover:text-white"
>
</button>
</div>
<!--Modal body--> <!--Modal body-->
<div class="relative p-4"> <div class="relative p-4">
<form method="POST" action="{{ route('update.language') }}"> <form method="POST" action="{{ route('update.language') }}">
@csrf @csrf
<div class="pb-6">
<label class="mb-2 leading-tight text-gray-800 dark:text-gray-200 w-full" for="language">Select <label class="mb-2 leading-tight text-gray-800 dark:text-gray-200 w-full" for="language">Select
Language:</label> Language:</label>
<select name="language" id="language" <select name="language" id="language"
@@ -27,16 +54,20 @@
Français (fr) Français (fr)
</option> </option>
</select> </select>
</div>
<div class="flex flex-shrink-0 flex-wrap items-center justify-end rounded-b-md p-4"> <div class="sticky bottom-0 flex items-center justify-end gap-3 border-t border-neutral-200 bg-white/90 px-6 py-4 backdrop-blur dark:border-neutral-700 dark:bg-neutral-900/90">
<button type="button" <button
class="inline-block rounded bg-primary-100 px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-primary-700 transition duration-150 ease-in-out hover:bg-primary-accent-100 focus:bg-primary-accent-100 focus:outline-none focus:ring-0 active:bg-primary-accent-200" type="button"
data-te-modal-dismiss data-te-ripple-init data-te-ripple-color="light"> data-te-modal-dismiss
class="rounded-xl border border-neutral-300 px-5 py-2.5 text-sm font-medium text-neutral-700 transition hover:bg-neutral-100 dark:border-neutral-600 dark:text-neutral-200 dark:hover:bg-neutral-800"
>
Cancel Cancel
</button> </button>
<button type="submit" <button
class="ml-1 inline-block rounded bg-rose-600 px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-white transition duration-150 ease-in-out hover:bg-rose-700 focus:bg-rose-600" type="submit"
data-te-ripple-init data-te-ripple-color="light"> class="rounded-xl bg-rose-600 px-5 py-2.5 text-sm font-semibold text-white shadow-lg shadow-rose-600/20 transition hover:bg-rose-700"
>
Apply Apply
</button> </button>
</div> </div>
@@ -6,6 +6,7 @@
@php @php
$download = $hdl->getDownloadByType('FHDi'); $download = $hdl->getDownloadByType('FHDi');
$downloadURL = $dldomains[array_rand($dldomains)].'/'.$download->url; $downloadURL = $dldomains[array_rand($dldomains)].'/'.$download->url;
$version = str_contains($download->url, 'v2') ? 'v2' : '';
@endphp @endphp
<livewire:download-button <livewire:download-button
@@ -14,5 +15,6 @@
:download-count="$download->count" :download-count="$download->count"
:episode-number="$hdl->episode" :episode-number="$hdl->episode"
:fill-numbers="$fillNumbers" :fill-numbers="$fillNumbers"
:file-size="$download->getFileSize()"> :file-size="$download->getFileSize()"
:version="$version">
@endif @endif
@@ -10,6 +10,7 @@
$now = \Illuminate\Support\Carbon::now(); $now = \Illuminate\Support\Carbon::now();
$expire = \Illuminate\Support\Facades\Crypt::encryptString($now->addHours(6)); $expire = \Illuminate\Support\Facades\Crypt::encryptString($now->addHours(6));
$file = \Illuminate\Support\Facades\Crypt::encryptString('hentai/'.$download->url); $file = \Illuminate\Support\Facades\Crypt::encryptString('hentai/'.$download->url);
$version = str_contains($download->url, 'v2') ? 'v2' : '';
$downloadURL = $dlpdomains[array_rand($dlpdomains)].'/download/'.$file.'/'.$expire; $downloadURL = $dlpdomains[array_rand($dlpdomains)].'/download/'.$file.'/'.$expire;
@endphp @endphp
@@ -20,5 +21,6 @@
:download-count="$download->count" :download-count="$download->count"
:episode-number="$hdl->episode" :episode-number="$hdl->episode"
:fill-numbers="$fillNumbers" :fill-numbers="$fillNumbers"
:file-size="$download->getFileSize()"> :file-size="$download->getFileSize()"
:version="$version">
@endif @endif
@@ -10,6 +10,7 @@
$now = \Illuminate\Support\Carbon::now(); $now = \Illuminate\Support\Carbon::now();
$expire = \Illuminate\Support\Facades\Crypt::encryptString($now->addHours(6)); $expire = \Illuminate\Support\Facades\Crypt::encryptString($now->addHours(6));
$file = \Illuminate\Support\Facades\Crypt::encryptString('hentai/'.$download->url); $file = \Illuminate\Support\Facades\Crypt::encryptString('hentai/'.$download->url);
$version = str_contains($download->url, 'v2') ? 'v2' : '';
$downloadURL = $dlpdomains[array_rand($dlpdomains)].'/download/'.$file.'/'.$expire; $downloadURL = $dlpdomains[array_rand($dlpdomains)].'/download/'.$file.'/'.$expire;
@endphp @endphp
@@ -20,5 +21,6 @@
:download-count="$download->count" :download-count="$download->count"
:episode-number="$hdl->episode" :episode-number="$hdl->episode"
:fill-numbers="$fillNumbers" :fill-numbers="$fillNumbers"
:file-size="$download->getFileSize()"> :file-size="$download->getFileSize()"
:version="$version">
@endif @endif
+19 -16
View File
@@ -1,12 +1,15 @@
<!--Verically centered modal-->
<div data-te-modal-init
class="fixed left-0 top-0 z-[1055] hidden h-full w-full overflow-y-auto overflow-x-hidden outline-none"
id="modalShare" tabindex="-1" aria-labelledby="Share" aria-modal="true" role="dialog">
<div data-te-modal-dialog-ref
class="pointer-events-none relative flex min-h-[calc(100%-1rem)] w-auto translate-y-[-50px] items-center opacity-0 transition-all duration-300 ease-in-out min-[576px]:mx-auto min-[576px]:mt-7 min-[576px]:min-h-[calc(100%-3.5rem)] min-[576px]:max-w-[95%] md:min-[576px]:max-w-[90%] lg:min-[576px]:max-w-[80%] xl:min-[576px]:max-w-[50%] 2xl:min-[576px]:max-w-[25%]">
<div <div
class="pointer-events-auto relative flex w-full flex-col rounded-md border-none bg-white bg-clip-padding text-current shadow-lg outline-none dark:bg-neutral-800"> data-te-modal-init
<x-modal-header :title='__("Share {$episode->title} - {$episode->episode}")' /> id="modalShare"
tabindex="-1"
aria-labelledby="Share"
aria-modal="true"
role="dialog"
class="fixed inset-0 z-[1055] hidden overflow-y-auto bg-black/60 backdrop-blur-sm"
>
<div data-te-modal-dialog-ref class="flex min-h-screen items-center justify-center p-4">
<div class="relative w-full max-w-2xl overflow-hidden rounded-2xl border border-neutral-200 bg-white shadow-2xl dark:border-neutral-700 dark:bg-neutral-900">
<x-modal-header title="Share {{ $episode->title }} - {{ $episode->episode }}" />
<!--Modal body--> <!--Modal body-->
<div class="relative p-4"> <div class="relative p-4">
@@ -15,8 +18,8 @@
$currentUrl = url()->current(); $currentUrl = url()->current();
$text = 'Watch ' . $episode->title . ' - ' . $episode->episode . ' in 4k on hstream.moe!'; $text = 'Watch ' . $episode->title . ' - ' . $episode->episode . ' in 4k on hstream.moe!';
@endphp @endphp
<div class="flex flex-wrap justify-stretch"> <div class="flex flex-wrap justify-stretch gap-3">
<a class="border-2 duration-200 ease inline-flex items-center mb-1 mr-1 transition py-3 px-5 rounded-lg text-white border-rose-600 bg-rose-600 hover:bg-rose-700 hover:border-rose-700" <a class="cursor-pointer inline-flex items-center rounded-xl bg-rose-600 px-5 py-2.5 text-sm font-semibold text-white shadow-lg shadow-rose-600/20 transition hover:bg-rose-700"
target="_blank" rel="noopener" target="_blank" rel="noopener"
href="https://facebook.com/sharer/sharer.php?u={{ $currentUrl }}" href="https://facebook.com/sharer/sharer.php?u={{ $currentUrl }}"
aria-label="Share on Facebook" draggable="false"> aria-label="Share on Facebook" draggable="false">
@@ -29,7 +32,7 @@
</svg> </svg>
<span class="ml-2">Facebook</span> <span class="ml-2">Facebook</span>
</a> </a>
<a class="border-2 duration-200 ease inline-flex items-center mb-1 mr-1 transition py-3 px-5 rounded-lg text-white border-rose-600 bg-rose-600 hover:bg-rose-700 hover:border-rose-700" <a class="cursor-pointer inline-flex items-center rounded-xl bg-rose-600 px-5 py-2.5 text-sm font-semibold text-white shadow-lg shadow-rose-600/20 transition hover:bg-rose-700"
target="_blank" rel="noopener" target="_blank" rel="noopener"
href="https://twitter.com/intent/tweet?url={{ $currentUrl }}&amp;text={{ $text }}" href="https://twitter.com/intent/tweet?url={{ $currentUrl }}&amp;text={{ $text }}"
aria-label="Share on Twitter" draggable="false"> aria-label="Share on Twitter" draggable="false">
@@ -42,7 +45,7 @@
</svg> </svg>
<span class="ml-2">Twitter</span> <span class="ml-2">Twitter</span>
</a> </a>
<a class="border-2 duration-200 ease inline-flex items-center mb-1 mr-1 transition py-3 px-5 rounded-lg text-white border-rose-600 bg-rose-600 hover:bg-rose-700 hover:border-rose-700" <a class="cursor-pointer inline-flex items-center rounded-xl bg-rose-600 px-5 py-2.5 text-sm font-semibold text-white shadow-lg shadow-rose-600/20 transition hover:bg-rose-700"
target="_blank" rel="noopener" target="_blank" rel="noopener"
href="https://reddit.com/submit/?url={{ $currentUrl }}&amp;resubmit=true&amp;title={{ $text }}" href="https://reddit.com/submit/?url={{ $currentUrl }}&amp;resubmit=true&amp;title={{ $text }}"
aria-label="Share on Reddit" draggable="false"> aria-label="Share on Reddit" draggable="false">
@@ -55,7 +58,7 @@
</svg> </svg>
<span class="ml-2">Reddit</span> <span class="ml-2">Reddit</span>
</a> </a>
<a class="border-2 duration-200 ease inline-flex items-center mb-1 mr-1 transition py-3 px-5 rounded-lg text-white border-rose-600 bg-rose-600 hover:bg-rose-700 hover:border-rose-700" <a class="cursor-pointer inline-flex items-center rounded-xl bg-rose-600 px-5 py-2.5 text-sm font-semibold text-white shadow-lg shadow-rose-600/20 transition hover:bg-rose-700"
target="_blank" rel="noopener" target="_blank" rel="noopener"
href="https://wa.me/?text={{ $text }}%20{{ $currentUrl }}" href="https://wa.me/?text={{ $text }}%20{{ $currentUrl }}"
aria-label="Share on Whatsapp" draggable="false" style=""> aria-label="Share on Whatsapp" draggable="false" style="">
@@ -68,7 +71,7 @@
</svg> </svg>
<span class="ml-2">Whatsapp</span> <span class="ml-2">Whatsapp</span>
</a> </a>
<a class="border-2 duration-200 ease inline-flex items-center mb-1 mr-1 transition py-3 px-5 rounded-lg text-white border-rose-600 bg-rose-600 hover:bg-rose-700 hover:border-rose-700" <a class="cursor-pointer inline-flex items-center rounded-xl bg-rose-600 px-5 py-2.5 text-sm font-semibold text-white shadow-lg shadow-rose-600/20 transition hover:bg-rose-700"
target="_blank" rel="noopener" target="_blank" rel="noopener"
href="https://telegram.me/share/url?text={{ $text }}&amp;url={{ $currentUrl }}" href="https://telegram.me/share/url?text={{ $text }}&amp;url={{ $currentUrl }}"
aria-label="Share on Telegram" draggable="false"> aria-label="Share on Telegram" draggable="false">
@@ -81,7 +84,7 @@
</svg> </svg>
<span class="ml-2">Telegram</span> <span class="ml-2">Telegram</span>
</a> </a>
<a class="border-2 duration-200 ease inline-flex items-center mb-1 mr-1 transition py-3 px-5 rounded-lg text-white border-rose-600 bg-rose-600 hover:bg-rose-700 hover:border-rose-700" <a class="cursor-pointer inline-flex items-center rounded-xl bg-rose-600 px-5 py-2.5 text-sm font-semibold text-white shadow-lg shadow-rose-600/20 transition hover:bg-rose-700"
target="_blank" rel="noopener" target="_blank" rel="noopener"
href="mailto:?subject={{ $text }}&amp;body={{ $currentUrl }}" href="mailto:?subject={{ $text }}&amp;body={{ $currentUrl }}"
aria-label="Share by Email" draggable="false"> aria-label="Share by Email" draggable="false">
@@ -100,7 +103,7 @@
<div> <div>
<button id="copy-button" type="button" data-te-clipboard-init <button id="copy-button" type="button" data-te-clipboard-init
data-te-clipboard-target="#copy-target" data-te-ripple-init data-te-ripple-color="light" data-te-clipboard-target="#copy-target" data-te-ripple-init data-te-ripple-color="light"
class="inline-block rounded border-rose-600 bg-rose-600 hover:bg-rose-700 hover:border-rose-700 px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-white transition duration-150 ease-in-out focus:bg-rose-600 focus:outline-none focus:ring-0 active:bg-rose-700"> class="cursor-pointer rounded-xl bg-rose-600 px-5 py-2.5 text-sm font-semibold text-white shadow-lg shadow-rose-600/20 transition hover:bg-rose-700">
Copy Copy
</button> </button>
</div> </div>
@@ -1,73 +0,0 @@
@php $limitcounter = 0; @endphp
@foreach ($episodes as $ep)
@if (isset($popularView))
@php $episode = $ep->episode @endphp
@else
@php $episode = $ep @endphp
@endif
@if ($limitcounter >= $limit)
@break
@endif
<div
class="relative p-1 mb-8 w-full transition duration-300 ease-in-out md:p-2 md:hover:-translate-y-1 md:hover:scale-110">
<a class="hover:text-blue-600" href="{{ route('hentai.index', ['title' => $episode->slug]) }}">
<img alt="{{ $episode->title }} - {{ $episode->episode }}" loading="lazy" width="400"
class="block relative rounded-lg object-cover object-center aspect-[11/16] z-20 "
src="{{ $episode->cover_url }}"></img>
@guest
<p
class="absolute right-1 md:right-2 top-1 md:top-2 bg-rose-700/70 !text-white rounded-bl-lg rounded-tr-lg p-1 pr-2 pl-2 font-semibold text-sm z-30">
{{ $episode->getResolution() }}</p>
<p
class="absolute left-1 md:left-2 bottom-1 md:bottom-2 bg-rose-700/70 !text-white rounded-bl-lg rounded-tr-lg p-1 pr-2 pl-2 font-semibold text-sm z-30">
<i class="fa-regular fa-eye"></i> {{ $episode->viewCountFormatted() }} <i
class="fa-regular fa-heart"></i> {{ $episode->likeCount() }} <i class="fa-regular fa-comment"></i>
{{ $episode->commentCount() }}
</p>
@endguest
@php $problematic = cache()->rememberForever('episodeProblematic'.$episode->id, fn () => $episode->getProblematicTags()); @endphp
@if (!empty($problematic))
<p
class="absolute left-1 md:left-2 top-1 md:top-2 bg-red-700/70 !text-white rounded-br-lg rounded-tl-lg p-1 pr-2 pl-2 font-semibold text-sm z-30">
<i class="fa-solid fa-triangle-exclamation"></i> {{ $problematic }}
</p>
@endif
@auth
@if ($episode->userWatched(auth()->user()->id))
<p
class="absolute right-1 md:right-2 top-1 md:top-2 bg-green-600/80 !text-white rounded-bl-lg rounded-tr-lg p-1 pr-2 pl-2 font-semibold text-sm z-30">
{{ $episode->getResolution() }}</p>
<p
class="absolute left-1 md:left-2 bottom-1 md:bottom-2 bg-green-600/80 !text-white rounded-bl-lg rounded-tr-lg p-1 pr-2 pl-2 font-semibold text-sm z-30">
<i class="fa-regular fa-eye"></i> {{ $episode->viewCountFormatted() }} <i
class="fa-regular fa-heart"></i> {{ $episode->likeCount() }} <i
class="fa-regular fa-comment"></i> {{ $episode->commentCount() }}
</p>
@else
<p
class="absolute right-1 md:right-2 top-1 md:top-2 bg-rose-700/70 !text-white rounded-bl-lg rounded-tr-lg p-1 pr-2 pl-2 font-semibold text-sm z-30">
{{ $episode->getResolution() }}</p>
<p
class="absolute left-1 md:left-2 bottom-1 md:bottom-2 bg-rose-700/70 !text-white rounded-bl-lg rounded-tr-lg p-1 pr-2 pl-2 font-semibold text-sm z-30">
<i class="fa-regular fa-eye"></i> {{ $episode->viewCountFormatted() }} <i
class="fa-regular fa-heart"></i> {{ $episode->likeCount() }} <i
class="fa-regular fa-comment"></i> {{ $episode->commentCount() }}
</p>
@endif
@endauth
<div class="absolute w-[95%] grid grid-cols-1 text-center">
<p class="text-sm text-center text-black dark:text-white">{{ $episode->title }} -
{{ $episode->episode }}</p>
</div>
</a>
</div>
@php $limitcounter++; @endphp
@endforeach
@@ -1,17 +0,0 @@
@php $limitcounter = 0; @endphp
@foreach ($episodes as $ep)
@if (isset($popularView))
@php $episode = $ep->episode @endphp
@else
@php $episode = $ep @endphp
@endif
@if ($limitcounter >= $limit)
@break
@endif
<x-episode-thumbnail :episode="$episode" />
@php $limitcounter++; @endphp
@endforeach
+3 -15
View File
@@ -1,14 +1,6 @@
<!DOCTYPE html> <x-app-layout>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="scroll-smooth">
@include('partials.head')
<body class="font-sans antialiased">
<div class="flex flex-col min-h-screen bg-gray-100 dark:bg-neutral-900">
@include('layouts.navigation')
<!-- Page Content -->
<main>
@include('partials.background') @include('partials.background')
<div <div class="relative max-w-[120rem] mx-auto sm:px-6 lg:px-8 space-y-6 pt-10 flex flex-row justify-center md:justify-normal">
class="relative max-w-[120rem] mx-auto sm:px-6 lg:px-8 space-y-6 pt-20 mt-[65px] flex flex-row justify-center md:justify-normal">
<div class="grid md:grid-flow-col gap-4 xl:w-5/6 flex-row"> <div class="grid md:grid-flow-col gap-4 xl:w-5/6 flex-row">
@include('profile.partials.sidebar') @include('profile.partials.sidebar')
<div class="flex flex-col gap-2"> <div class="flex flex-col gap-2">
@@ -16,8 +8,4 @@
</div> </div>
</div> </div>
</div> </div>
</main> </x-app-layout>
@include('layouts.footer')
</div>
</body>
</html>
+3 -16
View File
@@ -1,22 +1,9 @@
<!DOCTYPE html> <x-app-layout>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="scroll-smooth">
@include('partials.head')
<body class="font-sans antialiased">
<div class="flex flex-col min-h-screen bg-gray-100 dark:bg-neutral-900">
@include('layouts.navigation')
<!-- Page Content -->
<main>
@include('partials.background') @include('partials.background')
<div class="relative max-w-[120rem] mx-auto sm:px-6 lg:px-8 space-y-6 pt-20 mt-[65px] flex flex-row justify-center md:justify-normal"> <div class="relative max-w-[120rem] mx-auto sm:px-6 lg:px-8 space-y-6 pt-10 flex flex-row justify-center md:justify-normal">
<div class="grid md:grid-flow-col gap-4 w-5/6 flex-row"> <div class="grid md:grid-flow-col gap-4 w-5/6 flex-row">
@include('profile.partials.sidebar') @include('profile.partials.sidebar')
@include('profile.partials.info') @include('profile.partials.info')
</div> </div>
</div> </div>
</main> </x-app-layout>
@include('layouts.footer')
</div>
</body>
</html>
+3 -14
View File
@@ -1,20 +1,9 @@
<!DOCTYPE html> <x-app-layout>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="scroll-smooth">
@include('partials.head')
<body class="font-sans antialiased">
<div class="flex flex-col min-h-screen bg-gray-100 dark:bg-neutral-900">
@include('layouts.navigation')
<!-- Page Content -->
<main>
@include('partials.background') @include('partials.background')
<div class="relative max-w-[120rem] mx-auto sm:px-6 lg:px-8 space-y-6 pt-20 mt-[65px] flex flex-row justify-center md:justify-normal"> <div class="relative max-w-[120rem] mx-auto sm:px-6 lg:px-8 space-y-6 pt-10 flex flex-row justify-center md:justify-normal">
<div class="flex flex-col md:flex-row"> <div class="flex flex-col md:flex-row">
@include('profile.partials.sidebar') @include('profile.partials.sidebar')
@livewire('user-likes') @livewire('user-likes')
</div> </div>
</div> </div>
</main> </x-app-layout>
@include('layouts.footer')
</div>
</body>
</html>
@@ -1,14 +1,7 @@
<!DOCTYPE html> <x-app-layout>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="scroll-smooth">
@include('partials.head')
<body class="font-sans antialiased">
<div class="flex flex-col min-h-screen bg-gray-100 dark:bg-neutral-900">
@include('layouts.navigation')
<!-- Page Content -->
<main>
@include('partials.background') @include('partials.background')
<div <div
class="relative max-w-[120rem] mx-auto sm:px-6 lg:px-8 space-y-6 pt-20 mt-[65px] flex flex-row justify-center md:justify-normal"> class="relative max-w-[120rem] mx-auto sm:px-6 lg:px-8 space-y-6 pt-10 flex flex-row justify-center md:justify-normal">
<div class="grid md:grid-flow-col gap-4 xl:w-5/6 flex-row"> <div class="grid md:grid-flow-col gap-4 xl:w-5/6 flex-row">
@include('profile.partials.sidebar') @include('profile.partials.sidebar')
<div class="flex flex-col gap-2"> <div class="flex flex-col gap-2">
@@ -59,8 +52,4 @@
</div> </div>
</div> </div>
</div> </div>
</main> </x-app-layout>
@include('layouts.footer')
</div>
</body>
</html>
+3 -14
View File
@@ -1,13 +1,6 @@
<!DOCTYPE html> <x-app-layout>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="scroll-smooth">
@include('partials.head')
<body class="font-sans antialiased">
<div class="flex flex-col min-h-screen bg-gray-100 dark:bg-neutral-900">
@include('layouts.navigation')
<!-- Page Content -->
<main>
@include('partials.background') @include('partials.background')
<div class="relative max-w-[120rem] mx-auto sm:px-6 lg:px-8 space-y-6 pt-20 mt-[65px] flex flex-row"> <div class="relative max-w-[120rem] mx-auto sm:px-6 lg:px-8 space-y-6 pt-10 flex flex-row">
<div class="flex flex-col md:flex-row"> <div class="flex flex-col md:flex-row">
@include('profile.partials.sidebar') @include('profile.partials.sidebar')
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8 space-y-6"> <div class="max-w-7xl mx-auto sm:px-6 lg:px-8 space-y-6">
@@ -18,8 +11,4 @@
@include('modals.create-playlist') @include('modals.create-playlist')
</div> </div>
</div> </div>
</main> </x-app-layout>
@include('layouts.footer')
</div>
</body>
</html>
+3 -16
View File
@@ -1,14 +1,6 @@
<!DOCTYPE html> <x-app-layout>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="scroll-smooth">
@include('partials.head')
<body class="font-sans antialiased">
<div class="flex flex-col min-h-screen bg-gray-100 dark:bg-neutral-900">
@include('layouts.navigation')
<!-- Page Content -->
<main>
@include('partials.background') @include('partials.background')
<div class="relative max-w-[120rem] mx-auto sm:px-6 lg:px-8 space-y-6 pt-20 mt-[65px] mb-14 flex flex-row"> <div class="relative max-w-[120rem] mx-auto sm:px-6 lg:px-8 space-y-6 pt-10 mb-14 flex flex-row">
<div class="flex flex-col md:flex-row"> <div class="flex flex-col md:flex-row">
@include('profile.partials.sidebar') @include('profile.partials.sidebar')
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8 mt-8 md:mt-0 space-y-6"> <div class="max-w-7xl mx-auto sm:px-6 lg:px-8 mt-8 md:mt-0 space-y-6">
@@ -35,9 +27,4 @@
@vite(['resources/js/user-blacklist.js']) @vite(['resources/js/user-blacklist.js'])
</div> </div>
</div> </div>
</main> </x-app-layout>
@include('layouts.footer')
</div>
</body>
</html>
+3 -14
View File
@@ -1,13 +1,6 @@
<!DOCTYPE html> <x-app-layout>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="scroll-smooth">
@include('partials.head')
<body class="font-sans antialiased">
<div class="flex flex-col min-h-screen bg-gray-100 dark:bg-neutral-900">
@include('layouts.navigation')
<!-- Page Content -->
<main>
@include('partials.background') @include('partials.background')
<div class="relative max-w-[120rem] mx-auto sm:px-6 lg:px-8 space-y-6 pt-20 mt-[65px] flex flex-row"> <div class="relative max-w-[120rem] mx-auto sm:px-6 lg:px-8 space-y-6 pt-10 flex flex-row">
<div class="flex flex-col md:flex-row"> <div class="flex flex-col md:flex-row">
@include('profile.partials.sidebar') @include('profile.partials.sidebar')
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8 mt-8 md:mt-0 space-y-6"> <div class="max-w-7xl mx-auto sm:px-6 lg:px-8 mt-8 md:mt-0 space-y-6">
@@ -15,8 +8,4 @@
</div> </div>
</div> </div>
</div> </div>
</main> </x-app-layout>
@include('layouts.footer')
</div>
</body>
</html>
+3 -14
View File
@@ -1,20 +1,9 @@
<!DOCTYPE html> <x-app-layout>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="scroll-smooth">
@include('partials.head')
<body class="font-sans antialiased">
<div class="flex flex-col min-h-screen bg-gray-100 dark:bg-neutral-900">
@include('layouts.navigation')
<!-- Page Content -->
<main>
@include('partials.background') @include('partials.background')
<div class="relative max-w-[120rem] mx-auto sm:px-6 lg:px-8 space-y-6 pt-20 mt-[65px] flex flex-row"> <div class="relative max-w-[120rem] mx-auto sm:px-6 lg:px-8 space-y-6 pt-10 flex flex-row">
<div class="flex flex-col md:flex-row"> <div class="flex flex-col md:flex-row">
@include('profile.partials.sidebar') @include('profile.partials.sidebar')
@livewire('watched', ['user' => $user]) @livewire('watched', ['user' => $user])
</div> </div>
</div> </div>
</main> </x-app-layout>
@include('layouts.footer')
</div>
</body>
</html>
+2 -15
View File
@@ -1,17 +1,4 @@
<!DOCTYPE html> <x-app-layout>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="scroll-smooth">
@include('partials.head')
<body class="font-sans antialiased">
<div class="flex flex-col min-h-screen bg-gray-100 dark:bg-neutral-900">
@include('layouts.navigation')
<!-- Page Content -->
<main>
@include('partials.background') @include('partials.background')
@livewire('live-search') @livewire('live-search')
</main> </x-app-layout>
@include('layouts.footer')
</div>
</body>
</html>
+5 -17
View File
@@ -1,18 +1,9 @@
<!DOCTYPE html> <x-app-layout>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="scroll-smooth">
@include('partials.head')
<body class="font-sans antialiased">
<div class="flex flex-col min-h-screen bg-gray-100 dark:bg-neutral-900">
@include('layouts.navigation')
<!-- Page Content -->
<main>
@php $episode = $hentai->episodes[0]; @endphp @php $episode = $hentai->episodes[0]; @endphp
<div class="pt-6 mt-[65px]"> <div class="pt-6">
<div class="flex flex-col lg:flex-row justify-center"> <div class="flex flex-col lg:flex-row justify-center">
<div class="pt-2 sm:px-2 lg:px-4 space-y-6 max-w-[100%] xl:max-w-[70%] 2xl:max-w-[60%] z-10"> <div class="pt-2 sm:px-2 lg:px-4 space-y-6 max-w-[100%] xl:max-w-[70%] 2xl:max-w-[60%] z-10">
@include('series.partials.info') @include('stream.partials.info', ['streamPage' => false])
@include('series.partials.episodes') @include('series.partials.episodes')
@@ -23,8 +14,5 @@
</div> </div>
</div> </div>
</main> </x-app-layout>
@include('layouts.footer')
</div>
</body>
</html>
@@ -1,12 +1,14 @@
<div class="bg-transparent rounded-lg overflow-hidden bg-white dark:bg-neutral-800 p-5"> <div class="overflow-hidden rounded-2xl border border-gray-200/70 bg-white/90 shadow-sm backdrop-blur-sm transition-colors dark:border-white/10 dark:bg-neutral-900/80">
<a class="leading-normal font-bold text-lg text-rose-600"> <div class="p-5 md:p-7">
<a class="text-lg font-bold text-gray-900 dark:text-white">
{{ __('home.episodes') }} ({{ $hentai->episodes->count() }}) {{ __('home.episodes') }} ({{ $hentai->episodes->count() }})
</a> </a>
<!-- Episode List --> <!-- Episode List -->
<div class="grid grid-cols-1 sm:grid-cols-1 md:grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4 gap-2"> <div class="grid grid-cols-1 sm:grid-cols-1 md:grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4 gap-2 mt-4">
@foreach ($hentai->episodes as $episode) @foreach ($hentai->episodes as $episode)
<x-episode-thumbnail :episode="$episode" /> <x-episode-cover :episode="$episode" view="thumbnail" />
@endforeach @endforeach
</div> </div>
</div> </div>
</div>
@@ -1,69 +0,0 @@
<div class="bg-transparent rounded-lg overflow-hidden bg-white dark:bg-neutral-800 p-5">
<!-- Cover -->
<div class="w-[100px] md:w-[150px] mr-4 float-left">
<img alt="{{ $episode->title }}" loading="lazy" width="150"
class="block relative rounded-lg object-cover object-center aspect-[11/16] z-20"
src="{{ $episode->cover_url }}"></img>
</div>
<!-- Info -->
<div class="relative">
<!-- Title -->
<h1 class="text-3xl font-bold text-rose-600">
{{ $episode->title }} ({{ $episode->title_jpn }})
</h1>
<div>
<a data-te-toggle="tooltip"
title="Released {{ \Carbon\Carbon::parse($episode->release_date)->diffForHumans(['parts' => 2]) }}"
class="text-l text-gray-800 dark:text-white leading-tight pl-1">
<i class="fa-regular fa-calendar"></i> {{ $episode->release_date }}
|
</a>
<a href="{{ route('hentai.search', ['order' => 'recently-uploaded', 'studios[0]' => $episode->studio->slug]) }}"
class="text-l text-gray-800 dark:text-white leading-tight hover:underline hover:underline-offset-4">
{{ $episode->studio->name }}
</a>
</div>
<hr class="border-gray-400/40 mt-2 mb-2">
<p class="leading-normal font-bold text-lg text-rose-600">
{{ __('stream.description') }}
</p>
<p class="text-gray-800 dark:text-gray-200 leading-tight min-h-[50%]">
{{ $hentai->description }}
</p>
<hr class="border-gray-400/40 mt-2 mb-1">
<ul class="list-none text-center" style="overflow: hidden;">
<a class="text-gray-400">
|
</a>
@foreach ($episode->tags->sortBy('slug') as $tag)
<li class="inline-block p-1">
@if ($tag->slug == 'uncensored' || $tag->slug == 'vanilla' || $tag->slug == '4k')
<a href="{{ route('hentai.search', ['order' => 'recently-uploaded', 'tags[0]' => $tag->slug]) }}"
class="relative block items-center px-2 py-2 mt-1 dark:focus:ring-offset-gray-800 border border-transparent rounded-md font-semibold text-xs text-green-500 dark:hover:text-white hover:text-white uppercase tracking-widest hover:bg-green-700 focus:bg-green-700 active:bg-green-900 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2 transition ease-in-out duration-150">
{{ $tag->name }}
</a>
@elseif($tag->slug == 'censored')
<a href="{{ route('hentai.search', ['order' => 'recently-uploaded', 'tags[0]' => $tag->slug]) }}"
class="relative block items-center px-2 py-2 mt-1 dark:focus:ring-offset-gray-800 border border-transparent rounded-md font-semibold text-xs text-yellow-600 dark:hover:text-white hover:text-white uppercase tracking-widest hover:bg-yellow-700 focus:bg-yellow-700 active:bg-yellow-900 focus:outline-none focus:ring-2 focus:ring-yellow-500 focus:ring-offset-2 transition ease-in-out duration-150">
{{ $tag->name }}
</a>
@elseif($tag->slug == 'gore' || $tag->slug == 'horror' || $tag->slug == 'scat' || $tag->slug == 'ntr' || $tag->slug == 'rape')
<a href="{{ route('hentai.search', ['order' => 'recently-uploaded', 'tags[0]' => $tag->slug]) }}"
class="relative block items-center px-2 py-2 mt-1 dark:focus:ring-offset-gray-800 border border-transparent rounded-md font-semibold text-xs text-red-600 dark:hover:text-white hover:text-white uppercase tracking-widest hover:bg-red-700 focus:bg-red-700 active:bg-red-900 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 transition ease-in-out duration-150">
<i class="fa-solid fa-triangle-exclamation"></i> {{ $tag->name }}
</a>
@else
<a href="{{ route('hentai.search', ['order' => 'recently-uploaded', 'tags[0]' => $tag->slug]) }}"
class="relative block items-center px-2 py-2 mt-1 dark:focus:ring-offset-gray-800 border border-transparent rounded-md font-semibold text-xs dark:text-white hover:text-white uppercase tracking-widest hover:bg-rose-700 focus:bg-rose-700 active:bg-rose-900 focus:outline-none focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 transition ease-in-out duration-150">
{{ $tag->name }}
</a>
@endif
</li>
<a class="text-gray-400">
|
</a>
@endforeach
</ul>
</div>
</div>
@@ -1,7 +1,6 @@
<div class="pt-2 sm:px-2 lg:px-4 2xl:w-[450px]"> <div class="pt-2 sm:px-2 lg:px-4 2xl:w-[450px] p-2">
<div class="bg-transparent rounded-lg overflow-hidden p-2">
@if (count($popularWeekly) > 0) @if (count($popularWeekly) > 0)
<p class="leading-normal font-bold text-xl dark:text-white pb-2"> <p class="leading-normal font-bold text-xl dark:text-white text-black pb-2">
{{ __('home.popular-weekly') }} {{ __('home.popular-weekly') }}
</p> </p>
<div class="text-center xl:text-left"> <div class="text-center xl:text-left">
@@ -12,11 +11,12 @@
@if($counter >= 8) @if($counter >= 8)
@continue @continue
@endif @endif
@include('stream.partials.episode-partial') <li>
<x-episode-cover :episode="$episode" view="thumbnail"/>
</li>
@php $counter += 1; @endphp @php $counter += 1; @endphp
@endforeach @endforeach
</ul> </ul>
</div> </div>
@endif @endif
</div> </div>
</div>
+9 -17
View File
@@ -1,12 +1,5 @@
<!DOCTYPE html> <x-app-layout>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="scroll-smooth"> <div class="pt-10">
@include('partials.head')
<body class="font-sans antialiased">
<div class="flex flex-col min-h-screen bg-gray-100 dark:bg-neutral-900">
@include('layouts.navigation')
<!-- Page Content -->
<main>
<div class="pt-6 mt-[65px]">
<div class="flex flex-col xl:flex-row justify-center"> <div class="flex flex-col xl:flex-row justify-center">
@if($episode->is_dvd_aspect) @if($episode->is_dvd_aspect)
<div class="pt-2 sm:px-2 lg:px-4 space-y-6 max-w-[100%] xl:max-w-[80%] 2xl:max-w-[58%]"> <div class="pt-2 sm:px-2 lg:px-4 space-y-6 max-w-[100%] xl:max-w-[80%] 2xl:max-w-[58%]">
@@ -22,7 +15,6 @@
</div> </div>
@endif @endif
@include('admin.stream')
<!-- Infos --> <!-- Infos -->
@include('stream.partials.info') @include('stream.partials.info')
<!-- Comments --> <!-- Comments -->
@@ -45,18 +37,18 @@
@include('modals.add-to-playlist') @include('modals.add-to-playlist')
@include('modals.share') @include('modals.share')
@auth @auth
@if(Auth::user()->hasRole(\App\Enums\UserRole::ADMINISTRATOR)) @if (auth()->user()->hasRole(\App\Enums\UserRole::ADMINISTRATOR))
@include('admin.modals.upload-episode') @include('admin.modals.upload-episode')
@include('admin.modals.add-subtitles') @include('admin.modals.add-subtitles')
@endif
@if (auth()->user()->hasRole(\App\Enums\UserRole::ADMINISTRATOR) || auth()->user()->hasRole(\App\Enums\UserRole::MODERATOR))
@include('admin.modals.edit-episode') @include('admin.modals.edit-episode')
@endif @endif
@endauth @endauth
<!-- Player Script --> <!-- Player Script -->
@vite(['resources/js/player.js']) @vite(['resources/js/player.js'])
</main> </x-app-layout>
@include('layouts.footer')
</div>
@livewireScripts
</body>
</html>
@@ -1,38 +0,0 @@
<li>
<a class="flex flex-col w-auto text-black dark:text-white hover:text-white hover:bg-rose-900/80 rounded-lg cursor-pointer pt-1"
href="{{ route('hentai.index', ['title' => $episode->slug]) }}">
<div class="flex items-center">
<div class="relative w-full aspect-[16/9]">
@auth
@if ($episode->userWatched(auth()->user()->id))
<p
class="absolute right-1 top-1 bg-green-600/80 !text-white rounded-bl-lg rounded-tr-lg p-1 pr-2 pl-2 font-semibold text-sm z-30">
{{ $episode->getResolution() }}</p>
<p
class="absolute left-1 bottom-1 bg-green-600/80 !text-white rounded-bl-lg rounded-tr-lg p-1 pr-2 pl-2 font-semibold text-sm z-30">
<i class="fa-regular fa-eye"></i> {{ $episode->viewCountFormatted() }} <i
class="fa-regular fa-heart"></i> {{ $episode->likeCount() }} <i
class="fa-regular fa-comment"></i> {{ $episode->commentCount() }}
</p>
@else
<p
class="absolute right-1 top-1 bg-rose-700/70 !text-white rounded-bl-lg rounded-tr-lg p-1 pr-2 pl-2 font-semibold text-sm z-30">
{{ $episode->getResolution() }}</p>
<p
class="absolute left-1 bottom-1 bg-rose-700/70 !text-white rounded-bl-lg rounded-tr-lg p-1 pr-2 pl-2 font-semibold text-sm z-30">
<i class="fa-regular fa-eye"></i> {{ $episode->viewCountFormatted() }} <i
class="fa-regular fa-heart"></i> {{ $episode->likeCount() }} <i
class="fa-regular fa-comment"></i> {{ $episode->commentCount() }}
</p>
@endif
@endauth
<img loading="lazy" class="block relative rounded-xl object-cover object-center z-20 p-1"
src="{{ optional($episode->gallery->first())->thumbnail_url }}"
alt="{{ $episode->title }} - {{ $episode->episode }}">
</div>
</div>
<div class="basis-3/4 pl-2 text-center">
<p class="text-sm font-bold">{{ $episode->title }} - {{ $episode->episode }}</p>
</div>
</a>
</li>
@@ -1,56 +1,66 @@
<div class="bg-transparent rounded-lg">
<p class="leading-normal font-bold text-lg text-rose-600">
{{ __('stream.gallery') }}
</p>
@if ($gallery->count() > 5)
<div class="grid grid-rows-1 w-30 text-left">
<ul data-te-lightbox-init class="list-none text-center" style="overflow: hidden;">
@php $counter = 0; @endphp
@foreach($gallery as $image)
@php $counter++; @endphp
<li class="inline-block m-1 w-[45%] sm:w-[45%] md:w-[20%] xl:w-[18%]">
@if ($counter > 5)
<div class="!visible hidden" id="collapseGallery" data-te-collapse-item>
@else
<div> <div>
<div class="mb-5 flex items-center justify-between">
<h2 class="text-xl font-bold text-gray-900 dark:text-white">
{{ __('stream.gallery') }}
</h2>
@if ($gallery->count() > 5)
<button
id="galleryToggle"
class="text-sm font-semibold text-gray-900 dark:text-white transition">
{{ __('home.show-more') }}
</button>
@endif @endif
<div class="py-2 mt-2">
<img onClick="(function(){player.play(); player.pause(); })();" src="{{ $image->thumbnail_url }}" data-te-img="{{ $image->image_url }}" alt="{{ $episode->title }} - {{ $episode->episode }} - Screenshot {{ $counter }}" class="relative block items-center h-full w-full rounded-lg tracking-widest transition ease-in-out duration-150 cursor-zoom-in shadow-sm data-[te-lightbox-disabled]:cursor-auto" />
</div> </div>
<div
data-te-lightbox-init
class="grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5">
@foreach($gallery as $index => $image)
<div class="{{ $index >= 5 ? 'hidden extra-gallery-item' : '' }}">
<div
class="group overflow-hidden rounded-2xl border border-gray-200 bg-white shadow-sm transition hover:-translate-y-1 hover:shadow-xl dark:border-neutral-700 dark:bg-neutral-800">
<img
onClick="(function(){player.play(); player.pause(); })();"
src="{{ $image->thumbnail_url }}"
data-te-img="{{ $image->image_url }}"
alt="{{ $episode->title }} - Screenshot {{ $index + 1 }}"
class="aspect-video w-full cursor-zoom-in object-cover transition duration-300 group-hover:scale-105"
>
</div> </div>
</li>
</div>
@endforeach @endforeach
</ul>
</div> </div>
<div class="grid grid-rows-1 w-30 text-center">
<a id="galleryShowMore" data-te-collapse-init data-te-ripple-init data-te-ripple-color="light" href="#collapseGallery" role="button" aria-expanded="false" aria-controls="collapseGallery" class="text-sm float-right cursor-pointer text-rose-600">{{ __('home.show-more') }}</a>
</div> </div>
@if ($gallery->count() > 5)
<script> <script>
var state = 0; const toggleBtn = document.getElementById('galleryToggle');
function toggleGallery() { const hiddenItems = document.querySelectorAll('.extra-gallery-item');
if (state == 0) {
document.getElementById('galleryShowMore').innerText = "{{ __('stream.show-less') }}"; let expanded = false;
state = 1;
} else { toggleBtn.addEventListener('click', () => {
document.getElementById('galleryShowMore').innerText = "{{ __('home.show-more') }}";
state = 0; expanded = !expanded;
}
} hiddenItems.forEach(item => {
document.getElementById('galleryShowMore').addEventListener('click', toggleGallery); item.classList.toggle('hidden');
});
toggleBtn.innerText = expanded
? "{{ __('stream.show-less') }}"
: "{{ __('home.show-more') }}";
});
</script> </script>
@else
<div class="grid grid-rows-1 w-30 text-left">
<ul data-te-lightbox-init class="list-none text-center" style="overflow: hidden;">
@php $counter = 0; @endphp
@foreach($gallery as $image)
@php $counter++; @endphp
<li class="inline-block m-1 w-[45%] sm:w-[45%] md:w-[20%] xl:w-[18%]">
<div class="py-2 mt-2">
<img onClick="(function(){player.play(); player.pause(); })();" src="{{ $image->thumbnail_url }}" data-te-img="{{ $image->image_url }}" alt="{{ $episode->title }} - {{ $episode->episode }} - Screenshot {{ $counter }}" class="relative block items-center h-full w-full rounded-lg tracking-widest transition ease-in-out duration-150 cursor-zoom-in shadow-sm data-[te-lightbox-disabled]:cursor-auto" />
</div>
</li>
@endforeach
</ul>
</div>
@endif @endif
</div>
+201 -122
View File
@@ -1,167 +1,246 @@
<div class="overflow-hidden p-5 bg-transparent bg-white rounded-lg dark:bg-neutral-800"> @props([
'streamPage' => true,
])
<div
class="overflow-hidden rounded-2xl border border-gray-200/70 bg-white/90 shadow-sm backdrop-blur-sm transition-colors dark:border-white/10 dark:bg-neutral-900/80">
<div class="p-5 md:p-7">
@if($streamPage)
<input id="e_id" type="hidden" value="{{ $episode->id }}" />
@endif
<div class="flex flex-col gap-6 lg:flex-row">
<!-- Cover --> <!-- Cover -->
<div class="w-[100px] md:w-[150px] mr-4 float-left hidden md:block"> <div class="hidden shrink-0 md:block">
<img alt="{{ $episode->title }}" loading="lazy" width="150" <img
class="block relative rounded-lg object-cover object-center aspect-[11/16] z-20" alt="{{ $episode->title }}"
src="{{ $episode->cover_url }}"></img> loading="lazy"
width="180"
src="{{ $episode->cover_url }}"
class="aspect-[11/16] w-[140px] rounded-2xl object-cover shadow-lg ring-1 ring-black/5 dark:ring-white/10" />
</div> </div>
<!-- Info --> <!-- Main Content -->
<div class="relative"> <div class="flex-1">
<input id="e_id" type="hidden" value="{{ $episode->id }}" /> <div class="flex flex-col gap-5 xl:flex-row xl:items-start xl:justify-between">
<div class="flex flex-col justify-between xl:flex-row">
<div>
<!-- Title -->
<h1 class="text-3xl font-bold text-rose-600">
<a class="text-rose-600 break-words hover:underline hover:underline-offset-4"
href="{{ route('hentai.index', ['title' => $episode->hentai->slug]) }}">{{ $episode->title }}</a>
- {{ $episode->episode }}
</h1>
<div>
<h2 class="inline leading-tight text-gray-800 dark:text-white">{{ $episode->title_jpn }}</h2>
<a data-te-toggle="tooltip" <!-- Title + Metadata -->
title="Uploaded {{ $episode->created_at->diffForHumans(['parts' => 2]) }}" <div class="min-w-0">
class="pl-1 leading-tight text-gray-800 text-l dark:text-white"> <h1
<p class="inline"> class="break-words text-2xl font-black tracking-tight text-gray-900 dark:text-white md:text-4xl">
| <i class="fa-solid fa-upload"></i> {{ $episode->created_at->format('Y-m-d') }} | @if ($streamPage)
</p> <a
href="{{ route('hentai.index', ['title' => $episode->hentai->slug]) }}"
class="bg-gradient-to-r from-rose-500 to-pink-500 bg-clip-text text-transparent transition hover:opacity-80">
{{ "$episode->title - $episode->episode" }}
</a> </a>
<a data-te-toggle="tooltip" @else
title="Released {{ \Carbon\Carbon::parse($episode->release_date)->diffForHumans(['parts' => 2]) }}" <span
class="pl-1 leading-tight text-gray-800 text-l dark:text-white"> class="bg-gradient-to-r from-rose-500 to-pink-500 bg-clip-text text-transparent transition">
<p class="inline"> {{ $episode->title }}
<i class="fa-regular fa-calendar"></i> {{ $episode->release_date }} </span>
| @endif
</h1>
<p class="mt-2 text-sm text-gray-500 dark:text-gray-400 md:text-base">
{{ $episode->title_jpn }}
</p> </p>
</a>
<a href="{{ route('hentai.search', ['order' => 'recently-uploaded', 'studios[0]' => $episode->studio->slug]) }}" <!-- Meta Pills -->
class="leading-tight text-gray-800 text-l dark:text-white hover:underline hover:underline-offset-4"> <div class="mt-4 flex flex-wrap items-center gap-2 text-sm">
<div
class="inline-flex items-center gap-2 rounded-full bg-gray-100 px-3 py-1 text-gray-700 dark:bg-white/5 dark:text-gray-300">
<i class="fa-solid fa-upload text-xs"></i>
{{ $episode->created_at->format('Y-m-d') }}
</div>
<div
class="inline-flex items-center gap-2 rounded-full bg-gray-100 px-3 py-1 text-gray-700 dark:bg-white/5 dark:text-gray-300">
<i class="fa-regular fa-calendar text-xs"></i>
{{ $episode->release_date }}
</div>
<a
href="{{ route('hentai.search', ['order' => 'recently-uploaded', 'studios[0]' => $episode->studio->slug]) }}"
class="inline-flex items-center rounded-full bg-rose-100 px-3 py-1 font-medium text-rose-700 transition hover:bg-rose-200 dark:bg-rose-500/10 dark:text-rose-300 dark:hover:bg-rose-500/20">
{{ $episode->studio->name }} {{ $episode->studio->name }}
</a> </a>
<a id="av1-unsupported" data-te-toggle="tooltip"
title="For 1080p and 4k streams we are using the new AV1 codec. Edge users on Windows have to install the AV1 extension pack from the Microsoft Store." <a
class="hidden leading-tight text-red-800 cursor-pointer text-l dark:text-red-500"> id="av1-unsupported"
data-te-toggle="tooltip"
title="For 1080p and 4k streams we are using the new AV1 codec."
class="hidden rounded-full bg-red-100 px-3 py-1 text-sm font-medium text-red-700 dark:bg-red-500/10 dark:text-red-400">
AV1 Unsupported AV1 Unsupported
</a> </a>
</div> </div>
</div> </div>
<div> @if($streamPage)
<!-- View Count and Misc Buttons --> <!-- Stats + Actions -->
<div class="float-right"> <div class="flex flex-col gap-3 xl:items-end min-w-[330px]">
<div class="grid">
<div class="flex gap-x-4"> <!-- Stats -->
<div class="flex flex-wrap items-center gap-3">
<div
class="inline-flex font-bold items-center gap-2 rounded-xl bg-gray-100 px-4 py-2 text-gray-700 dark:bg-white/5 dark:text-gray-200">
<i class="fa-regular fa-eye"></i>
{{ $episode->viewCountFormatted() }}
</div>
@auth @auth
@livewire('view-count', ['episode' => $episode])
@livewire('like-button', ['episode' => $episode]) @livewire('like-button', ['episode' => $episode])
@endauth @endauth
@guest @guest
<div> <div
<a class="text-xl leading-tight text-gray-800 whitespace-nowrap dark:text-gray-200"> data-te-toggle="tooltip"
<i class="pr-0.5 fa-regular fa-eye"></i> {{ $episode->viewCountFormatted() }} title="Please login to like the episode"
</a> class="inline-flex cursor-pointer items-center gap-2 rounded-xl bg-gray-100 px-4 py-2 text-gray-700 dark:bg-white/5 dark:text-gray-200">
</div> <i class="fa-regular fa-heart"></i>
<div data-te-toggle="tooltip" title="Please login to like the episode" {{ $episode->likeCount() }}
class="text-xl leading-tight text-gray-800 whitespace-nowrap cursor-pointer dark:text-gray-200">
<i class="fa-regular fa-heart pr-[4px]"></i> {{ $episode->likeCount() }}
</div> </div>
@endguest @endguest
@php $commentcount = $episode->commentCount(); @endphp @php $commentcount = $episode->commentCount(); @endphp
@if ($commentcount > 0)
<a href="#comments" <a
class="text-xl leading-tight text-gray-800 whitespace-nowrap dark:text-gray-200"> href="#comments"
<i class="pr-0.5 fa-regular fa-comment"></i> {{ $commentcount }} class="inline-flex items-center gap-2 rounded-xl bg-gray-100 px-4 py-2 text-gray-700 transition hover:bg-gray-200 dark:bg-white/5 dark:text-gray-200 dark:hover:bg-white/10">
<i class="fa-regular fa-comment"></i>
{{ $commentcount }}
</a> </a>
@else
<a href="#comments" data-te-toggle="tooltip" title="Be the first one to comment!"
class="text-xl leading-tight text-gray-800 whitespace-nowrap dark:text-gray-200">
<i class="pr-0.5 fa-regular fa-comment"></i> {{ $commentcount }}
</a>
@endif
</div> </div>
<div> <!-- Action Buttons -->
<div class="flex flex-wrap gap-2">
@if(!$episode->dmca_takedown) @if(!$episode->dmca_takedown)
<a data-te-toggle="modal" data-te-target="#modalDownload" id="reloadCaptchaModal" <a
class="text-xl leading-tight text-gray-800 whitespace-nowrap cursor-pointer dark:text-gray-200"> data-te-toggle="modal"
<i class="fa-solid fa-download pr-[4px]"></i> {{ __('stream.download') }} data-te-target="#modalDownload"
id="reloadCaptchaModal"
class="inline-flex cursor-pointer items-center gap-2 rounded-xl bg-rose-600 px-4 py-2 text-sm font-semibold text-white transition hover:bg-rose-700">
<i class="fa-solid fa-download"></i>
{{ __('stream.download') }}
</a> </a>
@endif @endif
<a data-te-toggle="modal" data-te-target="#modalShare" <a
class="text-xl leading-tight text-gray-800 whitespace-nowrap cursor-pointer dark:text-gray-200"> data-te-toggle="modal"
<i class="fa-solid fa-share pr-[4px]"></i> {{ __('stream.share') }} data-te-target="#modalShare"
class="inline-flex cursor-pointer items-center gap-2 rounded-xl border border-gray-300 bg-white px-4 py-2 text-sm font-semibold text-gray-700 transition hover:bg-gray-100 dark:border-white/10 dark:bg-white/5 dark:text-gray-200 dark:hover:bg-white/10">
<i class="fa-solid fa-share"></i>
{{ __('stream.share') }}
</a> </a>
</div>
@auth @auth
<div> <a
<a data-te-toggle="modal" data-te-target="#modalAddToPlaylist" data-te-toggle="modal"
class="text-xl leading-tight text-gray-800 whitespace-nowrap cursor-pointer dark:text-gray-200"> data-te-target="#modalAddToPlaylist"
<i class="fa-solid fa-square-plus pr-[6px]"></i> {{ __('playlist.playlist') }} class="inline-flex cursor-pointer items-center gap-2 rounded-xl border border-gray-300 bg-white px-4 py-2 text-sm font-semibold text-gray-700 transition hover:bg-gray-100 dark:border-white/10 dark:bg-white/5 dark:text-gray-200 dark:hover:bg-white/10">
<i class="fa-solid fa-square-plus"></i>
{{ __('playlist.playlist') }}
</a> </a>
</div>
@endauth @endauth
</div> </div>
</div>
</div> @if(auth()->check() && (auth()->user()->hasRole(\App\Enums\UserRole::ADMINISTRATOR) || auth()->user()->hasRole(\App\Enums\UserRole::MODERATOR)))
</div> <div class="flex flex-wrap flex-row-reverse gap-2">
<hr class="mt-2 mb-2 border-gray-400/40"> @if(auth()->user()->hasRole(\App\Enums\UserRole::ADMINISTRATOR))
<p class="text-lg font-bold leading-normal text-rose-600"> <a
{{ __('stream.description') }} data-te-toggle="modal"
</p> data-te-target="#modalAddSubtitles"
<p class="text-gray-800 dark:text-gray-200 leading-tight min-h-[50%]"> class="inline-flex cursor-pointer items-center gap-2 rounded-xl border border-gray-300 bg-white px-4 py-2 text-sm font-semibold text-gray-700 transition hover:bg-gray-100 dark:border-white/10 dark:bg-white/5 dark:text-gray-200 dark:hover:bg-white/10">
{{ $episode->description }} <i class="fa-solid fa-plus"></i>
</p> Add Subtitles
<hr class="mt-2 mb-1 border-gray-400/40">
<p class="text-lg font-bold leading-normal text-rose-600">
{{ __('stream.genres') }}
</p>
<ul class="list-none text-center" style="overflow: hidden;">
<a class="text-gray-400">
|
</a> </a>
@foreach ($episode->tags->sortBy('slug') as $tag)
<li class="inline-block p-1"> <a
@if ($tag->slug == 'uncensored' || $tag->slug == 'vanilla' || $tag->slug == '4k') data-te-toggle="modal"
<a href="{{ route('hentai.search', ['order' => 'recently-uploaded', 'tags[0]' => $tag->slug]) }}" data-te-target="#modalUploadEpisode"
class="block relative items-center px-2 py-2 mt-1 text-xs font-semibold tracking-widest text-green-500 uppercase rounded-md border border-transparent transition duration-150 ease-in-out dark:focus:ring-offset-gray-800 dark:hover:text-white hover:text-white hover:bg-green-700 focus:bg-green-700 active:bg-green-900 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2"> class="inline-flex cursor-pointer items-center gap-2 rounded-xl border border-gray-300 bg-white px-4 py-2 text-sm font-semibold text-gray-700 transition hover:bg-gray-100 dark:border-white/10 dark:bg-white/5 dark:text-gray-200 dark:hover:bg-white/10">
{{ $tag->name }} <i class="fa-solid fa-plus"></i>
</a> Add Episode
@elseif($tag->slug == 'censored')
<a href="{{ route('hentai.search', ['order' => 'recently-uploaded', 'tags[0]' => $tag->slug]) }}"
class="block relative items-center px-2 py-2 mt-1 text-xs font-semibold tracking-widest text-yellow-600 uppercase rounded-md border border-transparent transition duration-150 ease-in-out dark:focus:ring-offset-gray-800 dark:hover:text-white hover:text-white hover:bg-yellow-700 focus:bg-yellow-700 active:bg-yellow-900 focus:outline-none focus:ring-2 focus:ring-yellow-500 focus:ring-offset-2">
{{ $tag->name }}
</a>
@elseif(
$tag->slug == 'gore' ||
$tag->slug == 'horror' ||
$tag->slug == 'scat' ||
$tag->slug == 'ntr' ||
$tag->slug == 'rape')
<a href="{{ route('hentai.search', ['order' => 'recently-uploaded', 'tags[0]' => $tag->slug]) }}"
class="block relative items-center px-2 py-2 mt-1 text-xs font-semibold tracking-widest text-red-600 uppercase rounded-md border border-transparent transition duration-150 ease-in-out dark:focus:ring-offset-gray-800 dark:hover:text-white hover:text-white hover:bg-red-700 focus:bg-red-700 active:bg-red-900 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2">
<i class="fa-solid fa-triangle-exclamation"></i> {{ $tag->name }}
</a>
@else
<a href="{{ route('hentai.search', ['order' => 'recently-uploaded', 'tags[0]' => $tag->slug]) }}"
class="block relative items-center px-2 py-2 mt-1 text-xs font-semibold tracking-widest uppercase rounded-md border border-transparent transition duration-150 ease-in-out dark:focus:ring-offset-gray-800 dark:text-white hover:text-white hover:bg-rose-700 focus:bg-rose-700 active:bg-rose-900 focus:outline-none focus:ring-2 focus:ring-rose-500 focus:ring-offset-2">
{{ $tag->name }}
</a> </a>
@endif @endif
</li>
<a class="text-gray-400"> <a
| data-te-toggle="modal"
data-te-target="#modalEditEpisode"
class="inline-flex cursor-pointer items-center gap-2 rounded-xl border border-gray-300 bg-white px-4 py-2 text-sm font-semibold text-gray-700 transition hover:bg-gray-100 dark:border-white/10 dark:bg-white/5 dark:text-gray-200 dark:hover:bg-white/10">
<i class="fa-solid fa-pen"></i>
Edit Episode
</a> </a>
</div>
@endif
</div>
@endif
</div>
<!-- Description -->
<div class="mt-8 border-t border-gray-200 pt-6 dark:border-white/10">
<h2 class="mb-3 text-lg font-bold text-gray-900 dark:text-white">
{{ __('stream.description') }}
</h2>
<p class="leading-relaxed text-gray-700 dark:text-gray-300">
{{ $episode->description }}
</p>
</div>
<!-- Genres -->
<div class="mt-8 border-t border-gray-200 pt-6 dark:border-white/10">
<h2 class="mb-4 text-lg font-bold text-gray-900 dark:text-white">
{{ __('stream.genres') }}
</h2>
<div class="flex flex-wrap gap-2">
@foreach ($episode->tags->sortBy('slug') as $tag)
@php
$classes = 'bg-gray-100 text-gray-700 hover:bg-rose-600 hover:text-white dark:bg-white/5 dark:text-gray-300 dark:hover:bg-rose-600';
if (in_array($tag->slug, ['uncensored', 'vanilla', '4k'])) {
$classes = 'bg-green-100 text-green-700 hover:bg-green-600 hover:text-white dark:hover:text-white dark:bg-green-500/10 dark:text-green-400 dark:hover:bg-green-600';
}
if ($tag->slug === 'censored') {
$classes = 'bg-yellow-100 text-yellow-700 hover:bg-yellow-500 hover:text-white dark:hover:text-white dark:bg-yellow-500/10 dark:text-yellow-400 dark:hover:bg-yellow-500';
}
if (in_array($tag->slug, ['gore', 'horror', 'scat', 'ntr', 'rape'])) {
$classes = 'bg-red-100 text-red-700 hover:bg-red-600 hover:text-white dark:hover:text-white dark:bg-red-500/10 dark:text-red-400 dark:hover:bg-red-600';
}
@endphp
<a
href="{{ route('hentai.search', ['order' => 'recently-uploaded', 'tags[0]' => $tag->slug]) }}"
class="inline-flex items-center gap-2 rounded-full px-4 py-2 text-xs font-bold uppercase tracking-wide transition {{ $classes }}">
@if(in_array($tag->slug, ['gore', 'horror', 'scat', 'ntr', 'rape']))
<i class="fa-solid fa-triangle-exclamation text-[10px]"></i>
@endif
{{ $tag->name }}
</a>
@endforeach @endforeach
</ul> </div>
<hr class="mt-2 mb-1 border-gray-400/40"> </div>
<div class="inline-block pt-5">
<!-- Gallery -->
@if($streamPage)
<div class="mt-8 border-t border-gray-200 pt-6 dark:border-white/10">
@include('stream.partials.gallery') @include('stream.partials.gallery')
</div> </div>
@endisset
</div>
</div>
</div> </div>
</div> </div>
@@ -1,16 +1,16 @@
@if (count($moreEpisodes) > 0) @if (count($moreEpisodes) > 0)
<div class="pt-2 sm:px-2 lg:px-4 2xl:w-[450px]"> <div class="pt-2 sm:px-2 lg:px-4 2xl:w-[450px] p-2">
<div class="bg-transparent overflow-hidden p-4"> <p class="leading-normal font-bold text-xl dark:text-white text-black pb-2">
<p class="leading-normal font-bold text-xl dark:text-white pb-2">
{{ __('stream.more-from') }} <a class="text-rose-600 hover:underline hover:underline-offset-4 break-words" href="{{ route('hentai.index', ['title' => $episode->hentai->slug]) }}">{{ $episode->title }}</a> {{ __('stream.more-from') }} <a class="text-rose-600 hover:underline hover:underline-offset-4 break-words" href="{{ route('hentai.index', ['title' => $episode->hentai->slug]) }}">{{ $episode->title }}</a>
</p> </p>
<div class="text-center xl:text-left"> <div class="text-center xl:text-left">
<ul class="inline-block xl:block"> <ul class="inline-block xl:block">
@foreach ($moreEpisodes as $episode) @foreach ($moreEpisodes as $episode)
@include('stream.partials.episode-partial') <li>
<x-episode-cover :episode="$episode" view="thumbnail"/>
</li>
@endforeach @endforeach
</ul> </ul>
</div> </div>
</div> </div>
</div>
@endif @endif
@@ -1,16 +1,16 @@
@if (count($studioEpisodes) > 0) @if (count($studioEpisodes) > 0)
<div class="pt-2 sm:px-2 lg:px-4 2xl:w-[450px]"> <div class="pt-2 sm:px-2 lg:px-4 2xl:w-[450px] p-2">
<div class="bg-transparent rounded-lg overflow-hidden p-4"> <p class="leading-normal font-bold text-xl dark:text-white text-black pb-2">
<p class="leading-normal font-bold text-xl dark:text-white pb-2">
{{ __('stream.more-from-studio') }} <a class="text-rose-600 hover:underline hover:underline-offset-4 break-words" href="{{ route('hentai.search', ['studios[0]' => $episode->studio->slug]) }}">{{ $episode->studio->name }}</a> {{ __('stream.more-from-studio') }} <a class="text-rose-600 hover:underline hover:underline-offset-4 break-words" href="{{ route('hentai.search', ['studios[0]' => $episode->studio->slug]) }}">{{ $episode->studio->name }}</a>
</p> </p>
<div class="text-center xl:text-left"> <div class="text-center xl:text-left">
<ul class="inline-block xl:block"> <ul class="inline-block xl:block">
@foreach ($studioEpisodes as $episode) @foreach ($studioEpisodes as $episode)
@include('stream.partials.episode-partial') <li>
<x-episode-cover :episode="$episode" view="thumbnail"/>
</li>
@endforeach @endforeach
</ul> </ul>
</div> </div>
</div> </div>
</div>
@endif @endif
+15 -5
View File
@@ -45,18 +45,28 @@ Route::group(['middleware' => ['auth', 'auth.admin']], function () {
// Episode // Episode
Route::post('/admin/episode/upload', [EpisodeController::class, 'store'])->name('admin.upload.episode'); Route::post('/admin/episode/upload', [EpisodeController::class, 'store'])->name('admin.upload.episode');
Route::post('/admin/episode/edit', [EpisodeController::class, 'update'])->name('admin.edit');
// Get Tags used for Upload Form // Get Tags used for Upload Form
Route::get('/admin/tags', [AdminApiController::class, 'getTags'])->name('admin.tags'); Route::get('/admin/tags', [AdminApiController::class, 'getTags'])->name('admin.tags');
Route::get('/admin/studios', [AdminApiController::class, 'getStudios'])->name('admin.studios'); Route::get('/admin/studios', [AdminApiController::class, 'getStudios'])->name('admin.studios');
// Get Tags for editing Episode
Route::get('/admin/tags/{episode_id}', [AdminApiController::class, 'getEpisodeTags'])->name('admin.tags.episode');
Route::get('/admin/studio/{episode_id}', [AdminApiController::class, 'getEpisodeStudio'])->name('admin.studio.episode');
// Subtitles // Subtitles
Route::get('/admin/subtitles/{episode_id}', [AdminApiController::class, 'getSubtitles'])->name('admin.subtitles'); Route::get('/admin/subtitles/{episode_id}', [AdminApiController::class, 'getSubtitles'])->name('admin.subtitles');
Route::post('/admin/add-new-subtitle', [SubtitleController::class, 'store'])->name('admin.add.new.subtitle'); Route::post('/admin/add-new-subtitle', [SubtitleController::class, 'store'])->name('admin.add.new.subtitle');
Route::post('/admin/update-subtitles', [SubtitleController::class, 'update'])->name('admin.update.subtitles'); Route::post('/admin/update-subtitles', [SubtitleController::class, 'update'])->name('admin.update.subtitles');
}); });
/*
|---------------------------------------------------------------------------------
| Moderator Routes
|---------------------------------------------------------------------------------
*/
Route::group(['middleware' => ['auth', 'auth.moderator']], function () {
// Get Tags for editing Episode
Route::get('/admin/tags/{episode_id}', [AdminApiController::class, 'getEpisodeTags'])->name('admin.tags.episode');
Route::get('/admin/studio/{episode_id}', [AdminApiController::class, 'getEpisodeStudio'])->name('admin.studio.episode');
// Edit Episode
Route::post('/admin/episode/edit', [EpisodeController::class, 'update'])->name('admin.episode.edit');
});
+5 -3
View File
@@ -2,6 +2,7 @@
use Illuminate\Foundation\Inspiring; use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Schedule;
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@@ -14,6 +15,7 @@ use Illuminate\Support\Facades\Artisan;
| |
*/ */
Artisan::command('inspire', function () { Schedule::command('app:auto-stats')->hourly();
$this->comment(Inspiring::quote()); Schedule::command('app:reset-user-downloads')->daily();
})->purpose('Display an inspiring quote'); Schedule::command('app:generate-sitemap')->daily();
Schedule::command('app:sync-subscription-keys')->daily();
+19
View File
@@ -18,6 +18,25 @@ export default {
sans: ['Figtree', ...defaultTheme.fontFamily.sans], sans: ['Figtree', ...defaultTheme.fontFamily.sans],
}, },
}, },
screens: {
'sm': '640px',
// => @media (min-width: 640px) { ... }
'md': '768px',
// => @media (min-width: 768px) { ... }
'lg': '1024px',
// => @media (min-width: 1024px) { ... }
'xl': '1280px',
// => @media (min-width: 1280px) { ... }
'2xl': '1536px',
// => @media (min-width: 1536px) { ... }
'3xl': '1900px',
}
}, },
plugins: [forms, require("tw-elements/dist/plugin")], plugins: [forms, require("tw-elements/dist/plugin")],