4
2
Fork 0
app/src/App.vue

57 lines
1008 B
Vue
Raw Normal View History

2020-10-23 21:50:02 +00:00
<template>
2020-10-24 00:34:41 +00:00
<div>
<navbar/>
<div class="uk-container">
<options/>
</div>
</div>
2020-10-23 21:50:02 +00:00
</template>
<script>
2020-10-24 00:34:41 +00:00
// import _ from 'lodash';
2020-10-23 22:21:35 +00:00
import UIkit from 'uikit';
import Icons from 'uikit/dist/js/uikit-icons';
2020-10-23 21:50:02 +00:00
2020-10-24 00:34:41 +00:00
import navbar from './components/NavBar.vue';
import options from './components/Options.vue';
2020-10-23 22:21:35 +00:00
UIkit.use(Icons);
2020-10-23 21:50:02 +00:00
export default {
name: 'App',
components: {
2020-10-24 00:34:41 +00:00
navbar,
options
},
created(){
const userSettings = localStorage.getItem('settings');
if (userSettings) {
const settings = JSON.parse(userSettings);
this.$store.commit('set_settings', settings);
}
}
2020-10-23 21:50:02 +00:00
}
</script>
2020-10-23 22:21:35 +00:00
<style lang="less">
@import "../node_modules/uikit/src/less/uikit.less";
2020-10-23 21:50:02 +00:00
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
2020-10-24 00:34:41 +00:00
// text-align: center;
2020-10-23 21:50:02 +00:00
color: #2c3e50;
2020-10-26 18:59:12 +00:00
// margin-top: 60px;
2020-10-23 21:50:02 +00:00
}
2020-10-26 21:09:28 +00:00
.disabled {
cursor: not-allowed;
color: gray
}
.disabled:hover {
color:gray
}
2020-10-23 21:50:02 +00:00
</style>