diff --git a/OpenApi.yml b/OpenApi.yml index 9fca958..65a5ab0 100644 --- a/OpenApi.yml +++ b/OpenApi.yml @@ -234,6 +234,9 @@ components: items: type: string example: m1k1o/neko:latest + storage_enabled: + type: boolean + example: true RoomEntry: type: object @@ -330,6 +333,8 @@ components: type: array items: $ref: '#/components/schemas/RoomMount' + browser_policy: + $ref: '#/components/schemas/BrowserPolicy' RoomStats: type: object @@ -360,3 +365,39 @@ components: muted: type: boolean example: false + + BrowserPolicy: + type: object + properties: + type: + type: string + enum: [ firefox, chromium ] + path: + type: string + example: /usr/lib/firefox/distribution/policies.json + content: + $ref: '#/components/schemas/BrowserPolicyContent' + + BrowserPolicyContent: + type: object + properties: + extensions: + type: array + items: + $ref: '#/components/schemas/BrowserPolicyExtension' + developer_tools: + type: boolean + example: true + persistent_data: + type: boolean + example: false + + BrowserPolicyExtension: + type: object + properties: + id: + type: string + example: uBlock0@raymondhill.net + url: + type: string + example: https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi diff --git a/client/src/api/.openapi-generator/VERSION b/client/src/api/.openapi-generator/VERSION index 6555596..862529f 100644 --- a/client/src/api/.openapi-generator/VERSION +++ b/client/src/api/.openapi-generator/VERSION @@ -1 +1 @@ -5.2.0-SNAPSHOT \ No newline at end of file +5.2.1-SNAPSHOT \ No newline at end of file diff --git a/client/src/api/api.ts b/client/src/api/api.ts index bce8ee1..bce7b07 100644 --- a/client/src/api/api.ts +++ b/client/src/api/api.ts @@ -21,6 +21,85 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base'; +/** + * + * @export + * @interface BrowserPolicy + */ +export interface BrowserPolicy { + /** + * + * @type {string} + * @memberof BrowserPolicy + */ + type?: BrowserPolicyTypeEnum; + /** + * + * @type {string} + * @memberof BrowserPolicy + */ + path?: string; + /** + * + * @type {BrowserPolicyContent} + * @memberof BrowserPolicy + */ + content?: BrowserPolicyContent; +} + +/** + * @export + * @enum {string} + */ +export enum BrowserPolicyTypeEnum { + firefox = 'firefox', + chromium = 'chromium' +} + +/** + * + * @export + * @interface BrowserPolicyContent + */ +export interface BrowserPolicyContent { + /** + * + * @type {Array} + * @memberof BrowserPolicyContent + */ + extensions?: Array; + /** + * + * @type {boolean} + * @memberof BrowserPolicyContent + */ + developer_tools?: boolean; + /** + * + * @type {boolean} + * @memberof BrowserPolicyContent + */ + persistent_data?: boolean; +} +/** + * + * @export + * @interface BrowserPolicyExtension + */ +export interface BrowserPolicyExtension { + /** + * + * @type {string} + * @memberof BrowserPolicyExtension + */ + id?: string; + /** + * + * @type {string} + * @memberof BrowserPolicyExtension + */ + url?: string; +} /** * * @export @@ -245,6 +324,12 @@ export interface RoomSettings { * @memberof RoomSettings */ mounts?: Array; + /** + * + * @type {BrowserPolicy} + * @memberof RoomSettings + */ + browser_policy?: BrowserPolicy; } /** * @@ -289,6 +374,12 @@ export interface RoomsConfig { * @memberof RoomsConfig */ neko_images?: Array; + /** + * + * @type {boolean} + * @memberof RoomsConfig + */ + storage_enabled?: boolean; } /** diff --git a/client/src/components/RoomInfo.vue b/client/src/components/RoomInfo.vue index 9d582ba..8bc9ab3 100644 --- a/client/src/components/RoomInfo.vue +++ b/client/src/components/RoomInfo.vue @@ -150,17 +150,45 @@ + +
Browser policy
+ + + +
none
diff --git a/client/src/components/RoomsCreate.vue b/client/src/components/RoomsCreate.vue index f94e18b..f79254b 100644 --- a/client/src/components/RoomsCreate.vue +++ b/client/src/components/RoomsCreate.vue @@ -208,10 +208,18 @@ mdi-close - +

Mounts

- mdi-plus + mdi-plus
+ +

Not available!

+

Mounts are not available, because storage is not enabled.

+
+ +
+ + +

+ Browser policy +

+ +
+ + +

Not available!

+

Browser policy is not available, because storage is not enabled.

+
+ + +

Not available!

+

Browser policy is not available for this image.

+
@@ -276,10 +349,14 @@