Commit af4248b8 authored by dindigala's avatar dindigala
Browse files

refactor: remove search breadcrumb and refactor styles, renames

parent 8d50a86b
Pipeline #210030 passed with stages
in 4 minutes and 58 seconds
......@@ -285,9 +285,8 @@ As a rule of thumb, each key with a boolean value (e.g. *true* or *false*) defau
"lang": "en-us",
"standalone": true,
"breadcrumbNavigation": {
"search": "https://subugoe.pages.gwdg.de/ahiqar/website/search.html",
"show": true,
"title_homePage_key": "title_homePage",
"title_homepage_key": "title_homepage",
"title_viewer_key": "title_viewer",
"website": "https://subugoe.pages.gwdg.de/ahiqar/website/"
}
......@@ -424,21 +423,17 @@ As a rule of thumb, each key with a boolean value (e.g. *true* or *false*) defau
- **breadcrumbNavigation**
- **search**
Navigates to the search page on website.
- **show**
defines if a project header should be shown or not.
Defaults to `false`
- **title_homePage_key**
- **title_homepage_key**
defines the string shown as first item in the breadcrumb. Shows a "Home Icon"
Note: To change this title please navigate to "tido/src/i18n/en or tido/src/i18n/de" and find "title_homePage".
Note: To change this title please navigate to "tido/src/i18n/en or tido/src/i18n/de" and find "title_homepage".
Has to be set!
......
......@@ -4,45 +4,31 @@
>
<div class="content">
<q-breadcrumbs
:class="$q.dark.isActive ? 'text-black' : 'text-white'"
:class="$q.dark.isActive ? 'text-dark' : 'text-white'"
class="text-weight-medium"
>
<template #separator>
<q-icon
size="1em"
:name="fasChevronRight"
size="1em"
/>
</template>
<q-breadcrumbs-el
:class="$q.dark.isActive ? 'text-black' : 'text-white'"
:class="$q.dark.isActive ? 'text-dark' : 'text-white'"
:icon="fasHome"
>
<a
:class="$q.dark.isActive ? 'text-dark' : 'text-white'"
:href="`${config.breadcrumbNavigation.website}`"
:class="$q.dark.isActive ? 'text-black' : 'text-white'"
class="header-links"
>
{{ $t(`${config.breadcrumbNavigation.title_homePage_key}`) }}
</a>
</q-breadcrumbs-el>
<q-breadcrumbs-el
:class="$q.dark.isActive ? 'text-black' : 'text-white'"
:icon="fasSearch"
>
<a
:href="`${config.breadcrumbNavigation.search}`"
:class="$q.dark.isActive ? 'text-black' : 'text-white'"
class="header-links"
>
{{ $t('search') }}
{{ $t(`${config.breadcrumbNavigation.title_homepage_key}`) }}
</a>
</q-breadcrumbs-el>
<q-breadcrumbs-el
:class="$q.dark.isActive ? 'text-black' : 'text-white'"
:label="$t(`${config.breadcrumbNavigation.title_viewer_key}`)"
:icon="fasFileAlt"
:label="$t(`${config.breadcrumbNavigation.title_viewer_key}`)"
/>
</q-breadcrumbs>
</div>
......@@ -54,7 +40,6 @@ import {
fasHome,
fasFileAlt,
fasChevronRight,
fasSearch,
} from '@quasar/extras/fontawesome-v5';
export default {
......@@ -69,7 +54,6 @@ export default {
this.fasHome = fasHome;
this.fasFileAlt = fasFileAlt;
this.fasChevronRight = fasChevronRight;
this.fasSearch = fasSearch;
},
};
</script>
......
......@@ -2,7 +2,7 @@
<q-header :class="$q.dark.isActive ? 'bg-dark' : 'bg-secondary text-primary'">
<div
v-if="config.breadcrumbNavigation.show"
:class="$q.dark.isActive ? 'bg-white text-black' : 'bg-accent'"
:class="$q.dark.isActive ? 'bg-white' : 'bg-accent'"
>
<BreadCrumbNavigation
:config="config"
......
......@@ -56,7 +56,7 @@ export default {
Text: 'Text',
Textsize: 'Textgrösse',
Title: 'Titel',
title_homePage: 'Die syrischen und arabischen Ahiqar-Texte',
title_homepage: 'Die syrischen und arabischen Ahiqar-Texte',
title_viewer: 'Edition anzeigen',
transcription: 'Transkription',
transliteration: 'Transliteration',
......
......@@ -56,7 +56,7 @@ export default {
Text: 'Text',
Textsize: 'Textsize',
Title: 'Title',
title_homePage: 'The Syriac, Arabic, and Karshuni Ahiqar Texts',
title_homepage: 'The Syriac, Arabic, and Karshuni Ahiqar Texts',
title_viewer: 'Edition Viewer',
transcription: 'Transcription',
transliteration: 'Transliteration',
......
......@@ -118,9 +118,8 @@
"lang": "en-us",
"standalone": true,
"breadcrumbNavigation": {
"search": "https://subugoe.pages.gwdg.de/ahiqar/website/search.html",
"show": true,
"title_homePage_key": "title_homePage",
"title_homepage_key": "title_homepage",
"title_viewer_key": "title_viewer",
"website": "https://subugoe.pages.gwdg.de/ahiqar/website/"
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment