PageSourceSearch

https://resource.fyi/_next/static/chunks/pages/[username]/upvotes-2aa201a58b105bf0.js

js resource.fyi collected 2026-10-07 03:21:50 UTC 12,008 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[858],{5200:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[username]/upvotes",function(){return r(5543)}])},2902:function(e,t,r){"use strict";r.d(t,{XN:function(){return d},ty:function(){return u},v_:function(){return a}});var n=r(7568),s=r(7582),i=r(3694);function o(e){return l.apply(this,arguments)}function l(){return(l=(0,n.Z)((function(e){return(0,s.__generator)(this,(function(t){switch(t.label){case 0:return[4,fetch("".concat(i.serverURL).concat(e),{method:"GET",headers:{originUrl:i.clientURL}}).then((function(e){return e.json()}))];case 1:return[2,t.sent()]}}))}))).apply(this,arguments)}var c=function(e){return(null===e||void 0===e?void 0:e.startsWith("@"))?e.substring(1):e},a=(function(){var e=(0,n.Z)((function(e){var t;return(0,s.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,o("/public/user/".concat(c(e)))];case 1:return[2,r.sent()];case 2:return t=r.sent(),console.log("error from getPublicUserByUsername",t),[3,3];case 3:return[2]}}
1))}))}(),function(){var e=(0,n.Z)((function(e,t){var r;return(0,s.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,o(t?"/public/user/".concat(c(e),"/bookmarks/").concat(t):"/public/user/".concat(c(e),"/bookmarks"))];case 1:return[2,n.sent()];case 2:return r=n.sent(),console.log("error from getPublicUserBookMarkProducts",r),[2,{}];case 3:return[2]}}))}));return function(t,r){return e.apply(this,arguments)}}()),u=function(){var e=(0,n.Z)((function(e,t){var r;return(0,s.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,o(t?"/public/user/".concat(c(e),"/upVotes/").concat(t):"/public/user/".concat(c(e),"/upVotes"))];case 1:return[2,n.sent()];case 2:return r=n.sent(),console.log("error from getPublicUserBookMarkProducts",r),[3,3];case 3:return[2]}}))}));return function(t,r){return e.apply(this,arguments)}}(),d=function(){var e=(0,n.Z)((function(e,t){var r;return(0,s.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,o(t?"/public/user/".concat(c(e),"/submission/").concat(t):"/public/user/".concat(c(e),"/submission"))];case 1:return[2,n.sent()];case 2:return r=n.sent(),console.log("error from getPublicUserBookMarkProducts",r),[3,3];case 3:return[2]}}
1))}));return function(t,r){return e.apply(this,arguments)}}()},2750:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(5893),s=r(1664),i=r.n(s),o=r(1163),l=(r(7294),[{id:1,icon:(0,n.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 22 22",className:"fill-current",children:(0,n.jsx)("path",{d:"M4.58341 1.8335H17.4167C17.6599 1.8335 17.893 1.93007 18.0649 2.10198C18.2368 2.27389 18.3334 2.50705 18.3334 2.75016V20.2979C18.3335 20.3799 18.3116 20.4604 18.2701 20.531C18.2285 20.6016 18.1687 20.6598 18.097 20.6995C18.0253 20.7392 17.9443 20.7589 17.8624 20.7566C17.7805 20.7544 17.7006 20.7302 17.6312 20.6866L11.0001 16.5277L4.36891 20.6857C4.29959 20.7292 4.21985 20.7534 4.13801 20.7557C4.05616 20.758 3.97519 20.7384 3.90352 20.6988C3.83184 20.6592 3.77208 20.6012 3.73044 20.5307C3.6888 20.4602 3.66681 20.3798 3.66675 20.2979V2.75016C3.66675 2.50705 3.76333 2.27389 3.93523 2.10198C4.10714 1.93007 4.3403 1.8335 4.58341 1.8335ZM16.5001 3.66683H5.50008V17.8128L11.0001 14.3652L16.5001 17.8128V3.66683Z"})}),title:"Bookmarks",link:"bookmarks"},{id:2,icon:(0,n.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 22 22",className:"fill-current",children:(0,n.jsx)("path",{d:"M11.0001 3.6665L18.3334 18.3332H3.66675L11.0001 3.6665Z"})}),title:"Upvotes",link:"upvotes"},{id:3,icon:(0,n.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 22 22",className:"fill-current",children:(0,n.jsx)("path",{d:"M10 10V4H12V10H18V12H12V18H10V12H4V10H10Z"})}),title:"Submissions",link:"submissions",queryName:"status",queryValue:"under_review"}]);function c(e){var t=e.publicUser,r=(0,o.useRouter)();return(0,n.jsx)("div",{className:"flex flex-col justify-between rounded-[10px] border border-light-stroke bg-white px-5 py-8 sm:px-8 lg:h-[calc(100vh-90px)] lg:px-5 xl:px-8 dark:border-dark-stroke dark:bg-dark-bg-2",children:(0,n.jsx)("div",{className:"space-y-2",children:l.map((function(e,s){return(0,n.jsx)(i(),{href:"/@".concat(null===t||void 0===t?void 0:t.username,"/").concat(e.link),children:(0,n.jsxs)("a",{className:"flex w-full items-center rounded px-4 py-[10px] font-heading text-lg transition-all hover:bg-primary hover:text-white ".concat(r.asPath==="/@".concat(null===t||void 0===t?void 0:t.username,"/").concat(e.link)?"bg-primary text-white ":"text-dark-text"),children:[(0,n.jsx)("span",{className:"pr-2",children:e.icon}),e.title]},s)},s)}))})})}},8398:function(e,t,r){"use strict";var n=r(5893),s=r(1664),i=r.n(s);t.Z=function(e){var t,r,s,o=e.publicUser,l=0;return l+=Number(null===o||void 0===o?void 0:o.bookmark_point)+Number(null===o||void 0===o?void 0:o.upvote_point)+Number(null===o||void 0===o?void 0:o.submission_point),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"relative mb-12 items-center rounded-[10px] border border-light-stroke bg-white px-6 py-8 dark:border-dark-stroke dark:bg-dark-bg-2 xs:flex md:px-9",children:[(0,n.jsx)("div",{className:"relative mb-3 aspect-square w-[100px] overflow-hidden rounded-full xs:mb-0 xs:mr-4 md:w-[130px]",children:(null===o||void 0===o||null===(t=o.profile_img_url)||void 0===t?void 0:t.length)>0&&(0,n.jsx)("img",{referrerpolicy:"no-referrer",src:"".concat(null===o||void 0===o?void 0:o.profile_img_url),alt:"profile",className:"w-full rounded-full object-cover object-center"})}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsx)("h1",{className:"font-heading text-lg font-medium tracking-tight text-dark-bg-2 duration-300 hover:text-primary dark:text-white dark:hover:text-primary sm:text-xl md:text-2xl lg:text-lg xl:text-xl 2xl:text-2xl",children:(0,n.jsx)(i(),{href:"/@".concat(null===o||void 0===o?void 0:o.username),children:(0,n.jsx)("a",{children:null===o||void 0===o?void 0:o.name})})}),(0,n.jsx)("p",{className:"mt-1.5 line-clamp-1 text-base text-dark-text",children:null===o||void 0===o?void 0:o.bio})]}),(0,n.jsxs)("div",{className:"items-center sm:flex",children:[(null===o||void 0===o||null===(r=o.website_url)||void 0===r?void 0:r.length)>0&&(0,n.jsxs)("a",{href:(null===o||void 0===o||null===(s=o.website_url)||void 0===s?void 0:s.endsWith("/"))?"".concat(null===o||void 0===o?void 0:o.website_url,"?ref=resource.fyi"):"".concat(null===o||void 0===o?void 0:o.website_url,"/?ref=resource.fyi"),target:"_blank",rel:"noopener noreferrer",className:"mr-5 flex items-center py-[6px] text-base text-dark-text hover:text-primary",children:[(0,n.jsx)("span",{className:"pr-2",children:(0,n.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M9.99984 18.3332C5.39746 18.3332 1.6665 14.6022 1.6665 9.99984C1.6665 5.39746 5.39746 1.6665 9.99984 1.6665C14.6022 1.6665 18.3332 5.39746 18.3332 9.99984C18.3332 14.6022 14.6022 18.3332 9.99984 18.3332ZM8.09152 16.3893C7.28936 14.6881 6.7976 12.8117 6.68926 10.8332H3.38475C3.71484 13.4803 5.59683 15.6454 8.09152 16.3893ZM8.35875 10.8332C8.48409 12.8655 9.06467 14.7746 9.99984 16.4598C10.935 14.7746 11.5156 12.8655 11.6409 10.8332H8.35875ZM16.6149 10.8332H13.3104C13.2021 12.8117 12.7103 14.6881 11.9082 16.3893C14.4028 15.6454 16.2848 13.4803 16.6149 10.8332ZM3.38475 9.1665H6.68926C6.7976 7.18798 7.28936 5.31156 8.09152 3.6103C5.59683 4.35428 3.71484 6.51942 3.38475 9.1665ZM8.35875 9.1665H11.6409C11.5156 7.13419 10.935 5.22504 9.99984 3.53983C9.06467 5.22504 8.48409 7.13419 8.35875 9.1665ZM11.9082 3.6103C12.7103 5.31156 13.2021 7.18798 13.3104 9.1665H16.6149C16.2848 6.51942 14.4028 4.35428 11.9082 3.6103Z",fill:"currentColor"})})}),"Visit Site"]}),(0,n.jsxs)("span",{className:"inline-flex items-center justify-center rounded-3xl bg-primary px-3 py-1 font-heading text-base font-normal text-white",children:[(0,n.jsx)("span",{className:"pr-1.5",children:(0,n.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M10.0042 18.3356C5.40187 18.3356 1.6709 14.6047 1.6709 10.0023C1.6709 5.3999 5.40187 1.66895 10.0042 1.66895C14.6066 1.66895 18.3376 5.3999 18.3376 10.0023C18.3376 14.6047 14.6066 18.3356 10.0042 18.3356ZM10.0042 16.6689C13.6862 16.6689 16.6709 
113.6842 16.6709 10.0023C16.6709 6.32038 13.6862 3.33561 10.0042 3.33561C6.32233 3.33561 3.33757 6.32038 3.33757 10.0023C3.33757 13.6842 6.32233 16.6689 10.0042 16.6689ZM10.0042 5.87749L14.129 10.0023L10.0042 14.1271L5.87945 10.0023L10.0042 5.87749ZM10.0042 8.23451L8.23647 10.0023L10.0042 11.7701L11.772 10.0023L10.0042 8.23451Z",fill:"white"})})}),l||0," Points"]})]})]})]})})}},5543:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return m},default:function(){return f}});var n=r(7568),s=r(797),i=r(7582),o=r(5893),l=r(9008),c=r.n(l),a=r(7294),u=r(2902),d=r(5828),x=r(2750),p=r(8398),h=r(4293),v=r(3694),m=!0;function f(e){var t,r=e.user,l=e.token,m=e.setUser,f=e.setToken,g=e.publicUser,b=e.initialProducts,j=(0,a.useState)((null!==(t=null===b||void 0===b?void 0:b.length)&&void 0!==t?t:0)>=30),w=j[0],k=j[1],y=(0,a.useState)(!1),_=y[0],C=y[1],N=(0,a.useState)(null!==b&&void 0!==b?b:[]),Z=N[0],M=N[1],U=function(){var e=(0,n.Z)((function(){var e,t;return(0,i.__generator)(this,(function(r){switch(r.label){case 0:return e=Z.length+30,[4,(0,u.ty)(null===g||void 0===g?void 0:g.username,e)];case 1:return!(null===(t=r.sent())||void 0===t?void 0:t.isError)&&(null===t||void 0===t?void 0:t.products)&&(M((0,s.Z)(Z).concat((0,s.Z)(null===t||void 0===t?void 0:t.products))),(null===Z||void 0===Z?void 0:Z.length)>=(null===t||void 0===t?void 0:t.totalUpVoteProducts)&&k(!1)),[2]}}))}));return function(){return e.apply(this,arguments)}}(),L=new URL("/@".concat(null===g||void 0===g?void 0:g.username,"/upvotes"),v.clientURL).href,V="".concat(null===g||void 0===g?void 0:g.name,"'s Upvotes | Resource.fyi"),H="Discover resources upvoted by ".concat(null===g||void 0===g?void 0:g.name," on Resource.fyi \u2014 the curated directory of tools and resources for developers and designers.");return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(c(),{children:[(0,o.jsx)("title",{children:V}),(0,o.jsx)("meta",{name:"description",content:H}),(0,o.jsx)("meta",{property:"og:type",content:"profile"}),(0,o.jsx)("meta",{property:"og:url",content:L}),(0,o.jsx)("meta",{property:"og:title",content:V}),(0,o.jsx)("meta",{property:"og:description",content:H}),(null===g||void 0===g?void 0:g.profile_img_url)&&(0,o.jsx)("meta",{property:"og:image",content:g.profile_img_url}),(0,o.jsx)("link",{rel:"canonical",href:L}),(0,o.jsx)("meta",{property:"twitter:card",content:"summary"}),(0,o.jsx)("meta",{property:"twitter:url",content:L}),(0,o.jsx)("meta",{property:"twitter:title",content:V}),(0,o.jsx)("meta",{property:"twitter:description",content:H})]}),(0,o.jsx)("section",{children:(0,o.jsx)("div",{className:"px-4 4xl:container sm:px-10",children:(0,o.jsxs)("div",{className:"-mx-4 flex flex-wrap lg:justify-center",children:[(0,o.jsx)("div",{className:"w-full px-4 lg:w-1/3 3xl:w-1/4",children:(0,o.jsx)("div",{className:"top-0 mb-14 pt-[85px] lg:sticky",children:(0,o.jsx)(x.Z,{publicUser:g})})}),(0,o.jsxs)("div",{className:"w-full px-4 lg:w-2/3 lg:pt-[85px] 3xl:w-3/4",children:[(0,o.jsx)(p.Z,{publicUser:g}),(0,o.jsx)("div",{children:(0,o.jsx)("div",{className:"mb-10",children:(0,o.jsx)("h2",{className:"mb-2 font-heading text-2xl font-semibold tracking-tighter text-dark-bg-2 sm:text-3xl md:text-4xl dark:text-white",children:"Up Voted Resources"})})}),(0,o.jsx)("div",{className:"mb-14",children:(0,o.jsx)(h.Z,{user:r,token:l,hasMore:w,setUser:m,resources:Z,fetchMore:U,setSignInModal:C})})]})]})})}),_&&(0,o.jsx)(d.Z,{setToken:f,signInModal:_,setSignInModal:C})]})}}},function(e){e.O(0,[768,293,774,888,179],(function(){return t=5200,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.