diff --git a/packages/frontend/src/components/MkAvatarDecoEditDialog.vue b/packages/frontend/src/components/MkAvatarDecoEditDialog.vue
index 9ef5be1df2..a39bbc000b 100644
--- a/packages/frontend/src/components/MkAvatarDecoEditDialog.vue
+++ b/packages/frontend/src/components/MkAvatarDecoEditDialog.vue
@@ -81,7 +81,7 @@ function del() {
text: i18n.t('deleteAreYouSure', { x: props.avatarDecoration?.name }),
}).then(({ canceled }) => {
if (canceled) return;
- os.api('admin/avatar-decorations/delete', { id: props.avatarDecoration?.id }).then(() => {
+ misskeyApi('admin/avatar-decorations/delete', { id: props.avatarDecoration?.id }).then(() => {
});
});
diff --git a/packages/frontend/src/components/MkDrive.vue b/packages/frontend/src/components/MkDrive.vue
index 35feb470ab..7136503a83 100644
--- a/packages/frontend/src/components/MkDrive.vue
+++ b/packages/frontend/src/components/MkDrive.vue
@@ -693,7 +693,7 @@ async function isSensitive(Files, isSensitive: boolean) {
if (canceled) return;
Files.forEach((file) => {
- os.api('drive/files/update', {
+ misskeyApi('drive/files/update', {
fileId: file.id,
isSensitive,
});
@@ -708,7 +708,7 @@ async function fileDelete(Files) {
if (canceled) return;
Files.forEach((file) => {
- os.api('drive/files/delete', {
+ misskeyApi('drive/files/delete', {
fileId: file.id,
});
});
diff --git a/packages/frontend/src/components/MkNotifyButton.vue b/packages/frontend/src/components/MkNotifyButton.vue
index fd9767846e..d6d3ad0c83 100644
--- a/packages/frontend/src/components/MkNotifyButton.vue
+++ b/packages/frontend/src/components/MkNotifyButton.vue
@@ -3,63 +3,63 @@ SPDX-FileCopyrightText: syuilo and other misskey contributors
SPDX-License-Identifier: AGPL-3.0-only
-->
-
+
@@ -278,10 +280,8 @@ onBeforeUnmount(() => {
}
-
}
-
.gamingDark {
color: black;
@@ -292,7 +292,6 @@ onBeforeUnmount(() => {
}
-
@-webkit-keyframes AnimationLight {
0% {
background-position: 0% 50%
diff --git a/packages/frontend/src/pages/settings/account-stats.vue b/packages/frontend/src/pages/settings/account-stats.vue
index 4e591c648a..658c12b558 100644
--- a/packages/frontend/src/pages/settings/account-stats.vue
+++ b/packages/frontend/src/pages/settings/account-stats.vue
@@ -101,7 +101,7 @@ import { definePageMetadata } from '@/scripts/page-metadata';
const stats = ref({});
onMounted(() => {
- os.api('i/stats', {
+ misskeyApi('i/stats', {
userId: $i!.id,
}).then(response => {
stats.value = response;
diff --git a/packages/frontend/src/pages/settings/notifications.vue b/packages/frontend/src/pages/settings/notifications.vue
index f939e1e42b..8709821595 100644
--- a/packages/frontend/src/pages/settings/notifications.vue
+++ b/packages/frontend/src/pages/settings/notifications.vue
@@ -79,11 +79,11 @@ const sendReadMessage = computed(() => pushRegistrationInServer.value?.sendReadM
const userLists = await misskeyApi('users/lists/list');
async function readAllUnreadNotes() {
- await os.api('i/read-all-unread-notes');
+ await misskeyApi('i/read-all-unread-notes');
}
async function readAllNotifications() {
- await os.api('notifications/mark-all-as-read');
+ await misskeyApi('notifications/mark-all-as-read');
}
async function updateReceiveConfig(type, value) {
diff --git a/packages/frontend/src/scripts/get-drive-file-menu.ts b/packages/frontend/src/scripts/get-drive-file-menu.ts
index 286e7154cf..fb0fe807e0 100644
--- a/packages/frontend/src/scripts/get-drive-file-menu.ts
+++ b/packages/frontend/src/scripts/get-drive-file-menu.ts
@@ -82,14 +82,14 @@ async function MultideleteFile(files: Misskey.entities.DriveFile[] | null) {
if (canceled) return;
files.forEach((e)=>{
- os.api('drive/files/delete', {
+ misskeyApi('drive/files/delete', {
fileId: e.id,
});
})
}
function isSensitive(files: Misskey.entities.DriveFile[] | null ,sensitive:boolean) {
files.forEach((e)=>{
- os.api('drive/files/update', {
+ misskeyApi('drive/files/update', {
fileId: e.id,
isSensitive: sensitive,
}).catch(err => {