mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-24 01:03:35 +01:00
31 lines
835 B
Vue
31 lines
835 B
Vue
<template>
|
|
<div>
|
|
<kicker v-if="kickInactiveUser"></kicker>
|
|
<div v-if="$root.appSettings.isDemoApp" class="demo has-background-warning has-text-centered is-size-7-mobile">
|
|
{{ $t('commons.demo_do_not_post_sensitive_data') }}
|
|
</div>
|
|
<notifications width="100%" position="top" :duration="4000" :speed="0" :max="1" classes="notification" />
|
|
<main class="main-section">
|
|
<router-view></router-view>
|
|
</main>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'App',
|
|
|
|
data(){
|
|
return {
|
|
}
|
|
},
|
|
|
|
computed: {
|
|
|
|
kickInactiveUser: function () {
|
|
return parseInt(this.$root.appSettings.kickUserAfter) > 0 && this.$route.meta.requiresAuth
|
|
}
|
|
|
|
}
|
|
}
|
|
</script> |