Initial environment state system refactor

This commit is contained in:
Andrew Bastin
2021-06-04 22:41:07 -04:00
parent c3f713c0bd
commit 5bfeb541fc
11 changed files with 430 additions and 226 deletions

View File

@@ -1,9 +1,6 @@
<template>
<div class="flex flex-col">
<label
>{{ $t("color") }}:
{{ capitalized(active) }}</label
>
<label>{{ $t("color") }}: {{ capitalized(active) }}</label>
<div>
<!-- text-blue-400 -->
<!-- text-green-400 -->
@@ -61,7 +58,6 @@ export default {
},
watch: {
active(color) {
localStorage.setItem("THEME_COLOR", color)
},
},
@@ -72,7 +68,7 @@ export default {
this.active = color
},
capitalized(color) {
return `${color.charAt(0).toUpperCase()}${color.slice(1)}`
return `${color.charAt(0).toUpperCase()}${color.slice(1)}`
},
},
}