2
0
visuddhinanda 3 жил өмнө
parent
commit
55415408d8

+ 1 - 31
dashboard/src/components/nut/Home.tsx

@@ -1,57 +1,27 @@
 import ReactMarkdown from "react-markdown";
 import code_png from "../../assets/nut/code.png";
-import ChannelPicker from "../channel/ChannelPicker";
-import MdView from "../template/MdView";
 
 import MarkdownForm from "./MarkdownForm";
 import MarkdownShow from "./MarkdownShow";
 import FontBox from "./FontBox";
 import DemoForm from "./Form";
-import WbwTest from "./WbwTest";
-import CommentList from "../comment/CommentList";
 import TreeTest from "./TreeTest";
 import Share from "../share/Share";
 
 const Widget = () => {
-  const data = Array(100)
-    .fill(4)
-    .map((item, id) => {
-      return {
-        id: "dd",
-        content: "评论内容",
-        title: "评论标题" + id,
-        user: {
-          id: "string",
-          nickName: "Visuddhinanda",
-          realName: "Visuddhinanda",
-          avatar: "",
-        },
-      };
-    });
   return (
     <div>
       <h1>Home</h1>
       <div>
         <Share resId="dd" resType="dd" />
       </div>
+      <h2>TreeTest</h2>
       <TreeTest />
-      <h2>comment</h2>
-      <CommentList data={data} />
-      <h2>wbw</h2>
-      <WbwTest />
-      <h2>channel picker</h2>
-      <div style={{ width: 1000 }}>
-        <ChannelPicker type="chapter" articleId="168-915" />
-      </div>
-      <h2>MdView test</h2>
-      <MdView html="<h1 name='h1'>hello<MdTpl name='term'/></h1>" />
-
       <br />
       <DemoForm />
       <br />
       <FontBox />
       <br />
-
       <MarkdownShow body="- Hello, **《mint》**!" />
       <br />
       <h3>Form</h3>