Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
b12f5de
chore: standardize repository config
afc163 Jun 26, 2026
2ecc6d6
test: refine message channel polyfill
afc163 Jun 26, 2026
3268d6f
docs: add Ant Design logo to README header
afc163 Jun 26, 2026
f8b7485
chore: address AI review feedback
afc163 Jun 26, 2026
722fa82
docs: standardize README release details
afc163 Jun 26, 2026
c5c94d8
ci: make surge preview non-blocking
afc163 Jun 26, 2026
db5bdb8
docs: clarify Ant Design ecosystem note
afc163 Jun 26, 2026
09fef63
ci: keep surge preview as fallback
afc163 Jun 26, 2026
faccd96
docs: refine README usage and ecosystem note
afc163 Jun 27, 2026
88e5be6
ci: isolate surge preview token
afc163 Jun 27, 2026
8aaacd1
chore: address review comments
afc163 Jun 27, 2026
e4526e7
docs: update Ant Design logo
afc163 Jun 27, 2026
f8e1490
docs: add Chinese README
afc163 Jun 27, 2026
c1ad179
docs: refine bilingual README branding
afc163 Jun 27, 2026
fe72437
chore: standardize rc tooling and docs
afc163 Jun 27, 2026
26a631a
chore: address standardization review comments
afc163 Jun 27, 2026
f0add58
ci: update GitHub Actions versions
afc163 Jun 28, 2026
ce19097
ci: use resolvable CodeQL action ref
afc163 Jun 28, 2026
e435d64
docs: add license file
afc163 Jun 28, 2026
4a3bcca
ci: use actions checkout v7
afc163 Jun 28, 2026
103c319
chore: standardize package metadata
afc163 Jun 28, 2026
519184e
ci: standardize dependabot updates
afc163 Jun 28, 2026
9bdd10e
docs: fix Chinese README API names
afc163 Jun 28, 2026
ff4d4b3
docs: localize Chinese README descriptions
afc163 Jun 28, 2026
8be63b3
chore: refine preview workflow ignores
afc163 Jun 28, 2026
05bdb1f
docs: polish Chinese README wording
afc163 Jun 28, 2026
0ed4887
chore: align tooling ignores and typescript
afc163 Jun 28, 2026
d5c9805
chore: align father config and Chinese README
afc163 Jun 28, 2026
3a584e5
docs: document dumi dev server port
afc163 Jun 28, 2026
4fc1c47
chore: standardize husky configuration
afc163 Jun 28, 2026
baa343b
docs: align readme badge layout
afc163 Jun 28, 2026
f2c6303
docs: normalize readme badges
afc163 Jun 28, 2026
37447e2
ci: limit reusable workflow secrets
afc163 Jun 28, 2026
ec5408c
ci: restore reusable workflow compatibility
afc163 Jun 28, 2026
4f798f6
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
5 changes: 5 additions & 0 deletions .dumirc.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import { defineConfig } from 'dumi';

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

export default defineConfig({
favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'],
themeConfig: {
name: 'Pagination',
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
30 changes: 17 additions & 13 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "21:00"
open-pull-requests-limit: 10
ignore:
- dependency-name: react-dom
versions:
- 17.0.1
- 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
22 changes: 12 additions & 10 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: "CodeQL"
name: 'CodeQL'

on:
push:
branches: [ "master" ]
branches: ['master']
pull_request:
branches: [ "master" ]
branches: ['master']
schedule:
- cron: "21 9 * * 6"
- cron: '21 9 * * 6'

jobs:
analyze:
Expand All @@ -20,22 +20,24 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ javascript ]
language: [javascript]

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 }}"
category: '/language:${{ matrix.language }}'
6 changes: 0 additions & 6 deletions .github/workflows/main.yml

This file was deleted.

8 changes: 8 additions & 0 deletions .github/workflows/react-component-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: ✅ test
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
uses: react-component/rc-test/.github/workflows/test-utoo.yml@main
secrets: inherit
28 changes: 28 additions & 0 deletions .github/workflows/react-doctor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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

Comment thread
coderabbitai[bot] marked this conversation as resolved.
concurrency:
group: react-doctor-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
react-doctor:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
persist-credentials: false
- uses: millionco/react-doctor@0b4f4f4bd248a154e64eb508a48347f71154b3f3
Comment thread
coderabbitai[bot] marked this conversation as resolved.
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."
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ coverage/
.doc
dist
docs-dist
.vercel
.vscode
# umi
.umi
Expand All @@ -43,4 +44,4 @@ docs-dist
.dumi/tmp
.dumi/tmp-production

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
10 changes: 10 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,13 @@ public
_site
.umi
.doc
coverage
docs-dist
dist
.dumi/tmp
.dumi/tmp-production
.vercel
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