From 9612195fc35ec9de6ec5086939b7a2231469beca Mon Sep 17 00:00:00 2001
From: syuilo <4439005+syuilo@users.noreply.github.com>
Date: Tue, 24 Sep 2024 15:54:47 +0900
Subject: [PATCH] enhance(frontend): tweak control panel
---
idea/MkDisableSection.vue | 41 +++++++++++
idea/README.md | 1 +
.../frontend/src/pages/admin/performance.vue | 37 +++++-----
.../frontend/src/pages/admin/settings.vue | 68 +++++++++----------
4 files changed, 95 insertions(+), 52 deletions(-)
create mode 100644 idea/MkDisableSection.vue
create mode 100644 idea/README.md
diff --git a/idea/MkDisableSection.vue b/idea/MkDisableSection.vue
new file mode 100644
index 000000000..d17788656
--- /dev/null
+++ b/idea/MkDisableSection.vue
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
diff --git a/idea/README.md b/idea/README.md
new file mode 100644
index 000000000..f64d16800
--- /dev/null
+++ b/idea/README.md
@@ -0,0 +1 @@
+使われなくなったけど消すのは勿体ない(将来使えるかもしれない)コードを入れておくとこ
diff --git a/packages/frontend/src/pages/admin/performance.vue b/packages/frontend/src/pages/admin/performance.vue
index 57f68a2a2..7e0a932f8 100644
--- a/packages/frontend/src/pages/admin/performance.vue
+++ b/packages/frontend/src/pages/admin/performance.vue
@@ -45,7 +45,7 @@ SPDX-License-Identifier: AGPL-3.0-only
-
+
{{ i18n.ts.enable }}{{ i18n.ts.modified }}
@@ -54,26 +54,28 @@ SPDX-License-Identifier: AGPL-3.0-only
-
- {{ i18n.ts._serverSettings.fanoutTimelineDbFallback }}{{ i18n.ts.modified }}
- {{ i18n.ts._serverSettings.fanoutTimelineDbFallbackDescription }}
-
+
+
+ {{ i18n.ts._serverSettings.fanoutTimelineDbFallback }}{{ i18n.ts.modified }}
+ {{ i18n.ts._serverSettings.fanoutTimelineDbFallbackDescription }}
+
-
- perLocalUserUserTimelineCacheMax{{ i18n.ts.modified }}
-
+
+ perLocalUserUserTimelineCacheMax{{ i18n.ts.modified }}
+
-
- perRemoteUserUserTimelineCacheMax{{ i18n.ts.modified }}
-
+
+ perRemoteUserUserTimelineCacheMax{{ i18n.ts.modified }}
+
-
- perUserHomeTimelineCacheMax{{ i18n.ts.modified }}
-
+
+ perUserHomeTimelineCacheMax{{ i18n.ts.modified }}
+
-
- perUserListTimelineCacheMax{{ i18n.ts.modified }}
-
+
+ perUserListTimelineCacheMax{{ i18n.ts.modified }}
+
+
@@ -110,7 +112,6 @@ import MkSwitch from '@/components/MkSwitch.vue';
import MkFolder from '@/components/MkFolder.vue';
import MkInput from '@/components/MkInput.vue';
import MkLink from '@/components/MkLink.vue';
-import MkButton from '@/components/MkButton.vue';
import { useForm } from '@/scripts/use-form.js';
import MkFormFooter from '@/components/MkFormFooter.vue';
diff --git a/packages/frontend/src/pages/admin/settings.vue b/packages/frontend/src/pages/admin/settings.vue
index 537c86cb1..5207f0e38 100644
--- a/packages/frontend/src/pages/admin/settings.vue
+++ b/packages/frontend/src/pages/admin/settings.vue
@@ -169,42 +169,44 @@ SPDX-License-Identifier: AGPL-3.0-only
{{ i18n.ts._urlPreviewSetting.enable }}{{ i18n.ts.modified }}
-
- {{ i18n.ts._urlPreviewSetting.requireContentLength }}{{ i18n.ts.modified }}
- {{ i18n.ts._urlPreviewSetting.requireContentLengthDescription }}
-
+
+
+ {{ i18n.ts._urlPreviewSetting.requireContentLength }}{{ i18n.ts.modified }}
+ {{ i18n.ts._urlPreviewSetting.requireContentLengthDescription }}
+
-
- {{ i18n.ts._urlPreviewSetting.maximumContentLength }}{{ i18n.ts.modified }}
- {{ i18n.ts._urlPreviewSetting.maximumContentLengthDescription }}
-
-
-
- {{ i18n.ts._urlPreviewSetting.timeout }}{{ i18n.ts.modified }}
- {{ i18n.ts._urlPreviewSetting.timeoutDescription }}
-
-
-
- {{ i18n.ts._urlPreviewSetting.userAgent }}{{ i18n.ts.modified }}
- {{ i18n.ts._urlPreviewSetting.userAgentDescription }}
-
-
-
-
- {{ i18n.ts._urlPreviewSetting.summaryProxy }}{{ i18n.ts.modified }}
- [{{ i18n.ts.notUsePleaseLeaveBlank }}] {{ i18n.ts._urlPreviewSetting.summaryProxyDescription }}
+
+ {{ i18n.ts._urlPreviewSetting.maximumContentLength }}{{ i18n.ts.modified }}
+ {{ i18n.ts._urlPreviewSetting.maximumContentLengthDescription }}
-
- {{ i18n.ts._urlPreviewSetting.summaryProxyDescription2 }}
-
- - {{ i18n.ts._urlPreviewSetting.timeout }} / key:timeout
- - {{ i18n.ts._urlPreviewSetting.maximumContentLength }} / key:contentLengthLimit
- - {{ i18n.ts._urlPreviewSetting.requireContentLength }} / key:contentLengthRequired
- - {{ i18n.ts._urlPreviewSetting.userAgent }} / key:userAgent
-
+
+ {{ i18n.ts._urlPreviewSetting.timeout }}{{ i18n.ts.modified }}
+ {{ i18n.ts._urlPreviewSetting.timeoutDescription }}
+
+
+
+ {{ i18n.ts._urlPreviewSetting.userAgent }}{{ i18n.ts.modified }}
+ {{ i18n.ts._urlPreviewSetting.userAgentDescription }}
+
+
+
+
+ {{ i18n.ts._urlPreviewSetting.summaryProxy }}{{ i18n.ts.modified }}
+ [{{ i18n.ts.notUsePleaseLeaveBlank }}] {{ i18n.ts._urlPreviewSetting.summaryProxyDescription }}
+
+
+
+ {{ i18n.ts._urlPreviewSetting.summaryProxyDescription2 }}
+
+ - {{ i18n.ts._urlPreviewSetting.timeout }} / key:timeout
+ - {{ i18n.ts._urlPreviewSetting.maximumContentLength }} / key:contentLengthLimit
+ - {{ i18n.ts._urlPreviewSetting.requireContentLength }} / key:contentLengthRequired
+ - {{ i18n.ts._urlPreviewSetting.userAgent }} / key:userAgent
+
+
-
+
@@ -230,7 +232,6 @@ SPDX-License-Identifier: AGPL-3.0-only