App.vue 951 Bytes
Newer Older
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
<template>
  <div id="app">
    <app-header v-bind:modules="modules" v-bind:activeModule="activeModule" v-bind:user="user"></app-header>
    <div class="content-width">
      <router-view/>
    </div>
    <app-footer></app-footer>
  </div>
</template>

<script>
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': [
        { slug: '', title: 'Home' },
        { slug: 'shows', title: 'Sendungen verwalten' },
26
        { slug: 'files', title: 'Dateien und Playlists' }
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
      ],
      'activeModule': {
        route: '/'
      },
      'user': {
        name: 'jackie',
        logged_in: true
      }
    }
  }
}
</script>

<style>
#app {
  text-align: center;
  color: #2c3e50;
}
#app .content-width {
  margin: auto;
  width: 920px;
  max-width: 920px;
}
</style>