summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/YourModule.vue
blob: 8215c8d072d8df3b4135c81b0e9b617b5d14ea89 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<i18n>
{
  "en": {
    "hello": "hello world!",
    "test": {
      "abc": "abc"
    }
  },
  "de": {
    "hello": "Hallo Welt!",
    "test": {
      "abc": "abc"
    }
  }
}
</i18n>

<template>
  <div class="your-module">

  </div>
</template>

<script>

export default {
  name: 'YourModule',
  data () {
    return {
      msg: 'Welcome to Your Vue.js App'
    }
  },
  methods: {
    logout () {
      localStorage.removeItem('apiToken')
      this.$router.push('/login')
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

.your-module {
  display: flex;
  flex-direction: column;
  align-items: center;
}

</style>