Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
subugoe
emo
TIDO
Commits
8d35274a
Commit
8d35274a
authored
Jul 06, 2021
by
dindigala
Browse files
feat: adding links in header to navigate and refactor
parent
426e4ac6
Pipeline
#209677
passed with stages
in 5 minutes and 23 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
8d35274a
...
...
@@ -285,9 +285,11 @@ As a rule of thumb, each key with a boolean value (e.g. *true* or *false*) defau
"
lang
"
:
"
en-us
"
,
"
standalone
"
:
true
,
"
projectheader
"
:
{
"
search
"
:
"
https://subugoe.pages.gwdg.de/ahiqar/website/search.html
"
,
"
show
"
:
true
,
"
title_back
"
:
"
The Syriac, Arabic, and Karshuni Ahiqar Texts
"
,
"
title_view
"
:
"
Edition Viewer
"
"
title_homePage_key
"
:
"
title_homePage
"
,
"
title_viewer_key
"
:
"
title_viewer
"
,
"
website
"
:
"
https://subugoe.pages.gwdg.de/ahiqar/website/
"
}
}
</script>
```
...
...
@@ -422,24 +424,36 @@ As a rule of thumb, each key with a boolean value (e.g. *true* or *false*) defau
-
**projectheader**
-
**search**
Navigates to the search page on website.
-
**show**
defines if a project header should be shown or not.
Defaults to `false`
-
**title_
back
**
-
**title_
homePage_key
**
defines the string show 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".
Has to be set!
-
**title_view**
-
**title_view
er_key
**
defines the string show as last item in the breadcrumb. Shows a "Document Icon"
Note: To change this title please navigate to "tido/src/i18n/en or tido/src/i18n/de" and find "title_viewer".
Has to be set!
-
**website**
Navigates to the Home Page page on website.
### Configure the Panels
```
json
...
...
src/components/header.vue
View file @
8d35274a
...
...
@@ -55,9 +55,9 @@
<
script
>
import
Navbar
from
'
@/components/navbar.vue
'
;
import
ProjectHeader
from
'
@/components/projectheader.vue
'
;
import
TitleBar
from
'
@/components/titlebar.vue
'
;
import
TogglePanels
from
'
@/components/togglebar/togglePanels.vue
'
;
import
ProjectHeader
from
'
@/components/projectheader.vue
'
;
import
Tools
from
'
@/components/tools.vue
'
;
export
default
{
...
...
src/components/projectheader.vue
View file @
8d35274a
...
...
@@ -16,19 +16,33 @@
</
template
>
<q-breadcrumbs-el
:class=
"$q.dark.isActive ? 'text-black' : 'text-white'"
:label=
"$t(`${projectheader.title_back}`)"
to=
"/"
:icon=
"fasHome"
/>
>
<a
:href=
"`${projectheader.website}`"
:class=
"$q.dark.isActive ? 'text-black' : 'text-white'"
class=
"header-links"
>
{{ $t(`${projectheader.title_homePage_key}`) }}
</a>
</q-breadcrumbs-el>
<q-breadcrumbs-el
:class=
"$q.dark.isActive ? 'text-black' : 'text-white'"
:label=
"$t('search')"
to=
"/"
:icon=
"fasSearch"
/>
>
<a
:href=
"`${projectheader.search}`"
:class=
"$q.dark.isActive ? 'text-black' : 'text-white'"
class=
"header-links"
>
{{ $t('search') }}
</a>
</q-breadcrumbs-el>
<q-breadcrumbs-el
:class=
"$q.dark.isActive ? 'text-black' : 'text-white'"
:label=
"$t(`${projectheader.title_view}`)"
:label=
"$t(`${projectheader.title_view
er_key
}`)"
:icon=
"fasFileAlt"
/>
</q-breadcrumbs>
...
...
@@ -68,6 +82,11 @@ export default {
padding
:
0
12px
;
}
.header-links
{
margin-left
:
8px
;
text-decoration
:
none
;
}
.projectheader
{
@media
(
prefers-color-scheme
:
dark
)
{
background-color
:
var
(
--
q-color-white
);
...
...
src/i18n/de/index.js
View file @
8d35274a
...
...
@@ -13,7 +13,6 @@ export default {
default
:
'
Standard
'
,
defaultView
:
'
Ansicht zurücksetzen
'
,
Description
:
'
Beschreibung
'
,
'
Edition Viewer
'
:
'
Edition anzeigen
'
,
Editor
:
'
Herausgeber
'
,
Editorial
:
'
Editorisch
'
,
Editors
:
'
Herausgeber
'
,
...
...
@@ -56,8 +55,9 @@ export default {
Tabs
:
'
Reiter
'
,
Text
:
'
Text
'
,
Textsize
:
'
Textgrösse
'
,
'
The Syriac, Arabic, and Karshuni Ahiqar Texts
'
:
'
Die syrischen und arabischen Ahiqar-Texte
'
,
Title
:
'
Titel
'
,
title_homePage
:
'
Die syrischen und arabischen Ahiqar-Texte
'
,
title_viewer
:
'
Edition anzeigen
'
,
transcription
:
'
Transkription
'
,
transliteration
:
'
Transliteration
'
,
Year
:
'
Erstellungsjahr
'
,
...
...
src/i18n/en-us/index.js
View file @
8d35274a
...
...
@@ -13,7 +13,6 @@ export default {
default
:
'
Default
'
,
defaultView
:
'
Reset panels to default view
'
,
Description
:
'
Description
'
,
'
Edition Viewer
'
:
'
Edition Viewer
'
,
Editor
:
'
Editor
'
,
Editorial
:
'
Editorial
'
,
Editors
:
'
Editors
'
,
...
...
@@ -56,8 +55,9 @@ export default {
Tabs
:
'
Tabs
'
,
Text
:
'
Text
'
,
Textsize
:
'
Textsize
'
,
'
The Syriac, Arabic, and Karshuni Ahiqar Texts
'
:
'
The Syriac, Arabic, and Karshuni Ahiqar Texts
'
,
Title
:
'
Title
'
,
title_homePage
:
'
The Syriac, Arabic, and Karshuni Ahiqar Texts
'
,
title_viewer
:
'
Edition Viewer
'
,
transcription
:
'
Transcription
'
,
transliteration
:
'
Transliteration
'
,
Year
:
'
Year of creation
'
,
...
...
src/index.template.html
View file @
8d35274a
...
...
@@ -118,9 +118,11 @@
"
lang
"
:
"
en-us
"
,
"
standalone
"
:
true
,
"
projectheader
"
:
{
"
search
"
:
"
https://subugoe.pages.gwdg.de/ahiqar/website/search.html
"
,
"
show
"
:
true
,
"
title_back
"
:
"
The Syriac, Arabic, and Karshuni Ahiqar Texts
"
,
"
title_view
"
:
"
Edition Viewer
"
"
title_homePage_key
"
:
"
title_homePage
"
,
"
title_viewer_key
"
:
"
title_viewer
"
,
"
website
"
:
"
https://subugoe.pages.gwdg.de/ahiqar/website/
"
}
}
</script>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment