From 30d283c422de780615b5b052620421322f2cca59 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 25 Oct 2016 23:07:58 +0300 Subject: update dependencies --- juick-www/build.gradle | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'juick-www') diff --git a/juick-www/build.gradle b/juick-www/build.gradle index 908b8d2f..78ef21e5 100644 --- a/juick-www/build.gradle +++ b/juick-www/build.gradle @@ -29,16 +29,16 @@ repositories { dependencies { compile project(':juick-core') compile project(':deps:com.juick.xmpp') - compile 'com.github.scribejava:scribejava-apis:3.1.0' + compile 'com.github.scribejava:scribejava-apis:3.2.0' compile 'org.apache.httpcomponents:httpclient:4.5.2' - compile 'org.apache.commons:commons-lang3:3.4' + compile 'org.apache.commons:commons-lang3:3.5' compile 'commons-io:commons-io:2.5' - compile "org.springframework:spring-jdbc:4.3.2.RELEASE" + compile "org.springframework:spring-jdbc:4.3.3.RELEASE" compile 'org.apache.commons:commons-dbcp2:2.1.1' compile 'net.coobird:thumbnailator:0.4.8' compile 'com.github.ooxi:serialized-php-parser:0.5.0' - compile 'net.jodah:failsafe:0.9.2' - compile 'com.mitchellbosecke:pebble:2.2.2' + compile 'net.jodah:failsafe:0.9.5' + compile 'com.mitchellbosecke:pebble:2.2.3' compile 'com.sun.mail:javax.mail:1.5.6' providedCompile 'javax.servlet:javax.servlet-api:3.1.0' providedRuntime 'mysql:mysql-connector-java:5.1.39' -- cgit v1.2.3 From b4b9dfff3b074ba8961fd84b1f8193aff4756e37 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 1 Nov 2016 22:17:33 +0300 Subject: fix compatibility with vim-like navigation plugins --- juick-www/src/main/static/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-www') diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index ebeba198..d368cacd 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -657,7 +657,7 @@ ready(function () { }); document.querySelectorAll('.ir a').forEach(function(e) { e.addEventListener('click', function (e) { - var fname = e.target.parentNode.getAttribute('data-fname'); + var fname = e.target.closest('[data-fname]').getAttribute('data-fname'); if (!showPhotoDialog(fname)) { e.preventDefault(); } -- cgit v1.2.3 From 38071510b3888f5a4edb31705953a0995256d882 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 2 Nov 2016 10:11:28 +0300 Subject: fix avatar replacing --- juick-www/src/main/java/com/juick/www/Settings.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'juick-www') diff --git a/juick-www/src/main/java/com/juick/www/Settings.java b/juick-www/src/main/java/com/juick/www/Settings.java index 0602bff1..abe588fe 100644 --- a/juick-www/src/main/java/com/juick/www/Settings.java +++ b/juick-www/src/main/java/com/juick/www/Settings.java @@ -46,6 +46,7 @@ import java.io.File; import java.io.IOException; import java.io.PrintWriter; import java.nio.file.Files; +import java.nio.file.StandardCopyOption; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Arrays; @@ -161,7 +162,7 @@ public class Settings { Path ao = Paths.get(imgPath, "ao", targetName); Path a = Paths.get(imgPath, "a", targetName); Path as = Paths.get(imgPath, "as", targetName); - Files.move(Paths.get(Utils.getTmpDir(), avatarTmpPath), ao); + Files.move(Paths.get(Utils.getTmpDir(), avatarTmpPath), ao, StandardCopyOption.REPLACE_EXISTING); Thumbnails.of(ao.toFile()).size(96, 96).toFile(a.toFile()); Thumbnails.of(ao.toFile()).size(32, 32).toFile(as.toFile()); } -- cgit v1.2.3