From 524670b7c91a87258821c409ed941b32c6c6b8e9 Mon Sep 17 00:00:00 2001 From: Joscha Date: Sat, 19 Jul 2025 22:04:52 +0200 Subject: [PATCH] Add banner endpoint --- .../src/components/CDocumentBanner.vue | 46 +++++++++++++++++++ .../src/components/CSelector.vue | 4 ++ showbits-thermal-printer/src/documents.rs | 1 + .../src/documents/banner/data.json | 4 ++ .../src/documents/banner/lib | 1 + .../src/documents/banner/main.typ | 11 +++++ .../src/documents/banner/mod.rs | 29 ++++++++++++ showbits-thermal-printer/src/server.rs | 1 + 8 files changed, 97 insertions(+) create mode 100644 showbits-thermal-printer-ui/src/components/CDocumentBanner.vue create mode 100644 showbits-thermal-printer/src/documents/banner/data.json create mode 120000 showbits-thermal-printer/src/documents/banner/lib create mode 100644 showbits-thermal-printer/src/documents/banner/main.typ create mode 100644 showbits-thermal-printer/src/documents/banner/mod.rs diff --git a/showbits-thermal-printer-ui/src/components/CDocumentBanner.vue b/showbits-thermal-printer-ui/src/components/CDocumentBanner.vue new file mode 100644 index 0000000..1b6c08a --- /dev/null +++ b/showbits-thermal-printer-ui/src/components/CDocumentBanner.vue @@ -0,0 +1,46 @@ + + + + + diff --git a/showbits-thermal-printer-ui/src/components/CSelector.vue b/showbits-thermal-printer-ui/src/components/CSelector.vue index 8cdc923..3dcc0db 100644 --- a/showbits-thermal-printer-ui/src/components/CSelector.vue +++ b/showbits-thermal-printer-ui/src/components/CSelector.vue @@ -1,5 +1,6 @@