Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
1c90c46
chore: standardize repository setup
afc163 Jun 26, 2026
452068e
chore: address review feedback
afc163 Jun 26, 2026
bbb3e00
chore: remove cloudflare preview and now-build
afc163 Jun 26, 2026
d16b8eb
docs: standardize README release details
afc163 Jun 26, 2026
54fe98b
ci: make surge preview non-blocking
afc163 Jun 26, 2026
21186bb
ci: keep surge preview as fallback
afc163 Jun 26, 2026
53adbf1
docs: refine README usage and ecosystem note
afc163 Jun 27, 2026
fc0d148
ci: isolate surge preview token
afc163 Jun 27, 2026
0065a00
docs: add Chinese README
afc163 Jun 27, 2026
cac19fa
docs: add Ant Design logo to README
afc163 Jun 27, 2026
75efcea
docs: refine bilingual README branding
afc163 Jun 27, 2026
918507b
chore: standardize rc tooling and docs
afc163 Jun 27, 2026
ca1d70c
chore: address standardization review comments
afc163 Jun 27, 2026
def709c
chore: include father config in type checks
afc163 Jun 27, 2026
2027ffa
ci: update GitHub Actions versions
afc163 Jun 28, 2026
73add1c
ci: use resolvable CodeQL action ref
afc163 Jun 28, 2026
703ca12
fix: align dropdown docs and open class handling
afc163 Jun 28, 2026
2baf8c9
fix: preserve dropdown fallback wrapper class
afc163 Jun 28, 2026
efdbd3c
fix: simplify dropdown fallback child handling
afc163 Jun 28, 2026
73ec933
ci: use actions checkout v7
afc163 Jun 28, 2026
b384a3c
chore: standardize package metadata
afc163 Jun 28, 2026
e1f71d2
ci: standardize dependabot updates
afc163 Jun 28, 2026
060ebe8
chore: refine preview workflow ignores
afc163 Jun 28, 2026
c1d6f2f
docs: document dumi dev server port
afc163 Jun 28, 2026
4b90abe
chore: standardize husky configuration
afc163 Jun 28, 2026
903d8eb
docs: align readme badge layout
afc163 Jun 28, 2026
5146bcf
chore: standardize package type entry
afc163 Jun 28, 2026
af3de5a
docs: normalize readme badges
afc163 Jun 28, 2026
5b3778d
ci: limit reusable workflow secrets
afc163 Jun 28, 2026
1ee8ad8
ci: restore reusable workflow compatibility
afc163 Jun 28, 2026
38493da
ci: narrow surge preview permissions
afc163 Jun 28, 2026
8ee3fec
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
7 changes: 6 additions & 1 deletion .dumirc.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
// more config: https://d.umijs.org/config
import { defineConfig } from 'dumi';

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

export default defineConfig({
favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'],
themeConfig: {
name: 'rc-dropdown',
logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
},
outputPath: '.docs',
outputPath: 'docs-dist',
base: basePath,
publicPath,
Comment thread
coderabbitai[bot] marked this conversation as resolved.
exportStatic: {},
styles: [
`
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
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
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ name: CI

on: ['push', 'pull_request']

permissions:
contents: read
jobs:
CI:
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 }}
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: "38 3 * * 6"
- cron: '38 3 * * 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 }}'
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."
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ pnpm-lock.yaml
.dumi/tmp-test
.dumi/tmp-production
.docs
docs-dist
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

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