SmarMaker - Documentation
Docs» front:pwa

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
front:pwa [2025/10/01 06:45] – [Configurer sa PWA] paolofront:pwa [Date inconnue] (Version actuelle) – supprimée - modification externe (Date inconnue) 127.0.0.1
Ligne 1: Ligne 1:
-# PWA 
  
-Documentation [Vite-PWA](https://vite-pwa-org.netlify.app/) 
- 
-Une Progressive Web App (PWA) est une application qui combine le meilleur du web et du mobile (surtout web). Elle s’installe sur l’écran d’accueil, fonctionne hors connexion et offre une expérience fluide proche d’une app native. 
- 
-**Vite** offre une mise en place simple rapide grâce à son plugin **Vite-plugin-pwa** 
-### Configurer sa PWA 
- 
-``` 
-import { defineConfig } from "vite"; 
-import react from "@vitejs/plugin-react"; 
-import tailwindcss from "@tailwindcss/vite"; 
-import { VitePWA } from "vite-plugin-pwa"; 
- 
-export default defineConfig({ 
-    plugins: [ 
-        react(), 
-        tailwindCSS() 
-        VitePWA({ 
-            registerType: "autoUpdate", 
-            manifest: { 
-                name: "SmartMaker", 
-                short_name: "SmartMaker", 
-                description: "", 
-                start_url: "/", 
-                display: "standalone", 
-                background_color: "#ffffff", 
-                theme_color: "#5fbabf", 
-                icons: [ 
-                    { 
-                        src: "images/pwa-64x64.png", 
-                        sizes: "64x64", 
-                        type: "image/png" 
-                    }, 
-                    { 
-                        src: "images/pwa-192x192.png", 
-                        sizes: "192x192", 
-                        type: "image/png" 
-                    }, 
-                    { 
-                        src: "images/pwa-512x512.png", 
-                        sizes: "512x512", 
-                        type: "image/png", 
-                    }, 
-                ] 
-            } 
-        }) 
-    ] 
-}); 
-``` 
Made with ❤ by CAP-REL · SmartMaker · GNU AGPL v3+
Code source · Faire un don
SmarMaker - Documentation

Table of Contents

  • SmartAuth
  • SmartMaker - Back (PHP)
    • Mapping Dolibarr - React
  • SmartMaker - Front (React)
    • Animations de pages
    • Architecture
    • Astuces
    • Calendar
    • Composants et pages
    • Configuration du Provider
    • Debug et Logs
    • Hooks SmartCommon
    • PWA (Progressive Web App)
    • Requêtes API
    • Routage
    • SmartCommon
    • Stockage de données
    • Synchronisation offline
    • Thèmes
    • Traductions
  • HowTo - Pas à pas - Votre première application
    • Développement PHP (back)
    • Développement React (front)
    • Première étape : Module Builder Dolibarr
    • SmartAuth
    • SmartBoot : Un squelette prêt à l'emploi
  • Formation SmartMaker
    • Module 1 : Fondamentaux JavaScript ES6+
      • Chapitre 1 : Variables et Scope
      • Chapitre 2 : Fonctions
      • Chapitre 3 : Programmation Asynchrone
      • Chapitre 4 : Modules ES6
    • Module 2 : Introduction à React
      • Chapitre 1 : Philosophie React
      • Chapitre 2 : JSX
      • Chapitre 3 : Composants
    • Module 3 : Hooks React Fondamentaux
      • Chapitre 1 : useState
      • Chapitre 2 : useEffect
      • Chapitre 3 : useRef
      • Chapitre 4 : useContext
    • Module 4 : React Avancé
      • Chapitre 1 : useCallback et useMemo
      • Chapitre 2 : Custom Hooks
      • Chapitre 3 : Redux et Redux Toolkit
    • Module 5 : Architecture SmartMaker
      • Chapitre 1 : Structure du projet
      • Chapitre 2 : Configuration
      • Chapitre 3 : Flux de données
    • Module 6 : SmartCommon - Composants
      • Chapitre 1 : Mise en page
      • Chapitre 2 : Navigation
      • Chapitre 3 : Formulaires
      • Chapitre 4 : Affichage
    • Module 7 : SmartCommon - Hooks
      • Chapitre 1 : useApi
      • Chapitre 2 : Gestion d'état
      • Chapitre 3 : Hooks utilitaires
      • Chapitre 4 : Synchronisation Offline
    • Module 8 : Backend API (PHP)
      • Chapitre 1 : Routage
      • Chapitre 2 : Controllers
      • Chapitre 3 : Mappers
      • Extrafields et formulaires dynamiques
    • Module 9 : Intégration complète
      • Chapitre 1 : Backend
      • Chapitre 2 : Frontend
      • Chapitre 3 : Déploiement
    • Module 10 : Fonctionnalités avancées
      • Chapitre 1 : Mode offline
      • Chapitre 2 : Internationalisation (i18n)
      • Chapitre 3 : Autres fonctionnalités
    • Module 11 : Bonnes pratiques
  • Démonstration
  • Start
  • Composants et pages