Add screens for accounts, groups, categories and tags, pages and reviews
This commit is contained in:
1 parent
6993ad3557
commit
d14de1d44d
10 files changed
+317
-4
No files matched your search
@@ -7,6 +7,10 @@ import Login from './pages/Login.vue';
|
||||
import PostForm from './pages/PostForm.vue';
|
||||
import PostsIndex from './pages/PostsIndex.vue';
|
||||
import Profile from './pages/Profile.vue';
|
||||
import AccountsIndex from './pages/AccountsIndex.vue';
|
||||
import GroupsIndex from './pages/GroupsIndex.vue';
|
||||
import LabelsIndex from './pages/LabelsIndex.vue';
|
||||
import ListPage from './pages/ListPage.vue';
|
||||
|
||||
/** The screens that exist. Every other manager address shows `Fallback` until its module gets a screen. */
|
||||
const routes: { pattern: RegExp; component: any; guest?: boolean; data?: boolean }[] = [
|
||||
@@ -16,6 +20,10 @@ const routes: { pattern: RegExp; component: any; guest?: boolean; data?: boolean
|
||||
{ pattern: /^\/posts$/, component: PostsIndex, data: true },
|
||||
{ pattern: /^\/posts\/create$/, component: PostForm, data: true },
|
||||
{ pattern: /^\/posts\/\d+\/edit$/, component: PostForm, data: true },
|
||||
{ pattern: /^\/accounts$/, component: AccountsIndex, data: true },
|
||||
{ pattern: /^\/groups$/, component: GroupsIndex, data: true },
|
||||
{ pattern: /^\/labels$/, component: LabelsIndex, data: true },
|
||||
{ pattern: /^\/(pages|reviews)$/, component: ListPage, data: true },
|
||||
];
|
||||
|
||||
export const state = reactive({
|
||||
|
||||
Reference in new issue
Block a user