App.vue 1.1 KB
Newer Older
1
2
3
<template>
  <div id="app">
    <app-header v-bind:modules="modules" v-bind:activeModule="activeModule" v-bind:user="user"></app-header>
4
    <router-view/>
5
6
7
8
9
    <app-footer></app-footer>
  </div>
</template>

<script>
10
11
import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap-vue/dist/bootstrap-vue.css'
12
13
14
15
16
17
18
19
20
21
22
23
import header from './components/Header.vue'
import footer from './components/Footer.vue'

export default {
  name: 'app',
  components: {
    'app-header': header,
    'app-footer': footer
  },
  data () {
    return {
      'modules': [
24
        { slug: 'home', title: 'Home' },
25
        { slug: 'shows', title: 'Sendungen verwalten' },
26
27
28
        { slug: 'files', title: 'Dateien und Playlists' },
        { slug: 'settings', title: 'Settings' },
        { slug: 'credits', title: 'Credits' }
29
30
      ],
      'activeModule': {
31
        route: 'home'
32
33
34
      },
      'user': {
        name: 'jackie',
35
        logged_in: true
36
37
38
39
40
41
      }
    }
  }
}
</script>

42
<style src="./styles.css" lang="css"></style>
43
44
<style>
#app {
45
  color: #2e3436;
46
}
47
/*
48
49
50
51
52
#app .content-width {
  margin: auto;
  width: 920px;
  max-width: 920px;
}
53
*/
54
</style>