diff --git a/src/components/DarkModeSwitcher.vue b/src/components/DarkModeSwitcher.vue deleted file mode 100644 index 4b49ed0..0000000 --- a/src/components/DarkModeSwitcher.vue +++ /dev/null @@ -1,38 +0,0 @@ - - - diff --git a/src/components/DonutChart.vue b/src/components/DonutChart.vue index a89b464..9f89fef 100644 --- a/src/components/DonutChart.vue +++ b/src/components/DonutChart.vue @@ -29,7 +29,7 @@ export default { backgroundColor: ["#FF8B26", "#FFC533", "#285FD3"], hoverBackgroundColor: ["#FF8B26", "#FFC533", "#285FD3"], borderWidth: 5, - borderColor: this.$store.state.main.darkMode ? "#303953" : "#fff" + borderColor: "#fff" } ] }; diff --git a/src/components/PieChart.vue b/src/components/PieChart.vue index cfdf862..f08d96b 100644 --- a/src/components/PieChart.vue +++ b/src/components/PieChart.vue @@ -24,7 +24,7 @@ export default { backgroundColor: ["#FF8B26", "#FFC533", "#285FD3"], hoverBackgroundColor: ["#FF8B26", "#FFC533", "#285FD3"], borderWidth: 5, - borderColor: this.$store.state.main.darkMode ? "#303953" : "#fff" + borderColor: "#fff" } ] }; diff --git a/src/components/ReportDonutChart.vue b/src/components/ReportDonutChart.vue index 8f3a084..707ad90 100644 --- a/src/components/ReportDonutChart.vue +++ b/src/components/ReportDonutChart.vue @@ -29,7 +29,7 @@ export default { backgroundColor: ["#FF8B26", "#FFC533", "#285FD3"], hoverBackgroundColor: ["#FF8B26", "#FFC533", "#285FD3"], borderWidth: 5, - borderColor: this.$store.state.main.darkMode ? "#303953" : "#fff" + borderColor: "#fff" } ] }; diff --git a/src/components/ReportDonutChart1.vue b/src/components/ReportDonutChart1.vue index 0537e25..a443d0d 100644 --- a/src/components/ReportDonutChart1.vue +++ b/src/components/ReportDonutChart1.vue @@ -29,7 +29,7 @@ export default { backgroundColor: ["#FF8B26", "#FFC533", "#285FD3"], hoverBackgroundColor: ["#FF8B26", "#FFC533", "#285FD3"], borderWidth: 2, - borderColor: this.$store.state.main.darkMode ? "#303953" : "#fff" + borderColor: "#fff" } ] }; diff --git a/src/components/ReportLineChart.vue b/src/components/ReportLineChart.vue index 2c26f8e..7e075ae 100644 --- a/src/components/ReportLineChart.vue +++ b/src/components/ReportLineChart.vue @@ -67,9 +67,7 @@ export default { { ticks: { fontSize: "12", - fontColor: this.$store.state.main.darkMode - ? "#718096" - : "#777777" + fontColor: "#777777" }, gridLines: { display: false @@ -80,18 +78,14 @@ export default { { ticks: { fontSize: "12", - fontColor: this.$store.state.main.darkMode - ? "#718096" - : "#777777", + fontColor: "#777777", callback: function(value) { return "$" + value; } }, gridLines: { - color: this.$store.state.main.darkMode ? "#718096" : "#D8D8D8", - zeroLineColor: this.$store.state.main.darkMode - ? "#718096" - : "#D8D8D8", + color: "#D8D8D8", + zeroLineColor: "#D8D8D8", borderDash: [2, 2], zeroLineBorderDash: [2, 2], drawBorder: false diff --git a/src/components/ReportPieChart.vue b/src/components/ReportPieChart.vue index bb679ef..70c756a 100644 --- a/src/components/ReportPieChart.vue +++ b/src/components/ReportPieChart.vue @@ -29,7 +29,7 @@ export default { backgroundColor: ["#FF8B26", "#FFC533", "#285FD3"], hoverBackgroundColor: ["#FF8B26", "#FFC533", "#285FD3"], borderWidth: 5, - borderColor: this.$store.state.main.darkMode ? "#303953" : "#fff" + borderColor: "#fff" } ] }; diff --git a/src/store/index.js b/src/store/index.js index 0f8faa1..d2d6ec1 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1,13 +1,11 @@ import Vue from "vue"; import Vuex from "vuex"; -import main from "./main"; import sideMenu from "./side-menu"; Vue.use(Vuex); export default new Vuex.Store({ modules: { - main: main, sideMenu: sideMenu, } }); diff --git a/src/store/main.js b/src/store/main.js deleted file mode 100644 index 87261df..0000000 --- a/src/store/main.js +++ /dev/null @@ -1,34 +0,0 @@ -import * as types from "./mutation-types"; - -const state = () => { - return { - darkMode: false - }; -}; - -// getters -const getters = { - darkMode: state => state.darkMode -}; - -// actions -const actions = { - setDarkMode({ commit }, darkMode) { - commit(types.SET_DARK_MODE, { darkMode }); - } -}; - -// mutations -const mutations = { - [types.SET_DARK_MODE](state, { darkMode }) { - state.darkMode = darkMode; - } -}; - -export default { - namespaced: true, - state, - getters, - actions, - mutations -}; diff --git a/src/store/mutation-types.js b/src/store/mutation-types.js deleted file mode 100644 index 1789e20..0000000 --- a/src/store/mutation-types.js +++ /dev/null @@ -1 +0,0 @@ -export const SET_DARK_MODE = "SET_DARK_MODE"; diff --git a/src/views/Login.vue b/src/views/Login.vue index f16fc0f..aa9e750 100644 --- a/src/views/Login.vue +++ b/src/views/Login.vue @@ -109,8 +109,8 @@ export default { mounted() { cash("body") - .removeClass("app") - .addClass("login"); + .removeClass('app') + .addClass('login'); } };