images
This commit is contained in:
parent
f51c2c68d3
commit
d443ba75ba
@ -14,6 +14,7 @@ class Channel extends Model
|
|||||||
'youtube_name',
|
'youtube_name',
|
||||||
'twitch_id',
|
'twitch_id',
|
||||||
'youtube_id',
|
'youtube_id',
|
||||||
|
'img_url',
|
||||||
'language',
|
'language',
|
||||||
'fetching_enabled',
|
'fetching_enabled',
|
||||||
];
|
];
|
||||||
|
@ -203,8 +203,8 @@ export default function Clips() {
|
|||||||
>
|
>
|
||||||
<figure>
|
<figure>
|
||||||
<img
|
<img
|
||||||
src="https://img.daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.webp"
|
src={clip.video.channel.img_url}
|
||||||
alt="Video Thumbnail"
|
alt={clip.video.channel.channel_name}
|
||||||
/>
|
/>
|
||||||
</figure>
|
</figure>
|
||||||
<div className="card-body">
|
<div className="card-body">
|
||||||
|
@ -197,13 +197,13 @@ export default function Videos() {
|
|||||||
<input type="checkbox" className="checkbox"/>
|
<input type="checkbox" className="checkbox"/>
|
||||||
</label>
|
</label>
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td className="pr-0">
|
||||||
<div className="flex items-center gap-3">
|
<div className="flex items-center gap-3">
|
||||||
<div className="avatar">
|
<div className="avatar">
|
||||||
<div className="mask mask-squircle h-12 w-12">
|
<div className="mask mask-squircle h-12 w-12">
|
||||||
<img
|
<img
|
||||||
src="https://img.daisyui.com/images/profile/demo/2@94.webp"
|
src={video.channel.img_url}
|
||||||
alt="Avatar Tailwind CSS Component"/>
|
alt={video.channel.channel_name}/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@ -213,13 +213,16 @@ export default function Videos() {
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{video.name}
|
<div className="flex flex-col w-max max-w-[500px]">
|
||||||
<br/>
|
<div>
|
||||||
<a href={route('clips', {video_id: video.id})} target="_blank">
|
{video.name}
|
||||||
<span className="badge badge-ghost badge-sm">
|
</div>
|
||||||
Clip count: {video.clips.length || 0}
|
<a href={route('clips', {video_id: video.id})} target="_blank">
|
||||||
</span>
|
<span className="badge badge-ghost badge-sm">
|
||||||
</a>
|
Clip count: {video.clips.length || 0}
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div className="grid grid-cols-2 gap-2">
|
<div className="grid grid-cols-2 gap-2">
|
||||||
@ -236,16 +239,6 @@ export default function Videos() {
|
|||||||
|
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
{/* foot */}
|
|
||||||
<tfoot>
|
|
||||||
<tr>
|
|
||||||
<th></th>
|
|
||||||
<th>Name</th>
|
|
||||||
<th>Job</th>
|
|
||||||
<th>Favorite Color</th>
|
|
||||||
<th></th>
|
|
||||||
</tr>
|
|
||||||
</tfoot>
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -127,6 +127,7 @@ export interface Channel {
|
|||||||
youtube_name: string | null;
|
youtube_name: string | null;
|
||||||
twitch_id: string | null;
|
twitch_id: string | null;
|
||||||
youtube_id: string | null;
|
youtube_id: string | null;
|
||||||
|
img_url: string | null;
|
||||||
language: string;
|
language: string;
|
||||||
fetching_enabled: boolean;
|
fetching_enabled: boolean;
|
||||||
created_at: Date | null;
|
created_at: Date | null;
|
||||||
|
Loading…
Reference in New Issue
Block a user