diff --git a/.gitignore b/.gitignore index 4614796c..01948aa5 100644 --- a/.gitignore +++ b/.gitignore @@ -165,3 +165,4 @@ prototypes/*/package-lock.json _env* keys* +/packages/*/public/index.html diff --git a/packages/icons/package.json b/packages/icons/package.json index 9fe5ac59..5a55ed33 100644 --- a/packages/icons/package.json +++ b/packages/icons/package.json @@ -31,7 +31,7 @@ "babel-preset-joyent-portal": "^7.0.1", "eslint": "^4.19.1", "eslint-config-joyent-portal": "^3.3.1", - "joyent-react-scripts": "^8.0.3", + "joyent-react-scripts": "^8.2.0", "react": "^16.3.1", "redrun": "^6.0.2" }, diff --git a/packages/logos/package.json b/packages/logos/package.json index d1a72ca4..e22ac4c4 100644 --- a/packages/logos/package.json +++ b/packages/logos/package.json @@ -31,7 +31,7 @@ "execa": "^0.10.0", "globby": "^8.0.1", "htmltojsx": "^0.3.0", - "joyent-react-scripts": "^8.0.3", + "joyent-react-scripts": "^8.2.0", "mz": "^2.7.0", "react": "^16.3.1", "redrun": "^6.0.2" diff --git a/packages/my-joy-images/package.json b/packages/my-joy-images/package.json index a8e52604..ac66a89c 100644 --- a/packages/my-joy-images/package.json +++ b/packages/my-joy-images/package.json @@ -33,7 +33,7 @@ "force-array": "^3.1.0", "fuse.js": "^3.2.0", "hapi-render-react": "^2.5.2", - "hapi-render-react-joyent-document": "^5.0.0", + "hapi-render-react-joyent-document": "^7.0.1", "inert": "^5.1.0", "joyent-logo-assets": "^1.1.0", "joyent-react-styled-flexboxgrid": "^2.2.3", @@ -52,6 +52,7 @@ "react": "^16.3.1", "react-apollo": "^2.1.2", "react-dom": "^16.3.1", + "react-helmet-async": "0.0.5", "react-redux": "^5.0.7", "react-redux-values": "^1.1.2", "react-router": "^4.2.0", @@ -73,7 +74,7 @@ "eslint-config-joyent-portal": "^3.3.1", "jest-image-snapshot": "^2.4.0", "jest-styled-components": "^5.0.1", - "joyent-react-scripts": "^8.0.3", + "joyent-react-scripts": "^8.2.0", "react-screenshot-renderer": "^1.1.2", "react-test-renderer": "^16.3.1", "redrun": "^6.0.2" diff --git a/packages/my-joy-images/src/_document.js b/packages/my-joy-images/src/_document.js index 47e8cb3e..a0feb4c0 100644 --- a/packages/my-joy-images/src/_document.js +++ b/packages/my-joy-images/src/_document.js @@ -51,6 +51,7 @@ const getState = request => { module.exports = Document({ namespace: 'images/', assets, + Html: require('./html'), indexFile, getState }); diff --git a/packages/my-joy-images/src/app.js b/packages/my-joy-images/src/app.js index cf61df7e..d04d3c29 100644 --- a/packages/my-joy-images/src/app.js +++ b/packages/my-joy-images/src/app.js @@ -1,10 +1,14 @@ import React from 'react'; +import Helmet from 'react-helmet-async'; import { RootContainer } from 'joyent-ui-toolkit'; import Routes from '@root/routes'; export default () => ( + + Images + ); diff --git a/packages/my-joy-images/src/html.js b/packages/my-joy-images/src/html.js new file mode 100644 index 00000000..d6a0c1ca --- /dev/null +++ b/packages/my-joy-images/src/html.js @@ -0,0 +1,20 @@ +const React = require('react'); + +module.exports = ({ htmlAttrs = {}, bodyAttrs = {}, head = [], children = null }) => ( + + + + + + + + {head} + + +