mirror of
https://github.com/m1k1o/neko-rooms.git
synced 2026-11-02 22:51:34 -06:00
add install extension to gui.
This commit is contained in:
@@ -501,6 +501,9 @@ components:
|
|||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/BrowserPolicyExtension'
|
$ref: '#/components/schemas/BrowserPolicyExtension'
|
||||||
|
install_extensions:
|
||||||
|
type: boolean
|
||||||
|
example: false
|
||||||
developer_tools:
|
developer_tools:
|
||||||
type: boolean
|
type: boolean
|
||||||
example: true
|
example: true
|
||||||
|
|||||||
@@ -68,6 +68,12 @@ export interface BrowserPolicyContent {
|
|||||||
* @memberof BrowserPolicyContent
|
* @memberof BrowserPolicyContent
|
||||||
*/
|
*/
|
||||||
'extensions'?: Array<BrowserPolicyExtension>;
|
'extensions'?: Array<BrowserPolicyExtension>;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {boolean}
|
||||||
|
* @memberof BrowserPolicyContent
|
||||||
|
*/
|
||||||
|
'install_extensions'?: boolean;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
|
|||||||
@@ -189,6 +189,7 @@
|
|||||||
<template v-slot:default>
|
<template v-slot:default>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr><th> Extensions </th><td>{{ BrowserExtensions(settings.browser_policy.content.extensions).join(', ') }}</td></tr>
|
<tr><th> Extensions </th><td>{{ BrowserExtensions(settings.browser_policy.content.extensions).join(', ') }}</td></tr>
|
||||||
|
<tr><th> Install extensions </th><td>{{ settings.browser_policy.content.install_extensions }}</td></tr>
|
||||||
<tr><th> Developer tools </th><td>{{ settings.browser_policy.content.developer_tools }}</td></tr>
|
<tr><th> Developer tools </th><td>{{ settings.browser_policy.content.developer_tools }}</td></tr>
|
||||||
<tr><th> Persistent data </th><td>{{ settings.browser_policy.content.persistent_data }}</td></tr>
|
<tr><th> Persistent data </th><td>{{ settings.browser_policy.content.persistent_data }}</td></tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
@@ -406,12 +406,13 @@
|
|||||||
<v-row align="center">
|
<v-row align="center">
|
||||||
<v-col>
|
<v-col>
|
||||||
<v-checkbox
|
<v-checkbox
|
||||||
v-model="browserPolicyContent.developer_tools"
|
v-model="browserPolicyContent.install_extensions"
|
||||||
label="Enable developer tools"
|
label="Allow installing extensions"
|
||||||
hide-details
|
hide-details
|
||||||
class="shrink ml-2 mt-0"
|
class="shrink ml-2 mt-0"
|
||||||
:disabled="!browserPolicyEnabled"
|
:disabled="!browserPolicyEnabled"
|
||||||
></v-checkbox>
|
></v-checkbox>
|
||||||
|
<div style="margin-left: 41px;"><i>User can install any extension from the Chrome Web Store.</i></div>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col>
|
<v-col>
|
||||||
<v-checkbox
|
<v-checkbox
|
||||||
@@ -421,8 +422,22 @@
|
|||||||
class="shrink ml-2 mt-0"
|
class="shrink ml-2 mt-0"
|
||||||
:disabled="!browserPolicyEnabled"
|
:disabled="!browserPolicyEnabled"
|
||||||
></v-checkbox>
|
></v-checkbox>
|
||||||
|
<div style="margin-left: 41px;"><i>All cookies, local storage, etc. will be persistent between restarts.</i></div>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|
||||||
|
<v-row align="center">
|
||||||
|
<v-col>
|
||||||
|
<v-checkbox
|
||||||
|
v-model="browserPolicyContent.developer_tools"
|
||||||
|
label="Enable developer tools"
|
||||||
|
hide-details
|
||||||
|
class="shrink ml-2 mt-0"
|
||||||
|
:disabled="!browserPolicyEnabled"
|
||||||
|
></v-checkbox>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
<v-alert
|
<v-alert
|
||||||
border="left"
|
border="left"
|
||||||
|
|||||||
@@ -309,6 +309,8 @@ export const state = {
|
|||||||
defaultBrowserPolicyContent: {
|
defaultBrowserPolicyContent: {
|
||||||
extensions: [],
|
extensions: [],
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
|
install_extensions: false,
|
||||||
|
// eslint-disable-next-line
|
||||||
developer_tools: false,
|
developer_tools: false,
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
persistent_data: false,
|
persistent_data: false,
|
||||||
|
|||||||
@@ -14,9 +14,10 @@ type BrowserPolicy struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type BrowserPolicyContent struct {
|
type BrowserPolicyContent struct {
|
||||||
Extensions []BrowserPolicyExtension `json:"extensions"`
|
Extensions []BrowserPolicyExtension `json:"extensions"`
|
||||||
DeveloperTools bool `json:"developer_tools"`
|
InstallExtensions bool `json:"install_extensions"`
|
||||||
PersistentData bool `json:"persistent_data"`
|
DeveloperTools bool `json:"developer_tools"`
|
||||||
|
PersistentData bool `json:"persistent_data"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type BrowserPolicyExtension struct {
|
type BrowserPolicyExtension struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user