Create a new sales registry app with identity verification features

Initial commit of the React application with UI components, form, camera, and indexedDB integration for sale data management.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 91318273-c764-4fd4-be04-bdc12c38af32
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/02867739-9ff7-4441-aca2-12e0153376c5.jpg
This commit is contained in:
michaelschal committed 2025-07-09 18:05:04 +00:00
1 parent 4969159ef9
commit 4fac1078a1
83 files changed
+16585

No files matched your search

+55
View File
@@ -0,0 +1,55 @@
export interface Sale {
id: number;
timestamp: string;
// Vendeur
vendeur: string;
dateVente: string;
// Produit
typeArticle: string;
categorie: 'F2' | 'F3';
quantite: number;
gencode?: string;
// Client
nom: string;
prenom: string;
dateNaissance?: string;
lieuNaissance?: string;
// Identité
typeIdentite?: string;
autoriteDelivrance?: string;
dateDelivrance?: string;
// Photos
photoRecto?: string;
photoVerso?: string;
}
export interface FormData {
vendeur: string;
dateVente: string;
typeArticle: string;
categorie: string;
quantite: string;
gencode: string;
nom: string;
prenom: string;
dateNaissance: string;
lieuNaissance: string;
typeIdentite: string;
autoriteDelivrance: string;
dateDelivrance: string;
photoRecto?: string;
photoVerso?: string;
}
export type PhotoType = 'recto' | 'verso';
export interface BackupData {
timestamp: string;
sales: Sale[];
recordCount: number;
}