-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into THR-18-dev-feature-h5p-editor
- Loading branch information
Showing
127 changed files
with
2,571 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
apps/server/src/modules/board/controller/dto/element/any-content-element.response.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
import { ExternalToolElementResponse } from './external-tool-element.response'; | ||
import { FileElementResponse } from './file-element.response'; | ||
import { RichTextElementResponse } from './rich-text-element.response'; | ||
import { SubmissionContainerElementResponse } from './submission-container-element.response'; | ||
|
||
export type AnyContentElementResponse = | ||
| FileElementResponse | ||
| RichTextElementResponse | ||
| SubmissionContainerElementResponse; | ||
| SubmissionContainerElementResponse | ||
| ExternalToolElementResponse; |
33 changes: 33 additions & 0 deletions
33
apps/server/src/modules/board/controller/dto/element/external-tool-element.response.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; | ||
import { ContentElementType } from '@shared/domain'; | ||
import { TimestampsResponse } from '../timestamps.response'; | ||
|
||
export class ExternalToolElementContent { | ||
constructor(props: ExternalToolElementContent) { | ||
this.contextExternalToolId = props.contextExternalToolId; | ||
} | ||
|
||
@ApiPropertyOptional() | ||
contextExternalToolId?: string; | ||
} | ||
|
||
export class ExternalToolElementResponse { | ||
constructor(props: ExternalToolElementResponse) { | ||
this.id = props.id; | ||
this.type = props.type; | ||
this.content = props.content; | ||
this.timestamps = props.timestamps; | ||
} | ||
|
||
@ApiProperty({ pattern: '[a-f0-9]{24}' }) | ||
id: string; | ||
|
||
@ApiProperty({ enum: ContentElementType, enumName: 'ContentElementType' }) | ||
type: ContentElementType.EXTERNAL_TOOL; | ||
|
||
@ApiProperty() | ||
content: ExternalToolElementContent; | ||
|
||
@ApiProperty() | ||
timestamps: TimestampsResponse; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.