GUI Functionality

This commit is contained in:
Leon Etienne (ubuntu wsl)
2020-09-30 20:57:12 +02:00
parent ad7eac5343
commit c33216f2dd
40 changed files with 4727 additions and 44 deletions

View File

@@ -0,0 +1,24 @@
import axios from 'axios';
export const state = () => ({
cache: []
});
export const mutations = {
update(state, data) {
state.cache = data;
},
};
export const actions = {
update(context, instance) {
axios.post("/api", {
request: "fetch_alltime_cache"
})
.then(function(response) {
if (response.data.status === "OK") {
instance.$store.commit("dlcache/update", response.data.cache);
}
});
},
};