From be481126cfc3e1176db3eace118c8ff2db87630f Mon Sep 17 00:00:00 2001 From: Rafael Araujo Lehmkuhl Date: Mon, 11 Nov 2024 12:34:30 -0300 Subject: [PATCH] cockpit-actions: Segregate HTTP Request actions on its own component For the sake of code maintainability. --- .../configuration/HttpRequestActionConfig.vue | 662 ++++++++++++++++++ src/views/ConfigurationActionsView.vue | 657 +---------------- 2 files changed, 664 insertions(+), 655 deletions(-) create mode 100644 src/components/configuration/HttpRequestActionConfig.vue diff --git a/src/components/configuration/HttpRequestActionConfig.vue b/src/components/configuration/HttpRequestActionConfig.vue new file mode 100644 index 000000000..f1f757334 --- /dev/null +++ b/src/components/configuration/HttpRequestActionConfig.vue @@ -0,0 +1,662 @@ + + + + + diff --git a/src/views/ConfigurationActionsView.vue b/src/views/ConfigurationActionsView.vue index 0b80c61a8..375f79d58 100644 --- a/src/views/ConfigurationActionsView.vue +++ b/src/views/ConfigurationActionsView.vue @@ -6,674 +6,21 @@ class="flex-col h-full overflow-y-auto ml-[10px] pr-3 -mr-[10px] -mb-[10px]" :class="interfaceStore.isOnSmallScreen ? 'max-w-[80vw] max-h-[90vh]' : 'max-w-[680px] max-h-[85vh]'" > - - - - - + - - - - {{ - editMode ? 'Edit action' : 'Create new action' - }} - - - - - - -
-

URL Parameters

- - mdi-plus - Add - -
-
- - - {{ param[0] }}: {{ param[1] }} - - -
- -
-

Headers

- - mdi-plus - Add - -
-
- - - {{ header[0] }}: {{ header[1] }} - - -
- -
-

JSON Body

- - mdi-code-json - Edit - -
-
-
- - -
- Cancel -
- Reset - - {{ editMode ? 'Save' : 'Create' }} - -
-
-
-
-
- - - - - Add URL parameter - - - - - - - - - -
- Cancel - Save -
-
-
-
- - - - - Add header - - - - - - - - -
- Cancel - Save -
-
-
-
- - - - - Edit JSON body template - - - - - - - -
- Cancel - Save -
-
-
-
- -