mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 05:05:20 -04:00
#167 [pl][nouns] split dictionaries into subpages - show menu on subpages
This commit is contained in:
parent
3752c63349
commit
7ef04a2d71
@ -1,13 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<section>
|
<section>
|
||||||
<div class="d-none d-md-inline-flex btn-group btn-block mb-2">
|
<div class="d-none d-md-inline-flex btn-group btn-block mb-2">
|
||||||
<a v-for="{name, icon, route} in links" :href="`/${config.nouns.route}/${route}`" class="btn btn-outline-primary">
|
<a v-for="{name, icon, route} in links" :href="`/${config.nouns.route}/${route}`"
|
||||||
|
:class="['btn', $route.fullPath === `/${encodeURIComponent(config.nouns.route)}/${encodeURIComponent(route)}` ? 'btn-primary' : 'btn-outline-primary']">
|
||||||
<Icon :v="icon"/>
|
<Icon :v="icon"/>
|
||||||
<T>nouns.{{name}}.header</T>
|
<T>nouns.{{name}}.header</T>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="d-block d-md-none btn-group-vertical btn-block mb-2">
|
<div class="d-block d-md-none btn-group-vertical btn-block mb-2">
|
||||||
<a v-for="{name, icon, route} in links" :href="`/${config.nouns.route}/${route}`" class="btn btn-outline-primary">
|
<a v-for="{name, icon, route} in links" :href="`/${config.nouns.route}/${route}`"
|
||||||
|
:class="['btn', $route.fullPath === `/${encodeURIComponent(config.nouns.route)}/${encodeURIComponent(route)}` ? 'btn-primary' : 'btn-outline-primary']">
|
||||||
<Icon :v="icon"/>
|
<Icon :v="icon"/>
|
||||||
<T>nouns.{{name}}.header</T>
|
<T>nouns.{{name}}.header</T>
|
||||||
</a>
|
</a>
|
||||||
|
@ -1,9 +1,16 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<h2>
|
<h2>
|
||||||
|
<Icon v="book"/>
|
||||||
|
<T>nouns.headerLonger</T>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<NounsNav/>
|
||||||
|
|
||||||
|
<h3>
|
||||||
<Icon v="ghost"/>
|
<Icon v="ghost"/>
|
||||||
<T>nouns.dukajNouns.header</T>
|
<T>nouns.dukajNouns.header</T>
|
||||||
</h2>
|
</h3>
|
||||||
|
|
||||||
<div class="d-flex flex-column flex-md-row">
|
<div class="d-flex flex-column flex-md-row">
|
||||||
<div>
|
<div>
|
||||||
@ -97,8 +104,10 @@
|
|||||||
<script>
|
<script>
|
||||||
import {Noun, NounDeclension} from "../../../src/classes";
|
import {Noun, NounDeclension} from "../../../src/classes";
|
||||||
import {head} from "../../../src/helpers";
|
import {head} from "../../../src/helpers";
|
||||||
|
import NounsNav from "./NounsNav";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
components: { NounsNav },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
dukajNouns: [
|
dukajNouns: [
|
||||||
|
@ -1,9 +1,16 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<h2>
|
<h2>
|
||||||
|
<Icon v="book"/>
|
||||||
|
<T>nouns.headerLonger</T>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<NounsNav/>
|
||||||
|
|
||||||
|
<h3>
|
||||||
<Icon v="deer"/>
|
<Icon v="deer"/>
|
||||||
<T>nouns.neuterNouns.header</T>
|
<T>nouns.neuterNouns.header</T>
|
||||||
</h2>
|
</h3>
|
||||||
|
|
||||||
<div class="d-flex flex-column flex-md-row">
|
<div class="d-flex flex-column flex-md-row">
|
||||||
<div>
|
<div>
|
||||||
@ -79,8 +86,10 @@
|
|||||||
import {Noun, NounDeclension} from "../../../src/classes";
|
import {Noun, NounDeclension} from "../../../src/classes";
|
||||||
import hash from "../../../plugins/hash";
|
import hash from "../../../plugins/hash";
|
||||||
import {head} from "../../../src/helpers";
|
import {head} from "../../../src/helpers";
|
||||||
|
import NounsNav from "./NounsNav";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
components: { NounsNav },
|
||||||
mixins: [ hash ],
|
mixins: [ hash ],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -1,10 +1,17 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<h2>
|
<h2>
|
||||||
|
<Icon v="book"/>
|
||||||
|
<T>nouns.headerLonger</T>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<NounsNav/>
|
||||||
|
|
||||||
|
<h3>
|
||||||
<Icon v="user-friends"/>
|
<Icon v="user-friends"/>
|
||||||
<T>nouns.personNouns.header</T>
|
<T>nouns.personNouns.header</T>
|
||||||
<small><NormativeBadge/></small>
|
<small><NormativeBadge/></small>
|
||||||
</h2>
|
</h3>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<T>nouns.personNouns.info</T>
|
<T>nouns.personNouns.info</T>
|
||||||
@ -70,8 +77,10 @@
|
|||||||
<script>
|
<script>
|
||||||
import {Noun} from "../../../src/classes";
|
import {Noun} from "../../../src/classes";
|
||||||
import {head} from "../../../src/helpers";
|
import {head} from "../../../src/helpers";
|
||||||
|
import NounsNav from "./NounsNav";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
components: { NounsNav },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
personNouns: [
|
personNouns: [
|
||||||
|
@ -1,9 +1,16 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<h2>
|
<h2>
|
||||||
|
<Icon v="book"/>
|
||||||
|
<T>nouns.headerLonger</T>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<NounsNav/>
|
||||||
|
|
||||||
|
<h3>
|
||||||
<Icon v="book-heart"/>
|
<Icon v="book-heart"/>
|
||||||
<T>nouns.inclusive.headerLong</T>
|
<T>nouns.inclusive.headerLong</T>
|
||||||
</h2>
|
</h3>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<T>nouns.inclusive.info</T>
|
<T>nouns.inclusive.info</T>
|
||||||
@ -17,8 +24,10 @@
|
|||||||
<script>
|
<script>
|
||||||
import { head } from "../src/helpers";
|
import { head } from "../src/helpers";
|
||||||
import hash from "../plugins/hash";
|
import hash from "../plugins/hash";
|
||||||
|
import NounsNav from "../data/nouns/NounsNav.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
components: { NounsNav },
|
||||||
mixins: [ hash ],
|
mixins: [ hash ],
|
||||||
mounted() {
|
mounted() {
|
||||||
this.handleHash(this.config.nouns.inclusive.hashNamespace || '', filter => {
|
this.handleHash(this.config.nouns.inclusive.hashNamespace || '', filter => {
|
||||||
|
@ -1,9 +1,16 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<h2>
|
<h2>
|
||||||
|
<Icon v="book"/>
|
||||||
|
<T>nouns.headerLonger</T>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<NounsNav/>
|
||||||
|
|
||||||
|
<h3>
|
||||||
<Icon v="flag"/>
|
<Icon v="flag"/>
|
||||||
<T>nouns.terms.headerLong</T>
|
<T>nouns.terms.headerLong</T>
|
||||||
</h2>
|
</h3>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<T>nouns.terms.info</T>
|
<T>nouns.terms.info</T>
|
||||||
@ -17,8 +24,11 @@
|
|||||||
<script>
|
<script>
|
||||||
import { head } from "../src/helpers";
|
import { head } from "../src/helpers";
|
||||||
import hash from "../plugins/hash";
|
import hash from "../plugins/hash";
|
||||||
|
import NounsNav from "../data/nouns/NounsNav.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
components: { NounsNav },
|
||||||
|
|
||||||
mixins: [ hash ],
|
mixins: [ hash ],
|
||||||
mounted() {
|
mounted() {
|
||||||
this.handleHash(this.config.nouns.terms.hashNamespace || '', filter => {
|
this.handleHash(this.config.nouns.terms.hashNamespace || '', filter => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user