diff --git a/src/client/sw/create-notification.ts b/src/client/sw/create-notification.ts index 8f69846253..23a65826bd 100644 --- a/src/client/sw/create-notification.ts +++ b/src/client/sw/create-notification.ts @@ -3,11 +3,11 @@ */ declare var self: ServiceWorkerGlobalScope; -import { getNoteSummary } from '../../misc/get-note-summary'; -import getUserName from '../../misc/get-user-name'; -import { swLang } from '@/sw/lang'; -import { I18n } from '../../misc/i18n'; -import { pushNotificationData } from '../../types'; +import { getNoteSummary } from '@/misc/get-note-summary'; +import getUserName from '@/misc/get-user-name'; +import { swLang } from '@client/sw/lang'; +import { I18n } from '@/misc/i18n'; +import { pushNotificationData } from '@/types'; export async function createNotification(data: pushNotificationData) { const n = await composeNotification(data); diff --git a/src/client/sw/operations.ts b/src/client/sw/operations.ts index a6b5afe765..33f366d1fc 100644 --- a/src/client/sw/operations.ts +++ b/src/client/sw/operations.ts @@ -5,9 +5,9 @@ declare var self: ServiceWorkerGlobalScope; import { SwMessage, swMessageOrderType } from './types'; -import renderAcct from '../../misc/acct/render'; -import { getAccountFromId } from '@/scripts/get-account-from-id'; -import { appendLoginId } from '@/scripts/login-id'; +import renderAcct from '@/misc/acct/render'; +import { getAccountFromId } from '@client/scripts/get-account-from-id'; +import { appendLoginId } from '@client/scripts/login-id'; export async function api(endpoint: string, userId: string, options: any = {}) { const account = await getAccountFromId(userId); diff --git a/src/client/ui/chat/post-form.vue b/src/client/ui/chat/post-form.vue index 5bb1a04d58..a53ce86e2e 100644 --- a/src/client/ui/chat/post-form.vue +++ b/src/client/ui/chat/post-form.vue @@ -53,14 +53,13 @@ import { faEyeSlash, faLaughSquint } from '@fortawesome/free-regular-svg-icons'; import insertTextAtCursor from 'insert-text-at-cursor'; import { length } from 'stringz'; import { toASCII } from 'punycode'; -import { parse } from '../../../mfm/parse'; +import { parse } from '@/mfm/parse'; import { host, url } from '@client/config'; -import { erase, unique } from '../../../prelude/array'; +import { erase, unique } from '@/prelude/array'; import extractMentions from '@/misc/extract-mentions'; import getAcct from '@/misc/acct/render'; import { formatTimeString } from '@/misc/format-time-string'; import { Autocomplete } from '@client/scripts/autocomplete'; -import { noteVisibilities } from '../../../types'; import * as os from '@client/os'; import { selectFile } from '@client/scripts/select-file'; import { notePostInterruptors, postFormActions } from '@client/store';