generated from staticwebdev/vue-basic
-
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.
Added new work item type picker modal. Basic task form working. Added validation. Added fix for vuex store.
- Loading branch information
1 parent
95b384d
commit 4daa58e
Showing
12 changed files
with
321 additions
and
29 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,59 @@ | ||
<template> | ||
<component :is="to ? 'router-link' : 'div'" :to="to" class="icon-tile" @click.native="$emit('click')"> | ||
<v-icon class="tile-icon">{{ icon }}</v-icon> | ||
<div class="icon-label"> | ||
<span class="label-text">{{ label }}</span> | ||
</div> | ||
</component> | ||
</template> | ||
<script> | ||
export default { | ||
props: { | ||
label: { | ||
type: String, | ||
required: true | ||
}, | ||
icon: { | ||
type: String, | ||
required: true | ||
}, | ||
to: { | ||
type: [Object, String], | ||
required: false, | ||
default: null | ||
} | ||
} | ||
} | ||
</script> | ||
<style scoped lang="scss"> | ||
@import "@/css/variables"; | ||
.icon-tile { | ||
display: inline-flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
height: 150px; | ||
width: 150px; | ||
border: 1px solid $color-grey-light; | ||
border-radius: 4px; | ||
margin: 0 4px 4px 4px; | ||
cursor: pointer; | ||
text-decoration: none; | ||
& > .tile-icon { | ||
font-size: 4rem; | ||
color: $color-primary; | ||
} | ||
& > .icon-label { | ||
margin-top: 10px; | ||
& > .label-text { | ||
font-size: 1.2rem; | ||
font-weight: bold; | ||
color: $color-grey-dark; | ||
} | ||
} | ||
} | ||
</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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<template> | ||
<div class="tile-container"> | ||
<slot></slot> | ||
</div> | ||
</template> | ||
<style scoped lang="scss"> | ||
.tile-container { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
align-items: center; | ||
flex-wrap: wrap; | ||
} | ||
</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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import IconTile from "./IconTile"; | ||
import TileContainer from "./TileContainer" | ||
|
||
export { | ||
IconTile, | ||
TileContainer | ||
} |
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
Oops, something went wrong.