Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
d8e2fcb
chore: standardize repository setup
afc163 Jun 26, 2026
094d60e
ci: allow surge preview status updates
afc163 Jun 26, 2026
c5a06f6
chore: address review feedback
afc163 Jun 26, 2026
e7a2cf4
chore: remove cloudflare preview and now-build
afc163 Jun 26, 2026
b7b56fe
docs: standardize README release details
afc163 Jun 26, 2026
e1a3a3d
ci: make surge preview non-blocking
afc163 Jun 26, 2026
fcc08d8
ci: keep surge preview as fallback
afc163 Jun 26, 2026
f724f1f
docs: refine README usage and ecosystem note
afc163 Jun 27, 2026
06c8fb7
ci: isolate surge preview token
afc163 Jun 27, 2026
d53b058
chore: address review comments
afc163 Jun 27, 2026
834b016
docs: add Chinese README
afc163 Jun 27, 2026
0838abc
docs: add Ant Design logo to README
afc163 Jun 27, 2026
8e2215d
docs: refine bilingual README branding
afc163 Jun 27, 2026
394d4eb
chore: standardize rc tooling and docs
afc163 Jun 27, 2026
2f4db34
chore: address standardization review comments
afc163 Jun 27, 2026
4e6952f
chore: include father config in type checks
afc163 Jun 27, 2026
ad6b51c
chore: ignore dumi build output
afc163 Jun 28, 2026
5526bbc
docs: add license file
afc163 Jun 28, 2026
72b3ccb
ci: use actions checkout v7
afc163 Jun 28, 2026
8db61d7
ci: update deploy action versions
afc163 Jun 28, 2026
907fd7b
chore: standardize package metadata
afc163 Jun 28, 2026
7e1c099
ci: standardize dependabot updates
afc163 Jun 28, 2026
bbc315e
chore: refine preview workflow ignores
afc163 Jun 28, 2026
912fac8
ci: pin gh-pages deployment action
afc163 Jun 28, 2026
4c63822
docs: document dumi dev server port
afc163 Jun 28, 2026
39252bc
chore: standardize husky configuration
afc163 Jun 28, 2026
5a82ee0
docs: align readme badge layout
afc163 Jun 28, 2026
4f9939a
chore: standardize package type entry
afc163 Jun 28, 2026
4837cad
docs: normalize readme badges
afc163 Jun 28, 2026
1c61c52
ci: limit reusable workflow secrets
afc163 Jun 28, 2026
3c73257
ci: restore reusable workflow compatibility
afc163 Jun 28, 2026
bb29af0
ci: narrow surge preview permissions
afc163 Jun 28, 2026
2cff651
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
5 changes: 3 additions & 2 deletions .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
import { defineConfig } from 'dumi';
import path from 'path';

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

export default defineConfig({
outputPath: 'docs-dist',
alias: {
'rc-collapse$': path.resolve('src'),
'rc-collapse/es': path.resolve('src'),
Expand Down
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
43 changes: 17 additions & 26 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,19 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "21:00"
open-pull-requests-limit: 10
ignore:
- 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: np
versions:
- 7.2.0
- 7.3.0
- 7.4.0
- dependency-name: less
versions:
- 4.1.0
- 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
7 changes: 5 additions & 2 deletions .github/workflows/react-component-ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: ✅ test
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
uses: react-component/rc-test/.github/workflows/test.yml@main
secrets: inherit
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
12 changes: 7 additions & 5 deletions .github/workflows/site-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v7
with:
persist-credentials: false

- name: setup node
uses: actions/setup-node@v1
uses: actions/setup-node@v6
with:
node-version: 14
node-version: 20

- name: create package-lock.json
run: npm i --package-lock-only --ignore-scripts
Expand All @@ -30,10 +32,10 @@ jobs:
run: npm run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@329bcc8f12caed2cefe5a5b80781499a6f3b361b
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
publish_dir: ./docs-dist
force_orphan: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
50 changes: 50 additions & 0 deletions .github/workflows/surge-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Surge Preview

on:
pull_request:

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."
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ pnpm-lock.yaml
.dumi/tmp
.dumi/tmp-production
.dumi/tmp-test
docs-dist
.env.local
src/.umi

bun.lockb
bun.lockb
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lint-staged
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
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019-present react-component

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading
Loading