From 55c589be4876c4c113c3d68c7caeb5e11c22b9d1 Mon Sep 17 00:00:00 2001 From: Zeti_1223 <121749710+zeti1223@users.noreply.github.com> Date: Sun, 8 Feb 2026 12:11:32 +0100 Subject: [PATCH 1/4] update --- public/index.html | 2018 ++++++++++++++++++++------------------ public/service-worker.js | 43 +- 2 files changed, 1107 insertions(+), 954 deletions(-) diff --git a/public/index.html b/public/index.html index 0b85eeb..dc7e7d0 100644 --- a/public/index.html +++ b/public/index.html @@ -1,15 +1,18 @@ - - + + - PIN Kódos Chat + PIN Code Chat - + - + @@ -26,1139 +29,1284 @@ - - - -
- -
-

Csatlakozás Szobához

- - + + + +
+ +
+

Join Room

+ +
- +
-
+
- - + + - - -
- - - + }); + + diff --git a/public/service-worker.js b/public/service-worker.js index 500fa7c..7925358 100644 --- a/public/service-worker.js +++ b/public/service-worker.js @@ -1,46 +1,48 @@ // Service Worker a PWA-hoz -const CACHE_NAME = 'chat-pwa-v1'; +const CACHE_NAME = "chat-pwa-v1"; const urlsToCache = [ - '/chat.html', - '/', - 'https://www.gstatic.com/firebasejs/9.22.0/firebase-app-compat.js', - 'https://www.gstatic.com/firebasejs/9.22.0/firebase-database-compat.js' + "/chat.html", + "/", + "https://www.gstatic.com/firebasejs/9.22.0/firebase-app-compat.js", + "https://www.gstatic.com/firebasejs/9.22.0/firebase-database-compat.js", ]; // Install esemény - cache-elés -self.addEventListener('install', (event) => { +self.addEventListener("install", (event) => { event.waitUntil( - caches.open(CACHE_NAME) + caches + .open(CACHE_NAME) .then((cache) => { - console.log('Cache megnyitva'); + console.log("Cache opened"); return cache.addAll(urlsToCache); }) .catch((err) => { - console.log('Cache hiba:', err); - }) + console.log("Cache error:", err); + }), ); }); // Activate esemény - régi cache-ek törlése -self.addEventListener('activate', (event) => { +self.addEventListener("activate", (event) => { event.waitUntil( caches.keys().then((cacheNames) => { return Promise.all( cacheNames.map((cacheName) => { if (cacheName !== CACHE_NAME) { - console.log('Régi cache törlése:', cacheName); + console.log("Deleting old cache:", cacheName); return caches.delete(cacheName); } - }) + }), ); - }) + }), ); }); // Fetch esemény - cache-first stratégia -self.addEventListener('fetch', (event) => { +self.addEventListener("fetch", (event) => { event.respondWith( - caches.match(event.request) + caches + .match(event.request) .then((response) => { // Cache-ben van, visszaadja if (response) { @@ -49,7 +51,11 @@ self.addEventListener('fetch', (event) => { // Nincs cache-ben, hálózatból tölti return fetch(event.request).then((response) => { // Csak érvényes válaszokat cache-elünk - if (!response || response.status !== 200 || response.type !== 'basic') { + if ( + !response || + response.status !== 200 || + response.type !== "basic" + ) { return response; } // Klónozzuk a választ @@ -63,7 +69,6 @@ self.addEventListener('fetch', (event) => { .catch(() => { // Hálózati hiba esetén offline oldalt adhatnánk vissza // Jelenleg csak továbbítjuk a hibát - }) + }), ); }); - From 203f1a5f39c0a4a2010d51f8a9539a132e30fd14 Mon Sep 17 00:00:00 2001 From: Zeti_1223 <121749710+zeti1223@users.noreply.github.com> Date: Sun, 8 Feb 2026 12:16:58 +0100 Subject: [PATCH 2/4] tailwindcss --- public/index.html | 2038 ++++++++++++++++++--------------------------- 1 file changed, 821 insertions(+), 1217 deletions(-) diff --git a/public/index.html b/public/index.html index dc7e7d0..a20fe95 100644 --- a/public/index.html +++ b/public/index.html @@ -1,6 +1,7 @@ - + + PIN Code Chat @@ -9,10 +10,7 @@ - + @@ -28,1285 +26,891 @@ + + - - - -
- -
-

Join Room

- - -
- + + + +
+ +
+

Join Room

+ + +
+ +
-
- - - - - -