halo/console
Ryan Wang bb0a5f114a
feat: record the post query conditions in the route query parameters (#4102)
#### What type of PR is this?

/area console
/kind feature
/milestone 2.8.x

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

在文章数据管理列表页面路由中记录查询条件,包括分页信息、筛选信息等。可以保证在刷新页面或者从文章编辑页面返回时保留之前的查询状态。

<img width="1758" alt="image" src="https://github.com/halo-dev/halo/assets/21301288/270948d6-d585-4b36-ad3a-93064cf47548">

TODO:

- [x] 记录筛选条件,因为路由参数只能使用基本类型,但是原来的筛选条件的变量都是完整对象。

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

Fixes #4098 

#### Special notes for your reviewer:

需要测试:

1. 文章管理列表的所有筛选项是否可以正常工作。
2. 尝试设置部分筛选,然后刷新页面,观察筛选条件是否正常保留。

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

```release-note
Console 端的文章管理列表支持在地址栏记录筛选条件。
```
2023-07-12 06:17:20 +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 feat: make plugin tabs extensible (#4041) 2023-07-07 04:38:11 +00:00
packages feat: record the post query conditions in the route query parameters (#4102) 2023-07-12 06:17:20 +00:00
public Move root to console 2023-03-02 15:49:22 +08:00
src feat: record the post query conditions in the route query parameters (#4102) 2023-07-12 06:17:20 +00:00
.editorconfig Move root to console 2023-03-02 15:49:22 +08:00
.env.development Configure default external-url as slash (#3655) 2023-04-03 03:50:13 +00:00
.env.production Move root to console 2023-03-02 15:49:22 +08:00
.eslintrc.cjs chore: improve the console project infrastructure (#4105) 2023-06-26 03:54:17 +00: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 Support publishing to maven central repository (#3767) 2023-04-18 14:28:23 +08:00
OWNERS Refactor workflow for new console project (#3445) 2023-03-02 18:07:23 +08:00
README.md chore: bump pnpm version to 8 (#3935) 2023-05-11 08:50:21 +00:00
cypress.json Move root to console 2023-03-02 15:49:22 +08:00
env.d.ts chore: improve the console project infrastructure (#4105) 2023-06-26 03:54:17 +00:00
index.html perf: remove html lang attribute in console (#4085) 2023-06-19 01:30:10 +00:00
package.json feat: record the post query conditions in the route query parameters (#4102) 2023-07-12 06:17:20 +00:00
pnpm-lock.yaml feat: record the post query conditions in the route query parameters (#4102) 2023-07-12 06:17:20 +00:00
pnpm-workspace.yaml Move root to console 2023-03-02 15:49:22 +08:00
postcss.config.js fix: modal height issue in ios devices (#4106) 2023-06-25 02:06:14 +00: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 chore: improve the console project infrastructure (#4105) 2023-06-26 03:54:17 +00:00
tsconfig.json chore: improve the console project infrastructure (#4105) 2023-06-26 03:54:17 +00:00
tsconfig.node.json chore: improve the console project infrastructure (#4105) 2023-06-26 03:54:17 +00: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 的概念。

开发环境运行

npm install -g pnpm@8
pnpm install 
pnpm build:packages
pnpm dev

生产构建

pnpm build

状态

Repobeats analytics