From b3156f0e334dc2c3f5fcd7c4203fb5ac5b283be8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=82=E3=82=8F=E3=82=8F=E3=82=8F=E3=81=A8=E3=83=BC?= =?UTF-8?q?=E3=81=AB=E3=82=85?= <17376330+u1-liquid@users.noreply.github.com> Date: Thu, 7 Nov 2024 19:20:44 +0900 Subject: [PATCH] wip --- .../server/api/endpoints/watermark/update.ts | 2 +- .../frontend/src/pages/settings/drive.vue | 32 +++++++++++++++---- 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/watermark/update.ts b/packages/backend/src/server/api/endpoints/watermark/update.ts index a88318fc7..ca6c4a5ec 100644 --- a/packages/backend/src/server/api/endpoints/watermark/update.ts +++ b/packages/backend/src/server/api/endpoints/watermark/update.ts @@ -27,7 +27,7 @@ export const paramDef = { background: { type: 'string' }, rotate: { type: 'number' }, }, - required: ['fileId'], + required: [], } as const; // eslint-disable-next-line import/no-default-export diff --git a/packages/frontend/src/pages/settings/drive.vue b/packages/frontend/src/pages/settings/drive.vue index 1b8f993b0..9073a3594 100644 --- a/packages/frontend/src/pages/settings/drive.vue +++ b/packages/frontend/src/pages/settings/drive.vue @@ -52,12 +52,30 @@ SPDX-License-Identifier: AGPL-3.0-only - -
- {{ i18n.ts.selectFile }} - {{ i18n.ts.defa }} -
-
+ +
+ {{ i18n.ts.selectFile }} + {{ i18n.ts.default }} +
+ + +
+ + + + + + + + + + + + + + + +
@@ -105,6 +123,7 @@ import { signinRequired } from '@/account.js'; import MkInfo from "@/components/MkInfo.vue"; import MkButton from "@/components/MkButton.vue"; import MkFolder from "@/components/MkFolder.vue"; +import MkRadios from "@/components/MkRadios.vue"; const $i = signinRequired(); @@ -132,6 +151,7 @@ const keepOriginalFilename = computed(defaultStore.makeGetterSetter('keepOrigina const useWatermark = computed(defaultStore.makeGetterSetter('useWatermark')); const watermarkConfig = computed(defaultStore.makeGetterSetter('watermarkConfig')); +const watermarkPreset = ref<{ placement: string }>({}); misskeyApi('drive').then(info => { capacity.value = info.capacity;