afc163
|
0f6d1db614
|
fix lint
|
8 years ago |
afc163
|
d44a0ece3f
|
site: improve styles
|
8 years ago |
YuyingWu
|
e8cf22ad0e
|
site: fix locale switch
* antD首页从英文切换到中文时,replace导致链接错误
首页从英文转到中文,点击header上的“中文”时,链接会跳到 https://ant.design/index-cn/ant.design/ (Chrome)或者 https://index-cn/ant.design/ (Safari)
bug来自handleLangChange函数下,最后对location.href.replace操作时出错,原因来自replace匹配到location.href的第一个/
('https://ant.design/').replace('/', '/index-cn') 的运行结果是 https:/index-cn/ant.design/
为了避免replace匹配到location.href的第一个/,我建议的方案是使用 location.origin + location.pathname.replace
最后,感谢antD团队开发出那么棒的UI~
* 英转中,url替换(带hash、query)
英转中URL问题,上一版使用了location.origin + location.pathname,会丢失query和hash。此版本原理还是用location.href做replace,鉴于首页pathname可能是/会在替换中匹配到https:后的第一个/,所以先把href的protocol部分提取出来,再做replace,最后再拼回去做跳转。
|
8 years ago |
YuyingWu
|
a5f136f334
|
antD首页从英文切换到中文时,replace导致链接错误 (#5050)
首页从英文转到中文,点击header上的“中文”时,链接会跳到 https://ant.design/index-cn/ant.design/ (Chrome)或者 https://index-cn/ant.design/ (Safari)
bug来自handleLangChange函数下,最后对location.href.replace操作时出错,原因来自replace匹配到location.href的第一个/
('https://ant.design/').replace('/', '/index-cn') 的运行结果是 https:/index-cn/ant.design/
为了避免replace匹配到location.href的第一个/,我建议的方案是使用 location.origin + location.pathname.replace
最后,感谢antD团队开发出那么棒的UI~
|
8 years ago |
afc163
|
c78d3032f5
|
site: fix aside menu
|
8 years ago |
afc163
|
0cbe319839
|
Add copied message
|
8 years ago |
afc163
|
4bde2917d2
|
fix internal links
|
8 years ago |
Benjy Cui
|
e72d93edfe
|
site: add copy button to demo, close: #4563
|
8 years ago |
afc163
|
0f46eed370
|
fix lint
|
8 years ago |
afc163
|
5fbc007ff7
|
site: fix link
|
8 years ago |
afc163
|
c2217f666c
|
site: fix infinte redirect loop
|
8 years ago |
afc163
|
9bb7e3d10c
|
site: improve responsive layout
|
8 years ago |
afc163
|
205ace69ba
|
Fix bug of switch language in iOS
|
8 years ago |
afc163
|
c3748a60f4
|
site: improve responsive design
|
8 years ago |
afc163
|
2512e6b5b5
|
site: update toc width
|
8 years ago |
afc163
|
d1678711a7
|
docs: update footer
|
8 years ago |
Wei Zhu
|
0cb6645038
|
site: Link to edit page directly (#4895)
|
8 years ago |
afc163
|
9fede4a5cd
|
site: adjust component select style
|
8 years ago |
乐仪
|
1306c4656d
|
- version -> 2.7.1
- rc-pagination -> ~1.7.0
- fix site bug
|
8 years ago |
Benjy Cui
|
6fdc6ff19a
|
site: homepage will switch to right lang, close: #4552
|
8 years ago |
Benjy Cui
|
a14bb37ae5
|
site: can search with google now, close: #4814
|
8 years ago |
ddcat1115
|
16ad027988
|
change version slector position (#4799)
|
8 years ago |
Benjy Cui
|
bdd5be88f2
|
site: generate link with locale
|
8 years ago |
Benjy Cui
|
a950a1298a
|
site: upgrade bisheng to 0.21.0
|
8 years ago |
afc163
|
cf22bb926a
|
site: update footer style
|
8 years ago |
afc163
|
ac40780265
|
site: update footer link
|
8 years ago |
afc163
|
a67264d68c
|
Add aliases for icon naming style, close #4758
|
8 years ago |
afc163
|
24b1e1913a
|
update button text
|
8 years ago |
afc163
|
98ad1a9186
|
site: update home
|
8 years ago |
afc163
|
611b6acb11
|
site: update Home button text
|
8 years ago |
afc163
|
53b94a5996
|
site: update start button style
|
8 years ago |
Bo Chen
|
f0adb4dc5f
|
site: run ant-design on windows #4725
* 5hours's work
* 过年好!!
* lint issue
|
8 years ago |
afc163
|
52577054ad
|
fix site style breaks when there is lib directory
|
8 years ago |
afc163
|
fa10c9dee0
|
adjust page margin in small device, ref #4682
|
8 years ago |
afc163
|
04a94a691e
|
site: update sider menu order
|
8 years ago |
afc163
|
896bd7e55b
|
fix site style breaks when there is lib directory
|
8 years ago |
afc163
|
5a8d15333d
|
site: update header style
|
8 years ago |
afc163
|
6c98d94b0d
|
site: improve style of toc and color page
|
8 years ago |
Benjy Cui
|
eb254572b7
|
site: upgrade bisheng to 0.20.0
|
8 years ago |
Benjy Cui
|
3e17551b7e
|
site: improve build speed
|
8 years ago |
afc163
|
e90189db8d
|
site: improve style of component demo toc
|
8 years ago |
Benjy Cui
|
11bcb58685
|
site: reduce bundle size
|
8 years ago |
afc163
|
b7c5fb40ae
|
update home page style
|
8 years ago |
pd4d10
|
ca4697be55
|
doc: Fix star count (#4610)
|
8 years ago |
afc163
|
b245659887
|
update API table style
|
8 years ago |
afc163
|
c3a2b44f58
|
Fix strong site anchor truncation in IE
screenshot:
https://zos.alipayobjects.com/rmsportal/jtXxUhVBfEslRIpDvwhP.png
|
8 years ago |
Benjy Cui
|
e459562cdc
|
site: fix target demo highlight, close: #4545
|
8 years ago |
afc163
|
8d25da0c3a
|
Fix English grammar
follow
611c981346 (commitcomment-20407445)
|
8 years ago |
afc163
|
611c981346
|
change slogan
|
8 years ago |
Benjy Cui
|
dd43704108
|
site: fix key
|
8 years ago |