diff --git a/.changeset/pre.json b/.changeset/pre.json index fbcafdd6..694d1d35 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -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": [] } diff --git a/index.html b/index.html index b9abcb11..a8fdc44b 100644 --- a/index.html +++ b/index.html @@ -48,7 +48,7 @@
diff --git a/package.json b/package.json index 8f685ac6..183822ce 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/components/package.json b/packages/components/package.json index 529ebf40..133b69c5 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -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", diff --git a/packages/shared/package.json b/packages/shared/package.json index b2775691..c68e99d8 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -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:*" diff --git a/packages/shared/vite.config.ts b/packages/shared/vite.config.ts index a0ae3fb0..70b64146 100644 --- a/packages/shared/vite.config.ts +++ b/packages/shared/vite.config.ts @@ -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"], diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 98dceac3..ce121c79 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -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 diff --git a/src/build/library-external.ts b/src/build/library-external.ts index e702d638..02dde28b 100644 --- a/src/build/library-external.ts +++ b/src/build/library-external.ts @@ -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", diff --git a/src/composables/usePlugins.ts b/src/composables/usePlugins.ts index bb8e3203..7c3ce7cd 100644 --- a/src/composables/usePlugins.ts +++ b/src/composables/usePlugins.ts @@ -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"; diff --git a/src/main.ts b/src/main.ts index 9539c0cb..a82939e6 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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 diff --git a/src/modules/contents/attachments/components/AttachmentSelectorModal.vue b/src/modules/contents/attachments/components/AttachmentSelectorModal.vue index 5050491b..ad99df3b 100644 --- a/src/modules/contents/attachments/components/AttachmentSelectorModal.vue +++ b/src/modules/contents/attachments/components/AttachmentSelectorModal.vue @@ -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( diff --git a/src/modules/contents/attachments/components/selector-providers/CoreSelectorProvider.vue b/src/modules/contents/attachments/components/selector-providers/CoreSelectorProvider.vue index 9ae389a8..e65e6ac6 100644 --- a/src/modules/contents/attachments/components/selector-providers/CoreSelectorProvider.vue +++ b/src/modules/contents/attachments/components/selector-providers/CoreSelectorProvider.vue @@ -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"; diff --git a/src/modules/contents/attachments/components/selector-providers/UploadSelectorProvider.vue b/src/modules/contents/attachments/components/selector-providers/UploadSelectorProvider.vue index cd1150a3..72ec2441 100644 --- a/src/modules/contents/attachments/components/selector-providers/UploadSelectorProvider.vue +++ b/src/modules/contents/attachments/components/selector-providers/UploadSelectorProvider.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"; diff --git a/src/modules/contents/attachments/composables/use-attachment.ts b/src/modules/contents/attachments/composables/use-attachment.ts index 12c70493..678da5f7 100644 --- a/src/modules/contents/attachments/composables/use-attachment.ts +++ b/src/modules/contents/attachments/composables/use-attachment.ts @@ -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"; diff --git a/src/modules/contents/attachments/module.ts b/src/modules/contents/attachments/module.ts index 961b6e73..eebdedf7 100644 --- a/src/modules/contents/attachments/module.ts +++ b/src/modules/contents/attachments/module.ts @@ -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"; diff --git a/src/modules/contents/comments/module.ts b/src/modules/contents/comments/module.ts index 49e41e8e..91052e36 100644 --- a/src/modules/contents/comments/module.ts +++ b/src/modules/contents/comments/module.ts @@ -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"; diff --git a/src/modules/contents/pages/FunctionalPageList.vue b/src/modules/contents/pages/FunctionalPageList.vue index 75edd1d0..0a109dc0 100644 --- a/src/modules/contents/pages/FunctionalPageList.vue +++ b/src/modules/contents/pages/FunctionalPageList.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