From c424af70afcdb75111fd329d624921c3cf676f09 Mon Sep 17 00:00:00 2001 From: tamaina Date: Tue, 23 Mar 2021 21:41:22 +0900 Subject: [PATCH] Fix path --- src/client/sw/create-notification.ts | 10 +++++----- src/client/sw/operations.ts | 6 +++--- src/client/ui/chat/post-form.vue | 5 ++--- 3 files changed, 10 insertions(+), 11 deletions(-) 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';