2020-08-04 07:15:41 -07:00
|
|
|
<template>
|
2020-11-16 11:43:44 -08:00
|
|
|
<div>
|
2021-01-17 13:05:06 -08:00
|
|
|
<NounsNav/>
|
|
|
|
|
2020-09-11 03:17:29 -07:00
|
|
|
<h2>
|
2020-12-18 08:32:18 -08:00
|
|
|
<Icon v="book"/>
|
2020-11-16 13:22:04 -08:00
|
|
|
<T>nouns.headerLonger</T>
|
2020-09-11 03:17:29 -07:00
|
|
|
</h2>
|
2020-08-04 07:15:41 -07:00
|
|
|
|
|
|
|
<section>
|
2020-09-28 08:51:26 -07:00
|
|
|
<T>nouns.intro</T>
|
2020-08-04 07:15:41 -07:00
|
|
|
|
2020-10-12 02:46:26 -07:00
|
|
|
<Share :title="$t('nouns.headerLong')"/>
|
2020-08-04 07:15:41 -07:00
|
|
|
</section>
|
|
|
|
|
2020-10-16 03:57:03 -07:00
|
|
|
<NounsExtra>
|
2020-10-31 04:29:34 -07:00
|
|
|
<details v-if="config.nouns.collapsable" class="border mb-3" ref="dictionarywrapper">
|
|
|
|
<summary class="bg-light p-3" @click="$refs.collapsabledictionary.loadNouns()">
|
2020-10-16 03:57:03 -07:00
|
|
|
<h4 class="h5 d-inline">
|
|
|
|
<Icon v="book"/>
|
|
|
|
<T>nouns.dictionary</T>
|
|
|
|
</h4>
|
|
|
|
</summary>
|
|
|
|
<div class="border-top">
|
2020-10-31 04:29:34 -07:00
|
|
|
<Dictionary ref="collapsabledictionary"/>
|
2020-10-16 03:57:03 -07:00
|
|
|
</div>
|
|
|
|
</details>
|
2020-10-31 04:29:34 -07:00
|
|
|
<Dictionary v-else load ref="dictionary"/>
|
2020-10-16 03:57:03 -07:00
|
|
|
</NounsExtra>
|
2020-08-04 07:15:41 -07:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-09-23 12:29:55 -07:00
|
|
|
import { head } from "../src/helpers";
|
2020-11-16 13:22:04 -08:00
|
|
|
import NounsNav from "../data/nouns/NounsNav.vue";
|
2020-10-12 11:28:20 -07:00
|
|
|
import NounsExtra from "../data/nouns/NounsExtra.vue";
|
2020-12-17 13:18:18 -08:00
|
|
|
import hash from "../plugins/hash";
|
2020-08-04 07:15:41 -07:00
|
|
|
|
|
|
|
export default {
|
2020-11-16 13:22:04 -08:00
|
|
|
components: { NounsNav, NounsExtra },
|
2020-12-17 13:18:18 -08:00
|
|
|
mixins: [ hash ],
|
2020-08-05 03:04:31 -07:00
|
|
|
mounted() {
|
2020-12-17 13:18:18 -08:00
|
|
|
this.handleHash(this.config.nouns.hashNamespace || '', filter => {
|
|
|
|
if (this.$refs.dictionarywrapper) {
|
|
|
|
this.$refs.dictionarywrapper.open = true;
|
|
|
|
this.$refs.collapsabledictionary.setFilter(filter);
|
|
|
|
} else {
|
|
|
|
this.$refs.dictionary.setFilter(filter);
|
|
|
|
}
|
|
|
|
});
|
2020-08-05 03:04:31 -07:00
|
|
|
},
|
2020-08-04 07:15:41 -07:00
|
|
|
head() {
|
2020-09-23 12:29:55 -07:00
|
|
|
return head({
|
2020-11-16 13:22:04 -08:00
|
|
|
title: this.$t('nouns.headerLonger'),
|
2020-09-28 10:22:36 -07:00
|
|
|
description: this.$t('nouns.description'),
|
2020-09-23 12:29:55 -07:00
|
|
|
});
|
2020-08-04 07:15:41 -07:00
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|