Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
92f8064
chore: standardize repository config
afc163 Jun 26, 2026
b062225
chore: remove duplicate vercel ignore
afc163 Jun 26, 2026
61a5f24
chore: address review feedback
afc163 Jun 26, 2026
0af1e70
chore: limit workflow token permissions
afc163 Jun 26, 2026
711537e
chore: remove cloudflare preview and now-build
afc163 Jun 26, 2026
dc9d7d8
docs: add Ant Design logo to README header
afc163 Jun 26, 2026
3663b04
chore: address AI review feedback
afc163 Jun 26, 2026
fe58983
docs: standardize README release details
afc163 Jun 26, 2026
50ed3f1
ci: make surge preview non-blocking
afc163 Jun 26, 2026
e6ce760
docs: clarify Ant Design ecosystem note
afc163 Jun 26, 2026
ed2b82c
ci: keep surge preview as fallback
afc163 Jun 26, 2026
25018c6
docs: refine README usage and ecosystem note
afc163 Jun 27, 2026
9a0cea5
ci: isolate surge preview token
afc163 Jun 27, 2026
4069735
chore: address review comments
afc163 Jun 27, 2026
d9f8c44
docs: update Ant Design logo
afc163 Jun 27, 2026
4e13f35
docs: add Chinese README
afc163 Jun 27, 2026
d2b1161
docs: refine bilingual README branding
afc163 Jun 27, 2026
11813d7
chore: standardize rc tooling and docs
afc163 Jun 27, 2026
b2b6f19
chore: address standardization review comments
afc163 Jun 27, 2026
2147086
chore: include father config in type checks
afc163 Jun 27, 2026
5b2a1d6
ci: update GitHub Actions versions
afc163 Jun 28, 2026
255b4b0
ci: use resolvable CodeQL action ref
afc163 Jun 28, 2026
dfd7ac3
docs: add license file
afc163 Jun 28, 2026
66b5c54
ci: use actions checkout v7
afc163 Jun 28, 2026
047b1fa
chore: standardize package metadata
afc163 Jun 28, 2026
c435b22
ci: standardize dependabot updates
afc163 Jun 28, 2026
0e8286d
docs: fix Chinese README API names
afc163 Jun 28, 2026
4597b48
chore: refine preview workflow ignores
afc163 Jun 28, 2026
58fc6d0
docs: polish Chinese README wording
afc163 Jun 28, 2026
51b980c
chore: align tooling ignores and typescript
afc163 Jun 28, 2026
832d8f5
docs: document dumi dev server port
afc163 Jun 28, 2026
878f4a8
chore: standardize husky configuration
afc163 Jun 28, 2026
442e321
docs: align readme badge layout
afc163 Jun 28, 2026
3eecf3e
chore: standardize package type entry
afc163 Jun 28, 2026
7a3ff91
ci: limit reusable workflow secrets
afc163 Jun 28, 2026
bc07a96
ci: restore reusable workflow compatibility
afc163 Jun 28, 2026
5190fcc
docs: polish zh-CN readme wording
afc163 Jun 28, 2026
9301613
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
4 changes: 2 additions & 2 deletions .dumirc.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig } from 'dumi';

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

export default defineConfig({
mfsu: false,
Expand All @@ -10,7 +10,7 @@ export default defineConfig({
name: 'Input',
logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
},
outputPath: '.doc',
outputPath: 'docs-dist',
base: basePath,
publicPath,
});
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: "npm" # 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
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: "13 6 * * 2"
- cron: '13 6 * * 2'

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
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."
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ pnpm-lock.yaml
coverage/
.doc
dist/
docs-dist/

# umi
.umi
Expand All @@ -43,3 +44,4 @@ dist/
.dumi/tmp-production
.node
bun.lockb
.vercel
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