From 78ca557131256c83d96d493cc95c126a60e916f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Wed, 1 Oct 2025 05:56:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8F=96=E6=B6=88=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=99=A8=E7=9A=84=E8=87=AA=E5=8A=A8=E6=A0=BC=E5=BC=8F=E5=8C=96?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/common/CodeEditor.vue | 3 +-- web/src/components/common/PathSelector.vue | 3 ++- web/src/views/apps/codeserver/IndexView.vue | 3 +-- web/src/views/apps/docker/IndexView.vue | 3 +-- web/src/views/apps/frp/IndexView.vue | 6 ++---- web/src/views/apps/gitea/IndexView.vue | 3 +-- web/src/views/apps/memcached/IndexView.vue | 3 +-- web/src/views/apps/minio/IndexView.vue | 3 +-- web/src/views/apps/mysql/IndexView.vue | 3 +-- web/src/views/apps/nginx/IndexView.vue | 3 +-- web/src/views/apps/php/PhpView.vue | 6 ++---- web/src/views/apps/phpmyadmin/IndexView.vue | 3 +-- web/src/views/apps/podman/IndexView.vue | 6 ++---- web/src/views/apps/postgresql/IndexView.vue | 6 ++---- web/src/views/apps/redis/IndexView.vue | 3 +-- web/src/views/apps/rsync/IndexView.vue | 3 +-- web/src/views/apps/supervisor/IndexView.vue | 6 ++---- web/src/views/container/ContainerView.vue | 3 +-- web/src/views/task/CreateModal.vue | 3 +-- web/src/views/task/CronView.vue | 3 +-- web/src/views/toolbox/SystemView.vue | 3 +-- web/src/views/website/EditView.vue | 6 ++---- web/src/views/website/SettingView.vue | 9 +++------ 23 files changed, 32 insertions(+), 61 deletions(-) diff --git a/web/src/components/common/CodeEditor.vue b/web/src/components/common/CodeEditor.vue index 1ae44212..ae90b2dd 100644 --- a/web/src/components/common/CodeEditor.vue +++ b/web/src/components/common/CodeEditor.vue @@ -59,8 +59,7 @@ defineExpose({ height="60vh" :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true, + smoothScrolling: true, wordWrap: 'on' }" /> diff --git a/web/src/components/common/PathSelector.vue b/web/src/components/common/PathSelector.vue index 511947cc..431db800 100644 --- a/web/src/components/common/PathSelector.vue +++ b/web/src/components/common/PathSelector.vue @@ -126,7 +126,8 @@ const columns: DataTableColumns = [ ] const { loading, data, page, total, pageSize, pageCount, refresh } = usePagination( - (page, pageSize) => file.list(path.value, page, pageSize, sort.value), + (page, pageSize) => + file.list(encodeURIComponent(path.value), '', false, sort.value, page, pageSize), { initialData: { total: 0, list: [] }, initialPageSize: 100, diff --git a/web/src/views/apps/codeserver/IndexView.vue b/web/src/views/apps/codeserver/IndexView.vue index 8600739a..ff5fa3ac 100644 --- a/web/src/views/apps/codeserver/IndexView.vue +++ b/web/src/views/apps/codeserver/IndexView.vue @@ -49,8 +49,7 @@ const handleSaveConfig = () => { mt-8 :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" /> diff --git a/web/src/views/apps/docker/IndexView.vue b/web/src/views/apps/docker/IndexView.vue index 24519b1b..6fcc2b1b 100644 --- a/web/src/views/apps/docker/IndexView.vue +++ b/web/src/views/apps/docker/IndexView.vue @@ -45,8 +45,7 @@ const handleSaveConfig = () => { mt-8 :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" /> diff --git a/web/src/views/apps/frp/IndexView.vue b/web/src/views/apps/frp/IndexView.vue index f369d971..fe9439fe 100644 --- a/web/src/views/apps/frp/IndexView.vue +++ b/web/src/views/apps/frp/IndexView.vue @@ -55,8 +55,7 @@ onMounted(() => { mt-8 :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" /> @@ -79,8 +78,7 @@ onMounted(() => { mt-8 :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" /> diff --git a/web/src/views/apps/gitea/IndexView.vue b/web/src/views/apps/gitea/IndexView.vue index 1a6f1b50..f7a6bf32 100644 --- a/web/src/views/apps/gitea/IndexView.vue +++ b/web/src/views/apps/gitea/IndexView.vue @@ -47,8 +47,7 @@ const handleSaveConfig = () => { mt-8 :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" /> diff --git a/web/src/views/apps/memcached/IndexView.vue b/web/src/views/apps/memcached/IndexView.vue index 368fa68b..6ca411b8 100644 --- a/web/src/views/apps/memcached/IndexView.vue +++ b/web/src/views/apps/memcached/IndexView.vue @@ -62,8 +62,7 @@ const handleSaveConfig = () => { mt-8 :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" /> diff --git a/web/src/views/apps/minio/IndexView.vue b/web/src/views/apps/minio/IndexView.vue index 9f309e8c..445e4ced 100644 --- a/web/src/views/apps/minio/IndexView.vue +++ b/web/src/views/apps/minio/IndexView.vue @@ -47,8 +47,7 @@ const handleSaveEnv = () => { mt-8 :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" /> diff --git a/web/src/views/apps/mysql/IndexView.vue b/web/src/views/apps/mysql/IndexView.vue index 13ff2ce0..e046da4a 100644 --- a/web/src/views/apps/mysql/IndexView.vue +++ b/web/src/views/apps/mysql/IndexView.vue @@ -99,8 +99,7 @@ const handleSetRootPassword = async () => { mt-8 :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" /> diff --git a/web/src/views/apps/nginx/IndexView.vue b/web/src/views/apps/nginx/IndexView.vue index 3d656d1e..125f19ed 100644 --- a/web/src/views/apps/nginx/IndexView.vue +++ b/web/src/views/apps/nginx/IndexView.vue @@ -75,8 +75,7 @@ const handleClearErrorLog = () => { mt-8 :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" /> diff --git a/web/src/views/apps/php/PhpView.vue b/web/src/views/apps/php/PhpView.vue index 0716d23a..d652f369 100644 --- a/web/src/views/apps/php/PhpView.vue +++ b/web/src/views/apps/php/PhpView.vue @@ -217,8 +217,7 @@ const handleUninstallExtension = async (name: string) => { mt-8 :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" /> @@ -246,8 +245,7 @@ const handleUninstallExtension = async (name: string) => { mt-8 :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" /> diff --git a/web/src/views/apps/phpmyadmin/IndexView.vue b/web/src/views/apps/phpmyadmin/IndexView.vue index e8922aef..ebfb2c8e 100644 --- a/web/src/views/apps/phpmyadmin/IndexView.vue +++ b/web/src/views/apps/phpmyadmin/IndexView.vue @@ -88,8 +88,7 @@ onMounted(() => { mt-8 :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" /> diff --git a/web/src/views/apps/podman/IndexView.vue b/web/src/views/apps/podman/IndexView.vue index ab7c270d..2d64b5cb 100644 --- a/web/src/views/apps/podman/IndexView.vue +++ b/web/src/views/apps/podman/IndexView.vue @@ -66,8 +66,7 @@ const handleSaveStorageConfig = () => { mt-8 :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" /> @@ -94,8 +93,7 @@ const handleSaveStorageConfig = () => { mt-8 :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" /> diff --git a/web/src/views/apps/postgresql/IndexView.vue b/web/src/views/apps/postgresql/IndexView.vue index 94dd0e9a..a188c455 100644 --- a/web/src/views/apps/postgresql/IndexView.vue +++ b/web/src/views/apps/postgresql/IndexView.vue @@ -81,8 +81,7 @@ const handleClearLog = async () => { mt-8 :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" /> @@ -109,8 +108,7 @@ const handleClearLog = async () => { mt-8 :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" /> diff --git a/web/src/views/apps/redis/IndexView.vue b/web/src/views/apps/redis/IndexView.vue index 7064af0a..fda69576 100644 --- a/web/src/views/apps/redis/IndexView.vue +++ b/web/src/views/apps/redis/IndexView.vue @@ -66,8 +66,7 @@ const handleSaveConfig = () => { mt-8 :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" /> diff --git a/web/src/views/apps/rsync/IndexView.vue b/web/src/views/apps/rsync/IndexView.vue index 9c2126c4..0aa13ed8 100644 --- a/web/src/views/apps/rsync/IndexView.vue +++ b/web/src/views/apps/rsync/IndexView.vue @@ -238,8 +238,7 @@ onMounted(() => { mt-8 :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" /> diff --git a/web/src/views/apps/supervisor/IndexView.vue b/web/src/views/apps/supervisor/IndexView.vue index 5b83f173..3197bc35 100644 --- a/web/src/views/apps/supervisor/IndexView.vue +++ b/web/src/views/apps/supervisor/IndexView.vue @@ -345,8 +345,7 @@ onUnmounted(() => { mt-8 :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" /> @@ -439,8 +438,7 @@ onUnmounted(() => { mt-8 :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" /> diff --git a/web/src/views/container/ContainerView.vue b/web/src/views/container/ContainerView.vue index 707f2551..0defd770 100644 --- a/web/src/views/container/ContainerView.vue +++ b/web/src/views/container/ContainerView.vue @@ -457,8 +457,7 @@ onMounted(() => { mt-8 :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true, + smoothScrolling: true, readOnly: true }" /> diff --git a/web/src/views/task/CreateModal.vue b/web/src/views/task/CreateModal.vue index 40b38b6b..eb2211ee 100644 --- a/web/src/views/task/CreateModal.vue +++ b/web/src/views/task/CreateModal.vue @@ -120,8 +120,7 @@ onMounted(() => { mt-8 :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" /> diff --git a/web/src/views/task/CronView.vue b/web/src/views/task/CronView.vue index dc156af1..de75a2e4 100644 --- a/web/src/views/task/CronView.vue +++ b/web/src/views/task/CronView.vue @@ -266,8 +266,7 @@ onUnmounted(() => { mt-8 :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" /> diff --git a/web/src/views/toolbox/SystemView.vue b/web/src/views/toolbox/SystemView.vue index 162972c2..1e243637 100644 --- a/web/src/views/toolbox/SystemView.vue +++ b/web/src/views/toolbox/SystemView.vue @@ -148,8 +148,7 @@ const handleSyncTime = () => { mt-8 :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" /> diff --git a/web/src/views/website/EditView.vue b/web/src/views/website/EditView.vue index bb844cf4..287e438d 100644 --- a/web/src/views/website/EditView.vue +++ b/web/src/views/website/EditView.vue @@ -350,8 +350,7 @@ const onCreateListen = () => { height="60vh" :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" /> @@ -388,8 +387,7 @@ const onCreateListen = () => { height="60vh" :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" /> diff --git a/web/src/views/website/SettingView.vue b/web/src/views/website/SettingView.vue index 707868ea..d0f4d8a4 100644 --- a/web/src/views/website/SettingView.vue +++ b/web/src/views/website/SettingView.vue @@ -47,8 +47,7 @@ onMounted(() => { mt-8 :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" /> @@ -68,8 +67,7 @@ onMounted(() => { mt-8 :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" /> @@ -89,8 +87,7 @@ onMounted(() => { mt-8 :options="{ automaticLayout: true, - formatOnType: true, - formatOnPaste: true + smoothScrolling: true }" />