mirror of https://github.com/halo-dev/halo-admin
![]() #### What type of PR is this? /kind feature /milestone 2.0 #### What this PR does / why we need it: 为 Codemirror 组件添加更多预设语言支持,以及支持从外部传入语言包。 目前预设支持: 1. yaml 2. html 3. javascript 4. css 5. json 使用方式: 1. 使用预设 ```vue <script lang="ts" setup> import { VCodemirror } from "@halo-dev/components" </script> <template> <VCodemirror language="html" /> </template> ``` 2. 外部引入 ```bash pnpm install @codemirror/lang-java ``` ```vue <script lang="ts" setup> import { VCodemirror } from "@halo-dev/components" import { java } from "@codemirror/lang-java" </script> <template> <VCodemirror :language="java()" /> </template> ``` #### Special notes for your reviewer: /cc @halo-dev/sig-halo-console #### Does this PR introduce a user-facing change? ```release-note None ``` |
||
---|---|---|
.changeset | ||
.github | ||
.husky | ||
.vscode | ||
cypress | ||
docs | ||
packages | ||
public | ||
src | ||
.dockerignore | ||
.editorconfig | ||
.env.development | ||
.env.production | ||
.eslintrc.cjs | ||
.gitignore | ||
.gitpod.yml | ||
.npmignore | ||
.npmrc | ||
Dockerfile | ||
LICENSE | ||
Makefile | ||
OWNERS | ||
README.md | ||
cypress.json | ||
env.d.ts | ||
index.html | ||
package.json | ||
pnpm-lock.yaml | ||
pnpm-workspace.yaml | ||
postcss.config.js | ||
prettier.config.js | ||
tailwind.config.js | ||
tsconfig.app.json | ||
tsconfig.json | ||
tsconfig.vite-config.json | ||
tsconfig.vitest.json | ||
vite.config.ts | ||
vitest.config.ts |
README.md
README
Halo 2.0 的管理端项目(原 halo-admin)
注意
当前分支为 Halo 2.0 的 Console 端开发分支,目前 Halo 2.0 处于 Alpha 测试阶段,不建议从 1.5 直接升级,也不建议在生产环境使用。Console 端稳定版本(Halo 1.5)请查阅以下地址:
- 1.5 分支:https://github.com/halo-dev/console/tree/release-1.5
- 1.6 分支:https://github.com/halo-dev/console/tree/release-1.6
当前仓库已经将
halo-admin
改为了console
。但对于 Halo 1.x 版本,依旧保持 halo-admin 的概念。
开发环境运行
# pnpm@7.0.0+
npm install -g pnpm
pnpm install
pnpm build:packages
pnpm dev
生产构建
pnpm build