Fixed compile errors
This commit is contained in:
parent
95a1b5d900
commit
dcc3638ec3
3 changed files with 16 additions and 13 deletions
|
@ -1,5 +1,3 @@
|
||||||
//Used by CertAccept popup
|
|
||||||
|
|
||||||
interface Window {
|
interface Window {
|
||||||
BroadcastChannel: BroadcastChannel;
|
BroadcastChannel: BroadcastChannel;
|
||||||
}
|
}
|
||||||
|
@ -258,6 +256,17 @@ namespace bipc {
|
||||||
}
|
}
|
||||||
|
|
||||||
export namespace connect {
|
export namespace connect {
|
||||||
|
export type ConnectRequestData = {
|
||||||
|
address: string;
|
||||||
|
|
||||||
|
profile?: string;
|
||||||
|
username?: string;
|
||||||
|
password?: {
|
||||||
|
value: string;
|
||||||
|
hashed: boolean;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
export interface ConnectOffer {
|
export interface ConnectOffer {
|
||||||
request_id: string;
|
request_id: string;
|
||||||
data: ConnectRequestData;
|
data: ConnectRequestData;
|
||||||
|
|
|
@ -290,17 +290,7 @@ interface Window {
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
type ConnectRequestData = {
|
function handle_connect_request(properties: bipc.connect.ConnectRequestData, connection: ConnectionHandler) {
|
||||||
address: string;
|
|
||||||
|
|
||||||
profile?: string;
|
|
||||||
username?: string;
|
|
||||||
password?: {
|
|
||||||
value: string;
|
|
||||||
hashed: boolean;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function handle_connect_request(properties: ConnectRequestData, connection: ConnectionHandler) {
|
|
||||||
const profile_uuid = properties.profile || (profiles.default_profile() || {id: 'default'}).id;
|
const profile_uuid = properties.profile || (profiles.default_profile() || {id: 'default'}).id;
|
||||||
const profile = profiles.find_profile(profile_uuid) || profiles.default_profile();
|
const profile = profiles.find_profile(profile_uuid) || profiles.default_profile();
|
||||||
const username = properties.username || profile.connect_username();
|
const username = properties.username || profile.connect_username();
|
||||||
|
|
|
@ -2,7 +2,11 @@
|
||||||
/// <reference path="../proto.ts" />
|
/// <reference path="../proto.ts" />
|
||||||
/// <reference path="channel.ts" />
|
/// <reference path="channel.ts" />
|
||||||
/// <reference path="client.ts" />
|
/// <reference path="client.ts" />
|
||||||
|
/// <reference path="server.ts" />
|
||||||
|
/// <reference path="../bookmarks.ts" />
|
||||||
|
/// <reference path="elements/context_menu.ts" />
|
||||||
/// <reference path="modal/ModalCreateChannel.ts" />
|
/// <reference path="modal/ModalCreateChannel.ts" />
|
||||||
|
/// <reference path="../../backend/ppt.d.ts" />
|
||||||
|
|
||||||
|
|
||||||
class ChannelTree {
|
class ChannelTree {
|
||||||
|
|
Loading…
Add table
Reference in a new issue