Refactor: Renomeacao e modernizacao completa para Pedagog / PedagogIA

This commit is contained in:
2026-08-31 10:34:33 +00:00
parent 00341ebf64
commit f3350b0969
16 changed files with 225 additions and 176 deletions
+7 -5
View File
@@ -1,12 +1,14 @@
const CACHE_NAME = 'camila-ai-v10';
const CACHE_NAME = 'pedagog-ai-v11';
const urlsToCache = [
'/',
'/index.html',
'/style.css',
'/app.js',
'/manifest.json',
'/icon-192.png',
'/icon-512.png'
'/assets/icon-192.png',
'/assets/icon-512.png',
'/assets/pedagog_user.png',
'/assets/pedagog_ia.png'
];
// Instalação - abre cache e armazena os arquivos iniciais
@@ -14,7 +16,7 @@ self.addEventListener('install', (event) => {
event.waitUntil(
caches.open(CACHE_NAME)
.then((cache) => {
console.log('Camila AI SW: Armazenando cache inicial');
console.log('Pedagog AI SW: Armazenando cache inicial');
return cache.addAll(urlsToCache);
})
.then(() => self.skipWaiting())
@@ -28,7 +30,7 @@ self.addEventListener('activate', (event) => {
return Promise.all(
cacheNames.map((cacheName) => {
if (cacheName !== CACHE_NAME) {
console.log('Camila AI SW: Removendo cache antigo:', cacheName);
console.log('Pedagog AI SW: Removendo cache antigo:', cacheName);
return caches.delete(cacheName);
}
})