From f45dcd4ae8ceaffbd522663c1f19b262d189ad63 Mon Sep 17 00:00:00 2001 From: James Lyne Date: Sat, 12 Dec 2020 19:04:51 +0000 Subject: [PATCH] Refactor App component, apply configured page title --- src/App.vue | 79 ++++++++++++++++++-------------------------- src/store/actions.ts | 4 +-- 2 files changed, 34 insertions(+), 49 deletions(-) diff --git a/src/App.vue b/src/App.vue index 4b8c3ce..14f14ce 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,75 +4,60 @@ - - diff --git a/src/store/actions.ts b/src/store/actions.ts index 9408885..f02210c 100644 --- a/src/store/actions.ts +++ b/src/store/actions.ts @@ -9,7 +9,7 @@ import { DynmapConfigurationResponse, DynmapLineUpdate, DynmapMarkerSet, DynmapMarkerUpdate, - DynmapPlayer, DynmapTileUpdate, + DynmapPlayer, DynmapServerConfig, DynmapTileUpdate, DynmapUpdateResponse } from "@/dynmap"; @@ -57,7 +57,7 @@ export interface Actions { } export const actions: ActionTree & Actions = { - [ActionTypes.LOAD_CONFIGURATION]({commit}) { + [ActionTypes.LOAD_CONFIGURATION]({commit}): Promise { return API.getConfiguration().then(config => { commit(MutationTypes.SET_CONFIGURATION, config.config); commit(MutationTypes.SET_MESSAGES, config.messages);