Code cleanup & Build declaration fix
This commit is contained in:
parent
5476ab2891
commit
2122b825b6
9 changed files with 16 additions and 12185 deletions
1
shared/backend/audio.d.ts
vendored
1
shared/backend/audio.d.ts
vendored
|
@ -26,5 +26,6 @@ declare namespace audio {
|
||||||
export function refresh_devices() : Promise<void>;
|
export function refresh_devices() : Promise<void>;
|
||||||
|
|
||||||
export function create_input() : AbstractInput;
|
export function create_input() : AbstractInput;
|
||||||
|
export function create_levelmeter(device: InputDevice) : Promise<LevelMeter>;
|
||||||
}
|
}
|
||||||
}
|
}
|
8
shared/backend/forum.d.ts
vendored
8
shared/backend/forum.d.ts
vendored
|
@ -1,8 +0,0 @@
|
||||||
/* only available for the client */
|
|
||||||
declare namespace forum {
|
|
||||||
export function register_callback(callback: () => any);
|
|
||||||
export function open();
|
|
||||||
export function logout();
|
|
||||||
|
|
||||||
export function sync_main();
|
|
||||||
}
|
|
12160
shared/css/theme/bootstrap-material-design.css
vendored
12160
shared/css/theme/bootstrap-material-design.css
vendored
File diff suppressed because one or more lines are too long
|
@ -25,7 +25,7 @@ namespace profiles.identities {
|
||||||
identity = new NameIdentity();
|
identity = new NameIdentity();
|
||||||
break;
|
break;
|
||||||
case IdentitifyType.TEAFORO:
|
case IdentitifyType.TEAFORO:
|
||||||
identity = new TeaForumIdentity(undefined, undefined);
|
identity = new TeaForumIdentity(undefined);
|
||||||
break;
|
break;
|
||||||
case IdentitifyType.TEAMSPEAK:
|
case IdentitifyType.TEAMSPEAK:
|
||||||
identity = new TeaSpeakIdentity(undefined, undefined);
|
identity = new TeaSpeakIdentity(undefined, undefined);
|
||||||
|
@ -52,7 +52,7 @@ namespace profiles.identities {
|
||||||
identity = new NameIdentity();
|
identity = new NameIdentity();
|
||||||
break;
|
break;
|
||||||
case IdentitifyType.TEAFORO:
|
case IdentitifyType.TEAFORO:
|
||||||
identity = new TeaForumIdentity(undefined, undefined);
|
identity = new TeaForumIdentity(undefined);
|
||||||
break;
|
break;
|
||||||
case IdentitifyType.TEAMSPEAK:
|
case IdentitifyType.TEAMSPEAK:
|
||||||
identity = new TeaSpeakIdentity(undefined, undefined);
|
identity = new TeaSpeakIdentity(undefined, undefined);
|
||||||
|
|
|
@ -310,4 +310,7 @@ interface Navigator {
|
||||||
name: string,
|
name: string,
|
||||||
version: string
|
version: string
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mozGetUserMedia(constraints: MediaStreamConstraints, successCallback: NavigatorUserMediaSuccessCallback, errorCallback: NavigatorUserMediaErrorCallback): void;
|
||||||
|
webkitGetUserMedia(constraints: MediaStreamConstraints, successCallback: NavigatorUserMediaSuccessCallback, errorCallback: NavigatorUserMediaErrorCallback): void;
|
||||||
}
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
import ClickEvent = JQuery.ClickEvent;
|
import MouseDownEvent = JQuery.MouseDownEvent;
|
||||||
|
|
||||||
enum ElementType {
|
enum ElementType {
|
||||||
HEADER,
|
HEADER,
|
||||||
|
@ -81,7 +81,7 @@ class ModalProperties {
|
||||||
full_size?: boolean = false;
|
full_size?: boolean = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).on('mousedown', (event: MouseEvent) => {
|
$(document).on('mousedown', (event: MouseDownEvent) => {
|
||||||
/* pageX or pageY are undefined if this is an event executed via .trigger('click'); */
|
/* pageX or pageY are undefined if this is an event executed via .trigger('click'); */
|
||||||
if(_global_modal_count == 0 || typeof(event.pageX) === "undefined" || typeof(event.pageY) === "undefined")
|
if(_global_modal_count == 0 || typeof(event.pageX) === "undefined" || typeof(event.pageY) === "undefined")
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -213,11 +213,11 @@ class ClientInfoManager extends InfoManager<ClientEntry> {
|
||||||
for(let key in client.properties)
|
for(let key in client.properties)
|
||||||
properties["property_" + key] = client.properties[key];
|
properties["property_" + key] = client.properties[key];
|
||||||
|
|
||||||
if(client.properties.client_teaforum_id > 0) {
|
if(client.properties.client_teaforo_id > 0) {
|
||||||
properties["teaspeak_forum"] = $.spawn("a")
|
properties["teaspeak_forum"] = $.spawn("a")
|
||||||
.attr("href", "//forum.teaspeak.de/index.php?members/" + client.properties.client_teaforum_id)
|
.attr("href", "//forum.teaspeak.de/index.php?members/" + client.properties.client_teaforo_id)
|
||||||
.attr("target", "_blank")
|
.attr("target", "_blank")
|
||||||
.text(client.properties.client_teaforum_id);
|
.text(client.properties.client_teaforo_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(client.properties.client_flag_avatar && client.properties.client_flag_avatar.length > 0) {
|
if(client.properties.client_flag_avatar && client.properties.client_flag_avatar.length > 0) {
|
||||||
|
|
|
@ -1127,16 +1127,7 @@ namespace Modals {
|
||||||
});
|
});
|
||||||
|
|
||||||
button_setup.on('click', event => {
|
button_setup.on('click', event => {
|
||||||
if(app.is_web()) {
|
|
||||||
modal.htmlTag.find('.entry[container="identity-forum"]').trigger('click');
|
modal.htmlTag.find('.entry[container="identity-forum"]').trigger('click');
|
||||||
} else {
|
|
||||||
const call = () => {
|
|
||||||
if (modal.shown)
|
|
||||||
update_profiles(selected_profile ? selected_profile.identity.id : undefined);
|
|
||||||
};
|
|
||||||
forum.register_callback(call);
|
|
||||||
forum.open();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1612,5 +1612,9 @@ namespace pe {
|
||||||
update_ui() {
|
update_ui() {
|
||||||
this.entry_editor.draw(true);
|
this.entry_editor.draw(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
set_toggle_button(callback: () => string, initial: string) {
|
||||||
|
throw "not implemented";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue