From 066cbce1201bff7ede6fffeb03fe84ec4fb155f4 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Thu, 25 Aug 2022 15:21:16 +0800 Subject: [PATCH] perf: refine system settings form Signed-off-by: Ryan Wang --- packages/shared/src/layouts/index.ts | 1 - .../system/settings/CodeInjectSettings.vue | 29 +++++++++++++ .../system/settings/CommentSettings.vue | 41 +++++++++++++++++++ .../system/settings/GeneralSettings.vue | 1 - .../system/settings/NotificationSettings.vue | 10 +---- src/modules/system/settings/PostSettings.vue | 34 +++++++++++++++ src/modules/system/settings/SeoSettings.vue | 25 +++++++++++ src/modules/system/settings/UserSettings.vue | 24 +++++++++++ .../layouts/SystemSettingsLayout.vue | 27 +++++++++++- src/modules/system/settings/module.ts | 33 ++++++++++++++- 10 files changed, 212 insertions(+), 13 deletions(-) create mode 100644 src/modules/system/settings/CodeInjectSettings.vue create mode 100644 src/modules/system/settings/CommentSettings.vue create mode 100644 src/modules/system/settings/PostSettings.vue create mode 100644 src/modules/system/settings/SeoSettings.vue create mode 100644 src/modules/system/settings/UserSettings.vue rename {packages/shared/src => src/modules/system/settings}/layouts/SystemSettingsLayout.vue (76%) diff --git a/packages/shared/src/layouts/index.ts b/packages/shared/src/layouts/index.ts index d77733e4..b41bf495 100644 --- a/packages/shared/src/layouts/index.ts +++ b/packages/shared/src/layouts/index.ts @@ -1,4 +1,3 @@ export { default as BlankLayout } from "./BlankLayout.vue"; export { default as BasicLayout } from "./BasicLayout.vue"; -export { default as SystemSettingsLayout } from "./SystemSettingsLayout.vue"; export { default as PluginLayout } from "./PluginLayout.vue"; diff --git a/src/modules/system/settings/CodeInjectSettings.vue b/src/modules/system/settings/CodeInjectSettings.vue new file mode 100644 index 00000000..0e485182 --- /dev/null +++ b/src/modules/system/settings/CodeInjectSettings.vue @@ -0,0 +1,29 @@ + + diff --git a/src/modules/system/settings/CommentSettings.vue b/src/modules/system/settings/CommentSettings.vue new file mode 100644 index 00000000..8703c4fb --- /dev/null +++ b/src/modules/system/settings/CommentSettings.vue @@ -0,0 +1,41 @@ + + diff --git a/src/modules/system/settings/GeneralSettings.vue b/src/modules/system/settings/GeneralSettings.vue index b993f4c1..bace9340 100644 --- a/src/modules/system/settings/GeneralSettings.vue +++ b/src/modules/system/settings/GeneralSettings.vue @@ -4,7 +4,6 @@ import { VButton } from "@halo-dev/components";