Skip to content

Commit

Permalink
Merge pull request #1 from watson-developer-cloud/add-analytics
Browse files Browse the repository at this point in the history
feat: add support for analytics
  • Loading branch information
mamoonraja authored Jan 21, 2020
2 parents f139f51 + 562efc3 commit a85bd0b
Show file tree
Hide file tree
Showing 15 changed files with 54 additions and 62 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</p>
</p>

**Demo:** https://visual-recognition-code-pattern.mybluemix.net/
**Demo:** https://visual-recognition-code-pattern.ng.bluemix/

### Flow

Expand All @@ -20,7 +20,7 @@

1. User sends messages to the application (running locally, in the IBM Cloud).
1. The application sends the user message to IBM Watson Visual Recognition service.
1. Watson Visual Recognition processes the text or url and extract features such us keywords, concepts, categories. The service can be provisioned on IBM Cloud.
1. Watson Visual Recognition uses deep learning algorithms to analyze images for scenes, objects, text, and other subjects. The service can be provisioned on IBM Cloud.

## Prerequisites

Expand Down
8 changes: 4 additions & 4 deletions build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"files": {
"main.css": "/static/css/main.b357d245.chunk.css",
"main.js": "/static/js/main.d735c621.chunk.js",
"main.js.map": "/static/js/main.d735c621.chunk.js.map",
"main.js": "/static/js/main.61f417ab.chunk.js",
"main.js.map": "/static/js/main.61f417ab.chunk.js.map",
"runtime-main.js": "/static/js/runtime-main.52a78ae3.js",
"runtime-main.js.map": "/static/js/runtime-main.52a78ae3.js.map",
"static/js/2.f3856bd2.chunk.js": "/static/js/2.f3856bd2.chunk.js",
"static/js/2.f3856bd2.chunk.js.map": "/static/js/2.f3856bd2.chunk.js.map",
"index.html": "/index.html",
"precache-manifest.3ba30e27b344a17b673f921ef3ae68c3.js": "/precache-manifest.3ba30e27b344a17b673f921ef3ae68c3.js",
"precache-manifest.5d140d7f91c9496b466e4d7fe645d3d1.js": "/precache-manifest.5d140d7f91c9496b466e4d7fe645d3d1.js",
"service-worker.js": "/service-worker.js",
"static/css/main.b357d245.chunk.css.map": "/static/css/main.b357d245.chunk.css.map",
"static/js/2.f3856bd2.chunk.js.LICENSE": "/static/js/2.f3856bd2.chunk.js.LICENSE"
Expand All @@ -17,6 +17,6 @@
"static/js/runtime-main.52a78ae3.js",
"static/js/2.f3856bd2.chunk.js",
"static/css/main.b357d245.chunk.css",
"static/js/main.d735c621.chunk.js"
"static/js/main.61f417ab.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="The Visual Recognition service uses deep learning algorithms to analyze images for scenes, objects, text, and other subjects."/><link rel="apple-touch-icon" href="/public/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>Visual Recognition</title><link href="/static/css/main.b357d245.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(l){function e(e){for(var t,r,n=e[0],o=e[1],u=e[2],i=0,a=[];i<n.length;i++)r=n[i],Object.prototype.hasOwnProperty.call(p,r)&&p[r]&&a.push(p[r][0]),p[r]=0;for(t in o)Object.prototype.hasOwnProperty.call(o,t)&&(l[t]=o[t]);for(s&&s(e);a.length;)a.shift()();return f.push.apply(f,u||[]),c()}function c(){for(var e,t=0;t<f.length;t++){for(var r=f[t],n=!0,o=1;o<r.length;o++){var u=r[o];0!==p[u]&&(n=!1)}n&&(f.splice(t--,1),e=i(i.s=r[0]))}return e}var r={},p={1:0},f=[];function i(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return l[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.m=l,i.c=r,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)i.d(r,n,function(e){return t[e]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/";var t=this["webpackJsonp@ibm-watson/visual-recognition-code-pattern"]=this["webpackJsonp@ibm-watson/visual-recognition-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;c()}([])</script><script src="/static/js/2.f3856bd2.chunk.js"></script><script src="/static/js/main.d735c621.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="The Visual Recognition service uses deep learning algorithms to analyze images for scenes, objects, text, and other subjects."/><link rel="apple-touch-icon" href="/public/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>Visual Recognition</title><link href="/static/css/main.b357d245.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(l){function e(e){for(var t,r,n=e[0],o=e[1],u=e[2],i=0,a=[];i<n.length;i++)r=n[i],Object.prototype.hasOwnProperty.call(p,r)&&p[r]&&a.push(p[r][0]),p[r]=0;for(t in o)Object.prototype.hasOwnProperty.call(o,t)&&(l[t]=o[t]);for(s&&s(e);a.length;)a.shift()();return f.push.apply(f,u||[]),c()}function c(){for(var e,t=0;t<f.length;t++){for(var r=f[t],n=!0,o=1;o<r.length;o++){var u=r[o];0!==p[u]&&(n=!1)}n&&(f.splice(t--,1),e=i(i.s=r[0]))}return e}var r={},p={1:0},f=[];function i(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return l[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.m=l,i.c=r,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)i.d(r,n,function(e){return t[e]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/";var t=this["webpackJsonp@ibm-watson/visual-recognition-code-pattern"]=this["webpackJsonp@ibm-watson/visual-recognition-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;c()}([])</script><script src="/static/js/2.f3856bd2.chunk.js"></script><script src="/static/js/main.61f417ab.chunk.js"></script></body></html>
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "fc5053c5b172f036ad1236418ef11709",
"revision": "3f37104934cf407ed9018a902566f671",
"url": "/index.html"
},
{
"revision": "5fab1104440967891040",
"revision": "f339e4ee0d05df38b0bb",
"url": "/static/css/main.b357d245.chunk.css"
},
{
Expand All @@ -16,8 +16,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/static/js/2.f3856bd2.chunk.js.LICENSE"
},
{
"revision": "5fab1104440967891040",
"url": "/static/js/main.d735c621.chunk.js"
"revision": "f339e4ee0d05df38b0bb",
"url": "/static/js/main.61f417ab.chunk.js"
},
{
"revision": "d996e3999a440231bd2a",
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.3ba30e27b344a17b673f921ef3ae68c3.js"
"/precache-manifest.5d140d7f91c9496b466e4d7fe645d3d1.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: [/^\/_/,/\/[^\/?]+\.[^\/]+$/],
});
Loading

0 comments on commit a85bd0b

Please sign in to comment.