pax_global_header 0000666 0000000 0000000 00000000064 12657331071 0014517 g ustar 00root root 0000000 0000000 52 comment=ab7b5ba8dcd6d6e90343b1c382aada90f3680681 DEEPCLIENT.git/ 0000775 0000000 0000000 00000000000 12657331071 0013261 5 ustar 00root root 0000000 0000000 DEEPCLIENT.git/README.md 0000775 0000000 0000000 00000005545 12657331071 0014554 0 ustar 00root root 0000000 0000000 # DEEPCLIENT Is a simple javascript library that allows the connection with DEEP and the inclusion of a Datalet within a HTML page developed by the [UNISA TEAM](http://www.isislab.it/) for the [ROUTE-TO-PA PROJECT](http://www.routetopa.eu/). ## Table of contents * [Quick start](#quick-start) * [Bugs and feature requests](#bugs-and-feature-requests) * [Usage](#usage) * [Versioning](#versioning) * [Creators](#creators) * [Copyright and license](#copyright-and-license) ## Quick start Clone the repo: `git clone http://service.routetopa.eu:7480/isislab/DEEPCLIENT.git`. ### What's included Within the download you'll find the following directories and files. You'll see something like this: ``` DEEPCLIENT/ ├── js/ │ ├── bootstrap-3.3.4-dist │ └── deepClient.js │ ├── jquery-1.11.2.min.js └── ├── jquery-2.1.0.min.js ``` ## Bugs and feature requests Have a bug or a feature request? Send a mail to developers@routetopa.eu ## Usage This is a minimal example of deep client usage. ```html
``` We create an empty HTML document with a single DIV. On document ready event we create a datalet_params object, this object contains information for Datalet retrieving and initialization. datalet_params contains : component : the Datalet name to be sent to DEEP params.data-url : the datasource URL fields : an array with user selected fields from datasource placeHolder : the ID of the DOM element where place the Datalet ComponentService.getComponent function take a datalet_params object as parameter. This function is responsible for Datalet info retrieving from DEPP and Datalet code retrieving from DEEPCOMPONENTS. Once the Datalet code is available DEEPCLIENT add the Datalet to the document DOM and initialize the Datalet with the data and fields parameters. Now the Datalet is able to complete its lifecycle. The programmer must specify the DEEP endpoint through the variable ComponentService.deep_url. ## Versioning v0.1 ## Creators UNISA Team - Dipartimento di Informatica - Università degli studi di Salerno - Italy ## Copyright and license Code released under [the MIT license](https://opensource.org/licenses/MIT). DEEPCLIENT.git/index.html 0000775 0000000 0000000 00000020765 12657331071 0015273 0 ustar 00root root 0000000 0000000In this page you can see several containers with opendata Datalets. To do this the page uses the DEEPCLIENT js library. The only things you have to know is the data source url, the fields that component need to visualize the chart, the component you want to use and the place holder in witch the component will be injected.