This commit is contained in:
syuilo 2024-09-01 17:14:18 +09:00
parent cd665be463
commit 3676ada520
69 changed files with 69 additions and 69 deletions

View File

@ -26,7 +26,7 @@ import { i18n } from '@/i18n.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const props = withDefaults(defineProps<{
pagination: Paging;

View File

@ -46,7 +46,7 @@ import { miLocalStorage } from '@/local-storage.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const emit = defineEmits<{
(ev: 'closed'): void;

View File

@ -11,7 +11,7 @@ SPDX-License-Identifier: AGPL-3.0-only
import { inject } from 'vue';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
</script>
<style lang="scss" module>

View File

@ -49,7 +49,7 @@ import { i18n } from '@/i18n.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const emit = defineEmits<{
(ev: 'done'): void;

View File

@ -86,7 +86,7 @@ import MkModalWindow from '@/components/MkModalWindow.vue';
import { i18n } from '@/i18n.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const props = defineProps<{
title: string;

View File

@ -23,7 +23,7 @@ import { MkABehavior } from '@/components/global/MkA.vue';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const props = withDefaults(defineProps<{
url: string;

View File

@ -203,7 +203,7 @@ import { getAppearNote } from '@/scripts/get-appear-note.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const props = withDefaults(defineProps<{
note: Misskey.entities.Note;

View File

@ -239,7 +239,7 @@ import { type Keymap } from '@/scripts/hotkey.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const props = withDefaults(defineProps<{
note: Misskey.entities.Note;

View File

@ -40,7 +40,7 @@ import MkPagination, { Paging } from '@/components/MkPagination.vue';
import { i18n } from '@/i18n.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const props = defineProps<{
pagination: Paging;

View File

@ -151,7 +151,7 @@ import { signinRequired } from '@/account.js';
import { inject } from 'vue';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const $i = signinRequired();

View File

@ -35,7 +35,7 @@ import { notificationTypes } from '@/const.js';
import { inject } from 'vue';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
import { defaultStore } from '@/store.js';
import MkPullToRefresh from '@/components/MkPullToRefresh.vue';
import * as Misskey from 'misskey-js';

View File

@ -93,7 +93,7 @@ function concatMapWithArray(map: MisskeyEntityMap, entities: MisskeyEntity[]): M
import { inject } from 'vue';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
import MkButton from '@/components/MkButton.vue';
const props = withDefaults(defineProps<{

View File

@ -131,7 +131,7 @@ import { mfmFunctionPicker } from '@/scripts/mfm-function-picker.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const $i = signinRequired();

View File

@ -50,7 +50,7 @@ import { i18n } from '@/i18n.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
defineProps<{
primary?: boolean;

View File

@ -92,7 +92,7 @@ import { i18n } from '@/i18n.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const props = withDefaults(defineProps<{
autoSet?: boolean;

View File

@ -72,7 +72,7 @@ import * as os from '@/os.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const availableServerRules = serverMetadata.serverRules.length > 0;
const availableTos = serverMetadata.tosUrl != null && serverMetadata.tosUrl !== '';

View File

@ -49,7 +49,7 @@ import * as os from '@/os.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const emit = defineEmits<{
(ev: 'closed'): void;

View File

@ -30,7 +30,7 @@ import { Paging } from '@/components/MkPagination.vue';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const props = withDefaults(defineProps<{
src: BasicTimelineType | 'mentions' | 'directs' | 'list' | 'antenna' | 'channel' | 'role';

View File

@ -163,7 +163,7 @@ import * as os from '@/os.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const props = defineProps<{
initialPage?: number;

View File

@ -28,7 +28,7 @@ import { i18n } from '@/i18n.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const props = withDefaults(defineProps<{
pagination: Paging;

View File

@ -69,7 +69,7 @@ import { $i } from '@/account.js';
import { isFollowingVisibleForMe, isFollowersVisibleForMe } from '@/scripts/isFfVisibleForMe.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const mediaProxy = inject(DI.mediaProxy);
const props = defineProps<{

View File

@ -143,7 +143,7 @@ import * as os from '@/os.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const emit = defineEmits<{
(ev: 'closed'): void;

View File

@ -68,7 +68,7 @@ import { openInstanceMenu } from '@/ui/_common_/common.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const stats = ref<Misskey.entities.StatsResponse | null>(null);

View File

@ -52,7 +52,7 @@ import { $i } from '@/account.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
type Ad = (typeof serverMetadata)['ads'][number];

View File

@ -21,7 +21,7 @@ import { defaultStore } from '@/store.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const emit = defineEmits<{
(ev: 'retry'): void;

View File

@ -34,7 +34,7 @@ import { MkABehavior } from '@/components/global/MkA.vue';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
function safeURIDecode(str: string): string {
try {

View File

@ -20,7 +20,7 @@ import { extractUrlFromMfm } from '@/scripts/extract-url-from-mfm.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const MkUrlPreview = defineAsyncComponent(() => import('@/components/MkUrlPreview.vue'));

View File

@ -39,7 +39,7 @@ import { defaultStore } from '@/store.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const props = withDefaults(defineProps<{
error?: Error;

View File

@ -147,7 +147,7 @@ import { $i } from '@/account.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const patronsWithIcon = [{
name: 'カイヤン',

View File

@ -141,7 +141,7 @@ import MkLink from '@/components/MkLink.vue';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const initStats = () => misskeyApi('stats', {});
</script>

View File

@ -121,7 +121,7 @@ import { host } from '@/config.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const iconUrl = ref<string | null>(null);
const app192IconUrl = ref<string | null>(null);

View File

@ -44,7 +44,7 @@ import { useRouter } from '@/router/supplier.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const isEmpty = (x: string | null) => x == null || x === '';

View File

@ -613,7 +613,7 @@ import { deepClone } from '@/scripts/clone.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const emit = defineEmits<{
(ev: 'update:modelValue', v: any): void;

View File

@ -77,7 +77,7 @@ import MkPagination from '@/components/MkPagination.vue';
import { inject } from 'vue';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
import { useRouter } from '@/router/supplier.js';
const router = useRouter();

View File

@ -258,7 +258,7 @@ import { useRouter } from '@/router/supplier.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const router = useRouter();
const baseRoleQ = ref('');

View File

@ -52,7 +52,7 @@ import MkInput from '@/components/MkInput.vue';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const Sortable = defineAsyncComponent(() => import('vuedraggable').then(x => x.default));

View File

@ -225,7 +225,7 @@ import MkSelect from '@/components/MkSelect.vue';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const name = ref<string | null>(null);
const shortName = ref<string | null>(null);

View File

@ -22,7 +22,7 @@ import { i18n } from '@/i18n.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
definePageMetadata(() => ({
title: i18n.ts.ads,

View File

@ -43,7 +43,7 @@ import MkLink from '@/components/MkLink.vue';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
definePageMetadata(() => ({
title: i18n.ts.inquiry,

View File

@ -85,7 +85,7 @@ import bytes from '@/filters/bytes.js';
import { inject } from 'vue';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
import { i18n } from '@/i18n.js';
import * as os from '@/os.js';
import { misskeyApi } from '@/scripts/misskey-api.js';

View File

@ -34,7 +34,7 @@ import { definePageMetadata } from '@/scripts/page-metadata.js';
import { inject } from 'vue';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const pagination = {
endpoint: 'i/favorites' as const,

View File

@ -47,7 +47,7 @@ import { definePageMetadata } from '@/scripts/page-metadata.js';
import { inject } from 'vue';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const paginationComponent = shallowRef<InstanceType<typeof MkPagination>>();

View File

@ -49,7 +49,7 @@ import { $i } from '@/account.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const pagingComponent = shallowRef<InstanceType<typeof MkPagination>>();
const currentInviteLimit = ref<null | number>(null);

View File

@ -46,7 +46,7 @@ import { definePageMetadata } from '@/scripts/page-metadata.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const props = defineProps<{
listId: string;

View File

@ -36,7 +36,7 @@ import { antennasCache } from '@/cache.js';
import { inject } from 'vue';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const antennas = computed(() => antennasCache.value.value ?? []);

View File

@ -39,7 +39,7 @@ import { userListsCache } from '@/cache.js';
import { inject } from 'vue';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
import { signinRequired } from '@/account.js';
const $i = signinRequired();

View File

@ -20,7 +20,7 @@ import { pleaseLogin } from '@/scripts/please-login.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const props = defineProps<{
showLoginPopup?: boolean;

View File

@ -123,7 +123,7 @@ import { MenuItem } from '@/types/menu';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
import { DI } from '@/di.js';
const mediaProxy = inject(DI.mediaProxy);

View File

@ -47,7 +47,7 @@ import { instanceName } from '@/config.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const props = withDefaults(defineProps<{
role: string;

View File

@ -69,7 +69,7 @@ import { $i } from '@/account.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const props = withDefaults(defineProps<{
query?: string;

View File

@ -34,7 +34,7 @@ import MkHorizontalSwipe from '@/components/MkHorizontalSwipe.vue';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const props = withDefaults(defineProps<{
query?: string,

View File

@ -55,7 +55,7 @@ import MkButton from '@/components/MkButton.vue';
import { inject } from 'vue';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const list = ref<InstanceType<typeof FormPagination>>();

View File

@ -61,7 +61,7 @@ import { definePageMetadata } from '@/scripts/page-metadata.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const $i = signinRequired();

View File

@ -40,7 +40,7 @@ import { useRouter } from '@/router/supplier.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const indexInfo = {
title: i18n.ts.settings,

View File

@ -139,7 +139,7 @@ import { misskeyApi } from '@/scripts/misskey-api.js';
import { inject } from 'vue';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
import { signinRequired } from '@/account.js';
import MkFolder from '@/components/MkFolder.vue';

View File

@ -92,7 +92,7 @@ import * as os from '@/os.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
async function reloadAsk() {
const { canceled } = await os.confirm({

View File

@ -59,7 +59,7 @@ provide('shouldOmitHeaderTitle', true);
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const tlComponent = shallowRef<InstanceType<typeof MkTimeline>>();
const rootEl = shallowRef<HTMLElement>();

View File

@ -177,7 +177,7 @@ import { useRouter } from '@/router/supplier.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const mediaProxy = inject(DI.mediaProxy);
function calcAge(birthdate: string): number {

View File

@ -47,7 +47,7 @@ import MkVisitorDashboard from '@/components/MkVisitorDashboard.vue';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const mediaProxy = inject(DI.mediaProxy);
const instances = ref<Misskey.entities.FederationInstance[]>();

View File

@ -59,7 +59,7 @@ import { i18n } from '@/i18n.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const menu = toRef(defaultStore.state, 'menu');
const otherMenuItemIndicated = computed(() => {

View File

@ -70,7 +70,7 @@ import { i18n } from '@/i18n.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const iconOnly = ref(false);

View File

@ -58,7 +58,7 @@ import { i18n } from '@/i18n.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const WINDOW_THRESHOLD = 1400;

View File

@ -64,7 +64,7 @@ import { i18n } from '@/i18n.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const WINDOW_THRESHOLD = 1400;

View File

@ -45,7 +45,7 @@ import * as sound from '@/scripts/sound.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const props = defineProps<{
column: Column;

View File

@ -83,7 +83,7 @@ import { mainRouter } from '@/router/main.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const isRoot = computed(() => mainRouter.currentRoute.value.name === 'index');

View File

@ -34,7 +34,7 @@ import { i18n } from '@/i18n.js';
import { inject } from 'vue';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
import { $i } from '@/account.js';
const name = i18n.ts._widgets.birthdayFollowings;

View File

@ -27,7 +27,7 @@ import { host } from '@/config.js';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const name = 'instanceInfo';

View File

@ -34,7 +34,7 @@ import { useInterval } from '@@/js/use-interval.js';
import { inject } from 'vue';
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const name = 'rss';

View File

@ -82,7 +82,7 @@ const { widgetProps, configure, save } = useWidgetPropsManager(name,
import { DI } from '@/di.js';
const serverMetadata = inject(DI.serverMetadata);
const serverMetadata = inject(DI.serverMetadata)!;
const menuOpened = ref(false);