App.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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. <div v-if="this.$root.isTestingApp" class="demo has-background-warning has-text-centered is-size-7-mobile">
  8. {{ $t('commons.testing_do_not_post_sensitive_data') }}
  9. </div>
  10. <notifications id="vueNotification" role="alert" width="100%" position="top" :duration="4000" :speed="0" :max="1" classes="notification is-radiusless" />
  11. <main class="main-section">
  12. <router-view></router-view>
  13. </main>
  14. </div>
  15. </template>
  16. <script>
  17. export default {
  18. name: 'App',
  19. data(){
  20. return {
  21. }
  22. },
  23. computed: {
  24. kickInactiveUser: function () {
  25. return parseInt(this.$root.userPreferences.kickUserAfter) > 0 && this.$route.meta.requiresAuth
  26. }
  27. }
  28. }
  29. </script>