Some minor compile and client fixing changes

master
WolverinDEV 2021-02-20 18:34:42 +01:00
parent b9310b3fec
commit 5df48b0bbf
7 changed files with 18 additions and 12 deletions

View File

@ -1,4 +1,8 @@
# Changelog: # Changelog:
* **20.02.21**
- Improved the browser IPC module
- Added support for client invite links
* **15.02.21** * **15.02.21**
- Fixed critical bug within the event registry class - Fixed critical bug within the event registry class
- Added a dropdown for the microphone control button to quickly change microphones - Added a dropdown for the microphone control button to quickly change microphones

View File

@ -14,7 +14,7 @@ loader.register_task(Stage.JAVASCRIPT_INITIALIZING, {
function: async () => { function: async () => {
clientServices = new ClientServices(new class implements ClientServiceConfig { clientServices = new ClientServices(new class implements ClientServiceConfig {
getServiceHost(): string { getServiceHost(): string {
return "localhost:1244"; //return "localhost:1244";
return "client-services.teaspeak.de:27791"; return "client-services.teaspeak.de:27791";
} }

View File

@ -78,7 +78,7 @@ async function executePendingInvites() {
while(pendingInviteQueries.length > 0) { while(pendingInviteQueries.length > 0) {
const invite = pendingInviteQueries.pop_front(); const invite = pendingInviteQueries.pop_front();
await invite(); await invite();
await new Promise(resolve => setTimeout(resolve, 3000)); await new Promise(resolve => setTimeout(resolve, 500));
} }
executingPendingInvites = false; executingPendingInvites = false;

View File

@ -216,7 +216,6 @@ loader.register_task(loader.Stage.JAVASCRIPT_INITIALIZING, {
function handleIpcMessage(remoteId: string, broadcast: boolean, message: ChannelMessage) { function handleIpcMessage(remoteId: string, broadcast: boolean, message: ChannelMessage) {
console.error(message);
if(message.type === "query-result") { if(message.type === "query-result") {
if(!localInviteCache[message.data.linkId]) { if(!localInviteCache[message.data.linkId]) {
return; return;

View File

@ -1,4 +1,4 @@
import {Registry, RegistryMap} from "tc-shared/events"; import {IpcRegistryDescription, Registry} from "tc-shared/events";
import {AbstractConversationUiEvents} from "./AbstractConversationDefinitions"; import {AbstractConversationUiEvents} from "./AbstractConversationDefinitions";
import {ConversationPanel} from "./AbstractConversationRenderer"; import {ConversationPanel} from "./AbstractConversationRenderer";
import * as React from "react"; import * as React from "react";
@ -8,11 +8,11 @@ class PopoutConversationRenderer extends AbstractModal {
private readonly events: Registry<AbstractConversationUiEvents>; private readonly events: Registry<AbstractConversationUiEvents>;
private readonly userData: any; private readonly userData: any;
constructor(registryMap: RegistryMap, userData: any) { constructor(events: IpcRegistryDescription<AbstractConversationUiEvents>, userData: any) {
super(); super();
this.userData = userData; this.userData = userData;
this.events = registryMap["default"] as any; this.events = Registry.fromIpcDescription(events);
} }
renderBody() { renderBody() {

View File

@ -13,7 +13,9 @@
"tc-backend/*": ["shared/backend.d/*"], "tc-backend/*": ["shared/backend.d/*"],
"tc-loader": ["loader/exports/loader.d.ts"], "tc-loader": ["loader/exports/loader.d.ts"],
"svg-sprites/*": ["shared/svg-sprites/*"], "svg-sprites/*": ["shared/svg-sprites/*"],
"vendor/xbbcode/*": ["vendor/xbbcode/src/*"] "vendor/xbbcode/*": ["vendor/xbbcode/src/*"],
"tc-events": ["vendor/TeaEventBus/src/index.ts"],
"tc-services": ["vendor/TeaClientServices/src/index.ts"]
} }
}, },
"exclude": [ "exclude": [
@ -24,6 +26,8 @@
"../js/main.tsx", "../js/main.tsx",
"../backend.d", "../backend.d",
"../js/**/*.ts", "../js/**/*.ts",
"../../webpack/build-definitions.d.ts" "../../webpack/build-definitions.d.ts",
"../../vendor/TeaEventBus/src/**/*.ts",
"../../vendor/TeaClientServices/src/**/*.ts"
] ]
} }

View File

@ -1,7 +1,6 @@
import {AbstractExternalModalController} from "tc-shared/ui/react-elements/external-modal/Controller"; import {AbstractExternalModalController} from "tc-shared/ui/react-elements/external-modal/Controller";
import {spawnYesNo} from "tc-shared/ui/modal/ModalYesNo"; import {spawnYesNo} from "tc-shared/ui/modal/ModalYesNo";
import * as ipc from "tc-shared/ipc/BrowserIPC"; import {ChannelMessage, getIpcInstance} from "tc-shared/ipc/BrowserIPC";
import {ChannelMessage} from "tc-shared/ipc/BrowserIPC";
import {LogCategory, logDebug, logWarn} from "tc-shared/log"; import {LogCategory, logDebug, logWarn} from "tc-shared/log";
import {Popout2ControllerMessages, PopoutIPCMessage} from "tc-shared/ui/react-elements/external-modal/IPCMessage"; import {Popout2ControllerMessages, PopoutIPCMessage} from "tc-shared/ui/react-elements/external-modal/IPCMessage";
import {tr, tra} from "tc-shared/i18n/localize"; import {tr, tra} from "tc-shared/i18n/localize";
@ -91,8 +90,8 @@ export class ExternalModalController extends AbstractExternalModalController {
"chunk": "modal-external", "chunk": "modal-external",
"modal-target": this.modalType, "modal-target": this.modalType,
"modal-identify": this.ipcAuthenticationCode, "modal-identify": this.ipcAuthenticationCode,
"ipc-address": ipc.getIpcInstance().getApplicationChannelId(), "ipc-address": getIpcInstance().getApplicationChannelId(),
"ipc-core-peer": ipc.getIpcInstance().getLocalPeerId(), "ipc-core-peer": getIpcInstance().getLocalPeerId(),
"disableGlobalContextMenu": __build.mode === "debug" ? 1 : 0, "disableGlobalContextMenu": __build.mode === "debug" ? 1 : 0,
"loader-abort": __build.mode === "debug" ? 1 : 0, "loader-abort": __build.mode === "debug" ? 1 : 0,
}; };