Fixed some compile errors

master
WolverinDEV 2021-01-10 18:32:17 +01:00
parent 84e907adbb
commit b2ea8b498a
7 changed files with 8 additions and 9 deletions

View File

@ -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>([

View File

@ -1,5 +1,4 @@
import {LogCategory, logDebug, logInfo, logTrace, logWarn} from "./log";
import * as log from "./log";
import { tr } from "./i18n/localize";
enum CloseCodes {

View File

@ -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);

View File

@ -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)
});

View File

@ -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);
}

View File

@ -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;

View File

@ -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 {