Skip to content

Commit 0551883

Browse files
committed
Merge pull request #385 from Kitware/preference-changes
Preference changes
2 parents a0117ae + c44942e commit 0551883

File tree

21 files changed

+120
-79
lines changed

21 files changed

+120
-79
lines changed

.eslintrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,17 @@ module.exports = {
88
'no-param-reassign': [2, { props: false }],
99
'no-unused-vars': [2, { args: 'none' }],
1010
'no-var': 0,
11+
'no-underscore-dangle': 0,
1112
'one-var': 0,
13+
'block-spacing': 0,
14+
'global-require': 0,
15+
'import/no-unresolved': 0,
1216
'react/no-is-mounted': 1,
1317
'react/prefer-es6-class': 0,
1418
'react/prefer-stateless-function': 0,
19+
'react/jsx-curly-spacing': 0,
20+
'react/jsx-first-prop-new-line': 0,
21+
'react/jsx-indent': 0,
22+
'jsx-a11y/img-has-alt': 0,
1523
}
1624
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"simput": "1.2.0",
4141
"pvw-visualizer": "1.0.11",
4242

43-
"kw-web-suite": "Kitware/kw-web-suite.git#reduced-hpcc-deps"
43+
"kw-web-suite": "2.0.0"
4444
},
4545
"scripts": {
4646
"install:pyfr" : "cp ./node_modules/simput/dist/types/pyfr.js ./dist/simput-pyfr.js",

src/pages/Preferences/AWS/index.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,9 @@ const AWSPrefs = React.createClass({
129129

130130
return (
131131
<div className={ style.rootContainer }>
132-
<Toolbar
133-
breadcrumb={ awsBreadCrumb }
134-
title="AWS EC2"
135-
actions={[{ name: 'add', icon: style.addIcon }]}
136-
onAction={this.addItem}
132+
<Toolbar breadcrumb={ awsBreadCrumb } title="AWS EC2"
133+
actions={[{ name: 'add', icon: style.addIcon }]} onAction={this.addItem}
134+
hasTabs
137135
/>
138136
<div className={ style.container }>
139137
<ActiveList

src/pages/Preferences/Cluster/index.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,9 @@ const ClusterPrefs = React.createClass({
164164

165165
return (
166166
<div className={ style.rootContainer }>
167-
<Toolbar
168-
breadcrumb={ clusterBreadCrumb }
169-
title="Clusters"
170-
actions={[{ name: 'add', icon: style.addIcon }]}
171-
onAction={this.addItem}
167+
<Toolbar breadcrumb={ clusterBreadCrumb } title="Clusters"
168+
actions={[{ name: 'add', icon: style.addIcon }]} onAction={this.addItem}
169+
hasTabs
172170
/>
173171
<div className={ style.container }>
174172
<ActiveList

src/pages/Preferences/Network/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,7 @@ const StatusPage = React.createClass({
3434
render() {
3535
return (
3636
<div className={ style.rootContainer }>
37-
<Toolbar
38-
breadcrumb={ clusterBreadCrumb }
39-
title="Network"
40-
/>
37+
<Toolbar breadcrumb={ clusterBreadCrumb } title="Network" hasTabs />
4138
<div className={ style.container }>
4239
<div className={ style.content }>
4340
<OutputPanel items={this.props.log.map(this.networkMapper)} title="Network log" />

src/pages/Preferences/ServerStatus/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@ const StatusPage = React.createClass({
3333
render() {
3434
return (
3535
<div className={ style.rootContainer }>
36-
<Toolbar
37-
breadcrumb={ clusterBreadCrumb }
38-
title="Status"
39-
onAction={this.addItem}
36+
<Toolbar breadcrumb={ clusterBreadCrumb } title="Status"
37+
onAction={this.addItem} hasTabs
4038
/>
4139
<div className={ style.container }>
4240
<div className={ style.content }>

src/pages/Preferences/User/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default React.createClass({
4848
render() {
4949
return (
5050
<div className={ style.rootContainer }>
51-
<Toolbar title="User" breadcrumb={userBreadCrumb} />
51+
<Toolbar title="User" breadcrumb={userBreadCrumb} hasTabs />
5252
<div className={ style.container }>
5353
<ActiveList
5454
className={ style.menu }

src/pages/Preferences/index.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,26 @@ export const breadcrumb = {
77
'/Preferences/Cluster',
88
'/Preferences/AWS',
99
'/Preferences/Status',
10-
'/Preferences/Network',
10+
//'/Preferences/Network',
1111
],
1212
icons: [
1313
style.userIcon,
1414
style.clusterIcon,
1515
style.ec2Icon,
1616
style.statusIcon,
17-
style.networkIcon,
17+
// style.networkIcon,
18+
],
19+
titles: [
20+
'User preferences',
21+
'Cluster',
22+
'EC2',
23+
'Server status',
24+
],
25+
labels: [
26+
'User',
27+
'Cluster',
28+
'EC2',
29+
'Status',
1830
],
1931
active: -1,
2032
};

src/pages/Project/All/index.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import React from 'react';
33
import TableListing from '../../../panels/TableListing';
44
import EmptyPlaceholder from '../../../panels/EmptyPlaceholder';
55
import { ProjectHelper } from '../../../utils/AccessHelper';
6+
import { primaryBreadCrumbs } from '../../../utils/Constants';
67

78
import theme from 'HPCCloudStyle/Theme.mcss';
89

@@ -55,11 +56,7 @@ const ProjectAll = React.createClass({
5556
render() {
5657
return (
5758
<TableListing
58-
breadcrumb={{
59-
paths: ['/'],
60-
icons: [
61-
theme.breadCrumbRootIcon,
62-
] }}
59+
breadcrumb={primaryBreadCrumbs()}
6360
location={ this.props.location }
6461
accessHelper={ ProjectHelper }
6562
items={ this.props.projects }

src/pages/Project/View/index.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import { SimulationHelper } from '../../../utils/AccessHelper';
33
import TableListing from '../../../panels/TableListing';
44
import EmptyPlaceholder from '../../../panels/EmptyPlaceholder';
5-
5+
import { primaryBreadCrumbs } from '../../../utils/Constants';
66
import theme from 'HPCCloudStyle/Theme.mcss';
77

88
import { connect } from 'react-redux';
@@ -57,12 +57,7 @@ const ProjectView = React.createClass({
5757
render() {
5858
return (
5959
<TableListing
60-
breadcrumb={{
61-
paths: ['/', `/View/Project/${this.props.params.id}`],
62-
icons: [
63-
theme.breadCrumbRootIcon,
64-
theme.breadCrumbProjectIcon,
65-
] }}
60+
breadcrumb={primaryBreadCrumbs(this.props.params.id)}
6661
location={ this.props.location }
6762
accessHelper={ SimulationHelper }
6863
items={ this.props.simulations }

0 commit comments

Comments
 (0)