halo/console
Ryan Wang a77756abad
refactor: use tanstack query to refactor system setting form fetching (#3606)
#### What type of PR is this?

/kind improvement

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

使用 [TanStack Query](https://github.com/TanStack/query) 重构系统设置表单的逻辑,移除无意义的重复请求。

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

Ref https://github.com/halo-dev/halo/issues/3360

#### Special notes for your reviewer:

测试方式:

1. 测试系统设置的表单加载是否正常,以及保存之后重载配置是否正常。

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

```release-note
None
```
2023-03-30 08:32:19 +00:00
..
.changeset Move root to console 2023-03-02 15:49:22 +08:00
.husky Refactor workflow for new console project (#3445) 2023-03-02 18:07:23 +08:00
.vscode Move root to console 2023-03-02 15:49:22 +08:00
cypress Move root to console 2023-03-02 15:49:22 +08:00
docs Move root to console 2023-03-02 15:49:22 +08:00
packages chore: bump the patch version of all console dependencies (#3617) 2023-03-29 13:44:14 +00:00
public Move root to console 2023-03-02 15:49:22 +08:00
src refactor: use tanstack query to refactor system setting form fetching (#3606) 2023-03-30 08:32:19 +00:00
.editorconfig Move root to console 2023-03-02 15:49:22 +08:00
.env.development Move root to console 2023-03-02 15:49:22 +08:00
.env.production Move root to console 2023-03-02 15:49:22 +08:00
.eslintrc.cjs Move root to console 2023-03-02 15:49:22 +08:00
.gitignore Refactor workflow for new console project (#3445) 2023-03-02 18:07:23 +08:00
.gitpod.yml Move root to console 2023-03-02 15:49:22 +08:00
.npmignore Move root to console 2023-03-02 15:49:22 +08:00
.npmrc Move root to console 2023-03-02 15:49:22 +08:00
.prettierignore feat: add i18n supports for console (#3506) 2023-03-23 08:54:33 +00:00
Makefile chore: solving the issue of generating API client causing unnecessary diffs (#3465) 2023-03-07 14:14:14 +00:00
OWNERS Refactor workflow for new console project (#3445) 2023-03-02 18:07:23 +08:00
README.md Move root to console 2023-03-02 15:49:22 +08:00
cypress.json Move root to console 2023-03-02 15:49:22 +08:00
env.d.ts Move root to console 2023-03-02 15:49:22 +08:00
index.html Move root to console 2023-03-02 15:49:22 +08:00
package.json chore: add FloatingDropdown to solve compatibility issues (#3622) 2023-03-30 04:10:13 +00:00
pnpm-lock.yaml chore: add FloatingDropdown to solve compatibility issues (#3622) 2023-03-30 04:10:13 +00:00
pnpm-workspace.yaml Move root to console 2023-03-02 15:49:22 +08:00
postcss.config.js Move root to console 2023-03-02 15:49:22 +08:00
prettier.config.js Move root to console 2023-03-02 15:49:22 +08:00
tailwind.config.js Move root to console 2023-03-02 15:49:22 +08:00
tsconfig.app.json feat: add i18n supports for console (#3506) 2023-03-23 08:54:33 +00:00
tsconfig.json Move root to console 2023-03-02 15:49:22 +08:00
tsconfig.vite-config.json Move root to console 2023-03-02 15:49:22 +08:00
tsconfig.vitest.json Move root to console 2023-03-02 15:49:22 +08:00
vite.config.ts fix: output dir of console (#3591) 2023-03-27 08:34:11 +00:00
vitest.config.ts Move root to console 2023-03-02 15:49:22 +08: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-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