Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
926267e
update
chenshuai2144 Sep 16, 2021
8ee7e00
fix: ProFormFieldSet validator params error (#9136)
heng1025 Sep 27, 2021
e517b30
update advanced-form (#9149)
whitedive Oct 9, 2021
1e5bd2f
修复select无选中时的显示BUG (#9334)
lzskyline Nov 25, 2021
8adf6dd
merge
chenshuai2144 Apr 26, 2022
e13466a
fix: 基本信息设置里 submitter 属性错误 (#9795)
iainlau May 10, 2022
8bcd230
fix
chenshuai2144 Mar 22, 2023
e1b5ad5
change
chenshuai2144 Mar 22, 2023
0d8af97
change
chenshuai2144 Mar 22, 2023
1676e6b
remove
chenshuai2144 Mar 22, 2023
65ff0bb
try
chenshuai2144 Mar 22, 2023
408a5cf
try
chenshuai2144 Mar 22, 2023
ee65696
try
chenshuai2144 Mar 22, 2023
17c3966
try
chenshuai2144 Mar 22, 2023
91cc2e9
css
chenshuai2144 Mar 23, 2023
440197a
css
chenshuai2144 Mar 23, 2023
93d87ca
css
chenshuai2144 Mar 23, 2023
dafaf23
优化丢数据 异常
chenshuai2144 Mar 23, 2023
bea2c5b
优化丢数据 异常
chenshuai2144 Mar 24, 2023
22d7518
chore: update lock file
chenshuai2144 Jun 8, 2023
0c117ac
remove commit lint
chenshuai2144 Jun 8, 2023
8f9d476
chore: update pnpm lock file
chenshuai2144 Aug 26, 2023
847f013
chore: update pnpm lock file
chenshuai2144 Aug 26, 2023
49521b8
chore: renmae (#10914)
Wxh16144 Aug 28, 2023
d55255d
feat(list): remove less (#10938)
kiner-tang Sep 6, 2023
795119e
chore: 更新tableList的antd&procomponent&umi的用法 (#10936)
hms181231 Sep 6, 2023
0e9dfac
💄 (sresult):remove less (#10941)
Zian502 Sep 6, 2023
b2882d3
chore: solve test fail issue (#10939)
kiner-tang Sep 13, 2023
adc236c
fix: solve dropdown label display unexpected (#10966)
kiner-tang Sep 15, 2023
22f4469
feat: optimize style (#10973)
kiner-tang Sep 16, 2023
7c83d3b
feat: remove profile less (#10972)
kiner-tang Sep 16, 2023
5b9d26d
refactor: Select.Options => options (#10971)
kiner-tang Sep 16, 2023
9f40f57
fix: solve search-list tab route work unexpected issue. (#10970)
kiner-tang Sep 16, 2023
344ccd6
✨ feat(account): remove less (#10975)
xieww Sep 18, 2023
2ce8f40
docs: update login theme
chenshuai2144 Sep 29, 2023
b652775
feat✨(exception):align antd 5.x (#11009)
Zian502 Oct 13, 2023
da0f9a7
chore: user模块去掉less和样式调整 (#11002)
hms181231 Oct 13, 2023
c965935
chore: upgrade charts (#11011)
lxfu1 Oct 20, 2023
8b50be3
update
chenshuai2144 Dec 7, 2023
6fa0d16
merge
chenshuai2144 Dec 7, 2023
6551834
Merge branch 'master' into v6-all-block
chenshuai2144 Dec 7, 2023
91429eb
修复样式错误
chenshuai2144 Dec 7, 2023
b4069b2
优化一些小问题
chenshuai2144 Dec 7, 2023
690e210
优化一些小问题
chenshuai2144 Dec 7, 2023
f8c16d6
优化一些小问题
chenshuai2144 Dec 7, 2023
985b920
优化一些小问题
chenshuai2144 Dec 8, 2023
e6a5bf9
优化一些小问题
chenshuai2144 Dec 10, 2023
0db71a0
docs: update snapshot
chenshuai2144 Dec 13, 2023
c787dec
docs: update snapshot
chenshuai2144 Dec 13, 2023
adfaa91
chore: add path for 404 routes (#11096)
PeachScript Dec 18, 2023
f33f67d
update snapshot
chenshuai2144 Jan 5, 2024
ed1ba78
Fix blank page error after `npm start` (#11157)
Dieken Feb 23, 2024
a1c8d59
Update routes.ts (#11168)
sy296565890 Mar 27, 2024
6565b5c
fix: adjusting workplace project notice card style (#11295)
selicens Aug 30, 2024
2b86d40
fix: 修复标题与副标题内容不一致的问题 (#11382)
jessicaliu2009 Jun 4, 2025
fb92e03
chore: merge master
afc163 Jul 7, 2025
4e0ce81
resolve pacakge.json conflict
afc163 Jul 7, 2025
c37d979
chore: update code via biome lint
afc163 Jul 7, 2025
a25a0cf
chore: fix biome lint errors
afc163 Jul 7, 2025
eb51b87
chore: fix biome lint errors
afc163 Jul 7, 2025
33befab
fix: 修复标题与副标题内容不一致的问题 (#11382)
jessicaliu2009 Jun 4, 2025
732ebc8
test: update snapshot
afc163 Jul 7, 2025
4607f6b
chore: fix ts errors
afc163 Jul 7, 2025
faedf51
fix: fix styles path
afc163 Jul 7, 2025
3b9b540
chore: update files
afc163 Jul 7, 2025
ef87287
refactor: update jest config and fix dayjs type imports
afc163 Jul 7, 2025
012fc65
Create .npmrc
afc163 Jul 7, 2025
cedc8d4
Merge pull request #11501 from ant-design/v6-merge-master
afc163 Jul 7, 2025
6f95fb6
chore: merge v6-full-edition to all-blocks
afc163 Jul 7, 2025
fe28bc4
chore: fix deps
afc163 Jul 7, 2025
72ae350
Merge pull request #11503 from ant-design/all-blocks-merge
afc163 Jul 7, 2025
f54cc03
chore: add github action of deploying to github pages
afc163 Jul 7, 2025
c12308d
feat: add loading component with skeleton animation (#11505)
afc163 Jul 7, 2025
8ebfb27
chore(deps-dev): bump @types/jest from 29.5.14 to 30.0.0 (#11508)
dependabot[bot] Jul 8, 2025
6b15a09
Merge branch 'all-blocks' into v6-full-edition
afc163 Jul 8, 2025
d078606
chore(deps-dev): bump jest from 29.7.0 to 30.0.4 (#11507)
dependabot[bot] Jul 8, 2025
99d6f8d
chore: merge into all-blocks (#11509)
afc163 Jul 8, 2025
6f21344
feat: add loading.tsx (#11510)
afc163 Jul 8, 2025
cf2d02a
refactor: update UI components and styles, adjust configs (#11511)
afc163 Jul 8, 2025
a85bd10
chore: add exportStatic option in config
afc163 Jul 8, 2025
233e1b0
chore: add exportStatic option in config (#11512)
afc163 Jul 8, 2025
a3e7bf2
feat: add card wrappers to error pages and buttons to sales tabs (#11…
afc163 Jul 8, 2025
8964986
Update biome.json
afc163 Jul 8, 2025
bbe47a8
chore: fix biome config
afc163 Jul 8, 2025
2becc2a
chore: fix biome config
afc163 Jul 8, 2025
9d17ae9
Merge branch 'all-blocks' into master
afc163 Jul 8, 2025
0429e3c
Merge pull request #11516 from ant-design/master
afc163 Jul 8, 2025
7d6f6a2
fix: biome schema
afc163 Jul 8, 2025
5b8fdd7
fix: biome schema and errors (#11518)
afc163 Jul 8, 2025
c255e70
refactor: remove Fragment wrappers and simplify jest config
afc163 Jul 8, 2025
0b4b3da
Merge pull request #11519 from ant-design/master
afc163 Jul 8, 2025
f0ad4db
chore: build preview with setting drawer (#11515)
afc163 Jul 8, 2025
e23cbff
refactor: remove react and antd warnings (#11527)
afc163 Jul 12, 2025
b5fbba7
fix: 404 path in routes.ts (#11528)
GeoDaoyu Jul 13, 2025
0060edb
Update README.md
afc163 Jul 8, 2025
c1dae84
refactor: simplify routes and remove unused account pages
afc163 Jul 8, 2025
16ad26c
test: add @types/node in devDeps
afc163 Jul 8, 2025
38fe08a
chore(deps): bump dawidd6/action-download-artifact (#11395)
dependabot[bot] Jul 8, 2025
8ba121d
docs: Update screenshot
afc163 Jul 14, 2025
cb64940
refactor: remove unused pages
afc163 Jul 14, 2025
eb378dd
chore(deps): update and remove unused deps
zzjiaxiang Jul 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- all-blocks

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Bun
uses: oven-sh/setup-bun@v2

- name: Install dependencies with Bun
run: bun install

- name: Build project
run: bun run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
cname: preview.pro.ant.design
6 changes: 3 additions & 3 deletions .github/workflows/preview-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
steps:
- name: download pr artifact
uses: dawidd6/action-download-artifact@v4
uses: dawidd6/action-download-artifact@v6
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
name: pr
Expand All @@ -29,7 +29,7 @@ jobs:
run: echo "::set-output name=id::$(<pr-id.txt)"

- name: download dist artifact
uses: dawidd6/action-download-artifact@v4
uses: dawidd6/action-download-artifact@v6
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
workflow_conclusion: success
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure'
steps:
- name: download pr artifact
uses: dawidd6/action-download-artifact@v4
uses: dawidd6/action-download-artifact@v6
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
name: pr
Expand Down
2 changes: 1 addition & 1 deletion .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"**/*.{js,jsx,tsx,ts,md,css,less,json,yml}": [
"**/*.{js,jsx,tsx,ts,md,css,less,json}": [
"npx @biomejs/biome check --write"
]
}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
13 changes: 3 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Language : 🇺🇸 | [🇨🇳](./README.zh-CN.md) | [🇷🇺](./README.ru-RU.md) | [🇹🇷](./README.tr-TR.md) | [🇯🇵](./README.ja-JP.md) | [🇫🇷](./README.fr-FR.md) | [🇵🇹](./README.pt-BR.md) | [🇸🇦](./README.ar-DZ.md) | [🇪🇸](./README.es-ES.md)
Language: 🇺🇸 | [🇨🇳](./README.zh-CN.md) | [🇷🇺](./README.ru-RU.md) | [🇹🇷](./README.tr-TR.md) | [🇯🇵](./README.ja-JP.md) | [🇫🇷](./README.fr-FR.md) | [🇵🇹](./README.pt-BR.md) | [🇸🇦](./README.ar-DZ.md) | [🇪🇸](./README.es-ES.md)

<h1 align="center">Ant Design Pro</h1>

Expand All @@ -12,7 +12,8 @@ An out-of-box UI solution for enterprise applications as a React boilerplate.
[![Checked with Biome](https://img.shields.io/badge/Checked_with-Biome-60a5fa?style=flat&logo=biome)](https://biomejs.dev)
[![](https://badgen.net/badge/icon/Ant%20Design?icon=https://gw.alipayobjects.com/zos/antfincdn/Pp4WPgVDB3/KDpgvguMpGfqaHPjicRK.svg&label)](https://ant.design/)

![](https://github.com/user-attachments/assets/fde29061-3d9a-4397-8ac2-397b0e033ef5)
<img width="1718" height="1191" alt="light theme preview" src="https://github.com/user-attachments/assets/74ad0b4a-e086-4955-8edd-9f2cff31aee8" />
<img width="1718" height="1191" alt="dark theme preview" src="https://github.com/user-attachments/assets/d4bcb7c1-42c7-4c0f-b130-1193a931f9f7" />

</div>

Expand All @@ -22,14 +23,6 @@ An out-of-box UI solution for enterprise applications as a React boilerplate.
- ChangeLog: http://pro.ant.design/docs/changelog
- FAQ: http://pro.ant.design/docs/faq

## 5.0 is out! 🎉🎉🎉

[Ant Design Pro 5.0.0](https://github.com/ant-design/ant-design-pro/issues/8656)

## Translation Recruitment :loudspeaker:

We need your help: https://github.com/ant-design/ant-design-pro/issues/120

## Features

- :bulb: **TypeScript**: A language for application-scale JavaScript
Expand Down
11 changes: 8 additions & 3 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"files": {
"ignoreUnknown": true,
"includes": [
"**/*",
"!**/.umi/**",
"**/*.md",
"!**/.umi-production/**",
"!**/.umi-test/**",
"!**/.umi-test-production/**",
Expand All @@ -14,6 +13,8 @@
"!**/dist/**",
"!**/server/**",
"!**/public/**",
"!**/coverage/**",
"!**/node_modules/**",
"!biome.json"
]
},
Expand All @@ -28,9 +29,13 @@
"suspicious": {
"noExplicitAny": "off"
},
"correctness": {
"useExhaustiveDependencies": "off"
},
"a11y": {
"noStaticElementInteractions": "off",
"useValidAnchor": "off"
"useValidAnchor": "off",
"useKeyWithClickEvents": "off"
}
}
},
Expand Down
16 changes: 10 additions & 6 deletions config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { join } from 'node:path';
import { defineConfig } from '@umijs/max';
import defaultSettings from './defaultSettings';
import proxy from './proxy';

import routes from './routes';

const { REACT_APP_ENV = 'dev' } = process.env;
Expand Down Expand Up @@ -44,13 +45,9 @@ export default defineConfig({
* @name 主题的配置
* @description 虽然叫主题,但是其实只是 less 的变量设置
* @doc antd的主题设置 https://ant.design/docs/react/customize-theme-cn
* @doc umi 的theme 配置 https://umijs.org/docs/api/config#theme
* @doc umi 的 theme 配置 https://umijs.org/docs/api/config#theme
*/
theme: {
// 如果不想要 configProvide 动态设置主题需要把这个设置为 default
// 只有设置为 variable, 才能使用 configProvide 动态设置主色调
'root-entry-name': 'variable',
},
// theme: { '@primary-color': '#1DA57A' }
/**
* @name moment 的国际化配置
* @description 如果对国际化没有要求,打开之后能减少js的包大小
Expand Down Expand Up @@ -169,6 +166,9 @@ export default defineConfig({
projectName: 'swagger',
},
],
mock: {
include: ['mock/**/*', 'src/pages/**/_mock.ts'],
},
/**
* @name 是否开启 mako
* @description 使用 mako 极速研发
Expand All @@ -177,4 +177,8 @@ export default defineConfig({
mako: {},
esbuildMinifyIIFE: true,
requestRecord: {},
exportStatic: {},
define: {
'process.env.CI': process.env.CI,
},
});
8 changes: 4 additions & 4 deletions config/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default [
{
name: 'login',
path: '/user/login',
component: './User/Login',
component: './user/login',
},
],
},
Expand Down Expand Up @@ -49,15 +49,15 @@ export default [
name: 'list.table-list',
icon: 'table',
path: '/list',
component: './TableList',
component: './table-list',
},
{
path: '/',
redirect: '/welcome',
},
{
path: '*',
component: '404',
layout: false,
component: './404',
path: './*',
},
];
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { configUmiAlias, createConfig } from '@umijs/max/test';

export default async () => {
export default async (): Promise<any> => {
const config = await configUmiAlias({
...createConfig({
target: 'browser',
Expand Down
14 changes: 14 additions & 0 deletions mock/monitor.mock.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type { Request, Response } from 'express';
import mockjs from 'mockjs';

const getTags = (_: Request, res: Response) => {
return res.json({
data: mockjs.mock({
'list|100': [{ name: '@city', 'value|1-100': 150, 'type|0-2': 1 }],
}),
});
};

export default {
'GET /api/tags': getTags,
};
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
],
"dependencies": {
"@ant-design/icons": "^5.6.1",
"@ant-design/pro-components": "^2.7.19",
"antd": "^5.25.4",
"@ant-design/pro-components": "^2.8.9",
"antd": "^5.26.4",
"@ant-design/v5-patch-for-react-19": "^1.0.3",
"antd-style": "^3.7.0",
"classnames": "^2.5.1",
Expand All @@ -47,30 +47,30 @@
},
"devDependencies": {
"@ant-design/pro-cli": "^3.3.0",
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@commitlint/cli": "^19.8.1",
"@commitlint/config-conventional": "^19.8.1",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.0.1",
"@testing-library/react": "^16.3.0",
"@types/express": "^5.0.3",
"@types/jest": "^29.5.13",
"@types/lodash": "^4.17.10",
"@types/react": "^19.1.5",
"@types/react-dom": "^19.1.5",
"@types/jest": "^30.0.0",
"@types/react": "^19.1.8",
"@types/react-dom": "^19.1.6",
"@types/react-helmet": "^6.1.11",
"@umijs/max": "^4.3.24",
"cross-env": "^7.0.3",
"express": "^4.21.1",
"gh-pages": "^6.1.1",
"husky": "^9.1.6",
"jest": "^29.7.0",
"husky": "^9.1.7",
"jest": "^30.0.4",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^16.1.2",
"mockjs": "^1.1.0",
"ts-node": "^10.9.2",
"typescript": "^5.6.3",
"umi-presets-pro": "^2.0.3",
"umi-serve": "^1.9.11",
"@biomejs/biome": "^2.0.6"
"@biomejs/biome": "^2.1.1",
"@types/node": "^24.0.13"
},
"engines": {
"node": ">=20.0.0"
Expand Down
14 changes: 10 additions & 4 deletions src/app.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { LinkOutlined } from '@ant-design/icons';
import type { Settings as LayoutSettings } from '@ant-design/pro-components';
import { SettingDrawer } from '@ant-design/pro-components';
import type { RunTimeLayoutConfig } from '@umijs/max';
import type { RequestConfig, RunTimeLayoutConfig } from '@umijs/max';
import { history, Link } from '@umijs/max';
import React from 'react';
import {
Expand All @@ -16,7 +16,8 @@ import defaultSettings from '../config/defaultSettings';
import { errorConfig } from './requestErrorConfig';
import '@ant-design/v5-patch-for-react-19';

const isDev = process.env.NODE_ENV === 'development';
const isDev =
process.env.NODE_ENV === 'development' || process.env.CI;
const loginPath = '/user/login';

/**
Expand All @@ -41,7 +42,11 @@ export async function getInitialState(): Promise<{
};
// 如果不是登录页面,执行
const { location } = history;
if (location.pathname !== loginPath) {
if (
![loginPath, '/user/register', '/user/register-result'].includes(
location.pathname,
)
) {
const currentUser = await fetchUserInfo();
return {
fetchUserInfo,
Expand Down Expand Up @@ -145,6 +150,7 @@ export const layout: RunTimeLayoutConfig = ({
* 它基于 axios 和 ahooks 的 useRequest 提供了一套统一的网络请求和错误处理方案。
* @doc https://umijs.org/docs/max/request#配置
*/
export const request = {
export const request: RequestConfig = {
baseURL: 'https://proapi.azurewebsites.net',
...errorConfig,
};
1 change: 1 addition & 0 deletions src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const Footer: React.FC = () => {
style={{
background: 'none',
}}
copyright="Powered by Ant Desgin"
links={[
{
key: 'Ant Design Pro',
Expand Down
1 change: 0 additions & 1 deletion src/components/RightContent/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { QuestionCircleOutlined } from '@ant-design/icons';
import { SelectLang as UmiSelectLang } from '@umijs/max';
import React from 'react';

export type SiderTheme = 'light' | 'dark';

Expand Down
42 changes: 42 additions & 0 deletions src/global.style.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import { createStyles } from 'antd-style';

const useStyles = createStyles(() => {
return {
colorWeak: {
filter: 'invert(80%)',
},
'ant-layout': {
minHeight: '100vh',
},
'ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed': {
left: 'unset',
},
canvas: {
display: 'block',
},
body: {
textRendering: 'optimizeLegibility',
WebkitFontSmoothing: 'antialiased',
MozOsxFontSmoothing: 'grayscale',
},
'ul,ol': {
listStyle: 'none',
},
'@media(max-width: 768px)': {
'ant-table': {
width: '100%',
overflowX: 'auto',
'&-thead > tr, &-tbody > tr': {
'> th, > td': {
whiteSpace: 'pre',
'> span': {
display: 'block',
},
},
},
},
},
};
});

export default useStyles;
7 changes: 7 additions & 0 deletions src/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Skeleton } from 'antd';

const Loading: React.FC = () => (
<Skeleton style={{ margin: '24px 40px', height: '60vh' }} active />
);

export default Loading;
Loading
Loading