PageSourceSearch

https://rustify.rs/_next/static/chunks/app/(protected)/login/page-608312a653a13001.js

js rustify.rs collected 2026-10-07 16:09:43 UTC 10,587 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90930],{7144:(e,t,r)=>{"use strict";r.d(t,{LoginPage:()=>l});var n=r(77791),i=r(69843),a=r(73988),o=r(34710),s=r(47639);function l(){let e=(0,s.n)();return(0,n.jsx)("main",{className:"mx-auto flex min-h-[70vh] w-full max-w-md flex-col items-center justify-center px-4",children:(0,n.jsxs)(o.Zp,{className:"w-full",children:[(0,n.jsxs)(o.aR,{className:"flex flex-col items-center gap-1 text-center",children:[(0,n.jsx)("h1",{className:"text-lg font-semibold text-foreground",children:"Sign in to your dashboard"}),(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:"Access your program, week progress, and GitHub connection status."})]}),(0,n.jsx)(o.Wu,{children:(0,n.jsx)(a.$,{asChild:!0,className:"w-full",size:"lg",children:(0,n.jsxs)("a",{href:(0,s.s)(e),children:[(0,n.jsx)(i.A,{className:"size-4"}),"Continue with GitHub"]})})})]})})}},34710:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>l,ZB:()=>s,Zp:()=>a,aR:()=>o});var n=r(77791),i=r(88051);function a({className:e,...t}){return(0,n.jsx)("div",{className:(0,i.cn)("flex flex-col gap-4 roun
1ded-2xl border bg-card py-6 text-card-foreground shadow-sm",e),...t})}function o({className:e,...t}){return(0,n.jsx)("div",{className:(0,i.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function s({className:e,...t}){return(0,n.jsx)("h3",{className:(0,i.cn)("m-0 text-xl font-semibold leading-none",e),...t})}function l({className:e,...t}){return(0,n.jsx)("div",{className:(0,i.cn)("px-6",e),...t})}function d({className:e,...t}){return(0,n.jsx)("p",{className:(0,i.cn)("text-sm text-muted-foreground",e),...t})}},35996:(e,t,r)=>{"use strict";r.d(t,{Dc:()=>c,TL:()=>l,bL:()=>d});var n,i=r(83351),a=r(92172),o=Object.defineProperty,s=(e,t)=>o(e,"name",{value:t,configurable:!0});function l(e){let t=i.forwardRef((t,r)=>{let{children:n,...o}=t,s=null,l=!1,d=[];b(n)&&"function"==typeof k&&(n=k(n._payload)),i.Children.forEach(n,e=>{if(m(e)){l=!0;let t="child"in e.props?e.props.child:e.props.children;b(t)&&"function"==typeof k&&(t=k(t._payload)),s=p(e,t),d.push(s?.props?.children)}else d.push(e)}),s?s=i.cloneElement(s,void 0,d):!l&&1===i.Children.count(n)&&i.isValidElement(n)&&(s=n);let u=s?g(s):void 0,c=(0,a.s)(r,u);if(!s){if(n||0===n)throw Error(l?y(e):x(e));return n}let h=f(o,s.props??{});return s.type!==i.Fragment&&(h.ref=r?c:u),i.cloneElement(s,h)});return t.displayName=`${e}.Slot`,t}s(l,"createSlot");var d=l("Slot"),u=Symbol.for("radix.slottable");function c(e){let t=s(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=u,t}s(c,"createSlottable");var p=s((e,t)=>{if("child"in e.props){let t=e.props.child;return i.isValidElement(t)?i.cloneElement(t,void 0,e.props.children(t.props.children)):null}return i.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function f(e,t){let r={...t};for(let n in t){let i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...a}:"className"===n&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function g(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function m(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===u}s(f,"mergeProps"),s(g,"getElementRef"),s(m,"isSlottable");var h=Symbol.for("react.lazy");function b(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===h&&"_payload"in e&&v(e._payload)}function v(e){return"object"==typeof e&&null!==e&&"then"in e}s(b,"isLazyComponent"),s(v,"isPromiseLike");var x=s(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),y=s(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),k=(n||(n=r.t(i,2)))[" use ".trim().toString()]},47639:(e,t,r)=>{"use strict";r.d(t,{n:()=>o,s:()=>a});var n=r(83351);let i="https://rustify.rs/auth/github/callback";function a(e){let t=new URLSearchParams({client_id:"Iv23liUZ522KCCtWN3LP",redirect_uri:e,scope:"repo"});return`https://github.com/login/oauth/authorize?${t.toString()}`}function o(){let[e,t]=(0,n.useState)(i);return(0,n.useEffect)(()=>{i||t(`${window.location.origin}/auth/github/callback`)},[]),e}},53411:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(83351);let i=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},a=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();var o={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 s=(0,n.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:l,iconNode:d,...u},c)=>(0,n.createElement)("svg",{ref:c,...o,width:t,height:t,stroke:e,strokeWidth:i?24*Number(r)/Number(t):r,className:a("lucide",s),...!l&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(u)&&{"aria-hidden":"true"},...u},[...d.map(([e,t])=>(0,n.createElement)(e,t)),...Array.isArray(l)?l:[l]])),l=(e,t)=>
1{let r=(0,n.forwardRef)(({className:r,...o},l)=>(0,n.createElement)(s,{ref:l,iconNode:t,className:a(`lucide-${i(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...o}));return r.displayName=i(e),r}},69843:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(53411).A)("github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]])},72817:(e,t,r)=>{"use strict";r.d(t,{F:()=>o});var n=r(49913);let i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=n.$,o=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return a(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:o,defaultVariants:s}=t,l=Object.keys(o).map(e=>{let t=null==r?void 0:r[e],n=null==s?void 0:s[e];if(null===t)return null;let a=i(t)||i(n);return o[e][a]}),d=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return a(e,l,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...d}[t]):({...s,...d})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},73988:(e,t,r)=>{"use strict";r.d(t,{$:()=>l,r:()=>s});var n=r(77791);r(83351);var i=r(72817),a=r(35996),o=r(88051);let s=(0,i.F)("group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",contrast:"bg-foreground text-background hover:bg-foreground
1/90",outline:"border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5",lg:"h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-9","icon-xs":"size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function l({className:e,variant:t="default",size:r="default",asChild:i=!1,...d}){let u=i?a.bL:"button";return(0,n.jsx)(u,{"data-slot":"button","data-variant":t,"data-size":r,className:(0,o.cn)(s({variant:t,size:r,className:e})),...d})}},88051:(e,t,r)=>{"use strict";r.d(t,{cn:()=>a});var n=r(49913),i=r(39856);function a(...e){return(0,i.QP)((0,n.$)(e))}},92172:(e,t,r)=>{"use strict";r.d(t,{s:()=>l,t:()=>s});var n=r(83351),i=Object.defineProperty,a=(e,t)=>i(e,"name",{value:t,configurable:!0});function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function s(...e){return t=>{let r=!1,n=e.map(e=>{let n=o(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():o(e[t],null)}}}}function l(...e){return n.useCallback(s(...e),e)}a(o,"setRef"),a(s,"composeRefs"),a(l,"useComposedRefs")},99867:(e,t,r)=>{Promise.resolve().then(r.bind(r,7144))}},e=>{e.O(0,[64920,34e3,88610,77358],()=>e(e.s=99867)),_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.