2017-01-17 18:45:27 +00:00
|
|
|
<template lang="pug">
|
2017-02-15 11:49:57 +00:00
|
|
|
.ui.grid
|
2017-03-03 14:40:21 +00:00
|
|
|
.three.wide.column
|
|
|
|
|
.ui.left.icon.input
|
|
|
|
|
i.search.icon
|
|
|
|
|
input(type="text", :placeholder="$t('search')")
|
|
|
|
|
h3(v-once) {{ $t('filter') }}
|
|
|
|
|
|
|
|
|
|
.ui.form
|
|
|
|
|
.field
|
|
|
|
|
.ui.checkbox
|
2017-03-03 18:38:17 +00:00
|
|
|
input(type="checkbox")
|
2017-03-03 14:40:21 +00:00
|
|
|
label.label-primary(v-once) {{ $t('pets') }}
|
|
|
|
|
.field.nested-field
|
|
|
|
|
.ui.checkbox
|
2017-03-03 18:38:17 +00:00
|
|
|
input(type="checkbox")
|
2017-03-03 14:40:21 +00:00
|
|
|
label(v-once) {{ $t('hatchingPotions') }}
|
|
|
|
|
.field.nested-field
|
|
|
|
|
.ui.checkbox
|
2017-03-03 18:38:17 +00:00
|
|
|
input(type="checkbox")
|
2017-03-03 14:40:21 +00:00
|
|
|
label(v-once) {{ $t('quest') }}
|
|
|
|
|
.field.nested-field
|
|
|
|
|
.ui.checkbox
|
2017-03-03 18:38:17 +00:00
|
|
|
input(type="checkbox")
|
2017-03-03 14:40:21 +00:00
|
|
|
label(v-once) {{ $t('special') }}
|
|
|
|
|
.field
|
|
|
|
|
.ui.checkbox
|
2017-03-03 18:38:17 +00:00
|
|
|
input(type="checkbox")
|
2017-03-03 14:40:21 +00:00
|
|
|
label.label-primary(v-once) {{ $t('mounts') }}
|
|
|
|
|
.field.nested-field
|
|
|
|
|
.ui.checkbox
|
2017-03-03 18:38:17 +00:00
|
|
|
input(type="checkbox")
|
2017-03-03 14:40:21 +00:00
|
|
|
label(v-once) {{ $t('hatchingPotions') }}
|
|
|
|
|
.field.nested-field
|
|
|
|
|
.ui.checkbox
|
2017-03-03 18:38:17 +00:00
|
|
|
input(type="checkbox")
|
2017-03-03 14:40:21 +00:00
|
|
|
label(v-once) {{ $t('quest') }}
|
|
|
|
|
.field.nested-field
|
|
|
|
|
.ui.checkbox
|
2017-03-03 18:38:17 +00:00
|
|
|
input(type="checkbox")
|
2017-03-03 14:40:21 +00:00
|
|
|
label(v-once) {{ $t('special') }}
|
|
|
|
|
|
|
|
|
|
.thirteen.wide.column
|
2017-02-15 11:49:57 +00:00
|
|
|
h2 Pets
|
2017-03-03 14:40:21 +00:00
|
|
|
.inventory-item-container(v-for="pet in listAnimals('pet', content.dropEggs, content.dropHatchingPotions)")
|
|
|
|
|
.PixelPaw
|
2017-02-15 11:49:57 +00:00
|
|
|
|
|
|
|
|
h2 Magic Potions Pets
|
|
|
|
|
ul
|
|
|
|
|
li(v-for="pet in listAnimals('pet', content.dropEggs, content.premiumHatchingPotions)") {{pet}}
|
|
|
|
|
|
|
|
|
|
h2 Quest Pets
|
|
|
|
|
ul
|
|
|
|
|
li(v-for="pet in listAnimals('pet', content.questEggs, content.dropHatchingPotions)") {{pet}}
|
|
|
|
|
|
|
|
|
|
h2 Rare Pets
|
|
|
|
|
ul
|
|
|
|
|
li(v-for="pet in listAnimals('pet', content.dropEggs, content.dropHatchingPotions)") {{pet}}
|
|
|
|
|
|
2017-03-03 14:40:21 +00:00
|
|
|
h2 Mounts
|
|
|
|
|
h2 Quest Mounts
|
|
|
|
|
h2 Rare Mounts
|
2017-01-17 18:45:27 +00:00
|
|
|
</template>
|
|
|
|
|
|
2017-03-03 14:40:21 +00:00
|
|
|
<style>
|
|
|
|
|
.inventory-item-container {
|
|
|
|
|
padding: 20px;
|
|
|
|
|
border: 1px solid;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
2017-01-17 18:45:27 +00:00
|
|
|
<script>
|
2017-02-15 11:49:57 +00:00
|
|
|
import { mapState } from '../../store';
|
2017-03-01 16:10:48 +00:00
|
|
|
import each from 'lodash/each';
|
2017-02-15 11:49:57 +00:00
|
|
|
|
2017-01-17 18:45:27 +00:00
|
|
|
export default {
|
2017-02-15 11:49:57 +00:00
|
|
|
computed: {
|
|
|
|
|
...mapState(['content']),
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
listAnimals (type, eggSource, potionSource) {
|
|
|
|
|
let animals = [];
|
|
|
|
|
|
|
|
|
|
each(eggSource, (egg) => {
|
|
|
|
|
each(potionSource, (potion) => {
|
|
|
|
|
let animalKey = `${egg.key}-${potion.key}`;
|
|
|
|
|
animals.push(this.content[`${type}Info`][animalKey].text());
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return animals;
|
|
|
|
|
},
|
|
|
|
|
},
|
2017-01-17 18:45:27 +00:00
|
|
|
};
|
|
|
|
|
</script>
|