diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-09-19 16:37:43 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-09-19 16:37:43 +0900 |
| commit | b0f6c44f36f3173f5d232d1adb02fc09dfdcc003 (patch) | |
| tree | 5ba44e4bdd60bf8dc4d63c4c9bf6b8ba358c51a9 /packages/sw/src/scripts | |
| parent | feat(frontend): 任意のユーザーリストをタイムラインページ... (diff) | |
| download | sharkey-b0f6c44f36f3173f5d232d1adb02fc09dfdcc003.tar.gz sharkey-b0f6c44f36f3173f5d232d1adb02fc09dfdcc003.tar.bz2 sharkey-b0f6c44f36f3173f5d232d1adb02fc09dfdcc003.zip | |
refactor(frontend): use ESM
Diffstat (limited to 'packages/sw/src/scripts')
| -rw-r--r-- | packages/sw/src/scripts/create-notification.ts | 10 | ||||
| -rw-r--r-- | packages/sw/src/scripts/lang.ts | 2 | ||||
| -rw-r--r-- | packages/sw/src/scripts/operations.ts | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/packages/sw/src/scripts/create-notification.ts b/packages/sw/src/scripts/create-notification.ts index 97ff8a3101..2b7f91a741 100644 --- a/packages/sw/src/scripts/create-notification.ts +++ b/packages/sw/src/scripts/create-notification.ts @@ -7,11 +7,11 @@ * Notification manager for SW */ import type { BadgeNames, PushNotificationDataMap } from '@/types'; -import { char2fileName } from '@/scripts/twemoji-base'; -import { cli } from '@/scripts/operations'; -import { getAccountFromId } from '@/scripts/get-account-from-id'; -import { swLang } from '@/scripts/lang'; -import { getUserName } from '@/scripts/get-user-name'; +import { char2fileName } from '@/scripts/twemoji-base.js'; +import { cli } from '@/scripts/operations.js'; +import { getAccountFromId } from '@/scripts/get-account-from-id.js'; +import { swLang } from '@/scripts/lang.js'; +import { getUserName } from '@/scripts/get-user-name.js'; const closeNotificationsByTags = async (tags: string[]): Promise<void> => { for (const n of (await Promise.all(tags.map(tag => globalThis.registration.getNotifications({ tag })))).flat()) { diff --git a/packages/sw/src/scripts/lang.ts b/packages/sw/src/scripts/lang.ts index dbe25130b4..a2b99ff6b1 100644 --- a/packages/sw/src/scripts/lang.ts +++ b/packages/sw/src/scripts/lang.ts @@ -7,7 +7,7 @@ * Language manager for SW */ import { get, set } from 'idb-keyval'; -import { I18n, type Locale } from '@/scripts/i18n'; +import { I18n, type Locale } from '@/scripts/i18n.js'; class SwLang { public cacheName = `mk-cache-${_VERSION_}`; diff --git a/packages/sw/src/scripts/operations.ts b/packages/sw/src/scripts/operations.ts index a849505bc3..ca75e395c0 100644 --- a/packages/sw/src/scripts/operations.ts +++ b/packages/sw/src/scripts/operations.ts @@ -9,8 +9,8 @@ */ import * as Misskey from 'misskey-js'; import type { SwMessage, SwMessageOrderType } from '@/types'; -import { getAccountFromId } from '@/scripts/get-account-from-id'; -import { getUrlWithLoginId } from '@/scripts/login-id'; +import { getAccountFromId } from '@/scripts/get-account-from-id.js'; +import { getUrlWithLoginId } from '@/scripts/login-id.js'; export const cli = new Misskey.api.APIClient({ origin, fetch: (...args): Promise<Response> => fetch(...args) }); |