2019-05-28 17:29:15 +02:00
|
|
|
<template>
|
2020-03-18 15:04:34 +01:00
|
|
|
<div>
|
2020-10-08 15:38:36 +02:00
|
|
|
<kicker v-if="kickInactiveUser"></kicker>
|
2020-03-23 17:25:53 +01:00
|
|
|
<div v-if="$root.appSettings.isDemoApp" class="demo has-background-warning has-text-centered is-size-7-mobile">
|
2020-03-18 15:04:34 +01:00
|
|
|
{{ $t('commons.demo_do_not_post_sensitive_data') }}
|
|
|
|
</div>
|
2022-03-24 15:01:21 +01:00
|
|
|
<notifications width="100%" position="top" :duration="4000" :speed="0" :max="1" classes="notification is-radiusless" />
|
2020-03-18 15:04:34 +01:00
|
|
|
<main class="main-section">
|
|
|
|
<router-view></router-view>
|
|
|
|
</main>
|
|
|
|
</div>
|
2019-05-28 17:29:15 +02:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
2019-06-24 00:29:14 +02:00
|
|
|
name: 'App',
|
2020-01-07 11:46:18 +01:00
|
|
|
|
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.appSettings.kickUserAfter) > 0 && this.$route.meta.requiresAuth
|
|
|
|
}
|
|
|
|
|
2019-05-28 17:29:15 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|