From 6a7ac692e0c34687726731846b2a8e2edb643034 Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Thu, 26 Sep 2024 15:05:38 +0200 Subject: [PATCH] updated bom and removed snl dep --- .classpath | 6 +- .settings/org.eclipse.wst.common.component | 88 ++++++++++++------- CHANGELOG.md | 8 ++ pom.xml | 28 ++++-- .../client/view/AttachmentPreviewer.ui.xml | 9 +- .../client/view/LinkPreviewer.ui.xml | 21 +++-- .../shareupdates/server/FilePreviewer.java | 7 +- .../user/shareupdates/ShareUpdates.gwt.xml | 2 +- 8 files changed, 112 insertions(+), 57 deletions(-) diff --git a/.classpath b/.classpath index af23abc..1675338 100644 --- a/.classpath +++ b/.classpath @@ -1,12 +1,12 @@ - + - + @@ -34,5 +34,5 @@ - + diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component index 35b6e24..07bf522 100644 --- a/.settings/org.eclipse.wst.common.component +++ b/.settings/org.eclipse.wst.common.component @@ -1,37 +1,63 @@ - - - - - - - - - - - - - - - - - - - - - - uses - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + uses + + + + + + + + + + + + + + + + + + + + + + diff --git a/CHANGELOG.md b/CHANGELOG.md index abe2b24..73e7539 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v3.0.0-SNAPSHOT] - 2024-05-02 + +- removed cassandra 2 client + +## [v2.9.0-SNAPSHOT] - 2023-07-21 + +- enlarge image preview in posts + ## [v2.8.1] -2022-06-15 - Fixed soem deps diff --git a/pom.xml b/pom.xml index cbf8753..a2ba507 100644 --- a/pom.xml +++ b/pom.xml @@ -7,14 +7,14 @@ maven-parent org.gcube.tools - 1.1.0 + 1.2.0 org.gcube.portlets.user share-updates war - 2.8.1 + 3.0.0-SNAPSHOT gCube Share Updates Portlet gCube Share Updates for exchanging updates with other users of VREs. @@ -41,7 +41,7 @@ org.gcube.distribution maven-portal-bom - 3.6.4 + 4.0.0-SNAPSHOT pom import @@ -81,12 +81,23 @@ org.gcube.portal - social-networking-library + social-library-stubs provided - org.gcube.portal - notifications-common-library + org.gcube.social-networking + social-service-client + provided + + + org.gcube.portal + social-networking-library + + + + + org.gcube.social-networking + social-service-model provided @@ -94,6 +105,11 @@ aslsocial provided + + org.gcube.portal + notifications-common-library + provided + org.gcube.portlets.user gcube-widgets diff --git a/src/main/java/org/gcube/portlets/user/shareupdates/client/view/AttachmentPreviewer.ui.xml b/src/main/java/org/gcube/portlets/user/shareupdates/client/view/AttachmentPreviewer.ui.xml index d01a64a..445b5d2 100644 --- a/src/main/java/org/gcube/portlets/user/shareupdates/client/view/AttachmentPreviewer.ui.xml +++ b/src/main/java/org/gcube/portlets/user/shareupdates/client/view/AttachmentPreviewer.ui.xml @@ -5,17 +5,17 @@ .image-preview { align: left; margin: 5px; - display: inline; - height: 40px; - width: 40px; + display: block; + width: 300px; overflow: hidden; float: left; + border: 10px solid red; } .attach-result { margin-top: 5px; vertical-align: top; - display: inline-block; + display: block; font-size: 10px; font-weight: bold; } @@ -24,6 +24,7 @@ margin-left: 4px; width: 10px; vertical-align: middle; + border: 10px solid black; } .label-style { diff --git a/src/main/java/org/gcube/portlets/user/shareupdates/client/view/LinkPreviewer.ui.xml b/src/main/java/org/gcube/portlets/user/shareupdates/client/view/LinkPreviewer.ui.xml index cfa53f6..767e043 100644 --- a/src/main/java/org/gcube/portlets/user/shareupdates/client/view/LinkPreviewer.ui.xml +++ b/src/main/java/org/gcube/portlets/user/shareupdates/client/view/LinkPreviewer.ui.xml @@ -1,18 +1,21 @@ - .important { - font-weight: bold; - } + .important { + font-weight: 400; + } + + +
+ +
- diff --git a/src/main/java/org/gcube/portlets/user/shareupdates/server/FilePreviewer.java b/src/main/java/org/gcube/portlets/user/shareupdates/server/FilePreviewer.java index 2404b58..33113e1 100644 --- a/src/main/java/org/gcube/portlets/user/shareupdates/server/FilePreviewer.java +++ b/src/main/java/org/gcube/portlets/user/shareupdates/server/FilePreviewer.java @@ -58,6 +58,7 @@ public class FilePreviewer { private static final String PDF_DEFAULT_IMAGE = "default/pdf.png"; private static final String GENERICFILE_DEFAULT_IMAGE = "default/default_generic.png"; private static final String UPLOAD_LOCATION_LOCAL = System.getProperty("java.io.tmpdir"); + private final static int PREVIEW_IMAGE_WIDTH_PX = 300; /** * these are the extension for which I have an icon image preview @@ -109,8 +110,8 @@ public class FilePreviewer { int width = (int) page.getBBox().getWidth(); int height = (int) page.getBBox().getHeight(); - int scaledWidth = width/8; - int scaledHeight = height/8; + int scaledWidth = width/4; + int scaledHeight = height/4; // create the image Rectangle rect = new Rectangle(0, 0, width, height); @@ -165,7 +166,7 @@ public class FilePreviewer { // write Thumbnails.fromImages(Arrays.asList(bufferedImage)) - .width(80) + .width(PREVIEW_IMAGE_WIDTH_PX) .outputFormat("jpg") .toOutputStream(out); diff --git a/src/main/resources/org/gcube/portlets/user/shareupdates/ShareUpdates.gwt.xml b/src/main/resources/org/gcube/portlets/user/shareupdates/ShareUpdates.gwt.xml index ef15ea1..aa10b8a 100644 --- a/src/main/resources/org/gcube/portlets/user/shareupdates/ShareUpdates.gwt.xml +++ b/src/main/resources/org/gcube/portlets/user/shareupdates/ShareUpdates.gwt.xml @@ -13,7 +13,7 @@ - +