-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9edaaf1
commit ba0e36b
Showing
20 changed files
with
199 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,14 @@ | ||
<template> | ||
<div id="app"> | ||
<div id="nav"> | ||
<router-link to="/">Home</router-link> | | ||
<router-link to="/about">About</router-link> | ||
</div> | ||
<router-view/> | ||
</div> | ||
<template lang="pug"> | ||
v-app | ||
v-content | ||
router-view | ||
|
||
</template> | ||
<style lang="stylus"> | ||
#app | ||
font-family 'Avenir', Helvetica, Arial, sans-serif | ||
-webkit-font-smoothing antialiased | ||
-moz-osx-font-smoothing grayscale | ||
text-align center | ||
color #2c3e50 | ||
|
||
#nav | ||
padding 30px | ||
a | ||
font-weight bold | ||
color #2c3e50 | ||
&.router-link-exact-active | ||
color #42b983 | ||
</style> | ||
<script lang="ts"> | ||
import {Component, Vue} from 'vue-property-decorator' | ||
@Component({}) | ||
export default class App extends Vue { | ||
} | ||
</script> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<template lang="pug"> | ||
v-container(grid-list-md text-xs-center) | ||
v-layout(row wrap v-for="num in reversed()") | ||
v-btn(depressed :color="num <= value && 'error' || ''" @click="click(num)") {{num}} | ||
</template> | ||
|
||
<script lang="ts"> | ||
import {Component, Prop, Vue} from 'vue-property-decorator' | ||
@Component | ||
export default class LampTower extends Vue { | ||
@Prop() | ||
private value!: number | ||
@Prop({default: 5}) | ||
private length!: number | ||
private reversed() { | ||
return [...Array(this.length).keys()].map((n) => n + 1).reverse() | ||
} | ||
private click(num: number) { | ||
this.$emit('input', num) | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped lang="stylus"> | ||
.v-btn | ||
margin 1px | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
import Vue from 'vue'; | ||
import App from './App.vue'; | ||
import router from './router'; | ||
import store from './store'; | ||
import Vue from 'vue' | ||
import './plugins/vuetify' | ||
import App from './App.vue' | ||
import router from './router' | ||
import store from './store' | ||
|
||
Vue.config.productionTip = false; | ||
Vue.config.productionTip = false | ||
|
||
new Vue({ | ||
router, | ||
store, | ||
render: (h) => h(App), | ||
}).$mount('#app'); | ||
}).$mount('#app') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import * as log4js from 'log4js' | ||
|
||
log4js.configure({ | ||
appenders: { | ||
system: {type: 'console'}, | ||
}, | ||
categories: { | ||
default: {appenders: ['system'], level: 'trace'}, | ||
}, | ||
}) | ||
|
||
export const logger = log4js.getLogger('trace') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import Vue from 'vue' | ||
import Vuetify from 'vuetify/lib' | ||
import 'vuetify/src/stylus/app.styl' | ||
|
||
Vue.use(Vuetify, { | ||
iconfont: 'md', | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
declare module '*.vue' { | ||
import Vue from 'vue'; | ||
export default Vue; | ||
import Vue from 'vue' | ||
export default Vue | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,10 @@ | ||
import Vue from 'vue'; | ||
import Vuex from 'vuex'; | ||
import Vue from 'vue' | ||
import Vuex from 'vuex' | ||
|
||
Vue.use(Vuex); | ||
Vue.use(Vuex) | ||
|
||
export default new Vuex.Store({ | ||
state: { | ||
|
||
}, | ||
mutations: { | ||
|
||
}, | ||
actions: { | ||
|
||
}, | ||
}); | ||
state: {}, | ||
mutations: {}, | ||
actions: {}, | ||
}) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.