PageSourceSearch

https://www.sideprojectors.com/build/assets/ViaPh-Oz0o1sOA.js

js sideprojectors.com collected 2026-10-01 10:12:32 UTC 2,545 bytes, 1 lines download raw bytes

1import{F as p}from"./Simple-DjW3m9zQ.js";import{_ as u,c as s,a as e,f as h,t as d,F as g,i as y,b as _,h as x,m as b,u as k,r as f,o,e as v,d as w}from"./app-RdmXVdLP.js";import{b as S}from"./apiPost-C4xD0A-h.js";import"./getCSRF-7MinvhD0.js";const j={components:{Footer:p},data(){return{projects:null,loading:!1,error:null}},computed:{...b(k)},async created(){let a=await x("/producthunt/projects",{key:this.$route.params.key},this.sideprojectorsStore.getToken);if(!a){this.error="Session expired. Please reconnect Product Hunt and try again.";return}this.projects=a.body},methods:{async submit(a){var i;let t=await S("/project/create",{postType:this.$route.params.type,key:this.$route.params.key,producthuntPostId:a.id},this.sideprojectorsStore.getToken);if(!t.ok){this.error=((i=t.body)==null?void 0:i.error)||"Failed to create project. Please try again.";return}let n=t.body;this.$router.push({name:"submit-project-general",params:{projectId:n.id}})}}},P={class:"max-w-xl mx-auto px-6 lg:px-8 mt-12"},F={class:"bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-700 p-6 rounded-lg mt-4"},V={key:0,class:"text-center py-8 text-red-500"},$={key:1,class:"dark:text-white"},C={class:"mt-4 space-y-4"},H=["onClick"],N={class:"flex items-start space-x-4"},T={key:0,class:"flex-shrink-0"},B=["src"],I={class:"flex-1 min-w-0"},D={class:"text-base font-medium text-gray-900 dark:text-white"},E={class:"text-sm text-gray-700 dark:text-gray-300 mt-1"},G={class:"mt-6"};function L(a,t,n,i,c,l){const m=f("Footer");return o(),s("div",P,[t[0]||(t[0]=e("div",{class:"text-lg ml-2 flex items-center dark:text-white"},[e("img",{src:"https://cdn0.iconfinder.com/data/icons/social-circle-3/72/ProductHunt-256.png",class:"inline w-5 mr-2"}),h(" Submit a project from your Product Hunt account")],-1)),e("div",F,[c.error?(o(),s("div",V,d(c.error),1)):(o(),s("div",$," Select a project from your Product Hunt account to submit. ")),e("div",C,[(o(!0),s(g,null,y(c.projects,(r,M)=>(o(),s("a",{href:"#",onClick:v(R=>l.submit(r),["prevent"]),class:"block bg-gray-100 dark:bg-gray-700 p-3 border dark:border-gray-600 rounded hover:bg-gray-200 dark:hover:bg-gray-600 hover:border-gray-400 dark:hover:border-gray-500"},[e("div",N,[r.media!=null&&r.media.length>0?(o(),s("div",T,[e("img",{src:r.media[0].url,style:{height:"90px",width:"90px","object-fit":"cover"},class:"rounded"},null,8,B)])):w("",!0),e("div",I,[e("div",D,d(r.name),1),e("div",E,d(r.tagline),1)])])],8,H))),256))])]),e("div",G,[_(m)])])}const K=u(j,[["render",L]]);export{K as default};

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.