From 82adac7317786f1571f195bb19ac8efdd8fe6b74 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Thu, 20 May 2021 00:11:03 -0500 Subject: [PATCH] Implemented displaying tabs --- src/App.vue | 12 ++++--- src/components/system/Nav.vue | 2 ++ src/components/system/Tabs.vue | 59 ++++++++++++++++++++++++++++++++++ src/data/mod.js | 1 + src/data/themes.js | 9 ++++-- src/main.js | 12 ++++--- src/util/load.js | 3 +- 7 files changed, 85 insertions(+), 13 deletions(-) create mode 100644 src/components/system/Tabs.vue diff --git a/src/App.vue b/src/App.vue index 9f07def..9d36810 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,12 +1,14 @@ + + diff --git a/src/data/mod.js b/src/data/mod.js index e43da3e..2629787 100644 --- a/src/data/mod.js +++ b/src/data/mod.js @@ -5,6 +5,7 @@ import Decimal, * as numberUtils from '../util/break_eternity.js'; export default { // General Info title: "The Modding Tree X", + banner: null, id: "tmt-x", author: "thepaperpilot", discordName: "TMT-X Server", diff --git a/src/data/themes.js b/src/data/themes.js index 8d8a8c2..6312c4a 100644 --- a/src/data/themes.js +++ b/src/data/themes.js @@ -5,7 +5,8 @@ const defaultTheme = { "--color": "#dfdfdf", "--points": "#ffffff", "--locked": "#bf8f8f", - "--link": "#02f2f2" + "--link": "#02f2f2", + "--separator": "#dfdfdf" }; export default { @@ -13,7 +14,8 @@ export default { paper: { ...defaultTheme, "--background": "#2a323d", - "--background_nav": "#333c4a" + "--background_nav": "#333c4a", + "--separator": "#333c4a" }, aquad: { ...defaultTheme, @@ -22,6 +24,7 @@ export default { "--background_nav": "#001f3f", "--color": "#bfdfff", "--points": "#dfefff", - "--locked": "#c4a7b3" + "--locked": "#c4a7b3", + "--separator": "#bfdfff" } }; diff --git a/src/main.js b/src/main.js index 8bf2acc..cccd020 100644 --- a/src/main.js +++ b/src/main.js @@ -1,10 +1,12 @@ -import Vue from 'vue' -import App from './App.vue' -import store from './store' +import Vue from 'vue'; +import App from './App.vue'; +import store from './store'; -Vue.config.productionTip = false +Vue.config.productionTip = false; + +window.player = store.state; new Vue({ store, render: h => h(App) -}).$mount('#app') +}).$mount('#app'); diff --git a/src/util/load.js b/src/util/load.js index 2da7025..cef2997 100644 --- a/src/util/load.js +++ b/src/util/load.js @@ -2,7 +2,7 @@ import modInfo from '../data/mod.js'; export function getInitialStore() { return { - tabs: ["tree-tab"], + tabs: ["tree-tab", "info-tab", "dummy"], time: Date.now(), autosave: true, offlineProd: true, @@ -10,6 +10,7 @@ export function getInitialStore() { keepGoing: false, hasNaN: false, lastTenTicks: [], + showTPS: true, ...modInfo.getStartingData() } }