diff --git a/components/FirstTabContent.vue b/components/FirstTabContent.vue deleted file mode 100644 index 57c3635..0000000 --- a/components/FirstTabContent.vue +++ /dev/null @@ -1,36 +0,0 @@ - - - - - diff --git a/components/GameTab.vue b/components/GameTab.vue index fad4b98..d99d956 100644 --- a/components/GameTab.vue +++ b/components/GameTab.vue @@ -1,8 +1,8 @@ - - diff --git a/pages/TimeMagic.vue b/pages/TimeMagic.vue new file mode 100644 index 0000000..894566d --- /dev/null +++ b/pages/TimeMagic.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/components/SixthTabContent.vue b/pages/Wisdom.vue similarity index 95% rename from components/SixthTabContent.vue rename to pages/Wisdom.vue index b599621..75a940e 100644 --- a/components/SixthTabContent.vue +++ b/pages/Wisdom.vue @@ -38,9 +38,3 @@ - - - - diff --git a/pages/index.vue b/pages/index.vue index ef63feb..57c3635 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,170 +1,36 @@ - - diff --git a/store/index.js b/store/index.js index 186898a..65486e6 100644 --- a/store/index.js +++ b/store/index.js @@ -2,7 +2,6 @@ import Decimal from 'break_infinity.js' import Vue from 'vue' export const state = () => ({ - activeTabIndex: 0, tabs: [ { route: '/', @@ -152,19 +151,11 @@ export const state = () => ({ }) export const getters = { - activeTab: (state) => { - return state.tabs[state.activeTabIndex] - }, - activeColorClasses: (state) => (index) => { - const { darkColor, lightColor } = state.tabs[index] - return `bg-${lightColor} text-${darkColor}` - }, - inactiveColorClasses: (state) => (index) => { - const { darkColor, lightColor } = state.tabs[index] - return `bg-${darkColor} text-${lightColor}` - }, - activeTabColorClasses: (state, getters) => { - return getters.activeColorClasses(state.activeTabIndex) + activeTab(state) { + return state.tabs.find( + // eslint-disable-next-line no-undef + (tab) => tab.route === $nuxt.$route.path + ) }, canTimeTravel: (state) => { if (state.playerAge.year < state.playerAgeMax.year) return true