summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/MyModule.vue
blob: 67aa859b793b719b8342fb23a415bae98fdb52f3 (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
<i18n>
{
  "en": {
    "hello": "hello world!",
    "test": {
      "abc": "abc"
    }
  },
  "de": {
    "hello": "Hallo Welt!",
    "test": {
      "abc": "abc"
    }
  }
}
</i18n>

<template>
  <div class="my-module">
  </div>
</template>

<script>

export default {
  name: 'MyModule',
  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>

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

</style>