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,
|
private_mode: false,
|
||||||
locked_logins: false,
|
locked_logins: false,
|
||||||
locked_controls: false,
|
locked_controls: false,
|
||||||
|
control_protection: false,
|
||||||
implicit_hosting: false,
|
implicit_hosting: false,
|
||||||
inactive_cursors: false,
|
inactive_cursors: false,
|
||||||
merciful_reconnect: false,
|
merciful_reconnect: false,
|
||||||
@ -758,6 +759,7 @@ function clear() {
|
|||||||
private_mode: false,
|
private_mode: false,
|
||||||
locked_logins: false,
|
locked_logins: false,
|
||||||
locked_controls: false,
|
locked_controls: false,
|
||||||
|
control_protection: false,
|
||||||
implicit_hosting: false,
|
implicit_hosting: false,
|
||||||
inactive_cursors: false,
|
inactive_cursors: false,
|
||||||
merciful_reconnect: false,
|
merciful_reconnect: false,
|
||||||
|
@ -158,6 +158,7 @@ export interface Settings {
|
|||||||
private_mode: boolean
|
private_mode: boolean
|
||||||
locked_logins: boolean
|
locked_logins: boolean
|
||||||
locked_controls: boolean
|
locked_controls: boolean
|
||||||
|
control_protection: boolean
|
||||||
implicit_hosting: boolean
|
implicit_hosting: boolean
|
||||||
inactive_cursors: boolean
|
inactive_cursors: boolean
|
||||||
merciful_reconnect: boolean
|
merciful_reconnect: boolean
|
||||||
|
@ -482,6 +482,17 @@
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</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>
|
<tr>
|
||||||
<th class="middle">settings.implicit_hosting</th>
|
<th class="middle">settings.implicit_hosting</th>
|
||||||
<td>
|
<td>
|
||||||
|
Loading…
Reference in New Issue
Block a user