1
0
Fork 0

Moved secondary header to spell list

This commit is contained in:
sharpshark28 2017-05-23 17:42:27 -05:00
parent 4e1cd5714c
commit e1b6f258e0
4 changed files with 29 additions and 28 deletions

View file

@ -1,15 +1,10 @@
<template> <template>
<div id="q-app"> <div id="q-app">
<q-layout class="bg-light"> <q-layout class="bg-light">
<nav-header-primary <nav-header
slot="header" slot="header"
class="toolbar dark" class="toolbar dark"
></nav-header-primary> ></nav-header>
<nav-header-secondary
slot="header"
class="toolbar dark"
></nav-header-secondary>
<div class="layout-view"> <div class="layout-view">
<router-view></router-view> <router-view></router-view>
@ -28,12 +23,10 @@ import { Loading, Dialog } from 'quasar'
import Vue from 'vue' import Vue from 'vue'
import 'whatwg-fetch' import 'whatwg-fetch'
import { state, dispatch } from './store' import { state, dispatch } from './store'
import HeaderPrimary from './components/Headerprimary' import Header from './components/Header'
import HeaderSecondary from './components/Headersecondary'
import Footer from './components/Footer' import Footer from './components/Footer'
Vue.component('nav-header-primary', HeaderPrimary) Vue.component('nav-header', Header)
Vue.component('nav-header-secondary', HeaderSecondary)
Vue.component('nav-footer', Footer) Vue.component('nav-footer', Footer)
function fetchSuccess (data) { function fetchSuccess (data) {

View file

@ -1,5 +1,5 @@
<template> <template>
<div> <div class="row">
<q-select <q-select
type="list" type="list"
v-model="state.sortBy" v-model="state.sortBy"
@ -7,7 +7,6 @@
></q-select> ></q-select>
<q-search <q-search
class="dark"
v-model="state.search" v-model="state.search"
@input="searchChanged" @input="searchChanged"
></q-search> ></q-search>
@ -60,5 +59,9 @@ export default {
} }
</script> </script>
<style> <style scoped lang="stylus">
.row
padding: 1em
.q-picker-textfield
margin-right: 1em
</style> </style>

View file

@ -1,27 +1,32 @@
<template> <template>
<section class="spell-list list striped no-border" id="spell_list"> <div class="spell-list-container">
<label <nav-filter></nav-filter>
is="spell-item" <section class="spell-list list striped no-border" id="spell_list">
class="item two-lines item-link" <label
v-for="spell in pagedSpells" is="spell-item"
:spell="spell" class="item two-lines item-link"
> v-for="spell in pagedSpells"
</label> :spell="spell"
<q-pagination >
class="text-center" </label>
v-model="state.page" <q-pagination
:max="numPages" class="text-center"
></q-pagination> v-model="state.page"
</section> :max="numPages"
></q-pagination>
</section>
</div>
</template> </template>
<script> <script>
import Vue from 'vue' import Vue from 'vue'
import { Utils } from 'quasar' import { Utils } from 'quasar'
import Query from '../query' import Query from '../query'
import Filter from './Filter'
import SpellItem from './Spellitem' import SpellItem from './Spellitem'
import { state } from '../store' import { state } from '../store'
Vue.component('nav-filter', Filter)
Vue.component('spell-item', SpellItem) Vue.component('spell-item', SpellItem)
export default { export default {