Skip to content

Commit

Permalink
add authorization statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Go0p committed Sep 30, 2024
1 parent 06804df commit 09dcee5
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 62 deletions.
128 changes: 66 additions & 62 deletions src/components/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -674,79 +674,83 @@ export const HomePage: React.FC<HomePageProps> = (props) => {
</div>
<div className="guide-body-yakit-legacy-wrap">
<Dropdown
overlayClassName="yakit-legacy-dropdown"
visible={legacyVisible}
destroyPopupOnHide={true}
overlay={
<Menu>
{[
{
name: "Windows",
desc: "支持Win7系统",
url: "windows-legacy-amd64.exe",
},
{
name: "Linux-amd",
desc: "支持统信UOS、麒麟等国产系统,注意识别系统架构",
url: "linux-legacy-amd64.AppImage",
},
{
name: "Linux-arm",
desc: "支持统信UOS、麒麟等国产系统,注意识别系统架构",
url: "linux-legacy-arm64.AppImage",
},
{
name: "macOS Intel",
desc: "支持macOS 10.13和macOS 10.14",
url: "darwin-legacy-x64.dmg",
},
{
name: "macOS Apple Silicon",
desc: "支持macOS 10.13和macOS 10.14",
url: "darwin-legacy-arm64.dmg",
},
].map((item) => {
return (
<Menu.Item key={item.name}>
<div
className="yakit-legacy-item"
onClick={() => {
onDownload(item.url);
setLegacyVisible(false);
}}
>
<div className="yakit-legacy-item-left">
<div className="yakit-legacy-item-name">{`${t(
item.name
)}`}</div>
<div className="yakit-legacy-item-desc">
{t(item.desc)}{version}
overlayClassName="yakit-legacy-dropdown"
visible={legacyVisible}
destroyPopupOnHide={true}
overlay={
<Menu>
{[
{
name: "Windows",
desc: "支持Win7系统",
url: "windows-legacy-amd64.exe",
},
{
name: "Linux-amd",
desc: "支持统信UOS、麒麟等国产系统,注意识别系统架构",
url: "linux-legacy-amd64.AppImage",
},
{
name: "Linux-arm",
desc: "支持统信UOS、麒麟等国产系统,注意识别系统架构",
url: "linux-legacy-arm64.AppImage",
},
{
name: "macOS Intel",
desc: "支持macOS 10.13和macOS 10.14",
url: "darwin-legacy-x64.dmg",
},
{
name: "macOS Apple Silicon",
desc: "支持macOS 10.13和macOS 10.14",
url: "darwin-legacy-arm64.dmg",
},
].map((item) => {
return (
<Menu.Item key={item.name}>
<div
className="yakit-legacy-item"
onClick={() => {
onDownload(item.url);
setLegacyVisible(false);
}}
>
<div className="yakit-legacy-item-left">
<div className="yakit-legacy-item-name">{`${t(
item.name
)}`}</div>
<div className="yakit-legacy-item-desc">
{t(item.desc)}{version}
</div>
</div>
<div className="yakit-legacy-item-right">
{DownloadIcon}
</div>
</div>
</div>
<div className="yakit-legacy-item-right">
{DownloadIcon}
</div>
</div>
</Menu.Item>
);
})}
</Menu>
}
trigger={["click"]}
placement="bottomCenter"
onVisibleChange={(visible) => setLegacyVisible(visible)}
</Menu.Item>
);
})}
</Menu>
}
trigger={["click"]}
placement="bottomCenter"
onVisibleChange={(visible) => setLegacyVisible(visible)}
>
<span className="guide-body-yakit-legacy-btn">
{t("下载兼容版本")}
</span>

</Dropdown>
<span style={{ display: 'block',fontSize :'12px',color:'#999ea8'}}>
{t("如果您需要使用Yakit用于商业化目的,请确保你们已经获得官方授权,否则我们将追究您的相关责任。")}
</span>
</div>
</div>
</div>
</div>
<div
className={`introduce-body ${
(currentRatio !== 100 && "introduce-body-height-auto") || ""
className={`introduce-body ${
(currentRatio !== 100 && "introduce-body-height-auto") || ""
}`}
>
<div className="sticky-content">
Expand Down
1 change: 1 addition & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"支持统信 UOS、麒麟等国产系统": "supporting UOS (Unified Operating System) and Kylin",
"安装说明": "Installation Guide",
"下载兼容版本": "Download Compatible Version",
"如果您需要使用Yakit用于商业化目的,请确保你们已经获得官方授权,否则我们将追究您的相关责任": "If you need to use Yakit for commercial purposes, please make sure that you have obtained official authorization, otherwise we will hold you responsible",
"支持Win7系统": "supporting Win7 System",
"支持统信UOS、麒麟等国产系统,注意识别系统架构": "supporting UOS (Unified Operating System) and Kylin,pay attention to identify the system architecture",
"支持macOS 10.13和macOS 10.14": "supporting macOS 10.13 and macOS 10.14",
Expand Down
1 change: 1 addition & 0 deletions src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"支持统信 UOS、麒麟等国产系统": "支持统信 UOS、麒麟等国产系统",
"安装说明": "安装说明",
"下载兼容版本": "下载兼容版本",
"如果您需要使用Yakit用于商业化目的,请确保你们已经获得官方授权,否则我们将追究您的相关责任": "如果您需要使用Yakit用于商业化目的,请确保你们已经获得官方授权,否则我们将追究您的相关责任",
"支持Win7系统": "支持Win7系统",
"支持统信UOS、麒麟等国产系统,注意识别系统架构": "支持统信UOS、麒麟等国产系统,注意识别系统架构",
"支持macOS 10.13和macOS 10.14": "支持macOS 10.13和macOS 10.14",
Expand Down

0 comments on commit 09dcee5

Please sign in to comment.