Ajout du système d'administration avec token unique et QR code
- Implémentation complète du système d'administration (/admin) - Gestion des clients avec base de données JSON - Génération de token unique et QR code pour chaque client - Intégration des données client dans l'application (bungalow, WiFi, message) - Amélioration du composant WifiCard avec fallback de copie - Optimisation du hook useClientData pour chargement immédiat - Ajout de la variable d'environnement ADMIN_PASSWORD
This commit is contained in:
20
lib/types/client.ts
Normal file
20
lib/types/client.ts
Normal file
@ -0,0 +1,20 @@
|
||||
export interface Client {
|
||||
id: string;
|
||||
email: string;
|
||||
token: string;
|
||||
bungalowNumber: string;
|
||||
wifiName: string;
|
||||
wifiPassword: string;
|
||||
gerantMessage: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface ClientInput {
|
||||
email: string;
|
||||
bungalowNumber: string;
|
||||
wifiName: string;
|
||||
wifiPassword: string;
|
||||
gerantMessage: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user