From dae208f5434651952086da7a11b90fcb6f085c6e Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Tue, 23 Aug 2022 17:33:45 +0800 Subject: [PATCH] refactor: user detail page Signed-off-by: Ryan Wang --- packages/shared/src/layouts/index.ts | 1 - src/formkit/theme.ts | 6 +- src/modules/system/users/PasswordChange.vue | 72 ------------------- .../system/users/ProfileModification.vue | 37 ---------- .../users}/layouts/UserProfileLayout.vue | 59 ++++++++++----- src/modules/system/users/module.ts | 21 +----- 6 files changed, 50 insertions(+), 146 deletions(-) delete mode 100644 src/modules/system/users/PasswordChange.vue delete mode 100644 src/modules/system/users/ProfileModification.vue rename {packages/shared/src => src/modules/system/users}/layouts/UserProfileLayout.vue (61%) diff --git a/packages/shared/src/layouts/index.ts b/packages/shared/src/layouts/index.ts index a0d0e50c..d77733e4 100644 --- a/packages/shared/src/layouts/index.ts +++ b/packages/shared/src/layouts/index.ts @@ -1,5 +1,4 @@ export { default as BlankLayout } from "./BlankLayout.vue"; export { default as BasicLayout } from "./BasicLayout.vue"; export { default as SystemSettingsLayout } from "./SystemSettingsLayout.vue"; -export { default as UserProfileLayout } from "./UserProfileLayout.vue"; export { default as PluginLayout } from "./PluginLayout.vue"; diff --git a/src/formkit/theme.ts b/src/formkit/theme.ts index cddacb07..40b488e1 100644 --- a/src/formkit/theme.ts +++ b/src/formkit/theme.ts @@ -4,7 +4,7 @@ const textClassification = { inner: "inline-flex items-center w-full relative box-border border border-gray-300 formkit-invalid:border-red-500 h-9 rounded-base overflow-hidden focus-within:border-primary mt-2 sm:mt-0", input: - "outline-0 bg-white antialiased resize-none w-full text-black block transition-all appearance-none h-9 px-3 text-sm", + "outline-0 bg-white antialiased resize-none w-full text-black block transition-all appearance-none h-full px-3 text-sm", }; const boxClassification = { @@ -74,8 +74,10 @@ const theme: Record> = { "datetime-local": textClassification, textarea: { ...textClassification, + inner: + "inline-flex items-center w-full relative box-border border border-gray-300 formkit-invalid:border-red-500 h-32 rounded-base overflow-hidden focus-within:border-primary mt-2 sm:mt-0", input: - "outline-0 bg-white antialiased w-full text-black block transition-all appearance-none h-32 px-3 py-2 text-sm", + "outline-0 bg-white antialiased w-full text-black block transition-all appearance-none h-full px-3 py-2 text-sm", }, }; diff --git a/src/modules/system/users/PasswordChange.vue b/src/modules/system/users/PasswordChange.vue deleted file mode 100644 index a861de59..00000000 --- a/src/modules/system/users/PasswordChange.vue +++ /dev/null @@ -1,72 +0,0 @@ - - diff --git a/src/modules/system/users/ProfileModification.vue b/src/modules/system/users/ProfileModification.vue deleted file mode 100644 index 57b008da..00000000 --- a/src/modules/system/users/ProfileModification.vue +++ /dev/null @@ -1,37 +0,0 @@ - - diff --git a/packages/shared/src/layouts/UserProfileLayout.vue b/src/modules/system/users/layouts/UserProfileLayout.vue similarity index 61% rename from packages/shared/src/layouts/UserProfileLayout.vue rename to src/modules/system/users/layouts/UserProfileLayout.vue index 5d15fc27..ed9d28f1 100644 --- a/packages/shared/src/layouts/UserProfileLayout.vue +++ b/src/modules/system/users/layouts/UserProfileLayout.vue @@ -1,10 +1,11 @@