2FAuth/resources/js/components/App.vue

42 lines
1.3 KiB
Vue
Raw Normal View History

2019-05-28 17:29:15 +02:00
<template>
<div>
2020-10-08 15:38:36 +02:00
<kicker v-if="kickInactiveUser"></kicker>
2022-05-10 08:57:45 +02:00
<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') }}
</div>
<div v-if="this.$root.isTestingApp" class="demo has-background-warning has-text-centered is-size-7-mobile">
{{ $t('commons.testing_do_not_post_sensitive_data') }}
</div>
<!-- Loading spinner -->
<spinner :active="$root.spinner.active" :message="$root.spinner.message"/>
2022-10-12 11:30:20 +02:00
<notifications id="vueNotification" role="alert" width="100%" position="top" :duration="4000" :speed="0" :max="1" classes="notification is-radiusless" />
<main class="main-section">
<router-view></router-view>
</main>
</div>
2019-05-28 17:29:15 +02:00
</template>
<script>
import Spinner from "./Spinner.vue";
2019-05-28 17:29:15 +02:00
export default {
name: 'App',
components: {
Spinner
},
2019-05-28 17:29:15 +02:00
data(){
return {
2020-01-06 21:05:03 +01:00
}
2020-10-08 15:38:36 +02:00
},
computed: {
kickInactiveUser: function () {
return parseInt(this.$root.userPreferences.kickUserAfter) > 0 && this.$route.meta.requiresAuth
2020-10-08 15:38:36 +02:00
}
2019-05-28 17:29:15 +02:00
}
}
</script>