diff --git a/apps/web/src/app/main/course/detail/page.tsx b/apps/web/src/app/main/course/detail/page.tsx
deleted file mode 100755
index 82dd7ae..0000000
--- a/apps/web/src/app/main/course/detail/page.tsx
+++ /dev/null
@@ -1,7 +0,0 @@
-import CourseDetail from "@web/src/components/models/course/detail/CourseDetail";
-import { useParams } from "react-router-dom";
-
-export function CourseDetailPage() {
- const { id, lectureId } = useParams();
- return ;
-}
diff --git a/apps/web/src/app/main/course/preview/components/couresPreviewTabmsg.tsx b/apps/web/src/app/main/course/preview/components/couresPreviewTabmsg.tsx
deleted file mode 100755
index 8f32fce..0000000
--- a/apps/web/src/app/main/course/preview/components/couresPreviewTabmsg.tsx
+++ /dev/null
@@ -1,25 +0,0 @@
-import { Checkbox, List } from 'antd';
-import React from 'react';
-
-export function CoursePreviewTabmsg({data}){
-
-
- const renderItem = (item) => (
-
-
-
- );
-
- return(
-
-
-
- )
-}
\ No newline at end of file
diff --git a/apps/web/src/app/main/course/preview/components/courseCatalog.tsx b/apps/web/src/app/main/course/preview/components/courseCatalog.tsx
deleted file mode 100755
index b13e87d..0000000
--- a/apps/web/src/app/main/course/preview/components/courseCatalog.tsx
+++ /dev/null
@@ -1,11 +0,0 @@
-import type { MenuProps } from 'antd';
-import { Menu } from 'antd';
-
-type MenuItem = Required['items'][number];
-
-export function CourseCatalog(){
- return (
- <>
- >
- )
-}
\ No newline at end of file
diff --git a/apps/web/src/app/main/course/preview/components/coursePreviewAllmsg.tsx b/apps/web/src/app/main/course/preview/components/coursePreviewAllmsg.tsx
deleted file mode 100755
index 73ed1f9..0000000
--- a/apps/web/src/app/main/course/preview/components/coursePreviewAllmsg.tsx
+++ /dev/null
@@ -1,73 +0,0 @@
-import { useEffect } from "react";
-import { CoursePreviewMsg } from "@web/src/app/main/course/preview/type.ts";
-import { Button, Tabs, Image, Skeleton } from "antd";
-import type { TabsProps } from "antd";
-import { PlayCircleOutlined } from "@ant-design/icons";
-export function CoursePreviewAllmsg({
- previewMsg,
- items,
- isLoading,
-}: {
- previewMsg?: CoursePreviewMsg;
- items: TabsProps["items"];
- isLoading: boolean;
-}) {
- useEffect(() => {
- console.log(previewMsg);
- });
- const TapOnChange = (key: string) => {
- console.log(key);
- };
- return (
-
-
-
-
- {isLoading ? (
-
- ) : (
- <>
-
- {previewMsg.Title}
-
-
- {previewMsg.SubTitle}
-
-
- {previewMsg.Description}
-
- >
- )}
-
-
-
-
-
-
-
-
- );
-}
diff --git a/apps/web/src/app/main/course/preview/page.tsx b/apps/web/src/app/main/course/preview/page.tsx
deleted file mode 100755
index 367c21a..0000000
--- a/apps/web/src/app/main/course/preview/page.tsx
+++ /dev/null
@@ -1,81 +0,0 @@
-import { Skeleton, type TabsProps } from 'antd';
-import { CoursePreviewAllmsg } from "./components/coursePreviewAllmsg";
-import { CoursePreviewTabmsg } from "./components/couresPreviewTabmsg";
-import { CoursePreviewMsg } from "./type";
-import { api } from '@nice/client'
-import { useNavigate, useParams } from 'react-router-dom';
-import { useEffect, useState } from 'react';
-import { courseDetailSelect, CourseDto } from '@nice/common';
-
-export function CoursePreview(){
- const { id } = useParams()
- const { data:course,isLoading:courseIsLoading}:{data:CourseDto,isLoading:boolean}= api.post.findFirst.useQuery({
- where:{
- id
- },
- select:courseDetailSelect
- })
- // course.sections[0].lectures[0]
- // `/course/${course.id}/detail/${Lecture.id}`
- useEffect(() => {
- if(!courseIsLoading){
- setPreviewMsg({
- videoPreview: course?.meta?.thumbnail,
- Title: course?.title,
- SubTitle:course?.subTitle,
- Description:course?.content,
- ToCourseUrl:`/course/${id}`,
- isLoading:courseIsLoading
- })
- }
-
- },[courseIsLoading])
- const [previewMsg,setPreviewMsg] = useState({
- videoPreview: '',
- Title: '',
- SubTitle:'',
- Description:'',
- ToCourseUrl:'',
- isLoading:courseIsLoading
- })
- const tapData = [
- {
- title: '掌握R语言的基本概念语法',
- description: '学生将学习R语言和RStudio的基本知识',
- },
- {
- title: '掌握R语言的基本概念语法',
- description: '学生将学习R语言的变量、数据类型、循环和条件语句等',
- },
- {
- title: '掌握R语言的数据导入管理',
- description: '学生将学会如何将数据导入R环境,并且使用各种类型的数据',
- },
- {
- title: '掌握R语言的基本数据清洗',
- description: '学生将学会使用R语言进行数据清洗、整理和管理',
- },
- {
- title: '掌握R语言的基本数据统计',
- description: '学生将学会使用R语言进行基本的数据统计',
- },
- {
- title: '掌握R语言的基本绘图功能',
- description: '学生将学会使用R语言基本的绘图功能和ggplot2的应用',
- },
- ];
- const isLoading = false
- const items: TabsProps['items'] = [
- {
- key: '1',
- label: '课程学习目标',
- children: isLoading ? : ,
- }
- ];
-
- return(
-
-
-
- )
-}
\ No newline at end of file
diff --git a/apps/web/src/app/main/course/preview/type.ts b/apps/web/src/app/main/course/preview/type.ts
deleted file mode 100755
index fe3a2fd..0000000
--- a/apps/web/src/app/main/course/preview/type.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-export interface CoursePreviewMsg {
- videoPreview: string;
- Title: string;
- SubTitle: string;
- Description: string;
- ToCourseUrl: string;
- isLoading: boolean;
-}
diff --git a/apps/web/src/app/main/courses/components/CoursesContainer.tsx b/apps/web/src/app/main/courses/components/CoursesContainer.tsx
deleted file mode 100755
index 0b87258..0000000
--- a/apps/web/src/app/main/courses/components/CoursesContainer.tsx
+++ /dev/null
@@ -1,26 +0,0 @@
-import { useMainContext } from "../../layout/MainProvider";
-import { PostType, Prisma } from "@nice/common";
-import PostList from "@web/src/components/models/course/list/PostList";
-import CourseCard from "@web/src/components/models/post/SubPost/CourseCard";
-
-export function CoursesContainer() {
- const { searchCondition, termsCondition } = useMainContext();
- return (
- <>
- }
- params={{
- pageSize: 12,
- where: {
- type: PostType.COURSE,
- deletedAt: null,
- ...termsCondition,
- ...searchCondition,
- },
- }}
- cols={4}>
- >
- );
-}
-
-export default CoursesContainer;
diff --git a/apps/web/src/app/main/courses/page.tsx b/apps/web/src/app/main/courses/page.tsx
deleted file mode 100755
index 79eda89..0000000
--- a/apps/web/src/app/main/courses/page.tsx
+++ /dev/null
@@ -1,18 +0,0 @@
-import BasePostLayout from "../layout/BasePost/BasePostLayout";
-import CoursesContainer from "./components/CoursesContainer";
-import { useEffect } from "react";
-import { useMainContext } from "../layout/MainProvider";
-import { PostType } from "@nice/common";
-export default function CoursesPage() {
- const { setSearchMode } = useMainContext();
- useEffect(() => {
- setSearchMode(PostType.COURSE);
- }, [setSearchMode]);
- return (
- <>
-
-
-
- >
- );
-}