Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
8f954e1
chore: standardize repository config
afc163 Jun 26, 2026
0194755
chore: address AI review feedback
afc163 Jun 26, 2026
3686cfa
docs: standardize README release details
afc163 Jun 26, 2026
87aad04
ci: make surge preview non-blocking
afc163 Jun 26, 2026
75a474d
ci: keep surge preview as fallback
afc163 Jun 26, 2026
4b22cce
docs: refine README usage and ecosystem note
afc163 Jun 27, 2026
c7f89c5
ci: isolate surge preview token
afc163 Jun 27, 2026
2d3332d
chore: address review comments
afc163 Jun 27, 2026
b280aea
docs: add Chinese README
afc163 Jun 27, 2026
a5ae9fd
docs: add Ant Design logo to README
afc163 Jun 27, 2026
d5a3c93
docs: refine bilingual README branding
afc163 Jun 27, 2026
8c70755
chore: standardize rc tooling and docs
afc163 Jun 27, 2026
6426847
chore: address standardization review comments
afc163 Jun 27, 2026
c195fa3
ci: use actions checkout v7
afc163 Jun 28, 2026
d2b8f47
chore: standardize package metadata
afc163 Jun 28, 2026
255867d
ci: standardize dependabot updates
afc163 Jun 28, 2026
06b6608
chore: ignore generated docs artifacts
afc163 Jun 28, 2026
94d5cdc
docs: localize Chinese README descriptions
afc163 Jun 28, 2026
11ae0dc
chore: refine preview workflow ignores
afc163 Jun 28, 2026
f3c628c
docs: polish Chinese README wording
afc163 Jun 28, 2026
79de721
chore: align father config and Chinese README
afc163 Jun 28, 2026
37ef05e
docs: document dumi dev server port
afc163 Jun 28, 2026
7012a60
chore: standardize husky configuration
afc163 Jun 28, 2026
fe76928
chore: standardize package type entry
afc163 Jun 28, 2026
4c57282
docs: normalize readme badges
afc163 Jun 28, 2026
84e37f6
ci: limit reusable workflow secrets
afc163 Jun 28, 2026
f64897d
ci: restore reusable workflow compatibility
afc163 Jun 28, 2026
3c74d62
ci: narrow surge preview permissions
afc163 Jun 28, 2026
0d4fec7
chore: limit reusable workflow secrets
afc163 Jun 29, 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.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 ? '/tour/' : '/';
const publicPath = basePath;

export default defineConfig({
alias: {
'rc-tour$': path.resolve('src'),
'rc-tour/es': path.resolve('src'),
'@rc-component/tour$': path.resolve('src'),
'@rc-component/tour/es': path.resolve('src'),
},
mfsu: false,
favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'],
themeConfig: {
name: 'Tour',
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'],
});
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: ant-design
open_collective: ant-design
24 changes: 16 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "" # See documentation for possible values
directory: "/" # Location of package manifests
- 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"
interval: weekly
day: monday
time: '21:00'
timezone: Asia/Shanghai
open-pull-requests-limit: 10
6 changes: 0 additions & 6 deletions .github/workflows/main.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/preview.yml

This file was deleted.

13 changes: 13 additions & 0 deletions .github/workflows/react-component-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
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:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
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."
25 changes: 17 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.storybook
*.iml
*.log
.idea
*.log.*
.idea/
.ipr
.iws
*~
Expand All @@ -13,30 +13,39 @@
Thumbs.db
.project
.*proj
.svn
.svn/
*.swp
*.swo
*.pyc
*.pyo
.build
node_modules
.cache
*.css
dist
assets/**/*.css
build
lib
coverage
es
/coverage
yarn.lock
/es/
package-lock.json
pnpm-lock.yaml
.doc
docs-dist
.vercel
.storybook
tmp/
.history

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

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