From 284a96d48936bf4c2040df00710af7201fd23170 Mon Sep 17 00:00:00 2001 From: luigser Date: Wed, 14 Oct 2015 19:35:33 +0200 Subject: [PATCH] client update --- README.md | 0 index.html | 30 ++++++++++++++++++++++++++++-- js/deepClient.js | 27 ++++++++++++++++++++++++++- sevc.html | 24 ++---------------------- 4 files changed, 56 insertions(+), 25 deletions(-) mode change 100644 => 100755 README.md diff --git a/README.md b/README.md old mode 100644 new mode 100755 index bec21ae..bec21ae --- a/README.md +++ b/README.md diff --git a/index.html b/index.html index 9ab59de..d4184c5 100755 --- a/index.html +++ b/index.html @@ -42,7 +42,10 @@ component : "linechart-datalet", params : { - 'data-url' : DATAURL + 'data-url' : DATAURL, + 'title' : 'Linechart example', + 'x-axis-label' : 'x-axis', + 'y-axis-label' : 'y-axis' }, fields : FIELDS, placeHolder : "linechart_component_place_holder" @@ -94,9 +97,19 @@ placeHolder : "treemap_component_place_holder" }; + var preview_params = { + component : "preview-datalet", + params :{ + 'data-url' : "http://spod.routetopa.eu/", + 'url' : "http://spod.routetopa.eu/" + }, + fields : [], + placeHolder : "preview_component_place_holder" + }; + - ComponentService.deep_url = 'http://192.168.232.128/DEEalerProvider/DEEP/'; + ComponentService.deep_url = 'http://192.168.214.128/DEEalerProvider/DEEP/'; ComponentService.getComponent(table_params); ComponentService.getComponent(linechart_params); ComponentService.getComponent(barchart_params); @@ -104,6 +117,7 @@ ComponentService.getComponent(column3dchart_params); ComponentService.getComponent(leafletjs_params); ComponentService.getComponent(treemap_params); + ComponentService.getComponent(preview_params); }); @@ -195,6 +209,18 @@ +
+
+
+

Preview Datalet

+
+
+
+
+
+
+
+ diff --git a/js/deepClient.js b/js/deepClient.js index 4042ca4..09c3ec5 100755 --- a/js/deepClient.js +++ b/js/deepClient.js @@ -1,3 +1,28 @@ +/* + @license + The MIT License (MIT) + + Copyright (c) 2015 Dipartimento di Informatica - Università di Salerno - Italy + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + */ + /** * Created by Luigi Serra on 10/06/2015. */ @@ -6,7 +31,7 @@ var ComponentService = { deep_url:"", - getComponent: function(params){//params = {component, data, fields, placeHolder} + getComponent: function(params){ var request = this.getXMLHttpRequest(); var component = params.component; diff --git a/sevc.html b/sevc.html index f3d0ee1..c572d3e 100755 --- a/sevc.html +++ b/sevc.html @@ -10,28 +10,8 @@