(lint) + legacy cleanup

This commit is contained in:
Jörn-Michael Miehe 2019-05-14 19:54:32 +02:00
parent 22dd25b070
commit fc0228bd1f
3 changed files with 6 additions and 50 deletions

View file

@ -31,7 +31,6 @@
</template> </template>
<script> <script>
export default { export default {
name: 'Deck', name: 'Deck',
@ -41,13 +40,15 @@ export default {
computed: { computed: {
forwards() { forwards() {
return this.deck.cards.filter((card) => card.ffdecks.type === 'Forward') return this.deck.cards.filter(card => card.ffdecks.type === 'Forward')
}, },
backups() { backups() {
return this.deck.cards.filter((card) => card.ffdecks.type === 'Backup') return this.deck.cards.filter(card => card.ffdecks.type === 'Backup')
}, },
rest() { rest() {
return this.deck.cards.filter((card) => (card.ffdecks.type != 'Forward') && (card.ffdecks.type != 'Backup')) return this.deck.cards.filter(
card => card.ffdecks.type != 'Forward' && card.ffdecks.type != 'Backup'
)
} }
} }
} }

View file

@ -1,6 +1,6 @@
<template> <template>
<v-expansion-panel v-if="value"> <v-expansion-panel v-if="value">
<Deck v-for="deck in decks" :deck="deck" :key="deck.id"/> <Deck v-for="deck in decks" :deck="deck" :key="deck.id" />
</v-expansion-panel> </v-expansion-panel>
</template> </template>

View file

@ -1,45 +0,0 @@
doctype html
html
head
title Crafty Things
script(src='/usercp.bundle.js')
body
header.jumbotron.jumbotron-fluid.py-4.bg-primary.text-light.text-center
div.container
h1 Hello World!
h2 App under development, please don't submit any valuable data!
div.container.bg-light
h3 Yavook!FFTCG
div#alert-area
div.row
div.col-md-8
h4 My Decks
ul.list-group#my-decks
li.list-group-item
div.row
div.col-3.btn-group(role="group")
button.btn.btn-secondary(data-toggle="collapse" data-target="#modDeck0") Edit
button.btn.btn-secondary#delDeck0 Delete
div.col-9.align-self-center item1
form.collapse.pt-2#modDeck0(name="modDeck0")
div.form-group
label(for="deck") Decklist:
textarea.form-control.form-control-sm.text-monospace(name="deck" rows="20" required)
div.form-group
button.btn.btn-primary.w-100(type="submit") Confirm
p Hello
div.col-md-4
h4 New Deck
form(name="addDeck")
div.form-group
label(for="deck") Paste decklist:
textarea.form-control.form-control-sm.text-monospace(name="deck" rows="20" required)
div.form-group
button.btn.btn-primary.w-100(type="submit") Add