mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-02-03 03:59:49 +01:00
Restore Demo flags
This commit is contained in:
parent
3923ada6a0
commit
5e0ea50e76
@ -33,6 +33,7 @@ public function index()
|
|||||||
return view('landing')->with([
|
return view('landing')->with([
|
||||||
'appSettings' => $this->settingService->all()->toJson(),
|
'appSettings' => $this->settingService->all()->toJson(),
|
||||||
'lang' => App::currentLocale(),
|
'lang' => App::currentLocale(),
|
||||||
|
'isDemoApp' => config("2fauth.config.isDemoApp") ? 'true' : 'false',
|
||||||
'locales' => collect(config("2fauth.locales"))->toJson(),
|
'locales' => collect(config("2fauth.locales"))->toJson(),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
3
resources/js/app.js
vendored
3
resources/js/app.js
vendored
@ -15,7 +15,8 @@ Vue.use(Notifications)
|
|||||||
const app = new Vue({
|
const app = new Vue({
|
||||||
el: '#app',
|
el: '#app',
|
||||||
data: {
|
data: {
|
||||||
appSettings: window.appSettings
|
appSettings: window.appSettings,
|
||||||
|
isDemoApp: window.isDemoApp
|
||||||
},
|
},
|
||||||
i18n,
|
i18n,
|
||||||
router,
|
router,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<kicker v-if="kickInactiveUser"></kicker>
|
<kicker v-if="kickInactiveUser"></kicker>
|
||||||
<div v-if="$root.appSettings.isDemoApp" class="demo has-background-warning has-text-centered is-size-7-mobile">
|
<div v-if="this.$root.isDemoApp" class="demo has-background-warning has-text-centered is-size-7-mobile">
|
||||||
{{ $t('commons.demo_do_not_post_sensitive_data') }}
|
{{ $t('commons.demo_do_not_post_sensitive_data') }}
|
||||||
</div>
|
</div>
|
||||||
<notifications width="100%" position="top" :duration="4000" :speed="0" :max="1" classes="notification is-radiusless" />
|
<notifications width="100%" position="top" :duration="4000" :speed="0" :max="1" classes="notification is-radiusless" />
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
data(){
|
data(){
|
||||||
return {
|
return {
|
||||||
username: null,
|
username: null,
|
||||||
isDemo: this.$root.appSettings.isDemoApp,
|
isDemo: this.$root.isDemoApp,
|
||||||
form: new Form({
|
form: new Form({
|
||||||
email: '',
|
email: '',
|
||||||
password: ''
|
password: ''
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var appSettings = {!! $appSettings !!};
|
var appSettings = {!! $appSettings !!};
|
||||||
var appVersion = '{{ config("2fauth.version") }}';
|
var appVersion = '{{ config("2fauth.version") }}';
|
||||||
|
var isDemoApp = {!! $isDemoApp !!};
|
||||||
var appLocales = {!! $locales !!};
|
var appLocales = {!! $locales !!};
|
||||||
</script>
|
</script>
|
||||||
<script src="{{ mix('js/manifest.js') }}"></script>
|
<script src="{{ mix('js/manifest.js') }}"></script>
|
||||||
|
Loading…
Reference in New Issue
Block a user