mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-05-05 21:45:58 +00:00
prefilling user refactoring
This commit is contained in:
@@ -5,6 +5,7 @@ return [
|
|||||||
|
|
||||||
'is_demo' => env('APP_DEMO', false),
|
'is_demo' => env('APP_DEMO', false),
|
||||||
|
|
||||||
|
'is_prefilled_users' => env('IS_PREFILLED_USERS', false),
|
||||||
'is_setup_wizard_demo' => env('IS_SETUP_WIZARD_DEMO', false),
|
'is_setup_wizard_demo' => env('IS_SETUP_WIZARD_DEMO', false),
|
||||||
'is_setup_wizard_debug' => env('IS_SETUP_WIZARD_DEBUG', false),
|
'is_setup_wizard_debug' => env('IS_SETUP_WIZARD_DEBUG', false),
|
||||||
'is_admin_vuefilemanager_bar' => env('IS_ADMIN_VUEFILEMANAGER_BAR', true),
|
'is_admin_vuefilemanager_bar' => env('IS_ADMIN_VUEFILEMANAGER_BAR', true),
|
||||||
|
|||||||
@@ -459,7 +459,7 @@ export default {
|
|||||||
this.$scrollTop()
|
this.$scrollTop()
|
||||||
this.$store.commit('PROCESSING_POPUP', undefined)
|
this.$store.commit('PROCESSING_POPUP', undefined)
|
||||||
|
|
||||||
if (this.config.isDemo || this.config.isDev) {
|
if (this.config.isPrefilledUsers) {
|
||||||
this.loginEmail = 'howdy@hi5ve.digital'
|
this.loginEmail = 'howdy@hi5ve.digital'
|
||||||
this.loginPassword = 'vuefilemanager'
|
this.loginPassword = 'vuefilemanager'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -278,7 +278,7 @@ export default {
|
|||||||
this.$router.push({name: 'Files'})
|
this.$router.push({name: 'Files'})
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.config.isDemo || this.config.isDev) {
|
if (this.config.isPrefilledUsers) {
|
||||||
this.register = {
|
this.register = {
|
||||||
name: 'John Doe',
|
name: 'John Doe',
|
||||||
email: 'demo-' + Math.floor(Math.random() * 100000) + '@doe.com',
|
email: 'demo-' + Math.floor(Math.random() * 100000) + '@doe.com',
|
||||||
|
|||||||
@@ -85,6 +85,7 @@
|
|||||||
statusCheck: {!! $config->debug->statusCheck !!},
|
statusCheck: {!! $config->debug->statusCheck !!},
|
||||||
isSetupWizardDemo: {{ $config->debug->isSetupWizardDemo }},
|
isSetupWizardDemo: {{ $config->debug->isSetupWizardDemo }},
|
||||||
isSetupWizardDebug: {{ $config->debug->isSetupWizardDebug }},
|
isSetupWizardDebug: {{ $config->debug->isSetupWizardDebug }},
|
||||||
|
isPrefilledUsers: {{ $config->debug->isPrefilledUsers }},
|
||||||
|
|
||||||
// States
|
// States
|
||||||
isEmptyPlans: {{ $config->payments->isEmptyPlans }},
|
isEmptyPlans: {{ $config->payments->isEmptyPlans }},
|
||||||
|
|||||||
@@ -107,6 +107,7 @@ class GetConfigAction
|
|||||||
'isSetupWizardDemo' => config('vuefilemanager.is_setup_wizard_demo') ? 1 : 0,
|
'isSetupWizardDemo' => config('vuefilemanager.is_setup_wizard_demo') ? 1 : 0,
|
||||||
'isSetupWizardDebug' => config('vuefilemanager.is_setup_wizard_debug') ? 1 : 0,
|
'isSetupWizardDebug' => config('vuefilemanager.is_setup_wizard_debug') ? 1 : 0,
|
||||||
'isAdminVueFileManagerBar' => config('vuefilemanager.is_admin_vuefilemanager_bar', 1) ? 1 : 0,
|
'isAdminVueFileManagerBar' => config('vuefilemanager.is_admin_vuefilemanager_bar', 1) ? 1 : 0,
|
||||||
|
'isPrefilledUsers' => config('vuefilemanager.is_prefilled_users') ? 1 : 0,
|
||||||
'statusCheck' => json_encode($serverInfo) ?? 'undefined',
|
'statusCheck' => json_encode($serverInfo) ?? 'undefined',
|
||||||
],
|
],
|
||||||
'broadcasting' => [
|
'broadcasting' => [
|
||||||
|
|||||||
Reference in New Issue
Block a user