From a4244268577c1936b1148a57a548c16632e7ce59 Mon Sep 17 00:00:00 2001 From: Francis Dinh Date: Fri, 26 Aug 2022 01:25:56 -0400 Subject: [PATCH] client: Use foundkey-js instead of misskey-js --- packages/client/package.json | 1 - packages/client/src/account.ts | 2 +- packages/client/src/components/MkNoteSub.vue | 2 +- packages/client/src/components/abuse-report-window.vue | 2 +- packages/client/src/components/cropper-dialog.vue | 2 +- packages/client/src/components/cw-button.vue | 2 +- packages/client/src/components/drive-file-thumbnail.vue | 2 +- packages/client/src/components/drive-select-dialog.vue | 2 +- packages/client/src/components/drive-window.vue | 2 +- packages/client/src/components/drive.file.vue | 2 +- packages/client/src/components/drive.folder.vue | 2 +- packages/client/src/components/drive.nav-folder.vue | 2 +- packages/client/src/components/drive.vue | 2 +- packages/client/src/components/emoji-picker.vue | 2 +- packages/client/src/components/featured-photos.vue | 2 +- packages/client/src/components/file-list-for-admin.vue | 2 +- packages/client/src/components/follow-button.vue | 2 +- packages/client/src/components/global/acct.vue | 2 +- packages/client/src/components/global/avatar.vue | 2 +- packages/client/src/components/global/emoji.vue | 2 +- packages/client/src/components/global/user-name.vue | 2 +- packages/client/src/components/instance-card-mini.vue | 2 +- packages/client/src/components/media-banner.vue | 2 +- packages/client/src/components/media-caption.vue | 2 +- packages/client/src/components/media-image.vue | 2 +- packages/client/src/components/media-list.vue | 2 +- packages/client/src/components/media-video.vue | 2 +- packages/client/src/components/note-detailed.vue | 2 +- packages/client/src/components/note-header.vue | 2 +- packages/client/src/components/note-simple.vue | 2 +- packages/client/src/components/note.vue | 2 +- .../client/src/components/notification-setting-window.vue | 2 +- packages/client/src/components/notification.vue | 2 +- packages/client/src/components/notifications.vue | 2 +- packages/client/src/components/poll.vue | 2 +- packages/client/src/components/post-form-attaches.vue | 2 +- packages/client/src/components/post-form.vue | 4 ++-- .../client/src/components/reactions-viewer.reaction.vue | 2 +- packages/client/src/components/reactions-viewer.vue | 2 +- packages/client/src/components/renote-button.vue | 2 +- packages/client/src/components/sub-note-content.vue | 2 +- packages/client/src/components/token-generate-window.vue | 2 +- packages/client/src/components/ui/pagination.vue | 2 +- packages/client/src/components/user-card-mini.vue | 2 +- packages/client/src/components/user-info.vue | 2 +- packages/client/src/components/user-online-indicator.vue | 2 +- packages/client/src/components/user-preview.vue | 2 +- packages/client/src/components/user-select-dialog.vue | 2 +- packages/client/src/components/visibility-picker.vue | 2 +- packages/client/src/filters/user.ts | 4 ++-- packages/client/src/instance.ts | 2 +- packages/client/src/os.ts | 2 +- packages/client/src/pages/_error_.vue | 2 +- packages/client/src/pages/api-console.vue | 2 +- packages/client/src/pages/clip.vue | 2 +- packages/client/src/pages/follow.vue | 2 +- packages/client/src/pages/instance-info.vue | 2 +- packages/client/src/pages/messaging/index.vue | 2 +- .../client/src/pages/messaging/messaging-room.form.vue | 2 +- .../client/src/pages/messaging/messaging-room.message.vue | 2 +- packages/client/src/pages/messaging/messaging-room.vue | 4 ++-- packages/client/src/pages/my-antennas/editor.vue | 2 +- packages/client/src/pages/note.vue | 2 +- packages/client/src/pages/notifications.vue | 2 +- packages/client/src/pages/settings/notifications.vue | 2 +- packages/client/src/pages/share.vue | 6 +++--- packages/client/src/pages/user-info.vue | 2 +- packages/client/src/pages/user/follow-list.vue | 2 +- packages/client/src/pages/user/followers.vue | 4 ++-- packages/client/src/pages/user/following.vue | 4 ++-- packages/client/src/pages/user/gallery.vue | 2 +- packages/client/src/pages/user/home.vue | 2 +- packages/client/src/pages/user/index.activity.vue | 2 +- packages/client/src/pages/user/index.timeline.vue | 2 +- packages/client/src/pages/user/index.vue | 4 ++-- packages/client/src/pages/user/pages.vue | 2 +- packages/client/src/pages/user/reactions.vue | 2 +- packages/client/src/pages/welcome.timeline.vue | 2 +- packages/client/src/scripts/get-note-menu.ts | 2 +- packages/client/src/scripts/get-note-summary.ts | 2 +- packages/client/src/scripts/get-user-menu.ts | 2 +- packages/client/src/scripts/lookup-user.ts | 2 +- packages/client/src/scripts/page-metadata.ts | 2 +- packages/client/src/scripts/select-file.ts | 2 +- packages/client/src/scripts/upload.ts | 2 +- packages/client/src/scripts/use-note-capture.ts | 2 +- packages/client/src/stream.ts | 2 +- packages/client/src/types/menu.ts | 2 +- packages/client/src/ui/deck/deck-store.ts | 2 +- packages/foundkey-js/tsconfig.json | 6 ++++-- scripts/build.js | 8 ++++++++ scripts/clean-all.js | 3 +++ scripts/clean.js | 1 + scripts/install-packages.js | 8 ++++++++ 94 files changed, 120 insertions(+), 99 deletions(-) diff --git a/packages/client/package.json b/packages/client/package.json index 6e514f83e..6d1b401c4 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -43,7 +43,6 @@ "katex": "0.16.0", "matter-js": "0.18.0", "mfm-js": "0.22.1", - "misskey-js": "0.0.14", "mocha": "10.0.0", "ms": "2.1.3", "nested-property": "4.0.0", diff --git a/packages/client/src/account.ts b/packages/client/src/account.ts index eb2ba0a1e..33acf73a9 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 'misskey-js'; +import * as misskey from 'foundkey-js'; import { showSuspendedDialog } from './scripts/show-suspended-dialog'; import { i18n } from './i18n'; import { del, get, set } from '@/scripts/idb-proxy'; diff --git a/packages/client/src/components/MkNoteSub.vue b/packages/client/src/components/MkNoteSub.vue index c8f8e3090..c60f385e7 100644 --- a/packages/client/src/components/MkNoteSub.vue +++ b/packages/client/src/components/MkNoteSub.vue @@ -27,7 +27,7 @@