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

View File

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