App.vue 1.15 KB
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
<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': [
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
43
<style src="../node_modules/bootstrap/less/bootstrap.less" lang="less"></style>
<style src="./styles.css" lang="css"></style>
44
45
46
<style>
#app {
  text-align: center;
47
  color: #2e3436;
48
49
50
51
52
53
54
}
#app .content-width {
  margin: auto;
  width: 920px;
  max-width: 920px;
}
</style>