From 7543cf79eee2c3ad899b51b9d48555aa43745e96 Mon Sep 17 00:00:00 2001
From: yyh <24493052+yongheng2016@users.noreply.github.com>
Date: Mon, 17 Jun 2024 17:16:26 +0800
Subject: [PATCH] feat: controhub/configmaps secrets service serviceacounts
edit
---
apps/adminConsole/src/containers/Yaml.vue | 3 +-
.../Configurations/Configmaps.vue | 20 ++
.../Configurations/Secrets.vue | 20 ++
.../Configurations/ServiceAccounts.vue | 19 ++
.../ApplicationSpaces/Services/Detail.vue | 48 ++-
.../src/pages/NamespacePods/Yaml.vue | 6 +-
.../src/pages/NamespacePods/Yaml2.vue | 6 +-
.../src/pages/NamespacePods/Yaml3.vue | 306 ++++++++++++++++++
apps/adminConsole/src/pages/Pods/Yaml2.vue | 3 +-
apps/common/src/containers/Yaml.vue | 3 +-
apps/common/src/network/index.ts | 20 ++
apps/nodes/src/pages/Pods/Yaml2.vue | 3 +-
12 files changed, 419 insertions(+), 38 deletions(-)
create mode 100644 apps/adminConsole/src/pages/NamespacePods/Yaml3.vue
diff --git a/apps/adminConsole/src/containers/Yaml.vue b/apps/adminConsole/src/containers/Yaml.vue
index 4137fb6..d0ee54f 100644
--- a/apps/adminConsole/src/containers/Yaml.vue
+++ b/apps/adminConsole/src/containers/Yaml.vue
@@ -11,7 +11,8 @@
useWorker: true,
keyboardHandler: 'vscode',
wrapEnabled: true,
- tabSize: 2
+ tabSize: 2,
+ wrap: true
}"
/>
diff --git a/apps/adminConsole/src/pages/ApplicationSpaces/Configurations/Configmaps.vue b/apps/adminConsole/src/pages/ApplicationSpaces/Configurations/Configmaps.vue
index d68b3f7..13f956d 100644
--- a/apps/adminConsole/src/pages/ApplicationSpaces/Configurations/Configmaps.vue
+++ b/apps/adminConsole/src/pages/ApplicationSpaces/Configurations/Configmaps.vue
@@ -1,5 +1,10 @@
+
+
+
+
+
@@ -13,6 +18,7 @@
+
+
+
diff --git a/apps/adminConsole/src/pages/Pods/Yaml2.vue b/apps/adminConsole/src/pages/Pods/Yaml2.vue
index 74e5d30..e9eb899 100644
--- a/apps/adminConsole/src/pages/Pods/Yaml2.vue
+++ b/apps/adminConsole/src/pages/Pods/Yaml2.vue
@@ -26,7 +26,8 @@
:options="{
showGutter: true,
showPrintMargin: true,
- useWorker: true
+ useWorker: true,
+ wrap: true
}"
/>
diff --git a/apps/common/src/containers/Yaml.vue b/apps/common/src/containers/Yaml.vue
index 0c56bd9..fae8e41 100644
--- a/apps/common/src/containers/Yaml.vue
+++ b/apps/common/src/containers/Yaml.vue
@@ -13,7 +13,8 @@
useWorker: false,
keyboardHandler: 'vscode',
wrapEnabled: true,
- tabSize: 2
+ tabSize: 2,
+ wrap: true
}"
/>
diff --git a/apps/common/src/network/index.ts b/apps/common/src/network/index.ts
index 30b90ba..cf61bb2 100644
--- a/apps/common/src/network/index.ts
+++ b/apps/common/src/network/index.ts
@@ -372,6 +372,15 @@ export const getWorkloadsControler = (
return api.get(`/apis/apps/v1/namespaces/${namespace}/${kind}/${name}`);
};
+export const getDetail = (
+ apiVersion: string,
+ params: { namespace: string; kind: string; name: string }
+): Promise> => {
+ return api.get(
+ `${apiVersion}/namespaces/${params.namespace}/${params.kind}/${params.name}`
+ );
+};
+
export const updateWorkloadsControler = (
namespace: string,
kind: string,
@@ -384,6 +393,17 @@ export const updateWorkloadsControler = (
);
};
+export const updateDetail = (
+ apiVersion: string,
+ obj: { namespace: string; kind: string; name: string },
+ params: any
+): Promise> => {
+ return api.put(
+ `${apiVersion}/namespaces/${obj.namespace}/${obj.kind}/${obj.name}`,
+ params
+ );
+};
+
export const updateCustomResources = (
namespace: string,
module: string,
diff --git a/apps/nodes/src/pages/Pods/Yaml2.vue b/apps/nodes/src/pages/Pods/Yaml2.vue
index 74e5d30..e9eb899 100644
--- a/apps/nodes/src/pages/Pods/Yaml2.vue
+++ b/apps/nodes/src/pages/Pods/Yaml2.vue
@@ -26,7 +26,8 @@
:options="{
showGutter: true,
showPrintMargin: true,
- useWorker: true
+ useWorker: true,
+ wrap: true
}"
/>