This commit is contained in:
tamaina 2021-11-22 19:17:28 +09:00
parent abd45ffebd
commit 56a3d654c6
8 changed files with 13 additions and 13 deletions

View file

@ -3,9 +3,9 @@
*/ */
declare var self: ServiceWorkerGlobalScope; declare var self: ServiceWorkerGlobalScope;
import { swLang } from '@/lang'; import { swLang } from '@/scripts/lang';
import { cli } from '@/operations'; import { cli } from '@/scripts/operations';
import { pushNotificationDataMap } from '@/types'; import { pushNotificationDataMap } from '@/scripts/types';
import { getNoteSummary } from '@/scripts/get-note-summary'; import { getNoteSummary } from '@/scripts/get-note-summary';
import getUserName from '@/scripts/get-user-name'; import getUserName from '@/scripts/get-user-name';
import { I18n } from '@/scripts/i18n'; import { I18n } from '@/scripts/i18n';

View file

@ -1,8 +1,8 @@
declare var self: ServiceWorkerGlobalScope; declare var self: ServiceWorkerGlobalScope;
import { get } from 'idb-keyval'; import { get } from 'idb-keyval';
import { pushNotificationDataMap } from '@/types'; import { pushNotificationDataMap } from '@/scripts/types';
import { api } from '@/operations'; import { api } from '@/scripts/operations';
type Accounts = { type Accounts = {
[x: string]: { [x: string]: {

View file

@ -5,7 +5,7 @@
declare var self: ServiceWorkerGlobalScope; declare var self: ServiceWorkerGlobalScope;
import * as Misskey from 'misskey-js'; import * as Misskey from 'misskey-js';
import { SwMessage, swMessageOrderType } from '@/types'; import { SwMessage, swMessageOrderType } from '@/scripts/types';
import { acct as getAcct } from '@/filters/user'; import { acct as getAcct } from '@/filters/user';
import { getAccountFromId } from '@/scripts/get-account-from-id'; import { getAccountFromId } from '@/scripts/get-account-from-id';
import { getUrlWithLoginId } from '@/scripts/login-id'; import { getUrlWithLoginId } from '@/scripts/login-id';

View file

@ -3,11 +3,11 @@
*/ */
declare var self: ServiceWorkerGlobalScope; declare var self: ServiceWorkerGlobalScope;
import { createEmptyNotification, createNotification } from '@/create-notification'; import { createEmptyNotification, createNotification } from '@/scripts/create-notification';
import { swLang } from '@/lang'; import { swLang } from '@/scripts/lang';
import { swNotificationRead } from '@/notification-read'; import { swNotificationRead } from '@/scripts/notification-read';
import { pushNotificationDataMap } from '@/types'; import { pushNotificationDataMap } from '@/scripts/types';
import * as swos from '@/operations'; import * as swos from '@/scripts/operations';
import { acct as getAcct } from '@/filters/user'; import { acct as getAcct } from '@/filters/user';
//#region Lifecycle: Install //#region Lifecycle: Install

View file

@ -33,7 +33,6 @@
}, },
"compileOnSave": false, "compileOnSave": false,
"include": [ "include": [
"./**/*.ts", "./**/*.ts"
"./**/*.vue"
] ]
} }

View file

@ -34,6 +34,7 @@ const postcss = {
}; };
module.exports = { module.exports = {
target: 'webworker',
entry: { entry: {
sw: './src/sw.ts' sw: './src/sw.ts'
}, },