From 08b8defabd48227a7b26d9d3946ea3443aeaa877 Mon Sep 17 00:00:00 2001 From: Willian Galvani Date: Wed, 11 Dec 2024 18:43:55 -0300 Subject: [PATCH] Iframe: add widget api --- package.json | 3 +- src/components/widgets/IFrame.vue | 22 +++++++++++-- src/libs/actions/data-lake.ts | 2 +- src/libs/external-api/api.ts | 19 +++++++++++ src/libs/vehicle/ardupilot/ardupilot.ts | 3 ++ test/test.html | 37 ++++++++++++++++++++++ vite.config.ts | 42 +++++++++++++++++++++++-- 7 files changed, 122 insertions(+), 6 deletions(-) create mode 100644 src/libs/external-api/api.ts create mode 100644 test/test.html diff --git a/package.json b/package.json index 47e311fa0..64a32a2fd 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ "serve": "vite preview", "test:ci": "vitest --coverage --run", "test:unit": "vitest", - "typecheck": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false" + "typecheck": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false", + "build:lib": "BUILD_MODE=library vite build" }, "dependencies": { "@fortawesome/fontawesome-svg-core": "^6.4.0", diff --git a/src/components/widgets/IFrame.vue b/src/components/widgets/IFrame.vue index 7d1328a89..6cf50803c 100644 --- a/src/components/widgets/IFrame.vue +++ b/src/components/widgets/IFrame.vue @@ -3,6 +3,7 @@