Channel links in web app
This commit is contained in:
1 parent
5179de5c74
commit
771929d0d8
2 files changed
+17
-4
No files matched your search
@@ -37,9 +37,11 @@
|
|||||||
<dialog bind:this={modal} class="modal">
|
<dialog bind:this={modal} class="modal">
|
||||||
<form method="dialog" class="modal-box bg-base-100">
|
<form method="dialog" class="modal-box bg-base-100">
|
||||||
<div class="flex flex-col items-center">
|
<div class="flex flex-col items-center">
|
||||||
|
{#if authorThumbnails}
|
||||||
<div class="w-32">
|
<div class="w-32">
|
||||||
<ChannelThumbnail bind:author bind:authorThumbnails />
|
<ChannelThumbnail bind:author bind:authorThumbnails />
|
||||||
</div>
|
</div>
|
||||||
|
{/if}
|
||||||
<div class="m-4">{author}</div>
|
<div class="m-4">{author}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
import { playletStateStore } from "lib/Stores";
|
import { playletStateStore } from "lib/Stores";
|
||||||
import VideoCastDialog from "./VideoCastDialog.svelte";
|
import VideoCastDialog from "./VideoCastDialog.svelte";
|
||||||
import VideoThumbnail from "./VideoThumbnail.svelte";
|
import VideoThumbnail from "./VideoThumbnail.svelte";
|
||||||
|
import ChannelCastDialog from "./ChannelCastDialog.svelte";
|
||||||
|
|
||||||
export let title: string | undefined = undefined;
|
export let title: string | undefined = undefined;
|
||||||
export let videoId: string | undefined = undefined;
|
export let videoId: string | undefined = undefined;
|
||||||
@@ -37,7 +38,8 @@
|
|||||||
// svelte-ignore unused-export-let
|
// svelte-ignore unused-export-let
|
||||||
export let indexId: string = undefined;
|
export let indexId: string = undefined;
|
||||||
|
|
||||||
let modal;
|
let videoModal;
|
||||||
|
let channelModal;
|
||||||
let invidiousInstance;
|
let invidiousInstance;
|
||||||
|
|
||||||
playletStateStore.subscribe((value) => {
|
playletStateStore.subscribe((value) => {
|
||||||
@@ -137,7 +139,7 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<button class="w-80 p-2" on:click={modal.show()}>
|
<button class="w-80 p-2" on:click={videoModal.show()}>
|
||||||
<div class="card card-compact bg-base-100 shadow-xl border border-neutral">
|
<div class="card card-compact bg-base-100 shadow-xl border border-neutral">
|
||||||
<VideoThumbnail
|
<VideoThumbnail
|
||||||
bind:title
|
bind:title
|
||||||
@@ -149,13 +151,21 @@
|
|||||||
/>
|
/>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h3 class="card-title text-base line-clamp-2 min-h-12">{title}</h3>
|
<h3 class="card-title text-base line-clamp-2 min-h-12">{title}</h3>
|
||||||
<div class="font-semibold">{author}</div>
|
<button
|
||||||
|
class="font-semibold link"
|
||||||
|
on:click={(e) => {
|
||||||
|
e.stopPropagation();
|
||||||
|
channelModal.show();
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{author}
|
||||||
|
</button>
|
||||||
<div>{getViewCountDateText()}</div>
|
<div>{getViewCountDateText()}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
<VideoCastDialog
|
<VideoCastDialog
|
||||||
bind:this={modal}
|
bind:this={videoModal}
|
||||||
bind:videoId
|
bind:videoId
|
||||||
bind:title
|
bind:title
|
||||||
bind:author
|
bind:author
|
||||||
@@ -166,3 +176,4 @@
|
|||||||
videoStartAtChecked={false}
|
videoStartAtChecked={false}
|
||||||
videoStartAtTimestamp={0}
|
videoStartAtTimestamp={0}
|
||||||
/>
|
/>
|
||||||
|
<ChannelCastDialog bind:this={channelModal} bind:author bind:authorId />
|
||||||
Reference in new issue
Block a user