PageSourceSearch

https://t8ls.com/_next/static/chunks/0pks-rptw96p7.js

js t8ls.com collected 2026-10-06 13:15:47 UTC 3,137 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,39163,e=>{"use strict";var a=e.i(43476),t=e.i(71645),l=e.i(47167);let s=["text","javascript","typescript","python","json","html","css","bash","sql","yaml","markdown","go","rust","java","c","cpp","php"];l.default.env.PASTE_MAX_SIZE_KB;let r=[{value:"1h",label:"1 heure"},{value:"1j",label:"1 jour"},{value:"1m",label:"1 mois"},{value:"1a",label:"1 an"},{value:"infini",label:"Infini"}];e.s(["default",0,function(){let[e,l]=(0,t.useState)(""),[n,c]=(0,t.useState)(""),[o,i]=(0,t.useState)("text"),[u,d]=(0,t.useState)("1j"),[x,p]=(0,t.useState)(!1),[h,g]=(0,t.useState)(null);async function b(){p(!0),g(null);try{let a=await fetch("/p/create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:e,title:n,language:o,duration:u})}),t=await a.json().catch(()=>({}));if(!a.ok){g(t.error??"Échec de la création"),p(!1);return}window.location.href=t.url}catch{g("Échec de la création"),p(!1)}}return(0,a.jsx)("main",{className:"min-h-screen flex flex-col items-center justify-center p-8 pb-16 bg-gray-950 text-white",children:(0,a.jsxs)("div",{className:"w-full max-w-3xl space-y-6",children:[(0,a.jsxs)("div",{className:"text-center space-y-2",children:[(0,a.jsx)("h1",{className:"text-4xl font-bold tracking-tight",children:"t8ls"}),(0,a.jsx)("p",{className:"text-gray-400",children:"Colle du texte ou du code. Récupère un lien."})]}),(0,a.jsxs)("div",{className:"p-5 rounded-xl bg-gray-800 border border-gray-700 space-y-4",children:[(0,a.jsx)("input",{value:n,onChange:e=>c(e.target.value),maxLength:255,placeholder:"Titre (optionnel)",className:"w-full px-3 py-2 rounded-lg bg-gray-900 border border-gray-700 text-sm focus:outline-none focus:border-blue-500"}),(0,a.jsx)("textarea",{value:e,onChange:e=>l(e.target.value),spellCheck:!1,rows:16,placeholder:"Colle ton contenu ici…",className:"w-full px-3 py-2 rounded-lg bg-gray-900 border border-gray-700 text-sm font-mono focus:outline-none focus:border-blue-500"}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs text-gray-500 mb-1.5",children:"Langage"}),(0,a.jsx)("select",{value:o,onChange:e=>i(e.target.value),className:"px-3 py-1.5 rounded-lg bg-gray-700 text-xs text-gray-200",children:s.map(e=>(0,a.jsx)("option",{value:e,children:e},e))})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs text-gray-500 mb-1.5",children:"Durée de vie"}),(0,a.jsx)("div",{className:"flex gap-1.5 flex-wrap",children:r.map(e=>(0,a.jsx)("button",{onClick:()=>d(e.value),className:`px-3 py-1.5 rounded-lg text-xs transition-colors ${u===e.value?"bg-blue-600 text-white":"bg-gray-700 text-gray-300 hover:bg-gray-600"}`,children:e.label},e.value))})]})]}),h&&(0,a.jsx)("p",{className:"text-xs text-red-400",children:h}),(0,a.jsx)("button",{onClick:b,disabled:!e.trim()||x,className:"w-full px-4 py-2.5 bg-blue-600 hover:bg-blue-500 rounded-lg text-sm transition-colors disabled:opacity-40",children:x?"Création…":"Créer le paste"})]})]})})}],39163)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.