Fixed some compile errors
parent
4c515cc055
commit
1aed67a520
|
@ -53,7 +53,7 @@ let categoryMapping = new Map<number, string>([
|
||||||
[LogCategory.FILE_TRANSFER, "File transfer "],
|
[LogCategory.FILE_TRANSFER, "File transfer "],
|
||||||
[LogCategory.EVENT_REGISTRY, "Event registry"],
|
[LogCategory.EVENT_REGISTRY, "Event registry"],
|
||||||
[LogCategory.WEBRTC, "WebRTC "],
|
[LogCategory.WEBRTC, "WebRTC "],
|
||||||
[LogCategory.VIDEO, "Video "],
|
[LogCategory.VIDEO, "Video "],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
export let enabled_mapping = new Map<number, boolean>([
|
export let enabled_mapping = new Map<number, boolean>([
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import {LogCategory, logDebug, logInfo, logTrace, logWarn} from "./log";
|
import {LogCategory, logDebug, logInfo, logTrace, logWarn} from "./log";
|
||||||
import * as log from "./log";
|
|
||||||
import { tr } from "./i18n/localize";
|
import { tr } from "./i18n/localize";
|
||||||
|
|
||||||
enum CloseCodes {
|
enum CloseCodes {
|
||||||
|
|
|
@ -8,6 +8,7 @@ import {spawnIconSelect} from "../../ui/modal/ModalIconSelect";
|
||||||
import {network} from "../../ui/frames/chat";
|
import {network} from "../../ui/frames/chat";
|
||||||
import {generateIconJQueryTag, getIconManager} from "tc-shared/file/Icons";
|
import {generateIconJQueryTag, getIconManager} from "tc-shared/file/Icons";
|
||||||
import {tr} from "tc-shared/i18n/localize";
|
import {tr} from "tc-shared/i18n/localize";
|
||||||
|
import {LogCategory, logTrace} from "tc-shared/log";
|
||||||
|
|
||||||
export function createServerModal(server: ServerEntry, callback: (properties?: ServerProperties) => Promise<void>) {
|
export function createServerModal(server: ServerEntry, callback: (properties?: ServerProperties) => Promise<void>) {
|
||||||
const properties = Object.assign({}, server.properties);
|
const properties = Object.assign({}, server.properties);
|
||||||
|
|
|
@ -26,7 +26,7 @@ function initializeController(events: Registry<ModalGlobalSettingsEditorEvents>)
|
||||||
key: setting.key,
|
key: setting.key,
|
||||||
description: setting.description,
|
description: setting.description,
|
||||||
type: setting.valueType,
|
type: setting.valueType,
|
||||||
defaultValue: setting.defaultValue
|
defaultValue: "defaultValue" in setting ? setting.defaultValue : undefined
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ function initializeController(events: Registry<ModalGlobalSettingsEditorEvents>)
|
||||||
key: setting.key,
|
key: setting.key,
|
||||||
description: setting.description,
|
description: setting.description,
|
||||||
type: setting.valueType,
|
type: setting.valueType,
|
||||||
defaultValue: setting.defaultValue
|
defaultValue: "defaultValue" in setting ? setting.defaultValue : undefined
|
||||||
},
|
},
|
||||||
value: settings.getValue(setting, undefined)
|
value: settings.getValue(setting, undefined)
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import {AddressTarget, ResolveOptions} from "tc-shared/dns";
|
import {AddressTarget, ResolveOptions} from "tc-shared/dns";
|
||||||
import {ServerAddress} from "tc-shared/tree/Server";
|
import {ServerAddress} from "tc-shared/tree/Server";
|
||||||
import {resolveAddressIpv4, resolveTeaSpeakServerAddress} from "tc-backend/web/dns/resolver";
|
import {resolveAddressIpV4, resolveTeaSpeakServerAddress} from "./dns/resolver";
|
||||||
|
|
||||||
export function supported() { return true; }
|
export function supported() { return true; }
|
||||||
|
|
||||||
|
@ -9,5 +9,5 @@ export async function resolve_address(address: ServerAddress, options?: ResolveO
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function resolve_address_ipv4(address: string) : Promise<string> {
|
export async function resolve_address_ipv4(address: string) : Promise<string> {
|
||||||
return await resolveAddressIpv4(address);
|
return await resolveAddressIpV4(address);
|
||||||
}
|
}
|
|
@ -349,7 +349,7 @@ export async function resolveTeaSpeakServerAddress(address: ServerAddress, _opti
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function resolve_address_ipv4(address: string) : Promise<string> {
|
export async function resolveAddressIpV4(address: string) : Promise<string> {
|
||||||
const result = await executeDnsRequest(address, RRType.A);
|
const result = await executeDnsRequest(address, RRType.A);
|
||||||
if(!result.length) return undefined;
|
if(!result.length) return undefined;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import {EventType, KeyEvent, KeyHook, SpecialKey} from "tc-shared/PPTListener";
|
import {EventType, KeyEvent, KeyHook, SpecialKey} from "tc-shared/PPTListener";
|
||||||
import {LogCategory} from "tc-shared/log";
|
import {LogCategory, logTrace} from "tc-shared/log";
|
||||||
import * as log from "tc-shared/log";
|
|
||||||
import { tr } from "tc-shared/i18n/localize";
|
import { tr } from "tc-shared/i18n/localize";
|
||||||
|
|
||||||
interface WebKeyEvent extends KeyEvent {
|
interface WebKeyEvent extends KeyEvent {
|
||||||
|
|
Loading…
Reference in New Issue