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
Benjy Cui
e72d93edfe
site: add copy button to demo, close : #4563
8 years ago
afc163
205ace69ba
Fix bug of switch language in iOS
8 years ago
afc163
c3748a60f4
site: improve responsive design
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
11bcb58685
site: reduce bundle size
8 years ago
Sean Sun
456860f61c
imporve the user experience of the official site ( #4457 )
* normalize code based on lint message
* listening url changes instead of writing hard code
* change listen
8 years ago
Benjy Cui
435eed2e23
site: fix lang change in home page
8 years ago
Benjy Cui
4db6d3b915
site: fix language switch in Firefox, close : #4360
8 years ago
afc163
27b3cdab05
better responsive page layout
8 years ago
Benjy Cui
60da9909d3
site: improve loading performance ( #4112 )
* site: should generate html file for both of en and cn, ref: #3934
* site: remove loading animation
* site: fix header menu highlight
* site: improve detail
* deps: update
8 years ago
afc163
927dae6159
fix header select position
8 years ago
Benjy Cui
4ee2b9d930
site: SSR for official website ( #3903 )
* site: ssr for Layout
* site: SSR for site
* fix: ssr for Anchor
* chore: add ssr test
* chore: update deploy script
* site: udpate detail
* site: revert animation for site
* site: fix loading animation
8 years ago
afc163
3c9ccccf61
Fix Header select
8 years ago
afc163
d0f2ff83b6
Fix scroll page will trigger setState in Header
8 years ago
afc163
224281f425
fix responsive menu style
8 years ago
Benjy Cui
13d48aa1e5
site: show locale in url, close : #3456
8 years ago
afc163
847e40eac0
Adjust site layout
8 years ago
Benjy Cui
d68c3c655c
site: update menu
8 years ago
Benjy Cui
28d5b49f9e
site: update details
8 years ago
Benjy Cui
3f67fd3f9f
docs: update docs details
8 years ago
Benjy Cui
44d5fc6fd2
fix: both of undefined and null means no input, close : #2959
8 years ago
afc163
3c2757a5be
update nav english
8 years ago
Benjy Cui
b7e6b1ba51
site: show lang button
8 years ago
Benjy Cui
cb367f3f35
site: update site details
8 years ago
afc163
77949bb9e3
upgrade eslint-config, close #2811
8 years ago
Benjy Cui
479056364a
site: update header
8 years ago
Benjy Cui
7c7a365960
site: improve performance
8 years ago
Benjy Cui
b0f28a218e
site: fix search
8 years ago
Benjy Cui
dfc26727d8
site: unify link
8 years ago
Benjy Cui
6cac87fa17
site: upgrade bisheng
8 years ago
Benjy Cui
0d5b75429f
site: upgrade bisheng
8 years ago
afc163
3686e2f43d
Fix site style in Mobile device
9 years ago
afc163
9915c99c64
typo
9 years ago
afc163
a1c879bd2f
fix header select
9 years ago
afc163
73c1d09094
Fix changelog page active menu
9 years ago
Benjy Cui
4723c5fe7e
site: lazy load for site
9 years ago
Benjy Cui
2144349741
style: enable react/jsx-closing-bracket-location
9 years ago
RaoHai
ff31a5b555
Revert "Revert "refactor with bisheng""
This reverts commit 7a07b128d1
.
9 years ago
RaoHai
7a07b128d1
Revert "refactor with bisheng"
9 years ago
Benjy Cui
1a9708febf
site: update
9 years ago
Benjy Cui
0ab1d56817
site: refactor resource with bisheng
9 years ago
Benjy Cui
e389e6b795
site: migrate MainContent to bisheng
9 years ago
Benjy Cui
a031271384
site: refactor home & 404 with bisheng
9 years ago
Benjy Cui
15b7c51013
site: hide language changer online
9 years ago
Benjy Cui
665a4aa3b2
site: solve rebase problems
9 years ago
Benjy Cui
f884a6d260
site: add button to change language
9 years ago
Benjy Cui
ba64ebbca8
site: fix bugs
9 years ago