This commit is contained in:
tamaina 2021-03-23 21:41:22 +09:00
parent 8ada2d78ed
commit c424af70af
3 changed files with 10 additions and 11 deletions

View File

@ -3,11 +3,11 @@
*/ */
declare var self: ServiceWorkerGlobalScope; declare var self: ServiceWorkerGlobalScope;
import { getNoteSummary } from '../../misc/get-note-summary'; import { getNoteSummary } from '@/misc/get-note-summary';
import getUserName from '../../misc/get-user-name'; import getUserName from '@/misc/get-user-name';
import { swLang } from '@/sw/lang'; import { swLang } from '@client/sw/lang';
import { I18n } from '../../misc/i18n'; import { I18n } from '@/misc/i18n';
import { pushNotificationData } from '../../types'; import { pushNotificationData } from '@/types';
export async function createNotification(data: pushNotificationData) { export async function createNotification(data: pushNotificationData) {
const n = await composeNotification(data); const n = await composeNotification(data);

View File

@ -5,9 +5,9 @@
declare var self: ServiceWorkerGlobalScope; declare var self: ServiceWorkerGlobalScope;
import { SwMessage, swMessageOrderType } from './types'; import { SwMessage, swMessageOrderType } from './types';
import renderAcct from '../../misc/acct/render'; import renderAcct from '@/misc/acct/render';
import { getAccountFromId } from '@/scripts/get-account-from-id'; import { getAccountFromId } from '@client/scripts/get-account-from-id';
import { appendLoginId } from '@/scripts/login-id'; import { appendLoginId } from '@client/scripts/login-id';
export async function api(endpoint: string, userId: string, options: any = {}) { export async function api(endpoint: string, userId: string, options: any = {}) {
const account = await getAccountFromId(userId); const account = await getAccountFromId(userId);

View File

@ -53,14 +53,13 @@ import { faEyeSlash, faLaughSquint } from '@fortawesome/free-regular-svg-icons';
import insertTextAtCursor from 'insert-text-at-cursor'; import insertTextAtCursor from 'insert-text-at-cursor';
import { length } from 'stringz'; import { length } from 'stringz';
import { toASCII } from 'punycode'; import { toASCII } from 'punycode';
import { parse } from '../../../mfm/parse'; import { parse } from '@/mfm/parse';
import { host, url } from '@client/config'; 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 extractMentions from '@/misc/extract-mentions';
import getAcct from '@/misc/acct/render'; import getAcct from '@/misc/acct/render';
import { formatTimeString } from '@/misc/format-time-string'; import { formatTimeString } from '@/misc/format-time-string';
import { Autocomplete } from '@client/scripts/autocomplete'; import { Autocomplete } from '@client/scripts/autocomplete';
import { noteVisibilities } from '../../../types';
import * as os from '@client/os'; import * as os from '@client/os';
import { selectFile } from '@client/scripts/select-file'; import { selectFile } from '@client/scripts/select-file';
import { notePostInterruptors, postFormActions } from '@client/store'; import { notePostInterruptors, postFormActions } from '@client/store';