mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-20 19:57:44 +02:00
Set up global immutable app properties
This commit is contained in:
parent
e393ca1ea0
commit
75cbb0e1ab
9
resources/js_vue3/app.js
vendored
9
resources/js_vue3/app.js
vendored
@ -9,6 +9,15 @@ import Notifications from '@kyvg/vue3-notification'
|
||||
|
||||
const app = createApp(App)
|
||||
|
||||
// Immutable app properties provided by the laravel blade view
|
||||
app.config.globalProperties.$2fauth = {
|
||||
config: window.appConfig,
|
||||
version: window.appVersion,
|
||||
isDemoApp: window.isDemoApp,
|
||||
isTestingApp: window.isTestingApp,
|
||||
langs: window.appLocales
|
||||
}
|
||||
|
||||
// app.use(createPinia())
|
||||
app.use(router)
|
||||
app.use(Notifications)
|
||||
|
Loading…
x
Reference in New Issue
Block a user