Skip to content

Commit

Permalink
ci: automatic build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Github Actions committed Dec 4, 2023
1 parent 07ec594 commit 28cde2b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5594,7 +5594,7 @@ outputColor=vec4(color,inputColor.a);}`,VignetteEffect=class extends Effect$1{co
&& {
z-index: 9999;
}
`,FilterOffIcon=tt=>jsxRuntimeExports.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsxs("g",{id:"filter_alt_off",children:[jsxRuntimeExports.jsx("mask",{id:"mask0_1543_23288",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:jsxRuntimeExports.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),jsxRuntimeExports.jsx("g",{mask:"url(#mask0_1543_23288)",children:jsxRuntimeExports.jsx("path",{id:"filter_alt_off_2",d:"M14.8 11.9748L6.82503 3.9998H19C19.4167 3.9998 19.7167 4.18314 19.9 4.5498C20.0834 4.91647 20.05 5.26647 19.8 5.5998L14.8 11.9748ZM19.775 22.5998L14 16.8248V18.9998C14 19.2831 13.9042 19.5206 13.7125 19.7123C13.5209 19.904 13.2834 19.9998 13 19.9998H11C10.7167 19.9998 10.4792 19.904 10.2875 19.7123C10.0959 19.5206 10 19.2831 10 18.9998V12.8248L1.40002 4.2248L2.80002 2.7998L21.2 21.1998L19.775 22.5998Z",fill:"currentColor"})})]})}),Table$2=({data:tt})=>{const et=useDataStore(at=>at.setQueuedSources),[nt,rt]=reactExports.useState(""),it=async at=>{if(tt!=null&&tt.length)try{const st=await distExports$1.enable();await approveRadarData(at,st.pubkey),et(tt.filter(lt=>lt.ref_id!==at))}catch(st){console.warn(st)}},ot=async at=>{if(!(!at||!(tt!=null&&tt.length))){rt(at);try{await deleteRadarData(at),et(tt==null?void 0:tt.filter(st=>st.ref_id!==at))}catch(st){console.warn(st)}finally{rt("")}}};return tt!=null&&tt.length?jsxRuntimeExports.jsxs(MaterialTable,{component:"table",children:[jsxRuntimeExports.jsx(StyledTableHead,{children:jsxRuntimeExports.jsxs(TableRow$1,{component:"tr",children:[jsxRuntimeExports.jsx(StyledTableCell,{className:"empty"}),jsxRuntimeExports.jsx(StyledTableCell,{children:"Type"}),jsxRuntimeExports.jsx(StyledTableCell,{children:"Source"}),jsxRuntimeExports.jsx(StyledTableCell,{}),jsxRuntimeExports.jsx(StyledTableCell,{className:"empty"})]})}),(tt==null?void 0:tt.length)&&jsxRuntimeExports.jsx("tbody",{children:tt==null?void 0:tt.map(at=>jsxRuntimeExports.jsxs(StyledTableRow,{children:[jsxRuntimeExports.jsx(StyledTableCell,{className:"empty"}),jsxRuntimeExports.jsx(StyledTableCell,{children:sourcesMapper[at.source_type]}),jsxRuntimeExports.jsx(StyledTableCell,{width:"268px",children:at.source_type==="twitter_handle"?jsxRuntimeExports.jsxs(StyledLink$2,{href:`${TWITTER_LINK}/${at.source}`,target:"_blank",children:["@",at.source]}):jsxRuntimeExports.jsx("div",{children:at.source})}),jsxRuntimeExports.jsx(StyledTableCell,{className:"cell-center",children:jsxRuntimeExports.jsxs(Flex,{direction:"row",justify:"space-between",children:[jsxRuntimeExports.jsx("div",{className:"approve-wrapper",children:jsxRuntimeExports.jsx(IconWrapper$4,{className:"centered",onClick:()=>it(at.ref_id),children:jsxRuntimeExports.jsx(MdCheckCircle,{color:colors.primaryGreen,fontSize:24})})}),jsxRuntimeExports.jsx("div",{className:"delete-wrapper",children:nt===at.ref_id?jsxRuntimeExports.jsx(ClipLoader$2,{color:colors.white,size:16}):jsxRuntimeExports.jsx(ConfirmPopover,{message:"Are you sure ?",onConfirm:()=>ot(at.ref_id),children:jsxRuntimeExports.jsx(IconWrapper$4,{className:"centered",children:jsxRuntimeExports.jsx(MdCancel,{color:colors.primaryRed,fontSize:24})})})})]})}),jsxRuntimeExports.jsx(StyledTableCell,{className:"empty"})]},at.source))})]}):jsxRuntimeExports.jsxs(Flex,{children:[jsxRuntimeExports.jsx(Text$4,{children:"There is not any results for selected filters"}),jsxRuntimeExports.jsx(FilterOffIcon,{})]})},IconWrapper$4=styled$4(Flex)`
`,FilterOffIcon=tt=>jsxRuntimeExports.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsxs("g",{id:"filter_alt_off",children:[jsxRuntimeExports.jsx("mask",{id:"mask0_1543_23288",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:jsxRuntimeExports.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),jsxRuntimeExports.jsx("g",{mask:"url(#mask0_1543_23288)",children:jsxRuntimeExports.jsx("path",{id:"filter_alt_off_2",d:"M14.8 11.9748L6.82503 3.9998H19C19.4167 3.9998 19.7167 4.18314 19.9 4.5498C20.0834 4.91647 20.05 5.26647 19.8 5.5998L14.8 11.9748ZM19.775 22.5998L14 16.8248V18.9998C14 19.2831 13.9042 19.5206 13.7125 19.7123C13.5209 19.904 13.2834 19.9998 13 19.9998H11C10.7167 19.9998 10.4792 19.904 10.2875 19.7123C10.0959 19.5206 10 19.2831 10 18.9998V12.8248L1.40002 4.2248L2.80002 2.7998L21.2 21.1998L19.775 22.5998Z",fill:"currentColor"})})]})}),Table$2=({data:tt})=>{const et=useDataStore(at=>at.setQueuedSources),[nt,rt]=reactExports.useState(""),it=async at=>{if(tt!=null&&tt.length)try{const st=await distExports$1.enable();await approveRadarData(at,st.pubkey),et(tt.filter(lt=>lt.ref_id!==at))}catch(st){console.warn(st)}},ot=async at=>{if(!(!at||!(tt!=null&&tt.length))){rt(at);try{await deleteRadarData(at),et(tt==null?void 0:tt.filter(st=>st.ref_id!==at))}catch(st){console.warn(st)}finally{rt("")}}};return tt!=null&&tt.length?jsxRuntimeExports.jsxs(MaterialTable,{component:"table",children:[jsxRuntimeExports.jsx(StyledTableHead,{children:jsxRuntimeExports.jsxs(TableRow$1,{component:"tr",children:[jsxRuntimeExports.jsx(StyledTableCell,{className:"empty"}),jsxRuntimeExports.jsx(StyledTableCell,{children:"Type"}),jsxRuntimeExports.jsx(StyledTableCell,{children:"Source"}),jsxRuntimeExports.jsx(StyledTableCell,{}),jsxRuntimeExports.jsx(StyledTableCell,{className:"empty"})]})}),(tt==null?void 0:tt.length)&&jsxRuntimeExports.jsx("tbody",{children:tt==null?void 0:tt.map(at=>jsxRuntimeExports.jsxs(StyledTableRow,{children:[jsxRuntimeExports.jsx(StyledTableCell,{className:"empty"}),jsxRuntimeExports.jsx(StyledTableCell,{children:sourcesMapper[at.source_type]}),jsxRuntimeExports.jsx(StyledTableCell,{width:"268px",children:at.source_type==="twitter_handle"?jsxRuntimeExports.jsxs(StyledLink$2,{href:`${TWITTER_LINK}/${at.source}?open=system`,target:"_blank",children:["@",at.source]}):jsxRuntimeExports.jsx(StyledLink$2,{href:`${at.source}?open=system`,target:"_blank",children:at.source})}),jsxRuntimeExports.jsx(StyledTableCell,{className:"cell-center",children:jsxRuntimeExports.jsxs(Flex,{direction:"row",justify:"space-between",children:[jsxRuntimeExports.jsx("div",{className:"approve-wrapper",children:jsxRuntimeExports.jsx(IconWrapper$4,{className:"centered",onClick:()=>it(at.ref_id),children:jsxRuntimeExports.jsx(MdCheckCircle,{color:colors.primaryGreen,fontSize:24})})}),jsxRuntimeExports.jsx("div",{className:"delete-wrapper",children:nt===at.ref_id?jsxRuntimeExports.jsx(ClipLoader$2,{color:colors.white,size:16}):jsxRuntimeExports.jsx(ConfirmPopover,{message:"Are you sure ?",onConfirm:()=>ot(at.ref_id),children:jsxRuntimeExports.jsx(IconWrapper$4,{className:"centered",children:jsxRuntimeExports.jsx(MdCancel,{color:colors.primaryRed,fontSize:24})})})})]})}),jsxRuntimeExports.jsx(StyledTableCell,{className:"empty"})]},at.source))})]}):jsxRuntimeExports.jsxs(Flex,{children:[jsxRuntimeExports.jsx(Text$4,{children:"There is not any results for selected filters"}),jsxRuntimeExports.jsx(FilterOffIcon,{})]})},IconWrapper$4=styled$4(Flex)`
width: 20px;
height: 20px;
border-radius: 50%;
Expand All @@ -5614,6 +5614,9 @@ outputColor=vec4(color,inputColor.a);}`,VignetteEffect=class extends Effect$1{co
&:visited {
color: ${colors.white};
}
&:hover {
cursor: pointer;
}
`,QueuedSources=()=>{const[tt,et]=reactExports.useState(!0),[nt,rt]=reactExports.useState(""),[it,ot]=useDataStore(lt=>[lt.queuedSources,lt.setQueuedSources]);reactExports.useEffect(()=>{(async()=>{et(!0);try{const ct=await getRadarData({approved:"False"});ot(ct.data)}catch(ct){console.warn(ct)}finally{et(!1)}})()},[ot]);const at=lt=>{rt(nt===lt||!lt?"":lt)},st=it==null?void 0:it.filter(lt=>!nt||lt.source_type===nt);return jsxRuntimeExports.jsxs(Wrapper$m,{align:"stretch",direction:"column",justify:"flex-end",children:[jsxRuntimeExports.jsxs(Heading$4,{align:"flex-start",justify:"space-between",children:[jsxRuntimeExports.jsx(Text$4,{className:"title",children:"Queued Sources"}),jsxRuntimeExports.jsx(Text$4,{className:"subtitle",children:"This is a queue of pending sources waiting for approval or denial from graph users. If you think a source will provide good content for the graph, you can pay to approve it. Think of this as an investment: you pay to add it to the source table, and if the content is popular you will earn from it. If content is not relevant to the graph, you should deny it."})]}),jsxRuntimeExports.jsxs(Flex,{className:"filters",direction:"row",pb:16,px:36,children:[jsxRuntimeExports.jsx(StyledPill,{className:clsx$2({selected:!nt}),onClick:()=>at(""),size:"small",children:"All"}),Object.keys(sourcesMapper).map(lt=>jsxRuntimeExports.jsx(StyledPill,{className:clsx$2({selected:lt===nt}),onClick:()=>at(lt),size:"small",children:sourcesMapper[lt]},lt))]}),jsxRuntimeExports.jsx(TableWrapper$2,{align:"center",justify:tt?"center":"flex-start",children:tt?jsxRuntimeExports.jsx(ClipLoader$2,{color:colors.white}):jsxRuntimeExports.jsx(Table$2,{data:st})})]})},Wrapper$m=styled$4(Flex)`
flex: 1;

Expand Down
2 changes: 1 addition & 1 deletion build/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Second Brain</title>
<script type="module" crossorigin src="/assets/index-4ea2f17d.js"></script>
<script type="module" crossorigin src="/assets/index-6115e0a2.js"></script>
<link rel="stylesheet" href="/assets/index-9a4cd8a9.css">
</head>
<body style="background: #000">
Expand Down

0 comments on commit 28cde2b

Please sign in to comment.