Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"files": {
"main.css": "/static/css/main.e724d899.chunk.css",
"main.js": "/static/js/main.b8162989.chunk.js",
"main.js.map": "/static/js/main.b8162989.chunk.js.map",
"main.js": "/static/js/main.91df94a4.chunk.js",
"main.js.map": "/static/js/main.91df94a4.chunk.js.map",
"runtime-main.js": "/static/js/runtime-main.9f59d3bd.js",
"runtime-main.js.map": "/static/js/runtime-main.9f59d3bd.js.map",
"static/js/2.dee84cbf.chunk.js": "/static/js/2.dee84cbf.chunk.js",
"static/js/2.dee84cbf.chunk.js.map": "/static/js/2.dee84cbf.chunk.js.map",
"static/js/2.af2cf93b.chunk.js": "/static/js/2.af2cf93b.chunk.js",
"static/js/2.af2cf93b.chunk.js.map": "/static/js/2.af2cf93b.chunk.js.map",
"index.html": "/index.html",
"precache-manifest.f52aba2010725ab3fcb52e5f2832c562.js": "/precache-manifest.f52aba2010725ab3fcb52e5f2832c562.js",
"precache-manifest.7cb477413e590953c99723815f1fa5f6.js": "/precache-manifest.7cb477413e590953c99723815f1fa5f6.js",
"service-worker.js": "/service-worker.js",
"static/css/main.e724d899.chunk.css.map": "/static/css/main.e724d899.chunk.css.map",
"static/js/2.dee84cbf.chunk.js.LICENSE": "/static/js/2.dee84cbf.chunk.js.LICENSE"
"static/js/2.af2cf93b.chunk.js.LICENSE": "/static/js/2.af2cf93b.chunk.js.LICENSE"
},
"entrypoints": [
"static/js/runtime-main.9f59d3bd.js",
"static/js/2.dee84cbf.chunk.js",
"static/js/2.af2cf93b.chunk.js",
"static/css/main.e724d899.chunk.css",
"static/js/main.b8162989.chunk.js"
"static/js/main.91df94a4.chunk.js"
]
}
2 changes: 1 addition & 1 deletion build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Natural Language Understanding is a collection of APIs that offer text analysis through natural language processing. This set of APIs can analyze text to help you understand its concepts, entities, keywords, sentiment, and more."/><link rel="apple-touch-icon" href="/public/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>Natural Language Understanding</title><link href="/static/css/main.e724d899.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(i){function e(e){for(var t,r,n=e[0],o=e[1],u=e[2],l=0,a=[];l<n.length;l++)r=n[l],Object.prototype.hasOwnProperty.call(f,r)&&f[r]&&a.push(f[r][0]),f[r]=0;for(t in o)Object.prototype.hasOwnProperty.call(o,t)&&(i[t]=o[t]);for(s&&s(e);a.length;)a.shift()();return c.push.apply(c,u||[]),p()}function p(){for(var e,t=0;t<c.length;t++){for(var r=c[t],n=!0,o=1;o<r.length;o++){var u=r[o];0!==f[u]&&(n=!1)}n&&(c.splice(t--,1),e=l(l.s=r[0]))}return e}var r={},f={1:0},c=[];function l(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=i,l.c=r,l.d=function(e,t,r){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(t,e){if(1&e&&(t=l(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(l.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)l.d(r,n,function(e){return t[e]}.bind(null,n));return r},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="/";var t=this["webpackJsonp@ibm-watson/nlu-code-pattern"]=this["webpackJsonp@ibm-watson/nlu-code-pattern"]||[],n=t.push.bind(t);t.push=e,t=t.slice();for(var o=0;o<t.length;o++)e(t[o]);var s=n;p()}([])</script><script src="/static/js/2.dee84cbf.chunk.js"></script><script src="/static/js/main.b8162989.chunk.js"></script></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Natural Language Understanding is a collection of APIs that offer text analysis through natural language processing. This set of APIs can analyze text to help you understand its concepts, entities, keywords, sentiment, and more."/><link rel="apple-touch-icon" href="/public/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>Natural Language Understanding</title><link href="/static/css/main.e724d899.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(i){function e(e){for(var t,r,n=e[0],o=e[1],u=e[2],l=0,a=[];l<n.length;l++)r=n[l],Object.prototype.hasOwnProperty.call(f,r)&&f[r]&&a.push(f[r][0]),f[r]=0;for(t in o)Object.prototype.hasOwnProperty.call(o,t)&&(i[t]=o[t]);for(s&&s(e);a.length;)a.shift()();return c.push.apply(c,u||[]),p()}function p(){for(var e,t=0;t<c.length;t++){for(var r=c[t],n=!0,o=1;o<r.length;o++){var u=r[o];0!==f[u]&&(n=!1)}n&&(c.splice(t--,1),e=l(l.s=r[0]))}return e}var r={},f={1:0},c=[];function l(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=i,l.c=r,l.d=function(e,t,r){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(t,e){if(1&e&&(t=l(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(l.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)l.d(r,n,function(e){return t[e]}.bind(null,n));return r},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="/";var t=this["webpackJsonp@ibm-watson/nlu-code-pattern"]=this["webpackJsonp@ibm-watson/nlu-code-pattern"]||[],n=t.push.bind(t);t.push=e,t=t.slice();for(var o=0;o<t.length;o++)e(t[o]);var s=n;p()}([])</script><script src="/static/js/2.af2cf93b.chunk.js"></script><script src="/static/js/main.91df94a4.chunk.js"></script></body></html>
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "1b55e8ebb0a7821da66d2a2949302f7f",
"revision": "b223cd217e594e01866ee26562d76851",
"url": "/index.html"
},
{
"revision": "2a997cc9547d33e6e051",
"revision": "b2ff68ec2ef1886a0c65",
"url": "/static/css/main.e724d899.chunk.css"
},
{
"revision": "2d161aa7b30bf384ed33",
"url": "/static/js/2.dee84cbf.chunk.js"
"revision": "7d5a2b89a531d642d986",
"url": "/static/js/2.af2cf93b.chunk.js"
},
{
"revision": "5d03d7ab426f948560bd807db622e15b",
"url": "/static/js/2.dee84cbf.chunk.js.LICENSE"
"url": "/static/js/2.af2cf93b.chunk.js.LICENSE"
},
{
"revision": "2a997cc9547d33e6e051",
"url": "/static/js/main.b8162989.chunk.js"
"revision": "b2ff68ec2ef1886a0c65",
"url": "/static/js/main.91df94a4.chunk.js"
},
{
"revision": "943ff24e949884b1b647",
Expand Down
4 changes: 2 additions & 2 deletions build/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");

importScripts(
"/precache-manifest.f52aba2010725ab3fcb52e5f2832c562.js"
"/precache-manifest.7cb477413e590953c99723815f1fa5f6.js"
);

self.addEventListener('message', (event) => {
Expand All @@ -35,5 +35,5 @@ workbox.precaching.precacheAndRoute(self.__precacheManifest, {});

workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("/index.html"), {

blacklist: [/^\/_/,/\/[^/?]+\.[^/]+$/],
blacklist: [/^\/_/,/\/[^\/?]+\.[^\/]+$/],
});

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/static/js/main.91df94a4.chunk.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion build/static/js/main.b8162989.chunk.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@
],
"delay": 500
}
}
}
19 changes: 13 additions & 6 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,19 @@ import './styles/main.scss';
import Header from './components/Header';
import ServiceContainer from './components/ServiceContainer';
import { description, title } from './data/input.json';
import useScript from './hooks/useScript';

export const App = () => (
<div className="app-container">
<Header description={description} title={title} />
<ServiceContainer />
</div>
);
export const App = () => {
useScript(
'https://cdn.jsdelivr.net/gh/watson-developer-cloud/watson-developer-cloud.github.io@master/analytics.js',
);

return (
<div className="app-container">
<Header description={description} title={title} />
<ServiceContainer />
</div>
);
};

export default App;
18 changes: 18 additions & 0 deletions src/hooks/useScript.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { useEffect } from 'react';

const useScript = url => {
useEffect(() => {
const script = document.createElement('script');

script.src = url;
script.async = true;

document.body.appendChild(script);

return () => {
document.body.removeChild(script);
};
}, [url]);
};

export default useScript;