mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-22 22:14:06 +02:00
refactor: make noImplicitAny true (#17083)
* wip * Update emojis.emoji.vue * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * Update manager.ts * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * Update analytics.ts
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
import { computed, reactive } from 'vue';
|
||||
import { ui } from '@@/js/config.js';
|
||||
import { clearCache } from './utility/clear-cache.js';
|
||||
import type { ComputedRef } from 'vue';
|
||||
import { $i } from '@/i.js';
|
||||
import { miLocalStorage } from '@/local-storage.js';
|
||||
import { openInstanceMenu, openToolsMenu } from '@/ui/_common_/common.js';
|
||||
@@ -14,7 +15,17 @@ import * as os from '@/os.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
import { unisonReload } from '@/utility/unison-reload.js';
|
||||
|
||||
export const navbarItemDef = reactive({
|
||||
export const navbarItemDef = reactive<{
|
||||
[key: string]: {
|
||||
title: string;
|
||||
icon: string;
|
||||
show?: ComputedRef<boolean>;
|
||||
indicated?: ComputedRef<boolean>;
|
||||
indicateValue?: ComputedRef<string>;
|
||||
to?: string;
|
||||
action?: (ev: PointerEvent) => void;
|
||||
};
|
||||
}>({
|
||||
notifications: {
|
||||
title: i18n.ts.notifications,
|
||||
icon: 'ti ti-bell',
|
||||
@@ -137,7 +148,7 @@ export const navbarItemDef = reactive({
|
||||
ui: {
|
||||
title: i18n.ts.switchUi,
|
||||
icon: 'ti ti-devices',
|
||||
action: (ev: MouseEvent) => {
|
||||
action: (ev) => {
|
||||
os.popupMenu([{
|
||||
text: i18n.ts.default,
|
||||
active: ui === 'default' || ui === null,
|
||||
|
||||
Reference in New Issue
Block a user