From e515201691e932800b3074db40c830b71b2c4f7a Mon Sep 17 00:00:00 2001 From: Rafael Araujo Lehmkuhl Date: Thu, 3 Oct 2024 13:41:42 -0300 Subject: [PATCH] WIP --- src/libs/actions/data-lake.ts | 16 +- src/libs/actions/http-request.ts | 1 - src/views/ConfigurationActionsView.vue | 434 ++++++++++++++++--------- 3 files changed, 284 insertions(+), 167 deletions(-) diff --git a/src/libs/actions/data-lake.ts b/src/libs/actions/data-lake.ts index 212e9f2cd..00f4d9815 100644 --- a/src/libs/actions/data-lake.ts +++ b/src/libs/actions/data-lake.ts @@ -70,16 +70,16 @@ export const setCockpitActionParameterData = (id: string, data: string | number cockpitActionParametersData[id] = data } -const placeholderParameterOneInfo = new CockpitActionParameter( - 'placeholderParameterOne', +const fakeRovNameInfo = new CockpitActionParameter( + 'fakeRovName', 'Placeholder Parameter One', 'string', true, 'This is a placeholder parameter for the first parameter' ) -const placeholderParameterTwoInfo = new CockpitActionParameter( - 'placeholderParameterTwo', +const fakeRovAgeInitialDivesInfo = new CockpitActionParameter( + 'fakeRovAgeInitialDives', 'Placeholder Parameter Two', 'number', true, @@ -98,10 +98,10 @@ const placeholderParameterThreeInfo = new CockpitActionParameter( 'This is a placeholder parameter for the third parameter' ) -setCockpitActionParameterInfo(placeholderParameterOneInfo.id, placeholderParameterOneInfo) -setCockpitActionParameterInfo(placeholderParameterTwoInfo.id, placeholderParameterTwoInfo) +setCockpitActionParameterInfo(fakeRovNameInfo.id, fakeRovNameInfo) +setCockpitActionParameterInfo(fakeRovAgeInitialDivesInfo.id, fakeRovAgeInitialDivesInfo) setCockpitActionParameterInfo(placeholderParameterThreeInfo.id, placeholderParameterThreeInfo) -setCockpitActionParameterData(placeholderParameterOneInfo.id, 'John Doe') -setCockpitActionParameterData(placeholderParameterTwoInfo.id, 5) +setCockpitActionParameterData(fakeRovNameInfo.id, 'John Doe') +setCockpitActionParameterData(fakeRovAgeInitialDivesInfo.id, 5) setCockpitActionParameterData(placeholderParameterThreeInfo.id, true) diff --git a/src/libs/actions/http-request.ts b/src/libs/actions/http-request.ts index b04e104a1..80205448c 100644 --- a/src/libs/actions/http-request.ts +++ b/src/libs/actions/http-request.ts @@ -120,7 +120,6 @@ export const getHttpRequestActionCallback = (id: string): HttpRequestActionCallb } } - console.log('parsedUrlParams', parsedUrlParams) const cockpitInputsInUrlParams = Object.entries(action.urlParams).filter( ([, value]) => typeof value === 'string' && value.startsWith('{{') && value.endsWith('}}') ) diff --git a/src/views/ConfigurationActionsView.vue b/src/views/ConfigurationActionsView.vue index ccf65e8c3..3159a97aa 100644 --- a/src/views/ConfigurationActionsView.vue +++ b/src/views/ConfigurationActionsView.vue @@ -1,134 +1,256 @@