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