This is an automated email from the ASF dual-hosted git repository. benjobs pushed a commit to branch download in repository https://gitbox.apache.org/repos/asf/incubator-streampark-website.git
commit d1510a7b318592e2d14d6f8e9e415883bdfa386c Author: benjobs <[email protected]> AuthorDate: Sat May 4 12:10:16 2024 +0800 [Improve] Downloads: not clear how to choose between 2.12 and 2.11 --- src/pages/download/index.jsx | 33 +++++++++------------------------ src/pages/download/languages.json | 20 ++++---------------- 2 files changed, 13 insertions(+), 40 deletions(-) diff --git a/src/pages/download/index.jsx b/src/pages/download/index.jsx index baf4f58..f6bf48f 100644 --- a/src/pages/download/index.jsx +++ b/src/pages/download/index.jsx @@ -9,42 +9,27 @@ import ReleaseTable from "./table" export default function () { const isBrowser = useIsBrowser(); const language = isBrowser && location.pathname.indexOf('/zh-CN/') === 0 ? 'zh-CN' : 'en'; + const dataSource = config?.[language]; const lastRelease = [downloadDataSource[0]]; const archived = downloadDataSource.slice(1, downloadDataSource.length) return ( <Layout> - <div className="block download_page" style={{ padding: "10px 0 30px" }}> + <div className="block download_page" style={{padding: "10px 0 30px"}}> <h2 className="fs-4 mb-4 fw-bold">{dataSource.download}</h2> - <div className="custom-info-block"> - <div className='d-flex align-items-center'> - <InfoSvg className='info-icon' /> - <p className="custom-block-title">Instructions</p> - </div> - <ul> - <li>{dataSource.last.title}</li> - <li> - <span>{dataSource.last.verification} </span> - <a href='https://downloads.apache.org/incubator/streampark/KEYS' target="_blank"> - {dataSource.last.projectKey} - </a>. - </li> - <li> - <span>{dataSource.last.check} </span> - <a href='https://www.apache.org/dyn/closer.cgi#verify' target="_blank"> - {dataSource.last.verify} - </a> - <span> {dataSource.last.page}.</span> - </li> - </ul> + <div> + <span> {dataSource.downloadDesc1}</span> + <li>apache-streampark_<span style={{color: 'red'}}>2.11</span>-<span style={{color: 'blue'}}>2.1.4</span>-incubating-bin.tar.gz</li> + <li>apache-streampark_<span style={{color: 'red'}}>2.12</span>-<span style={{color: 'blue'}}>2.1.4</span>-incubating-bin.tar.gz</li> + <span>{dataSource.downloadDesc2}</span> </div> - <h3 className="fs-4 mb-4 fw-bold">{dataSource.latestVersion}</h3> + <h3 className="fs-4 mb-4 mt-4 fw-bold">{dataSource.latestVersion}</h3> <ReleaseTable dataSource={lastRelease} latest={true}> </ReleaseTable> <h3 className="fs-4 mb-4 fw-bold">{dataSource.archived}</h3> <div className="custom-info-block"> <div className='d-flex align-items-center'> - <InfoSvg className='info-icon' /> + <InfoSvg className='info-icon'/> <p className="custom-block-title">Note</p> </div> <ul> diff --git a/src/pages/download/languages.json b/src/pages/download/languages.json index 9dba2e4..4cbae7a 100644 --- a/src/pages/download/languages.json +++ b/src/pages/download/languages.json @@ -1,14 +1,8 @@ { "zh-CN": { "download": "下载 Apache StreamPark (incubating)", - "last": { - "title": "请从下表中选择 StreamPark 版本下载,推荐最新版本。", - "verification": "验证下载版本,请使用相应的哈希(sha512)、签名和", - "projectKey": "项目发布KEYS", - "check": "检查哈希(sha512)和签名的说明显示在", - "verify": "验证说明", - "page": "页面" - }, + "downloadDesc1": "Apache StreamPark 支持 scala 2.11 和 2.12 两个版本,提供的二进制安装包文件名规则是:apache-streampark_${scala.version}-${streampark.version}-incubating-bin.tar.gz,如:", + "downloadDesc2": "这里的 2.11/2.12 为 StreamPark 适配 scala 的版本,2.1.4 则为 StreamPark 的版本,下载哪个文件,取决于用户的 Apache Flink/Spark 的 scala 版本, 下载和 Apache Flink/Spark 的 scala 版本匹配的 StreamPark 安装包即可。", "latestVersion": "最新版本", "archived": "所有存档的版本", "note": "以前版本的 StreamPark 可能会受到安全问题的影响,请考虑使用最新版本。", @@ -23,14 +17,8 @@ }, "en": { "download": "Download Apache StreamPark (incubating)", - "last": { - "title": "Please choose a StreamPark version to download from the following tables, the latest release is recommended.", - "verification": "Please verify the release with corresponding hashes(sha512), signatures and ", - "projectKey": "project release KEYS", - "check": "The instructions for checking hashes(sha512) and signatures is indicated on", - "verify": "Verify Instructions", - "page": "page" - }, + "downloadDesc1": "The Apache StreamPark supports scala 2.11 and 2.12. The dist file name rule is:apache-streampark_${scala.version}-${streampark.version}-incubating-bin.tar.gz,e.g:", + "downloadDesc2": "The 2.11/2.12 is a version of StreamPark adapted to scala, The 2.1.4 is a version of StreamPark. Download which one depends on the user's scala version of Apache Flink/Spark,Users need to download the file of StreamPark that matches the scala version of Apache Flink/Spark.", "latestVersion": "The latest release", "archived": "All archived releases", "note": "Previous releases of StreamPark may be affected by security issues, please use the latest one.",
