Spaces:
Running
Running
Add Paper & Citation section to Join Arena page with copy functionality
Browse files- src/views/RequestView.vue +120 -1
src/views/RequestView.vue
CHANGED
|
@@ -157,6 +157,42 @@
|
|
| 157 |
</a>
|
| 158 |
</div>
|
| 159 |
</section>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 160 |
</div>
|
| 161 |
</template>
|
| 162 |
|
|
@@ -235,7 +271,10 @@ export default {
|
|
| 235 |
MSFT: new URL('../assets/images/assets_images/MSFT.png', import.meta.url).href,
|
| 236 |
BMRN: new URL('../assets/images/assets_images/BMRN.png', import.meta.url).href,
|
| 237 |
TSLA: new URL('../assets/images/assets_images/TSLA.png', import.meta.url).href
|
| 238 |
-
}
|
|
|
|
|
|
|
|
|
|
| 239 |
}
|
| 240 |
},
|
| 241 |
|
|
@@ -401,6 +440,24 @@ export default {
|
|
| 401 |
const order = ['BTC','ETH','MSFT','BMRN','TSLA']
|
| 402 |
cards.sort((a,b) => (order.indexOf(a.code) - order.indexOf(b.code)))
|
| 403 |
this.assets = cards
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 404 |
}
|
| 405 |
},
|
| 406 |
|
|
@@ -520,4 +577,66 @@ export default {
|
|
| 520 |
.btn-cta{ background:linear-gradient(90deg, rgb(0,0,185), #7b2cbf, #d946ef, rgb(240,0,15)); border:none; color:#fff; font-weight:800; letter-spacing:.02em; padding:10px 16px; border-radius:12px; cursor:pointer; }
|
| 521 |
.mr-2{ margin-right:.5rem; }
|
| 522 |
.pos{ color:#0e7a3a; } .neg{ color:#B91C1C; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 523 |
</style>
|
|
|
|
| 157 |
</a>
|
| 158 |
</div>
|
| 159 |
</section>
|
| 160 |
+
|
| 161 |
+
<!-- ============== PAPER & CITATION ============== -->
|
| 162 |
+
<section class="section paper-section">
|
| 163 |
+
<header class="section-head">
|
| 164 |
+
<h2 class="section-title">
|
| 165 |
+
<span class="ama-gradient">Paper & Citation</span>
|
| 166 |
+
</h2>
|
| 167 |
+
</header>
|
| 168 |
+
|
| 169 |
+
<div class="paper-card">
|
| 170 |
+
<div class="paper-content">
|
| 171 |
+
<h3 class="paper-title">When Agents Trade: Live Multi-Market Trading Benchmark for LLM Agents</h3>
|
| 172 |
+
<div class="paper-links">
|
| 173 |
+
<a href="https://arxiv.org/pdf/2510.11695" target="_blank" rel="noopener" class="paper-link">
|
| 174 |
+
<i class="pi pi-file-pdf"></i> Read Paper
|
| 175 |
+
</a>
|
| 176 |
+
</div>
|
| 177 |
+
|
| 178 |
+
<div class="citation-box">
|
| 179 |
+
<div class="citation-header">
|
| 180 |
+
<span class="citation-label">BibTeX Citation</span>
|
| 181 |
+
<button @click="copyCitation" class="copy-btn" :class="{ 'copied': citationCopied }">
|
| 182 |
+
<i :class="citationCopied ? 'pi pi-check' : 'pi pi-copy'"></i>
|
| 183 |
+
{{ citationCopied ? 'Copied!' : 'Copy' }}
|
| 184 |
+
</button>
|
| 185 |
+
</div>
|
| 186 |
+
<pre class="citation-text">@article{qian2025agents,
|
| 187 |
+
title={When Agents Trade: Live Multi-Market Trading Benchmark for LLM Agents},
|
| 188 |
+
author={Qian, Lingfei and Peng, Xueqing and Wang, Yan and Zhang, Vincent Jim and He, Huan and Smith, Hanley and Han, Yi and He, Yueru and Li, Haohang and Cao, Yupeng and others},
|
| 189 |
+
journal={arXiv preprint arXiv:2510.11695},
|
| 190 |
+
year={2025}
|
| 191 |
+
}</pre>
|
| 192 |
+
</div>
|
| 193 |
+
</div>
|
| 194 |
+
</div>
|
| 195 |
+
</section>
|
| 196 |
</div>
|
| 197 |
</template>
|
| 198 |
|
|
|
|
| 271 |
MSFT: new URL('../assets/images/assets_images/MSFT.png', import.meta.url).href,
|
| 272 |
BMRN: new URL('../assets/images/assets_images/BMRN.png', import.meta.url).href,
|
| 273 |
TSLA: new URL('../assets/images/assets_images/TSLA.png', import.meta.url).href
|
| 274 |
+
},
|
| 275 |
+
|
| 276 |
+
// Paper & Citation
|
| 277 |
+
citationCopied: false
|
| 278 |
}
|
| 279 |
},
|
| 280 |
|
|
|
|
| 440 |
const order = ['BTC','ETH','MSFT','BMRN','TSLA']
|
| 441 |
cards.sort((a,b) => (order.indexOf(a.code) - order.indexOf(b.code)))
|
| 442 |
this.assets = cards
|
| 443 |
+
},
|
| 444 |
+
|
| 445 |
+
async copyCitation() {
|
| 446 |
+
const citation = `@article{qian2025agents,
|
| 447 |
+
title={When Agents Trade: Live Multi-Market Trading Benchmark for LLM Agents},
|
| 448 |
+
author={Qian, Lingfei and Peng, Xueqing and Wang, Yan and Zhang, Vincent Jim and He, Huan and Smith, Hanley and Han, Yi and He, Yueru and Li, Haohang and Cao, Yupeng and others},
|
| 449 |
+
journal={arXiv preprint arXiv:2510.11695},
|
| 450 |
+
year={2025}
|
| 451 |
+
}`
|
| 452 |
+
try {
|
| 453 |
+
await navigator.clipboard.writeText(citation)
|
| 454 |
+
this.citationCopied = true
|
| 455 |
+
setTimeout(() => {
|
| 456 |
+
this.citationCopied = false
|
| 457 |
+
}, 2000)
|
| 458 |
+
} catch (err) {
|
| 459 |
+
console.error('Failed to copy citation:', err)
|
| 460 |
+
}
|
| 461 |
}
|
| 462 |
},
|
| 463 |
|
|
|
|
| 577 |
.btn-cta{ background:linear-gradient(90deg, rgb(0,0,185), #7b2cbf, #d946ef, rgb(240,0,15)); border:none; color:#fff; font-weight:800; letter-spacing:.02em; padding:10px 16px; border-radius:12px; cursor:pointer; }
|
| 578 |
.mr-2{ margin-right:.5rem; }
|
| 579 |
.pos{ color:#0e7a3a; } .neg{ color:#B91C1C; }
|
| 580 |
+
|
| 581 |
+
/* ===== Paper & Citation ===== */
|
| 582 |
+
.paper-section{ margin-top:40px; margin-bottom:40px; }
|
| 583 |
+
.paper-card{
|
| 584 |
+
background:#ffffff; border:1px solid #E7ECF3; border-radius:14px;
|
| 585 |
+
box-shadow:0 1px 2px rgba(16,24,40,.03), 0 4px 12px rgba(16,24,40,.04);
|
| 586 |
+
padding:24px;
|
| 587 |
+
}
|
| 588 |
+
.paper-content{ display:flex; flex-direction:column; gap:20px; }
|
| 589 |
+
.paper-title{
|
| 590 |
+
font-size:1.4rem; font-weight:800; color:#0f172a;
|
| 591 |
+
letter-spacing:-0.02em; line-height:1.3; margin:0;
|
| 592 |
+
}
|
| 593 |
+
.paper-links{ display:flex; gap:12px; align-items:center; }
|
| 594 |
+
.paper-link{
|
| 595 |
+
display:inline-flex; align-items:center; gap:8px;
|
| 596 |
+
padding:10px 18px; background:#f3f4f6; border:1px solid #E7ECF3;
|
| 597 |
+
border-radius:10px; text-decoration:none; color:#0f172a;
|
| 598 |
+
font-weight:700; font-size:14px; transition:all .2s ease;
|
| 599 |
+
}
|
| 600 |
+
.paper-link:hover{
|
| 601 |
+
background:#e5e7eb; border-color:#cbd5e1; transform:translateY(-1px);
|
| 602 |
+
box-shadow:0 4px 12px rgba(16,24,40,.08);
|
| 603 |
+
}
|
| 604 |
+
.paper-link i{ font-size:16px; }
|
| 605 |
+
|
| 606 |
+
.citation-box{
|
| 607 |
+
background:#f8fafc; border:1px solid #e2e8f0;
|
| 608 |
+
border-radius:12px; padding:16px;
|
| 609 |
+
}
|
| 610 |
+
.citation-header{
|
| 611 |
+
display:flex; justify-content:space-between; align-items:center;
|
| 612 |
+
margin-bottom:12px;
|
| 613 |
+
}
|
| 614 |
+
.citation-label{
|
| 615 |
+
font-weight:700; font-size:14px; color:#0f172a;
|
| 616 |
+
}
|
| 617 |
+
.copy-btn{
|
| 618 |
+
display:inline-flex; align-items:center; gap:6px;
|
| 619 |
+
padding:6px 12px; background:#ffffff; border:1px solid #cbd5e1;
|
| 620 |
+
border-radius:8px; cursor:pointer; font-weight:600;
|
| 621 |
+
font-size:13px; color:#334155; transition:all .2s ease;
|
| 622 |
+
}
|
| 623 |
+
.copy-btn:hover{
|
| 624 |
+
background:#f1f5f9; border-color:#94a3b8;
|
| 625 |
+
}
|
| 626 |
+
.copy-btn.copied{
|
| 627 |
+
background:#dcfce7; border-color:#86efac; color:#166534;
|
| 628 |
+
}
|
| 629 |
+
.copy-btn i{ font-size:12px; }
|
| 630 |
+
|
| 631 |
+
.citation-text{
|
| 632 |
+
background:#0b1020; color:#E6EDF3; border-radius:8px;
|
| 633 |
+
padding:14px; overflow:auto; font-family: ui-monospace, monospace;
|
| 634 |
+
font-size:13px; line-height:1.6; margin:0; white-space:pre;
|
| 635 |
+
}
|
| 636 |
+
|
| 637 |
+
@media (max-width: 620px){
|
| 638 |
+
.paper-card{ padding:16px; }
|
| 639 |
+
.paper-title{ font-size:1.2rem; }
|
| 640 |
+
.citation-header{ flex-direction:column; align-items:flex-start; gap:8px; }
|
| 641 |
+
}
|
| 642 |
</style>
|