2018-03-07 14:28:48 +01:00
|
|
|
<template>
|
2018-04-13 02:09:51 +02:00
|
|
|
<div id="app" :style="theme">
|
2018-03-07 14:28:48 +01:00
|
|
|
<router-view></router-view>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2018-04-13 02:09:51 +02:00
|
|
|
import { mapState } from 'vuex'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'Whalebird',
|
|
|
|
computed: {
|
|
|
|
...mapState({
|
|
|
|
theme: (state) => {
|
|
|
|
return {
|
|
|
|
'--theme-background-color': state.App.theme.background_color,
|
|
|
|
'--theme-primary-color': state.App.theme.primary_color
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
created () {
|
|
|
|
this.$store.dispatch('App/watchShortcutsEvents')
|
|
|
|
},
|
|
|
|
destroyed () {
|
|
|
|
this.$store.dispatch('App/removeShortcutsEvents')
|
2018-03-07 14:28:48 +01:00
|
|
|
}
|
2018-04-13 02:09:51 +02:00
|
|
|
}
|
2018-03-07 14:28:48 +01:00
|
|
|
</script>
|
|
|
|
|
2018-03-30 13:01:32 +02:00
|
|
|
<style lang="scss">
|
2018-04-01 05:10:54 +02:00
|
|
|
body { font-family: 'Noto Sans', sans-serif; }
|
|
|
|
|
2018-04-02 16:06:15 +02:00
|
|
|
html, body, #app {
|
2018-04-13 02:09:51 +02:00
|
|
|
--theme-background-color: #ffffff;
|
|
|
|
--theme-primary-color: #303133;
|
|
|
|
background-color: var(--theme-background-color);
|
|
|
|
color: var(--theme-primary-color);
|
2018-04-02 16:06:15 +02:00
|
|
|
}
|
|
|
|
|
2018-04-01 05:10:54 +02:00
|
|
|
html, body, #app, #global_header {
|
|
|
|
height: 100%;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
margin: 8px 0;
|
|
|
|
}
|
|
|
|
|
2018-03-30 13:01:32 +02:00
|
|
|
.clearfix:after {
|
|
|
|
content:" ";
|
|
|
|
display:block;
|
|
|
|
clear:both;
|
|
|
|
}
|
2018-03-07 14:28:48 +01:00
|
|
|
</style>
|