-
Notifications
You must be signed in to change notification settings - Fork 515
site 细节优化 #543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
site 细节优化 #543
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
1ddb65b
更新 README
yinxulai f2d3d18
添加文档、上报问题、 v2 版本的底部导航
yinxulai a1555c7
设置实现优化
yinxulai a295af2
优化底部导航布局
yinxulai 101b5f0
deadline 初始化不使用上次的存储时间(容易过期)
yinxulai 05671eb
优化文档示例的位置
yinxulai d9b270c
更好的命名
yinxulai 1bbb55c
优化 html template
yinxulai 3a19bd7
设置卡片默认展开
yinxulai 3d2d857
移除多余的空行
yinxulai f082f47
重命名 OfficialSite => Copyright
yinxulai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,50 @@ import * as React from 'react' | |
| import qiniuLogo from './assets/logo.svg' | ||
| import classnames from './style.less' | ||
|
|
||
| function Copyright() { | ||
| return ( | ||
| <> | ||
| © {new Date().getFullYear()} <a href="https://www.qiniu.com/" rel="noopener" target="_blank">七牛云</a> | ||
| </> | ||
| ) | ||
| } | ||
|
|
||
| function OfficialDoc() { | ||
| return ( | ||
| <a | ||
| rel="noopener" | ||
| target="_blank" | ||
| href="http://developer.qiniu.com/code/v6/sdk/javascript.html" | ||
| > | ||
| 官方文档 | ||
| </a> | ||
| ) | ||
| } | ||
|
|
||
| function Issue() { | ||
| return ( | ||
| <a | ||
| rel="noopener" | ||
| target="_blank" | ||
| href="https://github.com/qiniu/js-sdk/issues" | ||
| > | ||
| 上报问题 | ||
| </a> | ||
| ) | ||
| } | ||
|
|
||
| function V2Link() { | ||
| return ( | ||
| <a | ||
| rel="noopener" | ||
| target="_blank" | ||
| href="http://jssdk-v2.demo.qiniu.io" | ||
| > | ||
| V2版本 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 术语统一 & 空格 |
||
| </a> | ||
| ) | ||
| } | ||
|
|
||
| interface IProps { } | ||
|
|
||
| export function Layout(props: React.PropsWithChildren<IProps>) { | ||
|
|
@@ -13,8 +57,10 @@ export function Layout(props: React.PropsWithChildren<IProps>) { | |
| {props.children} | ||
| </div> | ||
| <footer className={classnames.footer}> | ||
| 对象存储文件上传 DEMO | ||
| © {new Date().getFullYear()} <a href="https://www.qiniu.com/" rel="noopener" target="_blank" >七牛云</a> | ||
| 对象存储文件上传 DEMO <Copyright /> | ||
| <OfficialDoc /> | ||
| <Issue /> | ||
| <V2Link /> | ||
| </footer> | ||
| </> | ||
| ) | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这 v2 v3 语义不是很明确,一开始根本想不出来是 js sdk 的版本… 还以为是 demo 的版本 = =
文档开头说的 2.x 3.x 这里怎么就成了 v2 v3 术语不配套?
而且对这个文档来说,v3 本来就是配套的,v2 才是奇怪的那个… 比如上面就有 v2 的文档入口,这个为什么是例外