diff --git a/.gitignore b/.gitignore
index c952089f..b0ad877c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -156,10 +156,15 @@ tap-xunit
_todo
packages/*/dist
+prototypes/*/dist
packages/*/buid
+prototypes/*/buid
+packages/*/.next
+prototypes/*/.next
packages/ui-toolkit/styleguide/
packages/ui-toolkit/.snapguidist/
packages/*/package-lock.json
+prototypes/*/package-lock.json
_env*
keys*
diff --git a/commitlint.config.js b/commitlint.config.js
index df3946af..d72cc60c 100644
--- a/commitlint.config.js
+++ b/commitlint.config.js
@@ -4,7 +4,13 @@ module.exports = {
'scope-enum': [
2,
'always',
- ['ui-toolkit', 'my-joyent', 'my-joy-beta', 'boilerplate', 'cloudapi-gql']
+ [
+ 'ui-toolkit',
+ 'my-joy-beta',
+ 'cloudapi-gql',
+ 'boilerplate',
+ 'create-instance'
+ ]
]
}
};
diff --git a/package.json b/package.json
index 359f37b1..6a305a54 100644
--- a/package.json
+++ b/package.json
@@ -70,7 +70,10 @@
"stylelint-gh-status-reporter": "^1.0.7",
"yargs": "^8.0.2"
},
- "workspaces": ["packages/*"],
+ "workspaces": [
+ "packages/*",
+ "prototypes/*"
+ ],
"resolutions": {
"lodash": "4.17.4",
"lodash.keys": "4.2.0",
diff --git a/packages/my-joyent/.yarnclean b/packages/cloudapi-gql/.yarnclean
similarity index 100%
rename from packages/my-joyent/.yarnclean
rename to packages/cloudapi-gql/.yarnclean
diff --git a/packages/joyent-boilerplate/.eslintrc b/packages/joyent-boilerplate/.eslintrc
deleted file mode 100644
index a847796a..00000000
--- a/packages/joyent-boilerplate/.eslintrc
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "extends": "joyent-portal",
- "rules": {
- "no-console": 0,
- "new-cap": 0,
- // temp
- "no-undef": 1,
- "no-debugger": 1,
- "no-negated-condition": 0
- }
-}
diff --git a/packages/joyent-boilerplate/Dockerfile b/packages/joyent-boilerplate/Dockerfile
deleted file mode 100644
index 6646c2b1..00000000
--- a/packages/joyent-boilerplate/Dockerfile
+++ /dev/null
@@ -1,19 +0,0 @@
-FROM quay.io/yldio/alpine-node-containerpilot:latest
-
-RUN apk add --update nginx
-
-ENV CONTAINERPILOT /etc/containerpilot.json5
-
-RUN npm install -g npm@^4
-RUN npm config set loglevel info \
- && yarn add lerna@^2.0.0
-
-RUN ./node_modules/.bin/lerna clean --yes --scope joyent-boilerplate --include-filtered-dependencies \
- && ./node_modules/.bin/lerna bootstrap --scope joyent-boilerplate --include-filtered-dependencies
-
-COPY packages/boilerplate/etc/containerpilot.json5 ${CONTAINERPILOT}
-COPY packages/boilerplate/etc/nginx.conf.tmpl /etc/nginx/nginx.conf.tmpl
-
-WORKDIR /opt/app/packages/boilerplate
-
-CMD ["/bin/containerpilot"]
diff --git a/packages/joyent-boilerplate/README.md b/packages/joyent-boilerplate/README.md
deleted file mode 100644
index 6aec4003..00000000
--- a/packages/joyent-boilerplate/README.md
+++ /dev/null
@@ -1,21 +0,0 @@
-# joyent-boilerplate
-
-[![Docker Repository on Quay](https://quay.io/repository/yldio/joyent-boilerplate/status)](https://quay.io/repository/yldio/joyent-boilerplate)
-[![License: MPL 2.0](https://img.shields.io/badge/License-MPL%202.0-brightgreen.svg)](https://opensource.org/licenses/MPL-2.0)
-[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg)](https://github.com/RichardLitt/standard-readme)
-
-## Table of Contents
-
-- [Usage](#usage)
-- [License](#license)
-
-## Usage
-
-```
-npm run start
-open http://0.0.0.0:3069
-```
-
-## License
-
-MPL-2.0
diff --git a/packages/joyent-boilerplate/package.json b/packages/joyent-boilerplate/package.json
deleted file mode 100644
index dc6d7c5f..00000000
--- a/packages/joyent-boilerplate/package.json
+++ /dev/null
@@ -1,60 +0,0 @@
-{
- "name": "joyent-boilerplate",
- "version": "1.0.0",
- "license": "MPL-2.0",
- "repository": "github:yldio/joyent-portal",
- "main": "build/",
- "scripts": {
- "dev":
- "REACT_APP_GQL_PORT=3000 PORT=3069 REACT_APP_GQL_PROTOCOL=http joyent-react-scripts start",
- "start": "PORT=3069 joyent-react-scripts start",
- "build": "NODE_ENV=production joyent-react-scripts build",
- "lint:css": "stylelint './src/**/*.js'",
- "lint:js": "eslint . --fix",
- "lint": "redrun -s lint:*",
- "test": "NODE_ENV=test ./test/run --env=jsdom",
- "test-ci": "echo 0 `# NODE_ENV=test ./test/run --env=jsdom --coverage`",
- "prepublish": "echo 0"
- },
- "dependencies": {
- "apollo": "^0.2.2",
- "graphql-tag": "^2.4.2",
- "jest-cli": "^21.0.1",
- "joyent-ui-toolkit": "^2.0.0",
- "normalized-styled-components": "^1.0.17",
- "prop-types": "^15.6.0",
- "react": "^16.0.0",
- "react-apollo": "^1.4.16",
- "react-dom": "^16.0.0",
- "react-redux": "^5.0.6",
- "react-router": "^4.2.0",
- "react-router-dom": "^4.2.2",
- "react-styled-flexboxgrid": "^2.0.3",
- "redux": "^3.7.2",
- "redux-form": "^7.1.1",
- "remcalc": "^1.0.9",
- "styled-components": "^2.2.1",
- "styled-is": "^1.1.0"
- },
- "devDependencies": {
- "babel-plugin-inline-react-svg": "^0.4.0",
- "babel-plugin-styled-components": "^1.2.1",
- "babel-preset-joyent-portal": "^3.1.0",
- "eslint": "^4.8.0",
- "eslint-config-joyent-portal": "3.1.0",
- "jest": "^21.2.1",
- "jest-alias-preprocessor": "^1.1.1",
- "jest-cli": "^21.2.1",
- "jest-diff": "^21.2.1",
- "jest-junit": "^3.1.0",
- "jest-matcher-utils": "^21.2.1",
- "jest-snapshot": "^21.2.1",
- "jest-styled-components": "^4.7.0",
- "jest-transform-graphql": "^2.1.0",
- "joyent-react-scripts": "^2.2.1",
- "react-test-renderer": "^16.0.0",
- "redrun": "^5.9.18",
- "stylelint": "^8.2.0",
- "stylelint-config-joyent-portal": "^2.0.1"
- }
-}
diff --git a/packages/joyent-boilerplate/public/index.html b/packages/joyent-boilerplate/public/index.html
deleted file mode 100644
index dd67a9a6..00000000
--- a/packages/joyent-boilerplate/public/index.html
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-
- Joyent Boilerplate
-
-
-
-
-
-
diff --git a/packages/joyent-boilerplate/src/app.js b/packages/joyent-boilerplate/src/app.js
deleted file mode 100644
index a3eb18b6..00000000
--- a/packages/joyent-boilerplate/src/app.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import React from 'react';
-import { ThemeProvider } from 'styled-components';
-import { theme, RootContainer } from 'joyent-ui-toolkit';
-import { ApolloProvider } from 'react-apollo';
-
-import { client, store } from '@state/store';
-import Router from '@root/router';
-
-export default () => (
-
-
- {Router}
-
-
-);
diff --git a/packages/joyent-boilerplate/src/assets/triton_logo.png b/packages/joyent-boilerplate/src/assets/triton_logo.png
deleted file mode 100644
index 666fe0fe..00000000
Binary files a/packages/joyent-boilerplate/src/assets/triton_logo.png and /dev/null differ
diff --git a/packages/joyent-boilerplate/src/assets/triton_logo_dark.png b/packages/joyent-boilerplate/src/assets/triton_logo_dark.png
deleted file mode 100644
index 53aa24f8..00000000
Binary files a/packages/joyent-boilerplate/src/assets/triton_logo_dark.png and /dev/null differ
diff --git a/packages/joyent-boilerplate/src/components/navigation/__tests__/__snapshots__/header.spec.js.snap b/packages/joyent-boilerplate/src/components/navigation/__tests__/__snapshots__/header.spec.js.snap
deleted file mode 100644
index 2d040e98..00000000
--- a/packages/joyent-boilerplate/src/components/navigation/__tests__/__snapshots__/header.spec.js.snap
+++ /dev/null
@@ -1,140 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders without throwing 1`] = `
-.c2 {
- font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
- font-weight: 500;
- font-size: 1.5rem;
- text-transform: uppercase;
- color: ;
- font-size: 1.8125rem;
- margin: 0;
-}
-
-.c1 {
- -webkit-flex: 1 1 auto;
- -ms-flex: 1 1 auto;
- flex: 1 1 auto;
- -webkit-align-self: stretch;
- -ms-flex-item-align: stretch;
- align-self: stretch;
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0;
- padding: 0.9375rem 0;
-}
-
-.c0 {
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row;
- -webkit-flex-wrap: nowrap;
- -ms-flex-wrap: nowrap;
- flex-wrap: nowrap;
- -webkit-box-pack: space-between;
- -webkit-justify-content: space-between;
- -ms-flex-pack: space-between;
- justify-content: space-between;
- -webkit-align-content: stretch;
- -ms-flex-line-pack: stretch;
- align-content: stretch;
- -webkit-align-items: stretch;
- -webkit-box-align: stretch;
- -ms-flex-align: stretch;
- align-items: stretch;
- background-color: ;
- max-height: 3.3125rem;
- min-height: 3.3125rem;
- padding: 0 1.125rem;
- line-height: 1.5625rem;
-}
-
-.c3 {
- border-style: none;
- width: 5.4375rem;
- height: 1.5625rem;
-}
-
-
- .c1 {
- font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
- font-weight: 500;
- font-size: 1.5rem;
- text-transform: uppercase;
- color: ;
- font-size: 1.8125rem;
- margin: 0;
-}
-
-.c0 {
- -webkit-flex: 1 1 auto;
- -ms-flex: 1 1 auto;
- flex: 1 1 auto;
- -webkit-align-self: stretch;
- -ms-flex-item-align: stretch;
- align-self: stretch;
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0;
- padding: 0.9375rem 0;
-}
-
-.c2 {
- border-style: none;
- width: 5.4375rem;
- height: 1.5625rem;
-}
-
-
- .c0 {
- font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
- font-weight: 500;
- font-size: 1.5rem;
- text-transform: uppercase;
- color: ;
- font-size: 1.8125rem;
- margin: 0;
-}
-
-.c1 {
- border-style: none;
- width: 5.4375rem;
- height: 1.5625rem;
-}
-
-
-
-
-`;
diff --git a/packages/joyent-boilerplate/src/components/navigation/__tests__/__snapshots__/not-found.spec.js.snap b/packages/joyent-boilerplate/src/components/navigation/__tests__/__snapshots__/not-found.spec.js.snap
deleted file mode 100644
index c2c3cfeb..00000000
--- a/packages/joyent-boilerplate/src/components/navigation/__tests__/__snapshots__/not-found.spec.js.snap
+++ /dev/null
@@ -1,345 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders without throwing 1`] = `
-.c6 {
- display: inline-block;
- box-sizing: border-box;
- display: inline-block;
- -webkit-box-pack: center;
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center;
- -webkit-align-items: center;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- margin: 0;
- padding: 0.9375rem 1.125rem;
- position: relative;
- font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
- font-weight: 400;
- font-size: 0.9375rem;
- text-align: center;
- font-style: normal;
- font-stretch: normal;
- line-height: normal;
- -webkit-letter-spacing: normal;
- -moz-letter-spacing: normal;
- -ms-letter-spacing: normal;
- letter-spacing: normal;
- text-decoration: none;
- white-space: nowrap;
- vertical-align: middle;
- touch-action: manipulation;
- cursor: pointer;
- color: ;
- background-image: none;
- background-color: ;
- border-radius: 0.25rem;
- border: solid 0.0625rem;
-}
-
-.c6:focus {
- outline: 0;
- text-decoration: none;
- background-color: ;
- border-color: ;
-}
-
-.c6:hover {
- background-color: ;
- border: solid 0.0625rem;
-}
-
-.c6:active,
-.c6:active:hover,
-.c6:active:focus {
- background-image: none;
- outline: 0;
- background-color: ;
- border-color: ;
-}
-
-.c6[disabled] {
- cursor: not-allowed;
- pointer-events: none;
-}
-
-.c3 {
- font-size: 2rem;
- margin: 0.625rem 0;
- font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
- font-weight: 500;
- font-size: 2.25rem;
- font-style: normal;
- font-stretch: normal;
- margin: 0;
-}
-
-.c5 {
- font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
- font-weight: 400;
- line-height: 1.5rem;
- font-size: 0.9375rem;
-}
-
-.c0 {
- margin-right: auto;
- margin-left: auto;
- padding-top: 1.1875rem;
- -webkit-flex: 1 1 auto;
- -ms-flex: 1 1 auto;
- flex: 1 1 auto;
- display: block;
- -webkit-flex-flow: column;
- -ms-flex-flow: column;
- flex-flow: column;
-}
-
-.c1 {
- margin-top: 3.75rem;
-}
-
-.c2 {
- font-weight: normal;
- font-size: 2rem;
-}
-
-.c4 {
- margin-bottom: 1.875rem;
- max-width: 30.625rem;
-}
-
-@media only screen and (min-width:48em) {
- .c0 {
- width: 46rem;
- }
-}
-
-@media only screen and (min-width:64em) {
- .c0 {
- width: 61rem;
- }
-}
-
-@media only screen and (min-width:75em) {
- .c0 {
- width: 76rem;
- }
-}
-
-
- .c5 {
- display: inline-block;
- box-sizing: border-box;
- display: inline-block;
- -webkit-box-pack: center;
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center;
- -webkit-align-items: center;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- margin: 0;
- padding: 0.9375rem 1.125rem;
- position: relative;
- font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
- font-weight: 400;
- font-size: 0.9375rem;
- text-align: center;
- font-style: normal;
- font-stretch: normal;
- line-height: normal;
- -webkit-letter-spacing: normal;
- -moz-letter-spacing: normal;
- -ms-letter-spacing: normal;
- letter-spacing: normal;
- text-decoration: none;
- white-space: nowrap;
- vertical-align: middle;
- touch-action: manipulation;
- cursor: pointer;
- color: ;
- background-image: none;
- background-color: ;
- border-radius: 0.25rem;
- border: solid 0.0625rem;
-}
-
-.c5:focus {
- outline: 0;
- text-decoration: none;
- background-color: ;
- border-color: ;
-}
-
-.c5:hover {
- background-color: ;
- border: solid 0.0625rem;
-}
-
-.c5:active,
-.c5:active:hover,
-.c5:active:focus {
- background-image: none;
- outline: 0;
- background-color: ;
- border-color: ;
-}
-
-.c5[disabled] {
- cursor: not-allowed;
- pointer-events: none;
-}
-
-.c2 {
- font-size: 2rem;
- margin: 0.625rem 0;
- font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
- font-weight: 500;
- font-size: 2.25rem;
- font-style: normal;
- font-stretch: normal;
- margin: 0;
-}
-
-.c4 {
- font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
- font-weight: 400;
- line-height: 1.5rem;
- font-size: 0.9375rem;
-}
-
-.c0 {
- margin-top: 3.75rem;
-}
-
-.c1 {
- font-weight: normal;
- font-size: 2rem;
-}
-
-.c3 {
- margin-bottom: 1.875rem;
- max-width: 30.625rem;
-}
-
-
- .c1 {
- font-size: 2rem;
- margin: 0.625rem 0;
- font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
- font-weight: 500;
- font-size: 2.25rem;
- font-style: normal;
- font-stretch: normal;
- margin: 0;
-}
-
-.c0 {
- font-weight: normal;
- font-size: 2rem;
-}
-
-
- I have no memory of this place
-
- .c1 {
- font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
- font-weight: 400;
- line-height: 1.5rem;
- font-size: 0.9375rem;
-}
-
-.c0 {
- margin-bottom: 1.875rem;
- max-width: 30.625rem;
-}
-
-
- HTTP 404: We can’t find what you are looking for. Next time, always follow your nose.
-
- .c0 {
- display: inline-block;
- box-sizing: border-box;
- display: inline-block;
- -webkit-box-pack: center;
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center;
- -webkit-align-items: center;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- margin: 0;
- padding: 0.9375rem 1.125rem;
- position: relative;
- font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
- font-weight: 400;
- font-size: 0.9375rem;
- text-align: center;
- font-style: normal;
- font-stretch: normal;
- line-height: normal;
- -webkit-letter-spacing: normal;
- -moz-letter-spacing: normal;
- -ms-letter-spacing: normal;
- letter-spacing: normal;
- text-decoration: none;
- white-space: nowrap;
- vertical-align: middle;
- touch-action: manipulation;
- cursor: pointer;
- color: ;
- background-image: none;
- background-color: ;
- border-radius: 0.25rem;
- border: solid 0.0625rem;
-}
-
-.c0:focus {
- outline: 0;
- text-decoration: none;
- background-color: ;
- border-color: ;
-}
-
-.c0:hover {
- background-color: ;
- border: solid 0.0625rem;
-}
-
-.c0:active,
-.c0:active:hover,
-.c0:active:focus {
- background-image: none;
- outline: 0;
- background-color: ;
- border-color: ;
-}
-
-.c0[disabled] {
- cursor: not-allowed;
- pointer-events: none;
-}
-
-
- Back home
-
-
-
-`;
diff --git a/packages/joyent-boilerplate/src/components/navigation/header.js b/packages/joyent-boilerplate/src/components/navigation/header.js
deleted file mode 100644
index 581fb136..00000000
--- a/packages/joyent-boilerplate/src/components/navigation/header.js
+++ /dev/null
@@ -1,24 +0,0 @@
-import React from 'react';
-import { Link } from 'react-router-dom';
-import { Img } from 'normalized-styled-components';
-import remcalc from 'remcalc';
-
-import Logo from '@assets/triton_logo.png';
-import { Header, HeaderBrand } from 'joyent-ui-toolkit';
-
-const StyledLogo = Img.extend`
- width: ${remcalc(87)};
- height: ${remcalc(25)};
-`;
-
-const NavHeader = () => (
-
-);
-
-export default NavHeader;
diff --git a/packages/joyent-boilerplate/src/components/navigation/index.js b/packages/joyent-boilerplate/src/components/navigation/index.js
deleted file mode 100644
index c3eeaef3..00000000
--- a/packages/joyent-boilerplate/src/components/navigation/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-export { default as Header } from './header';
-export { default as NotFound } from './not-found';
diff --git a/packages/joyent-boilerplate/src/components/navigation/not-found.js b/packages/joyent-boilerplate/src/components/navigation/not-found.js
deleted file mode 100644
index 395f4ac1..00000000
--- a/packages/joyent-boilerplate/src/components/navigation/not-found.js
+++ /dev/null
@@ -1,44 +0,0 @@
-import React from 'react';
-import PropTypes from 'prop-types';
-import styled from 'styled-components';
-import remcalc from 'remcalc';
-import { H1, P, Button, ViewContainer } from 'joyent-ui-toolkit';
-
-const StyledContainer = styled.div`
- /* trick prettier */
- margin-top: ${remcalc(60)};
-`;
-
-const StyledTitle = styled(H1)`
- font-weight: normal;
- font-size: ${remcalc(32)};
-`;
-
-const StyledP = styled(P)`
- margin-bottom: ${remcalc(30)};
- max-width: ${remcalc(490)};
-`;
-
-const NotFound = ({
- title = 'I have no memory of this place',
- message = 'HTTP 404: We can’t find what you are looking for. Next time, always follow your nose.',
- link = 'Back home',
- to = '/'
-}) => (
-
-
- {title}
- {message}
-
-
-
-);
-
-NotFound.propTypes = {
- title: PropTypes.string,
- message: PropTypes.string,
- link: PropTypes.string,
- to: PropTypes.string
-};
-
-export default NotFound;
diff --git a/packages/joyent-boilerplate/src/containers/home/__tests__/__snapshots__/index.spec.js.snap b/packages/joyent-boilerplate/src/containers/home/__tests__/__snapshots__/index.spec.js.snap
deleted file mode 100644
index 2d35663f..00000000
--- a/packages/joyent-boilerplate/src/containers/home/__tests__/__snapshots__/index.spec.js.snap
+++ /dev/null
@@ -1,40 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders without throwing 1`] = `
-.c0 {
- margin-right: auto;
- margin-left: auto;
- padding-top: 1.1875rem;
- -webkit-flex: 1 1 auto;
- -ms-flex: 1 1 auto;
- flex: 1 1 auto;
- display: block;
- -webkit-flex-flow: column;
- -ms-flex-flow: column;
- flex-flow: column;
-}
-
-@media only screen and (min-width:48em) {
- .c0 {
- width: 46rem;
- }
-}
-
-@media only screen and (min-width:64em) {
- .c0 {
- width: 61rem;
- }
-}
-
-@media only screen and (min-width:75em) {
- .c0 {
- width: 76rem;
- }
-}
-
-
- Welcome
-
-`;
diff --git a/packages/joyent-boilerplate/src/containers/home/__tests__/index.spec.js b/packages/joyent-boilerplate/src/containers/home/__tests__/index.spec.js
deleted file mode 100644
index ae64bee5..00000000
--- a/packages/joyent-boilerplate/src/containers/home/__tests__/index.spec.js
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * @jest-environment jsdom
- */
-
-import React from 'react';
-import renderer from 'react-test-renderer';
-import 'jest-styled-components';
-
-import Home from '../';
-
-it('renders without throwing', () => {
- const tree = renderer.create().toJSON();
- expect(tree).toMatchSnapshot();
-});
diff --git a/packages/joyent-boilerplate/src/containers/home/index.js b/packages/joyent-boilerplate/src/containers/home/index.js
deleted file mode 100644
index 5f6adc97..00000000
--- a/packages/joyent-boilerplate/src/containers/home/index.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import React from 'react';
-import { ViewContainer } from 'joyent-ui-toolkit';
-
-const Home = () => Welcome;
-
-export default Home;
diff --git a/packages/joyent-boilerplate/src/containers/navigation/__tests__/__snapshots__/header.spec.js.snap b/packages/joyent-boilerplate/src/containers/navigation/__tests__/__snapshots__/header.spec.js.snap
deleted file mode 100644
index 2d040e98..00000000
--- a/packages/joyent-boilerplate/src/containers/navigation/__tests__/__snapshots__/header.spec.js.snap
+++ /dev/null
@@ -1,140 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders without throwing 1`] = `
-.c2 {
- font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
- font-weight: 500;
- font-size: 1.5rem;
- text-transform: uppercase;
- color: ;
- font-size: 1.8125rem;
- margin: 0;
-}
-
-.c1 {
- -webkit-flex: 1 1 auto;
- -ms-flex: 1 1 auto;
- flex: 1 1 auto;
- -webkit-align-self: stretch;
- -ms-flex-item-align: stretch;
- align-self: stretch;
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0;
- padding: 0.9375rem 0;
-}
-
-.c0 {
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row;
- -webkit-flex-wrap: nowrap;
- -ms-flex-wrap: nowrap;
- flex-wrap: nowrap;
- -webkit-box-pack: space-between;
- -webkit-justify-content: space-between;
- -ms-flex-pack: space-between;
- justify-content: space-between;
- -webkit-align-content: stretch;
- -ms-flex-line-pack: stretch;
- align-content: stretch;
- -webkit-align-items: stretch;
- -webkit-box-align: stretch;
- -ms-flex-align: stretch;
- align-items: stretch;
- background-color: ;
- max-height: 3.3125rem;
- min-height: 3.3125rem;
- padding: 0 1.125rem;
- line-height: 1.5625rem;
-}
-
-.c3 {
- border-style: none;
- width: 5.4375rem;
- height: 1.5625rem;
-}
-
-
- .c1 {
- font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
- font-weight: 500;
- font-size: 1.5rem;
- text-transform: uppercase;
- color: ;
- font-size: 1.8125rem;
- margin: 0;
-}
-
-.c0 {
- -webkit-flex: 1 1 auto;
- -ms-flex: 1 1 auto;
- flex: 1 1 auto;
- -webkit-align-self: stretch;
- -ms-flex-item-align: stretch;
- align-self: stretch;
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0;
- padding: 0.9375rem 0;
-}
-
-.c2 {
- border-style: none;
- width: 5.4375rem;
- height: 1.5625rem;
-}
-
-
- .c0 {
- font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
- font-weight: 500;
- font-size: 1.5rem;
- text-transform: uppercase;
- color: ;
- font-size: 1.8125rem;
- margin: 0;
-}
-
-.c1 {
- border-style: none;
- width: 5.4375rem;
- height: 1.5625rem;
-}
-
-
-
-
-`;
diff --git a/packages/joyent-boilerplate/src/containers/navigation/index.js b/packages/joyent-boilerplate/src/containers/navigation/index.js
deleted file mode 100644
index 1008ff79..00000000
--- a/packages/joyent-boilerplate/src/containers/navigation/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-export { default as Header } from './header';
-export { default as withNotFound } from './not-found-hoc';
diff --git a/packages/joyent-boilerplate/src/router.js b/packages/joyent-boilerplate/src/router.js
deleted file mode 100644
index 2d246151..00000000
--- a/packages/joyent-boilerplate/src/router.js
+++ /dev/null
@@ -1,28 +0,0 @@
-import React from 'react';
-import { BrowserRouter, Route, Switch } from 'react-router-dom';
-import styled from 'styled-components';
-
-import { Header } from '@containers/navigation';
-import Home from '@containers/home';
-import { NotFound } from '@components/navigation';
-
-const Container = styled.div`
- display: flex;
- flex: 1 1 auto;
- position: relative;
- flex-flow: column;
-`;
-
-const Router = (
-
-
-
-
-
-
-
-
-
-);
-
-export default Router;
diff --git a/packages/joyent-boilerplate/src/state/state.js b/packages/joyent-boilerplate/src/state/state.js
deleted file mode 100644
index 4110b168..00000000
--- a/packages/joyent-boilerplate/src/state/state.js
+++ /dev/null
@@ -1,3 +0,0 @@
-const state = {};
-
-export default state;
diff --git a/packages/joyent-boilerplate/src/state/store.js b/packages/joyent-boilerplate/src/state/store.js
deleted file mode 100644
index 067be2ae..00000000
--- a/packages/joyent-boilerplate/src/state/store.js
+++ /dev/null
@@ -1,58 +0,0 @@
-import { createStore, combineReducers, applyMiddleware, compose } from 'redux';
-import { reducer as formReducer } from 'redux-form';
-import { ApolloClient, createNetworkInterface } from 'react-apollo';
-import state from './state';
-
-const GLOBAL =
- typeof window === 'object'
- ? window
- : {
- location: {
- hostname: '0.0.0.0'
- }
- };
-
-const GQL_PORT = process.env.REACT_APP_GQL_PORT || 443;
-const GQL_HOSTNAME =
- process.env.REACT_APP_GQL_HOSTNAME || GLOBAL.location.hostname;
-const GQL_PROTOCOL = process.env.REACT_APP_GQL_PROTOCOL || 'https';
-
-export const client = new ApolloClient({
- dataIdFromObject: o => {
- const id = o.id
- ? o.id
- : o.slug
- ? o.slug
- : o.uuid
- ? o.uuid
- : o.timestamp
- ? o.timestamp
- : o.name && o.instance
- ? `${o.name}-${o.instance}`
- : o.name
- ? o.name
- : o.time && o.value
- ? `${o.time}-${o.value}`
- : 'apollo-cache-key-not-defined';
- return `${o.__typename}:${id}`;
- },
- networkInterface: createNetworkInterface({
- uri: `${GQL_PROTOCOL}://${GQL_HOSTNAME}:${GQL_PORT}/api/graphql`
- })
-});
-
-export const store = createStore(
- combineReducers({
- apollo: client.reducer(),
- form: formReducer
- }),
- state, // Initial state
- compose(
- applyMiddleware(client.middleware()),
- // If you are using the devToolsExtension, you can add it here also
- // eslint-disable-next-line no-negated-condition
- typeof GLOBAL.__REDUX_DEVTOOLS_EXTENSION__ !== 'undefined'
- ? GLOBAL.__REDUX_DEVTOOLS_EXTENSION__()
- : f => f
- )
-);
diff --git a/packages/joyent-boilerplate/test/mocks/index.js b/packages/joyent-boilerplate/test/mocks/index.js
deleted file mode 100644
index cf9bab85..00000000
--- a/packages/joyent-boilerplate/test/mocks/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export { default as Router } from './router';
-export { default as Store } from './store';
-export { default as Theme } from './theme';
diff --git a/packages/joyent-boilerplate/test/run b/packages/joyent-boilerplate/test/run
deleted file mode 100755
index 4563667b..00000000
--- a/packages/joyent-boilerplate/test/run
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/usr/bin/env node
-
-// Do this as the first thing so that any code reading it knows the right env.
-process.env.BABEL_ENV = 'test';
-process.env.NODE_ENV = 'test';
-process.env.PUBLIC_URL = '';
-
-// Makes the script crash on unhandled rejections instead of silently
-// ignoring them. In the future, promise rejections that are not handled will
-// terminate the Node.js process with a non-zero exit code.
-process.on('unhandledRejection', err => {
- throw err;
-});
-
-// Ensure environment variables are read.
-require('react-scripts/config/env');
-
-const jest = require('jest');
-const argv = process.argv.slice(2);
-
-// This is not necessary after eject because we embed config into package.json.
-const createJestConfig = require('react-scripts/scripts/utils/createJestConfig');
-const path = require('path');
-const paths = require('react-scripts/config/paths');
-
-const config = createJestConfig(
- relativePath =>
- path.resolve(
- __dirname,
- '../../../node_modules/react-scripts',
- relativePath
- ),
- path.resolve(__dirname, '../../../'),
- false
-);
-
-// patch
-config.testEnvironment = 'node';
-config.transform = Object.assign(
- {},
- {
- '\\.(gql|graphql)$': 'jest-transform-graphql'
- },
- config.transform
-);
-config.testMatch = [
- '/packages/joyent-boilerplate/src/**/**/__tests__/**/*.js',
- '/packages/joyent-boilerplate/src/**/**/**/?(*.)(spec|test).js'
-];
-config.moduleNameMapper = Object.assign({}, config.moduleNameMapper, {
- '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
- '/packages/joyent-boilerplate/test/file-mock.js',
- '^@root/(.*)$': '/packages/joyent-boilerplate/src/$1',
- '^@mocks/(.*)$': '/packages/joyent-boilerplate/test/mocks$1',
- '^@components/(.*)$':
- '/packages/joyent-boilerplate/src/components/$1',
- '^@containers/(.*)$':
- '/packages/joyent-boilerplate/src/containers/$1',
- '^@graphql/(.*)$': '/packages/joyent-boilerplate/src/graphql/$1',
- '^@assets/(.*)$': '/packages/joyent-boilerplate/src/assets/$1',
- '^@state/(.*)$': '/packages/joyent-boilerplate/src/state/$1'
-});
-
-argv.push('--config', JSON.stringify(config));
-
-jest.run(argv);
diff --git a/packages/my-joy-beta/.dockerignore b/packages/my-joy-beta/.dockerignore
deleted file mode 100644
index 06ad4916..00000000
--- a/packages/my-joy-beta/.dockerignore
+++ /dev/null
@@ -1,9 +0,0 @@
-src/components/base/*.css
-node_modules
-coverage
-.nyc_output
-docs/static
-!docs/static/index.html
-docs/node_modules
-dist
-package-lock.json
diff --git a/packages/my-joy-beta/package.json b/packages/my-joy-beta/package.json
index 7ad6c957..66741682 100644
--- a/packages/my-joy-beta/package.json
+++ b/packages/my-joy-beta/package.json
@@ -2,6 +2,7 @@
"name": "my-joy-beta",
"version": "1.0.0",
"license": "MPL-2.0",
+ "private": true,
"repository": "github:yldio/joyent-portal",
"main": "build/",
"scripts": {
@@ -45,8 +46,7 @@
},
"devDependencies": {
"babel-plugin-inline-react-svg": "^0.4.0",
- "babel-plugin-styled-components": "^1.2.1",
- "babel-preset-joyent-portal": "^3.1.0",
+ "babel-preset-joyent-portal": "^3.3.3",
"eslint": "^4.8.0",
"eslint-config-joyent-portal": "3.1.0",
"jest": "^21.2.1",
diff --git a/packages/my-joy-beta/public/index.html b/packages/my-joy-beta/public/index.html
index 3a414b9d..ec2f6cc1 100644
--- a/packages/my-joy-beta/public/index.html
+++ b/packages/my-joy-beta/public/index.html
@@ -8,17 +8,6 @@
-
-
My Joyent β
diff --git a/packages/my-joy-beta/src/components/instances/create-snapshot.js b/packages/my-joy-beta/src/components/instances/create-snapshot.js
index 279b5f9a..bf60bc32 100644
--- a/packages/my-joy-beta/src/components/instances/create-snapshot.js
+++ b/packages/my-joy-beta/src/components/instances/create-snapshot.js
@@ -16,12 +16,12 @@ export default ({
onCancel = () => {}
}) => {
const _error = error &&
- !submitting && (
-
- Ooops!
- {error}
-
- );
+ !submitting && (
+
+ Ooops!
+ {error}
+
+ );
return (