diff --git a/i18n/zh-CN/docusaurus-plugin-content-pages/download-page.mdx b/i18n/zh-CN/docusaurus-plugin-content-pages/download-page.mdx index c7d81a0..b112116 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-pages/download-page.mdx +++ b/i18n/zh-CN/docusaurus-plugin-content-pages/download-page.mdx @@ -34,13 +34,14 @@ export const DownloadPage = () => { const toolItems = [ { key: 'assess-x86', - name: 'Assess 迁移工具', + name: '评估工具', version: '1.0.0', platform: 'Linux x86_64', size: '—', checksumAlgo: 'MD5', sha256: '8a75568de634f5f6ace18797d0d217d8', url: 'https://yum.highgo.com/dists/IvorySQL/download/assess-1.0.0-linux.gtk.x86_64.tar.gz', + disabled: true, }, ]; @@ -145,13 +146,20 @@ export const DownloadPage = () => {
- { e.currentTarget.style.background = `${accentColor}18`; }} - onMouseLeave={e => { e.currentTarget.style.background = `${accentColor}08`; }}> - - 下载 - + {item.disabled ? ( + + + 下载 + + ) : ( + { e.currentTarget.style.background = `${accentColor}18`; }} + onMouseLeave={e => { e.currentTarget.style.background = `${accentColor}08`; }}> + + 下载 + + )}
))} diff --git a/src/pages/download-page.mdx b/src/pages/download-page.mdx index bbbc48c..f0f7160 100644 --- a/src/pages/download-page.mdx +++ b/src/pages/download-page.mdx @@ -34,13 +34,14 @@ export const DownloadPage = () => { const toolItems = [ { key: 'assess-x86', - name: 'Assess Migration Tool', + name: 'Assessment Tool', version: '1.0.0', platform: 'Linux x86_64', size: '—', checksumAlgo: 'MD5', sha256: '8a75568de634f5f6ace18797d0d217d8', url: 'https://yum.highgo.com/dists/IvorySQL/download/assess-1.0.0-linux.gtk.x86_64.tar.gz', + disabled: true, }, ]; @@ -167,26 +168,44 @@ export const DownloadPage = () => { {/* Download */}
- { e.currentTarget.style.background = `${accentColor}18`; }} - onMouseLeave={e => { e.currentTarget.style.background = `${accentColor}08`; }} - > - - - - 下载 - + cursor: 'not-allowed', + }}> + + + + 下载 + + ) : ( + { e.currentTarget.style.background = `${accentColor}18`; }} + onMouseLeave={e => { e.currentTarget.style.background = `${accentColor}08`; }} + > + + + + 下载 + + )}
))}