veza/apps/web/dist_verification/assets/ServerErrorPage-KZ-LUqM6.js
senke 04c25aa24f Phase 2 stabilisation: code mort, Modal→Dialog, feature flags, tests, router split, Rust legacy
Bloc A - Code mort:
- Suppression Studio (components, views, features)
- Suppression gamification + services mock (projectService, storageService, gamificationService)
- Mise à jour Sidebar, Navbar, locales

Bloc B - Frontend:
- Suppression modal.tsx deprecated, Modal.stories (doublon Dialog)
- Feature flags: PLAYLIST_SEARCH, PLAYLIST_RECOMMENDATIONS, ROLE_MANAGEMENT = true
- Suppression 19 tests orphelins, retrait exclusions vitest.config

Bloc C - Backend:
- Extraction routes_auth.go depuis router.go

Bloc D - Rust:
- Suppression security_legacy.rs (code mort, patterns déjà dans security/)
2026-02-14 17:23:32 +01:00

1 line
3.8 KiB
JavaScript

import{a as d,j as e}from"./vendor-react-yWUy5XPk.js";import{C as o,b as l,d as c,e as m,f as x,B as t}from"./index-CYK_b1Uz.js";import{a as u}from"./vendor-router-BNNHboN9.js";import{b as p,c as f,R as h,H as j,d as g,M as N}from"./vendor-icons-DJFb1Tiw.js";import"./vendor-CveO81sn.js";import"./vendor-security-DsrNJhpn.js";import"./vendor-tanstack-kPY9uK0s.js";import"./vendor-http-Cz8wfb0q.js";import"./vendor-utils-DtoSyhX2.js";import"./vendor-motion-B3XPS3Jc.js";import"./vendor-i18n-CMcqpBLz.js";function A(){const r=u(),[s,a]=d.useState(!1),i=async()=>{a(!0),setTimeout(()=>{window.location.reload()},500)},n=()=>{r("/dashboard")};return e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background p-4",children:e.jsx("div",{className:"w-full max-w-2xl",children:e.jsxs(o,{className:"text-center",children:[e.jsxs(l,{children:[e.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-destructive/10",children:e.jsx(p,{className:"h-8 w-8 text-destructive dark:text-destructive"})}),e.jsx(c,{className:"text-2xl",children:"Erreur serveur"}),e.jsx(m,{children:"Une erreur interne s'est produite. Notre équipe a été notifiée."})]}),e.jsxs(x,{className:"space-y-6",children:[e.jsx("div",{className:"text-6xl font-bold text-foreground",children:"500"}),e.jsx("p",{className:"text-muted-foreground dark:text-muted-foreground",children:"Nous nous excusons pour la gêne occasionnée. Notre équipe technique a été automatiquement notifiée et travaille à résoudre le problème."}),e.jsx("div",{className:"bg-muted/50 border border-border rounded-lg p-4",children:e.jsxs("div",{className:"flex items-start gap-4 text-left",children:[e.jsx(f,{className:"h-5 w-5 text-muted-foreground mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Que faire maintenant ?"}),e.jsxs("ul",{className:"text-sm text-muted-foreground mt-2 space-y-1 list-disc list-inside",children:[e.jsx("li",{children:"Attendez quelques instants et réessayez"}),e.jsx("li",{children:"Vérifiez votre connexion internet"}),e.jsx("li",{children:"Si le problème persiste, contactez le support"})]})]})]})}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-2",children:[e.jsxs(t,{onClick:i,disabled:s,className:"flex-1",children:[e.jsx(h,{className:`mr-2 h-4 w-4 ${s?"animate-spin":""}`}),s?"Réessai...":"Réessayer"]}),e.jsxs(t,{onClick:n,variant:"outline",className:"flex-1",children:[e.jsx(j,{className:"mr-2 h-4 w-4"}),"Retour au dashboard"]})]}),e.jsxs("div",{className:"border-t pt-4 text-left",children:[e.jsx("p",{className:"text-sm font-medium text-foreground mb-3",children:"Besoin d'aide ?"}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground dark:text-muted-foreground",children:[e.jsx(g,{className:"h-4 w-4 text-success"}),e.jsx("span",{children:"L'erreur a été automatiquement signalée à notre équipe"})]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground dark:text-muted-foreground",children:[e.jsx(N,{className:"h-4 w-4 text-muted-foreground"}),e.jsx("span",{children:"Contactez le support si le problème persiste après plusieurs tentatives"})]})]})]}),e.jsxs("details",{className:"border-t pt-4 text-left",children:[e.jsx("summary",{className:"text-sm font-medium text-foreground cursor-pointer hover:text-foreground dark:hover:text-foreground",children:"Détails techniques"}),e.jsxs("div",{className:"mt-2 p-4 bg-muted rounded text-xs font-mono text-muted-foreground dark:text-muted-foreground",children:[e.jsx("p",{children:"Code d'erreur: 500 Internal Server Error"}),e.jsxs("p",{children:["Timestamp: ",new Date().toISOString()]}),e.jsxs("p",{children:["User Agent: ",navigator.userAgent]})]})]})]})]})})})}export{A as default};