Compare commits
No commits in common. "296ab79bd6ee7dcf77f33e85d62408ab10e158a0" and "4c32aaf1b5ceb16ca2524a0b8b42cf5a795d1d53" have entirely different histories.
296ab79bd6
...
4c32aaf1b5
2 changed files with 7 additions and 41 deletions
|
|
@ -2,29 +2,10 @@
|
||||||
<v-list-tile avatar>
|
<v-list-tile avatar>
|
||||||
<v-tooltip @input="booted = true" bottom>
|
<v-tooltip @input="booted = true" bottom>
|
||||||
<template v-slot:activator="{ on }">
|
<template v-slot:activator="{ on }">
|
||||||
<v-list-tile-avatar v-on="on">
|
<v-list-tile-avatar :color="color" v-on="on">
|
||||||
<svg
|
<span class="headline font-weight-bold white--text">
|
||||||
x="0px"
|
{{ dbentry.cost }}
|
||||||
y="0px"
|
</span>
|
||||||
width="16px"
|
|
||||||
height="30px"
|
|
||||||
viewBox="0 0 16 30"
|
|
||||||
style="enable-background:new 0 0 16 30;"
|
|
||||||
xml:space="preserve"
|
|
||||||
>
|
|
||||||
<polygon points="0,5 8,0 16,5 16,25 8,30 0,25" :fill="color" />
|
|
||||||
<text
|
|
||||||
x="2.5"
|
|
||||||
y="22"
|
|
||||||
font-size="20"
|
|
||||||
font-family="sans-serif"
|
|
||||||
fill="white"
|
|
||||||
font-weight="bold"
|
|
||||||
class="ng-binding"
|
|
||||||
>
|
|
||||||
{{ dbentry.cost }}
|
|
||||||
</text>
|
|
||||||
</svg>
|
|
||||||
</v-list-tile-avatar>
|
</v-list-tile-avatar>
|
||||||
</template>
|
</template>
|
||||||
<v-img
|
<v-img
|
||||||
|
|
|
||||||
|
|
@ -4,12 +4,12 @@
|
||||||
<span class="subheading">{{ deck.name }}</span>
|
<span class="subheading">{{ deck.name }}</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<v-alert v-if="!editing" :value="deck.note" type="info">
|
<v-alert :value="deck.note" type="info">
|
||||||
{{ deck.note }}
|
{{ deck.note }}
|
||||||
</v-alert>
|
</v-alert>
|
||||||
|
|
||||||
<v-container style="position: relative" grid-list-md fluid>
|
<v-container grid-list-md fluid>
|
||||||
<v-layout v-if="!editing" row wrap>
|
<v-layout row wrap>
|
||||||
<v-flex v-for="part in deck_parts" :key="part.heading" xs12 sm6 md4>
|
<v-flex v-for="part in deck_parts" :key="part.heading" xs12 sm6 md4>
|
||||||
<v-card>
|
<v-card>
|
||||||
<v-card-title>{{ part.count }} {{ part.heading }}</v-card-title>
|
<v-card-title>{{ part.count }} {{ part.heading }}</v-card-title>
|
||||||
|
|
@ -24,18 +24,7 @@
|
||||||
</v-list>
|
</v-list>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-flex>
|
</v-flex>
|
||||||
|
|
||||||
<v-btn fab absolute bottom right @click.native="editing = true">
|
|
||||||
<v-icon>edit</v-icon>
|
|
||||||
</v-btn>
|
|
||||||
</v-layout>
|
</v-layout>
|
||||||
<v-form v-if="editing" lazy-validation>
|
|
||||||
<v-textarea
|
|
||||||
label="Edit Deck"
|
|
||||||
value="The Woodman set to work at once, and so sharp was his axe that the tree was soon chopped nearly through."
|
|
||||||
hint="Paste a deck list"
|
|
||||||
></v-textarea>
|
|
||||||
</v-form>
|
|
||||||
</v-container>
|
</v-container>
|
||||||
</v-expansion-panel-content>
|
</v-expansion-panel-content>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -54,10 +43,6 @@ export default {
|
||||||
Card
|
Card
|
||||||
},
|
},
|
||||||
|
|
||||||
data: () => ({
|
|
||||||
editing: false
|
|
||||||
}),
|
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
deck_parts() {
|
deck_parts() {
|
||||||
let retval = {
|
let retval = {
|
||||||
|
|
|
||||||
Reference in a new issue