Просмотр исходного кода

init wikipali dashboard framework

visuddhinanda 3 лет назад
Родитель
Сommit
fd42d0a4ab

+ 15 - 3
dashboard/src/Router.tsx

@@ -17,7 +17,11 @@ import NutNotFound from "./pages/nut/not-found";
 import NutSwitchLanguage from "./pages/nut/switch-languages";
 import NutHome from "./pages/nut";
 import NutCommunity from "./pages/community";
-import NutCommunityMyread from "./pages/community/myread";
+import NutCommunityRecent from "./pages/community/recent";
+//import NutStudio from "./pages/studio";
+import NutStudioChannel from "./pages/studio/channel";
+import NutStudioChannelCreate from "./pages/studio/channel/create";
+import NutStudioChannelEdit from "./pages/studio/channel/edit";
 
 const Widget = () => {
   return (
@@ -53,8 +57,16 @@ const Widget = () => {
       <Route path="forbidden" element={<NutForbidden />} />
       <Route path="" element={<NutHome />} />
       <Route path="*" element={<NutNotFound />} />
-	  <Route path="community" element={<NutCommunity />}></Route>
-	  <Route path="community/myread" element={<NutCommunityMyread />}></Route>
+	  <Route path="community" element={<NutCommunity />}>
+		<Route path="myread" element={<NutCommunityRecent />}></Route>
+	  </Route>
+	  <Route path="studio/:studioid" >
+	  	<Route path="channel" element={<NutStudioChannel />}>
+			
+	  	</Route>
+	  </Route>
+	  <Route path="studio/:studioid/channel/create" element={<NutStudioChannelCreate />}> </Route>
+	  <Route path="studio/:studioid/channel/edit" element={<NutStudioChannelEdit />}> </Route>
     </Routes>
   );
 };

+ 5 - 0
dashboard/src/components/nut/library/Footer.tsx

@@ -0,0 +1,5 @@
+const Widget = () => {
+  return <div>Library Footer</div>;
+};
+
+export default Widget;

+ 5 - 0
dashboard/src/components/nut/library/HeadBar.tsx

@@ -0,0 +1,5 @@
+const Widget = () => {
+  return <div>Library head bar</div>;
+};
+
+export default Widget;

+ 5 - 0
dashboard/src/components/nut/studio/Footer.tsx

@@ -0,0 +1,5 @@
+const Widget = () => {
+  return <div>Studio Footer</div>;
+};
+
+export default Widget;

+ 5 - 0
dashboard/src/components/nut/studio/HeadBar.tsx

@@ -0,0 +1,5 @@
+const Widget = () => {
+  return <div>studio head bar</div>;
+};
+
+export default Widget;

+ 5 - 0
dashboard/src/components/nut/studio/LeftSider.tsx

@@ -0,0 +1,5 @@
+const Widget = () => {
+  return <div>left sider</div>;
+};
+
+export default Widget;

+ 11 - 0
dashboard/src/locales/zh-Hans/channel/index.ts

@@ -0,0 +1,11 @@
+const items = {
+  "channel.title": "版本风格",
+  "channel.type": "版本类型",
+  "channel.name": "版本名称",
+  "channel.create.message.noname": "请输入版本名称",
+  "channel.type.nissaya.title": "逐词解析",
+  "channel.type.translation.title": "译文",
+  "channel.lang": "版本语言",
+};
+
+export default items;

+ 3 - 0
dashboard/src/locales/zh-Hans/index.ts

@@ -2,13 +2,16 @@ import forms from "./forms";
 import buttons from "./buttons";
 import tables from "./tables";
 import nut from "./nut";
+import channel from "./channel";
 
 const items = {
   "flashes.success": "操作成功",
+  "title.channel": "版本风格",
   ...buttons,
   ...forms,
   ...tables,
   ...nut,
+  ...channel,
 };
 
 export default items;