diff --git a/src/components/archiveList.vue b/src/components/archiveList.vue index bd46469..9da9d5b 100644 --- a/src/components/archiveList.vue +++ b/src/components/archiveList.vue @@ -8,20 +8,78 @@ This file is part of ArciveList. @@ -45,6 +103,8 @@ export default { }, mounted() { + this.sites = JSON.parse(this.collections) + /* var self = this; axios.get(this.api_endpoint +'/sites', { }) @@ -55,11 +115,14 @@ export default { .catch(function (error) { console.log(error); }); + */ }, methods: { + /* site_url: function(slug) { return this.base_url + '/s/' + slug } + */ }, watched: { diff --git a/src/loaders/archiveListLoader.js b/src/loaders/archiveListLoader.js index b93280f..bd8b097 100644 --- a/src/loaders/archiveListLoader.js +++ b/src/loaders/archiveListLoader.js @@ -30,7 +30,7 @@ document.querySelectorAll("[data-vue-component=archive-list]") new ComponentClass({ components: {'ArchiveList': ArchiveList}, propsData: { ...element.dataset }, - props: ["base_url"], + props: ["collections"], /* store: store, i18n: i18n,