Moved secondary header to spell list
This commit is contained in:
parent
4e1cd5714c
commit
e1b6f258e0
4 changed files with 29 additions and 28 deletions
15
src/App.vue
15
src/App.vue
|
@ -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) {
|
||||||
|
|
|
@ -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>
|
|
@ -1,4 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
|
<div class="spell-list-container">
|
||||||
|
<nav-filter></nav-filter>
|
||||||
<section class="spell-list list striped no-border" id="spell_list">
|
<section class="spell-list list striped no-border" id="spell_list">
|
||||||
<label
|
<label
|
||||||
is="spell-item"
|
is="spell-item"
|
||||||
|
@ -13,15 +15,18 @@
|
||||||
:max="numPages"
|
:max="numPages"
|
||||||
></q-pagination>
|
></q-pagination>
|
||||||
</section>
|
</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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue