1+ import React from 'react' ;
2+
13import { createLinkComponent } from '@stackflow/link' ;
24import '@stackflow/plugin-basic-ui/index.css' ;
35import { createPreloader } from '@stackflow/plugin-preload' ;
46import { stackflow } from '@stackflow/react' ;
57import { useActivity } from '@stackflow/react' ;
68
7- import {
8- MyPages ,
9- AuthPages ,
10- HomePages ,
11- CommunityPages ,
12- LostFoundPages ,
13- ComplaintPages ,
14- SharingPages ,
15- } from '@/pages' ;
9+ import { HomePage } from '@/pages/home' ;
1610
1711import { stackflowPlugin } from './stackflow.config' ;
1812
13+ const SignInPage = React . lazy ( ( ) => import ( '@/pages/auth/login' ) ) ;
14+ const CommunityPage = React . lazy ( ( ) => import ( '@/pages/community/page' ) ) ;
15+ const LostFoundPage = React . lazy ( ( ) => import ( '@/pages/lostFound/page' ) ) ;
16+ const ComplaintPage = React . lazy ( ( ) => import ( '@/pages/complaint/page' ) ) ;
17+ const TalkPage = React . lazy ( ( ) => import ( '@/pages/talk/page' ) ) ;
18+ const NotificationPage = React . lazy ( ( ) => import ( '@/pages/notification/page' ) ) ;
19+
20+ const MyPage = React . lazy ( ( ) => import ( '@/pages/my/page' ) ) ;
21+ const SettingPage = React . lazy ( ( ) => import ( '@/pages/my/setting' ) ) ;
22+ const SetNickNamePage = React . lazy ( ( ) => import ( '@/pages/auth/set-nickname' ) ) ;
23+ const SignInCallbackPage = React . lazy ( ( ) => import ( '@/pages/auth/callback' ) ) ;
24+
25+ const NewCommunityPage = React . lazy ( ( ) => import ( '@/pages/community/new' ) ) ;
26+ const EditCommunityPage = React . lazy ( ( ) => import ( '@/pages/community/[id]/edit' ) ) ;
27+ const CommunityDetailPage = React . lazy ( ( ) => import ( '@/pages/community/[id]/page' ) ) ;
28+
29+ const NewLostFoundPage = React . lazy ( ( ) => import ( '@/pages/lostFound/new' ) ) ;
30+ const EditLostFoundPage = React . lazy ( ( ) => import ( '@/pages/lostFound/[id]/edit' ) ) ;
31+ const LostFoundDetailPage = React . lazy ( ( ) => import ( '@/pages/lostFound/[id]/page' ) ) ;
32+
33+ const NewComplaintPage = React . lazy ( ( ) => import ( '@/pages/complaint/new' ) ) ;
34+ const ComplaintListPage = React . lazy ( ( ) => import ( '@/pages/complaint/list' ) ) ;
35+ const EditComplaintPage = React . lazy ( ( ) => import ( '@/pages/complaint/[id]/edit' ) ) ;
36+ const ComplaintDetailPage = React . lazy ( ( ) => import ( '@/pages/complaint/[id]/page' ) ) ;
37+
38+ const TalkDetailPage = React . lazy ( ( ) => import ( '@/pages/talk/setting' ) ) ;
39+ const TalkSettingPage = React . lazy ( ( ) => import ( '@/pages/talk/[talkId]/page' ) ) ;
40+ const NotificationSettingPage = React . lazy ( ( ) => import ( '@/pages/notification/setting' ) ) ;
41+ const EditCommentPage = React . lazy ( ( ) => import ( '@/pages/comment/[commentId]/edit' ) ) ;
42+ const NewCommentReplyPage = React . lazy ( ( ) => import ( '@/pages/comment/[commentId]/reply' ) ) ;
43+
1944const { Link } = createLinkComponent < TypeActivities > ( ) ;
2045
2146const { usePreloader } = createPreloader < TypeActivities > ( ) ;
@@ -27,13 +52,32 @@ const {
2752 useStepFlow,
2853} = stackflow ( {
2954 activities : {
30- ...MyPages ,
31- ...AuthPages ,
32- ...HomePages ,
33- ...CommunityPages ,
34- ...LostFoundPages ,
35- ...ComplaintPages ,
36- ...SharingPages ,
55+ MyPage,
56+ SettingPage,
57+ SignInPage,
58+ SetNickNamePage,
59+ SignInCallbackPage,
60+ HomePage,
61+ CommunityPage,
62+ NewCommunityPage,
63+ EditCommunityPage,
64+ CommunityDetailPage,
65+ LostFoundPage,
66+ NewLostFoundPage,
67+ EditLostFoundPage,
68+ LostFoundDetailPage,
69+ ComplaintPage,
70+ NewComplaintPage,
71+ ComplaintListPage,
72+ EditComplaintPage,
73+ ComplaintDetailPage,
74+ TalkPage,
75+ TalkDetailPage,
76+ TalkSettingPage,
77+ NotificationPage,
78+ NotificationSettingPage,
79+ EditCommentPage,
80+ NewCommentReplyPage,
3781 } ,
3882 plugins : stackflowPlugin ,
3983 transitionDuration : 350 ,
0 commit comments