Commit 8575a8f7 authored by Bruno López Trigo's avatar Bruno López Trigo

Cambio producion

parent e9ef7570
{
"main.css": "static/css/main.ebc899b1.css",
"main.css.map": "static/css/main.ebc899b1.css.map",
"main.js": "static/js/main.61942447.js",
"main.js.map": "static/js/main.61942447.js.map",
"main.js": "static/js/main.d645faf8.js",
"main.js.map": "static/js/main.d645faf8.js.map",
"static/media/beer.png": "static/media/beer.70f695ba.png",
"static/media/default.jpeg": "static/media/default.ca7bbe95.jpeg",
"static/media/glass.jpg": "static/media/glass.bcc512b5.jpg",
......
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="manifest" href="/ExpliClas/manifest.json"><link rel="shortcut icon" href="/ExpliClas/favicon.png"><link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"><link href="https://fonts.googleapis.com/css?family=Yeseva+One" rel="stylesheet"><link href="https://fonts.googleapis.com/css?family=Ovo|Yeseva+One" rel="stylesheet"><title>ExpliClass</title><link href="/ExpliClas/static/css/main.ebc899b1.css" rel="stylesheet"></head><body><div id="root"></div><script type="text/javascript" src="/ExpliClas/static/js/main.61942447.js"></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="manifest" href="/ExpliClas/manifest.json"><link rel="shortcut icon" href="/ExpliClas/favicon.png"><link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"><link href="https://fonts.googleapis.com/css?family=Yeseva+One" rel="stylesheet"><link href="https://fonts.googleapis.com/css?family=Ovo|Yeseva+One" rel="stylesheet"><title>ExpliClass</title><link href="/ExpliClas/static/css/main.ebc899b1.css" rel="stylesheet"></head><body><div id="root"></div><script type="text/javascript" src="/ExpliClas/static/js/main.d645faf8.js"></script></body></html>
\ No newline at end of file
"use strict";var precacheConfig=[["/ExpliClas/index.html","c42b95947f41cf5ed32666f23b925a59"],["/ExpliClas/static/css/main.ebc899b1.css","7207e89546ec44cdf8c88f1d1dd3778c"],["/ExpliClas/static/js/main.61942447.js","4a8f13f9c0e402d200ce07076627b601"],["/ExpliClas/static/media/beer.70f695ba.png","70f695ba03218435fa67bbce30f116f0"],["/ExpliClas/static/media/default.ca7bbe95.jpeg","ca7bbe95968570738b2818810dac3b63"],["/ExpliClas/static/media/glass.bcc512b5.jpg","bcc512b56043dd730b1541ccbac287ba"],["/ExpliClas/static/media/iris.1e626fb8.jpg","1e626fb8678e34b9a69468cd9a2b17c0"],["/ExpliClas/static/media/leaf.41640b3b.jpg","41640b3bf944f3b32b0a413ff7447900"],["/ExpliClas/static/media/letters.74256f21.jpg","74256f217d7733b542ae1142f2f26d80"],["/ExpliClas/static/media/notebook.3cdb6b06.jpg","3cdb6b06481b312175a61b7a25b4ef30"],["/ExpliClas/static/media/wine.9b49c81e.jpg","9b49c81e6573307c25621382d8a9dcbf"]],cacheName="sw-precache-v3-sw-precache-webpack-plugin-"+(self.registration?self.registration.scope:""),ignoreUrlParametersMatching=[/^utm_/],addDirectoryIndex=function(e,t){var n=new URL(e);return"/"===n.pathname.slice(-1)&&(n.pathname+=t),n.toString()},cleanResponse=function(t){return t.redirected?("body"in t?Promise.resolve(t.body):t.blob()).then(function(e){return new Response(e,{headers:t.headers,status:t.status,statusText:t.statusText})}):Promise.resolve(t)},createCacheKey=function(e,t,n,a){var r=new URL(e);return a&&r.pathname.match(a)||(r.search+=(r.search?"&":"")+encodeURIComponent(t)+"="+encodeURIComponent(n)),r.toString()},isPathWhitelisted=function(e,t){if(0===e.length)return!0;var n=new URL(t).pathname;return e.some(function(e){return n.match(e)})},stripIgnoredUrlParameters=function(e,n){var t=new URL(e);return t.hash="",t.search=t.search.slice(1).split("&").map(function(e){return e.split("=")}).filter(function(t){return n.every(function(e){return!e.test(t[0])})}).map(function(e){return e.join("=")}).join("&"),t.toString()},hashParamName="_sw-precache",urlsToCacheKeys=new Map(precacheConfig.map(function(e){var t=e[0],n=e[1],a=new URL(t,self.location),r=createCacheKey(a,hashParamName,n,/\.\w{8}\./);return[a.toString(),r]}));function setOfCachedUrls(e){return e.keys().then(function(e){return e.map(function(e){return e.url})}).then(function(e){return new Set(e)})}self.addEventListener("install",function(e){e.waitUntil(caches.open(cacheName).then(function(a){return setOfCachedUrls(a).then(function(n){return Promise.all(Array.from(urlsToCacheKeys.values()).map(function(t){if(!n.has(t)){var e=new Request(t,{credentials:"same-origin"});return fetch(e).then(function(e){if(!e.ok)throw new Error("Request for "+t+" returned a response with status "+e.status);return cleanResponse(e).then(function(e){return a.put(t,e)})})}}))})}).then(function(){return self.skipWaiting()}))}),self.addEventListener("activate",function(e){var n=new Set(urlsToCacheKeys.values());e.waitUntil(caches.open(cacheName).then(function(t){return t.keys().then(function(e){return Promise.all(e.map(function(e){if(!n.has(e.url))return t.delete(e)}))})}).then(function(){return self.clients.claim()}))}),self.addEventListener("fetch",function(t){if("GET"===t.request.method){var e,n=stripIgnoredUrlParameters(t.request.url,ignoreUrlParametersMatching),a="index.html";(e=urlsToCacheKeys.has(n))||(n=addDirectoryIndex(n,a),e=urlsToCacheKeys.has(n));var r="/ExpliClas/index.html";!e&&"navigate"===t.request.mode&&isPathWhitelisted(["^(?!\\/__).*"],t.request.url)&&(n=new URL(r,self.location).toString(),e=urlsToCacheKeys.has(n)),e&&t.respondWith(caches.open(cacheName).then(function(e){return e.match(urlsToCacheKeys.get(n)).then(function(e){if(e)return e;throw Error("The cached response that was expected is missing.")})}).catch(function(e){return console.warn('Couldn\'t serve response for "%s" from cache: %O',t.request.url,e),fetch(t.request)}))}});
\ No newline at end of file
"use strict";var precacheConfig=[["/ExpliClas/index.html","5760ced2ee655e24566a98c3fa81f797"],["/ExpliClas/static/css/main.ebc899b1.css","7207e89546ec44cdf8c88f1d1dd3778c"],["/ExpliClas/static/js/main.d645faf8.js","742ed4d5816481c34708204c066d74ab"],["/ExpliClas/static/media/beer.70f695ba.png","70f695ba03218435fa67bbce30f116f0"],["/ExpliClas/static/media/default.ca7bbe95.jpeg","ca7bbe95968570738b2818810dac3b63"],["/ExpliClas/static/media/glass.bcc512b5.jpg","bcc512b56043dd730b1541ccbac287ba"],["/ExpliClas/static/media/iris.1e626fb8.jpg","1e626fb8678e34b9a69468cd9a2b17c0"],["/ExpliClas/static/media/leaf.41640b3b.jpg","41640b3bf944f3b32b0a413ff7447900"],["/ExpliClas/static/media/letters.74256f21.jpg","74256f217d7733b542ae1142f2f26d80"],["/ExpliClas/static/media/notebook.3cdb6b06.jpg","3cdb6b06481b312175a61b7a25b4ef30"],["/ExpliClas/static/media/wine.9b49c81e.jpg","9b49c81e6573307c25621382d8a9dcbf"]],cacheName="sw-precache-v3-sw-precache-webpack-plugin-"+(self.registration?self.registration.scope:""),ignoreUrlParametersMatching=[/^utm_/],addDirectoryIndex=function(e,t){var n=new URL(e);return"/"===n.pathname.slice(-1)&&(n.pathname+=t),n.toString()},cleanResponse=function(t){return t.redirected?("body"in t?Promise.resolve(t.body):t.blob()).then(function(e){return new Response(e,{headers:t.headers,status:t.status,statusText:t.statusText})}):Promise.resolve(t)},createCacheKey=function(e,t,n,a){var r=new URL(e);return a&&r.pathname.match(a)||(r.search+=(r.search?"&":"")+encodeURIComponent(t)+"="+encodeURIComponent(n)),r.toString()},isPathWhitelisted=function(e,t){if(0===e.length)return!0;var n=new URL(t).pathname;return e.some(function(e){return n.match(e)})},stripIgnoredUrlParameters=function(e,n){var t=new URL(e);return t.hash="",t.search=t.search.slice(1).split("&").map(function(e){return e.split("=")}).filter(function(t){return n.every(function(e){return!e.test(t[0])})}).map(function(e){return e.join("=")}).join("&"),t.toString()},hashParamName="_sw-precache",urlsToCacheKeys=new Map(precacheConfig.map(function(e){var t=e[0],n=e[1],a=new URL(t,self.location),r=createCacheKey(a,hashParamName,n,/\.\w{8}\./);return[a.toString(),r]}));function setOfCachedUrls(e){return e.keys().then(function(e){return e.map(function(e){return e.url})}).then(function(e){return new Set(e)})}self.addEventListener("install",function(e){e.waitUntil(caches.open(cacheName).then(function(a){return setOfCachedUrls(a).then(function(n){return Promise.all(Array.from(urlsToCacheKeys.values()).map(function(t){if(!n.has(t)){var e=new Request(t,{credentials:"same-origin"});return fetch(e).then(function(e){if(!e.ok)throw new Error("Request for "+t+" returned a response with status "+e.status);return cleanResponse(e).then(function(e){return a.put(t,e)})})}}))})}).then(function(){return self.skipWaiting()}))}),self.addEventListener("activate",function(e){var n=new Set(urlsToCacheKeys.values());e.waitUntil(caches.open(cacheName).then(function(t){return t.keys().then(function(e){return Promise.all(e.map(function(e){if(!n.has(e.url))return t.delete(e)}))})}).then(function(){return self.clients.claim()}))}),self.addEventListener("fetch",function(t){if("GET"===t.request.method){var e,n=stripIgnoredUrlParameters(t.request.url,ignoreUrlParametersMatching),a="index.html";(e=urlsToCacheKeys.has(n))||(n=addDirectoryIndex(n,a),e=urlsToCacheKeys.has(n));var r="/ExpliClas/index.html";!e&&"navigate"===t.request.mode&&isPathWhitelisted(["^(?!\\/__).*"],t.request.url)&&(n=new URL(r,self.location).toString(),e=urlsToCacheKeys.has(n)),e&&t.respondWith(caches.open(cacheName).then(function(e){return e.match(urlsToCacheKeys.get(n)).then(function(e){if(e)return e;throw Error("The cached response that was expected is missing.")})}).catch(function(e){return console.warn('Couldn\'t serve response for "%s" from cache: %O',t.request.url,e),fetch(t.request)}))}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -118,55 +118,55 @@ class App extends Component {
var breadcrumb = <Progress ownlog={this.state.ownlog} step={this.state.step} />;
}
var routeHome = <Route path="/" exact strict render = {() => (
var routeHome = <Route path="/ExpliClas" exact strict render = {() => (
localStorage.getItem('token') ? (
<Redirect to="/datasets" />
<Redirect to="/ExpliClas/datasets" />
) : (
<Home setLogState = {this.setLogState} />
)
)} />
var routeDatasets = <Route path="/datasets" render = {() => (
var routeDatasets = <Route path="/ExpliClas/datasets" render = {() => (
localStorage.getItem('token') ? (
<Datasets clearState={this.clearState} setOwnLog={this.setOwnLog} setStep={this.setStep} setProblem={this.setProblem} />
) : (
<Redirect to="/" />
<Redirect to="/ExpliClas" />
)
)} />
var routeBuild = <Route path="/buildlog" render = {() => (
var routeBuild = <Route path="/ExpliClas/buildlog" render = {() => (
localStorage.getItem('token') && localStorage.getItem('step') !== "classifier"
&& localStorage.getItem('step') !== "explanation" && localStorage.getItem('ownlog') ? (
<BuildLog setStep={this.setStep} setProblem={this.setProblemAlgorithm} />
) : (
<Redirect to={localStorage.getItem('step') !== null ? localStorage.getItem('step'):"/"} />
<Redirect to={localStorage.getItem('step') !== null ? "/ExpliClas/" + localStorage.getItem('step'):"/ExpliClas"} />
)
)} />
var routeLogs = <Route path="/logs" render = {() => (
var routeLogs = <Route path="/ExpliClas/logs" render = {() => (
localStorage.getItem('token') && localStorage.getItem('step') !== "buildlog"
&& localStorage.getItem('problem') ? (
<Logs setOwnLog={this.setOwnLog} setStep={this.setStep} setAlgorithm={this.setAlgorithm} problem={this.state.problem} />
) : (
<Redirect to={localStorage.getItem('step') !== null ? localStorage.getItem('step'):"/"} />
<Redirect to={localStorage.getItem('step') !== null ? "/ExpliClas/" + localStorage.getItem('step'):"/ExpliClas"} />
)
)} />
var routeClassifier = <Route path="/classifier" render = {() => (
var routeClassifier = <Route path="/ExpliClas/classifier" render = {() => (
localStorage.getItem('token') && localStorage.getItem('step') !== "datasets"
&& localStorage.getItem('problem') && localStorage.getItem('algorithm') ? (
<Classifier setStep={this.setStep} problem={this.state.problem} algorithm={this.state.algorithm} />
) : (
<Redirect to={localStorage.getItem('step') !== null ? localStorage.getItem('step'):"/"} />
<Redirect to={localStorage.getItem('step') !== null ? "/ExpliClas/" + localStorage.getItem('step'):"/ExpliClas"} />
)
)} />
var routeExplanation = <Route path="/explanation" render = {() => (
var routeExplanation = <Route path="/ExpliClas/explanation" render = {() => (
localStorage.getItem('token') && localStorage.getItem('step') !== "datasets"
&& localStorage.getItem('step') !== "logs" && localStorage.getItem('step') !== "buildlog" ? (
<Explanation setStep={this.setStep} problem={this.state.problem} algorithm={this.state.algorithm} />
) : (
<Redirect to={localStorage.getItem('step') !== null ? localStorage.getItem('step'):"/"} />
<Redirect to={localStorage.getItem('step') !== null ? "/ExpliClas/" + localStorage.getItem('step'):"/ExpliClas"} />
)
)} />
......
......@@ -12,7 +12,7 @@ class AddCard extends Component {
addCard(uploadedFile){
this.props.setOwnLog(true);
this.props.history.push({
pathname: '/buildlog'
pathname: '/ExpliClas/buildlog'
});
}
......
......@@ -143,7 +143,7 @@ class Classifier extends Component {
selectLog(){
this.props.history.push({
pathname: '/explanation'
pathname: '/ExpliClas/explanation'
});
}
......
......@@ -24,7 +24,7 @@ class DatasetCard extends Component {
this.props.setOwnLog(false);
this.props.setProblem(this.state.name);
this.props.history.push({
pathname: '/logs'
pathname: '/ExpliClas/logs'
});
}
......
......@@ -19,7 +19,7 @@ class Footer extends Component {
})
.then((response) => {
localStorage.clear();
window.location.assign("/");
window.location.assign("/ExpliClas");
})
}
......
......@@ -332,7 +332,7 @@ class FormJ48 extends Component {
});
if( data !== null ){
this.props.history.push({
pathname: '/classifier',
pathname: '/ExpliClas/classifier',
state: {
modified: data
}
......
......@@ -279,7 +279,7 @@ class FormREP extends Component {
});
if( data !== null ){
this.props.history.push({
pathname: '/classifier',
pathname: '/ExpliClas/classifier',
state: {
modified: data
}
......
......@@ -277,7 +277,7 @@ class FormRT extends Component {
});
if( data !== null ){
this.props.history.push({
pathname: '/classifier',
pathname: '/ExpliClas/classifier',
state: {
modified: data
}
......
......@@ -239,14 +239,14 @@ class Logs extends Component {
if(this.state.log !=null && this.state.log !== ""){
this.props.setAlgorithm(algorithm);
this.props.history.push({
pathname: '/classifier'
pathname: '/ExpliClas/classifier'
});
}
else{
this.props.setOwnLog(true);
this.props.setAlgorithm(algorithm);
this.props.history.push({
pathname: '/buildlog',
pathname: '/ExpliClas/buildlog',
state: {
algorithm: algorithm,
name: this.state.problem
......
......@@ -57,14 +57,14 @@ class Progress extends Component {
<div className="row">
<div className="line"></div>
<div className="col-xs">
<Link to='/datasets' type="button" className={"btn " + btndatasets + " btn-circle"} data-toggle="tab">
<Link to='/ExpliClas/datasets' type="button" className={"btn " + btndatasets + " btn-circle"} data-toggle="tab">
<i className="fa fa-database fa-2x big"></i>
<i className="fa fa-database small"></i>
</Link>
<p>Select dataset</p>
</div>
<div className="col-xs">
<Link to='/logs' onClick={e => disable_log ? e.preventDefault() : true}
<Link to='/ExpliClas/logs' onClick={e => disable_log ? e.preventDefault() : true}
type="button" className={"btn " + btnlog + " btn-circle"} data-toggle="tab">
<i className="fa fa-file-text-o fa-2x big"></i>
<i className="fa fa-file-text-o small"></i>
......@@ -72,7 +72,7 @@ class Progress extends Component {
<p>Select log</p>
</div>
<div className="col-xs">
<Link to='/buildlog' onClick={e => disable_build ? e.preventDefault() : true}
<Link to='/ExpliClas/buildlog' onClick={e => disable_build ? e.preventDefault() : true}
type="button" className={"btn " + btnbuild + " btn-circle"} data-toggle="tab" href="#menu3">
<i className="fa fa-wrench fa-2x big"></i>
<i className="fa fa-wrench small"></i>
......@@ -80,7 +80,7 @@ class Progress extends Component {
<p>Build log</p>
</div>
<div className="col-xs">
<Link to='/classifier' onClick={e => disable_classifier ? e.preventDefault() : true}
<Link to='/ExpliClas/classifier' onClick={e => disable_classifier ? e.preventDefault() : true}
type="button" className={"btn " + btnclassifier + " btn-circle"} data-toggle="tab" href="#menu4">
<i className="fa fa-code-fork fa-2x big"></i>
<i className="fa fa-code-fork small"></i>
......@@ -88,7 +88,7 @@ class Progress extends Component {
<p>Classifier info</p>
</div>
<div className="col-xs">
<Link to='/explanation' onClick={e => disable_explanation ? e.preventDefault() : true}
<Link to='/ExpliClas/explanation' onClick={e => disable_explanation ? e.preventDefault() : true}
type="button" className={"btn " + btnexplanation + " btn-circle"} data-toggle="tab" href="#menu5">
<i className="fa fa-font fa-2x big"></i>
<i className="fa fa-font small"></i>
......
export const API_ROOT = 'http://172.16.244.175:8080/expliclas/api';
export const API_DOC = 'http://172.16.244.175:8080/expliclas/';
export const API_ROOT = 'http://demos.citius.usc.es/ExpliClasAPI/api';
export const API_DOC = 'http://demos.citius.usc.es/ExpliClasAPI/';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment