From 9f5812fa1b18e27ae66757a56685c257320aa30f Mon Sep 17 00:00:00 2001 From: Phillip Rak Date: Fri, 16 Feb 2024 18:54:21 -0700 Subject: [PATCH] Replace `TextAreaAutoGrow` with Ace editor Signed-off-by: Phillip Rak --- package.json | 2 ++ .../pages/snapshots/create.vue | 19 +++++++++++-------- .../typings/vue2-ace-editor.d.ts | 1 + yarn.lock | 12 ++++++++++++ 4 files changed, 26 insertions(+), 8 deletions(-) create mode 100644 pkg/rancher-desktop/typings/vue2-ace-editor.d.ts diff --git a/package.json b/package.json index 35fdbd513c5..7340c6689dd 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "@docker/extension-api-client-types": "0.3.4", "@kubernetes/client-node": "0.18.1", "@rancher/components": "0.1.4", + "ace-builds": "^1.32.6", "agent-base": "6.0.2", "async-mutex": "^0.4.1", "console": "0.7.2", @@ -97,6 +98,7 @@ "vue-select": "3.20.2", "vue-shortkey": "3.1.7", "vue-slider-component": "3.2.24", + "vue2.7-ace-editor": "^2.2.6", "vuex": "3.6.2", "which": "4.0.0", "xdg-app-paths": "5.5.1", diff --git a/pkg/rancher-desktop/pages/snapshots/create.vue b/pkg/rancher-desktop/pages/snapshots/create.vue index 9962262e9d3..f55f1894824 100644 --- a/pkg/rancher-desktop/pages/snapshots/create.vue +++ b/pkg/rancher-desktop/pages/snapshots/create.vue @@ -1,8 +1,12 @@