From 02bada7c149ea57a2f46e2f20f58a648cba6cb8a 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 | 21 +++++++++-- src/libs/actions/data-lake.ts | 26 ++++++++++++-- src/libs/external-api/api.ts | 43 ++++++++++++++++++++++ src/libs/vehicle/ardupilot/ardupilot.ts | 19 ++++++---- test/test.html | 33 +++++++++++++++++ vite.config.ts | 48 ++++++++++++++++++++++++- 7 files changed, 180 insertions(+), 13 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..0d373c5a7 100644 --- a/src/components/widgets/IFrame.vue +++ b/src/components/widgets/IFrame.vue @@ -3,6 +3,7 @@