Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
0a06399
chore: standardize repository setup
afc163 Jun 26, 2026
748e5c9
chore: simplify lint-staged prettier command
afc163 Jun 26, 2026
344d6fa
ci: allow surge preview status updates
afc163 Jun 26, 2026
bf5628a
chore: remove cloudflare preview and now-build
afc163 Jun 26, 2026
3b8e33b
docs: standardize README release details
afc163 Jun 26, 2026
2a1c02e
ci: make surge preview non-blocking
afc163 Jun 26, 2026
b0fc36b
ci: keep surge preview as fallback
afc163 Jun 26, 2026
67028d6
docs: refine README usage and ecosystem note
afc163 Jun 27, 2026
51519b8
ci: isolate surge preview token
afc163 Jun 27, 2026
8a14a22
docs: add Chinese README
afc163 Jun 27, 2026
b518d1b
docs: add Ant Design logo to README
afc163 Jun 27, 2026
c1df5f8
docs: refine bilingual README branding
afc163 Jun 27, 2026
c092a17
chore: standardize rc tooling and docs
afc163 Jun 27, 2026
e16b82e
chore: address standardization review comments
afc163 Jun 27, 2026
044ae19
chore: include father config in type checks
afc163 Jun 27, 2026
183257a
ci: update GitHub Actions versions
afc163 Jun 28, 2026
0b9b79f
ci: use resolvable CodeQL action ref
afc163 Jun 28, 2026
0292874
chore: ignore dumi build output
afc163 Jun 28, 2026
6f4e479
docs: add license file
afc163 Jun 28, 2026
fc97880
ci: use actions checkout v7
afc163 Jun 28, 2026
6e65c71
chore: standardize package metadata
afc163 Jun 28, 2026
c304c42
ci: standardize dependabot updates
afc163 Jun 28, 2026
487d5c8
chore: refine preview workflow ignores
afc163 Jun 28, 2026
4cc7b62
chore: add missing prettier dependency
afc163 Jun 28, 2026
695fb13
docs: document dumi dev server port
afc163 Jun 28, 2026
efca12e
chore: standardize husky configuration
afc163 Jun 28, 2026
ae19686
docs: align readme badge layout
afc163 Jun 28, 2026
d1fcbd6
chore: standardize package type entry
afc163 Jun 28, 2026
72dbb61
docs: normalize readme badges
afc163 Jun 28, 2026
afa42f5
ci: limit reusable workflow secrets
afc163 Jun 28, 2026
7715401
ci: restore reusable workflow compatibility
afc163 Jun 28, 2026
4195fb3
docs: polish zh-CN readme wording
afc163 Jun 28, 2026
56b189d
ci: narrow surge preview permissions
afc163 Jun 28, 2026
049909e
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
6 changes: 6 additions & 0 deletions .dumirc.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import { defineConfig } from 'dumi';

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

export default defineConfig({
outputPath: 'docs-dist',
base: basePath,
publicPath,
themeConfig: {
name: 'Checkbox',
},
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
35 changes: 17 additions & 18 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,20 +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: 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
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: "8 20 * * 1"
- cron: '8 20 * * 1'

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 }}'
7 changes: 5 additions & 2 deletions .github/workflows/main.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
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
Comment thread
coderabbitai[bot] marked this conversation as resolved.
- 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.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ package-lock.json
.umi-production
.umi-test
.docs
docs-dist

pnpm-lock.yaml

bun.lockb
bun.lockb
5 changes: 1 addition & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install lint-staged --quiet
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