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);