From 5e14c232d7a0c377e12d49f9cc2bb7ae343a6685 Mon Sep 17 00:00:00 2001 From: arabcoders Date: Fri, 11 Jul 2025 18:53:43 +0300 Subject: [PATCH] move condition to ts --- ui/@types/conditions.d.ts | 12 +++ ui/components/ConditionForm.vue | 146 ++++++++++++++++---------------- ui/pages/conditions.vue | 141 +++++++++++++++--------------- 3 files changed, 152 insertions(+), 147 deletions(-) create mode 100644 ui/@types/conditions.d.ts diff --git a/ui/@types/conditions.d.ts b/ui/@types/conditions.d.ts new file mode 100644 index 00000000..a6d440d3 --- /dev/null +++ b/ui/@types/conditions.d.ts @@ -0,0 +1,12 @@ +export type ConditionItem = { + id?: string + name: string + filter: string + cli: string + [key: string]: any +} + +export type ImportedConditionItem = ConditionItem & { + _type: string + _version: string +} diff --git a/ui/components/ConditionForm.vue b/ui/components/ConditionForm.vue index 263acb22..97537ab6 100644 --- a/ui/components/ConditionForm.vue +++ b/ui/components/ConditionForm.vue @@ -206,77 +206,37 @@ -