Changeset View
Changeset View
Standalone View
Standalone View
src/resources/js/user/routes.js
import LoginComponent from '../../vue/Login' | import LoginComponent from '../../vue/Login' | ||||
import LogoutComponent from '../../vue/Logout' | import LogoutComponent from '../../vue/Logout' | ||||
import PageComponent from '../../vue/Page' | import PageComponent from '../../vue/Page' | ||||
import PasswordResetComponent from '../../vue/PasswordReset' | import PasswordResetComponent from '../../vue/PasswordReset' | ||||
import SignupComponent from '../../vue/Signup' | import SignupComponent from '../../vue/Signup' | ||||
// Here's a list of lazy-loaded components | // Here's a list of lazy-loaded components | ||||
// Note: you can pack multiple components into the same chunk, webpackChunkName | // Note: you can pack multiple components into the same chunk, webpackChunkName | ||||
// is also used to get a sensible file name instead of numbers | // is also used to get a sensible file name instead of numbers | ||||
const CompanionAppComponent = () => import(/* webpackChunkName: "../user/pages" */ '../../vue/CompanionApp') | const CompanionAppInfoComponent = () => import(/* webpackChunkName: "../user/pages" */ '../../vue/CompanionApp/Info') | ||||
const CompanionAppListComponent = () => import(/* webpackChunkName: "../user/pages" */ '../../vue/CompanionApp/List') | |||||
const DashboardComponent = () => import(/* webpackChunkName: "../user/pages" */ '../../vue/Dashboard') | const DashboardComponent = () => import(/* webpackChunkName: "../user/pages" */ '../../vue/Dashboard') | ||||
const DistlistInfoComponent = () => import(/* webpackChunkName: "../user/pages" */ '../../vue/Distlist/Info') | const DistlistInfoComponent = () => import(/* webpackChunkName: "../user/pages" */ '../../vue/Distlist/Info') | ||||
const DistlistListComponent = () => import(/* webpackChunkName: "../user/pages" */ '../../vue/Distlist/List') | const DistlistListComponent = () => import(/* webpackChunkName: "../user/pages" */ '../../vue/Distlist/List') | ||||
const DomainInfoComponent = () => import(/* webpackChunkName: "../user/pages" */ '../../vue/Domain/Info') | const DomainInfoComponent = () => import(/* webpackChunkName: "../user/pages" */ '../../vue/Domain/Info') | ||||
const DomainListComponent = () => import(/* webpackChunkName: "../user/pages" */ '../../vue/Domain/List') | const DomainListComponent = () => import(/* webpackChunkName: "../user/pages" */ '../../vue/Domain/List') | ||||
const FileInfoComponent = () => import(/* webpackChunkName: "../user/pages" */ '../../vue/File/Info') | const FileInfoComponent = () => import(/* webpackChunkName: "../user/pages" */ '../../vue/File/Info') | ||||
const FileListComponent = () => import(/* webpackChunkName: "../user/pages" */ '../../vue/File/List') | const FileListComponent = () => import(/* webpackChunkName: "../user/pages" */ '../../vue/File/List') | ||||
const ResourceInfoComponent = () => import(/* webpackChunkName: "../user/pages" */ '../../vue/Resource/Info') | const ResourceInfoComponent = () => import(/* webpackChunkName: "../user/pages" */ '../../vue/Resource/Info') | ||||
Show All 25 Lines | const routes = [ | ||||
}, | }, | ||||
{ | { | ||||
path: '/distlists', | path: '/distlists', | ||||
name: 'distlists', | name: 'distlists', | ||||
component: DistlistListComponent, | component: DistlistListComponent, | ||||
meta: { requiresAuth: true, perm: 'distlists' } | meta: { requiresAuth: true, perm: 'distlists' } | ||||
}, | }, | ||||
{ | { | ||||
path: '/companion', | path: '/companion/:companion', | ||||
name: 'companion', | name: 'companion', | ||||
component: CompanionAppComponent, | component: CompanionAppInfoComponent, | ||||
meta: { requiresAuth: true, perm: 'companionapps' } | |||||
}, | |||||
{ | |||||
path: '/companions', | |||||
name: 'companions', | |||||
component: CompanionAppListComponent, | |||||
meta: { requiresAuth: true, perm: 'companionapps' } | meta: { requiresAuth: true, perm: 'companionapps' } | ||||
}, | }, | ||||
{ | { | ||||
path: '/domain/:domain', | path: '/domain/:domain', | ||||
name: 'domain', | name: 'domain', | ||||
component: DomainInfoComponent, | component: DomainInfoComponent, | ||||
meta: { requiresAuth: true, perm: 'domains' } | meta: { requiresAuth: true, perm: 'domains' } | ||||
}, | }, | ||||
▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines |