diff --git a/avatar-realm-resource/src/main/resources/META-INF/keycloak-themes.json b/avatar-realm-resource/src/main/resources/META-INF/keycloak-themes.json deleted file mode 100644 index 893ff2b..0000000 --- a/avatar-realm-resource/src/main/resources/META-INF/keycloak-themes.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "themes": [ - { - "name": "account-avatar", - "types": [ - "account", - "admin" - ] - } - ] -} \ No newline at end of file diff --git a/avatar-realm-resource/src/main/resources/theme/account-avatar/account/account.ftl b/avatar-realm-resource/src/main/resources/theme/account-avatar/account/account.ftl deleted file mode 100755 index 9ba7f13..0000000 --- a/avatar-realm-resource/src/main/resources/theme/account-avatar/account/account.ftl +++ /dev/null @@ -1,93 +0,0 @@ -<#import "template.ftl" as layout> -<@layout.mainLayout active='account' bodyClass='user'; section> - -
-
-

${msg("editAccountHtmlTitle")}

-
-
- * ${msg("requiredFields")} -
-
- -
- - - - <#if !realm.registrationEmailAsUsername> -
-
- <#if realm.editUsernameAllowed>* -
- -
- disabled="disabled" value="${(account.username!'')}"/> -
-
- - -
-
- * -
- -
- -
-
- -
-
- * -
- -
- -
-
- -
-
- * -
- -
- -
-
- -
-
-
- <#if url.referrerURI??>${kcSanitize(msg("backToApplication")?no_esc)} - - -
-
-
-
- -
-
-

${msg("changeAvatarHtmlTitle")}

-
-
- - <#assign avatarUrl = url.accountUrl?replace("^(.*)(/account/?)(\\?(.*))?$", "$1/avatar-provider/?account&$4", 'r') /> -
- - - - - - -
-
-
- -
-
-
-
- - \ No newline at end of file diff --git a/avatar-realm-resource/src/main/resources/theme/account-avatar/account/messages/messages_de.properties b/avatar-realm-resource/src/main/resources/theme/account-avatar/account/messages/messages_de.properties deleted file mode 100755 index 31d9d6a..0000000 --- a/avatar-realm-resource/src/main/resources/theme/account-avatar/account/messages/messages_de.properties +++ /dev/null @@ -1 +0,0 @@ -changeAvatarHtmlTitle=Profilbild bearbeiten \ No newline at end of file diff --git a/avatar-realm-resource/src/main/resources/theme/account-avatar/account/messages/messages_en.properties b/avatar-realm-resource/src/main/resources/theme/account-avatar/account/messages/messages_en.properties deleted file mode 100755 index 08235a4..0000000 --- a/avatar-realm-resource/src/main/resources/theme/account-avatar/account/messages/messages_en.properties +++ /dev/null @@ -1 +0,0 @@ -changeAvatarHtmlTitle=Edit Avatar \ No newline at end of file diff --git a/avatar-realm-resource/src/main/resources/theme/account-avatar/account/theme.properties b/avatar-realm-resource/src/main/resources/theme/account-avatar/account/theme.properties deleted file mode 100644 index ee3f1d1..0000000 --- a/avatar-realm-resource/src/main/resources/theme/account-avatar/account/theme.properties +++ /dev/null @@ -1 +0,0 @@ -parent=keycloak diff --git a/avatar-realm-resource/src/main/resources/theme/account-avatar/admin/resources/js/user-avatar.js b/avatar-realm-resource/src/main/resources/theme/account-avatar/admin/resources/js/user-avatar.js deleted file mode 100644 index ff9ce26..0000000 --- a/avatar-realm-resource/src/main/resources/theme/account-avatar/admin/resources/js/user-avatar.js +++ /dev/null @@ -1,26 +0,0 @@ -module.service('UserAvatar', function(Auth) { - this.url = function(user, realm) { - return authUrl + '/realms/' + realm.realm + '/avatar-provider/admin/' + user.id + "?access_token=" + Auth.authz.token + "&" + + new Date().getTime(); - } -}); - -module.controller('UserAvatarCtrl', function($scope, $http, Notifications, UserAvatar) { - $scope.avatarUrl = UserAvatar.url($scope.user, $scope.realm); - - $scope.uploadAvatar = function(files) { - var fd = new FormData(); - //Take the first selected file - fd.append("image", files[0]); - - $http.post($scope.avatarUrl, fd, { - headers: {'Content-Type': undefined }, - transformRequest: angular.identity - }).then(function() { - Notifications.success("Your changes have been saved to the user."); - $scope.avatarUrl = UserAvatar.url($scope.user, $scope.realm); - }, function(error) { - console.error(error); - Notifications.error("Could not save the avatar"); - }); - } -}); diff --git a/avatar-realm-resource/src/main/resources/theme/account-avatar/admin/resources/partials/user-detail.html b/avatar-realm-resource/src/main/resources/theme/account-avatar/admin/resources/partials/user-detail.html deleted file mode 100644 index f2b346a..0000000 --- a/avatar-realm-resource/src/main/resources/theme/account-avatar/admin/resources/partials/user-detail.html +++ /dev/null @@ -1,168 +0,0 @@ -
- - - - -
- -
-
- -
- -
-
- -
- -
- {{user.createdTimestamp|date:'shortDate'}} {{user.createdTimestamp|date:'mediumTime'}} -
-
- -
- -
- - -
-
- - -
- - -
- -
-
-
- - -
- -
-
-
- - -
- -
-
- -
- -
- -
- {{:: 'user-enabled.tooltip' | translate}} -
-
- -
- -
- {{:: 'user-temporarily-locked.tooltip' | translate}} -
- -
-
-
- - - {{:: 'user-link.tooltip' | translate}} -
-
- - - {{:: 'user-origin.tooltip' | translate}} -
-
- -
- -
- {{:: 'email-verified.tooltip' | translate}} -
-
- - -
- -
- {{:: 'required-user-actions.tooltip' | translate}} -
- -
- -
-
- -
-
-
- -
- - -
- -
- {{:: 'impersonate-user.tooltip' | translate}} -
- -
- -
-
- - -
- -
- - -
-
- -
-
-
- Avatar -
-
- -
-
-
- - -
- -
-
-
-
- -
- - diff --git a/avatar-realm-resource/src/main/resources/theme/account-avatar/admin/theme.properties b/avatar-realm-resource/src/main/resources/theme/account-avatar/admin/theme.properties deleted file mode 100644 index 5e1c81b..0000000 --- a/avatar-realm-resource/src/main/resources/theme/account-avatar/admin/theme.properties +++ /dev/null @@ -1,2 +0,0 @@ -parent=keycloak -scripts=js/user-avatar.js