Initial commit

This commit is contained in:
Porawit Dongwang
2026-09-16 23:20:08 +07:00
commit 0041668dbb
32577 changed files with 3687927 additions and 0 deletions
@@ -0,0 +1,21 @@
{
"name": "ระบบจัดการข้อมูลยานพาหนะ โรงพยาบาลเกาะสมุย",
"short_name": "จัดการรถ รพ.",
"description": "ระบบจัดการข้อมูลยานพาหนะและพนักงานขับรถ โรงพยาบาลเกาะสมุย",
"start_url": "/index.html",
"display": "standalone",
"background_color": "#F8FAFC",
"theme_color": "#0F6CBD",
"icons": [
{
"src": "/images/logo.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/images/logo.png",
"sizes": "512x512",
"type": "image/png"
}
]
}
@@ -0,0 +1,30 @@
const CACHE_NAME = 'vehicle-management-v1';
const urlsToCache = [
'/',
'/index.html',
'/login.html',
'/manifest.json',
'/images/logo.jpg',
'/images/bg.jpg'
];
self.addEventListener('install', event => {
event.waitUntil(
caches.open(CACHE_NAME)
.then(cache => {
return cache.addAll(urlsToCache);
})
);
});
self.addEventListener('fetch', event => {
event.respondWith(
caches.match(event.request)
.then(response => {
if (response) {
return response;
}
return fetch(event.request);
})
);
});