diff --git a/src/.vuepress/api/api.js b/src/.vuepress/api/api.js deleted file mode 100644 index de76b7670dd94f80d66d0ccf3b15a13c02104fa9..0000000000000000000000000000000000000000 --- a/src/.vuepress/api/api.js +++ /dev/null @@ -1,39 +0,0 @@ -import axios from 'axios'; - -class ApiService { - constructor(baseURL) { - this.http = axios.create({ - baseURL: baseURL, - timeout: 5000, - }); - this.http.interceptors.response.use( - (response) => response.data, - (error) => { - return Promise.reject(error); - }, - ); - } - - async search(value, from, size) { - return this.request('/search', 'POST', { - query: { - simple_query_string: { - query: value - } - }, - from, - size - }) - } - - async request (url, method, data, params) { - return await this.http.request({ - url, - method, - data, - params, - }); - } -} - -export default new ApiService(process.env.VUE_APP_BASE_URL_API); 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/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' }, +];