Go to file
Ryan Wang 6d0e13365a feat: add formkit custom input of repeater (halo-dev/console#692)
#### What type of PR is this?

/kind feature
/milestone 2.0

#### What this PR does / why we need it:

为 FormKit 添加 Repeater 输入类型,用于让用户动态操作一个对象数组。

使用方式可以查阅:https://github.com/ruibaby/halo-console/tree/feat/formkit-repeater/docs/custom-formkit-input#repeater

#### Which issue(s) this PR fixes:

Fixes https://github.com/halo-dev/halo/issues/2529

#### Screenshots:

<img width="635" alt="image" src="https://user-images.githubusercontent.com/21301288/201640327-5eb0489a-2193-445d-9dfe-7405ae75a297.png">

#### Special notes for your reviewer:

/cc @halo-dev/sig-halo-console 

测试方式:

1. 按照 https://github.com/ruibaby/halo-console/tree/feat/formkit-repeater/docs/custom-formkit-input#repeater 文档,在主题或者插件中使用 FormKit Schema 的形式定义设置表单,然后对表单进行保存等设置,检查是否符合预期。
2. 或者使用 https://github.com/halo-sigs/theme-earth/tree/refactor/setting-spec 主题进行测试,这个分支已经对社交媒体和侧边栏进行了适配。可以在主题设置中测试社交媒体和侧边栏配置,检查在主题端的效果。

#### Does this PR introduce a user-facing change?

```release-note
为 FormKit 添加 Repeater 输入类型。
```
2022-11-15 07:48:17 +00:00
.changeset refactor: rename admin to console (halo-dev/console#634) 2022-10-09 06:56:33 +00:00
.github chore: add pull request template and remove auto assign config file (halo-dev/console#635) 2022-10-09 06:58:29 +00:00
.husky chore: remove the step to run unit tests and typecheck before git commit (halo-dev/console#658) 2022-10-24 03:22:10 +00:00
.vscode chore: update vscode extension recommendations 2022-08-31 23:35:46 +08:00
cypress chore: next major version base project (halo-dev/console#478) 2022-03-03 18:26:15 +08:00
docs feat: add formkit custom input of repeater (halo-dev/console#692) 2022-11-15 07:48:17 +00:00
packages feat: add formkit custom input of repeater (halo-dev/console#692) 2022-11-15 07:48:17 +00:00
public feat: change favicon to halo logo 2022-09-27 17:30:14 +08:00
src feat: add formkit custom input of repeater (halo-dev/console#692) 2022-11-15 07:48:17 +00:00
.dockerignore Add dockerignore file to ignore node_modules folder while building docker image (halo-dev/console#588) 2022-07-19 07:50:05 +00:00
.editorconfig refactor: upgrade codemirror version. (halo-dev/console#354) 2021-09-15 21:44:00 +08:00
.env.development refactor: set the root path of the development environment to /console (halo-dev/console#638) 2022-10-11 15:32:14 +00:00
.env.production refactor: improve login-related logic (halo-dev/console#617) 2022-09-22 12:46:12 +00:00
.eslintrc.cjs chore: use vue/vue3-recommended eslint plugin 2022-08-30 17:30:43 +08:00
.gitignore chore: use pnpm's workspace feature to manage base components (halo-dev/console#579) 2022-06-14 15:56:55 +08:00
.gitpod.yml chore: update gitpod config 2022-09-09 19:17:22 +08:00
.npmignore refactor: refactor post preview and private post view. 2019-12-19 17:50:23 +08:00
.npmrc chore: bump dependencies 2022-08-23 11:10:29 +08:00
Dockerfile Refactor GitHub workflow configuration (halo-dev/console#589) 2022-07-19 19:31:11 +08:00
LICENSE release: 1.2.0. 2020-01-05 22:39:18 +08:00
Makefile Add Makefile for convenient operations (halo-dev/console#641) 2022-10-13 10:00:16 +00:00
OWNERS chore: create OWNERS file (halo-dev/console#548) 2022-04-12 14:16:03 +08:00
README.md docs: update repobeats analytics images source for readme file (halo-dev/console#659) 2022-10-24 08:04:11 +00:00
cypress.json chore: next major version base project (halo-dev/console#478) 2022-03-03 18:26:15 +08:00
env.d.ts refactor: router and menu generation (halo-dev/console#651) 2022-10-19 08:54:13 +00:00
index.html refactor: rename admin to console (halo-dev/console#634) 2022-10-09 06:56:33 +00:00
package.json feat: add formkit custom input of repeater (halo-dev/console#692) 2022-11-15 07:48:17 +00:00
pnpm-lock.yaml feat: add formkit custom input of repeater (halo-dev/console#692) 2022-11-15 07:48:17 +00:00
pnpm-workspace.yaml chore: use pnpm's workspace feature to manage base components (halo-dev/console#579) 2022-06-14 15:56:55 +08:00
postcss.config.js chore: configure tailwind css (halo-dev/console#504) 2022-03-11 11:51:40 +08:00
prettier.config.js chore: add tailwindcss prettier plugin and reformat code 2022-05-29 23:55:06 +08:00
tailwind.config.js feat: add comment management support (halo-dev/console#612) 2022-09-19 09:26:50 +00:00
tsconfig.app.json feat: add attachment management support (halo-dev/console#600) 2022-09-04 17:06:11 +00:00
tsconfig.json chore: next major version base project (halo-dev/console#478) 2022-03-03 18:26:15 +08:00
tsconfig.vite-config.json refactor: external static libraries 2022-09-26 13:16:40 +08:00
tsconfig.vitest.json chore: next major version base project (halo-dev/console#478) 2022-03-03 18:26:15 +08:00
vite.config.ts refactor: load the logo as an inline svg (halo-dev/console#664) 2022-10-26 03:10:14 +00:00
vitest.config.ts refactor: load the logo as an inline svg (halo-dev/console#664) 2022-10-26 03:10:14 +00:00

README.md

README

Halo logo

Halo 2.0 的管理端项目(原 halo-admin

GitHub release GitHub GitHub last commit GitHub Workflow Status Gitpod ready-to-code


注意

当前分支为 Halo 2.0 的 Console 端开发分支,目前 Halo 2.0 处于 Alpha 测试阶段,不建议从 1.5 直接升级也不建议在生产环境使用。Console 端稳定版本Halo 1.5)请查阅以下地址:

当前仓库已经将 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

状态

Repobeats analytics