✨ feat(PWA): Configure le PWA pour une meilleure expérience hors ligne et ajoute des raccourcis.
🐛 fix(config-pack.twig): Ajoute l'attribut 'readonly' au champ produit pour empêcher la modification.
This commit is contained in:
@@ -7,9 +7,27 @@ pwa:
|
||||
|
||||
serviceworker:
|
||||
enabled: true
|
||||
use_cache: false
|
||||
skip_waiting: true
|
||||
|
||||
workbox:
|
||||
cache_manifest: true
|
||||
asset_cache:
|
||||
enabled: true
|
||||
regex: '/\.(css|js|json|xml|txt|map|ico|png|jpe?g|gif|svg|webp|bmp)$/'
|
||||
image_cache:
|
||||
enabled: true
|
||||
max_age: 30 days
|
||||
max_entries: 200
|
||||
regex: '/\.(png|jpe?g|svg|webp)$/'
|
||||
font_cache:
|
||||
enabled: true
|
||||
max_entries: 10
|
||||
max_age: 30
|
||||
google_fonts:
|
||||
enabled: true
|
||||
cache_prefix: 'goolge-fonts'
|
||||
max_entries: 20
|
||||
max_age: 1
|
||||
use_cdn: false
|
||||
manifest:
|
||||
enabled: true
|
||||
name: "Réservation Lukikevent"
|
||||
@@ -25,6 +43,30 @@ pwa:
|
||||
orientation: "portrait"
|
||||
description: "Application Intranet Ludikevent"
|
||||
categories: ['shopping']
|
||||
shortcuts:
|
||||
- name: "Nos structures"
|
||||
short_name: "Nos structures"
|
||||
description: "Nos structures"
|
||||
url: "/reservation/catalogue"
|
||||
- name: "Nos structures"
|
||||
short_name: "Nos Formules"
|
||||
description: "Nos Formules"
|
||||
url: "/reservation/formules"
|
||||
- name: "Catalogue"
|
||||
short_name: "Catalogue"
|
||||
description: "Catalogue"
|
||||
url: "/provider/Catalogue.pdf"
|
||||
screenshots:
|
||||
- src: "/provider/pwa/pwa1.png"
|
||||
- src: "/provider/pwa/pwa2.png"
|
||||
icons:
|
||||
- src: '%kernel.project_dir%/public/provider/images/favicon.png'
|
||||
sizes: [ 48 ]
|
||||
- src: '%kernel.project_dir%/public/provider/images/favicon.png'
|
||||
sizes: [ 95 ]
|
||||
- src: '%kernel.project_dir%/public/provider/images/favicon.png'
|
||||
sizes: [ 192 ]
|
||||
- src: '%kernel.project_dir%/public/provider/images/favicon.png'
|
||||
sizes: [ 256 ]
|
||||
- src: '%kernel.project_dir%/public/provider/images/favicon.png'
|
||||
sizes: [ 512 ]
|
||||
|
||||
BIN
public/provider/pwa/pwa1.png
Normal file
BIN
public/provider/pwa/pwa1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 495 KiB |
BIN
public/provider/pwa/pwa2.png
Normal file
BIN
public/provider/pwa/pwa2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 179 KiB |
@@ -25,6 +25,7 @@
|
||||
<div class="relative flex items-center">
|
||||
{# Utilisation de l'input texte standard sans l'attribut 'is' #}
|
||||
<input
|
||||
readonly
|
||||
type="text"
|
||||
name="lines[{{ key }}][product]"
|
||||
value="{{ line.product }}"
|
||||
|
||||
Reference in New Issue
Block a user