diff --git a/src/.vuepress/components/Bar.vue b/src/.vuepress/components/Bar.vue index 9a589b53b96275df92d9e140b1b53d0ec7c08e5c..0b8a31ca4bca39993c1c40b1d50176165e69568c 100644 --- a/src/.vuepress/components/Bar.vue +++ b/src/.vuepress/components/Bar.vue @@ -86,20 +86,19 @@ </template> <script> - export default { - data: () => ({ - editions: [ - { title: 'Syriac Texts', to: 'https://ahikar-dev.sub.uni-goettingen.de/syriac' }, - { title: 'Arabic and Kashuni Texts', to: 'https://ahikar-dev.sub.uni-goettingen.de/arabic-karshuni' }, - ], - metaEdition: [ - { title: 'Manuscripts', to: '/manuscripts.html' }, - { title: 'Motifs', to: '/motifs.html' }, - { title: 'Stemmata', to: '/stemmata.html' }, - { title: 'Collation', to: '/collation.html' }, - { title: 'Edition guidelines', to: '/editionguidelines.html' }, - { title: 'Related Literature', to: '/relatedliterature.html' }, - ], - }), - } +import editions from "../utilities/editionLinks"; + +export default { + data: () => ({ + editions, + metaEdition: [ + { title: 'Manuscripts', to: '/manuscripts.html' }, + { title: 'Motifs', to: '/motifs.html' }, + { title: 'Stemmata', to: '/stemmata.html' }, + { title: 'Collation', to: '/collation.html' }, + { title: 'Edition guidelines', to: '/editionguidelines.html' }, + { title: 'Related Literature', to: '/relatedliterature.html' }, + ], + }), +} </script> diff --git a/src/.vuepress/components/Cta.vue b/src/.vuepress/components/Cta.vue index a32cf22c768a24ed1fe8a000f44017978b220315..b6b765b26f4ffe49c52d407472f5b12b5234d0b3 100755 --- a/src/.vuepress/components/Cta.vue +++ b/src/.vuepress/components/Cta.vue @@ -9,7 +9,8 @@ > <a class="white--text text-overline text-decoration-none text-uppercase" - href="https://ahikar-dev.sub.uni-goettingen.de/syriac" + :href="editionSyriac.to" + :title="editionSyriac.title" role="link" tabindex="0" > @@ -25,7 +26,8 @@ > <a class="white--text text-overline text-decoration-none text-uppercase" - href="https://ahikar-dev.sub.uni-goettingen.de/arabic-karshuni" + :href="editionArabic.to" + :title="editionArabic.title" role="link" tabindex="0" > @@ -36,3 +38,13 @@ </v-layout> </v-container> </template> +<script> +import editionLinks from "../utilities/editionLinks"; + +export default { + data: () => ({ + editionSyriac: editionLinks[0], + editionArabic: editionLinks[1] + }) +} +</script> diff --git a/src/.vuepress/components/SearchPage.vue b/src/.vuepress/components/SearchPage.vue index 6e6d456827516f12ad3f8ebc263f1c4f4c084158..21d19010725c209ff95771d1f1a1206cf690d1bb 100644 --- a/src/.vuepress/components/SearchPage.vue +++ b/src/.vuepress/components/SearchPage.vue @@ -14,7 +14,7 @@ <script> import SearchResultList from "./SearchResultList"; import SearchResultEmpty from "./SearchResultEmpty"; -import apiService from '../api/api'; +import apiService from '../utilities/api'; export default { components: { diff --git a/src/.vuepress/api/api.js b/src/.vuepress/utilities/api.js similarity index 100% rename from src/.vuepress/api/api.js rename to src/.vuepress/utilities/api.js diff --git a/src/.vuepress/utilities/constants.js b/src/.vuepress/utilities/constants.js new file mode 100644 index 0000000000000000000000000000000000000000..c8c8a92b56d5fd725d06261dffe815a4770aa07d --- /dev/null +++ b/src/.vuepress/utilities/constants.js @@ -0,0 +1 @@ +export const baseUrlViewer = process.env.VUE_APP_BASE_URL_VIEWER; diff --git a/src/.vuepress/utilities/editionLinks.js b/src/.vuepress/utilities/editionLinks.js new file mode 100644 index 0000000000000000000000000000000000000000..0a8413aa89f737cde624495033776a9f4a7c58d1 --- /dev/null +++ b/src/.vuepress/utilities/editionLinks.js @@ -0,0 +1,6 @@ +import {baseUrlViewer} from "./constants"; + +export default [ + { title: 'Syriac Texts', to: baseUrlViewer + '/syriac' }, + { title: 'Arabic and Kashuni Texts', to: baseUrlViewer + '/arabic-karshuni' }, +];