Skip to content

Commit

Permalink
interface fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Patent2net committed Sep 23, 2021
1 parent aa04888 commit 7a65b5f
Show file tree
Hide file tree
Showing 19 changed files with 47 additions and 27 deletions.
2 changes: 1 addition & 1 deletion Patent2Net/templates/ModeleContenuIndex.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<div class="caption dark animated wow fadeInDown clearfix">
<h1><a href="https://p2n-v3.readthedocs.io/en/latest/" title="Patent2Net documentation" target="_blank">A patent collector and analyser</a> to expand <br/> your horizon with various data processing tools<br/> for education and scientific purposes</h1>
<p>using EPO's database of over <a href="http://worldwide.espacenet.com/">
120 000 000 patents </a></p>
130 000 000 patents </a></p>

<hr>
</div>
Expand Down
2 changes: 1 addition & 1 deletion Patent2Net/templates/ModeleContenuIndex2.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ <h3 class="text-3xl">Patents</h3>
{% if InventorNetwork or ApplicantNetwork or CrossTechNetwork %}
<a class="bg-indigo-600 rounded p-4 shadow" href="./{{CollectName}}/graph-recipes-{{CollectName}}.html" target="_blank">
<p class="text-xl font-bold flex items-center">
<span class="mr-2">New Networks analyser tool</span>
<span class="mr-2">Networks analyser tool</span>
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14" />
</svg>
Expand Down
4 changes: 2 additions & 2 deletions Patent2Net/templates/ModeleIndex.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</header>
<div class="caption dark animated wow fadeInDown clearfix">
<h1><a href="https://p2n-v3.readthedocs.io/en/latest/" title="Patent2Net documentation" target="_blank">A crawler</a> to expand your horizon <br/>with various data processing tools<br/> for education and scientific purposes</h1>
<p>using EPO's database of over <a href="http://worldwide.espacenet.com/"> 120 000 000 patents </a></p>
<p>using EPO's database of over <a href="http://worldwide.espacenet.com/"> 130 000 000 patents </a></p>
</div>
<div class="shadow"></div>
</section><!-- End billboard -->
Expand All @@ -77,7 +77,7 @@ <h1><a href="https://p2n-v3.readthedocs.io/en/latest/" title="Patent2Net documen
var ladate=new Date()
document.write(ladate.getFullYear())

</script> . Open source licence "as is". See <a href="https://cecill.info/licences/Licence_CeCILL-B_V1-en.html" target="_blank">disclaimer</a></p>
</script>Open source licence "as is". See <a href="https://cecill.info/licences/Licence_CeCILL-B_V1-en.html" target="_blank">disclaimer</a></p>

</div>

Expand Down
2 changes: 2 additions & 0 deletions Patent2Net/templates/graph-recipes.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@
width:150px;
}
}

</style>

</head>
<body>

Expand Down
20 changes: 10 additions & 10 deletions web_app/build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"files": {
"main.css": "/app/static/css/main.8a75f1d1.chunk.css",
"main.js": "/app/static/js/main.85f1acfb.chunk.js",
"main.js.map": "/app/static/js/main.85f1acfb.chunk.js.map",
"main.css": "/app/static/css/main.82626f56.chunk.css",
"main.js": "/app/static/js/main.acced318.chunk.js",
"main.js.map": "/app/static/js/main.acced318.chunk.js.map",
"runtime-main.js": "/app/static/js/runtime-main.8dd6bcea.js",
"runtime-main.js.map": "/app/static/js/runtime-main.8dd6bcea.js.map",
"static/js/2.dc7f60bb.chunk.js": "/app/static/js/2.dc7f60bb.chunk.js",
"static/js/2.dc7f60bb.chunk.js.map": "/app/static/js/2.dc7f60bb.chunk.js.map",
"static/js/2.2b7cec47.chunk.js": "/app/static/js/2.2b7cec47.chunk.js",
"static/js/2.2b7cec47.chunk.js.map": "/app/static/js/2.2b7cec47.chunk.js.map",
"index.html": "/app/index.html",
"static/css/main.8a75f1d1.chunk.css.map": "/app/static/css/main.8a75f1d1.chunk.css.map",
"static/js/2.dc7f60bb.chunk.js.LICENSE.txt": "/app/static/js/2.dc7f60bb.chunk.js.LICENSE.txt"
"static/css/main.82626f56.chunk.css.map": "/app/static/css/main.82626f56.chunk.css.map",
"static/js/2.2b7cec47.chunk.js.LICENSE.txt": "/app/static/js/2.2b7cec47.chunk.js.LICENSE.txt"
},
"entrypoints": [
"static/js/runtime-main.8dd6bcea.js",
"static/js/2.dc7f60bb.chunk.js",
"static/css/main.8a75f1d1.chunk.css",
"static/js/main.85f1acfb.chunk.js"
"static/js/2.2b7cec47.chunk.js",
"static/css/main.82626f56.chunk.css",
"static/js/main.acced318.chunk.js"
]
}
2 changes: 1 addition & 1 deletion web_app/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="/app/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/app/logo192.png"/><link rel="manifest" href="/app/manifest.json"/><title>Request App</title><link href="https://unpkg.com/tailwindcss@^1.4.6/dist/tailwind.min.css" rel="stylesheet"><link href="/app/static/css/main.8a75f1d1.chunk.css" rel="stylesheet"></head><body class="w-max"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root" class="w-max min-h-screen bg-gray-100"></div><script>!function(e){function r(r){for(var n,p,a=r[0],l=r[1],f=r[2],c=0,s=[];c<a.length;c++)p=a[c],Object.prototype.hasOwnProperty.call(o,p)&&o[p]&&s.push(o[p][0]),o[p]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(i&&i(r);s.length;)s.shift()();return u.push.apply(u,f||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var l=t[a];0!==o[l]&&(n=!1)}n&&(u.splice(r--,1),e=p(p.s=t[0]))}return e}var n={},o={1:0},u=[];function p(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,p),t.l=!0,t.exports}p.m=e,p.c=n,p.d=function(e,r,t){p.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},p.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p.t=function(e,r){if(1&r&&(e=p(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(p.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)p.d(t,n,function(r){return e[r]}.bind(null,n));return t},p.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(r,"a",r),r},p.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},p.p="/app/";var a=this.webpackJsonprequest_app=this.webpackJsonprequest_app||[],l=a.push.bind(a);a.push=r,a=a.slice();for(var f=0;f<a.length;f++)r(a[f]);var i=l;t()}([])</script><script src="/app/static/js/2.dc7f60bb.chunk.js"></script><script src="/app/static/js/main.85f1acfb.chunk.js"></script></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/app/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/app/logo192.png"/><link rel="manifest" href="/app/manifest.json"/><title>Request App</title><link href="https://unpkg.com/tailwindcss@^1.4.6/dist/tailwind.min.css" rel="stylesheet"><link href="/app/static/css/main.82626f56.chunk.css" rel="stylesheet"></head><body class="w-max"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root" class="w-max min-h-screen bg-gray-100"></div><script>!function(e){function r(r){for(var n,p,a=r[0],l=r[1],f=r[2],c=0,s=[];c<a.length;c++)p=a[c],Object.prototype.hasOwnProperty.call(o,p)&&o[p]&&s.push(o[p][0]),o[p]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(i&&i(r);s.length;)s.shift()();return u.push.apply(u,f||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var l=t[a];0!==o[l]&&(n=!1)}n&&(u.splice(r--,1),e=p(p.s=t[0]))}return e}var n={},o={1:0},u=[];function p(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,p),t.l=!0,t.exports}p.m=e,p.c=n,p.d=function(e,r,t){p.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},p.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p.t=function(e,r){if(1&r&&(e=p(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(p.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)p.d(t,n,function(r){return e[r]}.bind(null,n));return t},p.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(r,"a",r),r},p.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},p.p="/app/";var a=this.webpackJsonprequest_app=this.webpackJsonprequest_app||[],l=a.push.bind(a);a.push=r,a=a.slice();for(var f=0;f<a.length;f++)r(a[f]);var i=l;t()}([])</script><script src="/app/static/js/2.2b7cec47.chunk.js"></script><script src="/app/static/js/main.acced318.chunk.js"></script></body></html>
3 changes: 2 additions & 1 deletion web_app/build/robots.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
Disallow: /

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions web_app/build/static/css/main.82626f56.chunk.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion web_app/build/static/css/main.8a75f1d1.chunk.css.map

This file was deleted.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions web_app/build/static/js/2.2b7cec47.chunk.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion web_app/build/static/js/2.dc7f60bb.chunk.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions web_app/build/static/js/main.85f1acfb.chunk.js

This file was deleted.

1 change: 0 additions & 1 deletion web_app/build/static/js/main.85f1acfb.chunk.js.map

This file was deleted.

2 changes: 2 additions & 0 deletions web_app/build/static/js/main.acced318.chunk.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions web_app/build/static/js/main.acced318.chunk.js.map

Large diffs are not rendered by default.

21 changes: 19 additions & 2 deletions web_app/src/pages/Request/Header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ const RequestHeader = ({ dir, data, showLoading }) => {
});
}, [dir])

const updateRequest = React.useCallback(() => {
fetch('http://localhost:5000/api/v1/requests/' + dir+'/update', {
method: 'POST'
})
.then(function(response) {
history.push('/app/requests')
})
}, [dir, history])

const deleteRequest = React.useCallback(() => {
fetch('http://localhost:5000/api/v1/requests/' + dir, {
Expand Down Expand Up @@ -55,6 +63,15 @@ const RequestHeader = ({ dir, data, showLoading }) => {
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />
</svg>
</button>

<button
className="focus:outline-none p-2 rounded-md font-semibold text-white bg-green-500 mr-2 flex justify-center items-center"
onClick={updateRequest}
>
<svg xmlns="http://www.w3.org/2000/svg" className="h-6 w-6 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />
</svg>
</button>
{
data.done && (
<>
Expand All @@ -81,7 +98,7 @@ const RequestHeader = ({ dir, data, showLoading }) => {
href={"/DATA/" + dir + ".html"}
className="focus:outline-none px-8 py-2 rounded-md font-semibold text-white bg-indigo-500"
>
Voir les données
See data
</a>
</>
)
Expand All @@ -95,7 +112,7 @@ const RequestHeader = ({ dir, data, showLoading }) => {
<circle className="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
<path className="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
</svg>
Chargements
Loading
</div>
)
}
Expand Down

0 comments on commit 7a65b5f

Please sign in to comment.