diff --git a/public/icons/icon-128x128.png b/public/icons/icon-128x128.png new file mode 100644 index 0000000..f37764b Binary files /dev/null and b/public/icons/icon-128x128.png differ diff --git a/public/icons/icon-144x144.png b/public/icons/icon-144x144.png new file mode 100644 index 0000000..f37764b Binary files /dev/null and b/public/icons/icon-144x144.png differ diff --git a/public/icons/icon-152x152.png b/public/icons/icon-152x152.png new file mode 100644 index 0000000..f37764b Binary files /dev/null and b/public/icons/icon-152x152.png differ diff --git a/public/icons/icon-192x192.png b/public/icons/icon-192x192.png new file mode 100644 index 0000000..f37764b Binary files /dev/null and b/public/icons/icon-192x192.png differ diff --git a/public/icons/icon-1x1.png b/public/icons/icon-1x1.png new file mode 100644 index 0000000..f37764b Binary files /dev/null and b/public/icons/icon-1x1.png differ diff --git a/public/icons/icon-384x384.png b/public/icons/icon-384x384.png new file mode 100644 index 0000000..f37764b Binary files /dev/null and b/public/icons/icon-384x384.png differ diff --git a/public/icons/icon-512x512.png b/public/icons/icon-512x512.png new file mode 100644 index 0000000..f37764b Binary files /dev/null and b/public/icons/icon-512x512.png differ diff --git a/public/icons/icon-72x72.png b/public/icons/icon-72x72.png new file mode 100644 index 0000000..f37764b Binary files /dev/null and b/public/icons/icon-72x72.png differ diff --git a/public/icons/icon-96x96.png b/public/icons/icon-96x96.png new file mode 100644 index 0000000..f37764b Binary files /dev/null and b/public/icons/icon-96x96.png differ diff --git a/public/manifest.json b/public/manifest.json new file mode 100644 index 0000000..6429d0a --- /dev/null +++ b/public/manifest.json @@ -0,0 +1,51 @@ +{ + "name": "ConstruProgress", + "short_name": "ConstruProg", + "description": "App para gestión de proyectos de construcción", + "start_url": "/", + "display": "standalone", + "background_color": "#ffffff", + "theme_color": "#000000", + "icons": [ + { + "src": "/icons/icon-72x72.png", + "sizes": "72x72", + "type": "image/png" + }, + { + "src": "/icons/icon-96x96.png", + "sizes": "96x96", + "type": "image/png" + }, + { + "src": "/icons/icon-128x128.png", + "sizes": "128x128", + "type": "image/png" + }, + { + "src": "/icons/icon-144x144.png", + "sizes": "144x144", + "type": "image/png" + }, + { + "src": "/icons/icon-152x152.png", + "sizes": "152x152", + "type": "image/png" + }, + { + "src": "/icons/icon-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/icons/icon-384x384.png", + "sizes": "384x384", + "type": "image/png" + }, + { + "src": "/icons/icon-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ] +} diff --git a/public/sw.js b/public/sw.js new file mode 100644 index 0000000..82e336b --- /dev/null +++ b/public/sw.js @@ -0,0 +1,30 @@ +const CACHE_NAME = 'construprogress-cache-v1'; +const urlsToCache = [ + '/', + '/dashboard', + '/projects', + '/projects-list', + '/projects/templates', + '/css/app.css', + '/js/app.js', + // Add other assets as needed +]; + +self.addEventListener('install', (event) => { + event.waitUntil( + caches.open(CACHE_NAME) + .then((cache) => cache.addAll(urlsToCache)) + ); +}); + +self.addEventListener('fetch', (event) => { + event.respondWith( + caches.match(event.request) + .then((response) => { + if (response) { + return response; + } + return fetch(event.request); + }) + ); +}); diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index 7a4e5f2..fa86edb 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -47,6 +47,15 @@ @stack('scripts') @livewireScripts + diff --git a/resources/views/projects/edit.blade.php b/resources/views/projects/edit.blade.php index c001a4d..4d7cc0d 100644 --- a/resources/views/projects/edit.blade.php +++ b/resources/views/projects/edit.blade.php @@ -147,6 +147,10 @@

{{ __('Users') }}

+
+

{{ __('Companies') }}

+ +