Spaces:
Running
Running
Download assets/ConferencesIndexView-B4koLmhR.js from huggingface/paperswithcode: direct link, hf CLI and curl.
- Browser
- Download file 3.34 kB
-
https://huggingface.co/spaces/huggingface/paperswithcode/resolve/main/assets/ConferencesIndexView-B4koLmhR.js
- Command line
-
hf download hf://spaces/huggingface/paperswithcode/assets/ConferencesIndexView-B4koLmhR.js
-
curl -L -o ConferencesIndexView-B4koLmhR.js https://huggingface.co/spaces/huggingface/paperswithcode/resolve/main/assets/ConferencesIndexView-B4koLmhR.js
3.34 kB
| import{b as d,i as m,j as e,L as c,x as p}from"./index-BASp1Jlg.js";import{f as u}from"./deadlines-BG5SWwEG.js";import{A as f,a as h}from"./alert-TcODKBfp.js";import{A as x,a as g}from"./AreaSection-CPDB6sm_.js";import{T as j}from"./TaxonomySuggestionTile-Da7jkHJL.js";import{u as v}from"./useDocumentTitle-CMM05SJc.js";import{I as N}from"./pageTitles-Bh_-lk2I.js";import"./skeleton-CX3VRuwp.js";import"./SignInToEditDialog-C8MTVYqJ.js";import"./button-eiLitucs.js";import"./input-CMi3FNgu.js";import"./textarea-C-HO-pAS.js";import"./searchable-select-CrcpDDOn.js";import"./popover-BTdJz23k.js";import"./dialog-B6TxG4et.js";import"./search-YB9HB-wG.js";import"./loader-circle-PBnOT8RH.js";import"./useMutation-xugMiFBh.js";import"./submissions-B0yXxgio.js";import"./cacheSync-CFAJX_8A.js";import"./plus-CVmfXvuq.js";const _=r=>{var t;if(r.year!=null)return r.year;if(r.start_date)return Number(r.start_date.slice(0,4));const a=(t=r.slug.match(/-(\d{4})$/))==null?void 0:t[1];return a?Number(a):0},A=(r,a)=>{if(r.start_date&&a.start_date){const t=r.start_date.localeCompare(a.start_date);if(t!==0)return t}else{if(r.start_date)return-1;if(a.start_date)return 1}return r.name.localeCompare(a.name)},U=()=>{v(N.conferences);const r=d(p.conferences()),a=m.useMemo(()=>{var i;if(!((i=r.data)!=null&&i.results))return null;const t={};return r.data.results.forEach(n=>{const s=_(n);(t[s]||(t[s]=[])).push(n)}),Object.values(t).forEach(n=>n.sort(A)),Object.keys(t).map(Number).sort((n,s)=>s-n).map(n=>({year:n,conferences:t[n]}))},[r.data]);return r.error?e.jsx("div",{className:"page",children:e.jsx(f,{variant:"destructive",children:e.jsx(h,{children:"Failed to load conferences. Please try again."})})}):e.jsxs("div",{className:"page",children:[e.jsx("div",{className:"feed-header",children:e.jsxs("div",{children:[e.jsxs("h1",{className:"feed-title",children:["All ",e.jsx("em",{children:"Conferences"})]}),e.jsx("div",{className:"feed-subtitle",children:"Browse accepted papers from major AI conferences, grouped by research area and task."}),e.jsxs("div",{className:"conference-deadlines-link",children:["Find deadlines for upcoming conferences"," ",e.jsx(c,{to:"/ai-deadlines",className:"underline underline-offset-2 hover:text-foreground",children:"here"}),". Conference information is based on"," ",e.jsx("a",{href:"https://huggingface.co/ai-conferences",target:"_blank",rel:"noreferrer",className:"underline underline-offset-2 hover:text-foreground",children:"Hugging Face AI Conferences"}),"."]})]})}),r.isLoading?e.jsx(x,{sections:2,tiles:3,tileClassName:"h-32"}):a==null?void 0:a.map(({year:t,conferences:i})=>{const n=i.reduce((s,o)=>s+(o.paper_count??0),0);return e.jsxs(g,{title:t>0?String(t):"Unknown year",meta:`${i.length} ${i.length===1?"conference":"conferences"} · ${n.toLocaleString()} papers`,children:[i.map(s=>{const o=u(s.start_date,s.end_date),l=[s.venue,s.location].filter(Boolean).join(", ");return e.jsxs(c,{to:`/conferences/${s.slug}`,className:"tag-cell",children:[e.jsx("div",{className:"name",children:s.name}),e.jsxs("div",{className:"meta",style:{display:"flex",flexDirection:"column",gap:4},children:[o&&e.jsx("span",{children:o}),l&&e.jsx("span",{children:l}),e.jsxs("span",{children:[(s.paper_count??0).toLocaleString()," papers"]})]})]},s.id)}),e.jsx(j,{kind:"conference"})]},t)})]})};export{U as default}; | |