implement control protection.

This commit is contained in:
Miroslav Šedivý 2024-04-21 20:10:45 +02:00
parent bc26fde705
commit 7eb40aba81
3 changed files with 14 additions and 0 deletions

View File

@ -211,6 +211,7 @@ const state = reactive<NekoState>({
private_mode: false,
locked_logins: false,
locked_controls: false,
control_protection: false,
implicit_hosting: false,
inactive_cursors: false,
merciful_reconnect: false,
@ -758,6 +759,7 @@ function clear() {
private_mode: false,
locked_logins: false,
locked_controls: false,
control_protection: false,
implicit_hosting: false,
inactive_cursors: false,
merciful_reconnect: false,

View File

@ -158,6 +158,7 @@ export interface Settings {
private_mode: boolean
locked_logins: boolean
locked_controls: boolean
control_protection: boolean
implicit_hosting: boolean
inactive_cursors: boolean
merciful_reconnect: boolean

View File

@ -482,6 +482,17 @@
</div>
</td>
</tr>
<tr>
<th class="middle">settings.control_protection</th>
<td>
<div class="space-between">
<span>{{ neko.state.settings.control_protection }}</span>
<button @click="updateSettings({ control_protection: !neko.state.settings.control_protection })">
<i class="fas fa-toggle-on"></i>
</button>
</div>
</td>
</tr>
<tr>
<th class="middle">settings.implicit_hosting</th>
<td>