Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo committed Sep 1, 2024
1 parent cd665be commit 3676ada
Show file tree
Hide file tree
Showing 69 changed files with 69 additions and 69 deletions.
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkChannelList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkDonation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkFeaturedPhotos.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkForgotPassword.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkFormDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkNote.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkNoteDetailed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkNotes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkNotification.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkNotifications.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkPagination.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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<{
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkPostForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkSignupDialog.form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkSignupDialog.rules.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 !== '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkTimeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkTutorialDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkUserList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkUserPopup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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<{
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkUserSetupDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkVisitorDashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/global/MkAd.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/global/MkError.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/global/MkUrl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/page/page.text.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'));

Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/_error_.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/about-misskey.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: 'カイヤン',
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/about.overview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/admin/branding.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/admin/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 === '';

Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/admin/roles.editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/admin/roles.role.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/admin/roles.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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('');
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/admin/server-rules.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/admin/settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/ads.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/contact.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/drive.file.info.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/favorites.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/follow-requests.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>>();

Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/invite.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading

0 comments on commit 3676ada

Please sign in to comment.