Commit d74bed49 authored by Bruno López Trigo's avatar Bruno López Trigo

Modificado o código do demostrador, mellora de rendemento selección de instancias

parent c3c065b9
......@@ -41,7 +41,7 @@
// Build a system
const ui = SwaggerUIBundle({
url: "http://172.16.244.175:8080/expliclas/swagger.json",
url: "http://172.16.244.175:8080/expliclas/expliclas/swagger.json",
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
......
......@@ -41,7 +41,7 @@
// Build a system
const ui = SwaggerUIBundle({
url: "http://172.16.244.175:8080/expliclas/swagger.json",
url: "http://172.16.244.175:8080/expliclas/expliclas/swagger.json",
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
......
#Generated by Maven
#Wed Jun 06 20:12:19 CEST 2018
#Thu Jun 07 13:02:39 CEST 2018
version=1.0
groupId=brunolopez
artifactId=expliclas-api
{
"main.css": "static/css/main.6ecb0d03.css",
"main.css.map": "static/css/main.6ecb0d03.css.map",
"main.js": "static/js/main.abfd176b.js",
"main.js.map": "static/js/main.abfd176b.js.map",
"main.css": "static/css/main.7c354912.css",
"main.css.map": "static/css/main.7c354912.css.map",
"main.js": "static/js/main.5a5e9f72.js",
"main.js.map": "static/js/main.5a5e9f72.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="/manifest.json"><link rel="shortcut icon" href="/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="/static/css/main.6ecb0d03.css" rel="stylesheet"></head><body><div id="root"></div><script type="text/javascript" src="/static/js/main.abfd176b.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="/manifest.json"><link rel="shortcut icon" href="/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="/static/css/main.7c354912.css" rel="stylesheet"></head><body><div id="root"></div><script type="text/javascript" src="/static/js/main.5a5e9f72.js"></script></body></html>
\ No newline at end of file
"use strict";var precacheConfig=[["/index.html","1ad8cd7a7df641f5e8c2bcaa8369b94d"],["/static/css/main.6ecb0d03.css","8820267d8bf7951ecc7162a279140a72"],["/static/js/main.abfd176b.js","dc990b8a53fd8370fdd12cf98ec36842"],["/static/media/beer.70f695ba.png","70f695ba03218435fa67bbce30f116f0"],["/static/media/default.ca7bbe95.jpeg","ca7bbe95968570738b2818810dac3b63"],["/static/media/glass.bcc512b5.jpg","bcc512b56043dd730b1541ccbac287ba"],["/static/media/iris.1e626fb8.jpg","1e626fb8678e34b9a69468cd9a2b17c0"],["/static/media/leaf.41640b3b.jpg","41640b3bf944f3b32b0a413ff7447900"],["/static/media/letters.74256f21.jpg","74256f217d7733b542ae1142f2f26d80"],["/static/media/notebook.3cdb6b06.jpg","3cdb6b06481b312175a61b7a25b4ef30"],["/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,r){var a=new URL(e);return r&&a.pathname.match(r)||(a.search+=(a.search?"&":"")+encodeURIComponent(t)+"="+encodeURIComponent(n)),a.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],r=new URL(t,self.location),a=createCacheKey(r,hashParamName,n,/\.\w{8}\./);return[r.toString(),a]}));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(r){return setOfCachedUrls(r).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 r.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),r="index.html";(e=urlsToCacheKeys.has(n))||(n=addDirectoryIndex(n,r),e=urlsToCacheKeys.has(n));var a="/index.html";!e&&"navigate"===t.request.mode&&isPathWhitelisted(["^(?!\\/__).*"],t.request.url)&&(n=new URL(a,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=[["/index.html","4b4ceb05140db32db8005597ad2ca618"],["/static/css/main.7c354912.css","ab292266f3e2d6ee2058428b2afb0fdb"],["/static/js/main.5a5e9f72.js","a66fa93e6e5e86d1af9441f27ab78ba8"],["/static/media/beer.70f695ba.png","70f695ba03218435fa67bbce30f116f0"],["/static/media/default.ca7bbe95.jpeg","ca7bbe95968570738b2818810dac3b63"],["/static/media/glass.bcc512b5.jpg","bcc512b56043dd730b1541ccbac287ba"],["/static/media/iris.1e626fb8.jpg","1e626fb8678e34b9a69468cd9a2b17c0"],["/static/media/leaf.41640b3b.jpg","41640b3bf944f3b32b0a413ff7447900"],["/static/media/letters.74256f21.jpg","74256f217d7733b542ae1142f2f26d80"],["/static/media/notebook.3cdb6b06.jpg","3cdb6b06481b312175a61b7a25b4ef30"],["/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="/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
body,html{margin:0;padding:0;height:100%;font-family:Yeseva One,cursive;font-family:Ovo,serif;font-size:20px}.bg1{background-image:url(/static/media/letters.74256f21.jpg);background-position:-100px -200px;height:20vh}.bg1,.bg2{width:100%;-webkit-filter:blur(2px);-moz-filter:blur(2px);-o-filter:blur(2px);-ms-filter:blur(2px);filter:blur(2px)}.bg2{background-image:url(/static/media/letters.74256f21.jpg);background-position:-100px -400px;height:15vh}@media(max-width:400px){.gap{padding-top:40%;padding-bottom:40%}}@media(min-width:400px) and (max-width:600px){.gap{padding-top:30%;padding-bottom:30%}}@media(min-width:600px) and (max-width:1000px){.gap{padding-top:20%;padding-bottom:20%}}@media(min-width:1000px){.gap{padding-top:12%;padding-bottom:12%}}.separator{margin-top:20px;padding-bottom:50px}@media(max-width:1200px){.title{font-family:Yeseva One,cursive;font-size:10vh;margin-bottom:5vh}.subtitle{font-size:3vh;width:70vw;margin:auto}.start{margin-top:5%;padding:2%;background:#2e7d32;font-size:3vh;color:#fff;border-bottom:thick solid rgba(0,0,0,.2);border-radius:5px 5px 0 0;cursor:pointer}}@media(min-width:1200px){.title{font-family:Yeseva One,cursive;font-size:20vh;margin-bottom:5vh}.subtitle{font-size:5vh;margin:auto;padding-left:5%;padding-right:5%}.start{margin-top:10px;padding:10px;background:#2e7d32;font-size:5vh;color:#fff;border-bottom:thick solid rgba(0,0,0,.2);border-radius:5px 5px 0 0;cursor:pointer}}.titlescreen{margin:auto;position:relative;height:65vh;-webkit-box-shadow:0 1px 4px rgba(0,0,0,.3),0 0 40px rgba(0,0,0,.1) inset;box-shadow:0 1px 4px rgba(0,0,0,.3),inset 0 0 40px rgba(0,0,0,.1)}.titlescreen:after,.titlescreen:before{content:"";position:absolute;z-index:-1;-webkit-box-shadow:0 0 20px rgba(0,0,0,.8);box-shadow:0 0 20px rgba(0,0,0,.8);top:0;bottom:0;left:10px;right:10px;border-radius:100px/10px}.titlescreen:after{right:10px;left:auto;-webkit-transform:skew(8deg) rotate(3deg);-ms-transform:skew(8deg) rotate(3deg);transform:skew(8deg) rotate(3deg)}.tarjeta{width:70%;margin-top:50px;border-top-right-radius:25px;border-bottom-left-radius:25px;min-width:200px;max-width:200px}.tarjeta h4{text-align:left;font-weight:700;color:#fff;background-color:rgba(0,0,0,.7);width:100%;padding:2px;padding-left:10px;border-top-right-radius:15px}.tarjeta h4 i{float:right;color:#e53935;cursor:pointer;margin-left:-10%;margin-right:5%}.btn-dark-alpha{font-size:25px;width:120px;background-color:rgba(0,0,0,.7);margin-top:20px;color:#fff}.center-block{display:block;margin-right:auto;margin-left:auto}#beer-style{background-image:url(/static/media/beer.70f695ba.png);background-size:200% 300%;background-position:-40px -70px}#beer-style,#glass-style{padding-top:0;padding-left:0;padding-right:0;border-width:5px;border-top-right-radius:25px;border-bottom-left-radius:25px;border-style:solid}#glass-style{background-image:url(/static/media/glass.bcc512b5.jpg);background-size:250% 250%}#flavia-style{background-image:url(/static/media/leaf.41640b3b.jpg);background-size:100% 100%}#flavia-style,#wine-style{padding-top:0;padding-left:0;padding-right:0;border-width:5px;border-top-right-radius:25px;border-bottom-left-radius:25px;border-style:solid}#wine-style{background-image:url(/static/media/wine.9b49c81e.jpg);background-size:300% 320%;background-position:-190px -160px}#iris-style{background-image:url(/static/media/iris.1e626fb8.jpg);background-size:500% 500%;background-position:-360px -260px;padding-top:0;padding-left:0;padding-right:0}#default-style,#iris-style{border-width:5px;border-top-right-radius:25px;border-bottom-left-radius:25px;border-style:solid}#default-style{background-image:url(/static/media/default.ca7bbe95.jpeg);background-size:100% 100%}.addCard{border-top-right-radius:25px;border-bottom-left-radius:25px;border:5px solid #000;min-width:200px;height:160px}.card-body{padding:0;padding-bottom:20px}.myalert{position:fixed;top:50%;left:50%;width:60%;z-index:9999;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);color:#000;text-align:right}.error{background-color:rgba(244,67,54,.9);border-color:#f44336}.error,.warning{border-bottom:thick solid #fff}.warning{background-color:rgba(255,204,0,.9);border-color:#fc0}.myalert h2{font-size:4vh;text-align:center;font-weight:700}.message{color:#000;padding:10%;text-align:center}.btn-alert{margin-right:10px;background-color:transparent;border-style:none;color:#000;cursor:pointer;font-size:30px}#progress-bar{padding-top:20px;position:fixed;top:0;z-index:2;background-color:hsla(0,0%,100%,.7);color:#fff;border-bottom:thick solid rgba(0,0,0,.2);border-radius:5px 5px 0 0}.col-xs{width:20%;text-align:center}@media (max-width:600px){.row>.col-xs>p{font-size:14px}}@media (min-width:600px){.row>.col-xs>p{font-size:20px}}@media (max-width:350px){.line{height:3px;width:100%;margin-top:7%;z-index:-1;position:absolute;background-color:#000}}@media (min-width:350px) and (max-width:400px){.line{height:3px;width:100%;margin-top:6%;z-index:-1;position:absolute;background-color:#000}}@media (min-width:400px) and (max-width:500px){.line{height:3px;width:100%;margin-top:5%;z-index:-1;position:absolute;background-color:#000}}@media (min-width:500px) and (max-width:600px){.line{height:3px;width:100%;margin-top:4%;z-index:-1;position:absolute;background-color:#000}}@media (min-width:600px) and (max-width:800px){.line{height:3px;width:100%;margin-top:3%;z-index:-1;position:absolute;background-color:#000}}@media (min-width:800px) and (max-width:900px){.line{height:3px;width:100%;margin-top:2.5%;z-index:-1;position:absolute;background-color:#000}}@media (min-width:900px) and (max-width:1300px){.line{height:3px;width:100%;margin-top:2%;z-index:-1;position:absolute;background-color:#000}}@media (max-width:1300px){.col-xs .btn{width:50px;height:50px}.big{display:none}}@media (min-width:1300px){.col-xs .btn{width:5vw;height:5vw;padding-top:5%}.small{display:none}.line{height:3px;width:100%;margin-top:2.5%;z-index:-1;position:absolute;background-color:#000}}.line{opacity:1;background-color:#000;height:5px}.btn-info:hover{background-color:#fff;border-color:#000;color:#000}.btn-circle{border:3px dashed #000;background-color:#cfd8dc;color:#000}.btn-info{background-color:#000;border-color:#000;border-style:solid;color:#fff}.col-xs p{color:#000}.help{padding-left:15px;padding-bottom:3px;font-style:italic;font-size:18px;display:none}.active{display:block}.loader{margin:auto;border:16px solid #bdbdbd;border-top:16px solid #3f51b5;border-radius:50%;width:50px;height:50px;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.selected-item{margin:20px 0;text-align:center}.selected-item p{font-size:18px}.selected-item p span{font-weight:700}.dropdown{margin:20px auto;position:relative;-webkit-perspective:800px;perspective:800px}.dropdown.active .selLabel:after{content:"\25B2"}.dropdown.active .dropdown-list li:first-child{-webkit-transform:translateY(100%);-ms-transform:translateY(100%);transform:translateY(100%)}.dropdown.active .dropdown-list li:nth-child(2){-webkit-transform:translateY(200%);-ms-transform:translateY(200%);transform:translateY(200%)}.dropdown.active .dropdown-list li:nth-child(3){-webkit-transform:translateY(300%);-ms-transform:translateY(300%);transform:translateY(300%)}.dropdown>span{-webkit-box-shadow:0 1px 1px rgba(0,0,0,.1);box-shadow:0 1px 1px rgba(0,0,0,.1);width:100%;height:60px;line-height:60px;font-size:18px;letter-spacing:2px;background:#3f51b5;color:#fff;border-bottom:thick solid rgba(0,0,0,.2);border-radius:5px 5px 0 0;display:block;padding:0 50px 0 30px;position:relative;z-index:9999;cursor:pointer;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transform-origin:50% 0;-ms-transform-origin:50% 0;transform-origin:50% 0;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;-o-transition:transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;-webkit-backface-visibility:hidden;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dropdown>span:after{content:"\25BC";position:absolute;right:0;top:15%;width:50px;text-align:center;font-size:12px;padding:10px;height:70%;line-height:24px;border-left:1px solid #ddd}.dropdown>span:active{-webkit-transform:rotateX(45deg);transform:rotateX(45deg)}.dropdown>span:active:after{content:"\25B2"}.dropdown-list,.dropdown-list li{position:absolute;top:0;width:100%}.dropdown-list li{color:#fff;border-bottom:thick solid rgba(0,0,0,.2);border-radius:5px 5px 0 0;display:block;list-style:none;left:0;opacity:1;-webkit-transition:-webkit-transform .3s ease;transition:-webkit-transform .3s ease;-o-transition:transform .3s ease;transition:transform .3s ease;transition:transform .3s ease,-webkit-transform .3s ease}.dropdown-list li:first-child{background-color:#1abc9c;z-index:10;-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}.dropdown-list li:nth-child(2){background-color:#3498db;z-index:10;-webkit-transform:translateY(3%);-ms-transform:translateY(3%);transform:translateY(3%)}.dropdown-list li:nth-child(3){background-color:#009688;z-index:10;-webkit-transform:translateY(6%);-ms-transform:translateY(6%);transform:translateY(6%)}.dropdown-list li span{-webkit-box-shadow:0 1px 1px rgba(0,0,0,.2);box-shadow:0 1px 1px rgba(0,0,0,.2);-webkit-backface-visibility:hidden;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%;font-size:18px;line-height:60px;padding:0 30px;display:block;color:#fff;cursor:pointer;letter-spacing:2px}.form-horizontal{padding:20px;padding-left:10%;padding-right:10%;width:80%;min-width:250px;margin:auto;position:relative;-webkit-box-shadow:0 1px 4px rgba(0,0,0,.3),0 0 40px rgba(0,0,0,.1) inset;box-shadow:0 1px 4px rgba(0,0,0,.3),inset 0 0 40px rgba(0,0,0,.1)}.selector{margin:auto;width:60%;min-width:190px}.form-horizontal:after,.form-horizontal:before{content:"";position:absolute;z-index:-1;-webkit-box-shadow:0 0 20px rgba(0,0,0,.8);box-shadow:0 0 20px rgba(0,0,0,.8);top:0;bottom:0;left:10px;right:10px;border-radius:100px/10px}.form-horizontal:after{right:10px;left:auto;-webkit-transform:skew(8deg) rotate(3deg);-ms-transform:skew(8deg) rotate(3deg);transform:skew(8deg) rotate(3deg)}.fields{margin-top:150px}.send{text-align:center;margin-top:40px}.btn-plain{width:100%;max-width:300px;padding:auto;background:#2e7d32;color:#fff;padding:15px;border-bottom:thick solid rgba(0,0,0,.2);border-radius:5px 5px 0 0}@media(max-width:800px){.files input{opacity:0}}.files input{border-style:none;margin:auto;padding-bottom:120px;cursor:pointer;text-align:center;width:80%!important}.files{position:relative}.files i{width:100%;text-align:center;margin-top:60px}.files:after{pointer-events:none;position:absolute;top:60px;left:0;width:50px;right:0;height:56px;content:"";display:block;margin:0 auto;background-size:100%;background-repeat:no-repeat}.color input{background-color:#f1f1f1}.files:before{position:absolute;top:60px;outline:dashed;padding-top:180px;padding-bottom:50px;bottom:10px;left:0;pointer-events:none;width:100%;right:0;height:57px;content:" Drag or click to upload ";display:block;font-weight:600;text-transform:capitalize;text-align:center}.files-drop:before{color:#4caf50}.files-error:before{color:red;content:" Unspecified file, please upload a file "}.text-group textarea{overflow:auto;height:100%;display:block;background-image:url(/static/media/notebook.3cdb6b06.jpg);background-size:900px 900px;padding:.125rem .125rem .0625rem;border-width:0;border-color:transparent;line-height:1.9;margin:auto;width:99%;-webkit-transition:all .28s ease;-o-transition:all .28s ease;transition:all .28s ease;-webkit-box-shadow:none;box-shadow:none;resize:none;padding:20px}.text-group textarea.form-file~.input-label,.text-group textarea.has-value~.input-label,.text-group textarea:focus~.input-label,.text-group textarea:valid~.input-label{font-size:14px;color:gray;top:-1rem;left:0}.text-group textarea:focus~.input-label{color:#96c93}.text-group textarea:focus~.bar:before{width:100%;left:0}.text-group{height:100%}.logcard1{min-width:250px;margin:auto;margin-bottom:40px;width:80%;height:50vh;overflow:auto;-webkit-box-shadow:0 1px 4px rgba(0,0,0,.3),0 0 40px rgba(0,0,0,.1) inset;box-shadow:0 1px 4px rgba(0,0,0,.3),inset 0 0 40px rgba(0,0,0,.1)}.logcard1 .card-body{height:50%}.logcard2{min-width:250px;margin:auto;width:80%;padding-bottom:30px;-webkit-box-shadow:0 1px 4px rgba(0,0,0,.3),0 0 40px rgba(0,0,0,.1) inset;box-shadow:0 1px 4px rgba(0,0,0,.3),inset 0 0 40px rgba(0,0,0,.1)}.logcard2 .card-body{height:40vh;overflow:auto}.logcard3{min-width:250px;margin:auto;margin-bottom:40px;width:80%;height:40vh;-webkit-box-shadow:0 1px 4px rgba(0,0,0,.3),0 0 40px rgba(0,0,0,.1) inset;box-shadow:0 1px 4px rgba(0,0,0,.3),inset 0 0 40px rgba(0,0,0,.1)}.logcard3 .card-body{height:50%}.col-list{width:100%;min-width:240px;margin:auto}@media(min-width:1200px){.col-list .col-head{color:#fff;border-bottom:thick solid rgba(0,0,0,.2);border-radius:5px 5px 0 0;margin-top:45px;font-size:1.1vw}}@media(max-width:1200px){.col-list .col-head{color:#fff;border-bottom:thick solid rgba(0,0,0,.2);border-radius:5px 5px 0 0;margin-top:45px;font-size:10px}}.col-list .col-head span{color:#fff;font-size:3em;padding:15px;border:thick solid #fff;border-radius:50%;margin-top:-45px;background-color:#be1e2d}.col-list .col-head h2{margin-top:7px;margin-bottom:5px;font-size:2em;font-weight:700}.col-list .t1 .col-head{background-color:#ffb748;cursor:pointer}.col-list .t2 .col-head{background-color:#16cac8;cursor:pointer}.col-list .t3 .col-head{background-color:#f87152}.col-list .t4 .col-head{background-color:#3f51b5}.col-list .t1 li{border-bottom:1px solid rgba(255,183,72,.4);padding-left:10px}.col-list .t2 li{padding-left:10px}.col-list .t2 li,.col-list .t4 li{border-bottom:1px solid rgba(22,202,200,.4)}.col-list .t1 ul{border-top-style:none;border-radius:2px;border:1px solid #ffb748}.col-list .t2 ul{border-top-style:none;border-radius:2px;border:1px solid #16cac8}.col-list .t4 ul{border-top-style:none;border-radius:2px;border:1px solid #3f51b5}.option{font-size:1.25em;cursor:pointer;padding:10px;margin:0}.selected{background-color:#827717;color:#fff}.explanation{padding:10px;border-top-style:none;border-radius:2px;border:1px solid #f87152}.listSets{list-style:none;max-height:20vh;overflow:auto;margin:0;padding-left:10px}.listSets li{border-bottom:solid;border-width:2px;border-color:#3f51b5}.logcard4{margin-left:5%;margin-right:5%;height:120px;overflow:auto;text-align:center;border-color:#f9a825}.logcard4>div>.col-sm-5{width:50%;margin:auto}.titlecard4{background-color:#f9a825;color:#fff;margin-bottom:0;margin-left:5%;margin-right:5%}.titlecard,.titlecard4{padding:20px;border-top-left-radius:10px;border-top-right-radius:10px;font-weight:700}.titlecard{margin:0;background-color:#3f51b5;color:#e8eaf6}.selected{background:#3f51b5;color:#fff}.titlecardExplanation{background-color:#f87152;padding:20px;margin:0;border-top-left-radius:10px;border-top-right-radius:10px;color:#e8eaf6;font-weight:700}.card-body-explanation{margin-top:0;padding:2%;border-top-style:none;border:2px solid #f87152;height:27vh;overflow:auto}.card-body-datasets{margin-top:0;padding:2%;border-top-style:none;border:2px solid #3f51b5;margin-bottom:20px}.footer{position:fixed;left:0;bottom:0;width:100%;border-top:thick solid rgba(0,0,0,.2);background-color:#fff;text-align:right;font-weight:700;padding:10px;padding-bottom:0}.btn-footer{border-style:solid;cursor:pointer;background-color:#000;color:#fff;padding:5px;border-radius:5px}.footer img,.footer p{float:left}.footer p{font-size:25px;margin-left:1px;height:50px;padding:10px;padding-bottom:0}@media (max-width:400px){.footer img,p{display:none}}.page h1{color:#ff5c33;font-size:120px;margin:auto}.page h3{color:#ff4d4d;margin:auto}
/*# sourceMappingURL=main.6ecb0d03.css.map*/
\ 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 diff is collapsed.
......@@ -96,10 +96,10 @@ class Explanation extends Component {
}
selectDataset(event){
var url = API_ROOT + '/dataset/' + this.state.problem;
// var url = API_ROOT + '/dataset/' + this.state.problem;
var id = event.target.id;
fetch(url,{
/*fetch(url,{
headers: new Headers({
'Authorization': localStorage.getItem('token')
})
......@@ -107,13 +107,12 @@ class Explanation extends Component {
.then((response) => {
return response.json();
})
.then((data) => {
.then((data) => {*/
this.setState({
datasets: data,
actualValues: data.lines[id-1].values,
actualValues: this.state.datasets.lines[id-1].values,
activeDataset: id
});
})
//})
}
render(){
......
......@@ -8,7 +8,7 @@
text-align: right;
font-weight: bold;
padding: 10px;
padding-bottom: 0px;
padding-bottom: 10px;
}
.btn-footer{
......@@ -37,4 +37,4 @@
.footer img, p{
display: none;
}
}
\ No newline at end of file
}
export const API_ROOT = 'http://localhost:8080/expliclas';
export const API_DOC = 'http://localhost:8080/expliclas/';
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