mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-01-23 06:53:21 +00:00
FrontendConfig DTOs: Make properties consistently optional
Some properties already have a IsOptional decorator, this makes the properties themselves also optional Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
99103ad217
commit
0573ce4e08
1 changed files with 8 additions and 8 deletions
|
@ -84,7 +84,7 @@ export class BrandingDto {
|
||||||
*/
|
*/
|
||||||
@IsString()
|
@IsString()
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
name: string;
|
name?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The logo to be displayed next to the HedgeDoc logo
|
* The logo to be displayed next to the HedgeDoc logo
|
||||||
|
@ -92,7 +92,7 @@ export class BrandingDto {
|
||||||
*/
|
*/
|
||||||
@IsUrl()
|
@IsUrl()
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
logo: URL;
|
logo?: URL;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class CustomAuthEntry {
|
export class CustomAuthEntry {
|
||||||
|
@ -148,7 +148,7 @@ export class SpecialUrlsDto {
|
||||||
*/
|
*/
|
||||||
@IsUrl()
|
@IsUrl()
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
privacy: URL;
|
privacy?: URL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A link to the terms of use
|
* A link to the terms of use
|
||||||
|
@ -156,7 +156,7 @@ export class SpecialUrlsDto {
|
||||||
*/
|
*/
|
||||||
@IsUrl()
|
@IsUrl()
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
termsOfUse: URL;
|
termsOfUse?: URL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A link to the imprint
|
* A link to the imprint
|
||||||
|
@ -164,7 +164,7 @@ export class SpecialUrlsDto {
|
||||||
*/
|
*/
|
||||||
@IsUrl()
|
@IsUrl()
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
imprint: URL;
|
imprint?: URL;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class IframeCommunicationDto {
|
export class IframeCommunicationDto {
|
||||||
|
@ -174,7 +174,7 @@ export class IframeCommunicationDto {
|
||||||
*/
|
*/
|
||||||
@IsUrl()
|
@IsUrl()
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
editorOrigin: URL;
|
editorOrigin?: URL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The origin under which the renderer page will be served
|
* The origin under which the renderer page will be served
|
||||||
|
@ -182,7 +182,7 @@ export class IframeCommunicationDto {
|
||||||
*/
|
*/
|
||||||
@IsUrl()
|
@IsUrl()
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
rendererOrigin: URL;
|
rendererOrigin?: URL;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class FrontendConfigDto {
|
export class FrontendConfigDto {
|
||||||
|
@ -239,7 +239,7 @@ export class FrontendConfigDto {
|
||||||
*/
|
*/
|
||||||
@IsUrl()
|
@IsUrl()
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
plantUmlServer: URL;
|
plantUmlServer?: URL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The maximal length of each document
|
* The maximal length of each document
|
||||||
|
|
Loading…
Reference in a new issue