From 9faf43a6c4b933b5f97be4348d461bf91f5bf2e2 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 24 Oct 2022 01:09:32 +0300 Subject: Spring Boot 3 --- src/main/assets/scripts.js | 2 + src/main/java/com/cliqset/xrd/Alias.java | 11 +- src/main/java/com/cliqset/xrd/Expires.java | 2 +- src/main/java/com/cliqset/xrd/Link.java | 14 +- src/main/java/com/cliqset/xrd/Property.java | 12 +- src/main/java/com/cliqset/xrd/Subject.java | 10 +- src/main/java/com/cliqset/xrd/Title.java | 2 +- src/main/java/com/cliqset/xrd/XRD.java | 6 +- src/main/java/com/cliqset/xrd/package-info.java | 6 +- src/main/java/com/juick/ActivityPubManager.java | 4 +- src/main/java/com/juick/EmailManager.java | 20 +- src/main/java/com/juick/TelegramBotManager.java | 2 +- src/main/java/com/juick/XMPPManager.java | 6 +- .../config/ActivityPubClientErrorHandler.java | 3 +- .../java/com/juick/config/ActivityPubConfig.java | 3 +- .../java/com/juick/config/HttpClientConfig.java | 51 ++- src/main/java/com/juick/config/SecurityConfig.java | 236 +++++------ src/main/java/com/juick/config/WebConfig.java | 13 +- src/main/java/com/juick/model/Message.java | 12 +- src/main/java/com/juick/model/Tag.java | 7 +- src/main/java/com/juick/model/User.java | 10 +- src/main/java/com/juick/model/package-info.java | 6 +- .../java/com/juick/service/UserServiceImpl.java | 2 +- .../HTTPSignatureAuthenticationFilter.java | 17 +- .../security/HashParamAuthenticationFilter.java | 54 +-- .../com/juick/util/adapters/SimpleDateAdapter.java | 3 +- .../java/com/juick/util/xmpp/JidConverter.java | 4 +- .../java/com/juick/util/xmpp/iq/MessageQuery.java | 2 +- .../java/com/juick/util/xmpp/iq/package-info.java | 8 +- src/main/java/com/juick/www/VaryHandler.java | 2 +- src/main/java/com/juick/www/WebApp.java | 7 +- .../java/com/juick/www/api/ApiSocialLogin.java | 2 +- src/main/java/com/juick/www/api/Post.java | 2 +- src/main/java/com/juick/www/api/Service.java | 9 +- src/main/java/com/juick/www/controllers/Login.java | 3 +- .../java/com/juick/www/controllers/Settings.java | 19 +- src/main/java/com/juick/www/controllers/Site.java | 4 +- .../com/juick/www/controllers/SocialLogin.java | 12 +- .../java/com/juick/www/filters/AnythingFilter.java | 16 +- src/main/java/com/juick/www/rss/MessagesView.java | 12 +- src/main/java/com/juick/www/rss/RepliesView.java | 14 +- .../pebble/extension/FormatterExtension.java | 3 + .../extension/filters/FormatMessageFilter.java | 8 +- .../pebble/extension/filters/PrettyTimeFilter.java | 6 +- .../pebble/extension/filters/TagsListFilter.java | 6 +- .../pebble/extension/filters/TimestampFilter.java | 6 +- .../commons/mail/util/MimeMessageParser.java | 452 +++++++++++++++++++++ src/main/resources/application.properties | 1 + src/main/resources/templates/layouts/default.html | 4 +- src/main/resources/templates/layouts/login.html | 3 +- src/main/resources/templates/views/post.html | 1 + 51 files changed, 793 insertions(+), 327 deletions(-) create mode 100644 src/main/java/org/apache/commons/mail/util/MimeMessageParser.java (limited to 'src/main') diff --git a/src/main/assets/scripts.js b/src/main/assets/scripts.js index b103810d..cc811808 100644 --- a/src/main/assets/scripts.js +++ b/src/main/assets/scripts.js @@ -417,6 +417,7 @@ function checkUsername() { /******************************************************************************/ function openDialogLogin() { + const token = document.body.getAttribute('data-token'); let html = `