From 1a6431b9222a461143b81542ceaa576de31664cb Mon Sep 17 00:00:00 2001 From: Joscha Date: Wed, 26 Mar 2025 20:58:03 +0100 Subject: [PATCH] Add vue app to photo.html --- showbits-thermal-printer-ui/index.html | 2 +- showbits-thermal-printer-ui/photo.html | 3 +++ .../src/{App.vue => AppIndex.vue} | 0 showbits-thermal-printer-ui/src/AppPhoto.vue | 5 +++++ showbits-thermal-printer-ui/src/{main.ts => index.ts} | 2 +- showbits-thermal-printer-ui/src/photo.ts | 11 +++++++++++ 6 files changed, 21 insertions(+), 2 deletions(-) rename showbits-thermal-printer-ui/src/{App.vue => AppIndex.vue} (100%) create mode 100644 showbits-thermal-printer-ui/src/AppPhoto.vue rename showbits-thermal-printer-ui/src/{main.ts => index.ts} (92%) create mode 100644 showbits-thermal-printer-ui/src/photo.ts diff --git a/showbits-thermal-printer-ui/index.html b/showbits-thermal-printer-ui/index.html index de537c6..3d6a3c1 100644 --- a/showbits-thermal-printer-ui/index.html +++ b/showbits-thermal-printer-ui/index.html @@ -7,6 +7,6 @@
- + diff --git a/showbits-thermal-printer-ui/photo.html b/showbits-thermal-printer-ui/photo.html index 06f8b2f..d85c6c9 100644 --- a/showbits-thermal-printer-ui/photo.html +++ b/showbits-thermal-printer-ui/photo.html @@ -185,5 +185,8 @@ + +
+ diff --git a/showbits-thermal-printer-ui/src/App.vue b/showbits-thermal-printer-ui/src/AppIndex.vue similarity index 100% rename from showbits-thermal-printer-ui/src/App.vue rename to showbits-thermal-printer-ui/src/AppIndex.vue diff --git a/showbits-thermal-printer-ui/src/AppPhoto.vue b/showbits-thermal-printer-ui/src/AppPhoto.vue new file mode 100644 index 0000000..edeaad7 --- /dev/null +++ b/showbits-thermal-printer-ui/src/AppPhoto.vue @@ -0,0 +1,5 @@ + + + diff --git a/showbits-thermal-printer-ui/src/main.ts b/showbits-thermal-printer-ui/src/index.ts similarity index 92% rename from showbits-thermal-printer-ui/src/main.ts rename to showbits-thermal-printer-ui/src/index.ts index c80653e..87bb655 100644 --- a/showbits-thermal-printer-ui/src/main.ts +++ b/showbits-thermal-printer-ui/src/index.ts @@ -1,5 +1,5 @@ import { createApp } from "vue"; -import App from "./App.vue"; +import App from "./AppIndex.vue"; // The type of App contains any in its type parameters, according to vscode. // Presumably, this is what triggers the lint. diff --git a/showbits-thermal-printer-ui/src/photo.ts b/showbits-thermal-printer-ui/src/photo.ts new file mode 100644 index 0000000..810ce7b --- /dev/null +++ b/showbits-thermal-printer-ui/src/photo.ts @@ -0,0 +1,11 @@ +import { createApp } from "vue"; +import App from "./AppPhoto.vue"; + +// The type of App contains any in its type parameters, according to vscode. +// Presumably, this is what triggers the lint. +// +// @vue/eslint-config-typescript turns this option off entirely. +// https://github.com/vuejs/eslint-config-typescript/blob/bcdeb741521a718d44dfe77aadcf6d0702b1fd21/src/internals.ts#L139 +// +// eslint-disable-next-line @typescript-eslint/no-unsafe-argument +createApp(App).mount("#app");