-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Guillaume Chau
committed
Mar 7, 2018
1 parent
ee59f54
commit 239c4d4
Showing
31 changed files
with
792 additions
and
148 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,40 @@ | ||
<template> | ||
<div id="app"> | ||
<router-view/> | ||
<div id="app" class="app"> | ||
<div class="content"> | ||
<router-view/> | ||
</div> | ||
|
||
<StatusBar/> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import StatusBar from './components/StatusBar' | ||
export default { | ||
components: { | ||
StatusBar | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="stylus"> | ||
@import "~@vue/ui/dist/vue-ui.css" | ||
@import "~@/style/main" | ||
</style> | ||
|
||
<style lang="stylus" scoped> | ||
@import "~@/style/imports" | ||
.app | ||
display grid | ||
grid-template-columns 1fr | ||
grid-template-rows auto 28px | ||
grid-template-areas "content" "status" | ||
.content | ||
grid-area content | ||
.status-bar | ||
grid-area status | ||
</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
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<template> | ||
<div | ||
class="list-item-info" | ||
:class="{ | ||
selected | ||
}" | ||
> | ||
<div class="name">{{ name }}</div> | ||
<div v-if="description || link" class="description"> | ||
{{ description }} | ||
<a | ||
v-if="link" | ||
:href="link" | ||
target="_blank" | ||
@click.stop="() => {}" | ||
> | ||
More info | ||
</a> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
description: { | ||
type: String, | ||
default: '' | ||
}, | ||
link: { | ||
type: String, | ||
default: null | ||
}, | ||
name: { | ||
type: String, | ||
required: true | ||
}, | ||
selected: { | ||
type: Boolean, | ||
default: false | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="stylus" scoped> | ||
@import "~@/style/imports" | ||
.list-item-info | ||
v-box() | ||
align-items stretch | ||
.description | ||
color lighten($vue-color-dark, 40%) | ||
&.selected | ||
.name | ||
color $vue-color-primary | ||
</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
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<script> | ||
import ListItemInfo from './ListItemInfo.vue' | ||
export default { | ||
components: { | ||
ListItemInfo | ||
}, | ||
props: { | ||
prompt: { | ||
type: Object, | ||
required: true | ||
} | ||
}, | ||
methods: { | ||
value (value) { | ||
return JSON.parse(value) | ||
}, | ||
answer (value) { | ||
this.$emit('answer', value) | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="stylus"> | ||
@import "~@/style/imports" | ||
.prompt | ||
list-item() | ||
.prompt-content | ||
display grid | ||
grid-template-columns auto 300px | ||
grid-template-rows auto | ||
grid-template-areas "info input" | ||
padding $padding-item | ||
> .list-item-info | ||
grid-area info | ||
> .prompt-input | ||
grid-area input | ||
v-box() | ||
align-items stretch | ||
justify-content center | ||
</style> |
Oops, something went wrong.