From c945a9443cbf59900a8e945b60719de7b97413c5 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Tue, 24 Sep 2024 12:50:25 +0800 Subject: [PATCH] Refine UI --- api-docs/openapi/v3_0/aggregated.json | 66 +++++ .../v3_0/apis_console.api_v1alpha1.json | 66 +++++ .../interface/menus/components/MenuList.vue | 42 ++- ui/packages/api-client/entry/api-client.ts | 11 +- .../api-client/src/.openapi-generator/FILES | 1 + ui/packages/api-client/src/api.ts | 1 + .../api/system-config-v1alpha1-console-api.ts | 246 ++++++++++++++++++ 7 files changed, 407 insertions(+), 26 deletions(-) create mode 100644 ui/packages/api-client/src/api/system-config-v1alpha1-console-api.ts diff --git a/api-docs/openapi/v3_0/aggregated.json b/api-docs/openapi/v3_0/aggregated.json index 700654713..dfdd9790f 100644 --- a/api-docs/openapi/v3_0/aggregated.json +++ b/api-docs/openapi/v3_0/aggregated.json @@ -7434,6 +7434,72 @@ ] } }, + "/apis/console.api.halo.run/v1alpha1/systemconfigs/{group}": { + "get": { + "description": "Get system config by group", + "operationId": "getSystemConfigByGroup", + "parameters": [ + { + "description": "Group of the system config", + "in": "path", + "name": "group", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "type": "object" + } + }, + "application/json": {} + }, + "description": "default response" + } + }, + "tags": [ + "SystemConfigV1alpha1Console" + ] + }, + "put": { + "description": "Update system config by group", + "operationId": "updateSystemConfigByGroup", + "parameters": [ + { + "description": "Group of the system config", + "in": "path", + "name": "group", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "type": "object" + } + } + } + }, + "responses": { + "204 NO_CONTENT": { + "content": {}, + "description": "default response" + } + }, + "tags": [ + "SystemConfigV1alpha1Console" + ] + } + }, "/apis/console.api.migration.halo.run/v1alpha1/backup-files": { "get": { "description": "Get backup files from backup root.", diff --git a/api-docs/openapi/v3_0/apis_console.api_v1alpha1.json b/api-docs/openapi/v3_0/apis_console.api_v1alpha1.json index 9ff6d788c..de0068c62 100644 --- a/api-docs/openapi/v3_0/apis_console.api_v1alpha1.json +++ b/api-docs/openapi/v3_0/apis_console.api_v1alpha1.json @@ -3136,6 +3136,72 @@ ] } }, + "/apis/console.api.halo.run/v1alpha1/systemconfigs/{group}": { + "get": { + "description": "Get system config by group", + "operationId": "getSystemConfigByGroup", + "parameters": [ + { + "description": "Group of the system config", + "in": "path", + "name": "group", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "*/*": { + "schema": { + "type": "object" + } + }, + "application/json": {} + }, + "description": "default response" + } + }, + "tags": [ + "SystemConfigV1alpha1Console" + ] + }, + "put": { + "description": "Update system config by group", + "operationId": "updateSystemConfigByGroup", + "parameters": [ + { + "description": "Group of the system config", + "in": "path", + "name": "group", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { + "type": "object" + } + } + } + }, + "responses": { + "204 NO_CONTENT": { + "content": {}, + "description": "default response" + } + }, + "tags": [ + "SystemConfigV1alpha1Console" + ] + } + }, "/apis/console.api.migration.halo.run/v1alpha1/backup-files": { "get": { "description": "Get backup files from backup root.", diff --git a/ui/console-src/modules/interface/menus/components/MenuList.vue b/ui/console-src/modules/interface/menus/components/MenuList.vue index cd4fb1e1e..352ec73b8 100644 --- a/ui/console-src/modules/interface/menus/components/MenuList.vue +++ b/ui/console-src/modules/interface/menus/components/MenuList.vue @@ -1,7 +1,7 @@