mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
implement control protection.
This commit is contained in:
parent
bc26fde705
commit
7eb40aba81
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user