mirror of
https://github.com/taigrr/homer
synced 2025-01-18 04:53:12 -08:00
chore: cleans up linter issues
This commit is contained in:
parent
6b17544aa0
commit
188bcb4f21
@ -11,7 +11,9 @@
|
|||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: "Darkmode",
|
name: "Darkmode",
|
||||||
props: ["isDark"],
|
props: {
|
||||||
|
isDark: Boolean,
|
||||||
|
},
|
||||||
created: function () {
|
created: function () {
|
||||||
let isDark =
|
let isDark =
|
||||||
"overrideDark" in localStorage
|
"overrideDark" in localStorage
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<a v-on:click="toggleLayout()" class="navbar-item is-inline-block-mobile">
|
<a v-on:click="toggleLayout()" class="navbar-item is-inline-block-mobile">
|
||||||
<span><i :class="['fas', 'fa-fw', vlayout ? icon : secondaryIcon]"></i></span>
|
<span>
|
||||||
|
<i :class="['fas', 'fa-fw', vlayout ? icon : secondaryIcon]"></i>
|
||||||
|
</span>
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</a>
|
</a>
|
||||||
</template>
|
</template>
|
||||||
@ -25,9 +27,7 @@ export default {
|
|||||||
if (this.name in localStorage) {
|
if (this.name in localStorage) {
|
||||||
vlayout = JSON.parse(localStorage[this.name]);
|
vlayout = JSON.parse(localStorage[this.name]);
|
||||||
} else {
|
} else {
|
||||||
vlayout = this.vlayout === null
|
vlayout = this.vlayout === null ? true : this.vlayout;
|
||||||
? true
|
|
||||||
: this.vlayout;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$emit("updated", vlayout);
|
this.$emit("updated", vlayout);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user