mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-06 02:33:48 +00:00
vue routes refactoring
This commit is contained in:
@@ -393,5 +393,67 @@
|
||||
"/chunks/platform~chunks/shared/file-browser.3940ff662d65d2b25d1d.hot-update.js": "/chunks/platform~chunks/shared/file-browser.3940ff662d65d2b25d1d.hot-update.js",
|
||||
"/chunks/platform~chunks/shared/file-browser.6a8d6f3ca45769e8b39a.hot-update.js": "/chunks/platform~chunks/shared/file-browser.6a8d6f3ca45769e8b39a.hot-update.js",
|
||||
"/chunks/platform~chunks/shared/file-browser.64f2e9e80a9fbccc1a4e.hot-update.js": "/chunks/platform~chunks/shared/file-browser.64f2e9e80a9fbccc1a4e.hot-update.js",
|
||||
"/js/main.f98f44157b78a5a1d656.hot-update.js": "/js/main.f98f44157b78a5a1d656.hot-update.js"
|
||||
"/js/main.f98f44157b78a5a1d656.hot-update.js": "/js/main.f98f44157b78a5a1d656.hot-update.js",
|
||||
"/js/main.1bc0b1ed53dc3a3a8483.hot-update.js": "/js/main.1bc0b1ed53dc3a3a8483.hot-update.js",
|
||||
"/js/main.92c566663e2a21296fff.hot-update.js": "/js/main.92c566663e2a21296fff.hot-update.js",
|
||||
"/js/main.125760a1c421339959da.hot-update.js": "/js/main.125760a1c421339959da.hot-update.js",
|
||||
"/js/main.e3b5ff5286ff454b79f1.hot-update.js": "/js/main.e3b5ff5286ff454b79f1.hot-update.js",
|
||||
"/js/main.d4a64084be807e202a7a.hot-update.js": "/js/main.d4a64084be807e202a7a.hot-update.js",
|
||||
"/js/main.1e73ecb4cdd07d9a21b3.hot-update.js": "/js/main.1e73ecb4cdd07d9a21b3.hot-update.js",
|
||||
"/chunks/admin-account.1e73ecb4cdd07d9a21b3.hot-update.js": "/chunks/admin-account.1e73ecb4cdd07d9a21b3.hot-update.js",
|
||||
"/chunks/admin-account~chunks/app-setup.js": "/chunks/admin-account~chunks/app-setup.js?id=d6c4833e6d666a8ed410",
|
||||
"/chunks/admin-account~chunks/app-setup~chunks/billings-detail~chunks/database~chunks/environment-setu~9baf42ac.js": "/chunks/admin-account~chunks/app-setup~chunks/billings-detail~chunks/database~chunks/environment-setu~9baf42ac.js?id=b0ebd803d4e383284c39",
|
||||
"/chunks/admin-account~chunks/app-setup~chunks/platform~chunks/settings-create-payment-methods~chunks/~b237f33a.js": "/chunks/admin-account~chunks/app-setup~chunks/platform~chunks/settings-create-payment-methods~chunks/~b237f33a.js?id=0408c5226f59ce5a7ff5",
|
||||
"/chunks/app-setup.1e73ecb4cdd07d9a21b3.hot-update.js": "/chunks/app-setup.1e73ecb4cdd07d9a21b3.hot-update.js",
|
||||
"/chunks/files~chunks/my-shared-items~chunks/platform~chunks/recent-uploads~chunks/settings~chunks/set~1349c08f.js": "/chunks/files~chunks/my-shared-items~chunks/platform~chunks/recent-uploads~chunks/settings~chunks/set~1349c08f.js?id=d8467352f8f4cdf7af9b",
|
||||
"/chunks/files~chunks/my-shared-items~chunks/recent-uploads~chunks/settings-subscription~chunks/shared~d76324fb.js": "/chunks/files~chunks/my-shared-items~chunks/recent-uploads~chunks/settings-subscription~chunks/shared~d76324fb.js?id=284c1aa6da397188d7bd",
|
||||
"/chunks/files~chunks/my-shared-items~chunks/recent-uploads~chunks/settings~chunks/settings-payment-me~a5ae0649.js": "/chunks/files~chunks/my-shared-items~chunks/recent-uploads~chunks/settings~chunks/settings-payment-me~a5ae0649.js?id=9e65f6a9ec3301d8250b",
|
||||
"/chunks/platform.1e73ecb4cdd07d9a21b3.hot-update.js": "/chunks/platform.1e73ecb4cdd07d9a21b3.hot-update.js",
|
||||
"/chunks/platform~chunks/settings~chunks/shared.js": "/chunks/platform~chunks/settings~chunks/shared.js?id=1cd793ec893914dedc0b",
|
||||
"/chunks/platform~chunks/settings~chunks/shared/file-browser.js": "/chunks/platform~chunks/settings~chunks/shared/file-browser.js?id=f6d6a81c6810d5262aa3",
|
||||
"/chunks/profile~chunks/settings-create-payment-methods~chunks/settings-invoices~chunks/settings-passw~5b5727d4.js": "/chunks/profile~chunks/settings-create-payment-methods~chunks/settings-invoices~chunks/settings-passw~5b5727d4.js?id=30b1bc8edc47f49a8a59",
|
||||
"/chunks/profile~chunks/settings~chunks/settings-password~chunks/settings-storage~chunks/upgrade-billi~bd3a7519.js": "/chunks/profile~chunks/settings~chunks/settings-password~chunks/settings-storage~chunks/upgrade-billi~bd3a7519.js?id=5d73b67c654d3fc29029",
|
||||
"/chunks/settings-create-payment-methods.1e73ecb4cdd07d9a21b3.hot-update.js": "/chunks/settings-create-payment-methods.1e73ecb4cdd07d9a21b3.hot-update.js",
|
||||
"/chunks/settings-invoices.1e73ecb4cdd07d9a21b3.hot-update.js": "/chunks/settings-invoices.1e73ecb4cdd07d9a21b3.hot-update.js",
|
||||
"/chunks/settings-invoices~chunks/settings-payment-methods~chunks/settings-subscription.js": "/chunks/settings-invoices~chunks/settings-payment-methods~chunks/settings-subscription.js?id=154a5247bdad2a61b567",
|
||||
"/chunks/settings-password.1e73ecb4cdd07d9a21b3.hot-update.js": "/chunks/settings-password.1e73ecb4cdd07d9a21b3.hot-update.js",
|
||||
"/chunks/settings-payment-methods.1e73ecb4cdd07d9a21b3.hot-update.js": "/chunks/settings-payment-methods.1e73ecb4cdd07d9a21b3.hot-update.js",
|
||||
"/chunks/settings-storage.1e73ecb4cdd07d9a21b3.hot-update.js": "/chunks/settings-storage.1e73ecb4cdd07d9a21b3.hot-update.js",
|
||||
"/chunks/settings-subscription.1e73ecb4cdd07d9a21b3.hot-update.js": "/chunks/settings-subscription.1e73ecb4cdd07d9a21b3.hot-update.js",
|
||||
"/vendors~chunks/admin-account~chunks/app-setup~chunks/billings-detail~chunks/contact-us~chunks/create~10240167.js": "/vendors~chunks/admin-account~chunks/app-setup~chunks/billings-detail~chunks/contact-us~chunks/create~10240167.js?id=5e2fb3fbf550ff25fedf",
|
||||
"/vendors~chunks/admin-account~chunks/app-setup~chunks/billings-detail~chunks/contact-us~chunks/create~e5846a78.js": "/vendors~chunks/admin-account~chunks/app-setup~chunks/billings-detail~chunks/contact-us~chunks/create~e5846a78.js?id=942f05fd519c0a64a91c",
|
||||
"/js/main.5875f3c20a74a3c592cd.hot-update.js": "/js/main.5875f3c20a74a3c592cd.hot-update.js",
|
||||
"/js/main.cd7f2d025dbb9883c0cd.hot-update.js": "/js/main.cd7f2d025dbb9883c0cd.hot-update.js",
|
||||
"/chunks/files~chunks/my-shared-items~chunks/platform~chunks/recent-uploads~chunks/shared~chunks/share~aaaa339d.cd7f2d025dbb9883c0cd.hot-update.js": "/chunks/files~chunks/my-shared-items~chunks/platform~chunks/recent-uploads~chunks/shared~chunks/share~aaaa339d.cd7f2d025dbb9883c0cd.hot-update.js",
|
||||
"/chunks/platform.cd7f2d025dbb9883c0cd.hot-update.js": "/chunks/platform.cd7f2d025dbb9883c0cd.hot-update.js",
|
||||
"/chunks/platform~chunks/shared.cd7f2d025dbb9883c0cd.hot-update.js": "/chunks/platform~chunks/shared.cd7f2d025dbb9883c0cd.hot-update.js",
|
||||
"/chunks/profile.cd7f2d025dbb9883c0cd.hot-update.js": "/chunks/profile.cd7f2d025dbb9883c0cd.hot-update.js",
|
||||
"/chunks/settings.cd7f2d025dbb9883c0cd.hot-update.js": "/chunks/settings.cd7f2d025dbb9883c0cd.hot-update.js",
|
||||
"/chunks/settings-password.cd7f2d025dbb9883c0cd.hot-update.js": "/chunks/settings-password.cd7f2d025dbb9883c0cd.hot-update.js",
|
||||
"/chunks/settings-storage.cd7f2d025dbb9883c0cd.hot-update.js": "/chunks/settings-storage.cd7f2d025dbb9883c0cd.hot-update.js",
|
||||
"/js/main.94c6359f61b6aaea183b.hot-update.js": "/js/main.94c6359f61b6aaea183b.hot-update.js",
|
||||
"/chunks/admin-account.94c6359f61b6aaea183b.hot-update.js": "/chunks/admin-account.94c6359f61b6aaea183b.hot-update.js",
|
||||
"/chunks/app-setup.94c6359f61b6aaea183b.hot-update.js": "/chunks/app-setup.94c6359f61b6aaea183b.hot-update.js",
|
||||
"/chunks/platform.94c6359f61b6aaea183b.hot-update.js": "/chunks/platform.94c6359f61b6aaea183b.hot-update.js",
|
||||
"/chunks/settings-create-payment-methods.94c6359f61b6aaea183b.hot-update.js": "/chunks/settings-create-payment-methods.94c6359f61b6aaea183b.hot-update.js",
|
||||
"/chunks/settings-invoices.94c6359f61b6aaea183b.hot-update.js": "/chunks/settings-invoices.94c6359f61b6aaea183b.hot-update.js",
|
||||
"/chunks/settings-password.94c6359f61b6aaea183b.hot-update.js": "/chunks/settings-password.94c6359f61b6aaea183b.hot-update.js",
|
||||
"/chunks/settings-payment-methods.94c6359f61b6aaea183b.hot-update.js": "/chunks/settings-payment-methods.94c6359f61b6aaea183b.hot-update.js",
|
||||
"/chunks/settings-storage.94c6359f61b6aaea183b.hot-update.js": "/chunks/settings-storage.94c6359f61b6aaea183b.hot-update.js",
|
||||
"/chunks/settings-subscription.94c6359f61b6aaea183b.hot-update.js": "/chunks/settings-subscription.94c6359f61b6aaea183b.hot-update.js",
|
||||
"/js/main.d84f987f7cfeff51ead9.hot-update.js": "/js/main.d84f987f7cfeff51ead9.hot-update.js",
|
||||
"/chunks/admin~chunks/app-appearance~chunks/app-billings~chunks/app-email~chunks/app-index~chunks/app-~c4dc88d0.js": "/chunks/admin~chunks/app-appearance~chunks/app-billings~chunks/app-email~chunks/app-index~chunks/app-~c4dc88d0.js?id=d588df7a77212097d65a",
|
||||
"/chunks/app-appearance~chunks/app-billings~chunks/app-email~chunks/app-index~chunks/app-others~chunks~0d2a8135.js": "/chunks/app-appearance~chunks/app-billings~chunks/app-email~chunks/app-index~chunks/app-others~chunks~0d2a8135.js?id=d8336813d0a8a2e4c14d",
|
||||
"/chunks/app-appearance~chunks/app-billings~chunks/app-email~chunks/app-index~chunks/app-others~chunks~33e5aed8.js": "/chunks/app-appearance~chunks/app-billings~chunks/app-email~chunks/app-index~chunks/app-others~chunks~33e5aed8.js?id=6adf85524269147f8fda",
|
||||
"/chunks/app-appearance~chunks/app-billings~chunks/app-email~chunks/app-index~chunks/app-others~chunks~ced75777.js": "/chunks/app-appearance~chunks/app-billings~chunks/app-email~chunks/app-index~chunks/app-others~chunks~ced75777.js?id=6ac471e5b45e2ce79b14",
|
||||
"/chunks/app-language~chunks/app-settings~chunks/dashboard~chunks/invoices~chunks/page-edit~chunks/pag~39172581.js": "/chunks/app-language~chunks/app-settings~chunks/dashboard~chunks/invoices~chunks/page-edit~chunks/pag~39172581.js?id=d353dca226c38a3fbfe2",
|
||||
"/chunks/app-language~chunks/dashboard~chunks/invoices~chunks/pages~chunks/plans~chunks/users.js": "/chunks/app-language~chunks/dashboard~chunks/invoices~chunks/pages~chunks/plans~chunks/users.js?id=d9329719fbccf311d36b",
|
||||
"/chunks/dashboard~chunks/invoices~chunks/pages~chunks/plan-subscribers~chunks/plans~chunks/user-invoi~561c5b40.js": "/chunks/dashboard~chunks/invoices~chunks/pages~chunks/plan-subscribers~chunks/plans~chunks/user-invoi~561c5b40.js?id=94a8b5b3e548f2d96b8d",
|
||||
"/chunks/dashboard~chunks/invoices~chunks/pages~chunks/plans~chunks/user~chunks/users.js": "/chunks/dashboard~chunks/invoices~chunks/pages~chunks/plans~chunks/user~chunks/users.js?id=cf48befbe3d2c0d72707",
|
||||
"/vendors~chunks/admin~chunks/app-appearance~chunks/app-billings~chunks/app-email~chunks/app-index~chu~b1030517.js": "/vendors~chunks/admin~chunks/app-appearance~chunks/app-billings~chunks/app-email~chunks/app-index~chu~b1030517.js?id=c3951fa25c188084117c",
|
||||
"/vendors~chunks/admin~chunks/app-appearance~chunks/app-billings~chunks/app-email~chunks/app-index~chu~ccf8dc23.js": "/vendors~chunks/admin~chunks/app-appearance~chunks/app-billings~chunks/app-email~chunks/app-index~chu~ccf8dc23.js?id=99a72adc620ed428e45f",
|
||||
"/js/main.2ddc41a4526d6646c798.hot-update.js": "/js/main.2ddc41a4526d6646c798.hot-update.js",
|
||||
"/chunks/admin.2ddc41a4526d6646c798.hot-update.js": "/chunks/admin.2ddc41a4526d6646c798.hot-update.js",
|
||||
"/chunks/user-subscription.2ddc41a4526d6646c798.hot-update.js": "/chunks/user-subscription.2ddc41a4526d6646c798.hot-update.js",
|
||||
"/js/main.8b4cd1af6a4b3c3449b7.hot-update.js": "/js/main.8b4cd1af6a4b3c3449b7.hot-update.js"
|
||||
}
|
||||
|
||||
710
resources/js/router.js
vendored
710
resources/js/router.js
vendored
@@ -1,713 +1,26 @@
|
||||
import Vue from 'vue'
|
||||
import Router from 'vue-router'
|
||||
import routesMaintenance from './routes/routesMaintenance'
|
||||
import routesShared from './routes/routesShared'
|
||||
import routesOthers from './routes/routesOthers'
|
||||
import routesAdmin from './routes/routesAdmin'
|
||||
import routesIndex from './routes/routesIndex'
|
||||
import routesAuth from './routes/routesAuth'
|
||||
import routesUser from './routes/routesUser'
|
||||
import store from './store/index'
|
||||
import Router from 'vue-router'
|
||||
import Vue from 'vue'
|
||||
|
||||
Vue.use(Router)
|
||||
|
||||
const routesAdmin = [
|
||||
{
|
||||
name: 'Admin',
|
||||
path: '/admin',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/admin" */ './views/Admin'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'Admin'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
name: 'Dashboard',
|
||||
path: '/admin/dashboard',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/dashboard" */ './views/Admin/Dashboard'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.dashboard'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Invoices',
|
||||
path: '/admin/invoices',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/invoices" */ './views/Admin/Invoices'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.invoices'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Pages',
|
||||
path: '/admin/pages',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/pages" */ './views/Admin/Pages'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.pages'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'PageEdit',
|
||||
path: '/admin/pages/:slug',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/page-edit" */ './views/Admin/Pages/PageEdit'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.page_edit'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Plans',
|
||||
path: '/admin/plans',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/plans" */ './views/Admin/Plans'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.pricing_plans'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Users',
|
||||
path: '/admin/users',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/users" */ './views/Admin/Users'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.users_list'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'UserCreate',
|
||||
path: '/admin/user/create',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/user-create" */ './views/Admin/Users/UserCreate'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.user_create'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'PlanCreate',
|
||||
path: '/admin/plan/create',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/plan-create" */ './views/Admin/Plans/PlanCreate'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.plan_create'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'User',
|
||||
path: '/admin/user/:id',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/user" */ './views/Admin/Users/User'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.users_user'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
name: 'UserDetail',
|
||||
path: '/admin/user/:id/details',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/user-detail" */ './views/Admin/Users/UserTabs/UserDetail'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.users_detail'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'UserStorage',
|
||||
path: '/admin/user/:id/storage',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/user-storage" */ './views/Admin/Users/UserTabs/UserStorage'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.users_storage_usage'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'UserSubscription',
|
||||
path: '/admin/user/:id/subscription',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/user-subscription" */ './views/Admin/Users/UserTabs/UserSubscription'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.subscription'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'UserInvoices',
|
||||
path: '/admin/user/:id/invoices',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/user-invoices" */ './views/Admin/Users/UserTabs/UserInvoices'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.invoices'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'UserPassword',
|
||||
path: '/admin/user/:id/password',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/user-password" */ './views/Admin/Users/UserTabs/UserPassword'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.users_password'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'UserDelete',
|
||||
path: '/admin/user/:id/delete',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/user-delete" */ './views/Admin/Users/UserTabs/UserDelete'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.users_delete'
|
||||
},
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'Plan',
|
||||
path: '/admin/plan/:id',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/plan" */ './views/Admin/Plans/Plan'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.plan'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
name: 'PlanSubscribers',
|
||||
path: '/admin/plan/:id/subscribers',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/plan-subscribers" */ './views/Admin/Plans/PlanTabs/PlanSubscribers'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.subscribers'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'PlanSettings',
|
||||
path: '/admin/plan/:id/settings',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/plan-settings" */ './views/Admin/Plans/PlanTabs/PlanSettings'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.plan_settings',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'PlanDelete',
|
||||
path: '/admin/plan/:id/delete',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/plan-delete" */ './views/Admin/Plans/PlanTabs/PlanDelete'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.plan_delete',
|
||||
},
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'AppSettings',
|
||||
path: '/admin/settings',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/app-settings" */ './views/Admin/AppSettings/AppSettings'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.settings'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
name: 'AppAppearance',
|
||||
path: '/admin/settings/appearance',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/app-appearance" */ './views/Admin/AppSettings/AppSettingsTabs/Appearance'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.appearance'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'AppIndex',
|
||||
path: '/admin/settings/index',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/app-index" */ './views/Admin/AppSettings/AppSettingsTabs/Index'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'Index'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'AppBillings',
|
||||
path: '/admin/settings/billings',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/app-billings" */ './views/Admin/AppSettings/AppSettingsTabs/Billings'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.billings'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'AppEmail',
|
||||
path: '/admin/settings/email',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/app-email" */ './views/Admin/AppSettings/AppSettingsTabs/Email'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.email'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'AppPayments',
|
||||
path: '/admin/settings/payments',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/app-payments" */ './views/Admin/AppSettings/AppSettingsTabs/Payments'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.payments'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'AppOthers',
|
||||
path: '/admin/settings/others',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/app-others" */ './views/Admin/AppSettings/AppSettingsTabs/Others'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.others'
|
||||
},
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'Language',
|
||||
path: '/admin/language',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/app-language" */ './views/Admin/Languages/Language'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
},
|
||||
}
|
||||
]
|
||||
},
|
||||
]
|
||||
const routesShared = [
|
||||
{
|
||||
name: 'Shared',
|
||||
path: '/share/:token',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/shared" */ './views/Shared'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
name: 'SharedFileBrowser',
|
||||
path: '/share/:token/files',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/shared/file-browser" */ './views/Shared/SharedFileBrowser'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'SharedSingleFile',
|
||||
path: '/share/:token/file',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/shared/single-file" */ './views/Shared/SharedSingleFile'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'SharedAuthentication',
|
||||
path: '/share/:token/authenticate',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/shared/authenticate" */ './views/Shared/SharedAuthentication'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
]
|
||||
},
|
||||
]
|
||||
const routesAuth = [
|
||||
{
|
||||
name: 'SuccessfullyVerified',
|
||||
path: '/successfully-verified',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/email-verified" */ './views/Auth/SuccessfullyEmailVerified'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'SuccessfullySend',
|
||||
path: '/successfully-send',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/email-verified" */ './views/Auth/SuccessfullySendEmail'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'SignIn',
|
||||
path: '/sign-in',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/sign-in" */ './views/Auth/SignIn'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'SignUp',
|
||||
path: '/sign-up',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/sign-up" */ './views/Auth/SignUp'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'ForgottenPassword',
|
||||
path: '/forgotten-password',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/forgotten-password" */ './views/Auth/ForgottenPassword'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'CreateNewPassword',
|
||||
path: '/create-new-password',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/create-new-password" */ './views/Auth/CreateNewPassword'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
]
|
||||
const routesUser = [
|
||||
{
|
||||
path: '/platform',
|
||||
name: 'Platform',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/platform" */ './views/Platform'),
|
||||
children: [
|
||||
{
|
||||
name: 'Files',
|
||||
path: '/platform/files/:id?',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/files" */ './views/FileView/Home/Files'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'RecentUploads',
|
||||
path: '/platform/recent-uploads',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/recent-uploads" */ './views/FileView/RecentUploads/RecentUploads'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'MySharedItems',
|
||||
path: '/platform/my-shared-items',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/my-shared-items" */ './views/FileView/MySharedItems/MySharedItems'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Trash',
|
||||
path: '/platform/trash/:id?',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/trash" */ './views/FileView/Trash/Trash'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Settings',
|
||||
path: '/platform/settings',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/settings" */ './views/Profile'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
},
|
||||
children: [
|
||||
{
|
||||
name: 'Profile',
|
||||
path: '/platform/profile',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/profile" */ './views/User/Settings'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.profile'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Password',
|
||||
path: '/platform/settings/password',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/settings-password" */ './views/User/Password'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.settings_password'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Storage',
|
||||
path: '/platform/settings/storage',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/settings-storage" */ './views/User/Storage'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.settings_storage'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Invoice',
|
||||
path: '/platform/settings/invoices',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/settings-invoices" */ './views/User/Invoices'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.invoices'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Subscription',
|
||||
path: '/platform/settings/subscription',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/settings-subscription" */ './views/User/Subscription'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.subscription'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'PaymentMethods',
|
||||
path: '/platform/settings/payment-methods',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/settings-payment-methods" */ './views/User/PaymentMethods'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.payment_methods'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'CreatePaymentMethod',
|
||||
path: '/platform/settings/create-payment-method',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/settings-create-payment-methods" */ './views/User/CreatePaymentMethod'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'Create Payment Method'
|
||||
},
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'UpgradePlan',
|
||||
path: '/platform/upgrade/plan',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/upgrade-plan" */ './views/Upgrade/UpgradePlan'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.upgrade_plan'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'UpgradeBilling',
|
||||
path: '/platform/upgrade/billing',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/upgrade-billing" */ './views/Upgrade/UpgradeBilling'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.upgrade_billing'
|
||||
},
|
||||
},
|
||||
]
|
||||
}
|
||||
]
|
||||
const routesMaintenance = [
|
||||
{
|
||||
name: 'SetupWizard',
|
||||
path: '/install',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/setup-wizard" */ './views/SetupWizard'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
name: 'StatusCheck',
|
||||
path: '/setup-wizard/status-check',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/status-check" */ './views/SetupWizard/StatusCheck'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'PurchaseCode',
|
||||
path: '/setup-wizard/purchase-code',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/purchase-code" */ './views/SetupWizard/PurchaseCode'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Database',
|
||||
path: '/setup-wizard/database',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/database" */ './views/SetupWizard/Database'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'InstallationDisclaimer',
|
||||
path: '/setup-wizard/installation-disclaimer',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/installation-disclaimer" */ './views/SetupWizard/InstallationDisclaimer'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'SubscriptionService',
|
||||
path: '/setup-wizard/subscription-service',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/subscription-service" */ './views/SetupWizard/SubscriptionService'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'StripeCredentials',
|
||||
path: '/setup-wizard/stripe-credentials',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/stripe-credentials" */ './views/SetupWizard/StripeCredentials'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'BillingsDetail',
|
||||
path: '/setup-wizard/stripe-billings',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/billings-detail" */ './views/SetupWizard/BillingsDetail'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'SubscriptionPlans',
|
||||
path: '/setup-wizard/stripe-plans',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/subscription-plans" */ './views/SetupWizard/SubscriptionPlans'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'EnvironmentSetup',
|
||||
path: '/setup-wizard/environment-setup',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/environment-setup" */ './views/SetupWizard/EnvironmentSetup'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'AppSetup',
|
||||
path: '/setup-wizard/app-setup',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/app-setup" */ './views/SetupWizard/AppSetup'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'AdminAccount',
|
||||
path: '/setup-wizard/admin-setup',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/admin-account" */ './views/SetupWizard/AdminAccount'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
]
|
||||
},
|
||||
]
|
||||
const routesIndex = [
|
||||
{
|
||||
name: 'Homepage',
|
||||
path: '/',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/homepage" */ './views/Frontpage/Homepage'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'DynamicPage',
|
||||
path: '/page/:slug',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/dynamic-page" */ './views/Frontpage/DynamicPage'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'ContactUs',
|
||||
path: '/contact-us',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/contact-us" */ './views/Frontpage/ContactUs'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'NotFound',
|
||||
path: '/not-found',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/not-found-shared" */ './views/NotFound'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
]
|
||||
const routesOthers = [
|
||||
{
|
||||
name: 'NotFound',
|
||||
path: '*',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/not-found" */ './views/NotFound'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
]
|
||||
|
||||
const router = new Router({
|
||||
mode: 'history',
|
||||
routes: [
|
||||
...routesMaintenance,
|
||||
...routesShared,
|
||||
...routesOthers,
|
||||
...routesAdmin,
|
||||
...routesIndex,
|
||||
...routesAuth,
|
||||
...routesUser,
|
||||
...routesOthers,
|
||||
],
|
||||
scrollBehavior(to, from, savedPosition) {
|
||||
if (savedPosition) {
|
||||
@@ -719,9 +32,6 @@ const router = new Router({
|
||||
})
|
||||
|
||||
router.beforeEach((to, from, next) => {
|
||||
|
||||
store.commit('SET_PREVIOUS_LOCATION', from.name)
|
||||
|
||||
if (to.matched.some(record => record.meta.requiresAuth)) {
|
||||
// this route requires auth, check if logged in
|
||||
// if not, redirect to login page.
|
||||
|
||||
291
resources/js/routes/routesAdmin.js
vendored
Normal file
291
resources/js/routes/routesAdmin.js
vendored
Normal file
@@ -0,0 +1,291 @@
|
||||
const routesAdmin = [
|
||||
{
|
||||
name: 'Admin',
|
||||
path: '/admin',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/admin" */ '../views/Admin'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'Admin'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
name: 'Dashboard',
|
||||
path: '/admin/dashboard',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/dashboard" */ '../views/Admin/Dashboard'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.dashboard'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Invoices',
|
||||
path: '/admin/invoices',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/invoices" */ '../views/Admin/Invoices'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.invoices'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Pages',
|
||||
path: '/admin/pages',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/pages" */ '../views/Admin/Pages'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.pages'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'PageEdit',
|
||||
path: '/admin/pages/:slug',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/page-edit" */ '../views/Admin/Pages/PageEdit'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.page_edit'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Plans',
|
||||
path: '/admin/plans',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/plans" */ '../views/Admin/Plans'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.pricing_plans'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Users',
|
||||
path: '/admin/users',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/users" */ '../views/Admin/Users'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.users_list'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'UserCreate',
|
||||
path: '/admin/user/create',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/user-create" */ '../views/Admin/Users/UserCreate'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.user_create'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'PlanCreate',
|
||||
path: '/admin/plan/create',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/plan-create" */ '../views/Admin/Plans/PlanCreate'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.plan_create'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'User',
|
||||
path: '/admin/user/:id',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/user" */ '../views/Admin/Users/User'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.users_user'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
name: 'UserDetail',
|
||||
path: '/admin/user/:id/details',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/user-detail" */ '../views/Admin/Users/UserTabs/UserDetail'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.users_detail'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'UserStorage',
|
||||
path: '/admin/user/:id/storage',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/user-storage" */ '../views/Admin/Users/UserTabs/UserStorage'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.users_storage_usage'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'UserSubscription',
|
||||
path: '/admin/user/:id/subscription',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/user-subscription" */ '../views/Admin/Users/UserTabs/UserSubscription'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.subscription'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'UserInvoices',
|
||||
path: '/admin/user/:id/invoices',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/user-invoices" */ '../views/Admin/Users/UserTabs/UserInvoices'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.invoices'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'UserPassword',
|
||||
path: '/admin/user/:id/password',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/user-password" */ '../views/Admin/Users/UserTabs/UserPassword'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.users_password'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'UserDelete',
|
||||
path: '/admin/user/:id/delete',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/user-delete" */ '../views/Admin/Users/UserTabs/UserDelete'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.users_delete'
|
||||
},
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'Plan',
|
||||
path: '/admin/plan/:id',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/plan" */ '../views/Admin/Plans/Plan'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.plan'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
name: 'PlanSubscribers',
|
||||
path: '/admin/plan/:id/subscribers',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/plan-subscribers" */ '../views/Admin/Plans/PlanTabs/PlanSubscribers'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.subscribers'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'PlanSettings',
|
||||
path: '/admin/plan/:id/settings',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/plan-settings" */ '../views/Admin/Plans/PlanTabs/PlanSettings'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.plan_settings',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'PlanDelete',
|
||||
path: '/admin/plan/:id/delete',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/plan-delete" */ '../views/Admin/Plans/PlanTabs/PlanDelete'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.plan_delete',
|
||||
},
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'AppSettings',
|
||||
path: '/admin/settings',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/app-settings" */ '../views/Admin/AppSettings/AppSettings'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.settings'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
name: 'AppAppearance',
|
||||
path: '/admin/settings/appearance',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/app-appearance" */ '../views/Admin/AppSettings/AppSettingsTabs/Appearance'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.appearance'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'AppIndex',
|
||||
path: '/admin/settings/index',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/app-index" */ '../views/Admin/AppSettings/AppSettingsTabs/Index'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'Index'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'AppBillings',
|
||||
path: '/admin/settings/billings',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/app-billings" */ '../views/Admin/AppSettings/AppSettingsTabs/Billings'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.billings'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'AppEmail',
|
||||
path: '/admin/settings/email',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/app-email" */ '../views/Admin/AppSettings/AppSettingsTabs/Email'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.email'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'AppPayments',
|
||||
path: '/admin/settings/payments',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/app-payments" */ '../views/Admin/AppSettings/AppSettingsTabs/Payments'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.payments'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'AppOthers',
|
||||
path: '/admin/settings/others',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/app-others" */ '../views/Admin/AppSettings/AppSettingsTabs/Others'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.others'
|
||||
},
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'Language',
|
||||
path: '/admin/language',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/app-language" */ '../views/Admin/Languages/Language'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
},
|
||||
}
|
||||
]
|
||||
},
|
||||
]
|
||||
|
||||
export default routesAdmin
|
||||
58
resources/js/routes/routesAuth.js
vendored
Normal file
58
resources/js/routes/routesAuth.js
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
const routesAuth = [
|
||||
{
|
||||
name: 'SuccessfullyVerified',
|
||||
path: '/successfully-verified',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/email-verified" */ '../views/Auth/SuccessfullyEmailVerified'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'SuccessfullySend',
|
||||
path: '/successfully-send',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/email-verified" */ '../views/Auth/SuccessfullySendEmail'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'SignIn',
|
||||
path: '/sign-in',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/sign-in" */ '../views/Auth/SignIn'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'SignUp',
|
||||
path: '/sign-up',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/sign-up" */ '../views/Auth/SignUp'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'ForgottenPassword',
|
||||
path: '/forgotten-password',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/forgotten-password" */ '../views/Auth/ForgottenPassword'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'CreateNewPassword',
|
||||
path: '/create-new-password',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/create-new-password" */ '../views/Auth/CreateNewPassword'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
]
|
||||
|
||||
export default routesAuth
|
||||
40
resources/js/routes/routesIndex.js
vendored
Normal file
40
resources/js/routes/routesIndex.js
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
const routesIndex = [
|
||||
{
|
||||
name: 'Homepage',
|
||||
path: '/',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/homepage" */ '../views/Frontpage/Homepage'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'DynamicPage',
|
||||
path: '/page/:slug',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/dynamic-page" */ '../views/Frontpage/DynamicPage'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'ContactUs',
|
||||
path: '/contact-us',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/contact-us" */ '../views/Frontpage/ContactUs'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'NotFound',
|
||||
path: '/not-found',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/not-found-shared" */ '../views/NotFound'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
]
|
||||
|
||||
export default routesIndex
|
||||
114
resources/js/routes/routesMaintenance.js
vendored
Normal file
114
resources/js/routes/routesMaintenance.js
vendored
Normal file
@@ -0,0 +1,114 @@
|
||||
const routesMaintenance = [
|
||||
{
|
||||
name: 'SetupWizard',
|
||||
path: '/install',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/setup-wizard" */ '../views/SetupWizard'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
name: 'StatusCheck',
|
||||
path: '/setup-wizard/status-check',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/status-check" */ '../views/SetupWizard/StatusCheck'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'PurchaseCode',
|
||||
path: '/setup-wizard/purchase-code',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/purchase-code" */ '../views/SetupWizard/PurchaseCode'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Database',
|
||||
path: '/setup-wizard/database',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/database" */ '../views/SetupWizard/Database'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'InstallationDisclaimer',
|
||||
path: '/setup-wizard/installation-disclaimer',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/installation-disclaimer" */ '../views/SetupWizard/InstallationDisclaimer'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'SubscriptionService',
|
||||
path: '/setup-wizard/subscription-service',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/subscription-service" */ '../views/SetupWizard/SubscriptionService'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'StripeCredentials',
|
||||
path: '/setup-wizard/stripe-credentials',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/stripe-credentials" */ '../views/SetupWizard/StripeCredentials'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'BillingsDetail',
|
||||
path: '/setup-wizard/stripe-billings',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/billings-detail" */ '../views/SetupWizard/BillingsDetail'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'SubscriptionPlans',
|
||||
path: '/setup-wizard/stripe-plans',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/subscription-plans" */ '../views/SetupWizard/SubscriptionPlans'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'EnvironmentSetup',
|
||||
path: '/setup-wizard/environment-setup',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/environment-setup" */ '../views/SetupWizard/EnvironmentSetup'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'AppSetup',
|
||||
path: '/setup-wizard/app-setup',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/app-setup" */ '../views/SetupWizard/AppSetup'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'AdminAccount',
|
||||
path: '/setup-wizard/admin-setup',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/admin-account" */ '../views/SetupWizard/AdminAccount'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
]
|
||||
},
|
||||
]
|
||||
|
||||
export default routesMaintenance
|
||||
13
resources/js/routes/routesOthers.js
vendored
Normal file
13
resources/js/routes/routesOthers.js
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
const routesOthers = [
|
||||
{
|
||||
name: 'NotFound',
|
||||
path: '*',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/not-found" */ '../views/NotFound'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
]
|
||||
|
||||
export default routesOthers
|
||||
42
resources/js/routes/routesShared.js
vendored
Normal file
42
resources/js/routes/routesShared.js
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
const routesShared = [
|
||||
{
|
||||
name: 'Shared',
|
||||
path: '/share/:token',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/shared" */ '../views/Shared'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
name: 'SharedFileBrowser',
|
||||
path: '/share/:token/files',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/shared/file-browser" */ '../views/Shared/SharedFileBrowser'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'SharedSingleFile',
|
||||
path: '/share/:token/file',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/shared/single-file" */ '../views/Shared/SharedSingleFile'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'SharedAuthentication',
|
||||
path: '/share/:token/authenticate',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/shared/authenticate" */ '../views/Shared/SharedAuthentication'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
]
|
||||
},
|
||||
]
|
||||
|
||||
export default routesShared
|
||||
149
resources/js/routes/routesUser.js
vendored
Normal file
149
resources/js/routes/routesUser.js
vendored
Normal file
@@ -0,0 +1,149 @@
|
||||
const routesUser = [
|
||||
{
|
||||
path: '/platform',
|
||||
name: 'Platform',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/platform" */ '../views/Platform'),
|
||||
children: [
|
||||
{
|
||||
name: 'Files',
|
||||
path: '/platform/files/:id?',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/files" */ '../views/FileView/Home/Files'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'RecentUploads',
|
||||
path: '/platform/recent-uploads',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/recent-uploads" */ '../views/FileView/RecentUploads/RecentUploads'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'MySharedItems',
|
||||
path: '/platform/my-shared-items',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/my-shared-items" */ '../views/FileView/MySharedItems/MySharedItems'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Trash',
|
||||
path: '/platform/trash/:id?',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/trash" */ '../views/FileView/Trash/Trash'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Settings',
|
||||
path: '/platform/settings',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/settings" */ '../views/Profile'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
},
|
||||
children: [
|
||||
{
|
||||
name: 'Profile',
|
||||
path: '/platform/profile',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/profile" */ '../views/User/Settings'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.profile'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Password',
|
||||
path: '/platform/settings/password',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/settings-password" */ '../views/User/Password'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.settings_password'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Storage',
|
||||
path: '/platform/settings/storage',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/settings-storage" */ '../views/User/Storage'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.settings_storage'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Invoice',
|
||||
path: '/platform/settings/invoices',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/settings-invoices" */ '../views/User/Invoices'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.invoices'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Subscription',
|
||||
path: '/platform/settings/subscription',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/settings-subscription" */ '../views/User/Subscription'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.subscription'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'PaymentMethods',
|
||||
path: '/platform/settings/payment-methods',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/settings-payment-methods" */ '../views/User/PaymentMethods'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.payment_methods'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'CreatePaymentMethod',
|
||||
path: '/platform/settings/create-payment-method',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/settings-create-payment-methods" */ '../views/User/CreatePaymentMethod'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'Create Payment Method'
|
||||
},
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'UpgradePlan',
|
||||
path: '/platform/upgrade/plan',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/upgrade-plan" */ '../views/Upgrade/UpgradePlan'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.upgrade_plan'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'UpgradeBilling',
|
||||
path: '/platform/upgrade/billing',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/upgrade-billing" */ '../views/Upgrade/UpgradeBilling'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.upgrade_billing'
|
||||
},
|
||||
},
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
export default routesUser
|
||||
Reference in New Issue
Block a user