This is an automated email from the ASF dual-hosted git repository.
apratim pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-resilientdb-site.git
The following commit(s) were added to refs/heads/master by this push:
new 3402a64 Added new release and smart contract CLI
3402a64 is described below
commit 3402a648d449a55614be9974a0588f2966944f59
Author: Apratim Shukla <[email protected]>
AuthorDate: Tue Jul 30 15:16:24 2024 -0700
Added new release and smart contract CLI
---
src/components/Download/DownloadBox.tsx | 23 ++++---
src/components/Download/index.tsx | 117 +++++++++++++++++++++++++-------
src/components/Header/menuData.tsx | 18 ++++-
3 files changed, 124 insertions(+), 34 deletions(-)
diff --git a/src/components/Download/DownloadBox.tsx
b/src/components/Download/DownloadBox.tsx
index a3d81bc..af8426e 100644
--- a/src/components/Download/DownloadBox.tsx
+++ b/src/components/Download/DownloadBox.tsx
@@ -2,12 +2,13 @@ const DownloadBox = (props: {
type: string;
packageName: string;
subtitle: string;
- sha256Link: string;
+ sha512Link: string;
signLink: string;
downloadLink: string;
+ isApache: boolean;
children?: React.ReactNode;
}) => {
- const { type, packageName, subtitle, sha256Link, signLink, downloadLink,
children } = props;
+ const { type, packageName, subtitle, sha512Link, signLink, downloadLink,
isApache, children } = props;
return (
<div className="w-full">
@@ -31,14 +32,18 @@ const DownloadBox = (props: {
</div>
<div className="flex justify-center mb-4">
<div className="badge-download-container">
- <a href={sha256Link} className="badge-download">
- SHA256
- </a>
- {/*<a href={signLink} className="badge-download">
- Sign
- </a>*/}
+ {sha512Link && (
+ <a href={sha512Link} className="badge-download">
+ SHA512
+ </a>
+ )}
+ {signLink && (
+ <a href={signLink} className="badge-download">
+ Sign
+ </a>
+ )}
<span className="badge-asf">
- Non-ASF release
+ {isApache ? "ASF release" : "Non-ASF release"}
</span>
</div>
</div>
diff --git a/src/components/Download/index.tsx
b/src/components/Download/index.tsx
index dde57ba..c318300 100644
--- a/src/components/Download/index.tsx
+++ b/src/components/Download/index.tsx
@@ -4,17 +4,21 @@ import SectionTitle from "../Common/SectionTitle";
import DownloadBox from "./DownloadBox";
const Download = () => {
- const [isZIP, setIsZIP] = useState(true);
+ const [isZIP, setIsZIP] = useState(false);
- const sha256Link = isZIP
- ?
"https://github.com/apache/incubator-resilientdb/releases/download/nexres-v1.9.0/nexres-v1.9.0.zip.sha256"
- :
"https://github.com/apache/incubator-resilientdb/releases/download/nexres-v1.9.0/nexres-v1.9.0.tar.gz.sha256";
- const signLink = isZIP
- ?
"https://github.com/apache/incubator-resilientdb/releases/download/nexres-v1.9.0/nexres-v1.9.0.zip.asc"
- :
"https://github.com/apache/incubator-resilientdb/releases/download/nexres-v1.9.0/nexres-v1.9.0.tar.gz.asc";
- const downloadLink = isZIP
- ?
"https://github.com/apache/incubator-resilientdb/archive/refs/tags/nexres-v1.9.0.zip"
- :
"https://github.com/apache/incubator-resilientdb/archive/refs/tags/nexres-v1.9.0.tar.gz";
+ const asfSha512LinkZIP = "";
+ const asfSha512LinkTAR =
"https://dist.apache.org/repos/dist/release/incubator/resilientdb/1.10.0-rc3/apache-resilientdb-1.10.0-incubating-src.tar.gz.sha512";
+ const nonAsfSha512LinkZIP = "";
+ const nonAsfSha512LinkTAR = "";
+ const signLink = "";
+
+ const asfDownloadLinkZIP = "";
+ const asfDownloadLinkTAR =
"https://dist.apache.org/repos/dist/release/incubator/resilientdb/1.10.0-rc3/apache-resilientdb-1.10.0-incubating-src.tar.gz";
+ const nonAsfDownloadLinkZIP =
"https://github.com/apache/incubator-resilientdb/archive/refs/tags/v1.10.0-rc03.zip";
+ const nonAsfDownloadLinkTAR =
"https://github.com/apache/incubator-resilientdb/archive/refs/tags/v1.10.0-rc03.tar.gz";
+
+ const availableZIP = asfDownloadLinkZIP && nonAsfDownloadLinkZIP;
+ const availableTAR = asfDownloadLinkTAR && nonAsfDownloadLinkTAR;
return (
<section
@@ -25,7 +29,7 @@ const Download = () => {
<div className="container">
<SectionTitle
title="Download"
- paragraph="Download Non-ASF release of Apache ResilientDB
(Incubating) "
+ paragraph="Download Non-ASF release of Apache ResilientDB
(Incubating)"
center
width="665px"
/>
@@ -56,7 +60,7 @@ const Download = () => {
</div>
</div>
<span
- onClick={() => setIsZIP(false)}
+ onClick={() => setIsZIP(true)}
className={`${
isZIP ? "text-dark dark:text-white" : "pointer-events-none
text-primary"
} ml-4 cursor-pointer text-base font-semibold`}
@@ -67,20 +71,87 @@ const Download = () => {
</div>
<div className="flex justify-center">
- <div className="grid grid-cols-1 gap-x-8 gap-y-10 md:grid-cols-1
lg:grid-cols-1">
- <DownloadBox
- packageName="v1.9.0"
- type={isZIP ? "zip" : "tar.gz"}
- subtitle="Download the latest source code release from GitHub"
- sha256Link={sha256Link}
- signLink={signLink}
- downloadLink={downloadLink}
- />
- </div>
+ {isZIP ? (
+ asfDownloadLinkZIP || nonAsfDownloadLinkZIP ? (
+ <div className={`grid grid-cols-1 gap-x-0 gap-y-2
md:grid-cols-2 ${availableZIP ? 'lg:grid-cols-2': 'lg:grid-cols-1'}`}>
+ {asfDownloadLinkZIP && (
+ <div className="px-10">
+ <DownloadBox
+ packageName="v1.10.0"
+ type="zip"
+ subtitle="Download the latest source code release from
Apache"
+ sha512Link={asfSha512LinkZIP}
+ signLink={signLink}
+ downloadLink={asfDownloadLinkZIP}
+ isApache={true}
+ />
+ </div>
+ )}
+ {nonAsfDownloadLinkZIP && (
+ <div className="px-10">
+ <DownloadBox
+ packageName="v1.10.0"
+ type="zip"
+ subtitle="Download the latest source code release from
GitHub"
+ sha512Link={nonAsfSha512LinkZIP}
+ signLink={signLink}
+ downloadLink={nonAsfDownloadLinkZIP}
+ isApache={false}
+ />
+ </div>
+ )}
+ </div>
+ ) : (
+ <div className={`grid grid-cols-1 gap-x-0 gap-y-2
md:grid-cols-2 ${availableZIP ? 'lg:grid-cols-2': 'lg:grid-cols-1'}`}>
+ <div className="px-10">
+ <DownloadBox
+ packageName="v1.10.0"
+ type="zip"
+ subtitle="Download the latest source code release from
GitHub"
+ sha512Link={nonAsfSha512LinkZIP}
+ signLink={signLink}
+ downloadLink={nonAsfDownloadLinkZIP}
+ isApache={false}
+ />
+ </div>
+ </div>
+ )
+ ) : (
+ <>
+ <div className={`grid grid-cols-1 gap-x-0 gap-y-2
md:grid-cols-2 ${availableTAR ? 'lg:grid-cols-2': 'lg:grid-cols-1'}`}>
+ {asfDownloadLinkTAR && (
+ <div className="px-10">
+ <DownloadBox
+ packageName="v1.10.0"
+ type="tar.gz"
+ subtitle="Download the latest source code release from
Apache"
+ sha512Link={asfSha512LinkTAR}
+ signLink={signLink}
+ downloadLink={asfDownloadLinkTAR}
+ isApache={true}
+ />
+ </div>
+ )}
+ {nonAsfDownloadLinkTAR && (
+ <div className="px-10">
+ <DownloadBox
+ packageName="v1.10.0"
+ type="tar.gz"
+ subtitle="Download the latest source code release from
GitHub"
+ sha512Link={nonAsfSha512LinkTAR}
+ signLink={signLink}
+ downloadLink={nonAsfDownloadLinkTAR}
+ isApache={false}
+ />
+ </div>
+ )}
+ </div>
+ </>
+ )}
</div>
</div>
</section>
);
};
-export default Download;
+export default Download;
\ No newline at end of file
diff --git a/src/components/Header/menuData.tsx
b/src/components/Header/menuData.tsx
index 36b00c1..ea0cf4d 100644
--- a/src/components/Header/menuData.tsx
+++ b/src/components/Header/menuData.tsx
@@ -21,9 +21,23 @@ const menuData: Menu[] = [
},
{
id: 4,
- title: "Wallet",
- path: "https://github.com/ResilientApp/ResVault",
+ title: "Tools",
+ path: "",
newTab: true,
+ submenu: [
+ {
+ id: 41,
+ title: "Wallet",
+ path: "https://github.com/ResilientApp/ResVault",
+ newTab: true,
+ },
+ {
+ id: 42,
+ title: "Smart Contract CLI",
+ path: "https://github.com/ResilientEcosystem/ResContract/",
+ newTab: true,
+ },
+ ]
},
{
id: 5,