feat(ux): user-select global, swipe-gauche édition, clavier numérique, versionnage v0.4.0
- user-select:none global (index.css) + reset sur input/textarea/select - ItemRow: swipe gauche → édition (fond bleu), suppression long press, bouton ✕ toujours visible sur mobile - SwipeableRow: prop onSwipeLeft, révèle rightContent entre seuil/2 et seuil, déclenche onSwipeLeft au seuil complet - TodosPage: onSwipeLeft → édition (remplace double-tap) - inputMode=decimal sur tous les champs quantité et prix - formatQty: affiche "2" au lieu de "2.000" - Versionnage: __APP_VERSION__ injecté par Vite depuis package.json v0.4.0 - HomePage: version affichée à côté du titre (v0.4.0) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import { VitePWA } from 'vite-plugin-pwa'
|
||||
import pkg from './package.json'
|
||||
|
||||
export default defineConfig({
|
||||
define: {
|
||||
__APP_VERSION__: JSON.stringify(pkg.version),
|
||||
},
|
||||
plugins: [
|
||||
react(),
|
||||
VitePWA({
|
||||
|
||||
Reference in New Issue
Block a user