From 095c74c40fffd6934ab96ca74f30aaf09233a1eb Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Fri, 24 Jun 2022 23:05:49 +0800 Subject: [PATCH] refactor: move route layouts to @halo-dev/admin-shared Signed-off-by: Ryan Wang --- index.html | 2 +- packages/shared/package.json | 7 +++- packages/shared/postcss.config.js | 6 ++++ packages/shared/src/assets/logo.svg | 1 + packages/shared/src/index.ts | 3 ++ .../shared/src}/layouts/BasicLayout.vue | 6 ++-- .../shared/src}/layouts/BlankLayout.vue | 0 .../src}/layouts/SystemSettingsLayout.vue | 0 .../shared/src}/layouts/UserProfileLayout.vue | 6 ++-- .../layouts/__tests__/BasicLayout.spec.ts | 0 {src => packages/shared/src}/layouts/index.ts | 0 packages/shared/src/styles/tailwind.css | 1 + packages/shared/src/types/extension.ts | 34 +++++++++++++++++++ packages/shared/src/utils/api-client.ts | 12 +++++++ packages/shared/tailwind.config.js | 24 +++++++++++++ packages/shared/vite.config.ts | 3 +- pnpm-lock.yaml | 5 +++ src/main.ts | 11 ++++-- src/modules/contents/attachments/module.ts | 3 +- src/modules/contents/comments/module.ts | 3 +- src/modules/contents/pages/module.ts | 3 +- src/modules/contents/posts/module.ts | 3 +- src/modules/dashboard/module.ts | 3 +- src/modules/interface/menus/module.ts | 3 +- src/modules/interface/themes/module.ts | 3 +- src/modules/system/plugins/module.ts | 3 +- src/modules/system/roles/module.ts | 3 +- src/modules/system/settings/module.ts | 3 +- src/modules/system/users/module.ts | 8 +++-- src/router/routes.config.ts | 2 +- src/setup/setupStyles.ts | 1 + src/utils/api-client.ts | 3 +- .../exceptions/__tests__/NotFound.spec.ts | 7 ++++ 33 files changed, 137 insertions(+), 35 deletions(-) create mode 100644 packages/shared/postcss.config.js create mode 100644 packages/shared/src/assets/logo.svg rename {src => packages/shared/src}/layouts/BasicLayout.vue (96%) rename {src => packages/shared/src}/layouts/BlankLayout.vue (100%) rename {src => packages/shared/src}/layouts/SystemSettingsLayout.vue (100%) rename {src => packages/shared/src}/layouts/UserProfileLayout.vue (94%) rename {src => packages/shared/src}/layouts/__tests__/BasicLayout.spec.ts (100%) rename {src => packages/shared/src}/layouts/index.ts (100%) create mode 100644 packages/shared/src/styles/tailwind.css create mode 100644 packages/shared/src/utils/api-client.ts create mode 100644 packages/shared/tailwind.config.js create mode 100644 src/views/exceptions/__tests__/NotFound.spec.ts diff --git a/index.html b/index.html index 0cadf6aa..b856187c 100644 --- a/index.html +++ b/index.html @@ -13,8 +13,8 @@ - +