From 0c2d8b058b4edd21922b5b4eca6c149046aee090 Mon Sep 17 00:00:00 2001
From: alex <alex@alexloehr.net>
Date: Tue, 10 Jun 2025 08:19:29 +0000
Subject: [PATCH] adding favicon

---
 vue/index.html                |    2 +-
 vue/public/favicon-32x32.webp |    0 
 app.js                        |    6 ++++++
 vite.config.js                |    1 +
 4 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/app.js b/app.js
index 92b42ee..76d02e4 100644
--- a/app.js
+++ b/app.js
@@ -191,6 +191,12 @@
 //    reply.sendFile('dist/index.html', {maxAge: 0, immutable: false})
 // })
 
+// const favicon = fs.readFileSync("./favicon-32x32.webp")
+// fastify.get("/ui/favicon.webp", async function (req, res) {
+//    console.log("<<<<<<<<<<<<<<<<<<<<< favicon", favicon.length)
+//    res.type("image/webp").send(favicon)
+// })
+
 const indexFile = fs.readFileSync(path.join(__dirname, "vue/dist", 'index.html'), 'utf8')
 fastify.setNotFoundHandler(function (req, res) {
    console.log("!!!")
diff --git a/vite.config.js b/vite.config.js
index 4a0d867..d201550 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -19,6 +19,7 @@
 export default defineConfig({
    base: routerBase,
    root: path.join(__dirname, 'vue'),
+   // publicDir: path.join(__dirname, 'public'),
    plugins: [
       vue(),
       vueDevTools(),
diff --git a/vue/index.html b/vue/index.html
index 3de5e11..0507fc9 100644
--- a/vue/index.html
+++ b/vue/index.html
@@ -2,7 +2,7 @@
 <html lang="">
   <head>
     <meta charset="UTF-8">
-    <link rel="icon" href="/favicon.ico">
+    <link rel="icon" type="image/webp" href="/favicon-32x32.webp">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <title>globus-ilias-rest UI</title>
   </head>
diff --git a/vue/public/favicon-32x32.webp b/vue/public/favicon-32x32.webp
new file mode 100644
index 0000000..634b7f9
--- /dev/null
+++ b/vue/public/favicon-32x32.webp
Binary files differ

--
Gitblit v1.8.0