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>
|
||||
export default {
|
||||
name: "Darkmode",
|
||||
props: ["isDark"],
|
||||
props: {
|
||||
isDark: Boolean,
|
||||
},
|
||||
created: function () {
|
||||
let isDark =
|
||||
"overrideDark" in localStorage
|
||||
|
@ -1,6 +1,8 @@
|
||||
<template>
|
||||
<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>
|
||||
</a>
|
||||
</template>
|
||||
@ -25,9 +27,7 @@ export default {
|
||||
if (this.name in localStorage) {
|
||||
vlayout = JSON.parse(localStorage[this.name]);
|
||||
} else {
|
||||
vlayout = this.vlayout === null
|
||||
? true
|
||||
: this.vlayout;
|
||||
vlayout = this.vlayout === null ? true : this.vlayout;
|
||||
}
|
||||
|
||||
this.$emit("updated", vlayout);
|
||||
|
Loading…
x
Reference in New Issue
Block a user