From 46de95a1a472ed5a62d1b0c30c13918afab392fe Mon Sep 17 00:00:00 2001 From: mgzero Date: Sat, 4 May 2019 22:26:44 -0400 Subject: [PATCH 1/9] fix for saving member group also includes updates for configuration settings --- karma.conf.js | 36 ++-- src/main/java/com/zfgc/ForumApplication.java | 3 +- .../java/com/zfgc/config/ZfgcSamlConfig.java | 9 + .../com/zfgc/controller/BaseController.java | 4 + .../com/zfgc/controller/ConfigController.java | 24 +++ .../dataprovider/UserProfileDataProvider.java | 11 ++ .../com/zfgc/model/config/ServerConfig.java | 21 +++ src/main/webapp/index.html | 177 +++++++++--------- .../common/header/zfgc-header.directive.js | 6 +- 9 files changed, 185 insertions(+), 106 deletions(-) create mode 100644 src/main/java/com/zfgc/controller/ConfigController.java create mode 100644 src/main/java/com/zfgc/model/config/ServerConfig.java diff --git a/karma.conf.js b/karma.conf.js index 40fe6117..6d37fe35 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -75,8 +75,6 @@ module.exports = function(config) { "./src/main/webapp/scripts/pm/conversation/add-user-modal.controller.js", - "./src/main/webapp/scripts/common/header/zfgc-header.directive.js", - "./src/main/webapp/scripts/directives/whos-online/whos-online.directive.js", "./src/main/webapp/scripts/directives/user-name-icon/user-name-icon.directive.js", @@ -85,10 +83,14 @@ module.exports = function(config) { "./src/main/webapp/scripts/directives/paginator/paginator.directive.js", + "./src/main/webapp/scripts/directives/list-view/list-view.directive.js", + "./src/main/webapp/scripts/directives/collapsible-widget/collapsible-widget.directive.js", "./src/main/webapp/scripts/directives/avatar-gallery/avatar-gallery.directive.js", + "./src/main/webapp/scripts/common/header/zfgc-header.directive.js", + "./src/main/webapp/scripts/users/users.service.js", "./src/main/webapp/scripts/users/users.controller.js", @@ -99,14 +101,14 @@ module.exports = function(config) { "./src/main/webapp/scripts/users/activation.controller.js", + "./src/main/webapp/scripts/sockets/web-socket.service.js", + "./src/main/webapp/scripts/searches/userSearches.service.js", "./src/main/webapp/scripts/searches/searches.controller.js", "./src/main/webapp/scripts/potm/potm.module.js", - "./src/main/webapp/scripts/sockets/web-socket.service.js", - "./src/main/webapp/scripts/pm/pmSend.controller.js", "./src/main/webapp/scripts/pm/pmComparator.service.js", @@ -119,12 +121,12 @@ module.exports = function(config) { "./src/main/webapp/scripts/notifications/notifications.controller.js", - "./src/main/webapp/scripts/lookups/lookups.service.js", - "./src/main/webapp/scripts/modal/modal.service.js", "./src/main/webapp/scripts/modal/modal.controller.js", + "./src/main/webapp/scripts/lookups/lookups.service.js", + "./src/main/webapp/scripts/interceptor/interceptor.service.js", "./src/main/webapp/scripts/forum/forum.service.js", @@ -135,9 +137,13 @@ module.exports = function(config) { "./src/main/webapp/scripts/forms/forms.controller.js", + "./src/main/webapp/scripts/filters/range.filter.js", + "./src/main/webapp/scripts/error/error.module.js", - "./src/main/webapp/scripts/filters/range.filter.js", + "./src/main/webapp/scripts/common/server-config.service.js", + + "./src/main/webapp/scripts/ui-bootstrap-tpls.js", "./src/main/webapp/scripts/app.js", @@ -157,10 +163,14 @@ module.exports = function(config) { "./src/main/webapp/scripts/users/users.html", + "./src/main/webapp/scripts/common/header/zfgc-header.html", + "./src/main/webapp/scripts/directives/avatar-gallery/avatar-gallery.html", "./src/main/webapp/scripts/directives/collapsible-widget/collapsible-widget.html", + "./src/main/webapp/scripts/directives/list-view/list-view.directive.html", + "./src/main/webapp/scripts/directives/paginator/paginator.html", "./src/main/webapp/scripts/directives/user-details/user-details.directive.html", @@ -169,8 +179,6 @@ module.exports = function(config) { "./src/main/webapp/scripts/directives/whos-online/whos-online.directive.html", - "./src/main/webapp/scripts/common/header/zfgc-header.html", - "./src/main/webapp/scripts/modal/templates/modalAddUserToConvo.html", "./src/main/webapp/scripts/modal/templates/modalAvatarGallery.html", @@ -187,13 +195,9 @@ module.exports = function(config) { "./src/main/webapp/scripts/modal/templates/modalValidationError.html", - "./src/main/webapp/scripts/pm/conversation/conversation.html", - "./src/main/webapp/scripts/notifications/templates/alert-template.html", - "./src/main/webapp/scripts/popover/templates/popoverMemberGroups.html", - - "./src/main/webapp/scripts/popover/templates/popoverUserDetails.html", + "./src/main/webapp/scripts/pm/conversation/conversation.html", "./src/main/webapp/scripts/pm/convobox/convoBox.html", @@ -201,6 +205,10 @@ module.exports = function(config) { "./src/main/webapp/scripts/pm/pmTwoFactor/pmTwoFactor.html", + "./src/main/webapp/scripts/popover/templates/popoverMemberGroups.html", + + "./src/main/webapp/scripts/popover/templates/popoverUserDetails.html", + "./src/main/webapp/scripts/users/member-search/member-listing.html", "./src/main/webapp/scripts/users/user-profile/account-settings.html", diff --git a/src/main/java/com/zfgc/ForumApplication.java b/src/main/java/com/zfgc/ForumApplication.java index be5c3107..ff980675 100644 --- a/src/main/java/com/zfgc/ForumApplication.java +++ b/src/main/java/com/zfgc/ForumApplication.java @@ -170,8 +170,6 @@ public void configure(ServiceProviderBuilder serviceProvider) throws Exception { .metadataManager() .refreshCheckInterval(0) .metadataTrustCheck(false) - - //.localMetadataLocation("classpath:/sp-metadata.xml") .and() .extendedMetadata() @@ -211,6 +209,7 @@ public void configure(ServiceProviderBuilder serviceProvider) throws Exception { "/lookups/**", "/contentstream/**", "/subscriptions/threads/**", + "/config/**", "/users/profile/{{\\d+}}", "/users/navigation", "/users/loggedInUser", diff --git a/src/main/java/com/zfgc/config/ZfgcSamlConfig.java b/src/main/java/com/zfgc/config/ZfgcSamlConfig.java index 6478c8dd..50abbd56 100644 --- a/src/main/java/com/zfgc/config/ZfgcSamlConfig.java +++ b/src/main/java/com/zfgc/config/ZfgcSamlConfig.java @@ -15,6 +15,7 @@ public class ZfgcSamlConfig { private String defaultSuccessUrl; private String defaultFailureUrl; private String idpSelectionPageUrl; + private String localMetaData; public String getDefaultSuccessUrl() { return defaultSuccessUrl; @@ -91,4 +92,12 @@ public void setEntityId(String entityId) { public String getEntityBaseUrl(){ return scheme + "://" + serverName + ":" + serverPort + contextPath; } + + public String getLocalMetaData() { + return localMetaData; + } + + public void setLocalMetaData(String localMetaData) { + this.localMetaData = localMetaData; + } } diff --git a/src/main/java/com/zfgc/controller/BaseController.java b/src/main/java/com/zfgc/controller/BaseController.java index a8719609..3c9c957e 100644 --- a/src/main/java/com/zfgc/controller/BaseController.java +++ b/src/main/java/com/zfgc/controller/BaseController.java @@ -8,12 +8,16 @@ import org.springframework.messaging.simp.SimpMessagingTemplate; import org.springframework.security.core.Authentication; +import com.zfgc.config.ZfgcSamlConfig; import com.zfgc.model.users.Users; public abstract class BaseController { @Autowired HttpServletRequest request; + @Autowired + ZfgcSamlConfig zfgcSamlConfig; + protected Users zfgcUser(){ Principal userPrincipal = request.getUserPrincipal(); return zfgcUser(userPrincipal); diff --git a/src/main/java/com/zfgc/controller/ConfigController.java b/src/main/java/com/zfgc/controller/ConfigController.java new file mode 100644 index 00000000..1307ca9e --- /dev/null +++ b/src/main/java/com/zfgc/controller/ConfigController.java @@ -0,0 +1,24 @@ +package com.zfgc.controller; + +import org.springframework.http.ResponseEntity; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.ResponseBody; + +import com.zfgc.model.config.ServerConfig; + +@Controller +@RequestMapping(value="/config") +public class ConfigController extends BaseController { + + @RequestMapping(value="", method=RequestMethod.GET, produces="application/json") + @ResponseBody + public ResponseEntity getServerSideConfig(){ + ServerConfig config = new ServerConfig(); + config.setIdpEntityId(zfgcSamlConfig.getEntityId()); + + return ResponseEntity.ok(config); + } + +} diff --git a/src/main/java/com/zfgc/dataprovider/UserProfileDataProvider.java b/src/main/java/com/zfgc/dataprovider/UserProfileDataProvider.java index 80c1547b..7eb7a793 100644 --- a/src/main/java/com/zfgc/dataprovider/UserProfileDataProvider.java +++ b/src/main/java/com/zfgc/dataprovider/UserProfileDataProvider.java @@ -11,8 +11,10 @@ import com.zfgc.dao.UserPersonalInfoDao; import com.zfgc.dao.UserProfileDao; import com.zfgc.dao.UserSecuritySettingsDao; +import com.zfgc.dao.UsersDao; import com.zfgc.dbobj.BrMemberGroupUserDbObjExample; import com.zfgc.dbobj.UserProfileViewDbObj; +import com.zfgc.dbobj.UsersDbObjExample; import com.zfgc.exception.ZfgcNotFoundException; import com.zfgc.model.avatar.Avatar; import com.zfgc.model.bridge.BrMemberGroupUser; @@ -59,6 +61,9 @@ public class UserProfileDataProvider extends AbstractDataProvider { @Autowired BrMemberGroupUserDao brMemberGroupUserDao; + @Autowired + UsersDao usersDao; + public UserProfileView getUserProfile(Integer userId) throws Exception{ UserProfileViewDbObj userProfileViewDbObj = null; try{ @@ -112,6 +117,12 @@ public void saveAccountSettings(Users accountSettings) throws RuntimeException { brMemberGroupUserDao.updateOrInsert(memberGroupUser); } + Users user = new Users(); + user.setPrimaryMemberGroupId(accountSettings.getPrimaryMemberGroupId()); + UsersDbObjExample example = usersDao.getExample(); + ex.createCriteria().andUsersIdEqualTo(accountSettings.getUsersId()); + usersDao.updateByExample(user, example); + } private void updateEmailAddress(Integer usersId, String email) throws Exception { diff --git a/src/main/java/com/zfgc/model/config/ServerConfig.java b/src/main/java/com/zfgc/model/config/ServerConfig.java new file mode 100644 index 00000000..05f3b540 --- /dev/null +++ b/src/main/java/com/zfgc/model/config/ServerConfig.java @@ -0,0 +1,21 @@ +package com.zfgc.model.config; + +import com.zfgc.model.BaseZfgcModel; + +public class ServerConfig extends BaseZfgcModel { + private String idpEntityId; + + @Override + public String getHMAC() throws Exception { + // TODO Auto-generated method stub + return null; + } + + public String getIdpEntityId() { + return idpEntityId; + } + + public void setIdpEntityId(String idpEntityId) { + this.idpEntityId = idpEntityId; + } +} diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index 8d3cbece..efd28187 100644 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -16,28 +16,28 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + @@ -73,71 +73,74 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/webapp/scripts/common/header/zfgc-header.directive.js b/src/main/webapp/scripts/common/header/zfgc-header.directive.js index 475674c1..ca86d3b5 100644 --- a/src/main/webapp/scripts/common/header/zfgc-header.directive.js +++ b/src/main/webapp/scripts/common/header/zfgc-header.directive.js @@ -1,7 +1,7 @@ (function(){ 'use strict'; - function zfgcHeader($rootScope, UserService, $q, $window, $location, $resource, $state, $timeout, WebsocketService, WhosOnlineService) { + function zfgcHeader($rootScope, UserService, $q, $window, $location, $resource, $state, $timeout, ServerConfigService, WebsocketService, WhosOnlineService) { return { restrict: 'E', transclude: true, @@ -29,7 +29,7 @@ scope.goToIdp = function(){ var returnTo = $location.absUrl(); - $window.location = "http://devidp.zfgc.com/saml2/idp/SSOService.php?spentityid=zfgc-sp&target=" + returnTo; + $window.location = "http://devidp.zfgc.com/saml2/idp/SSOService.php?spentityid=" + ServerConfigService.config.idpEntityId + "&target=" + returnTo; }; scope.startListener = function() { @@ -51,5 +51,5 @@ angular .module("zfgc.forum") - .directive("zfgcHeader", ['$rootScope','UserService', '$q', '$window', '$location', '$resource', '$state', '$timeout', 'WebsocketService', 'WhosOnlineService', zfgcHeader]); + .directive("zfgcHeader", ['$rootScope','UserService', '$q', '$window', '$location', '$resource', '$state', '$timeout', 'ServerConfigService', 'WebsocketService', 'WhosOnlineService', zfgcHeader]); })(); \ No newline at end of file From 40092ed4b70b3638f9c5e43b730c4edcd384e723 Mon Sep 17 00:00:00 2001 From: mgzero Date: Sun, 5 May 2019 21:10:53 -0400 Subject: [PATCH 2/9] Fixes validation modal --- karma.conf.js | 8 +- src/main/webapp/assets/styles/global.scss | 7 + src/main/webapp/assets/styles/modal.scss | 6 + .../styles/themes/_midnight-variables.scss | 1 + .../webapp/assets/styles/themes/midnight.scss | 4 + src/main/webapp/index.html | 180 +++++++++--------- .../webapp/scripts/modal/modal.service.js | 6 +- .../modal/templates/modalValidationError.html | 21 +- 8 files changed, 129 insertions(+), 104 deletions(-) diff --git a/karma.conf.js b/karma.conf.js index 6d37fe35..4434acd8 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -85,10 +85,10 @@ module.exports = function(config) { "./src/main/webapp/scripts/directives/list-view/list-view.directive.js", - "./src/main/webapp/scripts/directives/collapsible-widget/collapsible-widget.directive.js", - "./src/main/webapp/scripts/directives/avatar-gallery/avatar-gallery.directive.js", + "./src/main/webapp/scripts/directives/collapsible-widget/collapsible-widget.directive.js", + "./src/main/webapp/scripts/common/header/zfgc-header.directive.js", "./src/main/webapp/scripts/users/users.service.js", @@ -165,10 +165,10 @@ module.exports = function(config) { "./src/main/webapp/scripts/common/header/zfgc-header.html", - "./src/main/webapp/scripts/directives/avatar-gallery/avatar-gallery.html", - "./src/main/webapp/scripts/directives/collapsible-widget/collapsible-widget.html", + "./src/main/webapp/scripts/directives/avatar-gallery/avatar-gallery.html", + "./src/main/webapp/scripts/directives/list-view/list-view.directive.html", "./src/main/webapp/scripts/directives/paginator/paginator.html", diff --git a/src/main/webapp/assets/styles/global.scss b/src/main/webapp/assets/styles/global.scss index 0adc2cfe..59e6314b 100644 --- a/src/main/webapp/assets/styles/global.scss +++ b/src/main/webapp/assets/styles/global.scss @@ -277,3 +277,10 @@ button:disabled{ display:flex; align-items:center; } + +ol{ + li{ + font-size: 14px; + list-style-type: decimal; + } +} diff --git a/src/main/webapp/assets/styles/modal.scss b/src/main/webapp/assets/styles/modal.scss index d7328741..75380fa2 100644 --- a/src/main/webapp/assets/styles/modal.scss +++ b/src/main/webapp/assets/styles/modal.scss @@ -5,6 +5,12 @@ } .modal-wrapper{ + .modal-header{ + .error-icon{ + text-shadow: 0px 0px 10px black; + } + } + form{ display:inline-block; width:100%; diff --git a/src/main/webapp/assets/styles/themes/_midnight-variables.scss b/src/main/webapp/assets/styles/themes/_midnight-variables.scss index 6a61acaa..44dc1e0c 100644 --- a/src/main/webapp/assets/styles/themes/_midnight-variables.scss +++ b/src/main/webapp/assets/styles/themes/_midnight-variables.scss @@ -28,6 +28,7 @@ $midnight-inner-border: #3d4458; //misc $midnight-user-online: #00ff21; $midnight-error-text: #ff5959; +$midnight-warning-text: #ffc43a; $midnight-success-text: #31c72f; //anchor elements diff --git a/src/main/webapp/assets/styles/themes/midnight.scss b/src/main/webapp/assets/styles/themes/midnight.scss index a5c59f40..6f3d88c7 100644 --- a/src/main/webapp/assets/styles/themes/midnight.scss +++ b/src/main/webapp/assets/styles/themes/midnight.scss @@ -174,6 +174,10 @@ a:hover{ background-color:$midnight-modal-background-color; .modal-header{ + .error-icon{ + color:$midnight-error-text; + } + h2{ color:$midnight-modal-header-text-color; } diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index efd28187..6de72403 100644 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -16,28 +16,28 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + @@ -73,74 +73,74 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/webapp/scripts/modal/modal.service.js b/src/main/webapp/scripts/modal/modal.service.js index f4c4c117..b01752a1 100644 --- a/src/main/webapp/scripts/modal/modal.service.js +++ b/src/main/webapp/scripts/modal/modal.service.js @@ -71,7 +71,11 @@ ModalService.currentDialog = $uibModal.open({ templateUrl: 'scripts/modal/templates/modalValidationError.html', windowClass: 'ngdialog-theme-default', - controller: 'ModalCtrl as vm'}); + controller: 'ModalCtrl as vm', + resolve : { + params: null + } + }); } ModalService.closeValidationErrors = function(){ diff --git a/src/main/webapp/scripts/modal/templates/modalValidationError.html b/src/main/webapp/scripts/modal/templates/modalValidationError.html index f3a12eb2..07c11057 100644 --- a/src/main/webapp/scripts/modal/templates/modalValidationError.html +++ b/src/main/webapp/scripts/modal/templates/modalValidationError.html @@ -1,25 +1,28 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From e0be59f1736ec3a537f7ce7f2ce17952383fd275 Mon Sep 17 00:00:00 2001 From: mgzero Date: Sat, 1 Jun 2019 11:05:09 -0400 Subject: [PATCH 6/9] removes padding from conversation --- karma.conf.js | 12 +- src/main/webapp/assets/styles/convobox.scss | 2 + src/main/webapp/index.html | 180 ++++++++++---------- 3 files changed, 99 insertions(+), 95 deletions(-) diff --git a/karma.conf.js b/karma.conf.js index dbea8f6e..0fe74b6a 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -85,10 +85,10 @@ module.exports = function(config) { "./src/main/webapp/scripts/directives/list-view/list-view.directive.js", - "./src/main/webapp/scripts/directives/collapsible-widget/collapsible-widget.directive.js", - "./src/main/webapp/scripts/directives/avatar-gallery/avatar-gallery.directive.js", + "./src/main/webapp/scripts/directives/collapsible-widget/collapsible-widget.directive.js", + "./src/main/webapp/scripts/common/header/zfgc-header.directive.js", "./src/main/webapp/scripts/users/users.service.js", @@ -101,12 +101,12 @@ module.exports = function(config) { "./src/main/webapp/scripts/users/activation.controller.js", - "./src/main/webapp/scripts/sockets/web-socket.service.js", - "./src/main/webapp/scripts/searches/userSearches.service.js", "./src/main/webapp/scripts/searches/searches.controller.js", + "./src/main/webapp/scripts/sockets/web-socket.service.js", + "./src/main/webapp/scripts/potm/potm.module.js", "./src/main/webapp/scripts/pm/pmSend.controller.js", @@ -165,10 +165,10 @@ module.exports = function(config) { "./src/main/webapp/scripts/common/header/zfgc-header.html", - "./src/main/webapp/scripts/directives/avatar-gallery/avatar-gallery.html", - "./src/main/webapp/scripts/directives/collapsible-widget/collapsible-widget.html", + "./src/main/webapp/scripts/directives/avatar-gallery/avatar-gallery.html", + "./src/main/webapp/scripts/directives/list-view/list-view.directive.html", "./src/main/webapp/scripts/directives/paginator/paginator.html", diff --git a/src/main/webapp/assets/styles/convobox.scss b/src/main/webapp/assets/styles/convobox.scss index f2cdc81d..607db131 100644 --- a/src/main/webapp/assets/styles/convobox.scss +++ b/src/main/webapp/assets/styles/convobox.scss @@ -33,6 +33,8 @@ .conversation{ + padding: 0; + .message-wrapper{ .message-content{ min-height:200px; diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index 0fe310bc..62835515 100644 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -16,29 +16,29 @@ - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + @@ -74,72 +74,74 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From d69cb22de1c754c5c2a6e5a3e79889a0af686698 Mon Sep 17 00:00:00 2001 From: mgzero Date: Sat, 1 Jun 2019 12:17:00 -0400 Subject: [PATCH 7/9] reg success styling --- karma.conf.js | 20 +- src/main/webapp/assets/styles/users.scss | 4 + src/main/webapp/index.html | 182 +++++++++--------- .../webapp/scripts/users/registration.html | 2 +- 4 files changed, 106 insertions(+), 102 deletions(-) diff --git a/karma.conf.js b/karma.conf.js index 0fe74b6a..6d37fe35 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -77,18 +77,18 @@ module.exports = function(config) { "./src/main/webapp/scripts/directives/whos-online/whos-online.directive.js", - "./src/main/webapp/scripts/directives/user-details/user-details.directive.js", - "./src/main/webapp/scripts/directives/user-name-icon/user-name-icon.directive.js", + "./src/main/webapp/scripts/directives/user-details/user-details.directive.js", + "./src/main/webapp/scripts/directives/paginator/paginator.directive.js", "./src/main/webapp/scripts/directives/list-view/list-view.directive.js", - "./src/main/webapp/scripts/directives/avatar-gallery/avatar-gallery.directive.js", - "./src/main/webapp/scripts/directives/collapsible-widget/collapsible-widget.directive.js", + "./src/main/webapp/scripts/directives/avatar-gallery/avatar-gallery.directive.js", + "./src/main/webapp/scripts/common/header/zfgc-header.directive.js", "./src/main/webapp/scripts/users/users.service.js", @@ -101,12 +101,12 @@ module.exports = function(config) { "./src/main/webapp/scripts/users/activation.controller.js", + "./src/main/webapp/scripts/sockets/web-socket.service.js", + "./src/main/webapp/scripts/searches/userSearches.service.js", "./src/main/webapp/scripts/searches/searches.controller.js", - "./src/main/webapp/scripts/sockets/web-socket.service.js", - "./src/main/webapp/scripts/potm/potm.module.js", "./src/main/webapp/scripts/pm/pmSend.controller.js", @@ -165,18 +165,18 @@ module.exports = function(config) { "./src/main/webapp/scripts/common/header/zfgc-header.html", - "./src/main/webapp/scripts/directives/collapsible-widget/collapsible-widget.html", - "./src/main/webapp/scripts/directives/avatar-gallery/avatar-gallery.html", + "./src/main/webapp/scripts/directives/collapsible-widget/collapsible-widget.html", + "./src/main/webapp/scripts/directives/list-view/list-view.directive.html", "./src/main/webapp/scripts/directives/paginator/paginator.html", - "./src/main/webapp/scripts/directives/user-name-icon/user-name-icon.directive.html", - "./src/main/webapp/scripts/directives/user-details/user-details.directive.html", + "./src/main/webapp/scripts/directives/user-name-icon/user-name-icon.directive.html", + "./src/main/webapp/scripts/directives/whos-online/whos-online.directive.html", "./src/main/webapp/scripts/modal/templates/modalAddUserToConvo.html", diff --git a/src/main/webapp/assets/styles/users.scss b/src/main/webapp/assets/styles/users.scss index eba8eeaf..bd1e8db6 100644 --- a/src/main/webapp/assets/styles/users.scss +++ b/src/main/webapp/assets/styles/users.scss @@ -300,3 +300,7 @@ display: inline-block; } } + +.reg-success{ + padding: 5px; +} diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index 62835515..499afc30 100644 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -16,29 +16,29 @@ - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + @@ -74,74 +74,74 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/webapp/scripts/users/registration.html b/src/main/webapp/scripts/users/registration.html index 787810d0..de834636 100644 --- a/src/main/webapp/scripts/users/registration.html +++ b/src/main/webapp/scripts/users/registration.html @@ -7,7 +7,7 @@
-
+
Registration complete, please check your email for an activation link. You will be redirected to the home page in 5 seconds...
From 6e76fe632db364e7541b39158f006653b3a5e682 Mon Sep 17 00:00:00 2001 From: mgzero Date: Sat, 1 Jun 2019 12:37:26 -0400 Subject: [PATCH 8/9] 1.1.2 build settings --- pom.xml | 2 +- src/main/resources/dbmappers/EmailAddressDbObjMapper.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index e032b813..631d84b0 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.zfgc forum - 1.1.1-LINK + 1.1.2-LINK war forum diff --git a/src/main/resources/dbmappers/EmailAddressDbObjMapper.xml b/src/main/resources/dbmappers/EmailAddressDbObjMapper.xml index 58240f7a..6076678a 100644 --- a/src/main/resources/dbmappers/EmailAddressDbObjMapper.xml +++ b/src/main/resources/dbmappers/EmailAddressDbObjMapper.xml @@ -207,4 +207,4 @@ - + \ No newline at end of file From 518cdd08ed87b2cd0813a2c277afecced1573058 Mon Sep 17 00:00:00 2001 From: mgzero Date: Sat, 1 Jun 2019 12:40:17 -0400 Subject: [PATCH 9/9] mapper update --- .../dbmappers/SystemSettingsDbObjMapper.xml | 288 ++++++++++++++++++ 1 file changed, 288 insertions(+) create mode 100644 src/main/resources/dbmappers/SystemSettingsDbObjMapper.xml diff --git a/src/main/resources/dbmappers/SystemSettingsDbObjMapper.xml b/src/main/resources/dbmappers/SystemSettingsDbObjMapper.xml new file mode 100644 index 00000000..a83cbddc --- /dev/null +++ b/src/main/resources/dbmappers/SystemSettingsDbObjMapper.xml @@ -0,0 +1,288 @@ + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + SYSTEM_SETTING_ID, VALUE, CODE, CREATED_TS, UPDATED_TS + + + + + + delete from SYSTEM_SETTINGS + where SYSTEM_SETTING_ID = #{systemSettingId,jdbcType=INTEGER} + + + + delete from SYSTEM_SETTINGS + + + + + + + + SELECT MAX(SYSTEM_SETTING_ID) + 1 FROM SYSTEM_SETTINGS + + insert into SYSTEM_SETTINGS (SYSTEM_SETTING_ID, VALUE, CODE, + CREATED_TS, UPDATED_TS) + values (#{systemSettingId,jdbcType=INTEGER}, #{value,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, + #{createdTs,jdbcType=TIMESTAMP}, #{updatedTs,jdbcType=TIMESTAMP}) + + + + + SELECT MAX(SYSTEM_SETTING_ID) + 1 FROM SYSTEM_SETTINGS + + insert into SYSTEM_SETTINGS + + SYSTEM_SETTING_ID, + + VALUE, + + + CODE, + + + CREATED_TS, + + + UPDATED_TS, + + + + #{systemSettingId,jdbcType=INTEGER}, + + #{value,jdbcType=VARCHAR}, + + + #{code,jdbcType=VARCHAR}, + + + #{createdTs,jdbcType=TIMESTAMP}, + + + #{updatedTs,jdbcType=TIMESTAMP}, + + + + + + + update SYSTEM_SETTINGS + + + SYSTEM_SETTING_ID = #{record.systemSettingId,jdbcType=INTEGER}, + + + VALUE = #{record.value,jdbcType=VARCHAR}, + + + CODE = #{record.code,jdbcType=VARCHAR}, + + + CREATED_TS = #{record.createdTs,jdbcType=TIMESTAMP}, + + + UPDATED_TS = #{record.updatedTs,jdbcType=TIMESTAMP}, + + + + + + + + + update SYSTEM_SETTINGS + set SYSTEM_SETTING_ID = #{record.systemSettingId,jdbcType=INTEGER}, + VALUE = #{record.value,jdbcType=VARCHAR}, + CODE = #{record.code,jdbcType=VARCHAR}, + CREATED_TS = #{record.createdTs,jdbcType=TIMESTAMP}, + UPDATED_TS = #{record.updatedTs,jdbcType=TIMESTAMP} + + + + + + + update SYSTEM_SETTINGS + + + VALUE = #{value,jdbcType=VARCHAR}, + + + CODE = #{code,jdbcType=VARCHAR}, + + + CREATED_TS = #{createdTs,jdbcType=TIMESTAMP}, + + + UPDATED_TS = #{updatedTs,jdbcType=TIMESTAMP}, + + + where SYSTEM_SETTING_ID = #{systemSettingId,jdbcType=INTEGER} + + + + update SYSTEM_SETTINGS + set VALUE = #{value,jdbcType=VARCHAR}, + CODE = #{code,jdbcType=VARCHAR}, + CREATED_TS = #{createdTs,jdbcType=TIMESTAMP}, + UPDATED_TS = #{updatedTs,jdbcType=TIMESTAMP} + where SYSTEM_SETTING_ID = #{systemSettingId,jdbcType=INTEGER} + + \ No newline at end of file