- Ant Design Pro 是一个整合了 umi,Ant Design 和 ProComponents 的脚手架方案。致力于在设计规范和基础组件的基础上,继续向上构建,提炼出典型模板/业务组件/配套设计资源,进一步提升企业级中后台产品设计研发过程中的『用户』和『设计者』的体验。 -
-diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 8336e935..00000000 --- a/.eslintignore +++ /dev/null @@ -1,8 +0,0 @@ -/lambda/ -/scripts -/config -.history -public -dist -.umi -mock \ No newline at end of file diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 3ac39ef6..00000000 --- a/.eslintrc.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = { - extends: [require.resolve('@umijs/lint/dist/config/eslint')], - globals: { - page: true, - REACT_APP_ENV: true, - }, -}; diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 26b00e2b..57609518 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,6 +1,6 @@ # These are supported funding model platforms -github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] +github: ant-design # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] patreon: # Replace with a single Patreon username open_collective: ant-design ko_fi: # Replace with a single Ko-fi username diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 28ea1630..61bf586a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - node_version: [20, 16] + node_version: [20] os: [ubuntu-latest, windows-latest, macOS-latest] steps: - uses: actions/checkout@v4 @@ -22,7 +22,6 @@ jobs: - uses: oven-sh/setup-bun@v2 - run: bun install - run: bun run lint - - run: bun run tsc - run: bun run build env: CI: true diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index d1457535..bb6d518d 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -9,19 +9,13 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - name: Use Node.js 16.x - uses: actions/setup-node@v1 + - uses: actions/checkout@v4 + - name: Use Node.js 20 + uses: actions/setup-node@v4 with: - node-version: 16.x + node-version: 20 - run: echo ${{github.ref}} - - run: curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7 - - run: pnpm config set store-dir ~/.pnpm-store - - run: pnpm install --strict-peer-dependencies=false - - run: yarn run test:coverage - env: - CI: true - PROGRESS: none - NODE_ENV: test - NODE_OPTIONS: --max_old_space_size=4096 - - run: bash <(curl -s https://codecov.io/bash) + - uses: oven-sh/setup-bun@v2 + - run: bun install + - run: bun run test:coverage + - uses: codecov/codecov-action@v5 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..00403017 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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 diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index 81c4c60a..ea65e05b 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -12,14 +12,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} - name: build run: | yarn - yarn add umi-plugin-pro --save yarn build - name: upload dist artifact diff --git a/.gitignore b/.gitignore index 0fb36707..08cde4d2 100644 --- a/.gitignore +++ b/.gitignore @@ -36,6 +36,5 @@ functions/* # screenshot screenshot .firebase -.eslintcache build diff --git a/.lintstagedrc b/.lintstagedrc index 47b3ab64..1c2023c8 100644 --- a/.lintstagedrc +++ b/.lintstagedrc @@ -1,6 +1,5 @@ { - "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js", - "**/*.{js,jsx,tsx,ts,less,md,json,yml}": [ - "prettier --write" + "**/*.{js,jsx,tsx,ts,md,css,less,json}": [ + "npx @biomejs/biome check --write" ] } diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..521a9f7c --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +legacy-peer-deps=true diff --git a/.prettierignore b/.prettierignore deleted file mode 100644 index 7999ccda..00000000 --- a/.prettierignore +++ /dev/null @@ -1,22 +0,0 @@ -**/*.svg -.umi -.umi-production -/dist -.dockerignore -.DS_Store -.eslintignore -*.png -*.toml -docker -.editorconfig -Dockerfile* -.gitignore -.prettierignore -LICENSE -.eslintcache -*.lock -yarn-error.log -.history -CNAME -/build -/public diff --git a/.prettierrc.js b/.prettierrc.js deleted file mode 100644 index 3447a1af..00000000 --- a/.prettierrc.js +++ /dev/null @@ -1,21 +0,0 @@ -module.exports = { - singleQuote: true, - trailingComma: 'all', - printWidth: 100, - proseWrap: 'never', - endOfLine: 'lf', - overrides: [ - { - files: '.prettierrc', - options: { - parser: 'json', - }, - }, - { - files: 'document.ejs', - options: { - parser: 'html', - }, - }, - ], -}; diff --git a/README.ar-DZ.md b/README.ar-DZ.md index c563b915..be768ed9 100644 --- a/README.ar-DZ.md +++ b/README.ar-DZ.md @@ -7,7 +7,11 @@ Language : [🇺🇸](./README.md) | [🇨🇳](./README.zh-CN.md) | [🇷🇺]( حل UI جاهز لتطبيقات المؤسسات كنموذج معياري لـ React. -[](https://github.com/ant-design/ant-design-pro/actions/workflows/ci.yml) [](https://github.com/ant-design/ant-design-pro/actions/workflows/preview-deploy.yml) [](http://umijs.org/)  +[](https://github.com/ant-design/ant-design-pro/actions/workflows/ci.yml) +[](https://github.com/ant-design/ant-design-pro/actions/workflows/preview-deploy.yml) +[](http://umijs.org/) +[](https://biomejs.dev) +  diff --git a/README.es-ES.md b/README.es-ES.md index d6abdfeb..357ef18b 100644 --- a/README.es-ES.md +++ b/README.es-ES.md @@ -6,7 +6,11 @@ Idioma: 🇺🇸 | [🇨🇳](./README.zh-CN.md) | [🇷🇺](./README.ru-RU.md) Una solución de IU listo para usar para aplicaciones empresariales como plantilla de React. -[](https://github.com/ant-design/ant-design-pro/actions/workflows/ci.yml) [](https://github.com/ant-design/ant-design-pro/actions/workflows/preview-deploy.yml) [](http://umijs.org/)  +[](https://github.com/ant-design/ant-design-pro/actions/workflows/ci.yml) +[](https://github.com/ant-design/ant-design-pro/actions/workflows/preview-deploy.yml) +[](http://umijs.org/) +[](https://biomejs.dev) +  diff --git a/README.fr-FR.md b/README.fr-FR.md index 928102b8..c45a6935 100644 --- a/README.fr-FR.md +++ b/README.fr-FR.md @@ -6,7 +6,11 @@ Language : [🇺🇸](./README.md) | [🇨🇳](./README.zh-CN.md) | [🇷🇺]( Une solution UI prête à l'emploi pour des applications d'entreprise en tant que modèle React. -[](https://github.com/ant-design/ant-design-pro/actions/workflows/ci.yml) [](https://github.com/ant-design/ant-design-pro/actions/workflows/preview-deploy.yml) [](http://umijs.org/)  +[](https://github.com/ant-design/ant-design-pro/actions/workflows/ci.yml) +[](https://github.com/ant-design/ant-design-pro/actions/workflows/preview-deploy.yml) +[](http://umijs.org/) +[](https://biomejs.dev) +  diff --git a/README.ja-JP.md b/README.ja-JP.md index 472f683d..677ccc72 100644 --- a/README.ja-JP.md +++ b/README.ja-JP.md @@ -6,7 +6,11 @@ Language : [🇺🇸](./README.md) | [🇨🇳](./README.zh-CN.md) | [🇷🇺]( 独創的な業務システムの UI を解決するための React ボイラープレート。 -[](https://github.com/ant-design/ant-design-pro/actions/workflows/ci.yml) [](https://github.com/ant-design/ant-design-pro/actions/workflows/preview-deploy.yml) [](http://umijs.org/)  +[](https://github.com/ant-design/ant-design-pro/actions/workflows/ci.yml) +[](https://github.com/ant-design/ant-design-pro/actions/workflows/preview-deploy.yml) +[](http://umijs.org/) +[](https://biomejs.dev) +  diff --git a/README.md b/README.md index 139ca256..37ebbd72 100644 --- a/README.md +++ b/README.md @@ -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)
Want to add more pages? Please refer to{' '}
-
+
use block
。
diff --git a/src/pages/TableList/components/UpdateForm.tsx b/src/pages/TableList/components/UpdateForm.tsx
deleted file mode 100644
index d689c2b9..00000000
--- a/src/pages/TableList/components/UpdateForm.tsx
+++ /dev/null
@@ -1,213 +0,0 @@
-import {
- ProFormDateTimePicker,
- ProFormRadio,
- ProFormSelect,
- ProFormText,
- ProFormTextArea,
- StepsForm,
-} from '@ant-design/pro-components';
-import { FormattedMessage, useIntl } from '@umijs/max';
-import { Modal } from 'antd';
-import React from 'react';
-
-export type FormValueType = {
- target?: string;
- template?: string;
- type?: string;
- time?: string;
- frequency?: string;
-} & Partial
-
-
- Ant Design
-
-
+
+
+ Ant Design
+
+
+
+
+ Ant Design
+
+
}
title="Ant Design"
- subTitle={intl.formatMessage({ id: 'pages.layouts.userLayout.title' })}
+ subTitle={intl.formatMessage({
+ id: 'pages.layouts.userLayout.title',
+ })}
initialValues={{
autoLogin: true,
}}
@@ -263,7 +281,9 @@ const Login: React.FC = () => {
>
)}
- {status === 'error' && loginType === 'mobile' &&