This repository has been archived by the owner on Jun 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into feature/add_ci_and…
…_linting
- Loading branch information
Showing
12 changed files
with
269 additions
and
49 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
module.exports = { | ||
parser: '@typescript-eslint/parser', | ||
plugins: [ | ||
'@typescript-eslint', | ||
'eslint-plugin-prettier', | ||
'autofix', | ||
'import', | ||
'compat', | ||
'prettier', | ||
'unused-imports', | ||
'react-perf', | ||
], | ||
ignorePatterns: ['**/proto_ts/**/*'], | ||
rules: { | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'@typescript-eslint/no-var-requires': 0, | ||
'@typescript-eslint/ban-ts-comment': 0, | ||
'@typescript-eslint/no-empty-interface': 0, | ||
'@typescript-eslint/ban-types': 0, | ||
'@typescript-eslint/no-explicit-any': 0, | ||
'@typescript-eslint/no-non-null-assertion': 0, | ||
'prettier/prettier': 'error', | ||
'import/order': 'error', | ||
'function-paren-newline': ['error', 'consistent'], | ||
'array-callback-return': 0, | ||
'@typescript-eslint/no-unused-vars': 1, | ||
'function-paren-newline': 0, | ||
'unused-imports/no-unused-imports-ts': 2, | ||
camelcase: 0, | ||
'react-hooks/exhaustive-deps': 1, | ||
'no-use-before-define': 'off', | ||
'@typescript-eslint/no-use-before-define': ['error'], | ||
}, | ||
extends: [ | ||
'react-app', | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'prettier', | ||
'plugin:import/errors', | ||
'plugin:import/warnings', | ||
'plugin:import/typescript', | ||
'plugin:markdown/recommended', | ||
], | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
// @generated by protobuf-ts 2.8.0 | ||
// @generated from protobuf file "message.proto" (package "webrtc.pb", syntax proto2) | ||
// tslint:disable | ||
import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; | ||
import type { IBinaryWriter } from "@protobuf-ts/runtime"; | ||
import { WireType } from "@protobuf-ts/runtime"; | ||
import type { BinaryReadOptions } from "@protobuf-ts/runtime"; | ||
import type { IBinaryReader } from "@protobuf-ts/runtime"; | ||
import { UnknownFieldHandler } from "@protobuf-ts/runtime"; | ||
import type { PartialMessage } from "@protobuf-ts/runtime"; | ||
import { reflectionMergePartial } from "@protobuf-ts/runtime"; | ||
import { MESSAGE_TYPE } from "@protobuf-ts/runtime"; | ||
import { MessageType } from "@protobuf-ts/runtime"; | ||
/** | ||
* @generated from protobuf message webrtc.pb.Message | ||
*/ | ||
export interface Message { | ||
/** | ||
* @generated from protobuf field: optional webrtc.pb.Message.Flag flag = 1; | ||
*/ | ||
flag?: Message_Flag; | ||
/** | ||
* @generated from protobuf field: optional bytes message = 2; | ||
*/ | ||
message?: Uint8Array; | ||
} | ||
/** | ||
* @generated from protobuf enum webrtc.pb.Message.Flag | ||
*/ | ||
export enum Message_Flag { | ||
/** | ||
* The sender will no longer send messages on the stream. | ||
* | ||
* @generated from protobuf enum value: FIN = 0; | ||
*/ | ||
FIN = 0, | ||
/** | ||
* The sender will no longer read messages on the stream. Incoming data is | ||
* being discarded on receipt. | ||
* | ||
* @generated from protobuf enum value: STOP_SENDING = 1; | ||
*/ | ||
STOP_SENDING = 1, | ||
/** | ||
* The sender abruptly terminates the sending part of the stream. The | ||
* receiver can discard any data that it already received on that stream. | ||
* | ||
* @generated from protobuf enum value: RESET = 2; | ||
*/ | ||
RESET = 2 | ||
} | ||
// @generated message type with reflection information, may provide speed optimized methods | ||
class Message$Type extends MessageType<Message> { | ||
constructor() { | ||
super("webrtc.pb.Message", [ | ||
{ no: 1, name: "flag", kind: "enum", opt: true, T: () => ["webrtc.pb.Message.Flag", Message_Flag] }, | ||
{ no: 2, name: "message", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ } | ||
]); | ||
} | ||
create(value?: PartialMessage<Message>): Message { | ||
const message = {}; | ||
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this }); | ||
if (value !== undefined) | ||
reflectionMergePartial<Message>(this, message, value); | ||
return message; | ||
} | ||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Message): Message { | ||
let message = target ?? this.create(), end = reader.pos + length; | ||
while (reader.pos < end) { | ||
let [fieldNo, wireType] = reader.tag(); | ||
switch (fieldNo) { | ||
case /* optional webrtc.pb.Message.Flag flag */ 1: | ||
message.flag = reader.int32(); | ||
break; | ||
case /* optional bytes message */ 2: | ||
message.message = reader.bytes(); | ||
break; | ||
default: | ||
let u = options.readUnknownField; | ||
if (u === "throw") | ||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); | ||
let d = reader.skip(wireType); | ||
if (u !== false) | ||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); | ||
} | ||
} | ||
return message; | ||
} | ||
internalBinaryWrite(message: Message, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { | ||
/* optional webrtc.pb.Message.Flag flag = 1; */ | ||
if (message.flag !== undefined) | ||
writer.tag(1, WireType.Varint).int32(message.flag); | ||
/* optional bytes message = 2; */ | ||
if (message.message !== undefined) | ||
writer.tag(2, WireType.LengthDelimited).bytes(message.message); | ||
let u = options.writeUnknownFields; | ||
if (u !== false) | ||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); | ||
return writer; | ||
} | ||
} | ||
/** | ||
* @generated MessageType for protobuf message webrtc.pb.Message | ||
*/ | ||
export const Message = new Message$Type(); |
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,20 @@ | ||
syntax = "proto2"; | ||
|
||
package webrtc.pb; | ||
|
||
message Message { | ||
enum Flag { | ||
// The sender will no longer send messages on the stream. | ||
FIN = 0; | ||
// The sender will no longer read messages on the stream. Incoming data is | ||
// being discarded on receipt. | ||
STOP_SENDING = 1; | ||
// The sender abruptly terminates the sending part of the stream. The | ||
// receiver can discard any data that it already received on that stream. | ||
RESET = 2; | ||
} | ||
|
||
optional Flag flag = 1; | ||
|
||
optional bytes message = 2; | ||
} |
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.