From 0775a815107ffee638bb746d7f60daa7c05674ab Mon Sep 17 00:00:00 2001 From: handsomewu <562390063@qq.com> Date: Thu, 14 Nov 2024 00:23:58 +0800 Subject: [PATCH] add yaml editor in pod and service deploy page --- package.json | 1 + src/views/deploy/app.vue | 37 +++++++++++++++++++++++- src/views/deploy/service.vue | 55 +++++++++++++++++++++++++++++++++++- 3 files changed, 91 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 57912ffe..aaa3fd66 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "file-saver": "2.0.1", "fuse.js": "3.4.4", "js-cookie": "2.2.0", + "js-yaml": "^4.1.0", "jsonlint": "1.6.3", "jszip": "3.2.1", "normalize.css": "7.0.0", diff --git a/src/views/deploy/app.vue b/src/views/deploy/app.vue index e086cd00..8ead89db 100644 --- a/src/views/deploy/app.vue +++ b/src/views/deploy/app.vue @@ -1,5 +1,6 @@