From 1ba09e1eee572fd1f040b7d0bde040dd98e35c15 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Mon, 23 Sep 2024 14:42:38 +0900 Subject: [PATCH] enhance(frontend): improve forms usability --- locales/index.d.ts | 12 + locales/ja-JP.yml | 3 + packages/frontend/src/components/MkFolder.vue | 2 + .../frontend/src/components/MkFormFooter.vue | 49 ++ .../frontend/src/pages/admin/performance.vue | 264 ++++---- .../frontend/src/pages/admin/settings.vue | 599 ++++++++---------- packages/frontend/src/scripts/use-form.ts | 55 ++ packages/frontend/src/style.scss | 10 + 8 files changed, 530 insertions(+), 464 deletions(-) create mode 100644 packages/frontend/src/components/MkFormFooter.vue create mode 100644 packages/frontend/src/scripts/use-form.ts diff --git a/locales/index.d.ts b/locales/index.d.ts index 55e76e2e4..2a27eb3e1 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -5096,6 +5096,18 @@ export interface Locale extends ILocale { * パフォーマンス */ "performance": string; + /** + * 変更あり + */ + "modified": string; + /** + * 破棄 + */ + "discard": string; + /** + * {n}件の変更があります + */ + "thereAreNChanges": ParameterizedString<"n">; "_delivery": { /** * 配信状態 diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 995bf8bc7..80cd8dc7c 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1270,6 +1270,9 @@ genEmbedCode: "埋め込みコードを生成" noteOfThisUser: "このユーザーのノート一覧" clipNoteLimitExceeded: "これ以上このクリップにノートを追加できません。" performance: "パフォーマンス" +modified: "変更あり" +discard: "破棄" +thereAreNChanges: "{n}件の変更があります" _delivery: status: "配信状態" diff --git a/packages/frontend/src/components/MkFolder.vue b/packages/frontend/src/components/MkFolder.vue index fef174fc6..6d7b8307b 100644 --- a/packages/frontend/src/components/MkFolder.vue +++ b/packages/frontend/src/components/MkFolder.vue @@ -237,6 +237,8 @@ onMounted(() => { background: var(--acrylicBg); -webkit-backdrop-filter: var(--blur, blur(15px)); backdrop-filter: var(--blur, blur(15px)); + background-size: auto auto; + background-image: repeating-linear-gradient(135deg, transparent, transparent 5px, var(--panel) 5px, var(--panel) 10px); border-radius: 0 0 6px 6px; } diff --git a/packages/frontend/src/components/MkFormFooter.vue b/packages/frontend/src/components/MkFormFooter.vue new file mode 100644 index 000000000..1e88d59d8 --- /dev/null +++ b/packages/frontend/src/components/MkFormFooter.vue @@ -0,0 +1,49 @@ + + + + + + + diff --git a/packages/frontend/src/pages/admin/performance.vue b/packages/frontend/src/pages/admin/performance.vue index 0f4d94aa4..57f68a2a2 100644 --- a/packages/frontend/src/pages/admin/performance.vue +++ b/packages/frontend/src/pages/admin/performance.vue @@ -7,103 +7,100 @@ SPDX-License-Identifier: AGPL-3.0-only - -
-
- - - - -
- -
- - - - -
- -
- - - - -
- -
- - - - -
- - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - - - - - -
- - - - -
-
+
+
+ + + +
- + +
+ + + + +
+ +
+ + + + +
+ +
+ + + + +
+ + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + +
+ + + + +
+
+