forked from Netflix/genie
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit for the new genie3 UI
- Loading branch information
Showing
40 changed files
with
2,637 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"presets": ["es2015", "react", "stage-0"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"name": "genie-web", | ||
"version": "0.1.0", | ||
"description": "UI for Genie3 [A federated Job Execution Engine]", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"bundle": "webpack -p --config ./webpack.config.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Netflix/genie.git" | ||
}, | ||
"author": "Netflix", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/Netflix/genie" | ||
}, | ||
"dependencies": { | ||
"jquery": "^2.2.3", | ||
"moment": "^2.13.0", | ||
"react": "^15.0.1", | ||
"react-cookie": "^0.4.5", | ||
"react-dom": "^15.0.1", | ||
"react-router": "^2.3.0", | ||
"react-select": "^1.0.0-beta13" | ||
}, | ||
"devDependencies": { | ||
"babel-eslint": "^6.0.4", | ||
"babel-loader": "^6.2.4", | ||
"babel-plugin-transform-runtime": "^6.8.0", | ||
"babel-preset-es2015": "^6.6.0", | ||
"babel-preset-react": "^6.5.0", | ||
"babel-preset-stage-0": "^6.5.0", | ||
"css-loader": "^0.23.1", | ||
"esformatter-jsx": "^5.0.2", | ||
"eslint": "^2.9.0", | ||
"eslint-config-airbnb": "^9.0.1", | ||
"eslint-plugin-import": "^1.8.0", | ||
"eslint-plugin-jsx-a11y": "^1.2.0", | ||
"eslint-plugin-react": "^5.1.1", | ||
"file-loader": "^0.8.5", | ||
"install": "^0.6.1", | ||
"npm": "^3.8.7", | ||
"style-loader": "^0.13.1", | ||
"url-loader": "^0.5.7", | ||
"webpack": "^1.13.0", | ||
"webpack-dev-server": "^1.14.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
685 changes: 685 additions & 0 deletions
685
genie-web/src/main/resources/static/fonts/fontawesome-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+19.7 KB
genie-web/src/main/resources/static/fonts/glyphicons-halflings-regular.eot
Binary file not shown.
288 changes: 288 additions & 0 deletions
288
genie-web/src/main/resources/static/fonts/glyphicons-halflings-regular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+44.3 KB
genie-web/src/main/resources/static/fonts/glyphicons-halflings-regular.ttf
Binary file not shown.
Binary file added
BIN
+22.9 KB
genie-web/src/main/resources/static/fonts/glyphicons-halflings-regular.woff
Binary file not shown.
Binary file added
BIN
+17.6 KB
genie-web/src/main/resources/static/fonts/glyphicons-halflings-regular.woff2
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React from 'react'; | ||
import {render} from 'react-dom'; | ||
import { Router, Route, browserHistory, Redirect } from 'react-router'; | ||
|
||
import App from './scripts/App'; | ||
import Job from './scripts/Job'; | ||
import Cluster from './scripts/Cluster'; | ||
import Command from './scripts/Command'; | ||
import Application from './scripts/Application'; | ||
import GenieJobDirectory from './scripts/GenieJobDirectory'; | ||
|
||
import './styles/font-awesome.min.css'; | ||
import './styles/bootstrap.min.css'; | ||
import './styles/genie.css'; | ||
|
||
render(( | ||
<Router history={browserHistory}> | ||
<Route path="/" component={App}> | ||
<Route path="/jobs" component={Job}></Route> | ||
<Route path="/clusters" component={Cluster}></Route> | ||
<Route path="/commands" component={Command}></Route> | ||
<Route path="/applications" component={Application}></Route> | ||
</Route> | ||
<Route path="/genie-jobs/*" component={GenieJobDirectory}></Route> | ||
</Router> | ||
), document.getElementById('root')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
import React from 'react'; | ||
import { render } from 'react-dom'; | ||
import $ from 'jquery'; | ||
|
||
import cookie from 'react-cookie'; | ||
|
||
import SiteHeader from './components/SiteHeader'; | ||
import SiteFooter from './components/SiteFooter'; | ||
|
||
export default class App extends React.Component { | ||
|
||
static defaultProps = { | ||
headers : [ | ||
{ url : '/jobs', | ||
name : 'GENIE', | ||
className : 'supress', | ||
}, | ||
{ url : '/jobs', | ||
name : 'Jobs', | ||
className : 'active', | ||
}, | ||
{ url : '/clusters', | ||
name : 'Clusters', | ||
className : 'active', | ||
}, | ||
{ url : '/commands', | ||
name : 'Commands', | ||
className : 'active', | ||
}, | ||
{ url : '/applications', | ||
name : 'Applications', | ||
className : 'active', | ||
}, | ||
] | ||
} | ||
constructor(props) { | ||
super(props); | ||
this.state = { | ||
version: '', | ||
userId: cookie.load('genie.user'), | ||
}; | ||
} | ||
componentDidMount() { | ||
this.loadData(); | ||
} | ||
|
||
loadData() { | ||
$.ajax({ | ||
global: false, | ||
type: 'GET', | ||
headers: { | ||
'Accept': 'application/json' | ||
}, | ||
url: '/actuator/info' | ||
}).done((data) => { | ||
this.setState({version: `${data.git.commit.id}-${data.git.branch}`}); | ||
}); | ||
} | ||
|
||
render() { | ||
return ( | ||
<div> | ||
<SiteHeader headers={this.props.headers} /> | ||
<div className="container"> | ||
{this.props.children} | ||
</div> | ||
<SiteFooter version={this.state.version} /> | ||
</div> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import React from 'react'; | ||
import { render } from 'react-dom'; | ||
|
||
export default class Application extends React.Component { | ||
render() { | ||
return (<h4>Coming soon!</h4>); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import React from 'react'; | ||
import { render } from 'react-dom'; | ||
|
||
export default class Cluster extends React.Component { | ||
render() { | ||
return (<h4>Coming soon!</h4>); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import React from 'react'; | ||
import { render } from 'react-dom'; | ||
|
||
export default class Command extends React.Component { | ||
render() { | ||
return (<h4>Coming soon!</h4>); | ||
} | ||
} |
Oops, something went wrong.