Commit Graph

454 Commits

Author SHA1 Message Date
MadCcc
8816dc04c7 Merge branch 'master' into feature-merge-master 2023-11-30 20:22:00 +08:00
afc163
6d963b7949
style: Alert background could be linear-gradient (#46188) 2023-11-30 18:03:38 +08:00
MadCcc
e6bf2e24a6
docs: add css var documatation (#46189)
* docs: add css var documatation

* chore: remove hash
2023-11-30 17:19:57 +08:00
MadCcc
735553503e
docs: update banner (#46167) 2023-11-29 19:05:19 +08:00
lijianan
aed105b6db
fix: fix site home page banner min-height (#46146) 2023-11-29 12:32:15 +08:00
lijianan
fee85c5fa1
Merge branch master into master-merge-feature 2023-11-29 03:32:56 +08:00
MadCcc
e2e0e9f9e5
docs: banner recommendation (#46124)
* docs: recover banner

* docs: rec

* chore: add banner recommends
2023-11-28 15:31:36 +08:00
lijianan
bb40c380da
demo: update segmented demo from Space to Flex (#46114) 2023-11-28 11:03:22 +08:00
lijianan
cc5724481c
Merge branch master into master-merge-feature 2023-11-28 07:58:49 +08:00
MadCcc
0e360ed861
chore: bump antd-tools version (#46103)
* chore: bump antd-tools version

* chore: bump
2023-11-27 17:53:05 +08:00
lijianan
244339d16e
chore: merge master into feature 2023-11-25 05:25:29 +08:00
lijianan
03409af97f
fix: remove extra parentheses
Signed-off-by: lijianan <574980606@qq.com>
2023-11-24 23:06:58 +08:00
afc163
f21695817e
docs: fix xpm install commend style (#46077) 2023-11-24 19:25:12 +08:00
lijianan
57b5ec4dd6
chore: merge master into feature 2023-11-23 20:43:11 +08:00
Zheeeng
6b18c85aa3
fix: xtech logo (#46043) 2023-11-23 17:50:23 +08:00
Zheeeng
d85c37b3b3
chore: add intro to Galacean Effects (#46026)
* chore: add intro to Galacean Effects

* fix: change GE to Galacean

---------

Co-authored-by: 慕还 <zhengjiang.jz@antgroup.com>
2023-11-23 15:13:00 +08:00
lijianan
17dff7c630
chore: merge master into feature 2023-11-23 03:09:24 +08:00
afc163
5aafe6d39a site: use vanilla-tilt.js for banner motion 2023-11-22 17:57:53 +08:00
MadCcc
4203208af5
feat: cssVar could be disabled by set to false (#45987)
* feat: cssVar could be disabled by set to false

* chore: update test case
2023-11-22 09:46:18 +08:00
Peach
aec6a80964
chore: correct type error in theme file (#45949)
Signed-off-by: Peach <scdzwyxst@gmail.com>
2023-11-17 17:53:28 +08:00
二货爱吃白萝卜
dc25579c20
fix: zIndex miss of message (#45911)
* fix: zIndex miss of message

* fix: modal static index

* test: update snapshot

* test: update snapshot

* test: update snapshot

* test: fix zIndex test

* test: update test case

* chore: clean up

* test: coverage
2023-11-17 10:54:19 +08:00
zbw-zbw
f0a2695df9
site(Header): increase z-index (#45890)
Co-authored-by: zbw01218944 <zbw01218944@alibaba-inc.com>
2023-11-15 20:00:52 +08:00
lijianan
4266517ddd
chore: merge master into feature 2023-11-14 02:59:19 +08:00
MadCcc
3a0ab9d371
chore: add lint for cssVar (#45828)
* chore: add lint for css var

* chore: code clean

* chore: use linter

* chore: code clean

* chore: clean

* chore: update

* chore: code clean
2023-11-13 11:56:13 +08:00
MadCcc
4eb6e20c1d
docs: fix ssr (#45785) 2023-11-10 16:16:36 +08:00
MadCcc
4e29e8d1ce
feat: ConfigProvider cssvar support boolean (#45760)
* feat: css var

* chore: fix type

* chore: fix type

* chore: update
2023-11-10 10:02:46 +08:00
Vincent
de3a08f36e
chore: header use d2tech (#45756)
* chore: header use d2tech

* chore: del img

* chore: use d2 head background

* Apply suggestions from code review

style: keep message unified style

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: Vincent <Zaynex@126.com>

---------

Signed-off-by: Vincent <Zaynex@126.com>
Co-authored-by: xiwenzheng.xwz <xiwenzheng.xwz@antgroup.com>
Co-authored-by: afc163 <afc163@gmail.com>
2023-11-10 09:53:47 +08:00
MadCcc
5f1dd427df
feat: css var (#45589)
* feat: css variables theme

* chore: temp

* chore temp

* chore: temp

* chore: temp

* chore: tmp

* chore: temp

* feat: full css variables

* feat: css var

* chore: code clean

* chore: code clean

* chore: bump cssinjs

* test: fix lint

* feat: better key logic

* feat: useStyle add param rootCls for cssVar scope

* chore: fix lint

* chore: code clean

* chore: fix lint

* perf: minimize component token size

* chore: make useId compatible

* chore: code clean

* chore: fix lint

* chore: code clean

* chore: update test case

* feat: genCSSVarRegister

* feat: RPN Calculator

* chore: add test for css var

* chore: code clean

* test: add test for calc

* feat: better calc type

* chore: code clean

* chore: update size limit

* feat: better useCSSVar

* chore: better useCSSVar

* test: add cov

* feat: better calc logic

* test: add test case

* chore: code clean

---------

Signed-off-by: MadCcc <madccc@foxmail.com>
2023-11-06 10:31:51 +08:00
MadCcc
e6d9232777
docs: fix demo editor shadow (#45636) 2023-11-02 19:33:00 +08:00
MadCcc
9f1b8f13d0
docs: fix code selection style issue (#45631) 2023-11-02 16:40:33 +08:00
afc163
7e284736a8
demo: improve popconfirm/popover/tootlip placement demo code style (#45581) 2023-10-30 13:57:57 +08:00
MadCcc
6a525ccbec
docs: fix banner blur (#45504) 2023-10-25 10:54:42 +08:00
afc163
8ffa721412
chore: IconSearch ts errors (#45506)
* chore: IconSearch ts errors

* Apply suggestions from code review

Signed-off-by: afc163 <afc163@gmail.com>

---------

Signed-off-by: afc163 <afc163@gmail.com>
2023-10-24 16:11:01 +08:00
MadCcc
67165a78fc
docs: live demo (#45383)
* docs: live demo

* chore: bump dumi

* chore: fix lint

* chore: fix lint

* chore: update demo

* chore: bump dumi

* docs: enhance live demo

* docs: update text
2023-10-23 22:49:49 +08:00
afc163
9dd9db079b
chore: fix banner style in safari (#45485) 2023-10-23 15:02:51 +08:00
afc163
fb0297f7bf
chore: load home page component lazily (#45467)
* chore: load home page component lazily

* chore: improve home page blur style in Chrome
2023-10-21 16:39:59 +08:00
afc163
cd03c11727
docs: improve home page banner style (#45459) 2023-10-20 23:05:04 +08:00
afc163
29551aaaba
chore: fix overview page search outline style (#45458) 2023-10-20 23:04:50 +08:00
MadCcc
984977177a
docs: bump theme editor (#45369) 2023-10-16 20:37:05 +08:00
MadCcc
04cc086fb5
chore: fix tsc (#45352) 2023-10-15 19:17:32 +08:00
kiner-tang(文辉)
c727bed0e8
chore: solve the eslint error about null (#45328) 2023-10-13 18:18:07 +08:00
二货爱吃白萝卜
70ce748d57
fix: options missing id (#45287) 2023-10-12 09:43:35 +08:00
72fc3b6f3c
chore(site): anchor jump don't work (#45243)
* chore: fix typo error

* chore: fix anchor jump failure

* Revert "chore: fix anchor jump failure"

This reverts commit 9a1127353d.

* chore: fix

* Revert "chore: fix"

This reverts commit 9dc69f1164.

* Revert "site: remove legacy code for hash jump (#44836)"

This reverts commit 72da2678aa.

* chore: remove

* Update .dumi/theme/layouts/DocLayout/index.tsx

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: 红 <wxh16144@qq.com>

* chore: update

---------

Signed-off-by: 红 <wxh16144@qq.com>
Co-authored-by: afc163 <afc163@gmail.com>
2023-10-10 17:30:46 +08:00
叶枫
604948e6a9
e 2023-10-09 11:12:51 +08:00
叶枫
75611b7db8
chore: scroll to the top of the page when the search box value changes (#45211) 2023-10-08 15:41:50 +08:00
afc163
f03a4de272
chore: improve switch theme perf in home page (#45210) 2023-10-08 15:29:45 +08:00
MadCcc
d5d9e723f8
chore: fix overview link (#45206)
* chore: fix overview link

* chore: update
2023-10-08 13:44:02 +08:00
Ricky
24ed2cf364
docs: fix site document title flash during page loading (#44631)
* fix: site document title rerender after dumi prerender

* fix: comment & index page listener render

* fix: define seperate layour for index page & seperate Helmet title + desc definition

---------

Co-authored-by: afc163 <afc163@gmail.com>
2023-10-07 14:23:52 +08:00
afc163
abba072bd5
docs: fix API Table styling (#45001)
Signed-off-by: afc163 <afc163@gmail.com>
2023-10-07 12:13:20 +08:00
131a17d099
chore: improve demo dependency logic (#45142) 2023-10-07 09:45:27 +08:00
kiner-tang(文辉)
af38d9f9ee
docs: API table style optimize (#45185) 2023-10-06 09:23:53 +08:00
afc163
07eb5ba82d
docs: move copy button into code previewer (#45099) 2023-09-26 16:41:41 +08:00
MadCcc
e43686da70
docs: fix site issue (#45063)
* docs: fix site issue

* chore: code clean
2023-09-25 16:08:42 +08:00
MadCcc
dcfd1aea66
chore: do not show mirror modal in preview (#45011) 2023-09-22 11:38:56 +08:00
a9d6422722
docs: improve display of color block in docs (#44790)
* chore: update blog style

* Revert "chore: update blog style"

This reverts commit afc0a1d927.

* Revert "site: update docs styles (#39348)"

This reverts commit 4a803962eb.

# Conflicts:
#	.dumi/theme/builtins/ColorChunk/index.tsx
#	.dumi/theme/builtins/TokenTable/index.tsx
#	docs/react/customize-theme.en-US.md
#	docs/react/customize-theme.zh-CN.md

* chore: revert

* chore:revert

* chore: rename props

* chore: update

* chore(deps): add `dumi-plugin-color-chunk` plugin

* chore: update docs

* chore: update

* Update package.json

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: 红 <wxh16144@qq.com>

* docs: pick #44945

Co-authored-by: RedJue <RedJue@users.noreply.github.com>

---------

Signed-off-by: 红 <wxh16144@qq.com>
Signed-off-by: 红 <wxh1220@gmail.com>
Co-authored-by: MadCcc <1075746765@qq.com>
Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: RedJue <RedJue@users.noreply.github.com>
2023-09-20 16:59:56 +08:00
MadCcc
e41026ab59
docs: fix site issues (#44970) 2023-09-20 16:50:55 +08:00
afc163
5c99a5ee49
type: fix type errors of React.Key (#44938)
* type: fix .dumi typing error

* type: fix React.Key type error

* type: fix React.Key type error

* type: fix React.Key type error

* type: fix React.Key type error

* Apply suggestions from code review

Signed-off-by: afc163 <afc163@gmail.com>

* fix: test case

* fix: test case

* chore: use @types/react latest version

* Apply suggestions from code review

Signed-off-by: afc163 <afc163@gmail.com>

* chore: update form def

* chore: more ts

* chore: revert demo ts

* chore: bump ver

* chore: fix more

* chore: fix demo

* chore: back of ci

* chore: fix ts

* chore: fix ts

* chore: part of it

* chore: fix ts

* chore: bump ver

* chore: fix lint

* chore: fix

* test: update test

---------

Signed-off-by: afc163 <afc163@gmail.com>
Co-authored-by: 二货机器人 <smith3816@gmail.com>
2023-09-20 11:01:49 +08:00
MadCcc
6939a2fcdf
docs: fix hydration (#44952) 2023-09-19 21:01:07 +08:00
afc163
9455ebec44
docs: update 5.9.2 changelog and lock @types/react (#44943)
* docs: update 5.9.2 changelog and lock @types/react

* docs: update 5.9.2 changelog and lock @types/react
2023-09-19 12:35:37 +08:00
红果汁
49846b8799
docs: fix yuque banner style issue (#44940) 2023-09-19 11:18:46 +08:00
二货爱吃白萝卜
dfe6c2c490
docs: Part of update (#44930)
* chore: fix changelog parser

* chore: clean up

* chore: fix site image style

* chore: bug version

* chore: clean up
2023-09-18 15:30:30 +08:00
lijianan
a0699ea1a0
type: fix .dumi type error (#44916) 2023-09-17 23:32:14 +08:00
afc163
62e338c775
type: enable type prompt for .dumirc.ts (#44886)
* type: fix .dumi missing types

* Update tsconfig.json

Signed-off-by: lijianan <574980606@qq.com>

* Update tsconfig.json

Signed-off-by: lijianan <574980606@qq.com>

* Update tsconfig.json

Signed-off-by: lijianan <574980606@qq.com>

* chore: clear tsconfig.json

* chore: update dumi version declaration

* type: correct unified plugin types

---------

Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: lijianan <574980606@qq.com>
Co-authored-by: PeachScript <scdzwyxst@gmail.com>
2023-09-17 21:52:01 +08:00
cwg
5ac472d042
site: add LocalStorage caching for bannerVisible (#44910)
* feat: add LocalStorage caching for banner visible

* feat: add cache expiration time
2023-09-16 23:42:12 +08:00
cwg
2627caebb4
fix: site style conflict (#44899)
* fix: site style conflict

* chore: lint

* feat: optimize code
2023-09-15 22:03:53 +08:00
cwg
4d3814478c
site: optimize banner display (#44894) 2023-09-15 18:48:34 +08:00
cwg
fa61f81144
site: announce yuque welfare program (#44884)
* site: announce yuque welfare program

* chore: lint

* feat: optimize code

---------

Co-authored-by: MadCcc <1075746765@qq.com>
2023-09-15 16:42:01 +08:00
afc163
72da2678aa
site: remove legacy code for hash jump (#44836) 2023-09-13 19:08:52 +08:00
MadCcc
9ec402cfe1
docs: try to fix hydration error (#44797) 2023-09-13 09:31:22 +08:00
afc163
fa5c98311a
docs: fix demo code copy function (#44751) 2023-09-11 11:52:36 +08:00
kiner-tang(文辉)
b9dfb1847d
site: solve display exception when use happy work theme in dark mode (#44720)
* site: solve display exception when use happly work theme in dark mode

* feat: remove log

* feat: optimize code
2023-09-11 11:17:11 +08:00
afc163
4489eec5b1
docs: add banner mouse effect animation (#44711)
* docs: add banner mouse effect animation

* refactor to useRef

* refactor to react way

* refactor to hooks

* type: add type

* fix: fix error

* fix: fix error

* fix: update RTL

---------

Co-authored-by: 栗嘉男 <574980606@qq.com>
2023-09-10 12:27:10 +08:00
红果汁
2cf22e8ed3
docs: add theme toggle animation (#44655)
* docs: add theme toggle animation

* fix: add compatibility judgment

* refactor: optimization code

* fix: server document not found

* fix: animation lag

* fix: transition issue

* fix: scroll bar theme color
2023-09-08 17:42:12 +08:00
期贤
a873471f5a merge 2023-09-07 12:05:16 +08:00
lijianan
7344f5e275
chore: replace useToken with useInternalToken (#44670) 2023-09-07 10:15:58 +08:00
yoyo837
ad46da1697 Merge branch 'master' into feature-merge-master 2023-09-03 00:22:34 +08:00
KuangPengfei
24c7b2ea42
site: optimize site scroll bar dark mode style (#44588)
* style(site): set `prefers-color-scheme` value to optimize the dark mode style of the site scroll bar

* style(site): optimize the value acquisition logic of `prefers-color-scheme`
2023-09-02 12:17:20 +08:00
kiner-tang(文辉)
e23cc690e7
feat: support hide expandIcon (#44554)
* site: hide theme example menu's expandIcon

* feat: optimize code

* feat: optimize code

* feat: update test case
2023-09-01 11:09:48 +08:00
栗嘉男
b12d69cf42 chore: merge master into feature 2023-09-01 00:02:50 +08:00
afc163
ae53a452f2
docs: add help text for token customization (#44540)
* docs: add help text for token customization

* docs: add help text for token customization

* docs: add help text for token customization

* docs: add help text for token customization
2023-08-31 09:48:54 +08:00
afc163
3f148d9112 docs: add help text for token customization 2023-08-30 23:02:35 +08:00
二货爱吃白萝卜
659054ee49
docs: Blog virtual table (#44526)
* docs: virtual table

* docs: fix other blog style

* docs: more
2023-08-30 21:18:09 +08:00
叶枫
7e1e6d8e73
chore: fix overview search (#44523) 2023-08-30 09:53:18 +08:00
lijianan
fae1fef77d
fix: add role="button" props to div (#44494)
* fix: add role="button" props to div

* fix: fix
2023-08-29 15:04:03 +08:00
lijianan
4d1bac4651
site: add code-hide Button for CodePreviewer (#44449)
* site: add code-hide Button for CodePreviewer

* fix: fix style

* add token

* fix: fix css props

* fix

* fix: fix

* fix: fix

* Update .dumi/theme/builtins/Previewer/CodePreviewer.tsx

Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: lijianan <574980606@qq.com>

* fix: fix

---------

Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: MadCcc <1075746765@qq.com>
2023-08-28 20:10:40 +08:00
afc163
07056fa791
docs: fix theme card style in Firefox (#44473) 2023-08-28 19:48:55 +08:00
二货爱吃白萝卜
50bf708e59
fix: hooks call warning (#44450) 2023-08-27 19:57:19 +08:00
二货爱吃白萝卜
4e9ac02b08
fix: Tour panel token & home support dark mode (#44428)
* docs: update home page

* docs: home support dark mode

* docs: fix mobile

* docs: fix rtl

* docs: update locale
2023-08-25 19:08:52 +08:00
afc163
0295322564
docs: prevent highlight code initially (#44344) 2023-08-22 19:00:06 +08:00
MadCcc
70d9a909c4
docs: fix anchor positioning (#44348) 2023-08-22 17:48:53 +08:00
叶枫
80e1bc87bc
style: remove importOrderSeparation from prettier config (#44336) 2023-08-22 13:11:18 +08:00
MadCcc
da699b11be
docs: add fallback for previewer (#44327)
* docs: add fallback for previewer

* chore: code clean
2023-08-21 23:28:14 +08:00
MadCcc
21a2265efd
docs: show mirror modal on page load (#44291)
* docs: show mirror modal on page load

* chore: code clean

* chore: update

* fix: pathname reg

* chore: escape

* feat: add lang check

* chore: add langcheck

* feat: use src file

* chore: update css

* chore: update link

* Update .dumi/mirror-modal.js

Co-authored-by: lijianan <574980606@qq.com>
Signed-off-by: MadCcc <1075746765@qq.com>

---------

Signed-off-by: MadCcc <1075746765@qq.com>
Co-authored-by: lijianan <574980606@qq.com>
2023-08-21 19:51:47 +08:00
MadCcc
b50928fb88
chore: split previewer (#44310) 2023-08-21 14:38:22 +08:00
iola1999
80bd54f515
chore: redirect with rest url (#44298) 2023-08-18 18:29:44 +08:00
lijianan
3b913cf17b
site: add internationalization for docs (#44263)
* site: add internationalization for docs

* fix

* Update .dumi/theme/common/Color/ColorPaletteTool.tsx

Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: lijianan <574980606@qq.com>

* fix: fix

* fix: fix

* fix: fix

* fix: fix

---------

Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: MadCcc <1075746765@qq.com>
2023-08-18 10:41:45 +08:00
afc163
7179dc8d4c
docs: update footer links (#44272) 2023-08-17 19:12:34 +08:00
afc163
a92a883b77
docs: render china mirror link before hydration (#44233)
* docs: render china mirror link before hydration

* docs: fix pre render error

* chore: hide first

* chore: show china mirror link always
2023-08-16 18:19:11 +08:00
MadCcc
8a65ad6515
docs: fix font color (#44236) 2023-08-15 19:10:32 +08:00
MadCcc
3f0e74702e
docs: fix theme editor page (#44232) 2023-08-15 15:57:04 +08:00