From 1fbb461faa26047e350ab3319684f7ab62154c3e Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Fri, 26 Nov 2021 10:31:50 +0200 Subject: [PATCH 1/3] Utilities service minor changes. Remove margin from header title in navbar. --- login/user.component.html | 2 +- services/utilities.service.ts | 12 ++++-------- sharedComponents/navigationBar.component.html | 4 ++-- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/login/user.component.html b/login/user.component.html index db670948..fa08e027 100644 --- a/login/user.component.html +++ b/login/user.component.html @@ -52,7 +52,7 @@ -
+
The requested page requires authentication. Please sign in to continue. diff --git a/services/utilities.service.ts b/services/utilities.service.ts index e9f59fce..16a92dc5 100644 --- a/services/utilities.service.ts +++ b/services/utilities.service.ts @@ -13,15 +13,11 @@ export class UtilitiesService { uploadPhoto(url: string, photo: File): Observable { const formData = new FormData(); formData.append('photo', photo); - return this.http.post(url, formData, CustomOptions.getAuthOptions()); + return this.http.post(url, formData, {withCredentials: true}); } - deletePhoto(url: string) { - return this.http.delete(url, CustomOptions.getAuthOptions()); + deletePhoto(url: string): Observable { + return this.http.delete(url, {withCredentials: true}); } - - getTiny(url: string) { - return this.http.get(url, {responseType: 'text'}); - } - + } diff --git a/sharedComponents/navigationBar.component.html b/sharedComponents/navigationBar.component.html index b0b0fd51..7053eac6 100644 --- a/sharedComponents/navigationBar.component.html +++ b/sharedComponents/navigationBar.component.html @@ -272,7 +272,7 @@ class="uk-responsive-height">
-

{{header.title}}

+

{{header.title}}

@@ -284,7 +284,7 @@ class="uk-responsive-height">
-

{{header.title}}

+

{{header.title}}

From 8f991bc9a81cb5940a39cfcecef0e666e9c2cbc8 Mon Sep 17 00:00:00 2001 From: argirok Date: Fri, 26 Nov 2021 14:45:12 +0200 Subject: [PATCH 2/3] Updates in customization: upload an image as background for the search form --- connect/community/CustomizationOptions.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/connect/community/CustomizationOptions.ts b/connect/community/CustomizationOptions.ts index 38ef08b6..dbadc970 100644 --- a/connect/community/CustomizationOptions.ts +++ b/connect/community/CustomizationOptions.ts @@ -25,6 +25,7 @@ export class CustomizationOptions { color: string; //background imageUrl: string; imageFile: string; + position:string; } }; buttons: { @@ -49,7 +50,8 @@ export class CustomizationOptions { form : { color: CustomizationOptions.getRGBA(this.identity.mainColor,0.15), imageUrl : null, - imageFile : null + imageFile : null, + position: null } }; @@ -104,6 +106,9 @@ export class CustomizationOptions { if(!current.backgrounds.form){ current.backgrounds.form = Object.assign({}, updated.backgrounds.form); } + if(!current.backgrounds.form.position){ + current.backgrounds.form.position = "center bottom" + } if(!current.buttons){ current.buttons = Object.assign({}, updated.buttons); } From 2eb06717dd681898ef47da0f5da39a9005df3878 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Mon, 29 Nov 2021 11:18:42 +0200 Subject: [PATCH 3/3] Icons-Preview: Add new icons --- utils/icons/icons-preview/icons-preview.component.ts | 12 ++++++++++++ utils/icons/icons-preview/icons-preview.module.ts | 6 +++--- utils/icons/icons.ts | 4 ++-- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/utils/icons/icons-preview/icons-preview.component.ts b/utils/icons/icons-preview/icons-preview.component.ts index 1a011bda..e668948c 100644 --- a/utils/icons/icons-preview/icons-preview.component.ts +++ b/utils/icons/icons-preview/icons-preview.component.ts @@ -110,6 +110,18 @@ import {Component} from "@angular/core";
check_circle_outlined
+
+ +
reset
+
+
+ +
send
+
+
+ +
print
+

Usage

diff --git a/utils/icons/icons-preview/icons-preview.module.ts b/utils/icons/icons-preview/icons-preview.module.ts index 1a1d9edb..45246007 100644 --- a/utils/icons/icons-preview/icons-preview.module.ts +++ b/utils/icons/icons-preview/icons-preview.module.ts @@ -15,8 +15,8 @@ import { database, done, earth, edit, group, lock, mail, person_add, photo, - preview, refresh, - remove, remove_circle, remove_circle_outline, search + preview, print, refresh, + remove, remove_circle, remove_circle_outline, reset, search, send } from "../icons"; @NgModule({ @@ -30,7 +30,7 @@ export class IconsPreviewModule { constructor(private iconsService: IconsService) { this.iconsService.registerIcons([arrow_left, arrow_right, arrow_up, arrow_down, book, database, cog, earth, edit, remove, preview, bullet, remove_circle, remove_circle_outline, person_add, cloud_upload, add, group, lock, search, - refresh, close, done, mail, photo, check_circle_outlined + refresh, close, done, mail, photo, check_circle_outlined, reset, send, print ]) } } diff --git a/utils/icons/icons.ts b/utils/icons/icons.ts index 057cf80b..f8089562 100644 --- a/utils/icons/icons.ts +++ b/utils/icons/icons.ts @@ -132,8 +132,6 @@ export const check_circle_outlined = { data: '' } -/** Add new icon under this line to be sure that it will be added on preview */ - export const reset = { name: 'reset', data: '' @@ -148,3 +146,5 @@ export const print = { name: 'print', data: '' } + +/** Add new icon under this line to be sure that it will be added on preview */