diff --git a/index.html b/index.html
deleted file mode 100644
index f9c7d4b..0000000
--- a/index.html
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/components/archiveList.vue b/src/components/archiveList.vue
index 8266971..3dbe048 100644
--- a/src/components/archiveList.vue
+++ b/src/components/archiveList.vue
@@ -13,7 +13,7 @@ This file is part of ArciveList.
- Latest in collections
+ Latest in collections
@@ -109,25 +109,10 @@ export default {
},
mounted() {
this.setSites(JSON.parse(this.collections))
- /*
- var self = this;
- axios.get(this.api_endpoint +'/sites', {
- })
- .then(function (response) {
- console.log(response.data)
- self.sites = response.data
- })
- .catch(function (error) {
- console.log(error);
- });
- */
+
},
methods: {
- /*
- site_url: function(slug) {
- return this.base_url + '/s/' + slug
- }
- */
+
...mapGetters([
'getDisplayedSites'
]),
@@ -139,9 +124,7 @@ export default {
},
computed: {
- api_endpoint: function() {
- return this.base_url + '/api'
- },
+
}
};
diff --git a/src/loaders/archiveListLoader.js b/src/loaders/archiveListLoader.js
index 208f001..6252ca7 100644
--- a/src/loaders/archiveListLoader.js
+++ b/src/loaders/archiveListLoader.js
@@ -6,25 +6,12 @@ This file is part of ArchiveList.
*/
import Vue from "vue";
-//import VueMq from 'vue-mq'
import ArchiveList from "../components/archiveList.vue";
-
-//import 'es6-promise/auto'
import store from "../store.js"
-//import i18n from "../i18n.js"
export const bus = new Vue();
var ComponentClass = Vue.extend(ArchiveList)
-/*
- .use(VueMq, {
- breakpoints: { // default breakpoints - customize this
- sm: 450,
- md: 1250,
- lg: Infinity,
- },
- defaultBreakpoint: 'sm' // customize this for SSR
- })
-*/
+
document.querySelectorAll("[data-vue-component=archive-list]")
.forEach((element) => {
new ComponentClass({
@@ -32,8 +19,5 @@ document.querySelectorAll("[data-vue-component=archive-list]")
propsData: { ...element.dataset },
props: ["collections"],
store: store,
- /*
- i18n: i18n,
- */
}).$mount(element);
});
diff --git a/src/store.js b/src/store.js
index 55cfb35..d0694bb 100644
--- a/src/store.js
+++ b/src/store.js
@@ -38,11 +38,6 @@ const store = new Vuex.Store({
},
},
getters: {
- /*
- getSites: state => {
- return state.sites
- },
- */
getDisplayedSites: state => {
if (state.search_text === "") {
return state.sites