diff --git a/NUXT/components/bottomNavigation.vue b/NUXT/components/bottomNavigation.vue index 01ab35d..7edd73b 100644 --- a/NUXT/components/bottomNavigation.vue +++ b/NUXT/components/bottomNavigation.vue @@ -1,11 +1,14 @@ @@ -343,6 +474,30 @@ export default { this.$store.commit("tweaks/setLaunchIconTheme", value); }, }, + navigationText: { + get() { + return this.$store.state.tweaks.navigationText; + }, + set(value) { + this.$store.commit("tweaks/setNavigationText", value); + }, + }, + navigationShift: { + get() { + return this.$store.state.tweaks.navigationShift; + }, + set(value) { + this.$store.commit("tweaks/setNavigationShift", value); + }, + }, + navigationIcons: { + get() { + return this.$store.state.tweaks.navigationIcons; + }, + set(value) { + this.$store.commit("tweaks/setNavigationIcons", value); + }, + }, }, mounted() { this.lang = this.$lang("mods").tweaks; diff --git a/NUXT/plugins/languages/english.js b/NUXT/plugins/languages/english.js index ef8f355..b25bcf7 100644 --- a/NUXT/plugins/languages/english.js +++ b/NUXT/plugins/languages/english.js @@ -28,7 +28,7 @@ module.exports = { startup: "Startup", theme: "Theme", tweaks: "Tweaks", - updates: "Updates" + updates: "Updates", }, index: { @@ -55,7 +55,7 @@ module.exports = { language: "Language", backup: "Backup", backupinfo: "Backup or restore your application settings", - restore: "Restore" + restore: "Restore", }, theme: { normal: "Normal", diff --git a/NUXT/plugins/vuetube.js b/NUXT/plugins/vuetube.js index 88e56fd..22c9da5 100644 --- a/NUXT/plugins/vuetube.js +++ b/NUXT/plugins/vuetube.js @@ -18,10 +18,9 @@ Vue.directive("emoji", { let backActions; const module = { - //--- Open External / Open In Browser ---// openExternal(url) { - window.open(url, '_blank'); + window.open(url, "_blank"); }, //--- Get GitHub Commits ---// @@ -130,10 +129,13 @@ const module = { Math.floor((((seconds % 31536000) % 86400) % 3600) / 60), //Minutes Math.floor((((seconds % 31536000) % 86400) % 3600) % 60), //Seconds ]; - levels = levels.filter((level, levelIndex) => level !== null || (levelIndex > 0 && levels[levelIndex - 1])); + levels = levels.filter( + (level, levelIndex) => + level !== null || (levelIndex > 0 && levels[levelIndex - 1]) + ); for (let i = 1; i < levels.length; i++) { - if (!levels[i]) levels[i] = 0 + if (!levels[i]) levels[i] = 0; levels[i] = levels[i].toString().padStart(2, "0"); } // join the array into a string with : as a sepatrator @@ -142,7 +144,6 @@ const module = { return returntext; }, //--- End Convert Time To Human Readable String ---// - }; //--- Start ---// diff --git a/NUXT/static/home.svg b/NUXT/static/home.svg new file mode 100644 index 0000000..c481d74 --- /dev/null +++ b/NUXT/static/home.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/NUXT/static/list.svg b/NUXT/static/list.svg new file mode 100644 index 0000000..f549b97 --- /dev/null +++ b/NUXT/static/list.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/NUXT/static/subs.svg b/NUXT/static/subs.svg new file mode 100644 index 0000000..e0412a4 --- /dev/null +++ b/NUXT/static/subs.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/NUXT/store/tweaks/index.js b/NUXT/store/tweaks/index.js index ff04cae..0183026 100644 --- a/NUXT/store/tweaks/index.js +++ b/NUXT/store/tweaks/index.js @@ -1,9 +1,12 @@ export const state = () => ({ - roundTweak: 0, + roundTweak: null, roundThumb: null, roundWatch: null, launchTheme: null, launchIconTheme: null, + navigationText: null, + navigationShift: null, + navigationIcons: null, }); export const mutations = { initTweaks(state) { @@ -17,6 +20,17 @@ export const mutations = { state.launchTheme = JSON.parse(localStorage.getItem("launchTheme")) || 0; // defaults to 0 state.launchIconTheme = JSON.parse(localStorage.getItem("launchIconTheme")) === true; // defaults to false + + state.navigationText = !( + // false if false, defaults to true + (JSON.parse(localStorage.getItem("navigationText")) === false) + ); + state.navigationShift = !( + // false if false, defaults to true + (JSON.parse(localStorage.getItem("navigationShift")) === false) + ); + state.navigationIcons = + JSON.parse(localStorage.getItem("navigationIcons")) || 0; // defaults to 0 }, setRoundTweak(state, payload) { if (!isNaN(payload)) { @@ -40,4 +54,16 @@ export const mutations = { state.launchIconTheme = payload; localStorage.setItem("launchIconTheme", payload); }, + setNavigationText(state, payload) { + state.navigationText = payload; + localStorage.setItem("navigationText", payload); + }, + setNavigationShift(state, payload) { + state.navigationShift = payload; + localStorage.setItem("navigationShift", payload); + }, + setNavigationIcons(state, payload) { + state.navigationIcons = payload; + localStorage.setItem("navigationIcons", payload); + }, };