connection base prisma + postgres + login ok

This commit is contained in:
2026-02-26 21:58:16 +01:00
parent 78dc8813f1
commit 56b5615abf
1462 changed files with 429582 additions and 2546 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,78445,e=>{"use strict";var t=e.i(59760);let s=(...e)=>e.filter((e,t,s)=>!!e&&""!==e.trim()&&s.indexOf(e)===t).join(" ").trim(),r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,s)=>s?s.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,t.forwardRef)(({color:e="currentColor",size:r=24,strokeWidth:a=2,absoluteStrokeWidth:i,className:o="",children:c,iconNode:n,...d},u)=>(0,t.createElement)("svg",{ref:u,...l,width:r,height:r,stroke:e,strokeWidth:i?24*Number(a)/Number(r):a,className:s("lucide",o),...!c&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(d)&&{"aria-hidden":"true"},...d},[...n.map(([e,s])=>(0,t.createElement)(e,s)),...Array.isArray(c)?c:[c]])),i=(e,l)=>{let i=(0,t.forwardRef)(({className:i,...o},c)=>(0,t.createElement)(a,{ref:c,iconNode:l,className:s(`lucide-${r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...o}));return i.displayName=r(e),i};e.s(["default",()=>i],78445)},12856,(e,t,s)=>{t.exports=e.r(96479)},41498,e=>{"use strict";let t=(0,e.i(78445).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",()=>t],41498)},6746,e=>{"use strict";let t=(0,e.i(78445).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",()=>t],6746)},72150,e=>{"use strict";var t=e.i(30064),s=e.i(41498),r=e.i(6746);let l=({currentPlan:e,onBack:l,onSelectPlan:a})=>(0,t.jsx)("div",{className:"min-h-screen bg-[#eef2ff] py-20 px-8",children:(0,t.jsxs)("div",{className:"max-w-6xl mx-auto",children:[(0,t.jsxs)("button",{onClick:l,className:"flex items-center gap-2 text-slate-500 hover:text-blue-600 mb-12 font-bold transition-colors",children:[(0,t.jsx)(r.ArrowLeft,{size:20})," Retour"]}),(0,t.jsxs)("div",{className:"text-center mb-16",children:[(0,t.jsx)("h2",{className:"text-4xl font-black text-slate-900 mb-4",children:"Choisissez votre destin d'écrivain."}),(0,t.jsx)("p",{className:"text-slate-500",children:"Passez au plan supérieur pour libérer toute la puissance de l'IA."})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[{id:"free",name:"Gratuit",price:"0€",desc:"Idéal pour découvrir PlumeIA.",features:["10 actions IA / mois","1 projet actif","Bible du monde simple"]},{id:"pro",name:"Auteur Pro",price:"12€",desc:"Pour les écrivains sérieux.",features:["500 actions IA / mois","Projets illimités","Export Word & EPUB","Support prioritaire"],popular:!0},{id:"master",name:"Maître Plume",price:"29€",desc:"Le summum de l'écriture IA.",features:["Actions IA illimitées","Accès Gemini 3 Pro","Bible du monde avancée","Outils de révision avancés"]}].map(r=>(0,t.jsxs)("div",{className:`bg-white rounded-3xl p-8 border transition-all ${r.popular?"border-blue-500 shadow-2xl scale-105 z-10":"border-indigo-100 shadow-xl"}`,children:[(0,t.jsxs)("div",{className:"mb-8",children:[(0,t.jsx)("h4",{className:"text-xl font-bold text-slate-900 mb-2",children:r.name}),(0,t.jsxs)("div",{className:"text-4xl font-black text-slate-900 mb-2",children:[r.price,(0,t.jsx)("span",{className:"text-sm font-normal text-slate-400",children:"/mois"})]}),(0,t.jsx)("p",{className:"text-sm text-slate-500",children:r.desc})]}),(0,t.jsx)("ul",{className:"space-y-4 mb-10",children:r.features.map((e,r)=>(0,t.jsxs)("li",{className:"flex items-center gap-3 text-sm text-slate-700",children:[(0,t.jsx)("div",{className:"text-blue-500 bg-blue-50 p-0.5 rounded-full",children:(0,t.jsx)(s.Check,{size:14})}),e]},r))}),(0,t.jsx)("button",{onClick:()=>a(r.id),className:`w-full py-4 rounded-2xl font-black transition-all ${r.id===e?"bg-slate-100 text-slate-400 cursor-default":r.popular?"bg-blue-600 text-white hover:bg-blue-700":"bg-slate-900 text-white hover:bg-slate-800"}`,children:r.id===e?"Plan Actuel":"Sélectionner"})]},r.id))})]})});var a=e.i(12856),i=e.i(18404);function o(){let e=(0,a.useRouter)(),{user:s}=(0,i.useAuthContext)();return(0,t.jsx)(l,{currentPlan:s?.subscription.plan||"free",onBack:()=>e.push(s?"/dashboard":"/"),onSelectPlan:()=>e.push(s?"/checkout":"/login")})}e.s(["default",()=>o],72150)}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,44026,e=>{"use strict";let t=(0,e.i(78445).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",()=>t],44026)},78445,e=>{"use strict";var t=e.i(59760);let s=(...e)=>e.filter((e,t,s)=>!!e&&""!==e.trim()&&s.indexOf(e)===t).join(" ").trim(),r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,s)=>s?s.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,t.forwardRef)(({color:e="currentColor",size:r=24,strokeWidth:l=2,absoluteStrokeWidth:i,className:n="",children:o,iconNode:c,...d},u)=>(0,t.createElement)("svg",{ref:u,...a,width:r,height:r,stroke:e,strokeWidth:i?24*Number(l)/Number(r):l,className:s("lucide",n),...!o&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(d)&&{"aria-hidden":"true"},...d},[...c.map(([e,s])=>(0,t.createElement)(e,s)),...Array.isArray(o)?o:[o]])),i=(e,a)=>{let i=(0,t.forwardRef)(({className:i,...n},o)=>(0,t.createElement)(l,{ref:o,iconNode:a,className:s(`lucide-${r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...n}));return i.displayName=r(e),i};e.s(["default",()=>i],78445)},12856,(e,t,s)=>{t.exports=e.r(96479)},11690,e=>{"use strict";let t=(0,e.i(78445).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",()=>t],11690)},37143,e=>{"use strict";var t=e.i(30064),s=e.i(59760),r=e.i(18404),a=e.i(44026);let l=(0,e.i(78445).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);var i=e.i(11690);let n=({onSuccess:e,onRegister:n})=>{let[o,c]=(0,s.useState)(""),[d,u]=(0,s.useState)(""),[m,x]=(0,s.useState)(""),[h,p]=(0,s.useState)(!1),{login:f}=(0,r.useAuthContext)();async function b(t){t.preventDefault(),x(""),p(!0);try{await f(o,d),e()}catch(e){x(e.message||"Une erreur inattendue est survenue."),p(!1)}}return(0,t.jsx)("div",{className:"min-h-screen bg-slate-50 flex overflow-hidden font-sans text-slate-900 items-center justify-center p-4",children:(0,t.jsxs)("div",{className:"w-full max-w-md bg-white rounded-2xl shadow-xl overflow-hidden p-8 animate-in fade-in zoom-in duration-300",children:[(0,t.jsxs)("div",{className:"text-center mb-8",children:[(0,t.jsx)("h1",{className:"text-3xl font-black text-slate-900 mb-2",children:"Connexion"}),(0,t.jsx)("p",{className:"text-slate-500",children:"Bienvenue ! Connectez-vous à votre compte"})]}),m&&(0,t.jsxs)("div",{className:"mb-6 p-4 bg-red-50 border border-red-100 text-red-600 text-sm font-medium rounded-xl flex items-center gap-2 animate-in shake duration-300",children:[(0,t.jsx)(l,{size:18}),m]}),(0,t.jsxs)("form",{onSubmit:b,className:"space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("label",{className:"text-xs font-black text-slate-500 uppercase tracking-widest ml-1",htmlFor:"email",children:"Email"}),(0,t.jsx)("input",{id:"email",type:"email",className:"w-full px-4 py-3 bg-slate-50 border border-slate-200 rounded-xl outline-none focus:ring-2 focus:ring-blue-500 font-medium transition-all",placeholder:"votre@email.com",value:o,onChange:e=>c(e.target.value),required:!0})]}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("label",{className:"text-xs font-black text-slate-500 uppercase tracking-widest ml-1",htmlFor:"password",children:"Mot de passe"}),(0,t.jsx)("input",{id:"password",type:"password",className:"w-full px-4 py-3 bg-slate-50 border border-slate-200 rounded-xl outline-none focus:ring-2 focus:ring-blue-500 font-medium transition-all",placeholder:"••••••••",value:d,onChange:e=>u(e.target.value),required:!0})]}),(0,t.jsxs)("button",{type:"submit",className:"w-full bg-slate-900 text-white py-4 rounded-xl font-bold flex items-center justify-center gap-2 hover:bg-blue-600 transition-all shadow-xl disabled:opacity-50 mt-6",disabled:h,children:[h?(0,t.jsx)(a.Loader2,{className:"animate-spin"}):"Se connecter"," ",(0,t.jsx)(i.ArrowRight,{size:18})]})]}),(0,t.jsxs)("div",{className:"mt-8 text-center text-sm text-slate-500",children:["Pas encore de compte ?"," ",(0,t.jsx)("button",{onClick:n,className:"font-bold text-blue-600 hover:text-blue-800 transition-colors ml-1",children:"Créer un compte"})]})]})})};var o=e.i(12856);function c(){let e=(0,o.useRouter)();return(0,t.jsx)(n,{onSuccess:()=>e.push("/dashboard"),onRegister:()=>e.push("/signup")})}e.s(["default",()=>c],37143)}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,11 @@
self.__BUILD_MANIFEST = {
"__rewrites": {
"afterFiles": [],
"beforeFiles": [],
"fallback": []
},
"sortedPages": [
"/_app",
"/_error"
]
};self.__BUILD_MANIFEST_CB && self.__BUILD_MANIFEST_CB()

View File

@@ -0,0 +1 @@
[]

View File

@@ -0,0 +1 @@
self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()