2016-11-27 16:43:59 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2019-02-06 11:41:59 +00:00
|
|
|
<meta charset="utf-8">
|
2020-07-21 06:23:27 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2016-11-27 16:43:59 +00:00
|
|
|
<!-- Favicon as generated by realfavicongenerator.net (slightly modified for webpack) -->
|
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="favicon/apple-touch-icon.png">
|
|
|
|
<link rel="icon" type="image/png" href="favicon/favicon-32x32.png" sizes="32x32">
|
|
|
|
<link rel="icon" type="image/png" href="favicon/favicon-16x16.png" sizes="16x16">
|
|
|
|
<link rel="manifest" href="favicon/manifest.json">
|
|
|
|
<link rel="mask-icon" href="favicon/safari-pinned-tab.svg" color="#5bbad5">
|
|
|
|
<link rel="shortcut icon" href="favicon/favicon.ico">
|
|
|
|
<meta name="apple-mobile-web-app-title" content="Mumble">
|
|
|
|
<meta name="application-name" content="Mumble">
|
|
|
|
<meta name="msapplication-config" content="${require('./favicon/browserconfig.xml')}">
|
|
|
|
<meta name="theme-color" content="#ffffff">
|
|
|
|
|
2018-10-08 16:10:56 +00:00
|
|
|
<script src="config.js"></script>
|
|
|
|
<script src="config.local.js"></script>
|
2018-09-23 21:35:42 +00:00
|
|
|
<script src="theme.js"></script>
|
2018-09-23 15:10:11 +00:00
|
|
|
<script src="matrix.js"></script>
|
2016-11-27 16:43:59 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="loading-container" data-bind="css: { loaded: true }">
|
|
|
|
<div class="loading-circle" data-bind="css: { loaded: true }"></div>
|
|
|
|
</div>
|
2018-09-23 13:38:11 +00:00
|
|
|
<div id="container" style="display: none" data-bind="visible: true,
|
|
|
|
css: { minimal: minimalView }">
|
2017-04-30 18:34:10 +00:00
|
|
|
<!-- ko with: connectDialog -->
|
2018-09-23 12:05:38 +00:00
|
|
|
<div class="connect-dialog dialog" data-bind="visible: visible() && !joinOnly()">
|
2020-04-04 12:11:23 +00:00
|
|
|
<div id="connect-dialog_title" class="dialog-header">
|
2016-11-27 16:43:59 +00:00
|
|
|
Connect to Server
|
|
|
|
</div>
|
|
|
|
<form data-bind="submit: connect">
|
|
|
|
<table>
|
2018-10-08 17:21:48 +00:00
|
|
|
<tr data-bind="if: $root.config.connectDialog.address">
|
2020-04-04 12:11:23 +00:00
|
|
|
<td id="connect-dialog_input_address">Address</td>
|
2018-10-07 22:23:11 +00:00
|
|
|
<td><input id="address" type="text" data-bind="value: address" required></td>
|
2016-11-27 16:43:59 +00:00
|
|
|
</tr>
|
2018-10-08 17:21:48 +00:00
|
|
|
<tr data-bind="if: $root.config.connectDialog.port">
|
2020-04-04 12:11:23 +00:00
|
|
|
<td id="connect-dialog_input_port">Port</td>
|
2018-10-07 22:23:11 +00:00
|
|
|
<td><input id="port" type="text" data-bind="value: port" required></td>
|
2016-11-27 16:43:59 +00:00
|
|
|
</tr>
|
2020-03-26 21:04:11 +00:00
|
|
|
<tr data-bind="if: $root.config.connectDialog.username">
|
2020-04-04 12:11:23 +00:00
|
|
|
<td id="connect-dialog_input_username">Username</td>
|
2020-03-26 21:04:11 +00:00
|
|
|
<td><input id="username" type="text" data-bind="value: username" required></td>
|
|
|
|
</tr>
|
|
|
|
<tr data-bind="if: $root.config.connectDialog.password">
|
2020-04-04 12:11:23 +00:00
|
|
|
<td id="connect-dialog_input_password">Password</td>
|
2020-03-26 21:04:11 +00:00
|
|
|
<td><input id="password" type="password" data-bind="value: password"></td>
|
|
|
|
</tr>
|
2018-10-08 17:21:48 +00:00
|
|
|
<tr data-bind="if: $root.config.connectDialog.token">
|
2020-04-04 12:11:23 +00:00
|
|
|
<td id="connect-dialog_input_tokens">Tokens</td>
|
2020-03-22 20:12:12 +00:00
|
|
|
<td>
|
|
|
|
<input type="text" data-bind='value: tokenToAdd, valueUpdate: "afterkeydown"'>
|
|
|
|
</td>
|
2016-11-27 16:43:59 +00:00
|
|
|
</tr>
|
2020-03-22 20:12:12 +00:00
|
|
|
<tr data-bind="if: $root.config.connectDialog.token">
|
|
|
|
<td></td>
|
2020-03-26 21:04:11 +00:00
|
|
|
<td>
|
2020-04-04 12:11:23 +00:00
|
|
|
<button id="connect-dialog_controls_remove" class="dialog-submit" type="button" data-bind="enable: selectedTokens().length > 0, click: removeSelectedTokens()">Remove</button>
|
|
|
|
<button id="connect-dialog_controls_add" class="dialog-submit" type="button" data-bind="enable: tokenToAdd().length > 0, click: addToken()">Add</button>
|
2020-03-26 21:04:11 +00:00
|
|
|
</td>
|
2020-03-22 20:12:12 +00:00
|
|
|
</tr>
|
2020-03-26 21:04:11 +00:00
|
|
|
<tr data-bind="if: $root.config.connectDialog.token, visible: tokens().length > 0">
|
|
|
|
<td></td>
|
|
|
|
<td><select id="token" multiple="multiple" height="5" data-bind="options:tokens, selectedOptions:selectedTokens"></select></td>
|
2017-04-30 18:34:10 +00:00
|
|
|
</tr>
|
2020-03-15 19:50:54 +00:00
|
|
|
<tr data-bind="if: $root.config.connectDialog.channelName">
|
|
|
|
<td>Channel</td>
|
|
|
|
<td><input id="channelName" type="text" data-bind="value: channelName"></td>
|
|
|
|
</tr>
|
2016-11-27 16:43:59 +00:00
|
|
|
</table>
|
|
|
|
<div class="dialog-footer">
|
2020-04-04 12:11:23 +00:00
|
|
|
<input id="connect-dialog_controls_cancel" class="dialog-close" type="button" data-bind="click: hide" value="Cancel">
|
|
|
|
<input id="connect-dialog_controls_connect" class="dialog-submit" type="submit" value="Connect">
|
2016-11-27 16:43:59 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<!-- /ko -->
|
2018-09-23 12:05:38 +00:00
|
|
|
<!-- ko with: connectDialog -->
|
|
|
|
<div class="join-dialog dialog" data-bind="visible: visible() && joinOnly()">
|
|
|
|
<div class="dialog-header">
|
|
|
|
Mumble Voice Conference
|
|
|
|
</div>
|
|
|
|
<form data-bind="submit: connect">
|
|
|
|
<input class="dialog-submit" type="submit" value="Join Conference">
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<!-- /ko -->
|
2018-09-23 12:10:55 +00:00
|
|
|
<!-- ko with: connectErrorDialog -->
|
|
|
|
<div class="connect-dialog error-dialog dialog" data-bind="visible: visible()">
|
|
|
|
<div class="dialog-header">
|
|
|
|
Failed to connect
|
|
|
|
</div>
|
|
|
|
<form data-bind="submit: connect">
|
|
|
|
<table>
|
2020-05-03 16:49:43 +00:00
|
|
|
<tr class="reason">
|
2018-09-23 12:10:55 +00:00
|
|
|
<td colspan=2>
|
|
|
|
<!-- ko if: type() == 0 || type() == 8 -->
|
2020-05-03 16:49:43 +00:00
|
|
|
<span class="refused">
|
|
|
|
The connection has been refused.
|
|
|
|
</span>
|
2018-09-23 12:10:55 +00:00
|
|
|
<!-- /ko -->
|
|
|
|
<!-- ko if: type() == 1 -->
|
2020-05-03 16:49:43 +00:00
|
|
|
<span class="version">
|
|
|
|
The server uses an incompatible version.
|
|
|
|
</span>
|
2018-09-23 12:10:55 +00:00
|
|
|
<!-- /ko -->
|
|
|
|
<!-- ko if: type() == 2 -->
|
2020-05-03 16:49:43 +00:00
|
|
|
<span class="username">
|
|
|
|
Your user name was rejected. Maybe try a different one?
|
|
|
|
</span>
|
2018-09-23 12:10:55 +00:00
|
|
|
<!-- /ko -->
|
|
|
|
<!-- ko if: type() == 3 -->
|
2020-05-03 16:49:43 +00:00
|
|
|
<span class="userpassword">
|
|
|
|
The given password is incorrect.
|
|
|
|
The user name you have chosen requires a special one.
|
|
|
|
</span>
|
2018-09-23 12:10:55 +00:00
|
|
|
<!-- /ko -->
|
|
|
|
<!-- ko if: type() == 4 -->
|
2020-05-03 16:49:43 +00:00
|
|
|
<span class="serverpassword">
|
|
|
|
The given password is incorrect.
|
|
|
|
</span>
|
2018-09-23 12:10:55 +00:00
|
|
|
<!-- /ko -->
|
|
|
|
<!-- ko if: type() == 5 -->
|
2020-05-03 16:49:43 +00:00
|
|
|
<span class="username-in-use">
|
|
|
|
The user name you have chosen is already in use.
|
|
|
|
</span>
|
2018-09-23 12:10:55 +00:00
|
|
|
<!-- /ko -->
|
|
|
|
<!-- ko if: type() == 6 -->
|
2020-05-03 16:49:43 +00:00
|
|
|
<span class="full">
|
|
|
|
The server is full.
|
|
|
|
</span>
|
2018-09-23 12:10:55 +00:00
|
|
|
<!-- /ko -->
|
|
|
|
<!-- ko if: type() == 7 -->
|
2020-05-03 16:49:43 +00:00
|
|
|
<span class="clientcert">
|
|
|
|
The server requires you to provide a client certificate
|
|
|
|
which is not supported by this web application.
|
|
|
|
</span>
|
2018-09-23 12:10:55 +00:00
|
|
|
<!-- /ko -->
|
|
|
|
<br>
|
2020-05-03 16:49:43 +00:00
|
|
|
<span class="server">
|
|
|
|
The server reports:
|
|
|
|
</span>
|
2018-09-23 12:10:55 +00:00
|
|
|
<br>
|
|
|
|
"<span class="connect-error-reason" data-bind="text: reason"></span>"
|
|
|
|
</td>
|
|
|
|
</tr>
|
2018-10-07 22:23:11 +00:00
|
|
|
<tr data-bind="if: type() == 2 || type() == 3 || type() == 5">
|
2020-05-03 16:49:43 +00:00
|
|
|
<td class="alternate-username">Username</td>
|
2018-10-07 22:23:11 +00:00
|
|
|
<td><input id="username" type="text" data-bind="value: username" required></td>
|
2018-09-23 12:10:55 +00:00
|
|
|
</tr>
|
2018-10-07 22:23:11 +00:00
|
|
|
<tr data-bind="if: type() == 3 || type() == 4">
|
2020-05-03 16:49:43 +00:00
|
|
|
<td class="alternate-password">Password</td>
|
2018-10-07 22:23:11 +00:00
|
|
|
<td><input id="password" type="password" data-bind="value: password" required></td>
|
2018-09-23 12:10:55 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<div class="dialog-footer">
|
|
|
|
<input class="dialog-close" type="button" value="Cancel"
|
|
|
|
data-bind="click: hide, visible: !joinOnly()">
|
|
|
|
<input class="dialog-submit" type="submit" value="Retry">
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<!-- /ko -->
|
2018-09-26 11:08:40 +00:00
|
|
|
<!-- ko with: connectionInfo -->
|
|
|
|
<div class="connection-info-dialog dialog" data-bind="visible: visible">
|
|
|
|
<div class="dialog-header">
|
|
|
|
Connection Information
|
|
|
|
</div>
|
|
|
|
<div class="dialog-content">
|
|
|
|
<h3>Version</h3>
|
|
|
|
<!-- ko with: serverVersion -->
|
|
|
|
Protocol
|
|
|
|
<span data-bind="text: major + '.' + minor + '.' + patch"></span>.
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
<span data-bind="text: release"></span>
|
|
|
|
<br>
|
|
|
|
<span data-bind="text: os"></span>
|
|
|
|
<span data-bind="text: osVersion"></span>
|
|
|
|
<br>
|
|
|
|
<!-- /ko -->
|
|
|
|
<!-- ko if: !serverVersion() -->
|
|
|
|
Unknown
|
|
|
|
<!-- /ko -->
|
|
|
|
|
|
|
|
<h3>Control channel</h3>
|
|
|
|
<span data-bind="text: latencyMs().toFixed(2)"></span> ms average latency
|
|
|
|
(<span data-bind="text: latencyDeviation().toFixed(2)"></span> deviation)
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
Remote host <span data-bind="text: remoteHost"></span>
|
|
|
|
(port <span data-bind="text: remotePort"></span>)
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<h3>Audio bandwidth</h3>
|
|
|
|
Maximum <span data-bind="text: (maxBitrate()/1000).toFixed(1)"></span> kbits/s
|
|
|
|
(<span data-bind="text: (maxBandwidth()/1000).toFixed(1)"></span> kbits/s with overhead)
|
|
|
|
<br>
|
|
|
|
Current <span data-bind="text: (currentBitrate()/1000).toFixed(1)"></span> kbits/s
|
|
|
|
(<span data-bind="text: (currentBandwidth()/1000).toFixed(1)"></span> kbits/s with overhead)
|
|
|
|
<br>
|
|
|
|
Codec: <span data-bind="text: codec"></span>
|
|
|
|
</div>
|
|
|
|
<div class="dialog-footer">
|
|
|
|
<input class="dialog-close" type="button" data-bind="click: hide" value="OK">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /ko -->
|
2017-09-19 20:40:54 +00:00
|
|
|
<!-- ko with: settingsDialog -->
|
|
|
|
<div class="settings-dialog dialog" data-bind="visible: $data">
|
|
|
|
<div class="dialog-header">
|
|
|
|
Settings
|
|
|
|
</div>
|
|
|
|
<form data-bind="submit: $root.applySettings">
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td>Transmission</td>
|
|
|
|
<td>
|
|
|
|
<select data-bind='value: voiceMode'>
|
|
|
|
<option value="cont">Continuous</option>
|
2017-09-20 13:16:49 +00:00
|
|
|
<option value="vad">Voice Activity</option>
|
2017-09-19 20:40:54 +00:00
|
|
|
<option value="ptt">Push To Talk</option>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2017-09-20 13:16:49 +00:00
|
|
|
<tr data-bind="visible: voiceMode() == 'vad'">
|
|
|
|
<td colspan="2">
|
|
|
|
<div class="mic-volume-container">
|
|
|
|
<div class="mic-volume" data-bind="style: {
|
|
|
|
width: testVadLevel()*100 + '%',
|
|
|
|
background: testVadActive() ? 'green' : 'red'
|
|
|
|
}"></div>
|
|
|
|
</div>
|
|
|
|
<input type="range" min="0" max="1" step="0.01"
|
|
|
|
data-bind="value: vadLevel">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr data-bind="visible: voiceMode() == 'ptt'">
|
2017-09-19 20:40:54 +00:00
|
|
|
<td>PTT Key</td>
|
|
|
|
<td>
|
|
|
|
<input type="button" data-bind="value: pttKeyDisplay, click: recordPttKey">
|
|
|
|
</td>
|
|
|
|
</tr>
|
2018-09-26 11:07:29 +00:00
|
|
|
<tr>
|
|
|
|
<td>Audio Quality</td>
|
|
|
|
<td><span data-bind="text: (audioBitrate()/1000).toFixed(1)"></span> kbit/s</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2">
|
|
|
|
<input type="range" min="8000" max="96000" step="8"
|
|
|
|
data-bind="value: audioBitrate, valueUpdate: 'input'">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Audio per packet</td>
|
|
|
|
<td><span data-bind="text: msPerPacket"></span> ms</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2">
|
|
|
|
<input type="range" min="10" max="60" step="10"
|
|
|
|
data-bind="value: msPerPacket, valueUpdate: 'input'">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" class="bandwidth-info">
|
|
|
|
<span data-bind="text: (totalBandwidth()/1000).toFixed(1)"></span>
|
|
|
|
kbit/s
|
|
|
|
(Audio
|
|
|
|
<span data-bind="text: (audioBitrate()/1000).toFixed(1)"></span>,
|
|
|
|
Position
|
|
|
|
<span data-bind="text: (positionBandwidth()/1000).toFixed(1)"></span>,
|
|
|
|
Overhead
|
|
|
|
<span data-bind="text: (overheadBandwidth()/1000).toFixed(1)"></span>)
|
|
|
|
</td>
|
|
|
|
</tr>
|
2018-09-24 13:36:37 +00:00
|
|
|
<tr>
|
|
|
|
<td>Show Avatars</td>
|
|
|
|
<td>
|
|
|
|
<select data-bind='value: showAvatars'>
|
|
|
|
<option value="always">Always</option>
|
|
|
|
<option value="own_channel">Same Channel</option>
|
|
|
|
<option value="linked_channel">Linked Channels</option>
|
|
|
|
<option value="minimal_only">Minimal View</option>
|
|
|
|
<option value="never">Never</option>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2018-10-08 18:20:12 +00:00
|
|
|
<tr>
|
|
|
|
<td colspan="2">
|
|
|
|
<input type="checkbox" data-bind="checked: userCountInChannelName">
|
|
|
|
Show user count after channel name
|
|
|
|
</td>
|
|
|
|
</tr>
|
2017-09-19 20:40:54 +00:00
|
|
|
</table>
|
|
|
|
<div class="dialog-footer">
|
|
|
|
<input class="dialog-close" type="button" data-bind="click: $root.closeSettings" value="Cancel">
|
|
|
|
<input class="dialog-submit" type="submit" value="Apply">
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<!-- /ko -->
|
2018-09-24 19:04:48 +00:00
|
|
|
<img class="avatar-view" data-bind="visible: avatarView, attr: { src: avatarView },
|
|
|
|
click: function () { avatarView(null) }"></img>
|
2018-09-24 17:00:18 +00:00
|
|
|
<!-- ko with: userContextMenu -->
|
2020-05-03 16:49:43 +00:00
|
|
|
<ul class="context-menu user-context-menu" data-bind="if: target,
|
2018-09-24 17:00:18 +00:00
|
|
|
style: { left: posX() + 'px',
|
|
|
|
top: posY() + 'px' }">
|
|
|
|
|
|
|
|
<!-- ko with: target -->
|
2020-05-03 16:49:43 +00:00
|
|
|
<li data-bind="css: { disabled: !canChangeMute() }"
|
|
|
|
class="mute">
|
2018-09-24 17:00:18 +00:00
|
|
|
Mute
|
|
|
|
</li>
|
2020-05-03 16:49:43 +00:00
|
|
|
<li data-bind="css: { disabled: !canChangeDeafen() }"
|
|
|
|
class="deafen">
|
2018-09-24 17:00:18 +00:00
|
|
|
Deafen
|
|
|
|
</li>
|
2020-05-03 16:49:43 +00:00
|
|
|
<li data-bind="css: { disabled: !canChangePrioritySpeaker() }"
|
|
|
|
class="priority-speaker">
|
2018-09-24 17:00:18 +00:00
|
|
|
Priority Speaker
|
|
|
|
</li>
|
|
|
|
|
2020-05-03 16:49:43 +00:00
|
|
|
<li data-bind="css: { disabled: !canLocalMute() }"
|
|
|
|
class="local-mute">
|
2018-09-24 17:00:18 +00:00
|
|
|
Local Mute
|
|
|
|
</li>
|
2020-05-03 16:49:43 +00:00
|
|
|
<li data-bind="css: { disabled: !canIgnoreMessages() }"
|
|
|
|
class="ignore-messages">
|
2018-09-24 17:00:18 +00:00
|
|
|
Ignore Messages
|
|
|
|
</li>
|
|
|
|
|
2020-05-03 16:49:43 +00:00
|
|
|
<li data-bind="css: { disabled: !canChangeComment() }, visible: comment"
|
|
|
|
class="view-comment">
|
2018-09-24 17:00:18 +00:00
|
|
|
View Comment
|
|
|
|
</li>
|
|
|
|
<!-- ko if: $data === $root.thisUser() -->
|
2020-05-03 16:49:43 +00:00
|
|
|
<li data-bind="css: { disabled: !canChangeComment() }, visible: true"
|
|
|
|
class="change-comment">
|
2018-09-24 17:00:18 +00:00
|
|
|
Change Comment
|
|
|
|
</li>
|
|
|
|
<!-- /ko -->
|
|
|
|
<!-- ko if: $data !== $root.thisUser() -->
|
2020-05-03 16:49:43 +00:00
|
|
|
<li data-bind="css: { disabled: !canChangeComment() }, visible: comment"
|
|
|
|
class="reset-comment">
|
2018-09-24 17:00:18 +00:00
|
|
|
Reset Comment
|
|
|
|
</li>
|
|
|
|
<!-- /ko -->
|
|
|
|
|
2018-09-24 19:04:48 +00:00
|
|
|
<li data-bind="css: { disabled: !canChangeAvatar() }, visible: texture,
|
2020-05-03 16:49:43 +00:00
|
|
|
click: viewAvatar"
|
|
|
|
class="view-avatar">
|
2018-09-24 17:00:18 +00:00
|
|
|
View Avatar
|
|
|
|
</li>
|
|
|
|
<!-- ko if: $data === $root.thisUser() -->
|
2018-09-24 19:05:22 +00:00
|
|
|
<li data-bind="css: { disabled: !canChangeAvatar() }, visible: true,
|
2020-05-03 16:49:43 +00:00
|
|
|
click: changeAvatar"
|
|
|
|
class="change-avatar">
|
2018-09-24 17:00:18 +00:00
|
|
|
Change Avatar
|
|
|
|
</li>
|
|
|
|
<!-- /ko -->
|
2018-09-24 19:05:22 +00:00
|
|
|
<li data-bind="css: { disabled: !canChangeAvatar() }, visible: texture,
|
2020-05-03 16:49:43 +00:00
|
|
|
click: removeAvatar",
|
|
|
|
class="reset-avatar">
|
2018-09-24 17:00:18 +00:00
|
|
|
Reset Avatar
|
|
|
|
</li>
|
|
|
|
|
2020-05-03 16:49:43 +00:00
|
|
|
<li data-bind="css: { disabled: true }, visible: true"
|
|
|
|
class="send-message">
|
2018-09-24 17:00:18 +00:00
|
|
|
Send Message
|
|
|
|
</li>
|
2020-05-03 16:49:43 +00:00
|
|
|
<li data-bind="css: { disabled: true }, visible: true"
|
|
|
|
class="information">
|
2018-09-24 17:00:18 +00:00
|
|
|
Information
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li data-bind="visible: $data === $root.thisUser(),
|
|
|
|
css: { checked: selfMute },
|
2020-05-03 16:49:43 +00:00
|
|
|
click: toggleMute"
|
|
|
|
class="self-mute">
|
2018-09-24 17:00:18 +00:00
|
|
|
Self Mute
|
|
|
|
</li>
|
|
|
|
<li data-bind="visible: $data === $root.thisUser(),
|
|
|
|
css: { checked: selfDeaf },
|
2020-05-03 16:49:43 +00:00
|
|
|
click: toggleDeaf"
|
|
|
|
class="self-deafen">
|
2018-09-24 17:00:18 +00:00
|
|
|
Self Deafen
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<!-- ko if: $data !== $root.thisUser() -->
|
2020-05-03 16:49:43 +00:00
|
|
|
<li data-bind="css: { disabled: true }, visible: true"
|
|
|
|
class="add-friend">
|
2018-09-24 17:00:18 +00:00
|
|
|
Add Friend
|
|
|
|
</li>
|
2020-05-03 16:49:43 +00:00
|
|
|
<li data-bind="css: { disabled: true }, visible: false"
|
|
|
|
class="remove-friend">
|
2018-09-24 17:00:18 +00:00
|
|
|
Remove Friend
|
|
|
|
</li>
|
|
|
|
<!-- /ko -->
|
|
|
|
|
|
|
|
<!-- /ko -->
|
|
|
|
</ul>
|
|
|
|
<!-- /ko -->
|
|
|
|
<!-- ko with: channelContextMenu -->
|
2020-05-03 16:49:43 +00:00
|
|
|
<ul class="context-menu channel-context-menu" data-bind="if: target,
|
2018-09-24 17:00:18 +00:00
|
|
|
style: { left: posX() + 'px',
|
|
|
|
top: posY() + 'px' }">
|
|
|
|
|
|
|
|
<!-- ko with: target -->
|
|
|
|
<li data-bind="visible: users.indexOf($root.thisUser()) === -1,
|
|
|
|
css: { disabled: !canJoin() },
|
2020-05-03 16:49:43 +00:00
|
|
|
click: $root.requestMove.bind($root, $root.thisUser())"
|
|
|
|
class="join">
|
2018-09-24 17:00:18 +00:00
|
|
|
Join Channel
|
|
|
|
</li>
|
2020-05-03 16:49:43 +00:00
|
|
|
<li data-bind="css: { disabled: !canAdd() }"
|
|
|
|
class="add">
|
2018-09-24 17:00:18 +00:00
|
|
|
Add
|
|
|
|
</li>
|
2020-05-03 16:49:43 +00:00
|
|
|
<li data-bind="css: { disabled: !canEdit() }"
|
|
|
|
class="edit">
|
2018-09-24 17:00:18 +00:00
|
|
|
Edit
|
|
|
|
</li>
|
2020-05-03 16:49:43 +00:00
|
|
|
<li data-bind="css: { disabled: !canRemove() }"
|
|
|
|
class="remove">
|
2018-09-24 17:00:18 +00:00
|
|
|
Remove
|
|
|
|
</li>
|
|
|
|
|
2020-05-03 16:49:43 +00:00
|
|
|
<li data-bind="css: { disabled: !canLink() }"
|
|
|
|
class="link">
|
2018-09-24 17:00:18 +00:00
|
|
|
Link
|
|
|
|
</li>
|
2020-05-03 16:49:43 +00:00
|
|
|
<li data-bind="css: { disabled: !canUnlink() }"
|
|
|
|
class="unlink">
|
2018-09-24 17:00:18 +00:00
|
|
|
Unlink
|
|
|
|
</li>
|
2020-05-03 16:49:43 +00:00
|
|
|
<li data-bind="css: { disabled: !canUnlink() }"
|
|
|
|
class="unlink-all">
|
2018-09-24 17:00:18 +00:00
|
|
|
Unlink All
|
|
|
|
</li>
|
|
|
|
|
2020-05-03 16:49:43 +00:00
|
|
|
<li data-bind="css: { disabled: true }"
|
|
|
|
class="copy-mumble-url">
|
2018-09-24 17:00:18 +00:00
|
|
|
Copy Mumble URL
|
|
|
|
</li>
|
2020-05-03 16:49:43 +00:00
|
|
|
<li data-bind="css: { disabled: true }"
|
|
|
|
class="copy-mumble-web-url">
|
2018-09-24 17:00:18 +00:00
|
|
|
Copy Mumble-Web URL
|
|
|
|
</li>
|
2020-05-03 16:49:43 +00:00
|
|
|
<li data-bind="css: { disabled: !canSendMessage() }"
|
|
|
|
class="send-message">
|
2018-09-24 17:00:18 +00:00
|
|
|
Send Message
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<!-- /ko -->
|
|
|
|
</ul>
|
|
|
|
<!-- /ko -->
|
2016-11-27 16:43:59 +00:00
|
|
|
<script type="text/html" id="user-tag">
|
|
|
|
<span class="user-tag" data-bind="text: name"></span>
|
|
|
|
</script>
|
|
|
|
<script type="text/html" id="channel-tag">
|
|
|
|
<span class="channel-tag" data-bind="text: name"></span>
|
|
|
|
</script>
|
2018-09-23 13:38:11 +00:00
|
|
|
<div class="toolbar" data-bind="css: { 'toolbar-horizontal': toolbarHorizontal(),
|
|
|
|
'toolbar-vertical': !toolbarHorizontal() }">
|
2020-10-06 14:34:01 +00:00
|
|
|
<img class="tb-horizontal handle-horizontal" src="/svg/handle_horizontal.svg"
|
|
|
|
data-bind="click: toggleToolbarOrientation"
|
|
|
|
title="Switch Orientation" alt="Switch Orientation">
|
|
|
|
<img class="tb-vertical handle-vertical" src="/svg/handle_vertical.svg"
|
|
|
|
data-bind="click: toggleToolbarOrientation"
|
|
|
|
title="Switch Orientation" alt="Switch Orientation">
|
2018-09-23 12:05:38 +00:00
|
|
|
<img class="tb-connect" data-bind="visible: !connectDialog.joinOnly(),
|
|
|
|
click: connectDialog.show"
|
2020-10-06 14:34:01 +00:00
|
|
|
rel="connect" src="/svg/applications-internet.svg"
|
|
|
|
title="Connect to Server" alt="Connection">
|
2018-09-26 11:08:40 +00:00
|
|
|
<img class="tb-information" rel="information" src="/svg/information_icon.svg"
|
|
|
|
data-bind="click: connectionInfo.show,
|
2020-10-06 14:34:01 +00:00
|
|
|
css: { disabled: !thisUser() }"
|
|
|
|
title="Information" alt="Information">
|
2016-11-27 16:43:59 +00:00
|
|
|
<div class="divider"></div>
|
2017-09-20 14:51:30 +00:00
|
|
|
<img class="tb-mute" data-bind="visible: !selfMute(),
|
2018-09-24 16:06:50 +00:00
|
|
|
click: function () { requestMute(thisUser()) }"
|
2020-10-06 14:34:01 +00:00
|
|
|
rel="mute" src="/svg/audio-input-microphone.svg"
|
|
|
|
title="Mute" alt="Mute">
|
2017-09-20 14:51:30 +00:00
|
|
|
<img class="tb-unmute tb-active" data-bind="visible: selfMute,
|
2018-09-24 16:06:50 +00:00
|
|
|
click: function () { requestUnmute(thisUser()) }"
|
2020-10-06 14:34:01 +00:00
|
|
|
rel="unmute" src="/svg/audio-input-microphone-muted.svg"
|
|
|
|
title="Unmute" alt="Unmute">
|
2017-09-20 14:51:30 +00:00
|
|
|
<img class="tb-deaf" data-bind="visible: !selfDeaf(),
|
2018-09-24 16:06:50 +00:00
|
|
|
click: function () { requestDeaf(thisUser()) }"
|
2020-10-06 14:34:01 +00:00
|
|
|
rel="deaf" src="/svg/audio-output.svg"
|
|
|
|
title="Deafen" alt="Deafen">
|
2017-09-20 14:51:30 +00:00
|
|
|
<img class="tb-undeaf tb-active" data-bind="visible: selfDeaf,
|
2018-09-24 16:06:50 +00:00
|
|
|
click: function () { requestUndeaf(thisUser()) }"
|
2020-10-06 14:34:01 +00:00
|
|
|
rel="undeaf" src="/svg/audio-output-deafened.svg"
|
|
|
|
title="Undeafen" alt="Undeafen">
|
2016-11-27 16:43:59 +00:00
|
|
|
<img class="tb-record" data-bind="click: function(){}"
|
2020-10-06 14:34:01 +00:00
|
|
|
rel="record" src="/svg/media-record.svg"
|
|
|
|
title="Record" alt="Record">
|
2016-11-27 16:43:59 +00:00
|
|
|
<div class="divider"></div>
|
|
|
|
<img class="tb-comment" data-bind="click: commentDialog.show"
|
2020-10-06 14:34:01 +00:00
|
|
|
rel="comment" src="/svg/toolbar-comment.svg"
|
|
|
|
title="Comment" alt="Comment">
|
2016-11-27 16:43:59 +00:00
|
|
|
<div class="divider"></div>
|
2017-09-19 20:40:54 +00:00
|
|
|
<img class="tb-settings" data-bind="click: openSettings"
|
2020-10-06 14:34:01 +00:00
|
|
|
rel="settings" src="/svg/config_basic.svg"
|
|
|
|
title="Settings" alt="Settings">
|
2016-11-27 16:43:59 +00:00
|
|
|
<div class="divider"></div>
|
|
|
|
<img class="tb-sourcecode" data-bind="click: openSourceCode"
|
2020-10-06 14:34:01 +00:00
|
|
|
rel="Source Code" src="/svg/source-code.svg"
|
|
|
|
title="Open Soure Code" alt="Open Source Code">
|
2016-11-27 16:43:59 +00:00
|
|
|
</div>
|
|
|
|
<div class="chat">
|
|
|
|
<script type="text/html" id="log-generic">
|
|
|
|
<span data-bind="text: value"></span>
|
|
|
|
</script>
|
|
|
|
<script type="text/html" id="log-welcome-message">
|
|
|
|
Welcome message: <span data-bind="html: message"></span>
|
|
|
|
</script>
|
|
|
|
<script type="text/html" id="log-chat-message">
|
|
|
|
<span data-bind="visible: channel">
|
|
|
|
(Channel)
|
|
|
|
</span>
|
|
|
|
<span data-bind="template: { name: 'user-tag', data: user }"></span>:
|
|
|
|
<span class="message-content" data-bind="html: message"></span>
|
|
|
|
</script>
|
|
|
|
<script type="text/html" id="log-chat-message-self">
|
|
|
|
To
|
|
|
|
<span data-bind="template: { if: $data.channel, name: 'channel-tag', data: $data.channel }">
|
|
|
|
</span><span data-bind="template: { if: $data.user, name: 'user-tag', data: $data.user }">
|
|
|
|
</span>:
|
|
|
|
<span class="message-content" data-bind="html: message"></span>
|
|
|
|
</script>
|
|
|
|
<script type="text/html" id="log-disconnect">
|
|
|
|
</script>
|
|
|
|
<div class="log" data-bind="foreach: {
|
|
|
|
data: log,
|
|
|
|
afterRender: function (e) {
|
|
|
|
[].forEach.call(e[1].getElementsByTagName('a'), function(e){e.target = '_blank'})
|
|
|
|
}
|
|
|
|
}">
|
|
|
|
<div class="log-entry">
|
|
|
|
<span class="log-timestamp" data-bind="text: $root.getTimeString()"></span>
|
|
|
|
<!-- ko template: { data: $data, name: function(l) { return 'log-' + l.type; } } -->
|
|
|
|
<!-- /ko -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<form data-bind="submit: submitMessageBox">
|
2020-09-16 02:09:01 +00:00
|
|
|
<textarea id="message-box" row=1 data-bind="
|
|
|
|
attr: { placeholder: messageBoxHint },
|
|
|
|
textInput: messageBox,
|
|
|
|
event: {keypress: submitOnEnter}"></textarea>
|
2016-11-27 16:43:59 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<script type="text/html" id="channel">
|
|
|
|
<div class="channel" data-bind="
|
|
|
|
click: $root.select,
|
|
|
|
event: {
|
2018-09-24 17:00:18 +00:00
|
|
|
contextmenu: openContextMenu,
|
2016-11-27 16:43:59 +00:00
|
|
|
dblclick: $root.requestMove.bind($root, $root.thisUser())
|
|
|
|
},
|
|
|
|
css: {
|
|
|
|
selected: $root.selected() === $data,
|
|
|
|
currentChannel: users.indexOf($root.thisUser()) !== -1
|
|
|
|
}">
|
|
|
|
<div class="channel-status">
|
|
|
|
<img class="channel-description" data-bind="visible: description"
|
|
|
|
alt="description" src="/svg/comment.svg">
|
|
|
|
</div>
|
|
|
|
<div data-bind="if: description">
|
|
|
|
<div class="channel-description tooltip" data-bind="html: description"></div>
|
|
|
|
</div>
|
|
|
|
<img class="channel-icon" src="/svg/channel.svg"
|
|
|
|
data-bind="visible: !linked() && $root.thisUser().channel() !== $data">
|
|
|
|
<img class="channel-icon-active" src="/svg/channel_active.svg"
|
|
|
|
data-bind="visible: $root.thisUser().channel() === $data">
|
|
|
|
<img class="channel-icon-linked" src="/svg/channel_linked.svg"
|
|
|
|
data-bind="visible: linked() && $root.thisUser().channel() !== $data">
|
2018-10-08 18:20:12 +00:00
|
|
|
<div class="channel-name">
|
|
|
|
<span data-bind="text: name"></span>
|
|
|
|
<!-- ko if: $root.settings.userCountInChannelName() && userCount() !== 0 -->
|
|
|
|
(<span data-bind="text: userCount()"></span>)
|
|
|
|
<!-- /ko -->
|
|
|
|
</div>
|
2016-11-27 16:43:59 +00:00
|
|
|
</div>
|
|
|
|
<!-- ko if: expanded -->
|
|
|
|
<!-- ko foreach: users -->
|
|
|
|
<div class="user-wrapper">
|
|
|
|
<div class="user-tree"></div>
|
|
|
|
<div class="user" data-bind="
|
|
|
|
click: $root.select,
|
2018-09-24 17:00:18 +00:00
|
|
|
event: {
|
|
|
|
contextmenu: openContextMenu
|
|
|
|
},
|
2016-11-27 16:43:59 +00:00
|
|
|
css: {
|
|
|
|
thisClient: $root.thisUser() === $data,
|
|
|
|
selected: $root.selected() === $data
|
|
|
|
}">
|
|
|
|
<div class="user-status" data-bind="attr: { title: state }">
|
|
|
|
<img class="user-comment" data-bind="visible: comment"
|
|
|
|
alt="comment" src="/svg/comment.svg">
|
|
|
|
<img class="user-server-mute" data-bind="visible: mute"
|
|
|
|
alt="server mute" src="/svg/muted_server.svg">
|
|
|
|
<img class="user-suppress-mute" data-bind="visible: suppress"
|
|
|
|
alt="suppressed" src="/svg/muted_suppressed.svg">
|
|
|
|
<img class="user-self-mute" data-bind="visible: selfMute"
|
|
|
|
alt="self mute" src="/svg/muted_self.svg">
|
|
|
|
<img class="user-server-deaf" data-bind="visible: deaf"
|
|
|
|
alt="server deaf" src="/svg/deafened_server.svg">
|
|
|
|
<img class="user-self-deaf" data-bind="visible: selfDeaf"
|
|
|
|
alt="self deaf" src="/svg/deafened_self.svg">
|
|
|
|
<img class="user-authenticated" data-bind="visible: uid"
|
|
|
|
alt="authenticated" src="/svg/authenticated.svg">
|
|
|
|
</div>
|
|
|
|
<div data-bind="if: comment">
|
|
|
|
<div class="user-comment tooltip" data-bind="html: comment"></div>
|
|
|
|
</div>
|
2018-09-24 13:36:37 +00:00
|
|
|
<!-- ko if: show_avatar() -->
|
|
|
|
<img class="user-avatar" alt="avatar"
|
|
|
|
data-bind="attr: { src: texture },
|
|
|
|
css: { 'user-avatar-talk-off': talking() == 'off',
|
|
|
|
'user-avatar-talk-on': talking() == 'on',
|
|
|
|
'user-avatar-talk-whisper': talking() == 'whisper',
|
|
|
|
'user-avatar-talk-shout': talking() == 'shout' }">
|
|
|
|
<!-- /ko -->
|
|
|
|
<!-- ko ifnot: show_avatar() -->
|
2018-09-24 11:20:57 +00:00
|
|
|
<img class="user-talk user-talk-off" data-bind="visible: talking() == 'off'"
|
2016-11-27 16:43:59 +00:00
|
|
|
alt="talk off" src="/svg/talking_off.svg">
|
2018-09-24 11:20:57 +00:00
|
|
|
<img class="user-talk user-talk-on" data-bind="visible: talking() == 'on'"
|
2016-11-27 16:43:59 +00:00
|
|
|
alt="talk on" src="/svg/talking_on.svg">
|
2018-09-24 11:20:57 +00:00
|
|
|
<img class="user-talk user-talk-whisper" data-bind="visible: talking() == 'whisper'"
|
2016-11-27 16:43:59 +00:00
|
|
|
alt="whisper" src="/svg/talking_whisper.svg">
|
2018-09-24 11:20:57 +00:00
|
|
|
<img class="user-talk user-talk-shout" data-bind="visible: talking() == 'shout'"
|
2016-11-27 16:43:59 +00:00
|
|
|
alt="shout" src="/svg/talking_alt.svg">
|
2018-09-24 11:20:57 +00:00
|
|
|
<!-- /ko -->
|
2016-11-27 16:43:59 +00:00
|
|
|
<div class="user-name" data-bind="text: name"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /ko -->
|
|
|
|
<!-- ko foreach: channels -->
|
|
|
|
<div class="channel-wrapper">
|
|
|
|
<!-- ko ifnot: users().length || channels().length -->
|
|
|
|
<div class="channel-tree"></div>
|
|
|
|
<!-- /ko -->
|
|
|
|
<div class="branch" data-bind="if: users().length || channels().length">
|
|
|
|
<img class="branch-open" src="/svg/branch_open.svg"
|
|
|
|
data-bind="click: expanded.bind($data, false), visible: expanded()">
|
|
|
|
<img class="branch-closed" src="/svg/branch_closed.svg"
|
|
|
|
data-bind="click: expanded.bind($data, true), visible: !expanded()">
|
|
|
|
</div>
|
|
|
|
<div class="channel-sub" data-bind="template: {name: 'channel', data: $data}"></div>
|
|
|
|
</div>
|
|
|
|
<!-- /ko -->
|
|
|
|
<!-- /ko -->
|
|
|
|
</script>
|
2018-09-23 13:38:11 +00:00
|
|
|
<div class="channel-root-container" data-bind="if: root, visible: !minimalView()">
|
2016-11-27 16:43:59 +00:00
|
|
|
<div class="channel-root" data-bind="template: {name: 'channel', data: root}"></div>
|
|
|
|
</div>
|
2018-09-23 13:38:11 +00:00
|
|
|
<div class="channel-root-container" data-bind="if: thisUser, visible: minimalView()">
|
|
|
|
<div class="channel-root" data-bind="template: {name: 'channel', data: thisUser().channel}"></div>
|
|
|
|
</div>
|
2016-11-27 16:43:59 +00:00
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
<script src="index.js"></script>
|
|
|
|
</html>
|