mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
- code splitting with vue router
This commit is contained in:
@@ -96,7 +96,7 @@ return [
|
||||
],
|
||||
[
|
||||
'name' => 'footer_content',
|
||||
'value' => '© 2020 Simple & Powerfull Personal Cloud Storage. Developed by <a href="https://hi5ve.digital" target="_blank">Hi5Ve.Digital</a>',
|
||||
'value' => '© 2020 Simple & Powerful Personal Cloud Storage. Developed by <a href="https://hi5ve.digital" target="_blank">Hi5Ve.Digital</a>',
|
||||
],
|
||||
],
|
||||
];
|
||||
@@ -31,7 +31,7 @@ class ContentSeeder extends Seeder
|
||||
],
|
||||
[
|
||||
'name' => 'header_title',
|
||||
'value' => 'Simple <span style="color: #41B883">&</span> Powerfull Personal Cloud Storage',
|
||||
'value' => 'Simple <span style="color: #41B883">&</span> Powerful Personal Cloud Storage',
|
||||
],
|
||||
[
|
||||
'name' => 'header_description',
|
||||
@@ -87,7 +87,7 @@ class ContentSeeder extends Seeder
|
||||
],
|
||||
[
|
||||
'name' => 'footer_content',
|
||||
'value' => '© 2020 Simple & Powerfull Personal Cloud Storage. Developed by <a href="https://hi5ve.digital" target="_blank">Hi5Ve.Digital</a>',
|
||||
'value' => '© 2020 Simple & Powerful Personal Cloud Storage. Developed by <a href="https://hi5ve.digital" target="_blank">Hi5Ve.Digital</a>',
|
||||
],
|
||||
]);
|
||||
|
||||
|
||||
2
public/js/main.js
vendored
2
public/js/main.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,36 +1,66 @@
|
||||
{
|
||||
"/files~shared-files~shared-page~trash.js": "/files~shared-files~shared-page~trash.js",
|
||||
"/js/main.js": "/js/main.js",
|
||||
"/css/app.css": "/css/app.css",
|
||||
"/js/main.790675b86a04f8ebe2e8.hot-update.js": "/js/main.790675b86a04f8ebe2e8.hot-update.js",
|
||||
"/js/main.2677986102175d845922.hot-update.js": "/js/main.2677986102175d845922.hot-update.js",
|
||||
"/js/main.f0f2fab9418afbf0db1f.hot-update.js": "/js/main.f0f2fab9418afbf0db1f.hot-update.js",
|
||||
"/js/main.b60106aa066eb2466bee.hot-update.js": "/js/main.b60106aa066eb2466bee.hot-update.js",
|
||||
"/js/main.5acc0c8f9900d0bd73ed.hot-update.js": "/js/main.5acc0c8f9900d0bd73ed.hot-update.js",
|
||||
"/js/main.b6a5baa6c3d0f3bd200f.hot-update.js": "/js/main.b6a5baa6c3d0f3bd200f.hot-update.js",
|
||||
"/js/main.e33925eb046cf627a079.hot-update.js": "/js/main.e33925eb046cf627a079.hot-update.js",
|
||||
"/js/main.1bf411fb6985d5b35e3c.hot-update.js": "/js/main.1bf411fb6985d5b35e3c.hot-update.js",
|
||||
"/js/main.cbbf26c97d76ec2316d4.hot-update.js": "/js/main.cbbf26c97d76ec2316d4.hot-update.js",
|
||||
"/js/main.f06d68ce4a2130da6829.hot-update.js": "/js/main.f06d68ce4a2130da6829.hot-update.js",
|
||||
"/js/main.0a662b9900530f49753a.hot-update.js": "/js/main.0a662b9900530f49753a.hot-update.js",
|
||||
"/js/main.269a03a1f28bddc2e822.hot-update.js": "/js/main.269a03a1f28bddc2e822.hot-update.js",
|
||||
"/js/main.25d75016bcf92d9aaba0.hot-update.js": "/js/main.25d75016bcf92d9aaba0.hot-update.js",
|
||||
"/js/main.12dfc259388c3e58fc21.hot-update.js": "/js/main.12dfc259388c3e58fc21.hot-update.js",
|
||||
"/js/main.36ad67978ff0f8e762c3.hot-update.js": "/js/main.36ad67978ff0f8e762c3.hot-update.js",
|
||||
"/js/main.9dace6865c84f051f908.hot-update.js": "/js/main.9dace6865c84f051f908.hot-update.js",
|
||||
"/js/main.56e6f42c480bb8e7b4d2.hot-update.js": "/js/main.56e6f42c480bb8e7b4d2.hot-update.js",
|
||||
"/js/main.9311960c0c78bf8e6c14.hot-update.js": "/js/main.9311960c0c78bf8e6c14.hot-update.js",
|
||||
"/js/main.4c1de374513d06ee1583.hot-update.js": "/js/main.4c1de374513d06ee1583.hot-update.js",
|
||||
"/js/main.954f2121f35a0ee1ca83.hot-update.js": "/js/main.954f2121f35a0ee1ca83.hot-update.js",
|
||||
"/js/main.75331937ba1532c8f756.hot-update.js": "/js/main.75331937ba1532c8f756.hot-update.js",
|
||||
"/js/main.71826d4750d1554f4f56.hot-update.js": "/js/main.71826d4750d1554f4f56.hot-update.js",
|
||||
"/js/main.e9e56a41237ab9815a03.hot-update.js": "/js/main.e9e56a41237ab9815a03.hot-update.js",
|
||||
"/js/main.5b8f53ecf3e68591cef6.hot-update.js": "/js/main.5b8f53ecf3e68591cef6.hot-update.js",
|
||||
"/js/main.b445818cfdb693a11314.hot-update.js": "/js/main.b445818cfdb693a11314.hot-update.js",
|
||||
"/js/main.eb125f10c4e77fb068e3.hot-update.js": "/js/main.eb125f10c4e77fb068e3.hot-update.js",
|
||||
"/js/main.0f6d1ba21a4a5342f819.hot-update.js": "/js/main.0f6d1ba21a4a5342f819.hot-update.js",
|
||||
"/js/main.c7724a2adbd6a4306dcf.hot-update.js": "/js/main.c7724a2adbd6a4306dcf.hot-update.js",
|
||||
"/js/main.66ed71949116fcee76ec.hot-update.js": "/js/main.66ed71949116fcee76ec.hot-update.js",
|
||||
"/js/main.2d1e201a7f96eca1d0fe.hot-update.js": "/js/main.2d1e201a7f96eca1d0fe.hot-update.js",
|
||||
"/js/main.a9b87a9466d8b7a37d5f.hot-update.js": "/js/main.a9b87a9466d8b7a37d5f.hot-update.js",
|
||||
"/js/main.c456daf3c9dc3a21390e.hot-update.js": "/js/main.c456daf3c9dc3a21390e.hot-update.js"
|
||||
"/admin.js": "/admin.js",
|
||||
"/admin-account.js": "/admin-account.js",
|
||||
"/app-appearance.js": "/app-appearance.js",
|
||||
"/app-billings.js": "/app-billings.js",
|
||||
"/app-email.js": "/app-email.js",
|
||||
"/app-index.js": "/app-index.js",
|
||||
"/app-others.js": "/app-others.js",
|
||||
"/app-payments.js": "/app-payments.js",
|
||||
"/app-settings.js": "/app-settings.js",
|
||||
"/app-setup.js": "/app-setup.js",
|
||||
"/billings-detail.js": "/billings-detail.js",
|
||||
"/contact-us.js": "/contact-us.js",
|
||||
"/create-new-password.js": "/create-new-password.js",
|
||||
"/dashboard.js": "/dashboard.js",
|
||||
"/database.js": "/database.js",
|
||||
"/dynamic-page.js": "/dynamic-page.js",
|
||||
"/environment-setup.js": "/environment-setup.js",
|
||||
"/files.js": "/files.js",
|
||||
"/forgotten-password.js": "/forgotten-password.js",
|
||||
"/installation-disclaimer.js": "/installation-disclaimer.js",
|
||||
"/invoices.js": "/invoices.js",
|
||||
"/landing-page.js": "/landing-page.js",
|
||||
"/not-found-shared.js": "/not-found-shared.js",
|
||||
"/page-edit.js": "/page-edit.js",
|
||||
"/pages.js": "/pages.js",
|
||||
"/plan.js": "/plan.js",
|
||||
"/plan-create.js": "/plan-create.js",
|
||||
"/plan-delete.js": "/plan-delete.js",
|
||||
"/plan-settings.js": "/plan-settings.js",
|
||||
"/plan-subscribers.js": "/plan-subscribers.js",
|
||||
"/plans.js": "/plans.js",
|
||||
"/profile.js": "/profile.js",
|
||||
"/purchase-code.js": "/purchase-code.js",
|
||||
"/settings.js": "/settings.js",
|
||||
"/settings-create-payment-methods.js": "/settings-create-payment-methods.js",
|
||||
"/settings-invoices.js": "/settings-invoices.js",
|
||||
"/settings-password.js": "/settings-password.js",
|
||||
"/settings-payment-methods.js": "/settings-payment-methods.js",
|
||||
"/settings-storage.js": "/settings-storage.js",
|
||||
"/settings-subscription.js": "/settings-subscription.js",
|
||||
"/setup-wizard.js": "/setup-wizard.js",
|
||||
"/shared-files.js": "/shared-files.js",
|
||||
"/shared-page.js": "/shared-page.js",
|
||||
"/sign-in.js": "/sign-in.js",
|
||||
"/sign-up.js": "/sign-up.js",
|
||||
"/stripe-credentials.js": "/stripe-credentials.js",
|
||||
"/subscription-plans.js": "/subscription-plans.js",
|
||||
"/subscription-service.js": "/subscription-service.js",
|
||||
"/trash.js": "/trash.js",
|
||||
"/upgrade.js": "/upgrade.js",
|
||||
"/upgrade-billing.js": "/upgrade-billing.js",
|
||||
"/upgrade-plan.js": "/upgrade-plan.js",
|
||||
"/user.js": "/user.js",
|
||||
"/user-create.js": "/user-create.js",
|
||||
"/user-delete.js": "/user-delete.js",
|
||||
"/user-detail.js": "/user-detail.js",
|
||||
"/user-invoices.js": "/user-invoices.js",
|
||||
"/user-password.js": "/user-password.js",
|
||||
"/user-storage.js": "/user-storage.js",
|
||||
"/user-subscription.js": "/user-subscription.js",
|
||||
"/users.js": "/users.js"
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<!--System alerts-->
|
||||
<Alert/>
|
||||
|
||||
<div id="application-wrapper" v-if="layout === 'authorized'">
|
||||
<div id="application-wrapper" v-if="! isGuestLayout">
|
||||
|
||||
<!--Mobile Navigation-->
|
||||
<MobileNavigation />
|
||||
@@ -34,7 +34,7 @@
|
||||
</keep-alive>
|
||||
</div>
|
||||
|
||||
<router-view v-if="layout === 'unauthorized'"/>
|
||||
<router-view v-if="isGuestLayout"/>
|
||||
|
||||
<CookieDisclaimer />
|
||||
|
||||
@@ -78,8 +78,8 @@
|
||||
...mapGetters([
|
||||
'isLogged', 'isGuest', 'config'
|
||||
]),
|
||||
layout() {
|
||||
if (includes([
|
||||
isGuestLayout() {
|
||||
return (includes([
|
||||
'InstallationDisclaimer',
|
||||
'SubscriptionService',
|
||||
'StripeCredentials',
|
||||
@@ -102,11 +102,7 @@
|
||||
'SignIn',
|
||||
'SignUp',
|
||||
], this.$route.name)
|
||||
) {
|
||||
return 'unauthorized'
|
||||
}
|
||||
|
||||
return 'authorized'
|
||||
)
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@@ -151,7 +147,7 @@
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;600;700;800;900&display=swap');
|
||||
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800;900&display=swap');
|
||||
@import '@assets/vue-file-manager/_variables';
|
||||
@import '@assets/vue-file-manager/_mixins';
|
||||
|
||||
|
||||
@@ -124,7 +124,6 @@
|
||||
@import '@assets/vue-file-manager/_mixins';
|
||||
|
||||
.menu-bar {
|
||||
//background: linear-gradient(180deg, rgba(246, 245, 241, 0.8) 0%, rgba(243, 244, 246, 0.8) 100%);
|
||||
background: $light_background;
|
||||
user-select: none;
|
||||
padding-top: 25px;
|
||||
|
||||
263
resources/js/router.js
vendored
263
resources/js/router.js
vendored
@@ -2,96 +2,17 @@ import Vue from 'vue'
|
||||
import Router from 'vue-router'
|
||||
import i18n from '@/i18n/index'
|
||||
|
||||
import Index from './views/Auth/SignIn'
|
||||
import SignUp from './views/Auth/SignUp'
|
||||
import SharedPage from './views/Shared/SharedPage'
|
||||
import NotFoundShared from './views/Shared/NotFoundShared'
|
||||
import ForgottenPassword from './views/Auth/ForgottenPassword'
|
||||
import CreateNewPassword from './views/Auth/CreateNewPassword'
|
||||
|
||||
import Settings from './views/Profile'
|
||||
import Storage from './views/User/Storage'
|
||||
import Profile from './views/User/Settings'
|
||||
import Invoice from './views/User/Invoices'
|
||||
import Password from './views/User/Password'
|
||||
import Subscription from './views/User/Subscription'
|
||||
import PaymentMethods from './views/User/PaymentMethods'
|
||||
import CreatePaymentMethod from './views/User/CreatePaymentMethod'
|
||||
|
||||
import Trash from './views/FilePages/Trash'
|
||||
import Files from './views/FilePages/Files'
|
||||
import SharedFiles from './views/FilePages/SharedFiles'
|
||||
|
||||
import UpgradePlan from './views/Upgrade/UpgradePlan'
|
||||
import UpgradeBilling from './views/Upgrade/UpgradeBilling'
|
||||
|
||||
import AdminMobileMenu from './views/Mobile/AdminMobileMenu'
|
||||
import UserProfileMobileMenu from './views/Mobile/UserProfileMobileMenu'
|
||||
|
||||
import Admin from './views/Admin'
|
||||
import Invoices from './views/Admin/Invoices'
|
||||
import Dashboard from './views/Admin/Dashboard'
|
||||
import AppSettings from './views/Admin/AppSettings/AppSettings'
|
||||
|
||||
// Pages
|
||||
import Pages from './views/Admin/Pages'
|
||||
import PageEdit from './views/Admin/Pages/PageEdit'
|
||||
|
||||
// App Settings
|
||||
import AppEmail from './views/Admin/AppSettings/AppSettingsTabs/Email'
|
||||
import AppIndex from './views/Admin/AppSettings/AppSettingsTabs/Index'
|
||||
import AppOthers from './views/Admin/AppSettings/AppSettingsTabs/Others'
|
||||
import AppBillings from './views/Admin/AppSettings/AppSettingsTabs/Billings'
|
||||
import AppPayments from './views/Admin/AppSettings/AppSettingsTabs/Payments'
|
||||
import AppAppearance from './views/Admin/AppSettings/AppSettingsTabs/Appearance'
|
||||
|
||||
// Plans
|
||||
import Plans from './views/Admin/Plans'
|
||||
import Plan from './views/Admin/Plans/Plan'
|
||||
import PlanCreate from './views/Admin/Plans/PlanCreate'
|
||||
import PlanDelete from './views/Admin/Plans/PlanTabs/PlanDelete'
|
||||
import PlanSettings from './views/Admin/Plans/PlanTabs/PlanSettings'
|
||||
import PlanSubscribers from './views/Admin/Plans/PlanTabs/PlanSubscribers'
|
||||
|
||||
// Users
|
||||
import Users from './views/Admin/Users'
|
||||
import User from './views/Admin/Users/User'
|
||||
import UserCreate from './views/Admin/Users/UserCreate'
|
||||
import UserDetail from './views/Admin/Users/UserTabs/UserDetail'
|
||||
import UserDelete from './views/Admin/Users/UserTabs/UserDelete'
|
||||
import UserStorage from './views/Admin/Users/UserTabs/UserStorage'
|
||||
import UserPassword from './views/Admin/Users/UserTabs/UserPassword'
|
||||
import UserInvoices from './views/Admin/Users/UserTabs/UserInvoices'
|
||||
import UserSubscription from './views/Admin/Users/UserTabs/UserSubscription'
|
||||
|
||||
// Upgrade
|
||||
import Upgrade from './views/Upgrade'
|
||||
|
||||
// Setup Wizard
|
||||
import SetupWizard from './views/SetupWizard'
|
||||
import Database from './views/SetupWizard/Database'
|
||||
import AppSetup from './views/SetupWizard/AppSetup'
|
||||
import PurchaseCode from './views/SetupWizard/PurchaseCode'
|
||||
import AdminAccount from './views/SetupWizard/AdminAccount'
|
||||
import BillingsDetail from './views/SetupWizard/BillingsDetail'
|
||||
import EnvironmentSetup from './views/SetupWizard/EnvironmentSetup'
|
||||
import StripeCredentials from './views/SetupWizard/StripeCredentials'
|
||||
import SubscriptionPlans from './views/SetupWizard/SubscriptionPlans'
|
||||
import SubscriptionService from './views/SetupWizard/SubscriptionService'
|
||||
import InstallationDisclaimer from './views/SetupWizard/InstallationDisclaimer'
|
||||
|
||||
// Index pages
|
||||
import ContactUs from './views/Index/ContactUs'
|
||||
import DynamicPage from './views/Index/DynamicPage'
|
||||
import SaaSLandingPage from './views/index/SaaSLandingPage'
|
||||
|
||||
Vue.use(Router)
|
||||
|
||||
const routesAdmin = [
|
||||
{
|
||||
name: 'Admin',
|
||||
path: '/admin',
|
||||
component: Admin,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "admin" */ './views/Admin'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'Admin'
|
||||
@@ -100,7 +21,8 @@ const routesAdmin = [
|
||||
{
|
||||
name: 'Dashboard',
|
||||
path: '/admin/dashboard',
|
||||
component: Dashboard,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "dashboard" */ './views/Admin/Dashboard'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.dashboard')
|
||||
@@ -109,7 +31,8 @@ const routesAdmin = [
|
||||
{
|
||||
name: 'Invoices',
|
||||
path: '/admin/invoices',
|
||||
component: Invoices,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "invoices" */ './views/Admin/Invoices'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.invoices')
|
||||
@@ -118,7 +41,8 @@ const routesAdmin = [
|
||||
{
|
||||
name: 'Pages',
|
||||
path: '/admin/pages',
|
||||
component: Pages,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "pages" */ './views/Admin/Pages'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.pages')
|
||||
@@ -127,7 +51,8 @@ const routesAdmin = [
|
||||
{
|
||||
name: 'PageEdit',
|
||||
path: '/admin/pages/:slug',
|
||||
component: PageEdit,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "page-edit" */ './views/Admin/Pages/PageEdit'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.page_edit')
|
||||
@@ -136,7 +61,8 @@ const routesAdmin = [
|
||||
{
|
||||
name: 'Plans',
|
||||
path: '/admin/plans',
|
||||
component: Plans,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "plans" */ './views/Admin/Plans'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.pricing_plans')
|
||||
@@ -145,7 +71,8 @@ const routesAdmin = [
|
||||
{
|
||||
name: 'Users',
|
||||
path: '/admin/users',
|
||||
component: Users,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "users" */ './views/Admin/Users'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.users_list')
|
||||
@@ -154,7 +81,8 @@ const routesAdmin = [
|
||||
{
|
||||
name: 'UserCreate',
|
||||
path: '/admin/user/create',
|
||||
component: UserCreate,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "user-create" */ './views/Admin/Users/UserCreate'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.user_create')
|
||||
@@ -163,7 +91,8 @@ const routesAdmin = [
|
||||
{
|
||||
name: 'PlanCreate',
|
||||
path: '/admin/plan/create',
|
||||
component: PlanCreate,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "plan-create" */ './views/Admin/Plans/PlanCreate'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.plan_create')
|
||||
@@ -172,7 +101,8 @@ const routesAdmin = [
|
||||
{
|
||||
name: 'User',
|
||||
path: '/admin/user/:id',
|
||||
component: User,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "user" */ './views/Admin/Users/User'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.users_user')
|
||||
@@ -181,7 +111,8 @@ const routesAdmin = [
|
||||
{
|
||||
name: 'UserDetail',
|
||||
path: '/admin/user/:id/details',
|
||||
component: UserDetail,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "user-detail" */ './views/Admin/Users/UserTabs/UserDetail'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.users_detail')
|
||||
@@ -190,7 +121,8 @@ const routesAdmin = [
|
||||
{
|
||||
name: 'UserStorage',
|
||||
path: '/admin/user/:id/storage',
|
||||
component: UserStorage,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "user-storage" */ './views/Admin/Users/UserTabs/UserStorage'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.users_storage_usage')
|
||||
@@ -199,7 +131,8 @@ const routesAdmin = [
|
||||
{
|
||||
name: 'UserSubscription',
|
||||
path: '/admin/user/:id/subscription',
|
||||
component: UserSubscription,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "user-subscription" */ './views/Admin/Users/UserTabs/UserSubscription'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.subscription')
|
||||
@@ -208,7 +141,8 @@ const routesAdmin = [
|
||||
{
|
||||
name: 'UserInvoices',
|
||||
path: '/admin/user/:id/invoices',
|
||||
component: UserInvoices,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "user-invoices" */ './views/Admin/Users/UserTabs/UserInvoices'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.invoices')
|
||||
@@ -217,7 +151,8 @@ const routesAdmin = [
|
||||
{
|
||||
name: 'UserPassword',
|
||||
path: '/admin/user/:id/password',
|
||||
component: UserPassword,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "user-password" */ './views/Admin/Users/UserTabs/UserPassword'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.users_password')
|
||||
@@ -226,7 +161,8 @@ const routesAdmin = [
|
||||
{
|
||||
name: 'UserDelete',
|
||||
path: '/admin/user/:id/delete',
|
||||
component: UserDelete,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "user-delete" */ './views/Admin/Users/UserTabs/UserDelete'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.users_delete')
|
||||
@@ -237,7 +173,8 @@ const routesAdmin = [
|
||||
{
|
||||
name: 'Plan',
|
||||
path: '/admin/plan/:id',
|
||||
component: Plan,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "plan" */ './views/Admin/Plans/Plan'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.plan')
|
||||
@@ -246,7 +183,8 @@ const routesAdmin = [
|
||||
{
|
||||
name: 'PlanSubscribers',
|
||||
path: '/admin/plan/:id/subscribers',
|
||||
component: PlanSubscribers,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "plan-subscribers" */ './views/Admin/Plans/PlanTabs/PlanSubscribers'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.subscribers')
|
||||
@@ -255,7 +193,8 @@ const routesAdmin = [
|
||||
{
|
||||
name: 'PlanSettings',
|
||||
path: '/admin/plan/:id/settings',
|
||||
component: PlanSettings,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "plan-settings" */ './views/Admin/Plans/PlanTabs/PlanSettings'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.plan_settings'),
|
||||
@@ -264,7 +203,8 @@ const routesAdmin = [
|
||||
{
|
||||
name: 'PlanDelete',
|
||||
path: '/admin/plan/:id/delete',
|
||||
component: PlanDelete,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "plan-delete" */ './views/Admin/Plans/PlanTabs/PlanDelete'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.plan_delete'),
|
||||
@@ -275,7 +215,8 @@ const routesAdmin = [
|
||||
{
|
||||
name: 'AppSettings',
|
||||
path: '/admin/settings',
|
||||
component: AppSettings,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "app-settings" */ './views/Admin/AppSettings/AppSettings'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.settings')
|
||||
@@ -284,7 +225,8 @@ const routesAdmin = [
|
||||
{
|
||||
name: 'AppAppearance',
|
||||
path: '/admin/settings/appearance',
|
||||
component: AppAppearance,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "app-appearance" */ './views/Admin/AppSettings/AppSettingsTabs/Appearance'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.appearance')
|
||||
@@ -293,7 +235,8 @@ const routesAdmin = [
|
||||
{
|
||||
name: 'AppIndex',
|
||||
path: '/admin/settings/index',
|
||||
component: AppIndex,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "app-index" */ './views/Admin/AppSettings/AppSettingsTabs/Index'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'Index'
|
||||
@@ -302,7 +245,8 @@ const routesAdmin = [
|
||||
{
|
||||
name: 'AppBillings',
|
||||
path: '/admin/settings/billings',
|
||||
component: AppBillings,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "app-billings" */ './views/Admin/AppSettings/AppSettingsTabs/Billings'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.billings')
|
||||
@@ -311,7 +255,8 @@ const routesAdmin = [
|
||||
{
|
||||
name: 'AppEmail',
|
||||
path: '/admin/settings/email',
|
||||
component: AppEmail,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "app-email" */ './views/Admin/AppSettings/AppSettingsTabs/Email'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.email')
|
||||
@@ -320,7 +265,8 @@ const routesAdmin = [
|
||||
{
|
||||
name: 'AppPayments',
|
||||
path: '/admin/settings/payments',
|
||||
component: AppPayments,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "app-payments" */ './views/Admin/AppSettings/AppSettingsTabs/Payments'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.payments')
|
||||
@@ -329,7 +275,8 @@ const routesAdmin = [
|
||||
{
|
||||
name: 'AppOthers',
|
||||
path: '/admin/settings/others',
|
||||
component: AppOthers,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "app-others" */ './views/Admin/AppSettings/AppSettingsTabs/Others'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.others')
|
||||
@@ -362,7 +309,8 @@ const routesShared = [
|
||||
{
|
||||
name: 'SharedPage',
|
||||
path: '/shared/:token',
|
||||
component: SharedPage,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "shared-page" */ './views/Shared/SharedPage'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
@@ -370,7 +318,8 @@ const routesShared = [
|
||||
{
|
||||
name: 'NotFoundShared',
|
||||
path: '/shared-not-found',
|
||||
component: NotFoundShared,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "not-found-shared" */ './views/Shared/NotFoundShared'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
@@ -380,7 +329,8 @@ const routesAuth = [
|
||||
{
|
||||
name: 'SignIn',
|
||||
path: '/sign-in',
|
||||
component: Index,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "sign-in" */ './views/Auth/SignIn'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
@@ -388,7 +338,8 @@ const routesAuth = [
|
||||
{
|
||||
name: 'SignUp',
|
||||
path: '/sign-up',
|
||||
component: SignUp,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "sign-up" */ './views/Auth/SignUp'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
@@ -396,7 +347,8 @@ const routesAuth = [
|
||||
{
|
||||
name: 'ForgottenPassword',
|
||||
path: '/forgotten-password',
|
||||
component: ForgottenPassword,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "forgotten-password" */ './views/Auth/ForgottenPassword'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
@@ -404,7 +356,8 @@ const routesAuth = [
|
||||
{
|
||||
name: 'CreateNewPassword',
|
||||
path: '/create-new-password',
|
||||
component: CreateNewPassword,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "create-new-password" */ './views/Auth/CreateNewPassword'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
@@ -414,7 +367,8 @@ const routesUser = [
|
||||
{
|
||||
name: 'Files',
|
||||
path: '/files',
|
||||
component: Files,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "files" */ './views/FilePages/Files'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
},
|
||||
@@ -422,7 +376,8 @@ const routesUser = [
|
||||
{
|
||||
name: 'SharedFiles',
|
||||
path: '/shared-files',
|
||||
component: SharedFiles,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "shared-files" */ './views/FilePages/SharedFiles'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
},
|
||||
@@ -430,7 +385,8 @@ const routesUser = [
|
||||
{
|
||||
name: 'Trash',
|
||||
path: '/trash',
|
||||
component: Trash,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "trash" */ './views/FilePages/Trash'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
},
|
||||
@@ -438,7 +394,8 @@ const routesUser = [
|
||||
{
|
||||
name: 'Settings',
|
||||
path: '/settings',
|
||||
component: Settings,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "settings" */ './views/Profile'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
},
|
||||
@@ -446,7 +403,8 @@ const routesUser = [
|
||||
{
|
||||
name: 'Profile',
|
||||
path: 'profile',
|
||||
component: Profile,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "profile" */ './views/User/Settings'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.profile')
|
||||
@@ -455,7 +413,8 @@ const routesUser = [
|
||||
{
|
||||
name: 'Password',
|
||||
path: '/settings/password',
|
||||
component: Password,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "settings-password" */ './views/User/Password'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.settings_password')
|
||||
@@ -464,7 +423,8 @@ const routesUser = [
|
||||
{
|
||||
name: 'Storage',
|
||||
path: '/settings/storage',
|
||||
component: Storage,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "settings-storage" */ './views/User/Storage'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.settings_storage')
|
||||
@@ -473,7 +433,8 @@ const routesUser = [
|
||||
{
|
||||
name: 'Invoice',
|
||||
path: '/settings/invoices',
|
||||
component: Invoice,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "settings-invoices" */ './views/User/Invoices'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.invoices')
|
||||
@@ -482,7 +443,8 @@ const routesUser = [
|
||||
{
|
||||
name: 'Subscription',
|
||||
path: '/settings/subscription',
|
||||
component: Subscription,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "settings-subscription" */ './views/User/Subscription'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.subscription')
|
||||
@@ -491,7 +453,8 @@ const routesUser = [
|
||||
{
|
||||
name: 'PaymentMethods',
|
||||
path: '/settings/payment-methods',
|
||||
component: PaymentMethods,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "settings-payment-methods" */ './views/User/PaymentMethods'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.payment_methods')
|
||||
@@ -500,7 +463,8 @@ const routesUser = [
|
||||
{
|
||||
name: 'CreatePaymentMethod',
|
||||
path: '/settings/create-payment-method',
|
||||
component: CreatePaymentMethod,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "settings-create-payment-methods" */ './views/User/CreatePaymentMethod'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: 'Create Payment Method'
|
||||
@@ -511,7 +475,8 @@ const routesUser = [
|
||||
{
|
||||
name: 'UpgradePlan',
|
||||
path: '/upgrade/plan',
|
||||
component: UpgradePlan,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "upgrade-plan" */ './views/Upgrade/UpgradePlan'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.upgrade_plan')
|
||||
@@ -520,7 +485,8 @@ const routesUser = [
|
||||
{
|
||||
name: 'UpgradeBilling',
|
||||
path: '/upgrade/billing',
|
||||
component: UpgradeBilling,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "upgrade-billing" */ './views/Upgrade/UpgradeBilling'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: i18n.t('routes_title.upgrade_billing')
|
||||
@@ -531,7 +497,8 @@ const routesMaintenance = [
|
||||
{
|
||||
name: 'Upgrade',
|
||||
path: '/upgrade',
|
||||
component: Upgrade,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "upgrade" */ './views/Upgrade'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
@@ -539,7 +506,8 @@ const routesMaintenance = [
|
||||
{
|
||||
name: 'SetupWizard',
|
||||
path: '/install',
|
||||
component: SetupWizard,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "setup-wizard" */ './views/SetupWizard'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
@@ -547,7 +515,8 @@ const routesMaintenance = [
|
||||
{
|
||||
name: 'PurchaseCode',
|
||||
path: '/setup-wizard/purchase-code',
|
||||
component: PurchaseCode,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "purchase-code" */ './views/SetupWizard/PurchaseCode'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
@@ -555,7 +524,8 @@ const routesMaintenance = [
|
||||
{
|
||||
name: 'Database',
|
||||
path: '/setup-wizard/database',
|
||||
component: Database,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "database" */ './views/SetupWizard/Database'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
@@ -563,7 +533,8 @@ const routesMaintenance = [
|
||||
{
|
||||
name: 'InstallationDisclaimer',
|
||||
path: '/setup-wizard/installation-disclaimer',
|
||||
component: InstallationDisclaimer,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "installation-disclaimer" */ './views/SetupWizard/InstallationDisclaimer'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
@@ -571,7 +542,8 @@ const routesMaintenance = [
|
||||
{
|
||||
name: 'SubscriptionService',
|
||||
path: '/setup-wizard/subscription-service',
|
||||
component: SubscriptionService,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "subscription-service" */ './views/SetupWizard/SubscriptionService'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
@@ -579,7 +551,8 @@ const routesMaintenance = [
|
||||
{
|
||||
name: 'StripeCredentials',
|
||||
path: '/setup-wizard/stripe-credentials',
|
||||
component: StripeCredentials,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "stripe-credentials" */ './views/SetupWizard/StripeCredentials'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
@@ -587,7 +560,8 @@ const routesMaintenance = [
|
||||
{
|
||||
name: 'BillingsDetail',
|
||||
path: '/setup-wizard/stripe-billings',
|
||||
component: BillingsDetail,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "billings-detail" */ './views/SetupWizard/BillingsDetail'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
@@ -595,7 +569,8 @@ const routesMaintenance = [
|
||||
{
|
||||
name: 'SubscriptionPlans',
|
||||
path: '/setup-wizard/stripe-plans',
|
||||
component: SubscriptionPlans,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "subscription-plans" */ './views/SetupWizard/SubscriptionPlans'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
@@ -603,7 +578,8 @@ const routesMaintenance = [
|
||||
{
|
||||
name: 'EnvironmentSetup',
|
||||
path: '/setup-wizard/environment-setup',
|
||||
component: EnvironmentSetup,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "environment-setup" */ './views/SetupWizard/EnvironmentSetup'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
@@ -611,7 +587,8 @@ const routesMaintenance = [
|
||||
{
|
||||
name: 'AppSetup',
|
||||
path: '/setup-wizard/app-setup',
|
||||
component: AppSetup,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "app-setup" */ './views/SetupWizard/AppSetup'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
@@ -619,7 +596,8 @@ const routesMaintenance = [
|
||||
{
|
||||
name: 'AdminAccount',
|
||||
path: '/setup-wizard/admin-setup',
|
||||
component: AdminAccount,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "admin-account" */ './views/SetupWizard/AdminAccount'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
@@ -631,7 +609,8 @@ const routesIndex = [
|
||||
{
|
||||
name: 'SaaSLandingPage',
|
||||
path: '/',
|
||||
component: SaaSLandingPage,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "landing-page" */ './views/index/SaaSLandingPage'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
@@ -639,7 +618,8 @@ const routesIndex = [
|
||||
{
|
||||
name: 'DynamicPage',
|
||||
path: '/page/:slug',
|
||||
component: DynamicPage,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "dynamic-page" */ './views/Index/DynamicPage'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
@@ -647,7 +627,8 @@ const routesIndex = [
|
||||
{
|
||||
name: 'ContactUs',
|
||||
path: '/contact-us',
|
||||
component: ContactUs,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "contact-us" */ './views/Index/ContactUs'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
|
||||
2
resources/js/store/modules/userAuth.js
vendored
2
resources/js/store/modules/userAuth.js
vendored
@@ -26,7 +26,7 @@ const actions = {
|
||||
if ([401, 403].includes(error.response.status)) {
|
||||
|
||||
commit('SET_AUTHORIZED', false)
|
||||
router.push({name: 'SignIn'})
|
||||
//router.push({name: 'SignIn'})
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user