Commit 8ca94c8d by sameer79 Committed by kevalbhatt

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

parent 5955fcd1
export default [ 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: 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: 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: 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: 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: 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" }, { id: 9, href: "/0.8.1/index.html", title: "0.8.1", label: "0.8.1" },
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
"babel-plugin-lodash": "^3.3.4", "babel-plugin-lodash": "^3.3.4",
"babel-plugin-react-transform": "^3.0.0", "babel-plugin-react-transform": "^3.0.0",
"gh-pages": "^2.0.1", "gh-pages": "^2.0.1",
"react-dropdown-select": "^3.0.0",
"react-github-btn": "^1.0.5", "react-github-btn": "^1.0.5",
"react-syntax-highlighter": "^11.0.1", "react-syntax-highlighter": "^11.0.1",
"reactstrap": "^8.0.0", "reactstrap": "^8.0.0",
......
...@@ -18,16 +18,19 @@ artifacts can be found in our published [KEYS file](https://www.apache.org/dist/ ...@@ -18,16 +18,19 @@ artifacts can be found in our published [KEYS file](https://www.apache.org/dist/
| **Version** | **Release Date** | **Tarball** | **GPG** | **Hash** | | **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) | | 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.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.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) |
| 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) | | 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.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.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.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.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.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.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.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.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/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.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-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.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 ## Verify the integrity of the files
......
...@@ -10,7 +10,7 @@ import * as theme from 'react-syntax-highlighter/dist/esm/styles/hljs'; ...@@ -10,7 +10,7 @@ import * as theme from 'react-syntax-highlighter/dist/esm/styles/hljs';
import SyntaxHighlighter from 'react-syntax-highlighter'; import SyntaxHighlighter from 'react-syntax-highlighter';
### Atlas Authorization Model # Atlas Authorization Model
## Introduction ## Introduction
......
...@@ -226,7 +226,7 @@ in more detail. Depending on the configuration of Apache Kafka, sometimes you mi ...@@ -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 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 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 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. for these details.
#### Setting up Apache Atlas #### Setting up Apache Atlas
......
...@@ -16,54 +16,128 @@ ...@@ -16,54 +16,128 @@
* limitations under the License. * limitations under the License.
*/ */
import Select from "react-dropdown-select"; import React, { useEffect, useState, useRef } from "react";
import React, { Fragment, useState } from "react";
import styled from "styled-components"; import styled from "styled-components";
import * as colors from "../../../../styles/colors";
const Basic = props => { const Basic = props => {
let { options, ...rest } = props; let { options} = props;
const [value, setValue] = useState([ const [toggle, setToggle] = useState(false);
{ id: 1, href: "/", title: "Latest", label: "Latest" } 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` const ComponentStyle = styled.div`
> div { > div {
display: inline-block; display: inline-block;
width: 145px; width: 160px;
} }
label { label {
margin-right: 5px; 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 ( return (
<ComponentStyle> <ComponentStyle>
<Fragment> <DropDownComp>
<label>Versions:</label> <div className="dropdown">
<Select <button className="dropbtn" onClick={() => setToggle(c => !c)}>Versions <i className={`${toggle ? 'up' : 'down'}`}></i></button>
valueField="id" <div ref={dropdownRef} id="myDropdown" className={`dropdown-content ${toggle ? 'show' : ''}`}>
placeholder="Documentation" {
color={colors.green} options.map(function(opt, i) {
options={options} return <div className="dropdown-item" key={i} data-href={opt.href} onClick={
values={value} event => {
onChange={selectedValue => { const dataHref = event.currentTarget.dataset.href;
if (selectedValue.length > 0 && value !== selectedValue) { const href = `${window.location.origin}${dataHref}`;
let href = selectedValue[0].href, window.open(href, "_blank");
target = "_self"; }}>
setValue(selectedValue); {opt.title}
if (selectedValue[0].title !== "Latest") { </div>
href = `http://atlas.apache.org${selectedValue[0].href}`; })
target = "_blank";
}
window.open(href, target);
} }
}} </div>
{...rest} </div>
/> </DropDownComp>
</Fragment>
</ComponentStyle> </ComponentStyle>
); );
}; };
Basic.propTypes = {}; Basic.propTypes = {};
export default Basic; export default Basic;
\ No newline at end of file
...@@ -22,7 +22,7 @@ import Basic from "./Basic"; ...@@ -22,7 +22,7 @@ import Basic from "./Basic";
import { doczState } from "../../../../../docz-lib/docz/dist"; import { doczState } from "../../../../../docz-lib/docz/dist";
const DropDownDivContainer = styled.div` const DropDownDivContainer = styled.div`
width: 220px; width: 160px;
padding: 0; padding: 0;
margin-right: 5px; margin-right: 5px;
float: right; float: right;
...@@ -43,4 +43,4 @@ export const HeaderDropDown = () => { ...@@ -43,4 +43,4 @@ export const HeaderDropDown = () => {
/> />
</DropDownDivContainer> </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