This repository has been archived by the owner on Apr 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from oss-videochat/maintenance
maintenance
- Loading branch information
Showing
174 changed files
with
6,729 additions
and
6,443 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"printWidth": 100, | ||
"singleQuote": false, | ||
"tabWidth": 4, | ||
"trailingComma": "es5" | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -8,6 +8,6 @@ | |
"build": "tsc" | ||
}, | ||
"dependencies": { | ||
"typescript": "^3.9.6" | ||
"typescript": "^3.9.7" | ||
} | ||
} |
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,4 +1,4 @@ | ||
export enum HostDisconnectAction { | ||
CLOSE_ROOM, | ||
TRANSFER_HOST, | ||
CLOSE_ROOM, | ||
TRANSFER_HOST, | ||
} |
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,5 +1,5 @@ | ||
export enum MessageType { | ||
GROUP, | ||
DIRECT, | ||
SYSTEM, | ||
GROUP, | ||
DIRECT, | ||
SYSTEM, | ||
} |
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,5 +1,5 @@ | ||
export enum ParticipantRole { | ||
HOST, // one host per room | ||
MANAGER, // can do everything a host can do except create/remove other managers | ||
MEMBER, | ||
HOST, // one host per room | ||
MANAGER, // can do everything a host can do except create/remove other managers | ||
MEMBER, | ||
} |
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,10 +1,10 @@ | ||
export enum Reactions { | ||
ThumbsUp, | ||
ThumbsDown, | ||
Laugh, | ||
Confused, | ||
Celebrate, | ||
OneHundred, | ||
QuestionMark, | ||
Clap, | ||
ThumbsUp, | ||
ThumbsDown, | ||
Laugh, | ||
Confused, | ||
Celebrate, | ||
OneHundred, | ||
QuestionMark, | ||
Clap, | ||
} |
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,5 +1,5 @@ | ||
export const MediaSourceToTypeMap = { | ||
camera: "video", | ||
microphone: "audio", | ||
screen: "video", | ||
camera: "video", | ||
microphone: "audio", | ||
screen: "video", | ||
}; |
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,14 +1,14 @@ | ||
import { MessageType } from ".."; | ||
|
||
export interface MessageInput { | ||
content: string; | ||
type: MessageType; | ||
content: string; | ||
type: MessageType; | ||
} | ||
|
||
export interface DirectMessageInput extends MessageInput { | ||
to: string; | ||
to: string; | ||
} | ||
|
||
export interface GroupMessageInput extends MessageInput { | ||
group: string; | ||
group: string; | ||
} |
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,7 +1,7 @@ | ||
import { HostDisconnectAction } from ".."; | ||
|
||
export interface RoomSettings { | ||
name: string; | ||
waitingRoom: boolean; | ||
hostDisconnectAction: HostDisconnectAction; | ||
name: string; | ||
waitingRoom: boolean; | ||
hostDisconnectAction: HostDisconnectAction; | ||
} |
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,53 +1,53 @@ | ||
import { MediaState, MessageType, ParticipantRole, Reactions } from ".."; | ||
|
||
export interface RoomSummary { | ||
id: string; | ||
idHash: string; | ||
name: string; | ||
myId: string; | ||
participants: ParticipantSummary[]; | ||
messages: MessageSummary[]; | ||
id: string; | ||
idHash: string; | ||
name: string; | ||
myId: string; | ||
participants: ParticipantSummary[]; | ||
messages: MessageSummary[]; | ||
} | ||
|
||
export interface MessageGroupSummary { | ||
id: string; | ||
name: string; | ||
members: string[]; | ||
id: string; | ||
name: string; | ||
members: string[]; | ||
} | ||
|
||
export interface ParticipantSummary { | ||
id: string; | ||
name: string; | ||
role: ParticipantRole; | ||
isAlive: boolean; | ||
mediaState: MediaState; | ||
id: string; | ||
name: string; | ||
role: ParticipantRole; | ||
isAlive: boolean; | ||
mediaState: MediaState; | ||
} | ||
|
||
export interface MessageSummary { | ||
id: string; | ||
content: string; | ||
created: number; | ||
type: MessageType; | ||
id: string; | ||
content: string; | ||
created: number; | ||
type: MessageType; | ||
} | ||
|
||
export interface SystemMessageSummary extends MessageSummary { | ||
permission: ParticipantRole; | ||
type: MessageType.SYSTEM; | ||
permission: ParticipantRole; | ||
type: MessageType.SYSTEM; | ||
} | ||
|
||
export interface GroupMessageSummary extends MessageSummary { | ||
type: MessageType.GROUP; | ||
group: string; | ||
from: string; | ||
type: MessageType.GROUP; | ||
group: string; | ||
from: string; | ||
} | ||
|
||
export interface DirectMessageSummary extends MessageSummary { | ||
type: MessageType.DIRECT; | ||
to: string; | ||
from: string; | ||
type: MessageType.DIRECT; | ||
to: string; | ||
from: string; | ||
} | ||
|
||
export interface ReactionSummary { | ||
type: Reactions; | ||
participant: string; | ||
type: Reactions; | ||
participant: string; | ||
} |
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.