feat(apps/router): 重构路由系统使用 AppRoutes 常量
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
class AppRoutes {
|
||||
AppRoutes._();
|
||||
|
||||
static const authBoot = '/boot';
|
||||
static const authLogin = '/';
|
||||
static const authRegister = '/register';
|
||||
static const authRegisterVerification = '/register/verification';
|
||||
static const authResetPassword = '/reset-password';
|
||||
|
||||
static const homeMain = '/home';
|
||||
|
||||
static const messageInviteList = '/messages/invites';
|
||||
static String messageInviteDetail(String id) => '/messages/invites/$id';
|
||||
|
||||
static const contactsList = '/contacts';
|
||||
static const contactsAdd = '/contacts/add';
|
||||
|
||||
static const calendarDayWeek = '/calendar/dayweek';
|
||||
static const calendarMonth = '/calendar/month';
|
||||
static String calendarEventDetail(String id) => '/calendar/events/$id';
|
||||
static const calendarEventCreate = '/calendar/events/new';
|
||||
static String calendarEventEdit(String id) => '/calendar/events/$id/edit';
|
||||
static String calendarEventShare(String id) => '/calendar/events/$id/share';
|
||||
|
||||
static const todoList = '/todo';
|
||||
static String todoDetail(String id) => '/todo/$id';
|
||||
static const todoCreate = '/todo/new';
|
||||
static String todoEdit(String id) => '/todo/$id/edit';
|
||||
|
||||
static const settingsMain = '/settings';
|
||||
static const settingsFeatures = '/settings/features';
|
||||
static const settingsMemory = '/settings/memory';
|
||||
static const settingsAccount = '/settings/account';
|
||||
static const settingsChangePassword = '/change-password';
|
||||
static const settingsEditProfile = '/edit-profile';
|
||||
}
|
||||
Reference in New Issue
Block a user