Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
33e8ff1
chore: standardize repository config
afc163 Jun 26, 2026
482a3e9
chore: address review feedback
afc163 Jun 26, 2026
91bc34f
chore: fix surge preview inputs
afc163 Jun 26, 2026
048536e
chore: address AI review feedback
afc163 Jun 26, 2026
4048d37
docs: standardize README release details
afc163 Jun 26, 2026
735c060
docs: clarify Ant Design ecosystem note
afc163 Jun 26, 2026
25271df
docs: refine README usage and ecosystem note
afc163 Jun 27, 2026
b785cf4
ci: isolate surge preview token
afc163 Jun 27, 2026
aff4b39
docs: add Chinese README
afc163 Jun 27, 2026
58fcc57
docs: add Ant Design logo to README
afc163 Jun 27, 2026
4100072
docs: refine bilingual README branding
afc163 Jun 27, 2026
ea8f2e6
chore: standardize rc tooling and docs
afc163 Jun 27, 2026
24419d1
chore: address standardization review comments
afc163 Jun 27, 2026
cb6219f
ci: update GitHub Actions versions
afc163 Jun 28, 2026
fcd9887
ci: use resolvable CodeQL action ref
afc163 Jun 28, 2026
0222ea5
ci: use test-utoo workflow from main
afc163 Jun 28, 2026
2e7ad96
ci: use actions checkout v7
afc163 Jun 28, 2026
cb3c286
chore: standardize package metadata
afc163 Jun 28, 2026
4640585
ci: standardize dependabot updates
afc163 Jun 28, 2026
3ad3348
docs: localize Chinese README descriptions
afc163 Jun 28, 2026
b0c0303
chore: refine preview workflow ignores
afc163 Jun 28, 2026
1575b97
chore: add father config
afc163 Jun 28, 2026
966a94d
docs: document dumi dev server port
afc163 Jun 28, 2026
44d23db
chore: standardize husky configuration
afc163 Jun 28, 2026
750f5b1
chore: standardize package type entry
afc163 Jun 28, 2026
c199f45
docs: normalize readme badges
afc163 Jun 28, 2026
70b6d22
ci: limit reusable workflow secrets
afc163 Jun 28, 2026
5ce8cb8
ci: restore reusable workflow compatibility
afc163 Jun 28, 2026
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
11 changes: 9 additions & 2 deletions .dumirc.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import { defineConfig } from 'dumi';
import path from 'path';

const basePath = process.env.GH_PAGES ? '/trigger/' : '/';
const publicPath = basePath;

export default defineConfig({
alias: {
'rc-trigger$': path.resolve('src'),
'rc-trigger/es': path.resolve('src'),
'@rc-component/trigger$': path.resolve(__dirname, 'src'),
'@rc-component/trigger/es': path.resolve(__dirname, 'src'),
'@rc-component/trigger/assets': path.resolve(__dirname, 'assets'),
},
mfsu: false,
favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'],
Expand All @@ -20,4 +24,7 @@ export default defineConfig({
}
`,
],
outputPath: 'docs-dist',
base: basePath,
publicPath,
});
5 changes: 5 additions & 0 deletions .fatherrc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { defineConfig } from 'father';

export default defineConfig({
plugins: ['@rc-component/father-plugin'],
});
17 changes: 2 additions & 15 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,2 @@
# These are supported funding model platforms

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 # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
polar: # Replace with a single Polar username
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
thanks_dev: # Replace with a single thanks.dev username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
github: ant-design
open_collective: ant-design
35 changes: 12 additions & 23 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,17 @@ updates:
- package-ecosystem: npm
directory: '/'
schedule:
interval: daily
interval: weekly
day: monday
time: '21:00'
timezone: Asia/Shanghai
open-pull-requests-limit: 10

- package-ecosystem: github-actions
directory: '/'
schedule:
interval: weekly
day: monday
time: '21:00'
timezone: Asia/Shanghai
open-pull-requests-limit: 10
ignore:
- dependency-name: np
versions:
- 7.2.0
- 7.3.0
- 7.4.0
- dependency-name: '@types/react-dom'
versions:
- 17.0.0
- 17.0.1
- 17.0.2
- dependency-name: '@types/react'
versions:
- 17.0.0
- 17.0.1
- 17.0.2
- 17.0.3
- dependency-name: typescript
versions:
- 4.1.3
- 4.1.4
- 4.1.5
16 changes: 9 additions & 7 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: 'CodeQL'
name: CodeQL

on:
push:
branches: ['master']
branches: [master]
pull_request:
branches: ['master']
branches: [master]
schedule:
- cron: '40 12 * * 0'

Expand All @@ -24,18 +24,20 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v7
with:
persist-credentials: false

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@8aad20d150bbac5944a9f9d289da16a4b0d87c1e

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e
with:
category: '/language:${{ matrix.language }}'
6 changes: 0 additions & 6 deletions .github/workflows/main.yml

This file was deleted.

15 changes: 15 additions & 0 deletions .github/workflows/react-component-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: ✅ test

on:
push:
branches: [master]
pull_request:
branches: [master]

permissions:
contents: read

jobs:
test:
uses: react-component/rc-test/.github/workflows/test-utoo.yml@main
secrets: inherit
24 changes: 24 additions & 0 deletions .github/workflows/react-doctor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: React Doctor

on:
pull_request:
branches: [master]

permissions:
contents: read
pull-requests: write

concurrency:
group: react-doctor-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
react-doctor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: millionco/react-doctor@0b4f4f4bd248a154e64eb508a48347f71154b3f3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
47 changes: 47 additions & 0 deletions .github/workflows/surge-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Surge Preview

on:
pull_request:
branches: [master]

permissions:
contents: read
pull-requests: write
statuses: write

concurrency:
group: surge-preview-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Check Surge token
id: surge-token
env:
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
run: |
if [ -n "$SURGE_TOKEN" ]; then
echo "enabled=true" >> "$GITHUB_OUTPUT"
else
echo "enabled=false" >> "$GITHUB_OUTPUT"
fi
- name: Install dependencies
if: ${{ steps.surge-token.outputs.enabled == 'true' }}
run: npm install --ignore-scripts --no-audit --loglevel=warn
- name: Build preview
if: ${{ steps.surge-token.outputs.enabled == 'true' }}
run: npm run build
- uses: afc163/surge-preview@bf90a5a86111f6311ca42f0a5a0f80fb0fb03cec
if: ${{ steps.surge-token.outputs.enabled == 'true' }}
env:
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
with:
dist: docs-dist
failOnError: false
github_token: ${{ secrets.GITHUB_TOKEN }}
surge_token: ${{ env.SURGE_TOKEN }}
8 changes: 3 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,13 @@ package-lock.json
pnpm-lock.yaml
bun.lockb
.vscode

# dumi
.umi
.umi-production
.umi-test
.docs


# dumi
.dumi/tmp
.dumi/tmp-production
dist/
dist/
docs-dist
.vercel
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
14 changes: 14 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
node_modules
coverage
docs-dist
dist
es
lib
.dumi/tmp
.dumi/tmp-production
.vercel
package-lock.json
pnpm-lock.yaml
yarn.lock
bun.lockb
*.log
Loading
Loading