+
+
+ {/*
@@ -29,49 +160,36 @@ export const AddContent = ({
-
-
+
*/}
+
- {type === 'video' &&
}
- {type === 'notion' &&
}
-
);
};
@@ -114,13 +232,14 @@ function AddVideoMetadata({ onChange }: { onChange: (metadata: any) => void }) {
onChange({ video_1080p, video_720p, video_360p });
}, [video_1080p, video_720p, video_360p]);
return (
-
+
{
await setVideo_1080p(e.target.value);
}}
+ className='h-14'
/>
void }) {
onChange={async (e) => {
await setVideo_720p(e.target.value);
}}
+ className='h-14'
/>
void }) {
onChange={async (e) => {
await setVideo_360p(e.target.value);
}}
+ className='h-14'
/>
);
diff --git a/src/components/admin/UpdateVideoClient.tsx b/src/components/admin/UpdateVideoClient.tsx
index 7d9939be2..72dab147a 100644
--- a/src/components/admin/UpdateVideoClient.tsx
+++ b/src/components/admin/UpdateVideoClient.tsx
@@ -1,6 +1,16 @@
'use client';
import { useState } from 'react';
import axios from 'axios';
+import {
+ Accordion,
+ AccordionContent,
+ AccordionItem,
+ AccordionTrigger,
+} from "@/components/ui/accordion";
+import { FileText, Video } from 'lucide-react';
+import { Input } from '../ui/input';
+import { Button } from '../ui/button';
+import { Label } from '../ui/label';
export const UpdateVideoClient = ({
content,
@@ -25,124 +35,201 @@ export const UpdateVideoClient = ({
const [pdfLink, setPdfLink] = useState('');
const [vttLink, setVttLink] = useState('');
+ const [adminPassword, setAdminPassword] = useState('');
return (
- <>
- m3u8 links
-
{
- setLink1080(e.target.value);
- setLink720(e.target.value.replace('1080', '720'));
- setLink360(e.target.value.replace('1080', '360'));
- }}
- placeholder={'m3u8 1080p'}
- />
-
{
- setLink720(e.target.value);
- }}
- placeholder={'m3u8 720p'}
- />
-
{
- setLink360(e.target.value);
- }}
- placeholder={'m3u8 360p'}
- />
-
- Mp4 links
-
{
- setLink1080_mp4(e.target.value);
- setLink720_mp4(e.target.value.replace('1080', '720'));
- setLink360_mp4(e.target.value.replace('1080', '360'));
- }}
- placeholder={'m3u8 1080p'}
- />
-
{
- setLink720_mp4(e.target.value);
- }}
- placeholder={'m3u8 720p'}
- />
-
{
- setLink360_mp4(e.target.value);
- }}
- placeholder={'m3u8 360p'}
- />
-
-
{
- setPdfLink(e.target.value);
- }}
- placeholder={'pdf link'}
- />
-
-
-
{
- setVttLink(e.target.value);
- }}
- placeholder={'vtt link'}
- />
-
- >
+
+
+
+
+
+
+ M3U8 and MP4 Links
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Slides Links
+
+
+
+
+
+
+
+
+
+ VTT Link
+
+
+
+
+
+
+
+
+
);
};
diff --git a/src/components/big-calendar/calendar.tsx b/src/components/big-calendar/calendar.tsx
index 956787834..6e5f56ff3 100644
--- a/src/components/big-calendar/calendar.tsx
+++ b/src/components/big-calendar/calendar.tsx
@@ -201,7 +201,7 @@ const CalendarPageComponent: React.FC
= ({ isAdmin }) => {
};
return (
-
+
{isAdmin && (
)}
diff --git a/src/components/comment/Comments.tsx b/src/components/comment/Comments.tsx
index e7b309cda..441896a5e 100644
--- a/src/components/comment/Comments.tsx
+++ b/src/components/comment/Comments.tsx
@@ -217,7 +217,7 @@ const Comments = async ({
parentId={data?.parentComment?.id}
/>