App.vue 842 B

12345678910111213141516171819202122232425262728293031
  1. <template>
  2. <div>
  3. <kicker v-if="kickInactiveUser"></kicker>
  4. <div v-if="this.$root.isDemoApp" class="demo has-background-warning has-text-centered is-size-7-mobile">
  5. {{ $t('commons.demo_do_not_post_sensitive_data') }}
  6. </div>
  7. <notifications width="100%" position="top" :duration="4000" :speed="0" :max="1" classes="notification is-radiusless" />
  8. <main class="main-section">
  9. <router-view></router-view>
  10. </main>
  11. </div>
  12. </template>
  13. <script>
  14. export default {
  15. name: 'App',
  16. data(){
  17. return {
  18. }
  19. },
  20. computed: {
  21. kickInactiveUser: function () {
  22. return parseInt(this.$root.appSettings.kickUserAfter) > 0 && this.$route.meta.requiresAuth
  23. }
  24. }
  25. }
  26. </script>