diff --git a/packages/backend/test/utils.ts b/packages/backend/test/utils.ts index 2fd939353..a366547e6 100644 --- a/packages/backend/test/utils.ts +++ b/packages/backend/test/utils.ts @@ -6,7 +6,7 @@ import * as childProcess from 'child_process'; import * as http from 'node:http'; import { SIGKILL } from 'constants'; import WebSocket from 'ws'; -import * as misskey from 'foundkey-js'; +import * as foundkey from 'foundkey-js'; import fetch from 'node-fetch'; import FormData from 'form-data'; import { DataSource } from 'typeorm'; @@ -96,7 +96,7 @@ export const signup = async (params?: any): Promise => { return res.body; }; -export const post = async (user: any, params?: misskey.Endpoints['notes/create']['req']): Promise => { +export const post = async (user: any, params?: foundkey.Endpoints['notes/create']['req']): Promise => { const q = Object.assign({ text: 'test', }, params); diff --git a/packages/client/src/account.ts b/packages/client/src/account.ts index 33acf73a9..718c7b5b0 100644 --- a/packages/client/src/account.ts +++ b/packages/client/src/account.ts @@ -1,5 +1,5 @@ import { defineAsyncComponent, reactive } from 'vue'; -import * as misskey from 'foundkey-js'; +import * as foundkey from 'foundkey-js'; import { showSuspendedDialog } from './scripts/show-suspended-dialog'; import { i18n } from './i18n'; import { del, get, set } from '@/scripts/idb-proxy'; @@ -9,7 +9,7 @@ import { unisonReload, reloadChannel } from '@/scripts/unison-reload'; // TODO: 他のタブと永続化されたstateを同期 -type Account = misskey.entities.MeDetailed; +type Account = foundkey.entities.MeDetailed; const accountData = localStorage.getItem('account'); @@ -141,8 +141,8 @@ export async function login(token: Account['token'], redirect?: string) { export async function openAccountMenu(opts: { includeCurrentAccount?: boolean; withExtraOperation: boolean; - active?: misskey.entities.UserDetailed['id']; - onChoose?: (account: misskey.entities.UserDetailed) => void; + active?: foundkey.entities.UserDetailed['id']; + onChoose?: (account: foundkey.entities.UserDetailed) => void; }, ev: MouseEvent) { function showSigninDialog() { popup(defineAsyncComponent(() => import('@/components/signin-dialog.vue')), {}, { @@ -162,7 +162,7 @@ export async function openAccountMenu(opts: { }, 'closed'); } - async function switchAccount(account: misskey.entities.UserDetailed) { + async function switchAccount(account: foundkey.entities.UserDetailed) { const storedAccounts = await getAccounts(); const token = storedAccounts.find(x => x.id === account.id).token; switchAccountWithToken(token); @@ -175,7 +175,7 @@ export async function openAccountMenu(opts: { const storedAccounts = await getAccounts().then(accounts => accounts.filter(x => x.id !== $i.id)); const accountsPromise = api('users/show', { userIds: storedAccounts.map(x => x.id) }); - function createItem(account: misskey.entities.UserDetailed) { + function createItem(account: foundkey.entities.UserDetailed) { return { type: 'user', user: account, diff --git a/packages/client/src/components/MkNoteSub.vue b/packages/client/src/components/MkNoteSub.vue index c60f385e7..7f6d90080 100644 --- a/packages/client/src/components/MkNoteSub.vue +++ b/packages/client/src/components/MkNoteSub.vue @@ -27,7 +27,7 @@