-
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.
Browse files
Browse the repository at this point in the history
* implementing board videoconf in VC service with tests * recent state for implementing board authorization in VC * implementing VC element and room + VC element scope * adjusting VC scope to board element * adding VC response and node * add school id indexes * adding yellow to room color selector * seting type alias for better maintainability * implementing FEATURE_COLUMN_BOARD_VIDEOCONFERENCE_ENABLED for FE usage --------- Co-authored-by: Uwe Ilgenstein <[email protected]>
- Loading branch information
1 parent
c8be3a7
commit 0b4dacc
Showing
76 changed files
with
3,661 additions
and
82 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
33 changes: 33 additions & 0 deletions
33
apps/server/src/modules/board/controller/dto/element/video-conference-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 } from '@nestjs/swagger'; | ||
import { ContentElementType } from '../../../domain'; | ||
import { TimestampsResponse } from '../timestamps.response'; | ||
|
||
export class VideoConferenceElementContent { | ||
constructor({ title }: VideoConferenceElementContent) { | ||
this.title = title; | ||
} | ||
|
||
@ApiProperty() | ||
title: string; | ||
} | ||
|
||
export class VideoConferenceElementResponse { | ||
constructor({ id, content, timestamps, type }: VideoConferenceElementResponse) { | ||
this.id = id; | ||
this.timestamps = timestamps; | ||
this.type = type; | ||
this.content = content; | ||
} | ||
|
||
@ApiProperty({ pattern: '[a-f0-9]{24}' }) | ||
id: string; | ||
|
||
@ApiProperty({ enum: ContentElementType, enumName: 'ContentElementType' }) | ||
type: ContentElementType.VIDEO_CONFERENCE; | ||
|
||
@ApiProperty() | ||
timestamps: TimestampsResponse; | ||
|
||
@ApiProperty() | ||
content: VideoConferenceElementContent; | ||
} |
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
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
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
30 changes: 30 additions & 0 deletions
30
apps/server/src/modules/board/controller/mapper/video-conference-element-response.mapper.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,30 @@ | ||
import { ContentElementType, VideoConferenceElement } from '../../domain'; | ||
import { TimestampsResponse, VideoConferenceElementContent, VideoConferenceElementResponse } from '../dto'; | ||
import { BaseResponseMapper } from './base-mapper.interface'; | ||
|
||
export class VideoConferenceElementResponseMapper implements BaseResponseMapper { | ||
private static instance: VideoConferenceElementResponseMapper; | ||
|
||
public static getInstance(): VideoConferenceElementResponseMapper { | ||
if (!VideoConferenceElementResponseMapper.instance) { | ||
VideoConferenceElementResponseMapper.instance = new VideoConferenceElementResponseMapper(); | ||
} | ||
|
||
return VideoConferenceElementResponseMapper.instance; | ||
} | ||
|
||
mapToResponse(element: VideoConferenceElement): VideoConferenceElementResponse { | ||
const result = new VideoConferenceElementResponse({ | ||
id: element.id, | ||
timestamps: new TimestampsResponse({ lastUpdatedAt: element.updatedAt, createdAt: element.createdAt }), | ||
type: ContentElementType.VIDEO_CONFERENCE, | ||
content: new VideoConferenceElementContent({ title: element.title }), | ||
}); | ||
|
||
return result; | ||
} | ||
|
||
canMap(element: unknown): boolean { | ||
return element instanceof VideoConferenceElement; | ||
} | ||
} |
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
Oops, something went wrong.