From 5cfebf5ef06ec92efc3e9d11e2d3bde94377efab Mon Sep 17 00:00:00 2001 From: buttle Date: Fri, 22 Oct 2021 12:35:42 +0200 Subject: [PATCH] adds component endpoint variable --- index.html | 3 ++- src/components/archiveList.vue | 15 +++++++-------- src/loaders/archiveListLoader.js | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/index.html b/index.html index c34f3d5..c3e117b 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,8 @@ -
+
diff --git a/src/components/archiveList.vue b/src/components/archiveList.vue index 680c9c9..8438cd7 100644 --- a/src/components/archiveList.vue +++ b/src/components/archiveList.vue @@ -12,12 +12,12 @@ This file is part of ArciveList.

List of sites

- +
@@ -43,12 +43,11 @@ export default { }, mounted() { var self = this; - axios.get('https://dev-archive.hangar.org/api/sites', { + axios.get(this.endpoint +'/sites', { }) .then(function (response) { console.log(response.data) self.sites = response.data - //self.$forceUpdate(); }) .catch(function (error) { console.log(error); diff --git a/src/loaders/archiveListLoader.js b/src/loaders/archiveListLoader.js index 3b559b5..aef4430 100644 --- a/src/loaders/archiveListLoader.js +++ b/src/loaders/archiveListLoader.js @@ -29,9 +29,9 @@ document.querySelectorAll("[data-vue-component=archive-list]") .forEach((element) => { new ComponentClass({ components: {'ArchiveList': ArchiveList}, - /* propsData: { ...element.dataset }, - props: ["endpoint", "language", "csrf_token"], + props: ["endpoint"], + /* store: store, i18n: i18n, */