This is an automated email from the ASF dual-hosted git repository.
luzhijing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new e884e5bc67e fix download bug (#223)
e884e5bc67e is described below
commit e884e5bc67ed557645bea97b17133fad8fe4f4b8
Author: wangyongfeng <[email protected]>
AuthorDate: Sat May 6 23:44:07 2023 +0800
fix download bug (#223)
Co-authored-by: wangyf0555 <[email protected]>
---
src/constant/download.data.ts | 8 +++++++-
src/pages/download/index.tsx | 8 ++++----
2 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/src/constant/download.data.ts b/src/constant/download.data.ts
index 4b0e230e4ba..cde85f1dae8 100644
--- a/src/constant/download.data.ts
+++ b/src/constant/download.data.ts
@@ -393,7 +393,13 @@ export function getAllRelease(locale: string) {
const sources = locale.toLocaleUpperCase() === 'EN' ? ALL_RELEASE_LINK :
CHINA_ALL_RELEASE_MIRROR_LINK;
return [
{
- version: '1.2.4.1 ( latest )',
+ version: '2.0.0-alpha1 ( latest )',
+ date: '2023-05-06',
+ note: '/docs/dev/releasenotes/release-2.0.0Alpha1',
+ download: `${sources}doris/2.0/2.0.0-alpha1/`,
+ },
+ {
+ version: '1.2.4.1 (Stable)',
date: '2023-04-27',
note: '/docs/dev/releasenotes/release-1.2.4.1',
download: `${sources}doris/1.2/1.2.4.1-rc01/`,
diff --git a/src/pages/download/index.tsx b/src/pages/download/index.tsx
index df55ce0b861..7be46a42373 100644
--- a/src/pages/download/index.tsx
+++ b/src/pages/download/index.tsx
@@ -21,7 +21,7 @@ import {
const BINARY_VERSION = [
{ label: `${VersionEnum.Latest} ( latest )`, value: VersionEnum.Latest },
- { label: VersionEnum.Prev, value: VersionEnum.Prev },
+ { label: `${VersionEnum.Prev} (Stable)`, value: VersionEnum.Prev },
{ label: VersionEnum.Earlier, value: VersionEnum.Earlier },
];
@@ -63,7 +63,7 @@ export default function Download(): JSX.Element {
const text = `${version}-${cpu}-${jdk}`;
const linkObj = getAllDownloadLinks(currentLocale).find(item =>
item.id === text);
setCurrent(linkObj);
- if (!linkObj.sh) {
+ if (linkObj && !linkObj.sh) {
setDownloadWay('download');
}
};
@@ -198,7 +198,7 @@ export default function Download(): JSX.Element {
))}
</div>
</div> */}
- {current?.sh && (
+ {current && current?.sh && (
<div className="download-type">
<label>
<Translate id="download.download.link"
description="Download">
@@ -248,7 +248,7 @@ export default function Download(): JSX.Element {
>
<div>
<CodeBlock language="xml" title="">
- {`curl ${current?.sh} | sh`}
+ {`curl ${current && current?.sh} | sh`}
</CodeBlock>
</div>
<div className="tips">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]