This is an automated email from the ASF dual-hosted git repository.

linkinstar pushed a commit to branch docs/download
in repository https://gitbox.apache.org/repos/asf/incubator-answer-website.git


The following commit(s) were added to refs/heads/docs/download by this push:
     new 81390d0e docs(download): add download link
81390d0e is described below

commit 81390d0ee18d56e285b19c5cf8cc6c3bd9ceb788
Author: LinkinStars <[email protected]>
AuthorDate: Thu Apr 18 12:24:49 2024 +0800

    docs(download): add download link
---
 docs/download.md       |  93 ---------------------------------------------
 src/pages/download.tsx | 100 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 100 insertions(+), 93 deletions(-)

diff --git a/docs/download.md b/docs/download.md
deleted file mode 100644
index 68cc5995..00000000
--- a/docs/download.md
+++ /dev/null
@@ -1,93 +0,0 @@
----
-slug: /download
-sidebar_label: Download
----
-
-# Download
-
-The project is built on and with the aid of the following open source 
projects. Credits are given to these projects.
-
-## Apache-2.0
-
-* https://npmjs.com/package/react-helmet-async
-* https://github.com/golang/mock
-* https://github.com/google/wire
-* https://github.com/mojocn/base64Captcha
-* https://github.com/ory/dockertest
-* https://github.com/spf13/cobra
-
-## MIT and Apache-2.0
-
-* https://gopkg.in/yaml.v3
-
-## MIT
-
-* https://npmjs.com/package/axios
-* https://npmjs.com/package/bootstrap
-* https://npmjs.com/package/bootstrap-icons
-* https://npmjs.com/package/classnames
-* https://npmjs.com/package/codemirror
-* https://www.npmjs.com/package/color
-* https://npmjs.com/package/copy-to-clipboard
-* https://npmjs.com/package/dayjs
-* https://npmjs.com/package/i18next
-* https://npmjs.com/package/katex
-* https://npmjs.com/package/lodash
-* https://npmjs.com/package/marked
-* https://npmjs.com/package/mermaid
-* https://npmjs.com/package/next-share
-* https://www.npmjs.com/package/qrcode
-* https://npmjs.com/package/react
-* https://npmjs.com/package/react-bootstrap
-* https://npmjs.com/package/react-dom
-* https://npmjs.com/package/react-i18next
-* https://npmjs.com/package/react-router-dom
-* https://npmjs.com/package/swr
-* https://npmjs.com/package/zustand
-* https://github.com/Chain-Zhang/pinyin
-* https://github.com/Machiel/slugify
-* https://github.com/Masterminds/semver
-* https://github.com/anargu/gin-brotli
-* https://github.com/asaskevich/govalidator
-* https://github.com/disintegration/imaging
-* https://github.com/gin-gonic/gin
-* https://github.com/go-playground/locales
-* https://github.com/go-playground/universal-translator
-* https://github.com/go-playground/validator
-* https://github.com/goccy/go-json
-* https://github.com/jinzhu/copier
-* https://github.com/jinzhu/now
-* https://github.com/jordan-wright/email
-* https://github.com/lib/pq
-* https://github.com/mattn/go-sqlite3
-* https://github.com/segmentfault/pacman
-* https://github.com/robfig/cron
-* https://github.com/scottleedavis/go-exif-remove
-* https://github.com/stretchr/testify
-* https://github.com/swaggo/files
-* https://github.com/swaggo/gin-swagger
-* https://github.com/swaggo/swag
-* https://github.com/tidwall/gjson
-* https://github.com/yuin/goldmark
-* https://gopkg.in/gomail.v2
-
-## BSD-3-Clause
-
-* https://www.npmjs.com/package/diff
-* https://www.npmjs.com/package/md5
-* https://npmjs.com/package/qs
-* https://github.com/google/uuid
-* https://github.com/grokify/html-strip-tags-go
-* https://github.com/microcosm-cc/bluemonday
-* https://golang.org/x/crypto
-* https://golang.org/x/net
-* https://modernc.org/sqlite
-
-## BSD-2-Clause
-
-* https://github.com/bwmarrin/snowflake
-* https://xorm.io/xorm
-
-## MPL-2.0
-
-* https://github.com/go-sql-driver/mysql
diff --git a/src/pages/download.tsx b/src/pages/download.tsx
new file mode 100644
index 00000000..ab24015e
--- /dev/null
+++ b/src/pages/download.tsx
@@ -0,0 +1,100 @@
+import React, {JSX} from 'react';
+import {Container} from 'react-bootstrap';
+import {translate} from '@docusaurus/Translate';
+import Layout from '@theme/Layout';
+
+import HeaderSlogan from '../components/HeaderSlogan';
+
+
+export default function Plugins(): JSX.Element {
+    const [] = React.useState([]);
+    const list:string[] = ["1.3.0", "1.2.5", "1.2.1", "1.2.0"]
+    let table:JSX.Element = list.map((item: string) => {
+        return (
+            <tr>
+                <td>{item}</td>
+                <td>[<a
+                    
href={`https://downloads.apache.org/incubator/answer/${item}-incubating/apache-answer-${item}-incubating-src.tar.gz`}
+                    target="_blank" rel="noopener noreferrer">Code</a>] [<a
+                    
href={`https://downloads.apache.org/incubator/answer/${item}-incubating/apache-answer-${item}-incubating-src.tar.gz.asc`}
+                    target="_blank" rel="noopener noreferrer">Sign</a>] [<a
+                    
href={`https://downloads.apache.org/incubator/answer/${item}-incubating/apache-answer-${item}-incubating-src.tar.gz.sha512`}
+                    target="_blank" rel="noopener noreferrer">SHA512</a>]
+                </td>
+                <td>[<a
+                    
href={`https://downloads.apache.org/incubator/answer/${item}-incubating/apache-answer-${item}-incubating-bin-darwin-amd64.tar.gz`}
+                    target="_blank" rel="noopener noreferrer">Download</a>] [<a
+                    
href={`https://downloads.apache.org/incubator/answer/${item}-incubating/apache-answer-${item}-incubating-bin-darwin-amd64.tar.gz.asc`}
+                    target="_blank" rel="noopener noreferrer">Sign</a>] [<a
+                    
href={`https://downloads.apache.org/incubator/answer/${item}-incubating/apache-answer-${item}-incubating-bin-darwin-amd64.tar.gz.sha512`}
+                    target="_blank" rel="noopener noreferrer">SHA512</a>]
+                </td>
+                <td>[<a
+                    
href={`https://downloads.apache.org/incubator/answer/${item}-incubating/apache-answer-${item}-incubating-bin-darwin-arm64.tar.gz`}
+                    target="_blank" rel="noopener noreferrer">Download</a>] [<a
+                    
href={`https://downloads.apache.org/incubator/answer/${item}-incubating/apache-answer-${item}-incubating-bin-darwin-arm64.tar.gz.asc`}
+                    target="_blank" rel="noopener noreferrer">Sign</a>] [<a
+                    
href={`https://downloads.apache.org/incubator/answer/${item}-incubating/apache-answer-${item}-incubating-bin-darwin-arm64.tar.gz.sha512`}
+                    target="_blank" rel="noopener noreferrer">SHA512</a>]
+                </td>
+                <td>[<a
+                    
href={`https://downloads.apache.org/incubator/answer/${item}-incubating/apache-answer-${item}-incubating-bin-linux-amd64.tar.gz`}
+                    target="_blank" rel="noopener noreferrer">Download</a>] [<a
+                    
href={`https://downloads.apache.org/incubator/answer/${item}-incubating/apache-answer-${item}-incubating-bin-linux-amd64.tar.gz.asc`}
+                    target="_blank" rel="noopener noreferrer">Sign</a>] [<a
+                    
href={`https://downloads.apache.org/incubator/answer/${item}-incubating/apache-answer-${item}-incubating-bin-linux-amd64.tar.gz.sha512`}
+                    target="_blank" rel="noopener noreferrer">SHA512</a>]
+                </td>
+                <td>[<a
+                    
href={`https://downloads.apache.org/incubator/answer/${item}-incubating/apache-answer-${item}-incubating-bin-linux-arm64.tar.gz`}
+                    target="_blank" rel="noopener noreferrer">Download</a>] [<a
+                    
href={`https://downloads.apache.org/incubator/answer/${item}-incubating/apache-answer-${item}-incubating-bin-linux-arm64.tar.gz.asc`}
+                    target="_blank" rel="noopener noreferrer">Sign</a>] [<a
+                    
href={`https://downloads.apache.org/incubator/answer/${item}-incubating/apache-answer-${item}-incubating-bin-linux-arm64.tar.gz.sha512`}
+                    target="_blank" rel="noopener noreferrer">SHA512</a>]
+                </td>
+                <td>[<a
+                    
href={`https://downloads.apache.org/incubator/answer/${item}-incubating/apache-answer-${item}-incubating-bin-windows-amd64.tar.gz`}
+                    target="_blank" rel="noopener noreferrer">Download</a>] [<a
+                    
href={`https://downloads.apache.org/incubator/answer/${item}-incubating/apache-answer-${item}-incubating-bin-windows-amd64.tar.gz.asc`}
+                    target="_blank" rel="noopener noreferrer">Sign</a>] [<a
+                    
href={`https://downloads.apache.org/incubator/answer/${item}-incubating/apache-answer-${item}-incubating-bin-windows-amd64.tar.gz.sha512`}
+                    target="_blank" rel="noopener noreferrer">SHA512</a>]
+                </td>
+            </tr>
+        )
+    })
+    return (
+        <Layout
+            title={translate({message: 'Download'})}
+            description="This page provides download links for the latest 
release of Apache Answer.">
+            <HeaderSlogan type="plugin"/>
+            <Container className='py-5'>
+                <table>
+                    <thead>
+                    <tr>
+                        <th>version</th>
+                        <th>source</th>
+                        <th>darwin-amd64</th>
+                        <th>darwin-arm64</th>
+                        <th>linux-amd64</th>
+                        <th>linux-arm64</th>
+                        <th>windows-amd64</th>
+                    </tr>
+                    </thead>
+                    <tbody>
+                    {table}
+                    </tbody>
+                </table>
+                <div className='mt-5'>
+                    <h3> Release Integrity </h3>
+                    <p>You can verify the integrity of the downloaded files. 
</p>
+                    <h4>Signatures</h4>
+                    <a 
href="./community/how-to-release#how-to-verify-the-signatures">How to verify 
the signatures</a>
+                    <h4>Checksums</h4>
+                    <a 
href="./community/how-to-release#how-to-verify-the-checksums">How to verify the 
checksums</a>
+                </div>
+            </Container>
+        </Layout>
+    )
+}

Reply via email to