PageSourceSearch

https://t3-pocketbase.vercel.app/_next/static/chunks/pages/login-65a5e2a975c3df1f.js

js t3-pocketbase.vercel.app collected 2026-10-03 07:50:08 UTC 3,180 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{9124:function(e,s,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return i(5129)}])},5129:function(e,s,i){"use strict";i.r(s),i.d(s,{default:function(){return a}});var n=i(1527),t=i(4251);function a(){let{mutate:e,error:s}=t.h.user.login.useMutation({onSuccess:()=>{window.location.href="/"}});return(0,n.jsxs)(n.Fragment,{children:[s&&(0,n.jsxs)("p",{children:["Something went wrong! ",s.message]}),(0,n.jsxs)("div",{className:"flex min-h-full flex-1 flex-col justify-center px-6 py-12 lg:px-8",children:[(0,n.jsxs)("div",{className:"sm:mx-auto sm:w-full sm:max-w-sm",children:[(0,n.jsx)("img",{className:"mx-auto h-10 w-auto",src:"https://tailwindui.com/img/logos/mark.svg?color=indigo&shade=600",alt:"Your Company"}),(0,n.jsx)("h2",{className:"mt-10 text-center text-2xl font-bold leading-9 tracking-tight text-gray-900",children:"Sign in to your account"})]}),(0,n.jsx)("div",{className:"mt-10 sm:mx-auto sm:w-full sm:max-w-sm",children:(0,n.jsxs)("form",{className:"space-y-6",action:"#",method:"POST",onSubmit:function(s){s.preventDefault();let i=new FormData(s.currentTarget);e({usernameOrEmail:i.get("email"),password:i.get("password"),isAdmin:"on"===i.get("isAdmin")})},children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium leading-6 text-gray-900",children:"Email address"}),(0,n.jsx)("div",{className:"mt-2",children:(0,n.jsx)("input",{id:"email",name:"email",type:"email",autoComplete:"email",required:!0,className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"})})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"flex items-center justify-between",children:(0,n.jsx)("label",{htmlFor:"password",className:"block text-sm font-medium leading-6 text-gray-900",children:"Password"})}),(0,n.jsx)("div",{className:"mt-2",children:(0,n.jsx)("input",{id:"password",name:"password",type:"password",autoComplete:"current-password",required:!0,className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"})})]}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("input",{id:"isAdmin",name:"isAdmin",type:"checkbox",className:"rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50"}),(0,n.jsx)("label",{htmlFor:"isAdmin",className:"text-sm font-medium leading-6 text-gray-900",children:"Login as admin"})]}),(0,n.jsx)("div",{children:(0,n.jsx)("button",{type:"submit",className:"flex w-full justify-center rounded-md bg-indigo-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Sign in"})})]})})]})]})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=9124)}),_N_E=e.O()}]);

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.