Commit 8ca94c8d by sameer79 Committed by kevalbhatt

ATLAS-3531 : UI : Atlas website: download/release page missing releases.

parent 5955fcd1
export default [
{ id: 1, href: "/Doc-test/", title: "Latest", label: "Latest" },
{ id: 2, href: "/2.0.0/index.html", title: "2.0.0", label: "2.0.0" },
{ id: 3, href: "/1.2.0/index.html", title: "1.2.0", label: "1.2.0" },
{ id: 4, href: "/1.1.0/index.html", title: "1.1.0", label: "1.1.0" },
{ id: 5, href: "/1.0.0/index.html", title: "1.0.0", label: "1.0.0" },
{ id: 6, href: "/0.8.4/index.html", title: "0.8.4", label: "0.8.4" },
{ id: 7, href: "/0.8.3/index.html", title: "0.8.3", label: "0.8.3" },
{ id: 8, href: "/0.8.2/index.html", title: "0.8.2", label: "0.8.2" },
{ id: 9, href: "/0.8.1/index.html", title: "0.8.1", label: "0.8.1" },
......
......@@ -22,7 +22,6 @@
"babel-plugin-lodash": "^3.3.4",
"babel-plugin-react-transform": "^3.0.0",
"gh-pages": "^2.0.1",
"react-dropdown-select": "^3.0.0",
"react-github-btn": "^1.0.5",
"react-syntax-highlighter": "^11.0.1",
"reactstrap": "^8.0.0",
......
......@@ -18,16 +18,19 @@ artifacts can be found in our published [KEYS file](https://www.apache.org/dist/
| **Version** | **Release Date** | **Tarball** | **GPG** | **Hash** |
| : ------------- : | : ------------- : | : ------------- : | : ------------- : |: ------------- :|
| 2.0.0 | 2019-05-14 | [source](https://www.apache.org/dyn/closer.cgi/atlas/2.0.0/apache-atlas-2.0.0-sources.tar.gz) | [signature](https://www.apache.org/dist/atlas/2.0.0/apache-atlas-2.0.0-sources.tar.gz.asc) | [SHA512](https://www.apache.org/dist/atlas/2.0.0/apache-atlas-2.0.0-sources.tar.gz.sha512) |
| 1.1.0 | 2018-09-17 | [source](https://www.apache.org/dyn/closer.cgi/atlas/1.1.0/apache-atlas-1.1.0-sources.tar.gz) | [signature](https://www.apache.org/dist/atlas/1.1.0/apache-atlas-1.1.0-sources.tar.gz.asc) | [SHA512](https://www.apache.org/dist/atlas/1.1.0/apache-atlas-1.1.0-sources.tar.gz.sha512) |
| 1.0.0 | 2018-06-02 | [source](https://www.apache.org/dyn/closer.cgi/atlas/1.0.0/apache-atlas-1.0.0-sources.tar.gz) | [signature](https://www.apache.org/dist/atlas/1.0.0/apache-atlas-1.0.0-sources.tar.gz.asc) | [SHA512](https://www.apache.org/dist/atlas/1.0.0/apache-atlas-1.0.0-sources.tar.gz.sha512) |
| 0.8.2 | 2018-02-05 | [source](https://www.apache.org/dyn/closer.cgi/atlas/0.8.2/apache-atlas-0.8.2-sources.tar.gz) | [signature](https://www.apache.org/dist/atlas/0.8.2/apache-atlas-0.8.2-sources.tar.gz.asc) | [SHA512](https://www.apache.org/dist/atlas/0.8.2/apache-atlas-0.8.2-sources.tar.gz.sha512) |
| 0.8.4 | 2019-06-21 | [source](https://www.apache.org/dyn/closer.cgi/atlas/0.8.4/apache-atlas-0.8.4-sources.tar.gz) | [signature](https://www.apache.org/dist/atlas/0.8.4/apache-atlas-0.8.4-sources.tar.gz.asc) | [SHA512](https://www.apache.org/dist/atlas/0.8.4/apache-atlas-0.8.4-sources.tar.gz.sha512) |
| 1.2.0 | 2019-06-07 | [source](https://www.apache.org/dyn/closer.cgi/atlas/1.2.0/apache-atlas-1.2.0-sources.tar.gz) | [signature](https://www.apache.org/dist/atlas/1.2.0/apache-atlas-1.2.0-sources.tar.gz.asc) | [SHA512](https://www.apache.org/dist/atlas/1.2.0/apache-atlas-1.2.0-sources.tar.gz.sha512) |
| 2.0.0 | 2019-05-13 | [source](https://www.apache.org/dyn/closer.cgi/atlas/2.0.0/apache-atlas-2.0.0-sources.tar.gz) | [signature](https://www.apache.org/dist/atlas/2.0.0/apache-atlas-2.0.0-sources.tar.gz.asc) | [SHA512](https://www.apache.org/dist/atlas/2.0.0/apache-atlas-2.0.0-sources.tar.gz.sha512) |
| 0.8.3 | 2018-10-31 | [source](https://archive.apache.org/dist/atlas/0.8.3/apache-atlas-0.8.3-sources.tar.gz) | [signature](https://www.apache.org/dist/atlas/0.8.3/apache-atlas-0.8.3-sources.tar.gz.asc) | [SHA512](https://www.apache.org/dist/atlas/0.8.3/apache-atlas-0.8.3-sources.tar.gz.sha512) |
| 1.1.0 | 2018-09-14 | [source](https://archive.apache.org/dist/atlas/1.1.0/apache-atlas-1.1.0-sources.tar.gz) | [signature](https://www.apache.org/dist/atlas/1.1.0/apache-atlas-1.1.0-sources.tar.gz.asc) | [SHA512](https://www.apache.org/dist/atlas/1.1.0/apache-atlas-1.1.0-sources.tar.gz.sha512) |
| 1.0.0 | 2018-06-02 | [source](https://archive.apache.org/dist/atlas/1.0.0/apache-atlas-1.0.0-sources.tar.gz) | [signature](https://www.apache.org/dist/atlas/1.0.0/apache-atlas-1.0.0-sources.tar.gz.asc) | [SHA512](https://www.apache.org/dist/atlas/1.0.0/apache-atlas-1.0.0-sources.tar.gz.sha512) |
| 0.8.2 | 2018-02-05 | [source](https://archive.apache.org/dist/atlas/0.8.2/apache-atlas-0.8.2-sources.tar.gz) | [signature](https://www.apache.org/dist/atlas/0.8.2/apache-atlas-0.8.2-sources.tar.gz.asc) | [SHA512](https://www.apache.org/dist/atlas/0.8.2/apache-atlas-0.8.2-sources.tar.gz.sha512) |
| 0.8.1 | 2017-08-29 | [source](https://archive.apache.org/dist/atlas/0.8.1/apache-atlas-0.8.1-sources.tar.gz) | [signature](https://archive.apache.org/dist/atlas/0.8.1/apache-atlas-0.8.1-sources.tar.gz.asc) | [SHA512](https://archive.apache.org/dist/atlas/0.8.1/apache-atlas-0.8.1-sources.tar.gz.sha512) |
| 0.8.0-incubating | 2017-03-16 | [source](https://archive.apache.org/dist/incubator/atlas/0.8.0-incubating/apache-atlas-0.8-incubating-sources.tar.gz) | [signature](https://archive.apache.org/dist/incubator/atlas/0.8.0-incubating/apache-atlas-0.8-incubating-sources.tar.gz.asc) | [SHA512](https://archive.apache.org/dist/incubator/atlas/0.8.0-incubating/apache-atlas-0.8-incubating-sources.tar.gz.sha512) |
| 0.7.1-incubating | 2017-01-29 | [source](https://archive.apache.org/dist/incubator/atlas/0.7.1-incubating/apache-atlas-0.7.1-incubating-sources.tar.gz) | [signature](https://archive.apache.org/dist/incubator/atlas/0.7.1-incubating/apache-atlas-0.7.1-incubating-sources.tar.gz.asc) | [checksum](https://archive.apache.org/dist/incubator/atlas/0.7.1-incubating/apache-atlas-0.7.1-incubating-sources.tar.gz.mds) |
| 0.7.0-incubating | 2016-07-09 | [source](https://archive.apache.org/dist/incubator/atlas/0.7.0-incubating/apache-atlas-0.7-incubating-sources.tar.gz) | [signature](https://archive.apache.org/dist/incubator/atlas/0.7.0-incubating/apache-atlas-0.7-incubating-sources.tar.gz.asc) | [SHA512](https://archive.apache.org/dist/incubator/atlas/0.7.0-incubating/apache-atlas-0.7-incubating-sources.tar.gz.sha512) |
| 0.6.0-incubating | 2015-12-31 | [source](https://archive.apache.org/dist/incubator/atlas/0.6.0-incubating/apache-atlas-0.6-incubating-sources.tar.gz) | [signature](https://archive.apache.org/dist/incubator/atlas/0.6.0-incubating/apache-atlas-0.6-incubating-sources.tar.gz.asc) | [SHA](https://archive.apache.org/dist/incubator/atlas/0.6.0-incubating/apache-atlas-0.6-incubating-sources.tar.gz.sha) |
| 0.5.0-incubating | 2015-06-22 | [source](https://archive.apache.org/dist/incubator/atlas/0.5.0-incubating/apache-atlas-0.5-incubating-sources.tar.gz) | [signature](https://archive.apache.org/dist/incubator/atlas/0.5.0-incubating/apache-atlas-0.5-incubating-sources.tar.gz.asc) | [SHA](https://archive.apache.org/dist/incubator/atlas/0.5.0-incubating/apache-atlas-0.5-incubating-sources.tar.gz.sha) |
| 0.7.0-incubating | 2016-07-09 | [source](https://archive.apache.org/dist/atlas/0.7.0-incubating/apache-atlas-0.7-incubating-sources.tar.gz) | [signature](https://archive.apache.org/dist/atlas/0.7.0-incubating/apache-atlas-0.7-incubating-sources.tar.gz.asc) | [SHA512](https://archive.apache.org/dist/atlas/0.7.0-incubating/apache-atlas-0.7-incubating-sources.tar.gz.sha512) |
| 0.8.0-incubating | 2017-06-26 | [source](https://archive.apache.org/dist/atlas/0.8.0-incubating/apache-atlas-0.8-incubating-sources.tar.gz) | [signature](https://archive.apache.org/dist/atlas/0.8.0-incubating/apache-atlas-0.8-incubating-sources.tar.gz.asc) | [SHA512](https://archive.apache.org/dist/atlas/0.8.0-incubating/apache-atlas-0.8-incubating-sources.tar.gz.sha512) |
| 0.7.1-incubating | 2017-01-28 | [source](https://archive.apache.org/dist/atlas/0.7.1-incubating/apache-atlas-0.7.1-incubating-sources.tar.gz) | [signature](https://archive.apache.org/dist/atlas/0.7.1-incubating/apache-atlas-0.7.1-incubating-sources.tar.gz.asc) | [checksum](https://archive.apache.org/dist/atlas/0.7.1-incubating/apache-atlas-0.7.1-incubating-sources.tar.gz.mds) |
| 0.6.0-incubating | 2015-12-31 | [source](https://archive.apache.org/dist/atlas/0.6.0-incubating/apache-atlas-0.6-incubating-sources.tar.gz) | [signature](https://archive.apache.org/dist/atlas/0.6.0-incubating/apache-atlas-0.6-incubating-sources.tar.gz.asc) | [SHA](https://archive.apache.org/dist/atlas/0.6.0-incubating/apache-atlas-0.6-incubating-sources.tar.gz.sha) |
| 0.5.0-incubating | 2015-07-10 | [source](https://archive.apache.org/dist/atlas/0.5.0-incubating/apache-atlas-0.5-incubating-sources.tar.gz) | [signature](https://archive.apache.org/dist/atlas/0.5.0-incubating/apache-atlas-0.5-incubating-sources.tar.gz.asc) | [SHA](https://archive.apache.org/dist/atlas/0.5.0-incubating/apache-atlas-0.5-incubating-sources.tar.gz.sha) |
## Verify the integrity of the files
......
......@@ -10,7 +10,7 @@ import * as theme from 'react-syntax-highlighter/dist/esm/styles/hljs';
import SyntaxHighlighter from 'react-syntax-highlighter';
### Atlas Authorization Model
# Atlas Authorization Model
## Introduction
......
......@@ -226,7 +226,7 @@ in more detail. Depending on the configuration of Apache Kafka, sometimes you mi
using Apache Atlas. To do so, Apache Atlas provides a script =bin/atlas_kafka_setup.py= which can be run from Apache Atlas server. In some
environments, the hooks might start getting used first before Apache Atlas server itself is setup. In such cases, the topics
can be run on the hosts where hooks are installed using a similar script `hook-bin/atlas_kafka_setup_hook.py`. Both these
use configuration in `atlas-application.properties` for setting up the topics. Please refer to the [Configuration](#/Configuration])
use configuration in `atlas-application.properties` for setting up the topics. Please refer to the [Configuration](#/Configuration)
for these details.
#### Setting up Apache Atlas
......
......@@ -16,54 +16,128 @@
* limitations under the License.
*/
import Select from "react-dropdown-select";
import React, { Fragment, useState } from "react";
import React, { useEffect, useState, useRef } from "react";
import styled from "styled-components";
import * as colors from "../../../../styles/colors";
const Basic = props => {
let { options, ...rest } = props;
const [value, setValue] = useState([
{ id: 1, href: "/", title: "Latest", label: "Latest" }
]);
let { options} = props;
const [toggle, setToggle] = useState(false);
const dropdownRef = useRef();
useEffect(() => {
const setToggleOnEvent = event => {
if (!(event.target.classList.contains('dropbtn') || event.target.classList.contains('dropdown-item')) && dropdownRef.current.classList.contains('show')) {
setToggle(false);
}
};
window.addEventListener("mousedown", setToggleOnEvent);
return () => {
window.removeEventListener("mousedown", setToggleOnEvent);
};
}, []);
const ComponentStyle = styled.div`
> div {
display: inline-block;
width: 145px;
width: 160px;
}
label {
margin-right: 5px;
}
`;
const DropDownComp = styled.div`
.dropbtn {
background-color: #ffffff;
color: rgb(45, 55, 71);
padding: 5px;
font-size: 14px;
border: 1px solid rgb(204, 204, 204);
cursor: pointer;
width: 100%;
text-align: left;
border-radius: 4px;
&:hover, &:focus {
border: 1px solid rgb(55, 187, 155);
}
}
.dropdown {
position: relative;
display: inline-block;
width: 100%;
}
.dropdown-content {
margin-top: 10px;
display: none;
position: absolute;
background-color: #ffffff;
width: 160px;
overflow: auto;
max-height: 300px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
.dropdown-item {
padding: 5px 12px;
&:hover {
background-color: rgba(55, 187, 155, 0.1);;
}
}
}
.dropdown-content a {
padding: 12px 16px;
text-decoration: none;
display: block;
}
.dropdown a:hover {background-color: #ddd;}
.show {display: block;}
i {
color: rgb(45, 55, 71);
border: solid black;
border-width: 0 1px 1px 0;
display: inline-block;
padding: 3px;
float: right;
}
.up {
margin-top: 5px;
transform: rotate(-135deg);
-webkit-transform: rotate(-135deg);
}
.down {
margin-top: 3px;
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
}
`;
return (
<ComponentStyle>
<Fragment>
<label>Versions:</label>
<Select
valueField="id"
placeholder="Documentation"
color={colors.green}
options={options}
values={value}
onChange={selectedValue => {
if (selectedValue.length > 0 && value !== selectedValue) {
let href = selectedValue[0].href,
target = "_self";
setValue(selectedValue);
if (selectedValue[0].title !== "Latest") {
href = `http://atlas.apache.org${selectedValue[0].href}`;
target = "_blank";
}
window.open(href, target);
<DropDownComp>
<div className="dropdown">
<button className="dropbtn" onClick={() => setToggle(c => !c)}>Versions <i className={`${toggle ? 'up' : 'down'}`}></i></button>
<div ref={dropdownRef} id="myDropdown" className={`dropdown-content ${toggle ? 'show' : ''}`}>
{
options.map(function(opt, i) {
return <div className="dropdown-item" key={i} data-href={opt.href} onClick={
event => {
const dataHref = event.currentTarget.dataset.href;
const href = `${window.location.origin}${dataHref}`;
window.open(href, "_blank");
}}>
{opt.title}
</div>
})
}
}}
{...rest}
/>
</Fragment>
</div>
</div>
</DropDownComp>
</ComponentStyle>
);
};
Basic.propTypes = {};
export default Basic;
\ No newline at end of file
export default Basic;
......@@ -22,7 +22,7 @@ import Basic from "./Basic";
import { doczState } from "../../../../../docz-lib/docz/dist";
const DropDownDivContainer = styled.div`
width: 220px;
width: 160px;
padding: 0;
margin-right: 5px;
float: right;
......@@ -43,4 +43,4 @@ export const HeaderDropDown = () => {
/>
</DropDownDivContainer>
);
};
\ No newline at end of file
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment