gamebrary/src/router.js

133 lines
2.6 KiB
JavaScript
Raw Normal View History

2018-10-19 05:15:28 +00:00
import Vue from 'vue';
import Router from 'vue-router';
import Board from '@/pages/Board';
2020-09-26 00:09:20 +00:00
import About from '@/pages/About';
import Wallpapers from '@/pages/Wallpapers';
import PublicBoards from '@/pages/PublicBoards';
2020-09-26 00:09:20 +00:00
import Tags from '@/pages/Tags';
2020-10-31 17:43:04 +00:00
import Notes from '@/pages/Notes';
2020-09-26 00:09:20 +00:00
import Releases from '@/pages/Releases';
2020-09-28 23:27:08 +00:00
import Auth from '@/pages/Auth';
2020-08-18 18:56:10 +00:00
import Dashboard from '@/pages/Dashboard';
2021-01-20 22:44:04 +00:00
import Boards from '@/components/Boards';
2020-11-21 06:32:14 +00:00
import Settings from '@/pages/Settings';
2020-10-22 21:53:41 +00:00
import Upgrade from '@/pages/Upgrade';
2019-04-19 17:35:02 +00:00
import NotFound from '@/pages/NotFound';
2018-10-19 05:15:28 +00:00
Vue.use(Router);
export default new Router({
2019-11-08 19:56:03 +00:00
routes: [
{
2020-09-28 23:26:19 +00:00
name: 'dashboard',
2020-08-11 04:16:43 +00:00
path: '/',
2020-08-18 18:56:10 +00:00
component: Dashboard,
2019-11-08 19:56:03 +00:00
meta: {
2020-08-18 18:56:10 +00:00
title: 'Dashboard',
2019-11-08 19:56:03 +00:00
},
2021-01-20 22:44:04 +00:00
redirect: { name: 'boards' },
children: [
{
name: 'boards',
path: '/boards',
component: Boards,
meta: {
2021-01-25 16:52:26 +00:00
title: 'Boards',
2021-01-20 22:44:04 +00:00
},
},
{
name: 'wallpapers',
path: '/wallpapers',
component: Wallpapers,
meta: {
title: 'Wallpapers',
},
},
{
name: 'tags',
path: '/tags',
component: Tags,
meta: {
title: 'Tags',
},
},
{
name: 'notes',
path: '/notes',
component: Notes,
meta: {
title: 'Notes',
},
},
{
path: '/settings',
name: 'settings',
component: Settings,
meta: {
title: 'Settings',
},
},
],
2019-11-08 19:56:03 +00:00
},
{
name: 'public-boards',
path: '/public-boards',
component: PublicBoards,
meta: {
title: 'PublicBoards',
2021-02-03 22:14:38 +00:00
public: true,
},
},
2020-10-22 21:53:41 +00:00
{
name: 'upgrade',
path: '/upgrade',
component: Upgrade,
meta: {
title: 'Upgrade',
},
},
2020-09-26 00:09:20 +00:00
{
name: 'about',
path: '/about',
component: About,
meta: {
title: 'About',
},
},
{
name: 'releases',
path: '/releases',
component: Releases,
meta: {
title: 'Releases',
},
},
2020-08-18 18:56:10 +00:00
{
2020-09-28 23:27:08 +00:00
name: 'auth',
path: '/auth',
component: Auth,
meta: {
title: 'Auth',
},
2019-11-08 19:56:03 +00:00
},
{
2020-09-28 23:27:08 +00:00
path: '/board/:id',
name: 'board',
component: Board,
2019-11-08 19:56:03 +00:00
},
2020-10-05 18:42:13 +00:00
{
path: '/b/:id',
name: 'public-board',
component: Board,
meta: {
public: true,
},
},
2019-11-08 19:56:03 +00:00
{
path: '*',
name: 'not-found',
component: NotFound,
},
],
2018-10-19 05:15:28 +00:00
});