mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
env variables refactoring
This commit is contained in:
@@ -5,6 +5,10 @@ return [
|
||||
|
||||
'is_demo' => env('APP_DEMO', false),
|
||||
|
||||
'is_setup_wizard_demo' => env('IS_SETUP_WIZARD_DEMO', false),
|
||||
'is_setup_wizard_debug' => env('IS_SETUP_WIZARD_DEBUG', false),
|
||||
'is_admin_vuefilemanager_bar' => env('IS_ADMIN_VUEFILEMANAGER_BAR', true),
|
||||
|
||||
// Define size of chunk uploaded by MB.
|
||||
// E.g. integer 128 means chunk size will be 128 MB.
|
||||
'chunk_size' => env('CHUNK_SIZE', '128'),
|
||||
|
||||
@@ -162,6 +162,9 @@ export default {
|
||||
type: 'success',
|
||||
message: this.$t('Your payment was successfully received.'),
|
||||
})
|
||||
|
||||
// todo: temporary reload function
|
||||
setTimeout(() => document.location.reload(), 500)
|
||||
},
|
||||
paystackClosed() {
|
||||
// ...
|
||||
|
||||
@@ -142,6 +142,7 @@ export default {
|
||||
})
|
||||
|
||||
// TODO: L9 - load credit card after was stored in database
|
||||
setTimeout(() => document.location.reload(), 500)
|
||||
}
|
||||
|
||||
this.stripe.storingStripePaymentMethod = false
|
||||
@@ -195,6 +196,6 @@ export default {
|
||||
this.isCreditCardForm = !this.isCreditCardForm
|
||||
this.stripeInit()
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -104,6 +104,6 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['config']),
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
}
|
||||
@endphp
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!DOCTYPE html>
|
||||
<html style="min-height: 100%" lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
|
||||
<head>
|
||||
@@ -104,8 +104,8 @@
|
||||
|
||||
installation: '{{ $installation ?? 'initial' }}',
|
||||
statusCheck: {!! json_encode($status_check) ?? 'undefined' !!},
|
||||
isSetupWizardDemo: {{ env('IS_SETUP_WIZARD_DEMO') ? 1 : 0 }},
|
||||
isSetupWizardDebug: {{ env('IS_SETUP_WIZARD_DEBUG') ? 1 : 0 }},
|
||||
isSetupWizardDemo: {{ config('vuefilemanager.is_setup_wizard_demo') ? 1 : 0 }},
|
||||
isSetupWizardDebug: {{ config('vuefilemanager.is_setup_wizard_debug') ? 1 : 0 }},
|
||||
|
||||
// States
|
||||
isEmptyPlans: {{ $isEmptyPlans ? 1 : 0 }},
|
||||
@@ -113,7 +113,7 @@
|
||||
isEmptySubscriptions: {{ $isEmptySubscriptions ? 1 : 0 }},
|
||||
|
||||
// Hidden set ups
|
||||
isAdminVueFileManagerBar: {{ env('IS_ADMIN_VUEFILEMANAGER_BAR', 1) ? 1 : 0 }},
|
||||
isAdminVueFileManagerBar: {{ config('vuefilemanager.is_admin_vuefilemanager_bar', 1) ? 1 : 0 }},
|
||||
|
||||
// Metered
|
||||
allowed_registration_bonus: {{ $settings->allowed_registration_bonus ?? 0 }},
|
||||
@@ -127,34 +127,34 @@
|
||||
|
||||
// PayPal
|
||||
isPayPal: {{ $settings->allowed_paypal ?? 0 }},
|
||||
isPayPalLive: {{ env('PAYPAL_IS_LIVE') ? 1 : 0 }},
|
||||
paypal_client_id: '{{ env('PAYPAL_CLIENT_ID') }}',
|
||||
isPayPalLive: {{ config('subscription.credentials.paypal.is_live') ? 1 : 0 }},
|
||||
paypal_client_id: '{{ config('subscription.credentials.paypal.id') }}',
|
||||
paypal_payment_description: '{{ $settings->paypal_payment_description ?? '' }}',
|
||||
|
||||
// Paystack
|
||||
isPaystack: {{ $settings->allowed_paystack ?? 0 }},
|
||||
paystack_public_key: '{{ env('PAYSTACK_PUBLIC_KEY') }}',
|
||||
paystack_public_key: '{{ config('subscription.credentials.paystack.public_key') }}',
|
||||
paystack_payment_description: '{{ $settings->paystack_payment_description ?? '' }}',
|
||||
|
||||
// Stripe
|
||||
isStripe: {{ $settings->allowed_stripe ?? 0 }},
|
||||
stripe_public_key: '{{ env('STRIPE_PUBLIC_KEY') }}',
|
||||
stripe_public_key: '{{ config('subscription.credentials.stripe.public_key') }}',
|
||||
stripe_payment_description: '{{ $settings->stripe_payment_description ?? '' }}',
|
||||
|
||||
// ReCaptcha
|
||||
recaptcha_client_id: '{{ env('RECAPTCHA_CLIENT_ID') }}',
|
||||
recaptcha_client_id: '{{ config('services.recaptcha.client_id') }}',
|
||||
allowedRecaptcha: {{ $settings->allowed_recaptcha ?? 0 }},
|
||||
isRecaptchaConfigured: {{ env('RECAPTCHA_CLIENT_ID') ? 1 : 0 }},
|
||||
isRecaptchaConfigured: {{ config('services.recaptcha.client_id') ? 1 : 0 }},
|
||||
|
||||
// Social logins
|
||||
allowedFacebookLogin: {{ $settings->allowed_facebook_login ?? 0 }},
|
||||
isFacebookLoginConfigured: {{ env('FACEBOOK_CLIENT_ID') ? 1 : 0 }},
|
||||
isFacebookLoginConfigured: {{ config('services.facebook.client_id') ? 1 : 0 }},
|
||||
|
||||
allowedGoogleLogin: {{ $settings->allowed_google_login ?? 0 }},
|
||||
isGoogleLoginConfigured: {{ env('GOOGLE_CLIENT_ID') ? 1 : 0 }},
|
||||
isGoogleLoginConfigured: {{ config('services.google.client_id') ? 1 : 0 }},
|
||||
|
||||
allowedGithubLogin: {{ $settings->allowed_github_login ?? 0 }},
|
||||
isGithubLoginConfigured: {{ env('GITHUB_CLIENT_ID') ? 1 : 0 }},
|
||||
isGithubLoginConfigured: {{ config('services.github.client_id') ? 1 : 0 }},
|
||||
|
||||
// Adsense
|
||||
allowedAdsense: {{ $settings?->allowed_adsense ?? 0 }},
|
||||
@@ -173,7 +173,7 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
@if(env('APP_ENV') !== 'local')
|
||||
@if(config('app.env') !== 'local')
|
||||
|
||||
{{--Application production script--}}
|
||||
<script src="{{ asset('js/main.js') }}?v={{ get_version() }}"></script>
|
||||
|
||||
@@ -20,7 +20,7 @@ class ReCaptchaRules implements Rule
|
||||
'https://www.google.com/recaptcha/api/siteverify',
|
||||
[
|
||||
'form_params' => [
|
||||
'secret' => env('RECAPTCHA_CLIENT_SECRET', false),
|
||||
'secret' => config('services.recaptcha.client_secret'),
|
||||
'remoteip' => request()->getClientIp(),
|
||||
'response' => $value,
|
||||
],
|
||||
|
||||
@@ -245,7 +245,7 @@ if (! function_exists('get_storage')) {
|
||||
*/
|
||||
function get_storage()
|
||||
{
|
||||
return env('FILESYSTEM_DISK');
|
||||
return config('filesystems.default');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user