diff --git a/website/.eslintrc b/website/.eslintrc index 004b528..79816af 100644 --- a/website/.eslintrc +++ b/website/.eslintrc @@ -19,9 +19,10 @@ "__COVERAGE__" : false }, "rules": { - "key-spacing" : 0, - "jsx-quotes" : [2, "prefer-single"], - "object-curly-spacing" : [2, "always"], - "space-before-function-paren": ["error", "never"] + "key-spacing": 0, + "jsx-quotes": [2, "prefer-single"], + "object-curly-spacing": [2, "always"], + "space-before-function-paren": ["error", "never"], + "comma-dangle": ["error", "only-multiline"] } } diff --git a/website/public/index.html b/website/public/index.html index e6e2823..9b716cb 100644 --- a/website/public/index.html +++ b/website/public/index.html @@ -7,7 +7,7 @@ - +
diff --git a/website/src/App.js b/website/src/App.js index 960179b..03b572a 100644 --- a/website/src/App.js +++ b/website/src/App.js @@ -3,7 +3,7 @@ import { Login, Logout, ResetPassword, ForgotPassword, ConfirmEmail, ProtectedRo import { Home } from './Home' import { Profile } from './Profile' import { Users } from './Users' -import { HolyGrail, Image, Text, Icon } from './ui' +import { Column, Row, Image, Text, Icon, Box } from './ui' import { BrowserRouter as Router, Route, Switch } from 'react-router-dom' import logoImage from 'images/logo.png' import { versionInfo } from './version' @@ -11,12 +11,21 @@ import { versionInfo } from './version' export class App extends React.Component { render() { return ( - - - - - - + + + + + + + +   + + + + + + + @@ -30,11 +39,13 @@ export class App extends React.Component { {/* No Match Route */} - - - {versionInfo.fullVersion} © 2018, Kingston Software Solutions. - - + + + + {versionInfo.fullVersion} © 2018, Kingston Software Solutions. + + + ) } } diff --git a/website/src/Auth/ForgotPassword.js b/website/src/Auth/ForgotPassword.js index a34aa64..58bd1f1 100644 --- a/website/src/Auth/ForgotPassword.js +++ b/website/src/Auth/ForgotPassword.js @@ -1,7 +1,7 @@ import React from 'react' import PropTypes from 'prop-types' import { regExpPattern } from 'regexp-pattern' -import { Text, StackLayout } from '../ui' +import { Text, Column } from '../ui' import { MessageDialog, WaitDialog } from '../Dialog' import { Validator, ValidatedInput, ValidatedButton } from '../Validated' import { api } from '../helpers' @@ -68,23 +68,23 @@ export class ForgotPassword extends React.Component { return (
- - + + Forgotten Password - - + + - - + + The email address of an existing user to send the password reset link to. - - + + Submit - - + +
- - + + - - + + - - + + - - + + Forgot your password? - - + + - - + + - - + + Please contact support@jamoki.com to request login credentials. - - + +
diff --git a/website/src/Auth/Logout.js b/website/src/Auth/Logout.js index c70b9f2..c2bceb7 100644 --- a/website/src/Auth/Logout.js +++ b/website/src/Auth/Logout.js @@ -4,7 +4,7 @@ import { api } from '../helpers' export class Logout extends React.Component { static propTypes = { - history: PropTypes.oneOfType([PropTypes.array, PropTypes.object]) + history: PropTypes.oneOfType([PropTypes.array, PropTypes.object]), } componentDidMount(event) { api.logout().then(() => { diff --git a/website/src/Auth/ProtectedRoute.js b/website/src/Auth/ProtectedRoute.js index f175f01..7f173c2 100644 --- a/website/src/Auth/ProtectedRoute.js +++ b/website/src/Auth/ProtectedRoute.js @@ -8,8 +8,8 @@ export class ProtectedRoute extends React.Component { roles: PropTypes.array, location: PropTypes.shape({ pathname: PropTypes.string, - search: PropTypes.string - }) + search: PropTypes.string, + }), } constructor(props) { diff --git a/website/src/Auth/ResetPassword.js b/website/src/Auth/ResetPassword.js index 8f253be..c96807a 100644 --- a/website/src/Auth/ResetPassword.js +++ b/website/src/Auth/ResetPassword.js @@ -1,6 +1,6 @@ import React from 'react' import PropTypes from 'prop-types' -import { Text, StackLayout } from '../ui' +import { Text, Column } from '../ui' import { Validator, ValidatedInput, ValidatedButton } from '../Validated' import { MessageDialog, WaitDialog } from '../Dialog' import { api } from '../helpers' @@ -63,32 +63,32 @@ export class ResetPassword extends React.Component { return (
- - + + Reset Password - - + + - - + + - - + + Passwords can contain special characters and should be unique to this application.

Passwords must be at least 6 characters long.
-
- + + - -
+ +
- - + + Change Email - - + + - - + + OK - - + +
) diff --git a/website/src/Dialog/ChangePasswordDialog.js b/website/src/Dialog/ChangePasswordDialog.js index 784c5ed..a6a0bc4 100644 --- a/website/src/Dialog/ChangePasswordDialog.js +++ b/website/src/Dialog/ChangePasswordDialog.js @@ -1,7 +1,7 @@ import React from 'react' import PropTypes from 'prop-types' import { autoBind } from 'auto-bind2' -import { Modal, Button, Icon, StackLayout, RowLayout, Text } from '../ui' +import { Modal, Button, Icon, Column, Row, Text } from '../ui' import { ValidatedInput, ValidatedActionsButton, Validator } from '../Validated' export class ChangePasswordDialog extends React.Component { @@ -66,38 +66,38 @@ export class ChangePasswordDialog extends React.Component { return (
- + Change Password - - - - + + + + - - + + - - + + - - - - - + + + + + OK - - + +
) diff --git a/website/src/Dialog/MessageDialog.js b/website/src/Dialog/MessageDialog.js index 771d6c6..e516f9d 100644 --- a/website/src/Dialog/MessageDialog.js +++ b/website/src/Dialog/MessageDialog.js @@ -1,6 +1,6 @@ import React from 'react' import PropTypes from 'prop-types' -import { Modal, Button, Icon, StackLayout, Text } from '../ui' +import { Modal, Button, Icon, Column, Text } from '../ui' export class MessageDialog extends React.Component { static propTypes = { @@ -13,19 +13,19 @@ export class MessageDialog extends React.Component { render() { return ( - - + + {this.props.title} - - + + {this.props.message} - - + + - - + + ) } diff --git a/website/src/Dialog/YesNoMessageDialog.js b/website/src/Dialog/YesNoMessageDialog.js index 223b2f2..8c35234 100644 --- a/website/src/Dialog/YesNoMessageDialog.js +++ b/website/src/Dialog/YesNoMessageDialog.js @@ -1,6 +1,6 @@ import React from 'react' import PropTypes from 'prop-types' -import { Modal, Button, StackLayout, Text, Icon } from '../ui' +import { Modal, Button, Column, Text, Icon } from '../ui' export class YesNoMessageDialog extends React.Component { static propTypes = { @@ -18,22 +18,22 @@ export class YesNoMessageDialog extends React.Component { return ( - - + + {this.props.title} - - + + {this.props.message} - - + + - - + + ) } diff --git a/website/src/Profile/ProfileForm.js b/website/src/Profile/ProfileForm.js index 521b1bd..eb4d582 100644 --- a/website/src/Profile/ProfileForm.js +++ b/website/src/Profile/ProfileForm.js @@ -1,6 +1,6 @@ import React from 'react' import PropTypes from 'prop-types' -import { StackLayout, Button } from '../ui' +import { Column, Button } from '../ui' import { regExpPattern } from 'regexp-pattern' import { Validator, ValidatedInput, ValidatedButton } from '../Validated' @@ -95,30 +95,30 @@ export class ProfileForm extends React.Component { render() { return (
- - + + - - + + - - + + - - + +