diff options
| author | Pitu <[email protected]> | 2021-06-17 00:51:09 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2021-06-17 00:51:09 +0900 |
| commit | 334c3d1c34ce9261401fd1ab62ad2de8d561cc06 (patch) | |
| tree | 1c81ec16b0d0c20292326716ae8b16c1d253e69f /src/site/store/admin.js | |
| parent | chore: update db migration, seed and docker env (diff) | |
| download | host.fuwn.me-334c3d1c34ce9261401fd1ab62ad2de8d561cc06.tar.xz host.fuwn.me-334c3d1c34ce9261401fd1ab62ad2de8d561cc06.zip | |
feat: make frontend use database settings
Diffstat (limited to 'src/site/store/admin.js')
| -rw-r--r-- | src/site/store/admin.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/site/store/admin.js b/src/site/store/admin.js index 4f814b5..51213b7 100644 --- a/src/site/store/admin.js +++ b/src/site/store/admin.js @@ -11,7 +11,6 @@ export const state = () => ({ files: [] }, file: {}, - settings: {}, statistics: {}, settingsSchema: { type: null, @@ -20,12 +19,6 @@ export const state = () => ({ }); export const actions = { - async fetchSettings({ commit }) { - const response = await this.$axios.$get('service/config'); - commit('setSettings', response); - - return response; - }, async fetchStatistics({ commit }, category) { const url = category ? `service/statistics/${category}` : 'service/statistics'; const response = await this.$axios.$get(url); @@ -105,9 +98,6 @@ export const actions = { }; export const mutations = { - setSettings(state, { config }) { - state.settings = config; - }, setStatistics(state, { statistics, category }) { if (category) { state.statistics[category] = statistics[category]; |