Explorar o código

comment dir rename discussion

visuddhinanda %!s(int64=2) %!d(string=hai) anos
pai
achega
9c693e6b16

+ 1 - 1
dashboard/src/components/api/Comment.ts

@@ -1,4 +1,4 @@
-import { TContentType } from "../comment/CommentCreate";
+import { TContentType } from "../discussion/CommentCreate";
 import { IUserApiData } from "./Auth";
 
 export interface ICommentRequest {

+ 1 - 1
dashboard/src/components/api/Corpus.ts

@@ -1,7 +1,7 @@
 import { IStudio } from "../auth/StudioName";
 import { IUser } from "../auth/User";
 import { IChannel } from "../channel/Channel";
-import { TContentType } from "../comment/CommentCreate";
+import { TContentType } from "../discussion/CommentCreate";
 import { ISuggestionCount, IWidgetSentEditInner } from "../template/SentEdit";
 import { TChannelType } from "./Channel";
 import { TagNode } from "./Tag";

+ 1 - 1
dashboard/src/components/article/Article.tsx

@@ -11,7 +11,7 @@ import { ITextbook, refresh } from "../../reducers/current-course";
 import ExerciseList from "./ExerciseList";
 import ExerciseAnswer from "../course/ExerciseAnswer";
 import "./article.css";
-import CommentListCard from "../comment/CommentListCard";
+import CommentListCard from "../discussion/CommentListCard";
 import TocTree from "./TocTree";
 import PaliText from "../template/Wbw/PaliText";
 import ArticleSkeleton from "./ArticleSkeleton";

+ 0 - 0
dashboard/src/components/comment/AnchorCard.tsx → dashboard/src/components/discussion/AnchorCard.tsx


+ 0 - 0
dashboard/src/components/comment/CommentAnchor.tsx → dashboard/src/components/discussion/CommentAnchor.tsx


+ 0 - 0
dashboard/src/components/comment/CommentBox.tsx → dashboard/src/components/discussion/CommentBox.tsx


+ 0 - 0
dashboard/src/components/comment/CommentCreate.tsx → dashboard/src/components/discussion/CommentCreate.tsx


+ 0 - 0
dashboard/src/components/comment/CommentEdit.tsx → dashboard/src/components/discussion/CommentEdit.tsx


+ 0 - 0
dashboard/src/components/comment/CommentItem.tsx → dashboard/src/components/discussion/CommentItem.tsx


+ 0 - 0
dashboard/src/components/comment/CommentList.tsx → dashboard/src/components/discussion/CommentList.tsx


+ 0 - 0
dashboard/src/components/comment/CommentListCard.tsx → dashboard/src/components/discussion/CommentListCard.tsx


+ 0 - 0
dashboard/src/components/comment/CommentListItem.tsx → dashboard/src/components/discussion/CommentListItem.tsx


+ 0 - 0
dashboard/src/components/comment/CommentShow.tsx → dashboard/src/components/discussion/CommentShow.tsx


+ 0 - 0
dashboard/src/components/comment/CommentTopic.tsx → dashboard/src/components/discussion/CommentTopic.tsx


+ 0 - 0
dashboard/src/components/comment/CommentTopicChildren.tsx → dashboard/src/components/discussion/CommentTopicChildren.tsx


+ 0 - 0
dashboard/src/components/comment/CommentTopicInfo.tsx → dashboard/src/components/discussion/CommentTopicInfo.tsx


+ 1 - 1
dashboard/src/components/feedback/CreateFeedback.tsx

@@ -1,5 +1,5 @@
 import modal from "antd/lib/modal";
-import CommentCreate from "../comment/CommentCreate";
+import CommentCreate from "../discussion/CommentCreate";
 
 const CreateFeedbackWidget = () => {
   const path = window.location.pathname;

+ 1 - 1
dashboard/src/components/template/SentEdit.tsx

@@ -5,7 +5,7 @@ import { IStudio } from "../auth/StudioName";
 
 import type { IUser } from "../auth/User";
 import { IChannel } from "../channel/Channel";
-import { TContentType } from "../comment/CommentCreate";
+import { TContentType } from "../discussion/CommentCreate";
 import { ITocPathNode } from "../corpus/TocPath";
 import SentContent from "./SentEdit/SentContent";
 import SentTab from "./SentEdit/SentTab";

+ 1 - 1
dashboard/src/components/template/SentEdit/SuggestionToolbar.tsx

@@ -2,7 +2,7 @@ import { Divider, Space, Tooltip, Typography } from "antd";
 import { CommentOutlined, LikeOutlined } from "@ant-design/icons";
 import { ISentence } from "../SentEdit";
 import { useState } from "react";
-import CommentBox from "../../comment/CommentBox";
+import CommentBox from "../../discussion/CommentBox";
 import SuggestionBox from "./SuggestionBox";
 import PrAcceptButton from "./PrAcceptButton";
 import { HandOutlinedIcon } from "../../../assets/icon";

+ 1 - 1
dashboard/src/components/template/Wbw/WbwDetail.tsx

@@ -12,7 +12,7 @@ import { LockIcon, UnLockIcon } from "../../../assets/icon";
 import { UploadFile } from "antd/es/upload/interface";
 import { IAttachmentResponse } from "../../api/Attachments";
 import WbwDetailAttachment from "./WbwDetailAttachment";
-import CommentBox from "../../comment/CommentBox";
+import CommentBox from "../../discussion/CommentBox";
 
 interface IWidget {
   data: IWbw;

+ 1 - 1
dashboard/src/components/template/Wbw/WbwPali.tsx

@@ -12,7 +12,7 @@ import WbwDetail from "./WbwDetail";
 import { IWbw, TWbwDisplayMode } from "./WbwWord";
 import { bookMarkColor } from "./WbwDetailBookMark";
 import WbwVideoButton from "./WbwVideoButton";
-import CommentBox from "../../comment/CommentBox";
+import CommentBox from "../../discussion/CommentBox";
 import PaliText from "./PaliText";
 import store from "../../../store";
 import { lookup } from "../../../reducers/command";

+ 1 - 1
dashboard/src/pages/library/discussion/show.tsx

@@ -1,6 +1,6 @@
 import { useParams } from "react-router-dom";
 
-import CommentTopic from "../../../components/comment/CommentTopic";
+import CommentTopic from "../../../components/discussion/CommentTopic";
 
 const Widget = () => {
   // TODO

+ 4 - 4
dashboard/src/pages/library/discussion/topic.tsx

@@ -1,11 +1,11 @@
 import { useNavigate } from "react-router-dom";
 import { Tabs } from "antd";
 import { useParams } from "react-router-dom";
-import CommentAnchor from "../../../components/comment/CommentAnchor";
-import { IComment } from "../../../components/comment/CommentItem";
-import CommentListCard from "../../../components/comment/CommentListCard";
+import CommentAnchor from "../../../components/discussion/CommentAnchor";
+import { IComment } from "../../../components/discussion/CommentItem";
+import CommentListCard from "../../../components/discussion/CommentListCard";
 
-import CommentTopic from "../../../components/comment/CommentTopic";
+import CommentTopic from "../../../components/discussion/CommentTopic";
 
 const Widget = () => {
   // TODO