Danial Soheili
4af6a526e2
feat(Anchor): allow replacing in anchor ( #43006 )
* 📦 ADD: replace prop to Anchor
* 📖 DOC: add demo
* 🧪 TEST: snapshots
* Update components/anchor/index.en-US.md
Co-authored-by: kiner-tang(文辉) <1127031143@qq.com>
* Update components/anchor/index.en-US.md
Co-authored-by: kiner-tang(文辉) <1127031143@qq.com>
* Update components/anchor/index.zh-CN.md
Co-authored-by: kiner-tang(文辉) <1127031143@qq.com>
* Update components/anchor/index.zh-CN.md
Co-authored-by: kiner-tang(文辉) <1127031143@qq.com>
* 🧪 TEST: Anchor replace
* 🧪 TEST: Anchor with href
* 🗑 REMOVE: unnecessary href default value
* Update components/anchor/demo/replace.md
Co-authored-by: kiner-tang(文辉) <1127031143@qq.com>
* Update components/anchor/demo/replace.md
Co-authored-by: kiner-tang(文辉) <1127031143@qq.com>
---------
Co-authored-by: kiner-tang(文辉) <1127031143@qq.com>
1 year ago
MadCcc
7322aa6f5f
Revert "chore: migrate to vitest ( #42506 )" ( #42900 )
This reverts commit 6759887c44
.
1 year ago
Dunqing
6759887c44
chore: migrate to vitest ( #42506 )
* chore: migrate to vitest
* chore: update ci
* fix: test correctly
* test: support puppeteer
* chore: update coverage
* chore: update include/exclude
* chore: update config
* test: update incorrect tests
* chore: update script
* chore: update
* fix: should close browser at the ended
* chore: improve
* fix: test cause tsc error
* fix: eslint error
* chore: exclude correctly
* test: update snap and fix some tests
* chore: update test config
* fix: countup.js
* fix: incorrect test
* chore: update reference
* test: update
* fix: countup.js
* fix: timeout
* chore: update site test
* fix: fixed countup version
* chore: remove unsed code
* test: update
* test: update demo timeout
* test: update timeout
* chore: update image test
* chore: update threads
* fix: image/svg+xml test failed
* chore: limits threads
* test: update test coverage include
* chore: remove jest files
* chore: rename jest to vi
* chore: update document
* chore: fix missing @types/jsdom
* chore: update coverage
* chore: update snap
* fix:watermark test cases are incorrect
* feat: update ignore comment
* test: fix test case
* test: reset body scrollTop
* test: clean up
* test: use vi
* test: update snapshot
* test: update snapshot
* test: fix dropdown test failed
* fix: toHaveStyle cause test fail
* test: improve test case
* test: fix
* fix: color failed, refer to https://github.com/jsdom/jsdom/pull/3560
* test: fix
* test: fix
* test: fix circular import
* test: revert
* ci: coverage failed
* test: fix c8 ignore comment
* chore: incorrect config
* chore: fix ignore ci
* test: revert svg+xml
* test: fix realTimers
* feat: rc-trigger should be remove
* test: fix some failed test
* chore: remove unused deps and configure eslint-plugin-vitest
* test: update snap
* chore: remove jest
* test: fix lint error
---------
Co-authored-by: 二货机器人 <smith3816@gmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
1 year ago
muxin
f11c3c3a08
feat: migrate less to token for Anchor ( #42141 )
* feat: rename anchor token
* docs: add component-token demo
* fix: update token
2 years ago
lijianan
ac5a06027e
revert: "chore: unified import method ( #42149 )" ( #42180 )
This reverts commit ea8ed28209
.
2 years ago
lijianan
ea8ed28209
chore: unified import method ( #42149 )
* chore: unified import method
* fix lint
2 years ago
JiaQi
a573dde6ed
fix(Anchor): onChange method is not updated ( #41934 )
2 years ago
acyza
16f0b576a7
fix(anchor): ink correct switch direction ( #41317 )
* fix(anchor): ink correct switch direction
* chore(anchor): fix test error
* chore(anchor): fix test error
* chore: test
* chore: test
* chore: test
* chore: update
2 years ago
二货爱吃白萝卜
6770b7fb22
test: Use render for demo-extends test ( #41242 )
* test: update snapshot
* test: use render
* test: fix skip
* test: fix skip
2 years ago
dependabot[bot]
1df1034f20
chore(deps-dev): bump glob from 8.1.0 to 9.2.1 ( #41109 )
* chore(deps-dev): bump glob from 8.1.0 to 9.2.1
Bumps [glob](https://github.com/isaacs/node-glob ) from 8.1.0 to 9.2.1.
- [Release notes](https://github.com/isaacs/node-glob/releases )
- [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md )
- [Commits](https://github.com/isaacs/node-glob/compare/v8.1.0...v9.2.1 )
---
updated-dependencies:
- dependency-name: glob
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* fix: update api
* fix
* fix
* fix path
* fix path
* update snap
* update snap
* update snap
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: 栗嘉男 <574980606@qq.com>
2 years ago
Lioness100
fd0d8b6031
docs: fix typos ( #40791 )
* docs: fix typos
* Update index.zh-CN.md
* test: update snapshot
* docs: fix demo ref
* chore: force trigger ci
* chore: force trigger ci
* chore: bump dumi ver
---------
Co-authored-by: Amumu <yoyo837@hotmail.com>
Co-authored-by: 二货机器人 <smith3816@gmail.com>
2 years ago
二货爱吃白萝卜
1fc374495f
chore: patch for missing rootClassName ( #40217 )
* chore: init test
* test: rootClassName inject
* test: part of test
* chore: patch qrcode rootCls
* chore: part rootClassName
* chore: part rootClassName
* test: more test
* test: more test
* test: more test
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* test: more test
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: fix lint
* chore: fix lint
* chore: ignore part of lint
* test: update snapshot
* test: fix test case
* chore: fix node test
* chore: adjust render logic
* fix: test
* test: update snapshot
* test: update
* refactor
* chore: fix require module logic
2 years ago
René Wang
a2980e3d57
lint: remove useless `ts-ignore` comment ( #40289 )
2 years ago
Yuki Zhang
4eff22497d
feat: Anchor horizontal ( #39372 )
* feat: AnchorInk
* feat: update
* feat: update ink
* test: add test
* feat: handle with nested link
* feat: improve
* fix: lint
* feat: get direction from context in AnchorLink
* docs: update demo
* test: update snapshot
* test: update snapshot
* test: update snapshot
* test: update test cases
* test: update snapshot
* test: update snapshots
* test: update snapshots
* test: update test cases
* test: update test cases
* docs: update
* test: improve
* docs: update demo
* doc: update demos
* doc: update demos again
* feat: use scroll-into-view-if-needed
* fix: hide scrollbar
* docs: update demos
* fix: active transition for horizontal anchor
* chore: fix terser (#39617 )
* chore: fix terser
* chore: clean up
* test: update snapshot
* feat: improve code style
* feat: anchor ink improvement
* feat: improve code style
* fix: lint issue
* test: update snapshots
* docs: simplified the demo
* feat: Merge the AnchorInk component back into the Anchor component
* feat: Adjust DOM order
* test: update snapshots
* docs: Improve the document
* feat: simplify css classnames
* test: update snapshots
Co-authored-by: 二货爱吃白萝卜 <smith3816@gmail.com>
2 years ago
二货爱吃白萝卜
de31c90b08
docs: Adjust Anchor demo ( #39488 )
2 years ago
Yuki Zhang
51da7e3dc1
feat: Anchor component changed to data-driven ( #39034 )
* feat: Anchor component changed to data-driven
* test: add test cases for data driven items
* fix: type
* chore: mark deprecated for anchor children prop
* docs: add items description
* test: update snapshot
* docs: demos changed to data-driven
* docs: Keep the old jsx syntax demo for debugging
2 years ago
MadCcc
de555912c9
feat: anchor ink ball style ( #38616 )
* feat: anchor ink ball style
* chore: code clean
* chore: code clean
* chore: code clean
* chore: update snapshot
* chore: change cover
2 years ago
二货爱吃白萝卜
cbcfd38ca7
docs: v5 site upgrade ( #38328 )
* build: try to use dumi as doc tool
* docs: migrate demo structure to dumi way
* refactor: use type export & import
* docs: migrate demo previewer to dumi
* docs: create empty layout & components
* docs: apply custom rehype plugin
* docs: create empty extra pages
* docs: Add Banner component
* chore: move theme tsconfig.json
* docs: home page init
* docs: migrate header (#37896 )
* docs: header
* docs: update
* docs: home init
* clean up
* test: fix site lint
* chore: tsc ignore demo
* chore: dumi demo migrate script
* chore: cards
* docs: home layout
* docs: Update locale logic
* docs: fix getLink logic
* chore: fix ci (#37899 )
* chore: fix ci
* ci: remove check-ts-demo
* ci: preview build
* test: ignore demo.tsx
* chore: update script
* test: update snapshot
* test: update node and image test
* chore: add .surgeignore
* docs: layout providers (#37908 )
* docs: add components sidebar (#37923 )
* docs: sidebar
* docs: update docs title
* docs: update design doc
* chore: code clean
* docs: handle changelog page
* docs: add title
* docs: add subtitle
* docs: active header nav
* chore: code clean
* docs: overview
* chore: code clean
* docs: update intl (#37918 )
* docs: update intl
* chore: code clean
* docs: update favicons
* chore: update testPathIgnorePatterns
* chore: code clean
* chore: code clean
* chore: copy 404.html (#37996 )
* docs: Home page theme picker
* chore: Update migrate script
* docs: home page update
* docs: theme editor style
* docs: theme lang
* chore: update migrate.js
* docs: fix demo (#38094 )
* chore: update migrate.js
* docs: update md
* docs: update demo
* test: fix snapshot
* chore: move debug to code attr in migrate script
* chore: update md
Co-authored-by: PeachScript <scdzwyxst@gmail.com>
* feat: overview page
* feat: Migrate `404` page (#38118 )
* feat: migrate IconSearch component (#37916 )
* feat<site/IconSearch>: copy IconDisplay from site to .dumi
* feat<site/IconSearch>: change docs of icon
* feat<site/IconSearch>: tweak
* feat<site/IconSearch>: use useIntl instead of injectIntl
* feat<site/IconSearch>: fix ts type error
* feat<site/IconSearch>: use intl.formatMessage to render text
* docs: Adjust home btn sizw
* docs: Update doc
* feat: v5 site overview page (#38131 )
* feat: site
* fix: fix
* feat: v5 site overview page
* fix: fix path
* fix: fix
* fix: fix
* docs: fix margin logic
* feat: v5 site change-log page (#38137 )
* feat: v5 site change-log page (#38162 )
* docs: site redirect to home pag
* docs: theme picker
* docs: use react-intl from dumi (#38183 )
* docs: Theme Picker
* docs: update dumi config
* docs: home back fix
* docs: picker colorful
* docs: locale of it
* docs: update components desc
* docs: site of links
* docs: update components list
* docs: update desc
* feat: Migrate `DemoWrapper` component (#38166 )
* feat: Migrate `DemoWrapper` component
* feat: remove invalid comments and add comment for `key` prop
* docs: FloatButton pure panel
* chore: update demo
* chore: update dumi config
* Revert "chore: update demo"
This reverts commit 028265d3ba
.
* chore: test logic adjust to support cnpm modules
* chore: add locale alias
* docs: /index to /
* docs: add locale redirect head script
* chore: adjust compact
* docs: fix missing token
* feat: compact switch
* chore: code clean
* docs: update home
* docs: fix radius token
* docs: hash of it
* chore: adjust home page
* docs: Add background map
* docs: site theme bac logic
* docs: avatar
* docs: update logo color
* docs: home banner
* docs: adjust tour size
* docs: purepanl update
* docs: transfooter
* docs: update banner gif
* docs: content (#38361 )
* docs: title & EditButton
* docs: content
* chore: fix toc
* docs: resource page
* docs: transform resource data from hast
* docs: filename & Resource Card
* chore: enable prerender
* chore: remove less
* docs: toc style
* chore: fix lint
* docs: fix Layout page
* docs: fix CP page
* chore: update demos
* docs: workaround for export dynamic html
* chore: enable demo eslint
* docs: table style
* fix: header shadow
* chore: update snapshot
* fix: toc style
* docs: add title
* docs: Adjust site
* feat: helmet
* docs: site css
* fix: description
* feat: toc debug
* docs: update config-provider
* feat: use colorPanel
* fix: colorPanel value
* feat: anchor ink ball style
* feat: apply theme editor
* fix: code block style
* chore: update demo
* chore: fix lint
* chore: code clean
* chore: update snapshot
* feat: ts2js
* chore: description
* docs: site ready for ssr
includes:
- move client render logic to useEffect in site theme
- extract antd cssinjs to a single css file like bisheng
- workaround to support react@18 pipeableStream for emotion
* chore: bump testing lib
* docs: font size of title
* chore: remove react-sortable-hoc
* chore: update snapshot
* chore: update script
Co-authored-by: PeachScript <scdzwyxst@gmail.com>
Co-authored-by: MadCcc <1075746765@qq.com>
Co-authored-by: zqran <uuxnet@gmail.com>
Co-authored-by: TrickyPi <530257315@qq.com>
Co-authored-by: lijianan <574980606@qq.com>
2 years ago
lijianan
d448c37cdb
test: simplify test case ( #38374 )
2 years ago
Rex Zeng
b0fe69c18f
refactor(Anchor): rewrite CC => FC ( #38265 )
* fix: fix
* fix: fix
* fix: del forwardRef
* fix: add depList
* test(anchor): rewrite test to match the latest fc implementation
* fix: eslint error fix
* style: type optimization
* style: type optimization
* Update components/anchor/Anchor.tsx
Co-authored-by: afc163 <afc163@gmail.com>
* Update Anchor.tsx
* Update components/anchor/Anchor.tsx
Co-authored-by: afc163 <afc163@gmail.com>
* fix: rename
* fix: fix
* fix: fix
* Update components/anchor/style/index.less
Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: lijianan <574980606@qq.com>
Co-authored-by: afc163 <afc163@gmail.com>
2 years ago
lijianan
b3a37b7ca9
refactor: Anchor.Link with FC ( #37957 )
* fix: fix
* fix: fix
* fix: revert
* fix: fix
* test: fix test case
* test: fix
* test: fix
* fix: fix
* fix: fix
2 years ago
hms181231
c04bdd0928
test: Update Anchor test case sleep -> useFakeTimers ( #37955 )
2 years ago
二货爱吃白萝卜
b7634968d7
test: Use SSR for testing demo ( #37890 )
* test: Use SSR for testing demo
* chore: fix lint
* test: align with react 18
2 years ago
二货机器人
069e44bcc3
chore: merge master
2 years ago
afc163
a1d86cbd09
fix: Anchor current not changed ( #37644 )
close #37627
2 years ago
黑雨
01ca7c7821
test: convert demo to testing-lib ( #37381 )
* test: replace testing-lib
* test: replace testing-lib
* test: replace testing-lib
* test: update snap
* test: replace testing-lib
* test: replace testing-lib
* test: update for lint
* merge: merge
* test: testing-lib
* test: replace testing-lib
* test: testing-lib
* test: testing-lib
* test: replace testing-lib
* test: replace testing-lib
* test: Replace test aria replacment logic
* test: Update snapshot
* chore: hack for id
* test: clean up
* test: clean demo
* chore: update
* test: snapshot update
* test: fix snapshot rep logic
* test: fix snapshot rep logic
* test: fix snapshot rep logic
* chore: update demo
* test: fix snapshot rep logic
* test: Update snapshot
* test: rest snapshot
* test: update snapshot
* test: Update test case
* test: config env
* chore: clean up
* chore: Use renderServer instead
* test: adjust testing logic
* test: modify test logic
* test: split ssr test
* test: skip if need skip
* chore: ignore test file covv
Co-authored-by: 二货机器人 <smith3816@gmail.com>
2 years ago
二货机器人
2c2c631bfd
chore: prettier components ( #36171 )
2 years ago
linqiqi077
44b9ab7e40
test: migrate part of anchor tests ( #35371 )
3 years ago
Long Hao (龙濠)
eb7f8c7ef1
refactor: change anchor to fc for the cssinjs prepare ( #35073 )
* refactor: change anchor to fc for the cssinjs prepare
* fix: fix anchor test
3 years ago
afc163
30ac6bd4e4
test: wrap React.StrictMode for test cases ( #35026 )
* test: React StrictMode
* test: fix Spin test
* chore: wrapper enzyme
* test: fix setState
* test: more test cover
* test: more test cover
* test: more test cover
* test: more test cover
* test: more test cover
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: disable part of it
* test: fix test & add placeholder
* test: Use orign enzyme mount
Co-authored-by: zombiej <smith3816@gmail.com>
3 years ago
afc163
0edd112d5b
feat: Anchor supports `getCurrentAnchor(activeLink)` ( #34799 )
close #34784
3 years ago
Di Wu
f53e615518
fix: Invalid memoized context value in LocaleProvider ( #33723 )
* fix: Invalid memoized context value in LocaleProvider
* Add button type in test case.
* fix: Invalid memoized context value in Anchor
3 years ago
二货机器人
2df11184f4
test: Demo check popup content ( #33378 )
* auto demo
* chore: update demo snapshot
* fix: trigger mock ref logic
* chore: try 2 test case
* chore: more snapshot
* chore: update snapshot
* chore: fix ts
* chore: split test
* test: Update test case
* chore: fix test order
3 years ago
tangjinzhou
ea7c41b90a
fix: anchor add prefixCls ( #33085 )
Co-authored-by: undefined <undefined>
3 years ago
Aex
5328b4bb62
fix(anchor): targetOffset not work when contain spaces ( #31952 )
* fix(anchor): targetOffset not work when contain spaces
* fix(anchor): Modify the code style according to the lint rules
3 years ago
afc163
e021147bb8
fix: Anchor should trigger onChange when have getCurrentAnchor ( #30601 )
* fix: Anchor should trigger onChange when have getCurrentAnchor
close #30584
* test: add test case
4 years ago
骗你是小猫咪
6fba4d1136
test: demo -> ui test ( #24475 )
* test: demo -> ui test
* improve comment image width
* use argos-ci
* use by cicleci
* fix circle run
* rebase master
* try pipeline var
* use another branch var
* fix commit id
* ignore image test file
* remove useless report
* fix test coverage
4 years ago
afc163
704899415e
docs: 📝 fix anchor demo
4 years ago
偏右
637aa09bc5
chore: ✅ fix some eslint problems ( #24836 )
* 💄 fix lint
* 💄 fix lint
5 years ago
偏右
633d064640
✅ increase code cov ( #23880 )
5 years ago
Eric Wang
815baee4d9
chore: Transform anchor test to typescript ( #23499 )
* chore: Transform anchor test to typescript
* Separate dom
* use hash
* .
* chagnelog
* chore: Transform anchor test to typescript
* Separate dom
* use hash
* .
* rebase
5 years ago
吴泽康
4c9d03874b
fix: anchor regexp ( #23577 ) ( #23595 )
* fix: anchor regexp (#23577 )
* test: fix anchor complete href scrollTo test
* test: anchor sharp matcher regexp
* test: Anchor render perfectly for complete href - hash router
5 years ago
Eric Wang
55265ac4ef
chore: Replace domhook with jest.spyon ( #23469 )
* chore: Replace domhook with jest.spyon
* use mockreturn value when possible
* Update tests/shared/focusTest.js
5 years ago
偏右
66f67051af
test: ✅ improve test for requestAnimationFrame ( #22433 )
* test: improve test for requestAnimationFrame
* ✅ fix test coverage
* fix test case
* fix test case
5 years ago
骗你是小猫咪
b93d10d40b
feat(Anchor): add onChange prop ( #18715 )
* feat(Anchor): add onChange prop
* test(Anchor): add onChange prop
* update snapshots
5 years ago
骗你是小猫咪
d9bfc689a4
test(Anchor): optimize dataNowMockFn, avoid being consumed in advance ( #18663 )
* 优化 dataNowMockFn, 避免被提前消费
* test circleci/node:latest
* change .circleci circleci/node:latest -> circleci/node:lts
* add step command [node -v] check current node version
* retry ci test
* rebase master
* retry CI test
5 years ago
afc163
06be298a5c
✅ fix ci
5 years ago
DiamondYuan
a5f1fc80fd
fix: Anchor.Link add add new property target ( #18335 )
* fix: Anchor.Link add add new property target
* docs: update doc of anchor
5 years ago
shao
2416d17b74
test: reduce test time
5 years ago
shao
9a3feda565
test: reduce test time
5 years ago