halo/console
Ryan Wang 4ce5d0c2cf
refactor: use tanstack query to refactor user-related fetching (#3548)
#### 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. 测试用户管理列表的数据请求 + 条件筛选是否正常。
2. 测试修改当前登录用户和其他用户的信息和密码是否正常。

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

```release-note
None
```
2023-03-23 13:44:34 +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 feat: add i18n supports for console (#3506) 2023-03-23 08:54:33 +00:00
public Move root to console 2023-03-02 15:49:22 +08:00
src refactor: use tanstack query to refactor user-related fetching (#3548) 2023-03-23 13:44:34 +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 feat: add i18n supports for console (#3506) 2023-03-23 08:54:33 +00:00
pnpm-lock.yaml feat: add i18n supports for console (#3506) 2023-03-23 08:54:33 +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 feat: add i18n supports for console (#3506) 2023-03-23 08:54:33 +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