mirror of https://github.com/halo-dev/halo-admin
refactor: rename admin to console (#634)
#### What type of PR is this? /kind improvement /milestone 2.0 #### What this PR does / why we need it: Ref https://github.com/halo-dev/halo/pull/2521 我们已经将 halo-admin 的命名改为了 console,所以相关命名需要同步修改。 #### Which issue(s) this PR fixes: Fixes https://github.com/halo-dev/halo/issues/2519 #### Special notes for your reviewer: /cc @halo-dev/sig-halo-console 测试方式: 1. 需要 `pnpm install && pnpm build:packages` 2. 测试后台功能是否正常。 PS:将在此 PR 合并之后发布 `@halo-dev/console-shared` 包到 npm。 #### Does this PR introduce a user-facing change? ```release-note None ```pull/636/head
parent
d246cc1e92
commit
e1155c35fa
|
@ -3,7 +3,7 @@
|
|||
"tag": "alpha",
|
||||
"initialVersions": {
|
||||
"@halo-dev/components": "0.0.0-alpha.0",
|
||||
"@halo-dev/admin-shared": "0.0.0-alpha.0"
|
||||
"@halo-dev/console-shared": "0.0.0-alpha.0"
|
||||
},
|
||||
"changesets": []
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
<body>
|
||||
<noscript>
|
||||
<strong>
|
||||
We're sorry but halo admin client doesn't work properly without
|
||||
We're sorry but halo console client doesn't work properly without
|
||||
JavaScript enabled. Please enable it to continue.
|
||||
</strong>
|
||||
</noscript>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "@halo-dev/admin-next",
|
||||
"name": "@halo-dev/console",
|
||||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"prepare": "husky install",
|
||||
|
@ -33,7 +33,7 @@
|
|||
"@formkit/inputs": "^1.0.0-beta.11",
|
||||
"@formkit/themes": "^1.0.0-beta.11",
|
||||
"@formkit/vue": "^1.0.0-beta.11",
|
||||
"@halo-dev/admin-shared": "workspace:*",
|
||||
"@halo-dev/console-shared": "workspace:*",
|
||||
"@halo-dev/api-client": "^0.0.35",
|
||||
"@halo-dev/components": "workspace:*",
|
||||
"@halo-dev/richtext-editor": "^0.0.0-alpha.7",
|
||||
|
|
|
@ -35,13 +35,13 @@
|
|||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/halo-dev/halo-admin.git",
|
||||
"url": "https://github.com/halo-dev/console.git",
|
||||
"directory": "packages/components"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/halo-dev/halo/issues"
|
||||
},
|
||||
"homepage": "https://github.com/halo-dev/halo-admin/tree/next/packages/components#readme",
|
||||
"homepage": "https://github.com/halo-dev/console/tree/main/packages/components#readme",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@histoire/plugin-vue": "^0.10.7",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "@halo-dev/admin-shared",
|
||||
"name": "@halo-dev/console-shared",
|
||||
"version": "0.0.0-alpha.5",
|
||||
"description": "",
|
||||
"files": [
|
||||
|
@ -17,25 +17,25 @@
|
|||
"name": "@halo-dev",
|
||||
"url": "https://github.com/halo-dev"
|
||||
},
|
||||
"main": "./dist/halo-admin-shared.iife.js",
|
||||
"module": "./dist/halo-admin-shared.es.js",
|
||||
"main": "./dist/halo-console-shared.iife.js",
|
||||
"module": "./dist/halo-console-shared.es.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/halo-admin-shared.es.js"
|
||||
"import": "./dist/halo-console-shared.es.js"
|
||||
},
|
||||
"./dist/style.css": "./dist/style.css"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/halo-dev/halo-admin.git",
|
||||
"url": "https://github.com/halo-dev/console.git",
|
||||
"directory": "packages/shared"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/halo-dev/halo/issues"
|
||||
},
|
||||
"homepage": "https://github.com/halo-dev/halo-admin/tree/next/shared/components#readme",
|
||||
"homepage": "https://github.com/halo-dev/console/tree/main/packages/shared#readme",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@halo-dev/components": "workspace:*"
|
||||
|
|
|
@ -25,9 +25,9 @@ export default defineConfig({
|
|||
outDir: path.resolve(__dirname, "dist"),
|
||||
lib: {
|
||||
entry: path.resolve(__dirname, "src/index.ts"),
|
||||
name: "HaloAdminShared",
|
||||
name: "HaloConsoleShared",
|
||||
formats: ["es", "iife"],
|
||||
fileName: (format) => `halo-admin-shared.${format}.js`,
|
||||
fileName: (format) => `halo-console-shared.${format}.js`,
|
||||
},
|
||||
rollupOptions: {
|
||||
external: ["vue", "vue-router", "@halo-dev/components"],
|
||||
|
|
|
@ -13,9 +13,9 @@ importers:
|
|||
'@formkit/inputs': ^1.0.0-beta.11
|
||||
'@formkit/themes': ^1.0.0-beta.11
|
||||
'@formkit/vue': ^1.0.0-beta.11
|
||||
'@halo-dev/admin-shared': workspace:*
|
||||
'@halo-dev/api-client': ^0.0.35
|
||||
'@halo-dev/components': workspace:*
|
||||
'@halo-dev/console-shared': workspace:*
|
||||
'@halo-dev/richtext-editor': ^0.0.0-alpha.7
|
||||
'@iconify-json/mdi': ^1.1.33
|
||||
'@iconify-json/vscode-icons': ^1.1.14
|
||||
|
@ -100,9 +100,9 @@ importers:
|
|||
'@formkit/inputs': 1.0.0-beta.11
|
||||
'@formkit/themes': 1.0.0-beta.11_tailwindcss@3.1.8
|
||||
'@formkit/vue': 1.0.0-beta.11_k5hp3txgeyj6le63abiyc7wx3u
|
||||
'@halo-dev/admin-shared': link:packages/shared
|
||||
'@halo-dev/api-client': 0.0.35
|
||||
'@halo-dev/components': link:packages/components
|
||||
'@halo-dev/console-shared': link:packages/shared
|
||||
'@halo-dev/richtext-editor': 0.0.0-alpha.7_vue@3.2.40
|
||||
'@tiptap/extension-character-count': 2.0.0-beta.199
|
||||
'@vueuse/components': 8.9.4_vue@3.2.40
|
||||
|
|
|
@ -63,9 +63,9 @@ export const setupLibraryExternal = (
|
|||
rename: `halo-components.iife.${staticSuffix}.js`,
|
||||
},
|
||||
{
|
||||
src: "./node_modules/@halo-dev/admin-shared/dist/halo-admin-shared.iife.js",
|
||||
dest: "assets/admin-shared",
|
||||
rename: `halo-admin-shared.iife.${staticSuffix}.js`,
|
||||
src: "./node_modules/@halo-dev/console-shared/dist/halo-console-shared.iife.js",
|
||||
dest: "assets/console-shared",
|
||||
rename: `halo-console-shared.iife.${staticSuffix}.js`,
|
||||
},
|
||||
];
|
||||
|
||||
|
@ -73,7 +73,7 @@ export const setupLibraryExternal = (
|
|||
ViteExternals({
|
||||
vue: "Vue",
|
||||
"vue-router": "VueRouter",
|
||||
"@halo-dev/shared": "HaloAdminShared",
|
||||
"@halo-dev/shared": "HaloConsoleShared",
|
||||
"@halo-dev/components": "HaloComponents",
|
||||
"@vueuse/core": "VueUse",
|
||||
"@vueuse/components": "VueUse",
|
||||
|
|
|
@ -2,7 +2,7 @@ import { usePluginStore } from "@/stores/plugin";
|
|||
import type {
|
||||
ExtensionPointName,
|
||||
ExtensionPointState,
|
||||
} from "@halo-dev/admin-shared";
|
||||
} from "@halo-dev/console-shared";
|
||||
import type { Plugin } from "@halo-dev/api-client";
|
||||
import type { Ref } from "vue";
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import type {
|
|||
MenuGroupType,
|
||||
MenuItemType,
|
||||
Plugin,
|
||||
} from "@halo-dev/admin-shared";
|
||||
} from "@halo-dev/console-shared";
|
||||
import { apiClient } from "@/utils/api-client";
|
||||
import { menus, minimenus, registerMenu } from "./router/menus.config";
|
||||
// setup
|
||||
|
|
|
@ -6,7 +6,7 @@ import UploadSelectorProvider from "./selector-providers/UploadSelectorProvider.
|
|||
import type {
|
||||
AttachmentLike,
|
||||
AttachmentSelectorPublicState,
|
||||
} from "@halo-dev/admin-shared";
|
||||
} from "@halo-dev/console-shared";
|
||||
import { useExtensionPointsState } from "@/composables/usePlugins";
|
||||
|
||||
withDefaults(
|
||||
|
|
|
@ -16,7 +16,7 @@ import { watchEffect, ref } from "vue";
|
|||
import { isImage } from "@/utils/image";
|
||||
import { useAttachmentControl } from "../../composables/use-attachment";
|
||||
import LazyImage from "@/components/image/LazyImage.vue";
|
||||
import type { AttachmentLike } from "@halo-dev/admin-shared";
|
||||
import type { AttachmentLike } from "@halo-dev/console-shared";
|
||||
import type { Attachment, Group } from "@halo-dev/api-client";
|
||||
import AttachmentUploadModal from "../AttachmentUploadModal.vue";
|
||||
import AttachmentFileTypeIcon from "../AttachmentFileTypeIcon.vue";
|
||||
|
|
|
@ -7,7 +7,7 @@ import {
|
|||
useDialog,
|
||||
} from "@halo-dev/components";
|
||||
|
||||
import type { AttachmentLike } from "@halo-dev/admin-shared";
|
||||
import type { AttachmentLike } from "@halo-dev/console-shared";
|
||||
import { apiClient } from "@/utils/api-client";
|
||||
import LazyImage from "@/components/image/LazyImage.vue";
|
||||
import type { Attachment } from "@halo-dev/api-client";
|
||||
|
|
|
@ -7,7 +7,7 @@ import type {
|
|||
} from "@halo-dev/api-client";
|
||||
import type { Ref } from "vue";
|
||||
import { ref, watch } from "vue";
|
||||
import type { AttachmentLike } from "@halo-dev/admin-shared";
|
||||
import type { AttachmentLike } from "@halo-dev/console-shared";
|
||||
import { apiClient } from "@/utils/api-client";
|
||||
import { useDialog } from "@halo-dev/components";
|
||||
import type { Content, Editor } from "@halo-dev/richtext-editor";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { BasicLayout, definePlugin } from "@halo-dev/admin-shared";
|
||||
import { BasicLayout, definePlugin } from "@halo-dev/console-shared";
|
||||
import AttachmentList from "./AttachmentList.vue";
|
||||
import AttachmentSelectorModal from "./components/AttachmentSelectorModal.vue";
|
||||
import { IconFolder } from "@halo-dev/components";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { BasicLayout, definePlugin } from "@halo-dev/admin-shared";
|
||||
import { BasicLayout, definePlugin } from "@halo-dev/console-shared";
|
||||
import { IconMessage } from "@halo-dev/components";
|
||||
import CommentList from "./CommentList.vue";
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import {
|
|||
VEntity,
|
||||
VEntityField,
|
||||
} from "@halo-dev/components";
|
||||
import type { PagesPublicState } from "@halo-dev/admin-shared";
|
||||
import type { PagesPublicState } from "@halo-dev/console-shared";
|
||||
import { useExtensionPointsState } from "@/composables/usePlugins";
|
||||
|
||||
const pagesPublicState = ref<PagesPublicState>({
|
||||
|
|
|
@ -8,7 +8,7 @@ import {
|
|||
IconPages,
|
||||
VButton,
|
||||
} from "@halo-dev/components";
|
||||
import { BasicLayout } from "@halo-dev/admin-shared";
|
||||
import { BasicLayout } from "@halo-dev/console-shared";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
|
||||
const route = useRoute();
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
import { BasicLayout, BlankLayout, definePlugin } from "@halo-dev/admin-shared";
|
||||
import {
|
||||
BasicLayout,
|
||||
BlankLayout,
|
||||
definePlugin,
|
||||
} from "@halo-dev/console-shared";
|
||||
import PageLayout from "./layouts/PageLayout.vue";
|
||||
import FunctionalPageList from "./FunctionalPageList.vue";
|
||||
import SinglePageList from "./SinglePageList.vue";
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
import { BasicLayout, BlankLayout, definePlugin } from "@halo-dev/admin-shared";
|
||||
import {
|
||||
BasicLayout,
|
||||
BlankLayout,
|
||||
definePlugin,
|
||||
} from "@halo-dev/console-shared";
|
||||
import { IconBookRead } from "@halo-dev/components";
|
||||
import PostList from "./PostList.vue";
|
||||
import PostEditor from "./PostEditor.vue";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { BasicLayout, definePlugin } from "@halo-dev/admin-shared";
|
||||
import { BasicLayout, definePlugin } from "@halo-dev/console-shared";
|
||||
import Dashboard from "./Dashboard.vue";
|
||||
import { IconDashboard } from "@halo-dev/components";
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { BasicLayout, definePlugin } from "@halo-dev/admin-shared";
|
||||
import { BasicLayout, definePlugin } from "@halo-dev/console-shared";
|
||||
import Menus from "./Menus.vue";
|
||||
import { IconListSettings } from "@halo-dev/components";
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import cloneDeep from "lodash.clonedeep";
|
|||
// hooks
|
||||
import { useThemeLifeCycle } from "../composables/use-theme";
|
||||
// types
|
||||
import { BasicLayout } from "@halo-dev/admin-shared";
|
||||
import { BasicLayout } from "@halo-dev/console-shared";
|
||||
import { useSettingForm } from "@/composables/use-setting-form";
|
||||
|
||||
// components
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { BlankLayout, definePlugin } from "@halo-dev/admin-shared";
|
||||
import { BlankLayout, definePlugin } from "@halo-dev/console-shared";
|
||||
import ThemeLayout from "./layouts/ThemeLayout.vue";
|
||||
import ThemeDetail from "./ThemeDetail.vue";
|
||||
import ThemeSetting from "./ThemeSetting.vue";
|
||||
|
|
|
@ -12,7 +12,7 @@ import { useSettingForm } from "@/composables/use-setting-form";
|
|||
|
||||
// components
|
||||
import { VButton, VCard, VPageHeader, VTabbar } from "@halo-dev/components";
|
||||
import { BasicLayout } from "@halo-dev/admin-shared";
|
||||
import { BasicLayout } from "@halo-dev/console-shared";
|
||||
|
||||
// types
|
||||
import type { Ref } from "vue";
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
import { BasicLayout, BlankLayout, definePlugin } from "@halo-dev/admin-shared";
|
||||
import {
|
||||
BasicLayout,
|
||||
BlankLayout,
|
||||
definePlugin,
|
||||
} from "@halo-dev/console-shared";
|
||||
import PluginLayout from "./layouts/PluginLayout.vue";
|
||||
import PluginList from "./PluginList.vue";
|
||||
import PluginSetting from "./PluginSetting.vue";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { BasicLayout, definePlugin } from "@halo-dev/admin-shared";
|
||||
import { BasicLayout, definePlugin } from "@halo-dev/console-shared";
|
||||
import RoleList from "./RoleList.vue";
|
||||
import RoleDetail from "./RoleDetail.vue";
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ import { ref, watch } from "vue";
|
|||
import { useRoute, useRouter } from "vue-router";
|
||||
|
||||
// types
|
||||
import { BasicLayout } from "@halo-dev/admin-shared";
|
||||
import { BasicLayout } from "@halo-dev/console-shared";
|
||||
import { useSettingForm } from "@/composables/use-setting-form";
|
||||
|
||||
// components
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { definePlugin } from "@halo-dev/admin-shared";
|
||||
import { definePlugin } from "@halo-dev/console-shared";
|
||||
import SystemSettingsLayout from "./layouts/SystemSettingsLayout.vue";
|
||||
import SystemSetting from "./SystemSetting.vue";
|
||||
import { IconSettings } from "@halo-dev/components";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<script lang="ts" setup>
|
||||
import { BasicLayout } from "@halo-dev/admin-shared";
|
||||
import { BasicLayout } from "@halo-dev/console-shared";
|
||||
import { apiClient } from "@/utils/api-client";
|
||||
import {
|
||||
IconUpload,
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
import { BasicLayout, BlankLayout, definePlugin } from "@halo-dev/admin-shared";
|
||||
import {
|
||||
BasicLayout,
|
||||
BlankLayout,
|
||||
definePlugin,
|
||||
} from "@halo-dev/console-shared";
|
||||
import UserProfileLayout from "./layouts/UserProfileLayout.vue";
|
||||
import UserList from "./UserList.vue";
|
||||
import UserDetail from "./UserDetail.vue";
|
||||
|
|
|
@ -6,7 +6,7 @@ import {
|
|||
IconUserSettings,
|
||||
} from "@halo-dev/components";
|
||||
|
||||
import type { MenuGroupType, MenuItemType } from "@halo-dev/admin-shared";
|
||||
import type { MenuGroupType, MenuItemType } from "@halo-dev/console-shared";
|
||||
|
||||
export const menus: MenuGroupType[] = [
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import type { RouteRecordRaw } from "vue-router";
|
||||
import NotFound from "@/views/exceptions/NotFound.vue";
|
||||
import Forbidden from "@/views/exceptions/Forbidden.vue";
|
||||
import { BasicLayout } from "@halo-dev/admin-shared";
|
||||
import { BasicLayout } from "@halo-dev/console-shared";
|
||||
import Setup from "@/views/system/Setup.vue";
|
||||
|
||||
export const routes: Array<RouteRecordRaw> = [
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import "@halo-dev/richtext-editor/dist/style.css";
|
||||
import "@halo-dev/components/dist/style.css";
|
||||
import "@/styles/tailwind.css";
|
||||
import "@halo-dev/admin-shared/dist/style.css";
|
||||
import "@halo-dev/console-shared/dist/style.css";
|
||||
|
|
Loading…
Reference in New Issue