diff --git a/src/api/scripts.js b/src/api/scripts.js index e2d8a63..1316f7b 100644 --- a/src/api/scripts.js +++ b/src/api/scripts.js @@ -8,3 +8,10 @@ export async function fetchScripts(params = {}) { return data } catch (e) { } } + +export async function testScript(payload) { + try { + const { data } = await axios.post(`${baseUrl}/testscript/`, payload) + return data + } catch (e) { } +} \ No newline at end of file diff --git a/src/components/ScriptManager.vue b/src/components/ScriptManager.vue index 65a81d6..67a6bc6 100644 --- a/src/components/ScriptManager.vue +++ b/src/components/ScriptManager.vue @@ -284,12 +284,17 @@ - {{ props.row.name }} + + {{ truncateText(props.row.name) }} + + {{ props.row.name }} + + {{ truncateText(props.row.args.toString()) }} - + {{ props.row.args }} @@ -298,7 +303,7 @@ {{ props.row.category }} {{ truncateText(props.row.description) }} - {{ + {{ props.row.description }} diff --git a/src/components/modals/agents/RunScript.vue b/src/components/modals/agents/RunScript.vue index c63bedc..c223e17 100644 --- a/src/components/modals/agents/RunScript.vue +++ b/src/components/modals/agents/RunScript.vue @@ -18,13 +18,11 @@ diff --git a/src/components/modals/scripts/ScriptFormModal.vue b/src/components/modals/scripts/ScriptFormModal.vue index a64f53c..fae828d 100644 --- a/src/components/modals/scripts/ScriptFormModal.vue +++ b/src/components/modals/scripts/ScriptFormModal.vue @@ -104,9 +104,10 @@ line-numbers @click="focusTextArea" /> - + - + + @@ -114,6 +115,7 @@ \ No newline at end of file