Fixed some small errors
parent
8322aeed65
commit
7186c684d9
|
@ -5,6 +5,3 @@
|
|||
[submodule "vendor/bbcode"]
|
||||
path = vendor/bbcode
|
||||
url = https://github.com/WolverinDEV/Extendible-BBCode-Parser.git
|
||||
[submodule "vendor\\ua-parser-js"]
|
||||
path = vendor\\ua-parser-js
|
||||
url = https://github.com/WolverinDEV/ua-parser-js
|
||||
|
|
|
@ -1,15 +1,17 @@
|
|||
.select_info_table { }
|
||||
.select_info_table tr { }
|
||||
.select_info_table tr td {
|
||||
&:nth-child(1) {
|
||||
font-weight: bold;
|
||||
padding-right: 5px;
|
||||
min-width: max(35%, 20px);
|
||||
}
|
||||
.select_info_table {
|
||||
tr {
|
||||
td {
|
||||
&:nth-child(1) {
|
||||
font-weight: bold;
|
||||
padding-right: 5px;
|
||||
//min-width: max(35%, 20px);
|
||||
}
|
||||
|
||||
&:nth-child(2) {
|
||||
min-width: max(75%, 40px);
|
||||
word-break: break-word;
|
||||
&:nth-child(2) {
|
||||
//min-width: max(75%, 40px);
|
||||
word-break: break-word;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -443,7 +443,6 @@ const loader_javascript = {
|
|||
await loader.load_scripts([
|
||||
["vendor/bbcode/xbbcode.js"],
|
||||
["vendor/moment/moment.js"],
|
||||
["vendor/ua-parser-js/dist/ua-parser.min.js"],
|
||||
["https://webrtc.github.io/adapter/adapter-latest.js"]
|
||||
]);
|
||||
|
||||
|
@ -665,7 +664,7 @@ const loader_style = {
|
|||
|
||||
async function load_templates() {
|
||||
try {
|
||||
const response = await $.ajax("templates.html" + (loader.cache_tag || "");
|
||||
const response = await $.ajax("templates.html" + (loader.cache_tag || ""));
|
||||
|
||||
let node = document.createElement("html");
|
||||
node.innerHTML = response;
|
||||
|
|
|
@ -342,7 +342,7 @@ class ClientEntry {
|
|||
name: tr("Kick client from channel"),
|
||||
callback: () => {
|
||||
createInputModal(tr("Kick client from channel"), tr("Kick reason:<br>"), text => true, result => {
|
||||
if(result) {
|
||||
if(typeof(result) !== 'boolean' || result) {
|
||||
//TODO tr
|
||||
console.log("Kicking client " + this.clientNickName() + " from channel with reason " + result);
|
||||
this.channelTree.client.serverConnection.send_command("clientkick", {
|
||||
|
@ -360,7 +360,7 @@ class ClientEntry {
|
|||
name: tr("Kick client fom server"),
|
||||
callback: () => {
|
||||
createInputModal(tr("Kick client from server"), tr("Kick reason:<br>"), text => true, result => {
|
||||
if(result) {
|
||||
if(typeof(result) !== 'boolean' || result) {
|
||||
//TODO tr
|
||||
console.log("Kicking client " + this.clientNickName() + " from server with reason " + result);
|
||||
this.channelTree.client.serverConnection.send_command("clientkick", {
|
||||
|
@ -613,9 +613,6 @@ class ClientEntry {
|
|||
this.updateClientIcon();
|
||||
if(variable.key =="client_channel_group_id" || variable.key == "client_servergroups")
|
||||
this.update_displayed_client_groups();
|
||||
if(variable.key == "client_version") {
|
||||
console.log(UAParser(variable.value));
|
||||
}
|
||||
}
|
||||
|
||||
/* process updates after variables have been set */
|
||||
|
@ -1042,7 +1039,7 @@ class MusicClientEntry extends ClientEntry {
|
|||
name: tr("Kick client from channel"),
|
||||
callback: () => {
|
||||
createInputModal(tr("Kick client from channel"), tr("Kick reason:<br>"), text => true, result => {
|
||||
if(result) {
|
||||
if(typeof(result) !== 'boolean' || result) {
|
||||
console.log(tr("Kicking client %o from channel with reason %o"), this.clientNickName(), result);
|
||||
this.channelTree.client.serverConnection.send_command("clientkick", {
|
||||
clid: this.clientId(),
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
/// <reference path="../../client.ts" />
|
||||
/// <reference path="../../../../vendor/bbcode/xbbcode.ts" />
|
||||
/// <reference path="../../../../vendor/ua-parser-js/src/ua-parser.d.ts" />
|
||||
|
||||
abstract class InfoManagerBase {
|
||||
private timers: NodeJS.Timer[] = [];
|
||||
|
|
Loading…
Reference in New Issue