halo/console
guqing d5f6dc2207
refactor: sorting parameters to maintain a unified API style (#3956)
#### What type of PR is this?
/kind improvement
/area core
/area console
/kind api-change
/milestone 2.6.x

#### What this PR does / why we need it:
重构排序参数以统一自定义 APIs 的风格
- 文章的排序参数字段名改为 `creationTimestamp`、`publishTime` 查询参数示例为 sort=creationTimestamp,desc
- 自定义页面排序参数字段名同文章
- 评论排序参数字段名为 `creationTimestamp`,`replyCount`,`lastReplyTime` 查询参数示例为 sort=creationTimestamp,desc

需要 Console 适配
#### Which issue(s) this PR fixes:

Fixes #3464

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

```release-note
重构排序参数以统一自定义 APIs 的风格
```
2023-05-25 12:42:17 +00:00
..
.changeset
.husky
.vscode
cypress
docs feat: add accepts and min,max props for attachment selector modal component (#3827) 2023-04-24 07:45:44 +00:00
packages refactor: sorting parameters to maintain a unified API style (#3956) 2023-05-25 12:42:17 +00:00
public
src refactor: sorting parameters to maintain a unified API style (#3956) 2023-05-25 12:42:17 +00:00
.editorconfig
.env.development Configure default external-url as slash (#3655) 2023-04-03 03:50:13 +00:00
.env.production
.eslintrc.cjs
.gitignore
.gitpod.yml
.npmignore
.npmrc
.prettierignore
Makefile Support publishing to maven central repository (#3767) 2023-04-18 14:28:23 +08:00
OWNERS
README.md chore: bump pnpm version to 8 (#3935) 2023-05-11 08:50:21 +00:00
cypress.json
env.d.ts
index.html
package.json chore: bump eslint and prettier related packages version (#3981) 2023-05-22 08:56:05 +00:00
pnpm-lock.yaml chore: bump eslint and prettier related packages version (#3981) 2023-05-22 08:56:05 +00:00
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 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