|
|
@@ -17,6 +17,49 @@ import NutNotFound from "./pages/nut/not-found";
|
|
|
import NutSwitchLanguage from "./pages/nut/switch-languages";
|
|
|
import NutHome from "./pages/nut";
|
|
|
|
|
|
+import LibraryCommunity from "./pages/library/community";
|
|
|
+import LibraryCommunityRecent from "./pages/library/community/recent";
|
|
|
+import LibraryPalicanon from "./pages/library/palicanon";
|
|
|
+import LibraryCourse from "./pages/library/course";
|
|
|
+import LibraryCourseShow from "./pages/library/course/course";
|
|
|
+import LibraryLessonShow from "./pages/library/course/lesson";
|
|
|
+import LibraryTerm from "./pages/library/term/show";
|
|
|
+import LibraryDict from "./pages/library/dict";
|
|
|
+import LibraryDictShow from "./pages/library/dict/show";
|
|
|
+import LibraryAnthology from "./pages/library/anthology";
|
|
|
+import LibraryAnthologyShow from "./pages/library/anthology/show";
|
|
|
+import LibraryArticle from "./pages/library/anthology/article";
|
|
|
+
|
|
|
+import LibraryBlog from "./pages/library/blog";
|
|
|
+import LibraryBlogTranslation from "./pages/library/blog/translation";
|
|
|
+import LibraryBlogCourse from "./pages/library/blog/course";
|
|
|
+import LibraryBlogAnthology from "./pages/library/blog/anthology";
|
|
|
+import LibraryBlogTerm from "./pages/library/blog/term";
|
|
|
+
|
|
|
+import StudioHome from "./pages/studio";
|
|
|
+
|
|
|
+import StudioPalicanon from "./pages/studio/palicanon";
|
|
|
+import StudioRecent from "./pages/studio/recent";
|
|
|
+
|
|
|
+import StudioChannel from "./pages/studio/channel";
|
|
|
+import StudioChannelCreate from "./pages/studio/channel/create";
|
|
|
+import StudioChannelEdit from "./pages/studio/channel/edit";
|
|
|
+
|
|
|
+import StudioGroup from "./pages/studio/group";
|
|
|
+import StudioGroupEdit from "./pages/studio/group/edit";
|
|
|
+import StudioGroupShow from "./pages/studio/group/show";
|
|
|
+
|
|
|
+import StudioDict from "./pages/studio/dict";
|
|
|
+import StudioTerm from "./pages/studio/term";
|
|
|
+
|
|
|
+import StudioArticle from "./pages/studio/article";
|
|
|
+import StudioArticleEdit from "./pages/studio/article/edit";
|
|
|
+
|
|
|
+import StudioAnthology from "./pages/studio/anthology";
|
|
|
+import StudioAnthologyEdit from "./pages/studio/anthology/edit";
|
|
|
+
|
|
|
+import StudioAnalysis from "./pages/studio/analysis";
|
|
|
+
|
|
|
const Widget = () => {
|
|
|
return (
|
|
|
<Routes>
|
|
|
@@ -29,10 +72,7 @@ const Widget = () => {
|
|
|
<Route path="new" element={<NutUsersUnlockNew />} />
|
|
|
<Route path="verify/:token" element={<NutUsersUnlockVerify />} />
|
|
|
</Route>
|
|
|
- <Route
|
|
|
- path="reset-password/:token"
|
|
|
- element={<NutUsersResetPassword />}
|
|
|
- />
|
|
|
+ <Route path="reset-password/:token" element={<NutUsersResetPassword />} />
|
|
|
<Route path="forgot-password" element={<NutUsersForgotPassword />} />
|
|
|
</Route>
|
|
|
</Route>
|
|
|
@@ -48,6 +88,53 @@ const Widget = () => {
|
|
|
<Route path="forbidden" element={<NutForbidden />} />
|
|
|
<Route path="" element={<NutHome />} />
|
|
|
<Route path="*" element={<NutNotFound />} />
|
|
|
+
|
|
|
+ <Route path="community" element={<LibraryCommunity />}></Route>
|
|
|
+ <Route path="recent" element={<LibraryCommunityRecent />} />
|
|
|
+ <Route path="palicanon" element={<LibraryPalicanon />} />
|
|
|
+
|
|
|
+ <Route path="course" element={<LibraryCourse />}></Route>
|
|
|
+ <Route path="course/show/:id" element={<LibraryCourseShow />}></Route>
|
|
|
+ <Route path="course/lesson/:id" element={<LibraryLessonShow />}></Route>
|
|
|
+
|
|
|
+ <Route path="term/:word" element={<LibraryTerm />} />
|
|
|
+
|
|
|
+ <Route path="dict" element={<LibraryDict />} />
|
|
|
+ <Route path="dict/:word" element={<LibraryDictShow />} />
|
|
|
+
|
|
|
+ <Route path="anthology" element={<LibraryAnthology />} />
|
|
|
+ <Route path="anthology/show/:id" element={<LibraryAnthologyShow />} />
|
|
|
+ <Route path="article/show/:id" element={<LibraryArticle />} />
|
|
|
+
|
|
|
+ <Route path="blog/:studioname" element={<LibraryBlog />} />
|
|
|
+ <Route path="blog/:studioname/translation" element={<LibraryBlogTranslation />} />
|
|
|
+ <Route path="blog/:studioname/course" element={<LibraryBlogCourse />} />
|
|
|
+ <Route path="blog/:studioname/anthology" element={<LibraryBlogAnthology />} />
|
|
|
+ <Route path="blog/:studioname/term" element={<LibraryBlogTerm />} />
|
|
|
+
|
|
|
+ <Route path="studio/:studioname" element={<StudioHome />}></Route>
|
|
|
+ <Route path="studio/:studioname/palicanon" element={<StudioPalicanon />}></Route>
|
|
|
+ <Route path="studio/:studioname/recent" element={<StudioRecent />}></Route>
|
|
|
+
|
|
|
+ <Route path="studio/:studioname/channel" element={<StudioChannel />}></Route>
|
|
|
+ <Route path="studio/:studioname/channel/create" element={<StudioChannelCreate />} />
|
|
|
+ <Route path="studio/:studioname/channel/edit/:channelid" element={<StudioChannelEdit />} />
|
|
|
+
|
|
|
+ <Route path="studio/:studioname/group" element={<StudioGroup />}></Route>
|
|
|
+ <Route path="studio/:studioname/group/:groupid" element={<StudioGroupShow />} />
|
|
|
+ <Route path="studio/:studioname/group/edit/:groupid" element={<StudioGroupEdit />} />
|
|
|
+
|
|
|
+ <Route path="studio/:studioname/dict" element={<StudioDict />}> </Route>
|
|
|
+ <Route path="studio/:studioname/term" element={<StudioTerm />}> </Route>
|
|
|
+
|
|
|
+ <Route path="studio/:studioname/article" element={<StudioArticle />}></Route>
|
|
|
+ <Route path="studio/:studioname/article/edit/:articleid" element={<StudioArticleEdit />} />
|
|
|
+
|
|
|
+ <Route path="studio/:studioname/anthology" element={<StudioAnthology />}></Route>
|
|
|
+ <Route path="studio/:studioname/anthology/edit/:anthology_id" element={<StudioAnthologyEdit />} />
|
|
|
+
|
|
|
+ <Route path="studio/:studioname/analysis" element={<StudioAnalysis />}></Route>
|
|
|
+
|
|
|
</Routes>
|
|
|
);
|
|
|
};
|