lint
This commit is contained in:
parent
658ff64cf0
commit
73f419950a
|
@ -50,7 +50,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { onMounted, onUnmounted, ref, inject, watch, nextTick, onBeforeUnmount } from 'vue';
|
||||
import { onMounted, onUnmounted, ref, inject, watch, nextTick } from 'vue';
|
||||
import tinycolor from 'tinycolor2';
|
||||
import { getScrollPosition, scrollToTop } from '@/scripts/scroll';
|
||||
import { globalEvents } from '@/events';
|
||||
|
@ -60,7 +60,7 @@ import { miLocalStorage } from '@/local-storage';
|
|||
import { mainRouter } from '@/router';
|
||||
import * as os from '@/os';
|
||||
import { i18n } from '@/i18n';
|
||||
import {defaultStore} from "@/store";
|
||||
import { defaultStore } from '@/store';
|
||||
|
||||
const isFriendly = ref(miLocalStorage.getItem('ui') === 'friendly');
|
||||
const canBack = ref(['index', 'explore', 'my-notifications', 'messaging'].includes(<string>mainRouter.currentRoute.value.name));
|
||||
|
@ -128,12 +128,6 @@ const preventDrag = (ev: TouchEvent) => {
|
|||
ev.stopPropagation();
|
||||
};
|
||||
|
||||
function openAccountMenu(ev: MouseEvent) {
|
||||
openAccountMenu_({
|
||||
withExtraOperation: true,
|
||||
}, ev);
|
||||
}
|
||||
|
||||
const top = (ev: MouseEvent) => {
|
||||
const pos = getScrollPosition(el as HTMLElement);
|
||||
if (el && pos !== 0) {
|
||||
|
@ -149,6 +143,12 @@ const top = (ev: MouseEvent) => {
|
|||
}
|
||||
};
|
||||
|
||||
function openAccountMenu(ev: MouseEvent) {
|
||||
openAccountMenu_({
|
||||
withExtraOperation: true,
|
||||
}, ev);
|
||||
}
|
||||
|
||||
function onTabMousedown(tab: Tab, ev: MouseEvent): void {
|
||||
// ユーザビリティの観点からmousedown時にはonClickは呼ばない
|
||||
if (tab.key) {
|
||||
|
|
|
@ -58,7 +58,7 @@ import { miLocalStorage } from '@/local-storage';
|
|||
import { mainRouter } from '@/router';
|
||||
import * as os from '@/os';
|
||||
import { i18n } from '@/i18n';
|
||||
import {defaultStore} from "@/store";
|
||||
import { defaultStore } from '@/store';
|
||||
|
||||
const isFriendly = ref(miLocalStorage.getItem('ui') === 'friendly');
|
||||
const canBack = ref(['index', 'explore', 'my-notifications', 'messaging'].includes(<string>mainRouter.currentRoute.value.name));
|
||||
|
|
Loading…
Reference in a new issue