Motivations: - Fix 502 en prod via build multi-pages et routes stables - Stabilize IndexedDB (création stores) et faucet obligatoire - Déploiement robuste: port 3004 garanti et logs Modifications: - Vite: inputs multi-pages, alias npm deploy:front - Router/redirects: chemins - Pages setup: URLs corrigées, suppression log faucet disabled - DB: bump version à 5, upgrade crée stores manquants - Script: scripts/deploy_front.sh (kill 3004, clean, build, start bg) - Lint: perf monitor param non utilisé, warnings corrigés Page affectées: - vite.config.ts, src/router.ts - src/pages/* (home, pairing, block-sync, wallet-setup, security-setup) - src/services/* (database-config, performance-monitor) - package.json, scripts/deploy_front.sh
60 lines
1.4 KiB
JSON
60 lines
1.4 KiB
JSON
{
|
|
// ESLint Configuration
|
|
"eslint.enable": true,
|
|
"eslint.validate": [
|
|
"javascript",
|
|
"javascriptreact",
|
|
"typescript",
|
|
"typescriptreact"
|
|
],
|
|
"eslint.workingDirectories": ["."],
|
|
"eslint.options": {
|
|
"overrideConfigFile": "eslint.config.js"
|
|
},
|
|
|
|
// TypeScript Configuration
|
|
"typescript.tsdk": "node_modules/typescript/lib",
|
|
"typescript.enablePromptUseWorkspaceTsdk": true,
|
|
"typescript.tsserver.maxTsServerMemory": 4096,
|
|
|
|
// Problems Panel Configuration
|
|
"problems.showCurrentInStatus": true,
|
|
"problems.autoReveal": true,
|
|
|
|
// File Associations
|
|
"files.associations": {
|
|
"*.ts": "typescript",
|
|
"*.tsx": "typescriptreact"
|
|
},
|
|
|
|
// Editor Configuration
|
|
"editor.codeActionsOnSave": {
|
|
"source.fixAll.eslint": "explicit",
|
|
"source.organizeImports": "explicit"
|
|
},
|
|
"editor.formatOnSave": true,
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
|
|
// TypeScript Specific
|
|
"typescript.suggest.autoImports": true,
|
|
"typescript.updateImportsOnFileMove.enabled": "always",
|
|
|
|
// Exclude patterns for file watcher
|
|
"files.watcherExclude": {
|
|
"**/node_modules/**": true,
|
|
"**/dist/**": true,
|
|
"**/pkg/**": true,
|
|
"**/logs/**": true,
|
|
"**/.git/**": true
|
|
},
|
|
|
|
// Search exclusion
|
|
"search.exclude": {
|
|
"**/node_modules": true,
|
|
"**/dist": true,
|
|
"**/pkg": true,
|
|
"**/logs": true,
|
|
"**/.git": true
|
|
}
|
|
}
|