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
0a59030
chore: standardize repository config
afc163 Jun 26, 2026
e0cbc61
chore: address AI review feedback
afc163 Jun 26, 2026
5c3b64c
docs: standardize README release details
afc163 Jun 26, 2026
ac7e6d3
ci: make surge preview non-blocking
afc163 Jun 26, 2026
94a5cd7
ci: keep surge preview as fallback
afc163 Jun 26, 2026
121a2dc
docs: refine README usage and ecosystem note
afc163 Jun 27, 2026
1b8ac59
ci: isolate surge preview token
afc163 Jun 27, 2026
a183f0d
docs: add Chinese README
afc163 Jun 27, 2026
a9222b6
docs: add Ant Design logo to README
afc163 Jun 27, 2026
21d03ef
docs: refine bilingual README branding
afc163 Jun 27, 2026
febbe36
chore: standardize rc tooling and docs
afc163 Jun 27, 2026
6f019d2
chore: address standardization review comments
afc163 Jun 27, 2026
8ae34ed
ci: update GitHub Actions versions
afc163 Jun 28, 2026
c1861ae
ci: use resolvable CodeQL action ref
afc163 Jun 28, 2026
0bd3ea3
ci: use actions checkout v7
afc163 Jun 28, 2026
fe74f77
chore: standardize package metadata
afc163 Jun 28, 2026
27edb62
ci: standardize dependabot updates
afc163 Jun 28, 2026
946035c
chore: ignore generated docs artifacts
afc163 Jun 28, 2026
0f86b27
chore: refine preview workflow ignores
afc163 Jun 28, 2026
018ebc2
chore: add missing prettier dependency
afc163 Jun 28, 2026
1cf2284
chore: add father config
afc163 Jun 28, 2026
d5a69f1
docs: document dumi dev server port
afc163 Jun 28, 2026
248dd9e
chore: standardize husky configuration
afc163 Jun 28, 2026
00e5371
chore: standardize package type entry
afc163 Jun 28, 2026
12ac35a
docs: normalize readme badges
afc163 Jun 28, 2026
5737b11
ci: limit reusable workflow secrets
afc163 Jun 28, 2026
a1d855e
ci: restore reusable workflow compatibility
afc163 Jun 28, 2026
0fdcc9d
ci: narrow surge preview permissions
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
10 changes: 8 additions & 2 deletions .dumirc → .dumirc.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
import { defineConfig } from 'dumi';
import path from 'path';

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

export default defineConfig({
alias: {
'@rc-component/upload$': path.resolve('src'),
'@rc-component/upload/es': path.resolve('src'),
'@rc-component/upload$': path.resolve(__dirname, 'src'),
'@rc-component/upload/es': path.resolve(__dirname, 'src'),
},
mfsu: false,
favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'],
themeConfig: {
name: 'Upload',
logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
},
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
38 changes: 17 additions & 21 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "21:00"
open-pull-requests-limit: 10
ignore:
- dependency-name: sinon
versions:
- 10.0.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
- package-ecosystem: npm
directory: '/'
schedule:
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
43 changes: 43 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: 'CodeQL'

on:
push:
branches: ['master']
pull_request:
branches: ['master']
schedule:
- cron: '17 10 * * 1'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [javascript]

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

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

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

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e
with:
category: '/language:${{ matrix.language }}'
10 changes: 8 additions & 2 deletions .github/workflows/react-component-ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: ✅ test
on: [push, pull_request]
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: read
jobs:
test:
uses: react-component/rc-test/.github/workflows/test.yml@main
uses: react-component/rc-test/.github/workflows/test-utoo.yml@main
secrets: inherit
27 changes: 27 additions & 0 deletions .github/workflows/react-doctor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: React Doctor

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
push:
branches: [master]

permissions:
contents: read
pull-requests: write
issues: write
statuses: 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:
fetch-depth: 0
persist-credentials: false
- uses: millionco/react-doctor@0b4f4f4bd248a154e64eb508a48347f71154b3f3
54 changes: 54 additions & 0 deletions .github/workflows/surge-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Surge Preview

on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true

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

jobs:
preview:
runs-on: ubuntu-latest
concurrency:
group: surge-preview-${{ github.event.pull_request.number }}
cancel-in-progress: true
env:
PREVIEW: true
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: Build preview
if: ${{ steps.surge-token.outputs.enabled == 'true' }}
run: |
npm install
npm run build
- uses: afc163/surge-preview@bf90a5a86111f6311ca42f0a5a0f80fb0fb03cec
if: ${{ steps.surge-token.outputs.enabled == 'true' }}
env:
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
with:
surge_token: ${{ env.SURGE_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
dist: docs-dist
failOnError: false
setCommitStatus: false
- name: Skip Surge preview
if: ${{ steps.surge-token.outputs.enabled != 'true' }}
run: echo "SURGE_TOKEN is not configured; skip Surge preview."
Comment thread
coderabbitai[bot] marked this conversation as resolved.
16 changes: 11 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.iml
*.log
*.log.*
.idea/
.ipr
.iws
Expand All @@ -24,22 +25,27 @@ dist
assets/**/*.css
build
lib
coverage
yarn.lock
es
/coverage
yarn.lock
package-lock.json
pnpm-lock.yaml
.doc
docs-dist
.vercel
.storybook
tmp/
.history
.storybook
.doc

# umi
.umi
.umi-production
.umi-test
.env.local
.dumi/

# dumi
bun.lockb
bun.lock
coverage
.dumi/tmp
.dumi/tmp-production
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