Skip to content

Commit e52eb0d

Browse files
committed
feat: Progressive Web App
Les utilisateurs peuvent désormais installer des pages Web sur leurs téléphones mobiles via PWA pour les utiliser.
1 parent 043301f commit e52eb0d

File tree

13 files changed

+2308
-138
lines changed

13 files changed

+2308
-138
lines changed

kommande-access-gui/next.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
// next.config.js
2+
const withPWA = require('next-pwa')({
3+
dest: 'public',
4+
register: true,
5+
skipWaiting: true,
6+
});
7+
28
module.exports = {
39
reactStrictMode: true,
410
images: {

kommande-access-gui/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"lucide-react": "^0.454.0",
1515
"next": "14.2.15",
1616
"next-auth": "^4.24.8",
17+
"next-pwa": "^5.6.0",
1718
"node-fetch": "^3.3.2",
1819
"react": "^18",
1920
"react-dom": "^18",
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
self.addEventListener('install', (event) => {
2+
console.log('Service Worker installing...');
3+
self.skipWaiting();
4+
});
5+
6+
self.addEventListener('activate', (event) => {
7+
console.log('Service Worker activated.');
8+
});
149 KB
Binary file not shown.
8.75 KB
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"name": "KASA",
3+
"short_name": "KASA",
4+
"description": "KASA is a platform for showcasing multimedia products like PCs, phones, and tablets.",
5+
"start_url": "/",
6+
"id": "com.kasa.app",
7+
"display": "standalone",
8+
"display_override": [
9+
"window-controls-overlay",
10+
"standalone"
11+
],
12+
"background_color": "#f0f0f0",
13+
"theme_color": "#FFFFFF",
14+
"icons": [
15+
{
16+
"src": "/icons/favicon-192.ico",
17+
"sizes": "192x192",
18+
"type": "image/x-icon"
19+
},
20+
{
21+
"src": "/icons/favicon-256.ico",
22+
"sizes": "256x256",
23+
"type": "image/x-icon"
24+
},
25+
{
26+
"src": "/icons/favicon.png",
27+
"sizes": "1000x1000",
28+
"type": "image/png"
29+
}
30+
],
31+
"screenshots": [
32+
{
33+
"src": "/screenshots/iPad-Pro.png",
34+
"sizes": "2048x2732",
35+
"type": "image/png"
36+
},
37+
{
38+
"src": "/screenshots/desktop.png",
39+
"sizes": "2060x1936",
40+
"type": "image/png",
41+
"form_factor": "wide"
42+
}
43+
]
44+
}
1.15 MB
Loading

0 commit comments

Comments
 (0)