summaryrefslogtreecommitdiff
path: root/packages/frontend/src/pages/settings
diff options
context:
space:
mode:
authorかっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>2025-06-04 16:22:09 +0900
committerGitHub <noreply@github.com>2025-06-04 16:22:09 +0900
commitb43dfa260b1416da153d28bcd46a8bcbce02c18d (patch)
tree1e4e08092b9f8870db15d267d20b0dd4c9828f95 /packages/frontend/src/pages/settings
parent🎨 (diff)
downloadmisskey-b43dfa260b1416da153d28bcd46a8bcbce02c18d.tar.gz
misskey-b43dfa260b1416da153d28bcd46a8bcbce02c18d.tar.bz2
misskey-b43dfa260b1416da153d28bcd46a8bcbce02c18d.zip
fix/refactor(frontend): 画像編集機能の修正・型強化 (#16156)
* enhance: refine uploadFile * fix: missing locale * refactor: harden types * refactor: シェーダーファイルをlazy-loadingできるように * fix(frontend): omit console.log in production environment * fix: glslのバージョン表記は最初の行になければならない * fix: シェーダーの読み込みが完了してからレンダリングを行うように * fix merge failure * fix: ウォーターマークのプリセットがない場合にdividerが2重に表示される問題を修正 * fix: アップローダーダイアログの機能設定でウォーターマークが無効な場合でもデフォルトのプリセットが適用されてしまう問題を修正 * fix lint * Revert "fix: シェーダーの読み込みが完了してからレンダリングを行うように" This reverts commit e06f37a7d453ca581858252eae422d8a9e470dc3. * Revert "fix: glslのバージョン表記は最初の行になければならない" This reverts commit afcc37d886106c4acd545e4c2922e67f94e1037b. * Revert "refactor: シェーダーファイルをlazy-loadingできるように" This reverts commit a1ab2fa38c2b7485c069f9cd089bc7de59416c9d. * fix: ウォーターマークのFX定義を分ける * Update packages/frontend/src/components/MkWatermarkEditorDialog.vue * Update packages/frontend/src/components/MkWatermarkEditorDialog.vue * Update packages/frontend/src/components/MkWatermarkEditorDialog.vue --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
Diffstat (limited to 'packages/frontend/src/pages/settings')
-rw-r--r--packages/frontend/src/pages/settings/account-data.vue25
-rw-r--r--packages/frontend/src/pages/settings/deck.vue5
-rw-r--r--packages/frontend/src/pages/settings/sounds.sound.vue6
3 files changed, 29 insertions, 7 deletions
diff --git a/packages/frontend/src/pages/settings/account-data.vue b/packages/frontend/src/pages/settings/account-data.vue
index d175c0dc32..5a00d7a9d7 100644
--- a/packages/frontend/src/pages/settings/account-data.vue
+++ b/packages/frontend/src/pages/settings/account-data.vue
@@ -233,7 +233,10 @@ const exportAntennas = () => {
};
const importFollowing = async (ev) => {
- const file = await selectFile(ev.currentTarget ?? ev.target);
+ const file = await selectFile({
+ anchorElement: ev.currentTarget ?? ev.target,
+ multiple: false,
+ });
misskeyApi('i/import-following', {
fileId: file.id,
withReplies: withReplies.value,
@@ -241,22 +244,34 @@ const importFollowing = async (ev) => {
};
const importUserLists = async (ev) => {
- const file = await selectFile(ev.currentTarget ?? ev.target);
+ const file = await selectFile({
+ anchorElement: ev.currentTarget ?? ev.target,
+ multiple: false,
+ });
misskeyApi('i/import-user-lists', { fileId: file.id }).then(onImportSuccess).catch(onError);
};
const importMuting = async (ev) => {
- const file = await selectFile(ev.currentTarget ?? ev.target);
+ const file = await selectFile({
+ anchorElement: ev.currentTarget ?? ev.target,
+ multiple: false,
+ });
misskeyApi('i/import-muting', { fileId: file.id }).then(onImportSuccess).catch(onError);
};
const importBlocking = async (ev) => {
- const file = await selectFile(ev.currentTarget ?? ev.target);
+ const file = await selectFile({
+ anchorElement: ev.currentTarget ?? ev.target,
+ multiple: false,
+ });
misskeyApi('i/import-blocking', { fileId: file.id }).then(onImportSuccess).catch(onError);
};
const importAntennas = async (ev) => {
- const file = await selectFile(ev.currentTarget ?? ev.target);
+ const file = await selectFile({
+ anchorElement: ev.currentTarget ?? ev.target,
+ multiple: false,
+ });
misskeyApi('i/import-antennas', { fileId: file.id }).then(onImportSuccess).catch(onError);
};
diff --git a/packages/frontend/src/pages/settings/deck.vue b/packages/frontend/src/pages/settings/deck.vue
index 22bd8cbc80..ae882d1ee2 100644
--- a/packages/frontend/src/pages/settings/deck.vue
+++ b/packages/frontend/src/pages/settings/deck.vue
@@ -114,7 +114,10 @@ watch(wallpaper, async () => {
});
function setWallpaper(ev: MouseEvent) {
- selectFile(ev.currentTarget ?? ev.target, null).then(file => {
+ selectFile({
+ anchorElement: ev.currentTarget ?? ev.target,
+ multiple: false,
+ }).then(file => {
wallpaper.value = file.url;
});
}
diff --git a/packages/frontend/src/pages/settings/sounds.sound.vue b/packages/frontend/src/pages/settings/sounds.sound.vue
index ffbbefa122..7aad43b1d0 100644
--- a/packages/frontend/src/pages/settings/sounds.sound.vue
+++ b/packages/frontend/src/pages/settings/sounds.sound.vue
@@ -94,7 +94,11 @@ const friendlyFileName = computed<string>(() => {
});
function selectSound(ev) {
- selectFile(ev.currentTarget ?? ev.target, i18n.ts._soundSettings.driveFile).then(async (file) => {
+ selectFile({
+ anchorElement: ev.currentTarget ?? ev.target,
+ multiple: false,
+ label: i18n.ts._soundSettings.driveFile,
+ }).then(async (file) => {
if (!file.type.startsWith('audio')) {
os.alert({
type: 'warning',