mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-05-17 02:35:02 +00:00
vue routes refactoring
This commit is contained in:
Vendored
+10
-700
@@ -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.
|
||||
|
||||
Vendored
+291
@@ -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
|
||||
Vendored
+58
@@ -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
|
||||
Vendored
+40
@@ -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
@@ -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
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
const routesOthers = [
|
||||
{
|
||||
name: 'NotFound',
|
||||
path: '*',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/not-found" */ '../views/NotFound'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
]
|
||||
|
||||
export default routesOthers
|
||||
Vendored
+42
@@ -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
|
||||
Vendored
+149
@@ -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