1
0
mirror of https://github.com/Cekis/swg-web.git synced 2026-01-16 15:04:19 -05:00

Fixed issue where settings did not load properly and updated dist

This commit is contained in:
Cekis
2021-05-23 14:59:56 -07:00
parent 8da6233260
commit 2fc5e6bdcf
21 changed files with 30 additions and 18 deletions

BIN
dist/img/logo.6fb7b2e3.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 530 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

2
dist/index.html vendored
View File

@@ -7,4 +7,4 @@
// Shared ID
gtag('config', 'UA-118965717-3');
// Vue.js ID
gtag('config', 'UA-118965717-7');</script><link href="/css/chunk-062aa5fd.7ce1b5cb.css" rel="prefetch"><link href="/css/chunk-27c3ee78.d4eb39b3.css" rel="prefetch"><link href="/css/chunk-2d9c6148.a2ab92c6.css" rel="prefetch"><link href="/css/chunk-4f2050ba.54ccc5f7.css" rel="prefetch"><link href="/js/chunk-062aa5fd.64835239.js" rel="prefetch"><link href="/js/chunk-27c3ee78.b6990fdd.js" rel="prefetch"><link href="/js/chunk-2d0a3956.68e0a4f3.js" rel="prefetch"><link href="/js/chunk-2d0d43e6.051f8d58.js" rel="prefetch"><link href="/js/chunk-2d2086b7.17be7ddb.js" rel="prefetch"><link href="/js/chunk-2d21082d.a903c013.js" rel="prefetch"><link href="/js/chunk-2d217109.10a58e20.js" rel="prefetch"><link href="/js/chunk-2d2178ab.7a2ea165.js" rel="prefetch"><link href="/js/chunk-2d2218b5.05083f06.js" rel="prefetch"><link href="/js/chunk-2d9c6148.67110a9e.js" rel="prefetch"><link href="/js/chunk-4f2050ba.0257498b.js" rel="prefetch"><link href="/js/chunk-789ba9d5.4971df63.js" rel="prefetch"><link href="/js/chunk-f8fb68ce.a11b2700.js" rel="prefetch"><link href="/css/app.45d4bbd1.css" rel="preload" as="style"><link href="/js/app.a2fd9dfd.js" rel="preload" as="script"><link href="/js/chunk-vendors.54d9cd22.js" rel="preload" as="script"><link href="/css/app.45d4bbd1.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.54d9cd22.js"></script><script src="/js/app.a2fd9dfd.js"></script></body></html>
gtag('config', 'UA-118965717-7');</script><link href="/css/chunk-062aa5fd.7ce1b5cb.css" rel="prefetch"><link href="/css/chunk-27c3ee78.d4eb39b3.css" rel="prefetch"><link href="/css/chunk-2d9c6148.a2ab92c6.css" rel="prefetch"><link href="/css/chunk-4f2050ba.54ccc5f7.css" rel="prefetch"><link href="/js/chunk-062aa5fd.652c1b50.js" rel="prefetch"><link href="/js/chunk-27c3ee78.38e3591c.js" rel="prefetch"><link href="/js/chunk-2d0a3956.68e0a4f3.js" rel="prefetch"><link href="/js/chunk-2d0d43e6.051f8d58.js" rel="prefetch"><link href="/js/chunk-2d2086b7.17be7ddb.js" rel="prefetch"><link href="/js/chunk-2d21082d.a903c013.js" rel="prefetch"><link href="/js/chunk-2d217109.10a58e20.js" rel="prefetch"><link href="/js/chunk-2d2178ab.7a2ea165.js" rel="prefetch"><link href="/js/chunk-2d2218b5.05083f06.js" rel="prefetch"><link href="/js/chunk-2d9c6148.ad970f60.js" rel="prefetch"><link href="/js/chunk-4f2050ba.619d2869.js" rel="prefetch"><link href="/js/chunk-789ba9d5.4971df63.js" rel="prefetch"><link href="/js/chunk-f8fb68ce.a11b2700.js" rel="prefetch"><link href="/css/app.45d4bbd1.css" rel="preload" as="style"><link href="/js/app.614c3ce1.js" rel="preload" as="script"><link href="/js/chunk-vendors.54d9cd22.js" rel="preload" as="script"><link href="/css/app.45d4bbd1.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.54d9cd22.js"></script><script src="/js/app.614c3ce1.js"></script></body></html>

File diff suppressed because one or more lines are too long

1
dist/js/app.614c3ce1.js.map vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,2 +1,2 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-062aa5fd"],{a0f4:function(e,a,t){"use strict";t("ec6e")},cf05:function(e,a,t){e.exports=t.p+"img/logo.ecaf75c5.png"},ec6e:function(e,a,t){},f593:function(e,a,t){"use strict";t.r(a);var n=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"c-app"},[t("TheSidebar"),t("CWrapper",[t("TheHeader"),t("div",{staticClass:"c-body"},[t("main",{staticClass:"c-main"},[t("CContainer",{attrs:{fluid:""}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view",{key:e.$route.path})],1)],1)],1)])],1)],1)},i=[],r=function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("CSidebar",{attrs:{fixed:"",minimize:e.minimize,show:e.show},on:{"update:show":function(a){return e.$store.commit("set",["sidebarShow",a])}}},[n("CSidebarBrand",{staticClass:"d-md-down-none",attrs:{to:"/"}},[n("img",{staticClass:"mr-2",attrs:{src:t("cf05"),height:"40"}}),n("strong",[e._v("Source SMC")])]),n("CRenderFunction",{attrs:{flat:"","content-to-render":e.$options.nav}}),n("CSidebarMinimizer",{staticClass:"d-md-down-none",nativeOn:{click:function(a){return e.$store.commit("set",["sidebarMinimize",!e.minimize])}}})],1)},o=[],s=[{_name:"CSidebarNav",_children:[{_name:"CSidebarNavItem",name:"Server Dashboard",to:"/dashboard",icon:"cil-speedometer"},{_name:"CSidebarNavTitle",_children:["Game"]},{_name:"CSidebarNavDropdown",name:"Resources",icon:"cil-terrain",_children:[{_name:"CSidebarNavItem",name:"Current Spawns",to:"/resources"}]},{_name:"CSidebarNavDropdown",name:"Commodities",icon:"cil-bank",_children:[{_name:"CSidebarNavItem",name:"Current Listings",to:"/bazaar/active"}]},{_name:"CSidebarNavDropdown",name:"Players",icon:"cil-people",_children:[{_name:"CSidebarNavItem",name:"All",to:"/players"}]},{_name:"CSidebarNavDropdown",name:"Cities",icon:"cil-building",_children:[{_name:"CSidebarNavItem",name:"All",to:"/cities"}]},{_name:"CSidebarNavTitle",_children:["Administration"]},{_name:"CSidebarNavDropdown",name:"Settings",icon:"cil-settings",_children:[{_name:"CSidebarNavItem",name:"Game",to:"/admin/settings/game"},{_name:"CSidebarNavItem",name:"Logging",to:"/admin/settings/logging"},{_name:"CSidebarNavItem",name:"Server",to:"/admin/settings/server"}]}]}],d={name:"TheSidebar",nav:s,computed:{show:function(){return this.$store.state.sidebarShow},minimize:function(){return this.$store.state.sidebarMinimize}}},m=d,c=t("2877"),l=Object(c["a"])(m,r,o,!1,null,null,null),u=l.exports,C=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("CHeader",{attrs:{fixed:"","with-subheader":"",light:""}},[t("CToggler",{staticClass:"ml-3 d-lg-none",attrs:{"in-header":""},on:{click:function(a){return e.$store.commit("toggleSidebarMobile")}}}),t("CToggler",{staticClass:"ml-3 d-md-down-none",attrs:{"in-header":""},on:{click:function(a){return e.$store.commit("toggleSidebarDesktop")}}}),t("CHeaderBrand",{staticClass:"mx-auto d-lg-none",attrs:{to:"/"}},[t("CIcon",{attrs:{name:"logo",height:"48",alt:"Logo"}})],1),t("CHeaderNav",{staticClass:"d-md-down-none mr-auto"}),t("CSubheader",{staticClass:"px-3"},[t("CBreadcrumbRouter",{staticClass:"border-0 mb-0"})],1)],1)},b=[],h={name:"TheHeader",data:function(){return{serverStatus:!1}}},g=h,S=Object(c["a"])(g,C,b,!1,null,null,null),v=S.exports,p={name:"TheContainer",components:{TheSidebar:u,TheHeader:v}},f=p,_=(t("a0f4"),Object(c["a"])(f,n,i,!1,null,"454d0fa4",null));a["default"]=_.exports}}]);
//# sourceMappingURL=chunk-062aa5fd.64835239.js.map
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-062aa5fd"],{a0f4:function(e,a,t){"use strict";t("ec6e")},cf05:function(e,a,t){e.exports=t.p+"img/logo.6fb7b2e3.png"},ec6e:function(e,a,t){},f593:function(e,a,t){"use strict";t.r(a);var n=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"c-app"},[t("TheSidebar"),t("CWrapper",[t("TheHeader"),t("div",{staticClass:"c-body"},[t("main",{staticClass:"c-main"},[t("CContainer",{attrs:{fluid:""}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view",{key:e.$route.path})],1)],1)],1)])],1)],1)},i=[],r=function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("CSidebar",{attrs:{fixed:"",minimize:e.minimize,show:e.show},on:{"update:show":function(a){return e.$store.commit("set",["sidebarShow",a])}}},[n("CSidebarBrand",{staticClass:"d-md-down-none",attrs:{to:"/"}},[n("img",{staticClass:"mr-2",attrs:{src:t("cf05"),height:"40"}}),n("strong",[e._v("Source SMC")])]),n("CRenderFunction",{attrs:{flat:"","content-to-render":e.$options.nav}}),n("CSidebarMinimizer",{staticClass:"d-md-down-none",nativeOn:{click:function(a){return e.$store.commit("set",["sidebarMinimize",!e.minimize])}}})],1)},o=[],s=[{_name:"CSidebarNav",_children:[{_name:"CSidebarNavItem",name:"Server Dashboard",to:"/dashboard",icon:"cil-speedometer"},{_name:"CSidebarNavTitle",_children:["Game"]},{_name:"CSidebarNavDropdown",name:"Resources",icon:"cil-terrain",_children:[{_name:"CSidebarNavItem",name:"Current Spawns",to:"/resources"}]},{_name:"CSidebarNavDropdown",name:"Commodities",icon:"cil-bank",_children:[{_name:"CSidebarNavItem",name:"Current Listings",to:"/bazaar/active"}]},{_name:"CSidebarNavDropdown",name:"Players",icon:"cil-people",_children:[{_name:"CSidebarNavItem",name:"All",to:"/players"}]},{_name:"CSidebarNavDropdown",name:"Cities",icon:"cil-building",_children:[{_name:"CSidebarNavItem",name:"All",to:"/cities"}]},{_name:"CSidebarNavTitle",_children:["Administration"]},{_name:"CSidebarNavDropdown",name:"Settings",icon:"cil-settings",_children:[{_name:"CSidebarNavItem",name:"Game",to:"/admin/settings/game"},{_name:"CSidebarNavItem",name:"Logging",to:"/admin/settings/logging"},{_name:"CSidebarNavItem",name:"Server",to:"/admin/settings/server"}]}]}],d={name:"TheSidebar",nav:s,computed:{show:function(){return this.$store.state.sidebarShow},minimize:function(){return this.$store.state.sidebarMinimize}}},m=d,c=t("2877"),l=Object(c["a"])(m,r,o,!1,null,null,null),u=l.exports,C=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("CHeader",{attrs:{fixed:"","with-subheader":"",light:""}},[t("CToggler",{staticClass:"ml-3 d-lg-none",attrs:{"in-header":""},on:{click:function(a){return e.$store.commit("toggleSidebarMobile")}}}),t("CToggler",{staticClass:"ml-3 d-md-down-none",attrs:{"in-header":""},on:{click:function(a){return e.$store.commit("toggleSidebarDesktop")}}}),t("CHeaderBrand",{staticClass:"mx-auto d-lg-none",attrs:{to:"/"}},[t("CIcon",{attrs:{name:"logo",height:"48",alt:"Logo"}})],1),t("CHeaderNav",{staticClass:"d-md-down-none mr-auto"}),t("CSubheader",{staticClass:"px-3"},[t("CBreadcrumbRouter",{staticClass:"border-0 mb-0"})],1)],1)},b=[],h={name:"TheHeader",data:function(){return{serverStatus:!1}}},g=h,S=Object(c["a"])(g,C,b,!1,null,null,null),v=S.exports,p={name:"TheContainer",components:{TheSidebar:u,TheHeader:v}},f=p,_=(t("a0f4"),Object(c["a"])(f,n,i,!1,null,"454d0fa4",null));a["default"]=_.exports}}]);
//# sourceMappingURL=chunk-062aa5fd.652c1b50.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/js/chunk-4f2050ba.619d2869.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 530 KiB

View File

@@ -3,15 +3,20 @@ import api from '@/api';
import _ from 'lodash';
const state = {
loaded: false,
allSettings: [],
};
const getters = {
settings: get('allSettings'),
loaded: get('loaded'),
};
const mutations = {
settings: set('allSettings'),
settings(state, settings) {
state.allSettings = settings;
state.loaded = true;
},
updatePlanetStatus(state, planet) {
state.allSettings.centralServer.startPlanet.find(
(p) => p.name === planet.planet

View File

@@ -38,7 +38,7 @@ const DAY_OPTIONS = [
export const SettingsMixin = {
components: { Toggle, TimerInput, SettingsCard },
computed: {
...mapGetters('settings', ['settings']),
...mapGetters('settings', ['settings', 'loaded']),
planets() {
if (!this.settings.centralServer) return;
return this.settings.centralServer.startPlanet;
@@ -127,4 +127,11 @@ export const SettingsMixin = {
tutorialStatus: false,
};
},
beforeRouteEnter(to, from, next) {
next((vm) => {
if (!vm.loaded) {
vm.$store.dispatch('settings/fetchAll');
}
});
},
};