mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 08:32:14 +00:00
refactoring part 3
This commit is contained in:
232
resources/js/routes/routesUser.js
vendored
232
resources/js/routes/routesUser.js
vendored
@@ -1,167 +1,105 @@
|
||||
const routesUser = [
|
||||
{
|
||||
path: '/platform',
|
||||
name: 'Platform',
|
||||
name: 'User',
|
||||
path: '/user',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/platform" */ '../views/Platform'),
|
||||
import(/* webpackChunkName: "chunks/settings" */ '../views/Profile'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
},
|
||||
children: [
|
||||
{
|
||||
name: 'Files',
|
||||
path: '/platform/files/:id?',
|
||||
name: 'Profile',
|
||||
path: '/user/profile',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/files" */ '../views/FileView/Files'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'RecentUploads',
|
||||
path: '/platform/recent-uploads',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/recent-uploads" */ '../views/FileView/RecentUploads'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'MySharedItems',
|
||||
path: '/platform/my-shared-items',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/my-shared-items" */ '../views/FileView/MySharedItems'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Trash',
|
||||
path: '/platform/trash/:id?',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/trash" */ '../views/FileView/Trash'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'TeamFolders',
|
||||
path: '/platform/team-folder/:id?',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/team-folders" */ '../views/FileView/Trash'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'SharedWithMe',
|
||||
path: '/platform/shared-with-me/:id?',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/shared-with-me" */ '../views/FileView/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'),
|
||||
import(/* webpackChunkName: "chunks/profile" */ '../views/User/Settings'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.upgrade_plan'
|
||||
title: 'routes_title.profile'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'UpgradeBilling',
|
||||
path: '/platform/upgrade/billing',
|
||||
name: 'Password',
|
||||
path: '/user/settings/password',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/upgrade-billing" */ '../views/Upgrade/UpgradeBilling'),
|
||||
import(/* webpackChunkName: "chunks/settings-password" */ '../views/User/Password'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.upgrade_billing'
|
||||
title: 'routes_title.settings_password'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Storage',
|
||||
path: '/user/settings/storage',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/settings-storage" */ '../views/User/Storage'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.settings_storage'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Invoice',
|
||||
path: '/user/settings/invoices',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/settings-invoices" */ '../views/User/Invoices'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.invoices'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Subscription',
|
||||
path: '/user/settings/subscription',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/settings-subscription" */ '../views/User/Subscription'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.subscription'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'PaymentMethods',
|
||||
path: '/user/settings/payment-methods',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/settings-payment-methods" */ '../views/User/PaymentMethods'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.payment_methods'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'CreatePaymentMethod',
|
||||
path: '/user/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: '/user/upgrade/plan',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/upgrade-plan" */ '../views/Upgrade/UpgradePlan'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'routes_title.upgrade_plan'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'UpgradeBilling',
|
||||
path: '/user/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