fix(my-joy-beta): fix regressions introduced by removing Title
This commit is contained in:
parent
0a409f0924
commit
4b84756e47
@ -14,7 +14,8 @@
|
|||||||
"compile:es": "babel src --out-dir dist/es",
|
"compile:es": "babel src --out-dir dist/es",
|
||||||
"compile:umd": "UMD=1 babel src --out-dir dist/umd",
|
"compile:umd": "UMD=1 babel src --out-dir dist/umd",
|
||||||
"compile": "redrun -p compile:*",
|
"compile": "redrun -p compile:*",
|
||||||
"dev": "NODE_ENV=development npm run compile -- -- --watch --source-maps inline",
|
"dev":
|
||||||
|
"NODE_ENV=development npm run compile -- -- --watch --source-maps inline",
|
||||||
"prepublish": "NODE_ENV=production npm run compile"
|
"prepublish": "NODE_ENV=production npm run compile"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -26,7 +27,7 @@
|
|||||||
"babel-preset-joyent-portal": "^6.0.1",
|
"babel-preset-joyent-portal": "^6.0.1",
|
||||||
"eslint": "^4.13.1",
|
"eslint": "^4.13.1",
|
||||||
"eslint-config-joyent-portal": "^3.2.0",
|
"eslint-config-joyent-portal": "^3.2.0",
|
||||||
"joyent-react-scripts": "^6.5.0",
|
"joyent-react-scripts": "^6.5.1",
|
||||||
"react": "^16.2.0",
|
"react": "^16.2.0",
|
||||||
"redrun": "^5.10.0"
|
"redrun": "^5.10.0"
|
||||||
},
|
},
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
{
|
{
|
||||||
"presets": "joyent-portal",
|
"presets": "joyent-portal",
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"styled-components",
|
"styled-components"
|
||||||
["inline-react-svg", {
|
|
||||||
"ignorePattern": "libre-franklin"
|
|
||||||
}]
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -63,7 +63,7 @@
|
|||||||
"jest-snapshot": "^21.2.1",
|
"jest-snapshot": "^21.2.1",
|
||||||
"jest-styled-components": "^4.9.0",
|
"jest-styled-components": "^4.9.0",
|
||||||
"jest-transform-graphql": "^2.1.0",
|
"jest-transform-graphql": "^2.1.0",
|
||||||
"joyent-react-scripts": "^6.5.0",
|
"joyent-react-scripts": "^6.5.1",
|
||||||
"react-test-renderer": "^16.2.0",
|
"react-test-renderer": "^16.2.0",
|
||||||
"redrun": "^5.10.0",
|
"redrun": "^5.10.0",
|
||||||
"serve": "^6.4.1",
|
"serve": "^6.4.1",
|
||||||
|
@ -6,7 +6,6 @@ import find from 'lodash.find';
|
|||||||
import get from 'lodash.get';
|
import get from 'lodash.get';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Title,
|
|
||||||
ViewContainer,
|
ViewContainer,
|
||||||
StatusLoader,
|
StatusLoader,
|
||||||
Message,
|
Message,
|
||||||
@ -26,7 +25,6 @@ const CreateSnapshot = ({
|
|||||||
handleSubmit,
|
handleSubmit,
|
||||||
handleCancel
|
handleCancel
|
||||||
}) => {
|
}) => {
|
||||||
const _title = <Title>Create Snapshot</Title>;
|
|
||||||
const _loading = !(loading && !instance) ? null : <StatusLoader />;
|
const _loading = !(loading && !instance) ? null : <StatusLoader />;
|
||||||
|
|
||||||
const CreateSnapshotForm = reduxForm({
|
const CreateSnapshotForm = reduxForm({
|
||||||
@ -51,7 +49,6 @@ const CreateSnapshot = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<ViewContainer center={Boolean(_loading)} main>
|
<ViewContainer center={Boolean(_loading)} main>
|
||||||
{_title}
|
|
||||||
{_loading}
|
{_loading}
|
||||||
{_error}
|
{_error}
|
||||||
{_form}
|
{_form}
|
||||||
|
@ -6,7 +6,6 @@ import get from 'lodash.get';
|
|||||||
|
|
||||||
import {
|
import {
|
||||||
ViewContainer,
|
ViewContainer,
|
||||||
Title,
|
|
||||||
StatusLoader,
|
StatusLoader,
|
||||||
Message,
|
Message,
|
||||||
MessageDescription,
|
MessageDescription,
|
||||||
@ -17,7 +16,6 @@ import ListDNS from '@graphql/list-dns.gql';
|
|||||||
|
|
||||||
const DNS = ({ instance, loading, error }) => {
|
const DNS = ({ instance, loading, error }) => {
|
||||||
const { name, dns_names } = instance || {};
|
const { name, dns_names } = instance || {};
|
||||||
const _title = <Title>DNS</Title>;
|
|
||||||
const _loading = loading && !name && !dns_names && <StatusLoader />;
|
const _loading = loading && !name && !dns_names && <StatusLoader />;
|
||||||
const _summary = !_loading &&
|
const _summary = !_loading &&
|
||||||
instance && <pre>{JSON.stringify(dns_names, null, 2)}</pre>;
|
instance && <pre>{JSON.stringify(dns_names, null, 2)}</pre>;
|
||||||
@ -35,7 +33,6 @@ const DNS = ({ instance, loading, error }) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<ViewContainer center={Boolean(_loading)} main>
|
<ViewContainer center={Boolean(_loading)} main>
|
||||||
{_title}
|
|
||||||
{_loading}
|
{_loading}
|
||||||
{_error}
|
{_error}
|
||||||
{_summary}
|
{_summary}
|
||||||
|
@ -7,7 +7,6 @@ import get from 'lodash.get';
|
|||||||
|
|
||||||
import {
|
import {
|
||||||
ViewContainer,
|
ViewContainer,
|
||||||
Title,
|
|
||||||
StatusLoader,
|
StatusLoader,
|
||||||
Message,
|
Message,
|
||||||
MessageDescription,
|
MessageDescription,
|
||||||
@ -31,7 +30,6 @@ const Firewall = ({
|
|||||||
error
|
error
|
||||||
}) => {
|
}) => {
|
||||||
const values = forceArray(firewallRules);
|
const values = forceArray(firewallRules);
|
||||||
const _title = <Title>Firewall</Title>;
|
|
||||||
const _loading = !(loading && !values.length) ? null : <StatusLoader />;
|
const _loading = !(loading && !values.length) ? null : <StatusLoader />;
|
||||||
|
|
||||||
const _firewall =
|
const _firewall =
|
||||||
@ -70,7 +68,6 @@ const Firewall = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<ViewContainer center={Boolean(_loading)} main>
|
<ViewContainer center={Boolean(_loading)} main>
|
||||||
{_title}
|
|
||||||
{_loading}
|
{_loading}
|
||||||
{_error}
|
{_error}
|
||||||
{_firewall}
|
{_firewall}
|
||||||
|
@ -11,7 +11,6 @@ import get from 'lodash.get';
|
|||||||
|
|
||||||
import {
|
import {
|
||||||
ViewContainer,
|
ViewContainer,
|
||||||
Title,
|
|
||||||
StatusLoader,
|
StatusLoader,
|
||||||
Message,
|
Message,
|
||||||
MessageDescription,
|
MessageDescription,
|
||||||
@ -37,7 +36,6 @@ const Metadata = ({
|
|||||||
handleUpdate,
|
handleUpdate,
|
||||||
handleCreate
|
handleCreate
|
||||||
}) => {
|
}) => {
|
||||||
const _title = <Title>Metadata</Title>;
|
|
||||||
const _loading = !(loading && !values.length) ? null : <StatusLoader />;
|
const _loading = !(loading && !values.length) ? null : <StatusLoader />;
|
||||||
|
|
||||||
// metadata items forms
|
// metadata items forms
|
||||||
@ -96,8 +94,7 @@ const Metadata = ({
|
|||||||
>
|
>
|
||||||
{KeyValue}
|
{KeyValue}
|
||||||
</ReduxForm>
|
</ReduxForm>
|
||||||
)
|
)}
|
||||||
}
|
|
||||||
</Value>
|
</Value>
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -114,7 +111,6 @@ const Metadata = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<ViewContainer center={Boolean(_loading)} main>
|
<ViewContainer center={Boolean(_loading)} main>
|
||||||
{_title}
|
|
||||||
{_loading}
|
{_loading}
|
||||||
{_error}
|
{_error}
|
||||||
{_metadata}
|
{_metadata}
|
||||||
|
@ -7,7 +7,6 @@ import get from 'lodash.get';
|
|||||||
|
|
||||||
import {
|
import {
|
||||||
ViewContainer,
|
ViewContainer,
|
||||||
Title,
|
|
||||||
StatusLoader,
|
StatusLoader,
|
||||||
Message,
|
Message,
|
||||||
MessageDescription,
|
MessageDescription,
|
||||||
@ -25,7 +24,6 @@ import { Network as InstanceNetwork } from '@components/instances';
|
|||||||
|
|
||||||
const Networks = ({ networks = [], loading, error }) => {
|
const Networks = ({ networks = [], loading, error }) => {
|
||||||
const values = forceArray(networks);
|
const values = forceArray(networks);
|
||||||
const _title = <Title>Networks</Title>;
|
|
||||||
const _loading = !(loading && !values.length) ? null : <StatusLoader />;
|
const _loading = !(loading && !values.length) ? null : <StatusLoader />;
|
||||||
|
|
||||||
const _networks =
|
const _networks =
|
||||||
@ -67,7 +65,6 @@ const Networks = ({ networks = [], loading, error }) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<ViewContainer center={Boolean(_loading)} main>
|
<ViewContainer center={Boolean(_loading)} main>
|
||||||
{_title}
|
|
||||||
{_loading}
|
{_loading}
|
||||||
{_error}
|
{_error}
|
||||||
{_networks}
|
{_networks}
|
||||||
|
@ -7,7 +7,6 @@ import get from 'lodash.get';
|
|||||||
|
|
||||||
import {
|
import {
|
||||||
StatusLoader,
|
StatusLoader,
|
||||||
Title,
|
|
||||||
ViewContainer,
|
ViewContainer,
|
||||||
Message,
|
Message,
|
||||||
MessageTitle,
|
MessageTitle,
|
||||||
@ -26,7 +25,6 @@ const Resize = ({ match, loading, error, instance, packages }) => {
|
|||||||
|
|
||||||
const _packages = forceArray(packages);
|
const _packages = forceArray(packages);
|
||||||
|
|
||||||
const _title = <Title>Resize</Title>;
|
|
||||||
const _loading = !(loading && (!_packages.length || !instance)) ? null : (
|
const _loading = !(loading && (!_packages.length || !instance)) ? null : (
|
||||||
<StatusLoader />
|
<StatusLoader />
|
||||||
);
|
);
|
||||||
@ -45,7 +43,6 @@ const Resize = ({ match, loading, error, instance, packages }) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<ViewContainer center={Boolean(_loading)} main>
|
<ViewContainer center={Boolean(_loading)} main>
|
||||||
{_title}
|
|
||||||
{_loading}
|
{_loading}
|
||||||
{_error}
|
{_error}
|
||||||
{_resize}
|
{_resize}
|
||||||
|
@ -11,7 +11,6 @@ import { reduxForm, stopSubmit, startSubmit, change } from 'redux-form';
|
|||||||
|
|
||||||
import {
|
import {
|
||||||
ViewContainer,
|
ViewContainer,
|
||||||
Title,
|
|
||||||
Message,
|
Message,
|
||||||
MessageTitle,
|
MessageTitle,
|
||||||
MessageDescription
|
MessageDescription
|
||||||
@ -37,8 +36,6 @@ const Snapshots = ({
|
|||||||
error,
|
error,
|
||||||
handleAction
|
handleAction
|
||||||
}) => {
|
}) => {
|
||||||
const _title = <Title>Snapshots</Title>;
|
|
||||||
|
|
||||||
const _values = forceArray(snapshots);
|
const _values = forceArray(snapshots);
|
||||||
const _loading = !_values.length && loading;
|
const _loading = !_values.length && loading;
|
||||||
|
|
||||||
@ -55,7 +52,6 @@ const Snapshots = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<ViewContainer main>
|
<ViewContainer main>
|
||||||
{_title}
|
|
||||||
{_error}
|
{_error}
|
||||||
<SnapshotsListForm
|
<SnapshotsListForm
|
||||||
snapshots={_values}
|
snapshots={_values}
|
||||||
@ -81,13 +77,15 @@ export default compose(
|
|||||||
const { name } = variables;
|
const { name } = variables;
|
||||||
const instance = find(get(rest, 'machines', []), ['name', name]);
|
const instance = find(get(rest, 'machines', []), ['name', name]);
|
||||||
|
|
||||||
const snapshots = get(instance, 'snapshots', []).map(
|
const snapshots = get(
|
||||||
({ created, updated, ...rest }) => ({
|
instance,
|
||||||
...rest,
|
'snapshots',
|
||||||
created: moment.utc(created).unix(),
|
[]
|
||||||
updated: moment.utc(updated).unix()
|
).map(({ created, updated, ...rest }) => ({
|
||||||
})
|
...rest,
|
||||||
);
|
created: moment.utc(created).unix(),
|
||||||
|
updated: moment.utc(updated).unix()
|
||||||
|
}));
|
||||||
|
|
||||||
const index = GenIndex(
|
const index = GenIndex(
|
||||||
snapshots.map(({ name, ...rest }) => ({ ...rest, id: name }))
|
snapshots.map(({ name, ...rest }) => ({ ...rest, id: name }))
|
||||||
|
@ -15,7 +15,8 @@
|
|||||||
"compile:es": "babel src --out-dir dist/es --ignore spec.js",
|
"compile:es": "babel src --out-dir dist/es --ignore spec.js",
|
||||||
"compile:umd": "UMD=1 babel src --out-dir dist/umd --ignore spec.js",
|
"compile:umd": "UMD=1 babel src --out-dir dist/umd --ignore spec.js",
|
||||||
"compile": "redrun -p compile:*",
|
"compile": "redrun -p compile:*",
|
||||||
"dev": "NODE_ENV=development npm run compile -- -- --watch --source-maps inline",
|
"dev":
|
||||||
|
"NODE_ENV=development npm run compile -- -- --watch --source-maps inline",
|
||||||
"styleguide:build": "NODE_ENV=production styleguidist build",
|
"styleguide:build": "NODE_ENV=production styleguidist build",
|
||||||
"styleguide": "NODE_ENV=development styleguidist server",
|
"styleguide": "NODE_ENV=development styleguidist server",
|
||||||
"prepublish": "NODE_ENV=production npm run compile"
|
"prepublish": "NODE_ENV=production npm run compile"
|
||||||
@ -46,7 +47,7 @@
|
|||||||
"eslint": "^4.13.1",
|
"eslint": "^4.13.1",
|
||||||
"eslint-config-joyent-portal": "^3.2.0",
|
"eslint-config-joyent-portal": "^3.2.0",
|
||||||
"jest-styled-components": "^4.9.0",
|
"jest-styled-components": "^4.9.0",
|
||||||
"joyent-react-scripts": "^6.5.0",
|
"joyent-react-scripts": "^6.5.1",
|
||||||
"lodash.isboolean": "^3.0.3",
|
"lodash.isboolean": "^3.0.3",
|
||||||
"react": "^16.2.0",
|
"react": "^16.2.0",
|
||||||
"react-docgen": "^3.0.0-beta8",
|
"react-docgen": "^3.0.0-beta8",
|
||||||
|
@ -9,8 +9,10 @@
|
|||||||
"dev": "NODE_ENV=development joyent-react-scripts start",
|
"dev": "NODE_ENV=development joyent-react-scripts start",
|
||||||
"build": "NODE_ENV=production joyent-react-scripts build",
|
"build": "NODE_ENV=production joyent-react-scripts build",
|
||||||
"fmt": "prettier --write --single-quote *.js src/*.js src/**/*.js",
|
"fmt": "prettier --write --single-quote *.js src/*.js src/**/*.js",
|
||||||
"lint-ci": "eslint . --fix --ext .js --ext .md && echo 0 `# stylelint './src/**/*.js'`",
|
"lint-ci":
|
||||||
"lint": "eslint . --fix --ext .js --ext .md && echo 0 `# stylelint './src/**/*.js'`",
|
"eslint . --fix --ext .js --ext .md && echo 0 `# stylelint './src/**/*.js'`",
|
||||||
|
"lint":
|
||||||
|
"eslint . --fix --ext .js --ext .md && echo 0 `# stylelint './src/**/*.js'`",
|
||||||
"prepublish": "echo 0"
|
"prepublish": "echo 0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -32,9 +34,9 @@
|
|||||||
"babel-preset-joyent-portal": "^6.0.1",
|
"babel-preset-joyent-portal": "^6.0.1",
|
||||||
"eslint": "^4.11.0",
|
"eslint": "^4.11.0",
|
||||||
"eslint-config-joyent-portal": "^3.2.0",
|
"eslint-config-joyent-portal": "^3.2.0",
|
||||||
"joyent-react-scripts": "^6.5.0",
|
"joyent-react-scripts": "^6.5.1",
|
||||||
"prettier": "^1.8.2",
|
"prettier": "^1.8.2",
|
||||||
"stylelint": "^8.4.0",
|
"stylelint": "^8.4.0",
|
||||||
"stylelint-config-joyent-portal": "^2.0.1"
|
"stylelint-config-joyent-portal": "^2.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,3 @@
|
|||||||
{
|
{
|
||||||
"presets": "joyent-portal",
|
"presets": "joyent-portal"
|
||||||
"plugins": [
|
|
||||||
["inline-react-svg", {
|
|
||||||
"ignorePattern": "libre-franklin"
|
|
||||||
}]
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
"repository": "github:yldio/joyent-portal",
|
"repository": "github:yldio/joyent-portal",
|
||||||
"main": "build/",
|
"main": "build/",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "REACT_APP_GQL_PORT=4000 PORT=3069 REACT_APP_GQL_PROTOCOL=http joyent-react-scripts start",
|
"dev":
|
||||||
|
"REACT_APP_GQL_PORT=4000 PORT=3069 REACT_APP_GQL_PROTOCOL=http joyent-react-scripts start",
|
||||||
"start": "PORT=3069 joyent-react-scripts start",
|
"start": "PORT=3069 joyent-react-scripts start",
|
||||||
"build": "NODE_ENV=production joyent-react-scripts build",
|
"build": "NODE_ENV=production joyent-react-scripts build",
|
||||||
"lint:css": "echo 0 `# stylelint './src/**/*.js'`",
|
"lint:css": "echo 0 `# stylelint './src/**/*.js'`",
|
||||||
@ -62,7 +63,7 @@
|
|||||||
"jest-snapshot": "^21.2.1",
|
"jest-snapshot": "^21.2.1",
|
||||||
"jest-styled-components": "^4.9.0",
|
"jest-styled-components": "^4.9.0",
|
||||||
"jest-transform-graphql": "^2.1.0",
|
"jest-transform-graphql": "^2.1.0",
|
||||||
"joyent-react-scripts": "^6.5.0",
|
"joyent-react-scripts": "^6.5.1",
|
||||||
"lodash.sortby": "^4.7.0",
|
"lodash.sortby": "^4.7.0",
|
||||||
"mz": "^2.7.0",
|
"mz": "^2.7.0",
|
||||||
"react-scripts": "^1.0.17",
|
"react-scripts": "^1.0.17",
|
||||||
|
@ -6,7 +6,7 @@ import remcalc from 'remcalc';
|
|||||||
import {
|
import {
|
||||||
Header,
|
Header,
|
||||||
HeaderBrand,
|
HeaderBrand,
|
||||||
TritonIcon beta,
|
TritonIcon,
|
||||||
HeaderNav,
|
HeaderNav,
|
||||||
HeaderItem,
|
HeaderItem,
|
||||||
DataCenterIcon,
|
DataCenterIcon,
|
||||||
@ -20,7 +20,7 @@ const HeaderBrandStyled = styled(HeaderBrand)`
|
|||||||
const NavHeader = () => (
|
const NavHeader = () => (
|
||||||
<Header>
|
<Header>
|
||||||
<HeaderBrandStyled>
|
<HeaderBrandStyled>
|
||||||
<TritonIcon beta />
|
<TritonIcon />
|
||||||
</HeaderBrandStyled>
|
</HeaderBrandStyled>
|
||||||
<HeaderNav>
|
<HeaderNav>
|
||||||
<li>
|
<li>
|
||||||
|
@ -1,8 +1,3 @@
|
|||||||
{
|
{
|
||||||
"presets": "joyent-portal",
|
"presets": "joyent-portal"
|
||||||
"plugins": [
|
|
||||||
["inline-react-svg", {
|
|
||||||
"ignorePattern": "libre-franklin"
|
|
||||||
}]
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
"jest-snapshot": "^21.2.1",
|
"jest-snapshot": "^21.2.1",
|
||||||
"jest-styled-components": "^4.9.0",
|
"jest-styled-components": "^4.9.0",
|
||||||
"jest-transform-graphql": "^2.1.0",
|
"jest-transform-graphql": "^2.1.0",
|
||||||
"joyent-react-scripts": "^6.5.0",
|
"joyent-react-scripts": "^6.5.1",
|
||||||
"lodash.sortby": "^4.7.0",
|
"lodash.sortby": "^4.7.0",
|
||||||
"mz": "^2.7.0",
|
"mz": "^2.7.0",
|
||||||
"react-scripts": "^1.0.17",
|
"react-scripts": "^1.0.17",
|
||||||
|
@ -6132,9 +6132,9 @@ joyent-manifest-editor@^1.4.0:
|
|||||||
prop-types "^15.6.0"
|
prop-types "^15.6.0"
|
||||||
react-codemirror "^1.0.0"
|
react-codemirror "^1.0.0"
|
||||||
|
|
||||||
joyent-react-scripts@^6.5.0:
|
joyent-react-scripts@^6.5.1:
|
||||||
version "6.5.0"
|
version "6.5.1"
|
||||||
resolved "https://registry.yarnpkg.com/joyent-react-scripts/-/joyent-react-scripts-6.5.0.tgz#eec24ccd879c8edcce8ec2d10b5838cb6ddeb42c"
|
resolved "https://registry.yarnpkg.com/joyent-react-scripts/-/joyent-react-scripts-6.5.1.tgz#8f6fafa7dc6ac7e9bee1ad268cc9da827dbb26c5"
|
||||||
dependencies:
|
dependencies:
|
||||||
apr-for-each "^1.0.6"
|
apr-for-each "^1.0.6"
|
||||||
apr-main "^2.0.2"
|
apr-main "^2.0.2"
|
||||||
|
Loading…
Reference in New Issue
Block a user