From 97cf29982492a6bb973887cb42df3a2ebb4d8771 Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Tue, 22 May 2018 17:02:27 +0000 Subject: [PATCH] git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/storagehub-icons-library@167678 82a268e6-3cf1-43bd-a215-b396298e98cf --- .classpath | 26 +++ .project | 23 +++ .settings/org.eclipse.core.resources.prefs | 4 + .settings/org.eclipse.jdt.core.prefs | 5 + .settings/org.eclipse.m2e.core.prefs | 4 + distro/LICENSE | 1 + distro/README | 62 +++++++ distro/changelog.xml | 6 + distro/descriptor.xml | 31 ++++ distro/profile.xml | 25 +++ pom.xml | 173 ++++++++++++++++++ .../portal/stohubicons/IconsManager.java | 91 +++++++++ .../stohubicons/StorageHubIcons.gwt.xml | 10 + .../portal/stohubicons/shared/MDIcon.java | 50 +++++ .../stohubicons/shared/resources/CALENDAR.png | Bin 0 -> 1054 bytes .../stohubicons/shared/resources/CSV.png | Bin 0 -> 1039 bytes .../stohubicons/shared/resources/DOC.png | Bin 0 -> 1074 bytes .../stohubicons/shared/resources/FOLDER.png | Bin 0 -> 1045 bytes .../shared/resources/GWTIconsManager.java | 86 +++++++++ .../stohubicons/shared/resources/HTML.png | Bin 0 -> 1042 bytes .../stohubicons/shared/resources/IMAGE.png | Bin 0 -> 1123 bytes .../stohubicons/shared/resources/MOVIE.png | Bin 0 -> 149 bytes .../stohubicons/shared/resources/PDF.png | Bin 0 -> 1112 bytes .../stohubicons/shared/resources/PPTX.png | Bin 0 -> 1074 bytes .../shared/resources/SHARED_FOLDER.png | Bin 0 -> 1120 bytes .../resources/StorageHubIconResources.java | 79 ++++++++ .../stohubicons/shared/resources/TXT.png | Bin 0 -> 1074 bytes .../stohubicons/shared/resources/UNKNOWN.png | Bin 0 -> 1063 bytes .../stohubicons/shared/resources/XLS.png | Bin 0 -> 1074 bytes .../stohubicons/shared/resources/ZIP.png | Bin 0 -> 1136 bytes .../stohubicons/shared/resources/aquamaps.png | Bin 0 -> 980 bytes .../resources/external_resource_link.png | Bin 0 -> 855 bytes .../shared/resources/external_url.png | Bin 0 -> 343 bytes .../shared/resources/gcubeItem.jpeg | Bin 0 -> 905 bytes .../stohubicons/shared/resources/metadata.png | Bin 0 -> 603 bytes .../shared/resources/timeseries.png | Bin 0 -> 566 bytes .../stohubicons/StorageHubIcons.gwt.xml | 10 + .../gcube/portal/stohubsupport/AppTest.java | 38 ++++ 38 files changed, 724 insertions(+) create mode 100644 .classpath create mode 100644 .project create mode 100644 .settings/org.eclipse.core.resources.prefs create mode 100644 .settings/org.eclipse.jdt.core.prefs create mode 100644 .settings/org.eclipse.m2e.core.prefs create mode 100644 distro/LICENSE create mode 100644 distro/README create mode 100644 distro/changelog.xml create mode 100644 distro/descriptor.xml create mode 100644 distro/profile.xml create mode 100644 pom.xml create mode 100644 src/main/java/org/gcube/portal/stohubicons/IconsManager.java create mode 100644 src/main/java/org/gcube/portal/stohubicons/StorageHubIcons.gwt.xml create mode 100644 src/main/java/org/gcube/portal/stohubicons/shared/MDIcon.java create mode 100644 src/main/java/org/gcube/portal/stohubicons/shared/resources/CALENDAR.png create mode 100644 src/main/java/org/gcube/portal/stohubicons/shared/resources/CSV.png create mode 100644 src/main/java/org/gcube/portal/stohubicons/shared/resources/DOC.png create mode 100644 src/main/java/org/gcube/portal/stohubicons/shared/resources/FOLDER.png create mode 100644 src/main/java/org/gcube/portal/stohubicons/shared/resources/GWTIconsManager.java create mode 100644 src/main/java/org/gcube/portal/stohubicons/shared/resources/HTML.png create mode 100644 src/main/java/org/gcube/portal/stohubicons/shared/resources/IMAGE.png create mode 100644 src/main/java/org/gcube/portal/stohubicons/shared/resources/MOVIE.png create mode 100644 src/main/java/org/gcube/portal/stohubicons/shared/resources/PDF.png create mode 100644 src/main/java/org/gcube/portal/stohubicons/shared/resources/PPTX.png create mode 100644 src/main/java/org/gcube/portal/stohubicons/shared/resources/SHARED_FOLDER.png create mode 100644 src/main/java/org/gcube/portal/stohubicons/shared/resources/StorageHubIconResources.java create mode 100644 src/main/java/org/gcube/portal/stohubicons/shared/resources/TXT.png create mode 100644 src/main/java/org/gcube/portal/stohubicons/shared/resources/UNKNOWN.png create mode 100644 src/main/java/org/gcube/portal/stohubicons/shared/resources/XLS.png create mode 100644 src/main/java/org/gcube/portal/stohubicons/shared/resources/ZIP.png create mode 100644 src/main/java/org/gcube/portal/stohubicons/shared/resources/aquamaps.png create mode 100644 src/main/java/org/gcube/portal/stohubicons/shared/resources/external_resource_link.png create mode 100644 src/main/java/org/gcube/portal/stohubicons/shared/resources/external_url.png create mode 100644 src/main/java/org/gcube/portal/stohubicons/shared/resources/gcubeItem.jpeg create mode 100644 src/main/java/org/gcube/portal/stohubicons/shared/resources/metadata.png create mode 100644 src/main/java/org/gcube/portal/stohubicons/shared/resources/timeseries.png create mode 100644 src/main/resources/org/gcube/portal/stohubicons/StorageHubIcons.gwt.xml create mode 100644 src/test/java/org/gcube/portal/stohubsupport/AppTest.java diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..1945bc0 --- /dev/null +++ b/.classpath @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.project b/.project new file mode 100644 index 0000000..19dcfb5 --- /dev/null +++ b/.project @@ -0,0 +1,23 @@ + + + storagehub-icons-library + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..f9fe345 --- /dev/null +++ b/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,4 @@ +eclipse.preferences.version=1 +encoding//src/main/java=UTF-8 +encoding//src/test/java=UTF-8 +encoding/=UTF-8 diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..e52a276 --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/.settings/org.eclipse.m2e.core.prefs b/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..f897a7f --- /dev/null +++ b/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/distro/LICENSE b/distro/LICENSE new file mode 100644 index 0000000..2d9616a --- /dev/null +++ b/distro/LICENSE @@ -0,0 +1 @@ +${gcube.license} \ No newline at end of file diff --git a/distro/README b/distro/README new file mode 100644 index 0000000..b13a32d --- /dev/null +++ b/distro/README @@ -0,0 +1,62 @@ +The gCube System - ${name} +-------------------------------------------------- + +${description} + + +${gcube.description} + +${gcube.funding} + + +Version +-------------------------------------------------- + +${version} (${buildDate}) + +Please see the file named "changelog.xml" in this directory for the release notes. + + +Authors +-------------------------------------------------- + +* Massimiliano Assante (massimiliano.assante@isti.cnr.it), Istituto di Scienza e Tecnologie dell'Informazione "A. Faedo" - CNR, Pisa (Italy). + +Maintainers +----------- + +* Massimiliano Assante (massimiliano.assante@isti.cnr.it), Istituto di Scienza e Tecnologie dell'Informazione "A. Faedo" - CNR, Pisa (Italy). + +Download information +-------------------------------------------------- + +Source code is available from SVN: + ${scm.url} + +Binaries can be downloaded from the gCube website: + ${gcube.website} + + +Installation +-------------------------------------------------- + +Installation documentation is available on-line in the gCube Wiki: + ${gcube.wikiRoot} + +Documentation +-------------------------------------------------- + +Documentation is available on-line in the gCube Wiki: + ${gcube.wikiRoot} + +Support +-------------------------------------------------- + +Bugs and support requests can be reported in the gCube issue tracking tool: + ${gcube.issueTracking} + + +Licensing +-------------------------------------------------- + +This software is licensed under the terms you may find in the file named "LICENSE" in this directory. \ No newline at end of file diff --git a/distro/changelog.xml b/distro/changelog.xml new file mode 100644 index 0000000..55f57ae --- /dev/null +++ b/distro/changelog.xml @@ -0,0 +1,6 @@ + + + First Release + + diff --git a/distro/descriptor.xml b/distro/descriptor.xml new file mode 100644 index 0000000..b3f5628 --- /dev/null +++ b/distro/descriptor.xml @@ -0,0 +1,31 @@ + + servicearchive + + tar.gz + + / + + + ${distroDirectory} + / + true + + README + LICENSE + changelog.xml + profile.xml + + 755 + true + + + + + target/${build.finalName}.${project.packaging} + /${artifactId} + + + \ No newline at end of file diff --git a/distro/profile.xml b/distro/profile.xml new file mode 100644 index 0000000..acf5f1d --- /dev/null +++ b/distro/profile.xml @@ -0,0 +1,25 @@ + + + + Service + + ${Description} + Portal + ${artifactId} + ${version} + + + ${artifactId} + ${version} + + ${groupId} + ${artifactId} + ${version} + + + target/${build.finalName}.jar + + + + + diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..2dc4c73 --- /dev/null +++ b/pom.xml @@ -0,0 +1,173 @@ + + 4.0.0 + + maven-parent + org.gcube.tools + 1.0.0 + + + + org.gcube.portal + storagehub-support-library + 1.0.0-SNAPSHOT + jar + + storagehub-support-library + + storagehub support library exposes API for getting the correct file icon depending on the file name + + + scm:svn:http://svn.d4science.research-infrastructures.eu/gcube/trunk/portal/${project.artifactId} + scm:https://svn.d4science.research-infrastructures.eu/gcube/trunk/trunk/portal/${project.artifactId} + http://svn.d4science.research-infrastructures.eu/gcube/trunk/portal/${project.artifactId} + + + distro + 1.7 + 1.8 + 2.7.0 + UTF-8 + UTF-8 + 1.1.1 + 4.3 + + + + + org.gcube.distribution + maven-portal-bom + LATEST + pom + import + + + + + + + com.google.gwt + gwt-user + ${gwtVersion} + provided + + + junit + junit + 4.8 + test + + + org.slf4j + slf4j-log4j12 + + + org.slf4j + slf4j-api + + + + + + src/main/java + + **/*.* + + + + src/main/resources + + settings.properties + + etc + + + + + maven-compiler-plugin + 3.0 + + ${maven.compiler.source} + ${maven.compiler.target} + + + + + org.apache.maven.plugins + maven-jar-plugin + 2.6 + + + + test-jar + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.12 + + true + + + + org.apache.maven.plugins + maven-resources-plugin + 2.5 + + + copy-profile + install + + copy-resources + + + target + + + ${distroDirectory} + true + + profile.xml + + + + + + + + + + org.apache.maven.plugins + maven-assembly-plugin + 2.2 + + + ${distroDirectory}/descriptor.xml + + + + fully.qualified.MainClass + + + + + + servicearchive + install + + single + + + + + + + + + + + diff --git a/src/main/java/org/gcube/portal/stohubicons/IconsManager.java b/src/main/java/org/gcube/portal/stohubicons/IconsManager.java new file mode 100644 index 0000000..2793c45 --- /dev/null +++ b/src/main/java/org/gcube/portal/stohubicons/IconsManager.java @@ -0,0 +1,91 @@ +package org.gcube.portal.stohubicons; + +import org.gcube.portal.stohubicons.shared.MDIcon; + +/** + * + * @author M. Assante CNR + *

+ * makes it easy to incorporate icons into your web page. Here’s a small example: <i class="material-icons">face</i>

+ * Please note: for make this work you must install material-design-icons:
+ * The easiest way to set up icon fonts for use in any web page is through Google Web Fonts. All you need to do is include a single line of HTML: + * <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> + *

+ * More information and othere ways to setup MD Icons @see http://google.github.io/material-design-icons/ + * + */ +public class IconsManager { + /** + * + * @param isShared true is the folder is shared + * @return the html related to the private or shared Folders + */ + public static MDIcon getIconFolder(boolean isShared) { + if (isShared) + return new MDIcon("folder_shared", "#8F8F8F"); //darker gray + else + return new MDIcon("folder", "#8F8F8F"); //darker gray + } + /** + * + * @return the html related to the VRE Folders + */ + public static MDIcon getIconVREFolder() { + return new MDIcon("folder_special", "#8F8F8F"); //darker gray + } + /** + * + * easy to incorporate icons into your web page. Here’s a small example: <i class="material-icons">face</i> + * @see http://google.github.io/material-design-icons/ + * @param filenameWithExtension the file name with extension + * @return the Material Design Icon textual name to be placed within any <i class="material-icons"> $The Returned Material Design Icon Textual Name </i> + */ + public static MDIcon getMDIconTextualName(String filenameWithExtension) { + String[] splits = filenameWithExtension.split("\\."); + String extension = ""; + if (splits.length > 0) { + extension = splits[splits.length-1]; + } + if (extension == null || extension.compareTo("") == 0) + return new MDIcon("insert_drive_file", "#CCC"); //gray + + extension = extension.toLowerCase(); + if (extension.equals( "doc") ||extension.equals( "docx")) + return new MDIcon("description", "#0277bd"); // light-blue darken-3 + if (extension.equals( "xls") ||extension.equals( "xlsx")) + return new MDIcon("description", "#4caf50"); //green + if (extension.equals( "rtf") ||extension.equals( "txt")) + return new MDIcon("description", "#CCC"); //gray + if (extension.equals( "csv")) + return new MDIcon("assessment", "#283593"); //blue + if (extension.equals( "ics")) + return new MDIcon("calendar_today", "#f44336"); + if (extension.equals( "ppt") ||extension.equals( "pptx")) + return new MDIcon("description", "#fb8c00"); //orange + if (extension.equals( "pdf")) + return new MDIcon("picture_as_pdf", "#f44336"); //red + if (extension.equals( "jpg") ||extension.equals( "jpeg") + || extension.equals( "gif") + || extension.equals( "bmp") + || extension.equals( "png") + || extension.equals( "tif") + ||extension.equals( "tiff") + ) + return new MDIcon("panorama", "#d81b60"); //fuxia + if (extension.equals( "avi") ||extension.equals( "mp4") || extension.equals( "mpeg") || extension.equals( "mkv")) + return new MDIcon("movie_creation", "#90caf9"); + if (extension.equals( "html") ||extension.equals( "htm") || extension.equals( "jsp") || extension.equals( "asp") || extension.equals( "php")) + return new MDIcon("web", "#0277bd"); + if (extension.equals( "rar") + || extension.equals( "zip") + || extension.equals( "tar") + || extension.equals( "tar.gz") + || extension.equals( "cpgz") + || extension.equals( "gz") + || extension.equals( "jar") + ) + return new MDIcon("archive", "#ffc107"); //amber + + return new MDIcon("insert_drive_file", "#CCC"); //gray + } +} diff --git a/src/main/java/org/gcube/portal/stohubicons/StorageHubIcons.gwt.xml b/src/main/java/org/gcube/portal/stohubicons/StorageHubIcons.gwt.xml new file mode 100644 index 0000000..2daa983 --- /dev/null +++ b/src/main/java/org/gcube/portal/stohubicons/StorageHubIcons.gwt.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/main/java/org/gcube/portal/stohubicons/shared/MDIcon.java b/src/main/java/org/gcube/portal/stohubicons/shared/MDIcon.java new file mode 100644 index 0000000..f643b8f --- /dev/null +++ b/src/main/java/org/gcube/portal/stohubicons/shared/MDIcon.java @@ -0,0 +1,50 @@ +package org.gcube.portal.stohubicons.shared; + +import java.io.Serializable; + +/** + * + * @author M. Assante, CNR-ISTI + * + * easy to incorporate icons into your web page. Here’s a small example: <i class="material-icons">face</i> + * @see http://google.github.io/material-design-icons/ + * object representing Material Design Icon <i class="material-icons"> $The Returned Material Design Icon Textual Name </i> + */ +@SuppressWarnings("serial") +public class MDIcon implements Serializable { + + private StringBuilder html; + private String textualName; + private String color; + + public MDIcon(String textualName, String color) { + this.html = new StringBuilder + ("") + .append(textualName) + .append(""); + this.textualName = textualName; + this.color = color; + } + + public String getHtml() { + return html.toString(); + } + + public String getTextualName() { + return textualName; + } + + public void setTextualName(String textualName) { + this.textualName = textualName; + } + + public String getColor() { + return color; + } + + public void setColor(String color) { + this.color = color; + } +} diff --git a/src/main/java/org/gcube/portal/stohubicons/shared/resources/CALENDAR.png b/src/main/java/org/gcube/portal/stohubicons/shared/resources/CALENDAR.png new file mode 100644 index 0000000000000000000000000000000000000000..69ebccb83f9da559af100232f06d462811862c02 GIT binary patch literal 1054 zcmaJ=O-K|`93M0Lu#7xpS_qF3g20`RU3a$~Ty=M6H~xJz{$=>X&eS66Nb3V9EwiX=C;1tT@ylg=#q@n=`;<`KtlTcR2Mpj`bMb*+; zI)gLPSwTTMBRd$TpqqqEQJvidQ&xr`1_N+VGlKNm(?uF+YLLF@l{m?az?{}QZo$-e zUs@R-QUWU7-32-e0uj(5mO()uHf*5~q)WO2IXl-Z4N4F^6r{I;%18+iK^6pFhI1*L zj{`oQ;XNIGzrP*0Ii6!VH_N+SykGFR1&#yTA5FYjYF0>!v29<(3eq`@O@U?e`8<>N zFvuEY`9L7xXt>=jf^gYm29^sh!)_}ph|p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@wsXYBjRQpc^{-qDTo0}EXzH`?#6FI~7d t^#r&VP-bN=FH{sAhpOsoI^ literal 0 HcmV?d00001 diff --git a/src/main/java/org/gcube/portal/stohubicons/shared/resources/GWTIconsManager.java b/src/main/java/org/gcube/portal/stohubicons/shared/resources/GWTIconsManager.java new file mode 100644 index 0000000..8fcd35f --- /dev/null +++ b/src/main/java/org/gcube/portal/stohubicons/shared/resources/GWTIconsManager.java @@ -0,0 +1,86 @@ +package org.gcube.portal.stohubicons.shared.resources; + +import com.google.gwt.resources.client.ImageResource; +/** + * + * @author M. Assante, CNR-ISTI + * class to be used in GWT for getting image resource + */ +public class GWTIconsManager { + /** + * + * @param isShared true is the folder is shared + * @return the ImageResource instance related to the private or shared Folders + */ + public static ImageResource getIconFolder(boolean isShared) { + if (isShared) + return StorageHubIconResources.INSTANCE.SHARED_FOLDER(); + else + return StorageHubIconResources.INSTANCE.FOLDER(); + } + /** + * + * @return the ImageResource instance related to the VRE Folders + */ + public static ImageResource getIconVREFolder() { + return StorageHubIconResources.INSTANCE.VRE_FOLDER(); + } + /** + * + * @param filenameWithExtension + * @return the ImageResource instance related to the file extension + * @throws IllegalArgumentException + */ + public static ImageResource getIconFile(String filenameWithExtension) throws IllegalArgumentException { + if(filenameWithExtension==null || filenameWithExtension.compareTo("") == 0) + throw new IllegalArgumentException("The file name is null or empty"); + + String[] splits = filenameWithExtension.split("\\."); + String extension = ""; + if (splits.length > 0) { + extension = splits[splits.length-1]; + } + if (extension == null || extension.compareTo("") == 0) + return StorageHubIconResources.INSTANCE.unknown(); + + extension = extension.toLowerCase(); + if (extension.equals( "doc") ||extension.equals( "docx")) + return StorageHubIconResources.INSTANCE.DOC(); + else if (extension.equals( "rtf") ||extension.equals( "txt")) + return StorageHubIconResources.INSTANCE.TXT(); + else if (extension.equals( "xls") ||extension.equals( "xlsx")) + return StorageHubIconResources.INSTANCE.XLS(); + else if (extension.equals( "csv")) + return StorageHubIconResources.INSTANCE.CSV(); + else if (extension.equals( "ics")) + return StorageHubIconResources.INSTANCE.CALENDAR(); + else if (extension.equals( "ppt") ||extension.equals( "pptx")) + return StorageHubIconResources.INSTANCE.PPT(); + else if (extension.equals( "pdf")) + return StorageHubIconResources.INSTANCE.PDF(); + else if (extension.equals( "jpg") ||extension.equals( "jpeg") + || extension.equals( "gif") + || extension.equals( "bmp") + || extension.equals( "png") + || extension.equals( "tif") + ||extension.equals( "tiff") + ) + return StorageHubIconResources.INSTANCE.IMAGE(); + else if (extension.equals( "avi") ||extension.equals( "mp4") || extension.equals( "mpeg") || extension.equals( "mkv")) + return StorageHubIconResources.INSTANCE.MOVIE(); + else if (extension.equals( "html") ||extension.equals( "htm") || extension.equals( "jsp") || extension.equals( "asp") || extension.equals( "php")) + return StorageHubIconResources.INSTANCE.HTML(); + else if (extension.equals( "rar") + || extension.equals( "zip") + || extension.equals( "tar") + || extension.equals( "tar.gz") + || extension.equals( "cpgz") + || extension.equals( "gz") + || extension.equals( "jar") + ) + return StorageHubIconResources.INSTANCE.ARCHIVE(); + else + return StorageHubIconResources.INSTANCE.unknown(); + } +} + diff --git a/src/main/java/org/gcube/portal/stohubicons/shared/resources/HTML.png b/src/main/java/org/gcube/portal/stohubicons/shared/resources/HTML.png new file mode 100644 index 0000000000000000000000000000000000000000..5da12daa72921c5715b234c7da40cd2cbdb0acc8 GIT binary patch literal 1042 zcmaJ=O=#0l9M3+gV{8fvV;jO^CIi9dqifeDHqP0kAF#~P6;=>rY4W;-E*~bZHXS?2 z#Od$@?_Pvm=0%+hh6vNcF77mN2OT1!-o1$jM}6tq>cJX#dGG)D{eJ(?w=y}A=-_AsQYTZoNe(NWiul>&fx4$Nu>Pkev%n!q)cC#FLZEm<)zrzIC`Ftsp| zQ5Fgcs}iFZ@Tkin0UbaYclCM0;ar}m>T>ApT~h>Jg}?$&90rw@Ch?eQ13X01euW;P z@ezh(hJ)d7_#7Uf8JeO46cg|>VQx6U(KKHB2;|LH^ITep*L)$1C*~luIEpHjN@Qu6 zH0@c6VOiGG2n75H;djaglwH5!4AvC{;3&3cLCrL9Pf^a9MaUB<(!&&Vt08MRwKAcC zQLb!J3`u(_)q#@qf2giE&<;$4Kk@!k*vXVFK&63W7HtJJEsh$2|R%mNKI3@F_ER|pcoH@1cqV62peYE zNPrCngCTK*4ueaYv z(^y2YDVIXQP+nvIYIOYyO^o!fU8!%LCzl&#?GlTJy?4$R(>Bn*t)N8dapDkP6$sg%`E)}Z+}e7 literal 0 HcmV?d00001 diff --git a/src/main/java/org/gcube/portal/stohubicons/shared/resources/IMAGE.png b/src/main/java/org/gcube/portal/stohubicons/shared/resources/IMAGE.png new file mode 100644 index 0000000000000000000000000000000000000000..4d568d06dc403ad7b5c7dbeeab9b76c4e591ebca GIT binary patch literal 1123 zcmaJ=U1$_X9A6t_f?^U#@hcA*HWb9VpLdt@mRv5kx0ib2hV*jKqYtfnyK}kavOAmI ziMNS`#85PXEi}!8zJ)@?2hr$@U>`)h7fYor2tp~;go;oqDkzvBiL)^meehhEo%s*H z-|zo9X9fp8+qr$;c8a2QW)3S^vhN92^EUE-P>H`J+g_Z`;~`YU70rcI(m(|WGL|+B zvrsd}NAJKMifW+ETps7uqmqs+Rtqq!Z#jfbQ9TLY(eyIJpa6$WJ5E3O6;WRXH(YpHp)Z_#`&7V2`nF^R0FE&hoP3WiS}?7zK!?2!d`CNfm{}PXw20~nTfS{aEC>dK+A$ek`fFT#f|81&w{D(X}fwJ;8BvY>BZs_|PWP?vk~^c@p{M?rdJ7(@q`R%j$MB9~<*LG9S z4!DfpTwUyY)jHEP_41>(&ZZ?XJa(q%ysZV>I9L^FC=&QXGfB3+duO^Ek@^yB0v4#-9N9D c`WUL2r~ZHBP9B*pp9-FRCOx2BmXA%p2I`7&;s5{u literal 0 HcmV?d00001 diff --git a/src/main/java/org/gcube/portal/stohubicons/shared/resources/MOVIE.png b/src/main/java/org/gcube/portal/stohubicons/shared/resources/MOVIE.png new file mode 100644 index 0000000000000000000000000000000000000000..1d3ed56e9ece59df1cdf640522de6064b7d4c066 GIT binary patch literal 149 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM1|%Pp+x`GjF`h1tAr*|t5+Mm9KNvrnD*WR= z!sqdb-9ykh!RG^u=O>0qJD4{nwdnj{pSVkA{f5p5_D8Qn4E|W%SmVg-#>j9WK>ShRggLW;_Aq$5`njxgN@xNA7^5^U literal 0 HcmV?d00001 diff --git a/src/main/java/org/gcube/portal/stohubicons/shared/resources/PDF.png b/src/main/java/org/gcube/portal/stohubicons/shared/resources/PDF.png new file mode 100644 index 0000000000000000000000000000000000000000..4b10970bee97506e15a498640ccf29b5392fa022 GIT binary patch literal 1112 zcmaJ=TSyd97@lRxOc9KNoC+F8k}`MavaZ_>j+fn8bHQ0`U2uCS9A}R1WOH%m*sl8! zUO)`GJlMlRP)SA!U7&{^D(Fc}h{&KG3@IXe=p}lHj0!uWuJzD1aORx<@O|HZJ!d;& zN6JcemtYuH7Ht#aXs>WqaS{5zOYKk%URHos$jCD>)c%Ml%r`!y1}0rX=?RNc4a{Rp-gikDic(s_^)La>$8t1HYp=*QJ)}b^#cHJnOxWc z5;UxYVVufWu_I+b!%i6{5$^O8q9m)jW3S;wk&Eg!lyn(H1)f9-UR71NKz$t>2nWM{ zKhwf6k;5S-#D)TO!ALL?Vtn;No+}vgpayi9=PG}=LP4%G3Yv*L3&2uO1Etk6G-54f zPAwcuOF_L2u2MLbP(dz*f}xzo{?+LG6`CIBxH-1S*c^PIqiMI$Sl8T~zk{B{v#8LL z$Sn5!TwQH)dt5u*=Ut`ezPy^a8DY`i=-eZu9u N^=Kp}+zoY){s!d7Ym)!~ literal 0 HcmV?d00001 diff --git a/src/main/java/org/gcube/portal/stohubicons/shared/resources/PPTX.png b/src/main/java/org/gcube/portal/stohubicons/shared/resources/PPTX.png new file mode 100644 index 0000000000000000000000000000000000000000..6b5bf2eb44591a593810f90272a29ba28eb84bde GIT binary patch literal 1074 zcmaJ=TSyd97@oyzh9wHA5p^2PCwFdpa|c&*omCeak=>=1f^eKUtAozPnPa<3;HD6E zdkPAC(Vzlfg6ORtDzd0IA&RI6O@ewU6M`-T+ZlDWhqi$;=lqB7`~K^>(AV2tS+T!@ zAc)Fnj}XIqowLeI@qZ;9`hmB46iK4EkwR(7f<%X63_uXoq(K;ik}^K}0=5!F5veAU zC@CJ}WkaJR2Sa5v6SE1TwLN1>@-ReT01m2ph+KQ{kOZm{B2V~4Ml?I&klHh0!T3aP zLY^3wg9_Q+23j*b7SJG)Kt>zUZ9WqsH*|S?cCKj>Y(UU(h};Y+DfWR*!-Bv^F>aah zGr-SMtj8M&1eyWIunf&`G|Rc!0Po>=h5=h2iM?4$ijN6hTfVRrB8Lz%d74hA(^T3+ z8P*`p27^IIgX7#7;kL(hBxT&X-H=xhpe)M4~UYi>W;mE7ezj*+ep%77!^V!R-jZ>;aggmNRaFD_GxJB@H22?Js-9Yysrx#)q literal 0 HcmV?d00001 diff --git a/src/main/java/org/gcube/portal/stohubicons/shared/resources/SHARED_FOLDER.png b/src/main/java/org/gcube/portal/stohubicons/shared/resources/SHARED_FOLDER.png new file mode 100644 index 0000000000000000000000000000000000000000..84bbc0fa4b25e9c650564db8048e56a57c9950b4 GIT binary patch literal 1120 zcmaJ=TSyd97@k_q?gyiYPvJ{JFWsYh24IsfXnlJ|U>!yI zXg!m~S$V6dA|s%9n1E|ogiTR(^{%C;JrILD?9$CB{r>hH8t7V--WHNs*^0w%y`|rV z?fq>TwZBJ=XmtH%Q0Iz7z<^i*uCd#6L^n!L=!#_R9WykTfZ(1eJ!vW{r$8Lp5QGA( zUu6Xr2wZ>*)`Y|1YQVD`%dkAd@qR8W26>TX!PG~SXtvfVrlqE-SY#KayD_#zhA9*Z zfkH5V>@J3jL?WIB&-)3&@AR2ias8%KSyYgqquRQKbz}lhQOToT9HoiV$rKE0TGn)? z%0vprxQfMa0oF^Y2$bdjLk(jZ?cg;0>vu+BC(~y^CJi0bYpdkqIxD?UmKe98f{~p; zXm_!SscwXk(~T?;Zw~=kQFYVXPvB))Oqvc>Ocf@jC`}Xsx~_>KPHKw9*qTs?RGCZE z#<&z-ck0V6+CabSW6wex1yu@`eI>GMUu@0%X=C>c6MwS z-H|(bYw5j)y-P2Do>O`4{NM_9!KtAOXWj}O+3~Xb8D`V3xgSfwx3c_#jo%I*{aN+O zmw)&!1)dL7CH8%21UsA0FB8U3JZm{t`+ZAt&(D&fSLgPf&fNg322pDLuCalk(vb~k edp`|qr^<5_yPBtlw)rv-9Lm&a%Knj*m#1dR&hc2IGt4}?t{0@h1= z6uOxP&5W1vp9lm3$AOP#Xo~hxjL*Xac)yRQX|VH=*qf~m^HH&L#}~E)GKrAIQ&cLI z@}~S=(;lH1j^kVnpU;C49%s@(a@u1!jX4DoI*P4XNHY!KD#{6S0tqCJbUOvz+Lbk& zoigEqQEAzt7%%OnlmklA|Dn3Ri*`^H?#260VJ9|eK`IIzbHY||K-?om+Ov#Zehg{mV{IP`caw!}P-OM(3{Z^ti{}vBk#j;6npXyN$=XZgr^>KZ&J?7>cDoCN{I# z)X#w{mk7SqBgoBbHA+ScjdX41K|5nHghlY z!rQNR7S=Kg*~{xC z*(-zfcb9M7o~gZ5a-n|n$h+~G*RvyUo}4~-v3;)SL)-Mifz@^5^WfYd|K-dfqM(@Y XzdE*Y^XL0%_Z3Gvdc}wBL$iMX*Y#T* literal 0 HcmV?d00001 diff --git a/src/main/java/org/gcube/portal/stohubicons/shared/resources/UNKNOWN.png b/src/main/java/org/gcube/portal/stohubicons/shared/resources/UNKNOWN.png new file mode 100644 index 0000000000000000000000000000000000000000..1a3581e055e2d75f0508c8da8ad41132f652198b GIT binary patch literal 1063 zcmah|O=#3W6wbO*+Nz))v|5BA^&r^Y%w&JEiCx?7W~&QsTeb^UPt7LNZfui@$<$5j zFXEwsC@3C8LDZ8XVnt6Lq*A0FgyKmA(SmmiqIeMNr0!M`se#GN8@}(o@BPgA{@#5X znzuJ|9Je9AUoEn|C0LCO?Ej&f{>HX#G&e{G$S|#HF6O!oQpO-}X(PCZHDluFOW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ube/portal/stohubicons/shared/resources/ZIP.png new file mode 100644 index 0000000000000000000000000000000000000000..d5624f3d64c46a3636b60cedba125d4f3438de38 GIT binary patch literal 1136 zcmaJ>TWHfz7>;&s+Bsy3cmXAgf(W*`v|X3D?&8vE(A3%$t*{5vr-Zvzo;dr;V3WH9kToea?z1@&QGu%66y`d|$t=lqB7`~K@mcQmrG z#J${&VOWWxOSpch5j3mGXO=<=)ASrEoo`OmY za}jDh0TbdDPBt{JU>I3%C}DB&4xw{CNp5HY38p}liV68IDZwuXq`K_$c}UT0VU z4|pk$OqEl3Iqju={$Mb;4reHuA}NNX84n%gd<;iX`1C^{Z^2=r8INwS$|>-`mMztUs-feKqLegJFhrn8f2W|C zGqSopT_#j8G9#HJ?WLTQazIi1KUC9Z&^C;LKk@!k*p9cEfQ$j#NLey!T+=GYmC4mv zK!S!9H;mo6Dn?rjXxJ@=iPtp*a8Z&~-La?eqR0ul4JBO$0v{rff>%`)t~TuV``Dl_ z5a1b_4p&t0Y&lCY^*%Ph`u(gw$K?$U4nZXA-nsy6~^(|N9X>=tf1im(& zd6E2<%~rcS^di^sStFiZwMzy+3|uejf9twa+TFCTAh~`-8zak#nFEjJJvGbl)XJl0 zW-s1;D#=C3C)*-5H;P8Tm!4Trb8Mn>aN)JfJ;TwR1w%gv-#j?te)!=y*>k=0{V){6 zU$$Nu#3(@Z4V=#&d|7m&^SS%or>m141z)=TC%HoL$=9)3sv6gUzKd;&a!9v1jj7&Obm1NBEl?b{+TyPQZKu literal 0 HcmV?d00001 diff --git a/src/main/java/org/gcube/portal/stohubicons/shared/resources/aquamaps.png b/src/main/java/org/gcube/portal/stohubicons/shared/resources/aquamaps.png new file mode 100644 index 0000000000000000000000000000000000000000..25a4da60cb90b7bd5c8181a70b71d7cecddebbf6 GIT binary patch literal 980 zcmV;_11tQAP)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iXe= z4k;=BSF=$7000?uMObu0Z*6U5Zgc=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t}drT9SDx%za^!ZuoXMiZ}mM5mgnl zY%)1CMJkn|QmNoL&X>7d?i2u^{c!O*;y?N!>E+<;`o)1KItDEdk0mGDBwGd%A>=r-+#RP=4+!u hh|ht0xm<1y;9r7(e~Qz7fGYq1002ovPDHLkV1n07kSzcJ literal 0 HcmV?d00001 diff --git a/src/main/java/org/gcube/portal/stohubicons/shared/resources/external_url.png b/src/main/java/org/gcube/portal/stohubicons/shared/resources/external_url.png new file mode 100644 index 0000000000000000000000000000000000000000..25eacb7c2524142262d68bf729c5e2b61adfd6d4 GIT binary patch literal 343 zcmV-d0jU0oP)$`dXYaZs9=SbAto%g@>T~?_bH&lTUn@`uo|1bXE{eSR(AO)ESb=V4`uk}mK|39Px&03WLbv~pzk+s7D@lK^ zn+aB+sp)&Y_x-B3>;6ywU--WQNUr<8>TU0P-|L#1U&;A)67w(+> pDf@fM7q9#F25QXo3rUI;002ro52U44e~JJA002ovPDHLkV1l;_q@Mr) literal 0 HcmV?d00001 diff --git a/src/main/java/org/gcube/portal/stohubicons/shared/resources/gcubeItem.jpeg b/src/main/java/org/gcube/portal/stohubicons/shared/resources/gcubeItem.jpeg new file mode 100644 index 0000000000000000000000000000000000000000..bd354b0f27606ba6729b26101298ca169057d50c GIT binary patch literal 905 zcmex=%kxU@K!VDr=Sy-4^*jU-vz?hwr zgN>b&osEryn}d@J1b{3aZY~}W2V@9DD-$a-Gb`H|qMvW5}awt1(JSZA;@q>zSQc)8pmzcPOq?D?fx`w8fiK&^ng{76V zi>sTvho@I?NN8AiL}XNQN@`kqMrKxVNoiSmMP*fUOKV$uM`zch$y26In?7UatVN5L zEM2yI#mZHiHgDOwZTpU$yAB;ba`f2o6DLnyx_ss8wd*%--g@}x@sp>|p1*kc>f@)+ zU%r0({^RE_kiQrim?7Q*k`Rxf`AZP!FD6hNu!H=?$W#u*%z`YeiiT`Lj)Clng~Cck zjT|CQ6Blkg$f;}`^g%SK=pvVxipfLOk07sseMX$en#l4Q++zrT-D2QjW&}navmk># z!{3s>>*_Q4`Mn?T#=HFB{~d9B!H>me<{$mv6?NC-rS$g+SMcfg6;~KNK58d9>DlAB5Bm@O*n0D;_QJJyGB0j@ zy4f;T&t6O7N%6&$%8-dqAB6pF`Ny;WxWCko=?BWIrXSH~Kg`-Q-S9{MK|A$*7uVa^ zbG_QW+4)(bsQ+fox*t`mXL;T=m)NZ? tzOV1smP<9)Ugq9EdHi><@iwK&PrJi1y}aIf=C0Z{{c7~N-}?V=0su8URLlSX literal 0 HcmV?d00001 diff --git a/src/main/java/org/gcube/portal/stohubicons/shared/resources/metadata.png b/src/main/java/org/gcube/portal/stohubicons/shared/resources/metadata.png new file mode 100644 index 0000000000000000000000000000000000000000..0c76bd1297751b66230f74719504b2adb02b1615 GIT binary patch literal 603 zcmV-h0;K(kP)^~*-1fljz_B$LUvK}k?BNXe#Y!m=zM!!V#}8bncK5m;8VP zw86G*RI63?Cd%b9bX|ueNlZ|wR6rj|r_)VIP@r2imh3?SN+^{|kY%~8B{maJ@F*OK z&VH9LwOeGt#DRjj0~v~8`>iO7!Ybi;zE$va`A^T#yW`y44;k^#O~K5*jD=qcUhPSc zvyy~q;5H_1WT1l~cqje9yfa+l!hu6xjdOJ8s;8E^+=QQ$tw p?%p!Hy#YapB=@+^9(46X{{RQg%9y;OKjr`c002ovPDHLkV1g7l326WT literal 0 HcmV?d00001 diff --git a/src/main/java/org/gcube/portal/stohubicons/shared/resources/timeseries.png b/src/main/java/org/gcube/portal/stohubicons/shared/resources/timeseries.png new file mode 100644 index 0000000000000000000000000000000000000000..abcd93689a08ec9bdbf0984927e8da06c043c7cd GIT binary patch literal 566 zcmV-60?GY}P)>q?GuNnCdgP^*Bj5V_b?dAq2Ppn9^MBB^YUM zad0N-T{Ujg*A6d~mYV4na=hT4Nz+_}SGTgW|Iir!%$ z;@OGkWI6+j0H}~K4RYR%!7y|zM`O@*K>rL{*&}x3lR**HrMXC1->#slU>X|w!U1xQ zqc + + + + + + + + + diff --git a/src/test/java/org/gcube/portal/stohubsupport/AppTest.java b/src/test/java/org/gcube/portal/stohubsupport/AppTest.java new file mode 100644 index 0000000..28bf58f --- /dev/null +++ b/src/test/java/org/gcube/portal/stohubsupport/AppTest.java @@ -0,0 +1,38 @@ +package org.gcube.portal.stohubsupport; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; + +/** + * Unit test for simple App. + */ +public class AppTest + extends TestCase +{ + /** + * Create the test case + * + * @param testName name of the test case + */ + public AppTest( String testName ) + { + super( testName ); + } + + /** + * @return the suite of tests being tested + */ + public static Test suite() + { + return new TestSuite( AppTest.class ); + } + + /** + * Rigourous Test :-) + */ + public void testApp() + { + assertTrue( true ); + } +}