style(frontend): fix autofixable eslint errors (#9968)

This commit is contained in:
Kagami Sascha Rosylight 2023-02-17 02:56:23 +01:00 committed by GitHub
parent 63df2c851e
commit 7c5fc2c423
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 9 deletions

View File

@ -50,7 +50,7 @@ function close() {
} }
function neverShow() { function neverShow() {
miLocalStorage.setItem('neverShowDonationInfo', 'true') miLocalStorage.setItem('neverShowDonationInfo', 'true');
close(); close();
} }
</script> </script>

View File

@ -7,7 +7,7 @@
:front="true" :front="true"
@closed="emit('closed')" @closed="emit('closed')"
> >
<MkEmojiPicker :show-pinned="showPinned" :as-reaction-picker="asReactionPicker" as-window @chosen="chosen" :class="$style.picker"/> <MkEmojiPicker :show-pinned="showPinned" :as-reaction-picker="asReactionPicker" as-window :class="$style.picker" @chosen="chosen"/>
</MkWindow> </MkWindow>
</template> </template>

View File

@ -51,7 +51,7 @@ watch([() => props.note.reactions, () => props.maxNumber], ([newSource, maxNumbe
...Object.entries(newSource) ...Object.entries(newSource)
.sort(([, a], [, b]) => b - a) .sort(([, a], [, b]) => b - a)
.filter(([y], i) => i < maxNumber && !newReactionsNames.includes(y)), .filter(([y], i) => i < maxNumber && !newReactionsNames.includes(y)),
] ];
newReactions = newReactions.slice(0, props.maxNumber); newReactions = newReactions.slice(0, props.maxNumber);

View File

@ -8,8 +8,8 @@
<i v-if="t.icon" :class="[$style.tabIcon, t.icon]"></i> <i v-if="t.icon" :class="[$style.tabIcon, t.icon]"></i>
<div v-if="!t.iconOnly || (!defaultStore.reactiveState.animation.value && t.key === tab)" <div v-if="!t.iconOnly || (!defaultStore.reactiveState.animation.value && t.key === tab)"
:class="$style.tabTitle">{{ t.title }}</div> :class="$style.tabTitle">{{ t.title }}</div>
<Transition v-else @enter="enter" @after-enter="afterEnter" @leave="leave" @after-leave="afterLeave" <Transition v-else mode="in-out" @enter="enter" @after-enter="afterEnter" @leave="leave"
mode="in-out"> @after-leave="afterLeave">
<div v-show="t.key === tab" :class="[$style.tabTitle, $style.animate]">{{ t.title }}</div> <div v-show="t.key === tab" :class="[$style.tabTitle, $style.animate]">{{ t.title }}</div>
</Transition> </Transition>
</div> </div>

View File

@ -19,7 +19,7 @@
</div> </div>
</div> </div>
</div> </div>
<XTabs v-if="!narrow || hideTitle" :class="$style.tabs" :tab="tab" @update:tab="key => emit('update:tab', key)" :tabs="tabs" :root-el="el" @tab-click="onTabClick"/> <XTabs v-if="!narrow || hideTitle" :class="$style.tabs" :tab="tab" :tabs="tabs" :root-el="el" @update:tab="key => emit('update:tab', key)" @tab-click="onTabClick"/>
</template> </template>
<div v-if="(!thin_ && narrow && !hideTitle) || (actions && actions.length > 0)" :class="$style.buttonsRight"> <div v-if="(!thin_ && narrow && !hideTitle) || (actions && actions.length > 0)" :class="$style.buttonsRight">
<template v-for="action in actions"> <template v-for="action in actions">
@ -28,7 +28,7 @@
</div> </div>
</div> </div>
<div v-if="(narrow && !hideTitle) && hasTabs" :class="[$style.lower, { [$style.slim]: narrow, [$style.thin]: thin_ }]"> <div v-if="(narrow && !hideTitle) && hasTabs" :class="[$style.lower, { [$style.slim]: narrow, [$style.thin]: thin_ }]">
<XTabs :class="$style.tabs" :tab="tab" @update:tab="key => emit('update:tab', key)" :tabs="tabs" :root-el="el" @tab-click="onTabClick"/> <XTabs :class="$style.tabs" :tab="tab" :tabs="tabs" :root-el="el" @update:tab="key => emit('update:tab', key)" @tab-click="onTabClick"/>
</div> </div>
</div> </div>
</template> </template>
@ -40,7 +40,7 @@ import { scrollToTop } from '@/scripts/scroll';
import { globalEvents } from '@/events'; import { globalEvents } from '@/events';
import { injectPageMetadata } from '@/scripts/page-metadata'; import { injectPageMetadata } from '@/scripts/page-metadata';
import { $i, openAccountMenu as openAccountMenu_ } from '@/account'; import { $i, openAccountMenu as openAccountMenu_ } from '@/account';
import XTabs, { Tab } from './MkPageHeader.tabs.vue' import XTabs, { Tab } from './MkPageHeader.tabs.vue';
const props = withDefaults(defineProps<{ const props = withDefaults(defineProps<{
tabs?: Tab[]; tabs?: Tab[];

View File

@ -124,7 +124,7 @@ function onAiClick(ev) {
} }
if (window.innerWidth < 1024) { if (window.innerWidth < 1024) {
const currentUI = miLocalStorage.getItem('ui') const currentUI = miLocalStorage.getItem('ui');
miLocalStorage.setItem('ui_temp', currentUI || 'default'); miLocalStorage.setItem('ui_temp', currentUI || 'default');
miLocalStorage.setItem('ui', 'default'); miLocalStorage.setItem('ui', 'default');
location.reload(); location.reload();