├── .env.example ├── .eslintrc.json ├── .gitignore ├── .prettierrc ├── README.md ├── actions ├── get-analytics.ts ├── get-chapter.ts ├── get-courses.ts ├── get-dashboard-courses.ts └── get-progress.ts ├── app ├── (auth) │ └── (routes) │ │ ├── layout.tsx │ │ ├── sign-in │ │ └── [[...sign-in]] │ │ │ └── page.tsx │ │ └── sign-up │ │ └── [[...sign-up]] │ │ └── page.tsx ├── (course) │ └── courses │ │ └── [courseId] │ │ ├── _components │ │ ├── course-mobile-sidebar.tsx │ │ ├── course-navbar.tsx │ │ ├── course-sidebar-item.tsx │ │ └── course-sidebar.tsx │ │ ├── chapters │ │ └── [chapterId] │ │ │ ├── _components │ │ │ ├── course-enroll-button.tsx │ │ │ ├── course-progress-button.tsx │ │ │ └── video-player.tsx │ │ │ └── page.tsx │ │ ├── layout.tsx │ │ └── page.tsx ├── (dashboard) │ ├── (routes) │ │ ├── (root) │ │ │ ├── _components │ │ │ │ └── info-card.tsx │ │ │ └── page.tsx │ │ ├── search │ │ │ ├── _component │ │ │ │ ├── category-item.tsx │ │ │ │ └── category.tsx │ │ │ └── page.tsx │ │ └── teacher │ │ │ ├── analytics │ │ │ ├── _components │ │ │ │ ├── chart.tsx │ │ │ │ └── data-card.tsx │ │ │ └── page.tsx │ │ │ ├── courses │ │ │ ├── [courseId] │ │ │ │ ├── _components │ │ │ │ │ ├── actions.tsx │ │ │ │ │ ├── attachment-form.tsx │ │ │ │ │ ├── category-form.tsx │ │ │ │ │ ├── chapters-form.tsx │ │ │ │ │ ├── chapters-list.tsx │ │ │ │ │ ├── description-form.tsx │ │ │ │ │ ├── image-form.tsx │ │ │ │ │ ├── price-form.tsx │ │ │ │ │ └── title-form.tsx │ │ │ │ ├── chapters │ │ │ │ │ └── [chapterId] │ │ │ │ │ │ ├── _components │ │ │ │ │ │ ├── chapter-access-form.tsx │ │ │ │ │ │ ├── chapter-actions.tsx │ │ │ │ │ │ ├── chapter-description-form.tsx │ │ │ │ │ │ ├── chapter-title-form.tsx │ │ │ │ │ │ └── chapter-video-form.tsx │ │ │ │ │ │ └── page.tsx │ │ │ │ └── page.tsx │ │ │ ├── _component │ │ │ │ ├── columns.tsx │ │ │ │ └── data-table.tsx │ │ │ └── page.tsx │ │ │ ├── create │ │ │ └── page.tsx │ │ │ └── layout.tsx │ ├── _components │ │ ├── logo.tsx │ │ ├── mobile-sidebar.tsx │ │ ├── navbar.tsx │ │ ├── sidebar-item.tsx │ │ ├── sidebar-routes.tsx │ │ └── sidebar.tsx │ └── layout.tsx ├── api │ ├── courses │ │ ├── [courseId] │ │ │ ├── attachments │ │ │ │ ├── [attachmentId] │ │ │ │ │ └── route.ts │ │ │ │ └── route.ts │ │ │ ├── chapters │ │ │ │ ├── [chapterId] │ │ │ │ │ ├── progress │ │ │ │ │ │ └── route.ts │ │ │ │ │ ├── publish │ │ │ │ │ │ └── route.ts │ │ │ │ │ ├── route.ts │ │ │ │ │ └── unpublish │ │ │ │ │ │ └── route.ts │ │ │ │ ├── reorder │ │ │ │ │ └── route.ts │ │ │ │ └── route.ts │ │ │ ├── checkout │ │ │ │ └── route.ts │ │ │ ├── publish │ │ │ │ └── route.ts │ │ │ ├── route.ts │ │ │ └── unpublish │ │ │ │ └── route.ts │ │ └── route.ts │ ├── uploadthing │ │ ├── core.ts │ │ └── route.ts │ └── webhook │ │ └── route.ts ├── favicon.ico ├── globals.css └── layout.tsx ├── components.json ├── components ├── banner.tsx ├── course-card.tsx ├── course-list.tsx ├── course-progress.tsx ├── editor.tsx ├── file-upload.tsx ├── icon-badge.tsx ├── modals │ ├── confirm-modal.tsx │ └── index.ts ├── navbar-routes.tsx ├── preview.tsx ├── providers │ ├── confetti-provider.tsx │ ├── index.ts │ └── toaster-provider.tsx ├── search-input.tsx └── ui │ ├── alert-dialog.tsx │ ├── badge.tsx │ ├── button.tsx │ ├── card.tsx │ ├── checkbox.tsx │ ├── combobox.tsx │ ├── command.tsx │ ├── dialog.tsx │ ├── dropdown-menu.tsx │ ├── form.tsx │ ├── input.tsx │ ├── label.tsx │ ├── popover.tsx │ ├── progress.tsx │ ├── separator.tsx │ ├── sheet.tsx │ ├── table.tsx │ └── textarea.tsx ├── docker-compose.yml ├── hooks ├── use-confetti.ts └── use-debounce.ts ├── lib ├── db.ts ├── format.ts ├── stripe.ts ├── teacher.ts ├── uploadthing.ts └── utils.ts ├── middleware.ts ├── next.config.js ├── package.json ├── pnpm-lock.yaml ├── postcss.config.js ├── prisma ├── migrations │ ├── 20231211064950_create_models_for_courses │ │ └── migration.sql │ ├── 20231212093250_rename_attachement_to_attachment │ │ └── migration.sql │ ├── 20231212101804_add_model_for_chapter_mux_data_user_progress_purchase_and_stripe_customer │ │ └── migration.sql │ ├── 20231212121922_fix_typos │ │ └── migration.sql │ └── migration_lock.toml └── schema.prisma ├── public ├── logo.svg ├── next.svg └── vercel.svg ├── scripts └── seed.ts ├── tailwind.config.ts └── tsconfig.json /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/.env.example -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/.prettierrc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/README.md -------------------------------------------------------------------------------- /actions/get-analytics.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/actions/get-analytics.ts -------------------------------------------------------------------------------- /actions/get-chapter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/actions/get-chapter.ts -------------------------------------------------------------------------------- /actions/get-courses.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/actions/get-courses.ts -------------------------------------------------------------------------------- /actions/get-dashboard-courses.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/actions/get-dashboard-courses.ts -------------------------------------------------------------------------------- /actions/get-progress.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/actions/get-progress.ts -------------------------------------------------------------------------------- /app/(auth)/(routes)/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(auth)/(routes)/layout.tsx -------------------------------------------------------------------------------- /app/(auth)/(routes)/sign-in/[[...sign-in]]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(auth)/(routes)/sign-in/[[...sign-in]]/page.tsx -------------------------------------------------------------------------------- /app/(auth)/(routes)/sign-up/[[...sign-up]]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(auth)/(routes)/sign-up/[[...sign-up]]/page.tsx -------------------------------------------------------------------------------- /app/(course)/courses/[courseId]/_components/course-mobile-sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(course)/courses/[courseId]/_components/course-mobile-sidebar.tsx -------------------------------------------------------------------------------- /app/(course)/courses/[courseId]/_components/course-navbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(course)/courses/[courseId]/_components/course-navbar.tsx -------------------------------------------------------------------------------- /app/(course)/courses/[courseId]/_components/course-sidebar-item.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(course)/courses/[courseId]/_components/course-sidebar-item.tsx -------------------------------------------------------------------------------- /app/(course)/courses/[courseId]/_components/course-sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(course)/courses/[courseId]/_components/course-sidebar.tsx -------------------------------------------------------------------------------- /app/(course)/courses/[courseId]/chapters/[chapterId]/_components/course-enroll-button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(course)/courses/[courseId]/chapters/[chapterId]/_components/course-enroll-button.tsx -------------------------------------------------------------------------------- /app/(course)/courses/[courseId]/chapters/[chapterId]/_components/course-progress-button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(course)/courses/[courseId]/chapters/[chapterId]/_components/course-progress-button.tsx -------------------------------------------------------------------------------- /app/(course)/courses/[courseId]/chapters/[chapterId]/_components/video-player.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(course)/courses/[courseId]/chapters/[chapterId]/_components/video-player.tsx -------------------------------------------------------------------------------- /app/(course)/courses/[courseId]/chapters/[chapterId]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(course)/courses/[courseId]/chapters/[chapterId]/page.tsx -------------------------------------------------------------------------------- /app/(course)/courses/[courseId]/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(course)/courses/[courseId]/layout.tsx -------------------------------------------------------------------------------- /app/(course)/courses/[courseId]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(course)/courses/[courseId]/page.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/(root)/_components/info-card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/(root)/_components/info-card.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/(root)/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/(root)/page.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/search/_component/category-item.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/search/_component/category-item.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/search/_component/category.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/search/_component/category.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/search/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/search/page.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/teacher/analytics/_components/chart.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/teacher/analytics/_components/chart.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/teacher/analytics/_components/data-card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/teacher/analytics/_components/data-card.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/teacher/analytics/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/teacher/analytics/page.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/teacher/courses/[courseId]/_components/actions.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/teacher/courses/[courseId]/_components/actions.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/teacher/courses/[courseId]/_components/attachment-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/teacher/courses/[courseId]/_components/attachment-form.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/teacher/courses/[courseId]/_components/category-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/teacher/courses/[courseId]/_components/category-form.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/teacher/courses/[courseId]/_components/chapters-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/teacher/courses/[courseId]/_components/chapters-form.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/teacher/courses/[courseId]/_components/chapters-list.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/teacher/courses/[courseId]/_components/chapters-list.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/teacher/courses/[courseId]/_components/description-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/teacher/courses/[courseId]/_components/description-form.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/teacher/courses/[courseId]/_components/image-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/teacher/courses/[courseId]/_components/image-form.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/teacher/courses/[courseId]/_components/price-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/teacher/courses/[courseId]/_components/price-form.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/teacher/courses/[courseId]/_components/title-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/teacher/courses/[courseId]/_components/title-form.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/teacher/courses/[courseId]/chapters/[chapterId]/_components/chapter-access-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/teacher/courses/[courseId]/chapters/[chapterId]/_components/chapter-access-form.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/teacher/courses/[courseId]/chapters/[chapterId]/_components/chapter-actions.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/teacher/courses/[courseId]/chapters/[chapterId]/_components/chapter-actions.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/teacher/courses/[courseId]/chapters/[chapterId]/_components/chapter-description-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/teacher/courses/[courseId]/chapters/[chapterId]/_components/chapter-description-form.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/teacher/courses/[courseId]/chapters/[chapterId]/_components/chapter-title-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/teacher/courses/[courseId]/chapters/[chapterId]/_components/chapter-title-form.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/teacher/courses/[courseId]/chapters/[chapterId]/_components/chapter-video-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/teacher/courses/[courseId]/chapters/[chapterId]/_components/chapter-video-form.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/teacher/courses/[courseId]/chapters/[chapterId]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/teacher/courses/[courseId]/chapters/[chapterId]/page.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/teacher/courses/[courseId]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/teacher/courses/[courseId]/page.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/teacher/courses/_component/columns.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/teacher/courses/_component/columns.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/teacher/courses/_component/data-table.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/teacher/courses/_component/data-table.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/teacher/courses/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/teacher/courses/page.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/teacher/create/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/teacher/create/page.tsx -------------------------------------------------------------------------------- /app/(dashboard)/(routes)/teacher/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/(routes)/teacher/layout.tsx -------------------------------------------------------------------------------- /app/(dashboard)/_components/logo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/_components/logo.tsx -------------------------------------------------------------------------------- /app/(dashboard)/_components/mobile-sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/_components/mobile-sidebar.tsx -------------------------------------------------------------------------------- /app/(dashboard)/_components/navbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/_components/navbar.tsx -------------------------------------------------------------------------------- /app/(dashboard)/_components/sidebar-item.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/_components/sidebar-item.tsx -------------------------------------------------------------------------------- /app/(dashboard)/_components/sidebar-routes.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/_components/sidebar-routes.tsx -------------------------------------------------------------------------------- /app/(dashboard)/_components/sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/_components/sidebar.tsx -------------------------------------------------------------------------------- /app/(dashboard)/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/(dashboard)/layout.tsx -------------------------------------------------------------------------------- /app/api/courses/[courseId]/attachments/[attachmentId]/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/api/courses/[courseId]/attachments/[attachmentId]/route.ts -------------------------------------------------------------------------------- /app/api/courses/[courseId]/attachments/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/api/courses/[courseId]/attachments/route.ts -------------------------------------------------------------------------------- /app/api/courses/[courseId]/chapters/[chapterId]/progress/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/api/courses/[courseId]/chapters/[chapterId]/progress/route.ts -------------------------------------------------------------------------------- /app/api/courses/[courseId]/chapters/[chapterId]/publish/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/api/courses/[courseId]/chapters/[chapterId]/publish/route.ts -------------------------------------------------------------------------------- /app/api/courses/[courseId]/chapters/[chapterId]/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/api/courses/[courseId]/chapters/[chapterId]/route.ts -------------------------------------------------------------------------------- /app/api/courses/[courseId]/chapters/[chapterId]/unpublish/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/api/courses/[courseId]/chapters/[chapterId]/unpublish/route.ts -------------------------------------------------------------------------------- /app/api/courses/[courseId]/chapters/reorder/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/api/courses/[courseId]/chapters/reorder/route.ts -------------------------------------------------------------------------------- /app/api/courses/[courseId]/chapters/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/api/courses/[courseId]/chapters/route.ts -------------------------------------------------------------------------------- /app/api/courses/[courseId]/checkout/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/api/courses/[courseId]/checkout/route.ts -------------------------------------------------------------------------------- /app/api/courses/[courseId]/publish/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/api/courses/[courseId]/publish/route.ts -------------------------------------------------------------------------------- /app/api/courses/[courseId]/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/api/courses/[courseId]/route.ts -------------------------------------------------------------------------------- /app/api/courses/[courseId]/unpublish/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/api/courses/[courseId]/unpublish/route.ts -------------------------------------------------------------------------------- /app/api/courses/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/api/courses/route.ts -------------------------------------------------------------------------------- /app/api/uploadthing/core.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/api/uploadthing/core.ts -------------------------------------------------------------------------------- /app/api/uploadthing/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/api/uploadthing/route.ts -------------------------------------------------------------------------------- /app/api/webhook/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/api/webhook/route.ts -------------------------------------------------------------------------------- /app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/favicon.ico -------------------------------------------------------------------------------- /app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/globals.css -------------------------------------------------------------------------------- /app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/app/layout.tsx -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components.json -------------------------------------------------------------------------------- /components/banner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/banner.tsx -------------------------------------------------------------------------------- /components/course-card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/course-card.tsx -------------------------------------------------------------------------------- /components/course-list.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/course-list.tsx -------------------------------------------------------------------------------- /components/course-progress.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/course-progress.tsx -------------------------------------------------------------------------------- /components/editor.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/editor.tsx -------------------------------------------------------------------------------- /components/file-upload.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/file-upload.tsx -------------------------------------------------------------------------------- /components/icon-badge.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/icon-badge.tsx -------------------------------------------------------------------------------- /components/modals/confirm-modal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/modals/confirm-modal.tsx -------------------------------------------------------------------------------- /components/modals/index.ts: -------------------------------------------------------------------------------- 1 | export * from './confirm-modal' 2 | -------------------------------------------------------------------------------- /components/navbar-routes.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/navbar-routes.tsx -------------------------------------------------------------------------------- /components/preview.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/preview.tsx -------------------------------------------------------------------------------- /components/providers/confetti-provider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/providers/confetti-provider.tsx -------------------------------------------------------------------------------- /components/providers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/providers/index.ts -------------------------------------------------------------------------------- /components/providers/toaster-provider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/providers/toaster-provider.tsx -------------------------------------------------------------------------------- /components/search-input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/search-input.tsx -------------------------------------------------------------------------------- /components/ui/alert-dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/ui/alert-dialog.tsx -------------------------------------------------------------------------------- /components/ui/badge.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/ui/badge.tsx -------------------------------------------------------------------------------- /components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/ui/button.tsx -------------------------------------------------------------------------------- /components/ui/card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/ui/card.tsx -------------------------------------------------------------------------------- /components/ui/checkbox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/ui/checkbox.tsx -------------------------------------------------------------------------------- /components/ui/combobox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/ui/combobox.tsx -------------------------------------------------------------------------------- /components/ui/command.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/ui/command.tsx -------------------------------------------------------------------------------- /components/ui/dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/ui/dialog.tsx -------------------------------------------------------------------------------- /components/ui/dropdown-menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/ui/dropdown-menu.tsx -------------------------------------------------------------------------------- /components/ui/form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/ui/form.tsx -------------------------------------------------------------------------------- /components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/ui/input.tsx -------------------------------------------------------------------------------- /components/ui/label.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/ui/label.tsx -------------------------------------------------------------------------------- /components/ui/popover.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/ui/popover.tsx -------------------------------------------------------------------------------- /components/ui/progress.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/ui/progress.tsx -------------------------------------------------------------------------------- /components/ui/separator.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/ui/separator.tsx -------------------------------------------------------------------------------- /components/ui/sheet.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/ui/sheet.tsx -------------------------------------------------------------------------------- /components/ui/table.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/ui/table.tsx -------------------------------------------------------------------------------- /components/ui/textarea.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/components/ui/textarea.tsx -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /hooks/use-confetti.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/hooks/use-confetti.ts -------------------------------------------------------------------------------- /hooks/use-debounce.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/hooks/use-debounce.ts -------------------------------------------------------------------------------- /lib/db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/lib/db.ts -------------------------------------------------------------------------------- /lib/format.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/lib/format.ts -------------------------------------------------------------------------------- /lib/stripe.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/lib/stripe.ts -------------------------------------------------------------------------------- /lib/teacher.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/lib/teacher.ts -------------------------------------------------------------------------------- /lib/uploadthing.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/lib/uploadthing.ts -------------------------------------------------------------------------------- /lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/lib/utils.ts -------------------------------------------------------------------------------- /middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/middleware.ts -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/postcss.config.js -------------------------------------------------------------------------------- /prisma/migrations/20231211064950_create_models_for_courses/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/prisma/migrations/20231211064950_create_models_for_courses/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20231212093250_rename_attachement_to_attachment/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/prisma/migrations/20231212093250_rename_attachement_to_attachment/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20231212101804_add_model_for_chapter_mux_data_user_progress_purchase_and_stripe_customer/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/prisma/migrations/20231212101804_add_model_for_chapter_mux_data_user_progress_purchase_and_stripe_customer/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20231212121922_fix_typos/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/prisma/migrations/20231212121922_fix_typos/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /public/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/public/logo.svg -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /scripts/seed.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/scripts/seed.ts -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/tailwind.config.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrHacker26/next-lms/HEAD/tsconfig.json --------------------------------------------------------------------------------