130 lines
2.9 KiB
TypeScript
130 lines
2.9 KiB
TypeScript
const offline = document.createElement('div')
|
|
|
|
export default [
|
|
{
|
|
path: '/',
|
|
module: [
|
|
() => import('../styles/home.styl'),
|
|
() => import('./home-page'),
|
|
],
|
|
},
|
|
{
|
|
path: 'user',
|
|
component: () => import('../views/user/Dashboard.vue'),
|
|
el: '#usage-box',
|
|
},
|
|
{
|
|
path: 'user/closet',
|
|
component: () => import('../views/user/Closet.vue'),
|
|
el: offline,
|
|
},
|
|
{
|
|
path: 'user/player',
|
|
component: () => import('../views/user/Players.vue'),
|
|
el: offline,
|
|
},
|
|
{
|
|
path: 'user/player/bind',
|
|
component: () => import('../views/user/Bind.vue'),
|
|
el: 'form',
|
|
},
|
|
{
|
|
path: 'user/reports',
|
|
component: () => import('../views/user/Report.vue'),
|
|
el: '.content > .container-fluid',
|
|
},
|
|
{
|
|
path: 'user/profile',
|
|
module: [
|
|
() => import('../views/user/profile/index'),
|
|
],
|
|
},
|
|
{
|
|
path: 'user/oauth/manage',
|
|
component: () => import('../views/user/OAuth.vue'),
|
|
el: '.content > .container-fluid',
|
|
},
|
|
{
|
|
path: 'admin',
|
|
module: [
|
|
() => import('../views/admin/Dashboard'),
|
|
],
|
|
},
|
|
{
|
|
path: 'admin/users',
|
|
component: () => import('../views/admin/Users.vue'),
|
|
el: '.content > .container-fluid',
|
|
},
|
|
{
|
|
path: 'admin/players',
|
|
component: () => import('../views/admin/Players.vue'),
|
|
el: '.content > .container-fluid',
|
|
},
|
|
{
|
|
path: 'admin/reports',
|
|
component: () => import('../views/admin/Reports.vue'),
|
|
el: '.content > .container-fluid',
|
|
},
|
|
{
|
|
path: 'admin/customize',
|
|
module: [
|
|
() => import('../views/admin/Customization'),
|
|
],
|
|
},
|
|
{
|
|
path: 'admin/i18n',
|
|
component: () => import('../views/admin/Translations.vue'),
|
|
el: '#table',
|
|
},
|
|
{
|
|
path: 'admin/plugins/manage',
|
|
component: () => import('../views/admin/Plugins.vue'),
|
|
el: '.content > .container-fluid',
|
|
},
|
|
{
|
|
path: 'admin/plugins/market',
|
|
component: () => import('../views/admin/Market.vue'),
|
|
el: '.content > .container-fluid',
|
|
},
|
|
{
|
|
path: 'admin/update',
|
|
component: () => import('../views/admin/Update.vue'),
|
|
el: '#update-button',
|
|
},
|
|
{
|
|
path: 'auth/login',
|
|
component: () => import('../views/auth/Login.vue'),
|
|
el: 'form',
|
|
},
|
|
{
|
|
path: 'auth/register',
|
|
component: () => import('../views/auth/Register.vue'),
|
|
el: 'form',
|
|
},
|
|
{
|
|
path: 'auth/forgot',
|
|
component: () => import('../views/auth/Forgot.vue'),
|
|
el: 'form',
|
|
},
|
|
{
|
|
path: 'auth/reset/(\\d+)',
|
|
component: () => import('../views/auth/Reset.vue'),
|
|
el: 'form',
|
|
},
|
|
{
|
|
path: 'skinlib',
|
|
component: () => import('../views/skinlib/List.vue'),
|
|
el: '.content-wrapper',
|
|
},
|
|
{
|
|
path: 'skinlib/show/(\\d+)',
|
|
component: () => import('../views/skinlib/Show.vue'),
|
|
el: '.content > .container-fluid > .row:nth-child(1)',
|
|
},
|
|
{
|
|
path: 'skinlib/upload',
|
|
component: () => import('../views/skinlib/Upload.vue'),
|
|
el: '.content > .container-fluid',
|
|
},
|
|
]
|