neckfireandClaude Opus 5 4890a29ba3
Build & Deploy / build (push) Successful in 21s
Page admin : lit le vrai jeton au lieu d'une chaîne vide
Admin.tsx gardait le TODO d'origine :

    const token = '' // token should be passed / read from auth in real app

Tous les appels authentifiés partaient donc en `?token=` et retombaient en
401 : « Impossible de charger les utilisateurs / les statistiques / les logs
de scrapers ». Seul l'onglet documents fonctionnait, parce qu'il tape sur
/documents qui est public.

Le jeton est lu dans localStorage, là où App.tsx le pose au login. Corrige du
même coup les actions de la page (suppression d'utilisateur, changement de
rôle, suppression de document) qui utilisent la même constante.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-15 16:25:26 +02:00

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is enabled on this template. See this documentation for more information.

Note: This will impact Vite dev & build performances.

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...

      // Remove tseslint.configs.recommended and replace with this
      tseslint.configs.recommendedTypeChecked,
      // Alternatively, use this for stricter rules
      tseslint.configs.strictTypeChecked,
      // Optionally, add this for stylistic rules
      tseslint.configs.stylisticTypeChecked,

      // Other configs...
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...
      // Enable lint rules for React
      reactX.configs['recommended-typescript'],
      // Enable lint rules for React DOM
      reactDom.configs.recommended,
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])
S
Description
RegWatch — veille réglementaire
Readme
254 KiB
Languages
TypeScript 64%
CSS 35%
JavaScript 0.4%
Dockerfile 0.4%
HTML 0.2%