Skip to content

Commit 0bf5f1b

Browse files
committed
Fix AI homepage tooltip and add AI gateways collection
1 parent 3f4a3e6 commit 0bf5f1b

3 files changed

Lines changed: 29 additions & 17 deletions

File tree

apps/web/app/ai-home-content.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -261,13 +261,17 @@ export default function AIHomeContent({ categories, trendingRepos }: AIHomeProps
261261
backgroundColor: 'transparent',
262262
tooltip: {
263263
formatter: (p: any) => {
264-
if (!p.data?.repoName) return `<b>${p.name}</b>`;
265-
return `<div style="font-size:12px">
266-
<b style="color:#fff">${p.data.repoName}</b><br/>
267-
${Number(p.data.stars || 0).toLocaleString()}<br/>
268-
${p.data.desc ? `<div style="color:#aaa;margin-top:4px;max-width:280px">${String(p.data.desc).slice(0, 100)}</div>` : ''}
264+
if (!p.data?.repoName) {
265+
return `<div style="max-width:320px;white-space:normal;word-break:break-word;overflow-wrap:anywhere"><b>${p.name}</b></div>`;
266+
}
267+
return `<div style="max-width:320px;font-size:12px;line-height:1.45;white-space:normal;word-break:break-word;overflow-wrap:anywhere">
268+
<div style="color:#fff;font-weight:700">${p.data.repoName}</div>
269+
<div style="margin-top:2px">★ ${Number(p.data.stars || 0).toLocaleString()}</div>
270+
${p.data.desc ? `<div style="color:#aaa;margin-top:6px">${String(p.data.desc).slice(0, 100)}</div>` : ''}
269271
</div>`;
270272
},
273+
confine: true,
274+
extraCssText: 'max-width:min(320px, calc(100vw - 32px));white-space:normal;word-break:break-word;overflow-wrap:anywhere;line-height:1.45;',
271275
backgroundColor: '#222',
272276
borderColor: '#444',
273277
textStyle: { color: '#eee' },
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
id: 10104
2+
name: AI Gateways
3+
items:
4+
- BerriAI/litellm
5+
- Portkey-AI/gateway
6+
- Helicone/ai-gateway
7+
- IBM/mcp-context-forge
8+
- maximhq/bifrost
9+
- looplj/axonhub
10+
- diegosouzapw/OmniRoute
11+
- songquanpeng/one-api
12+
- tensorzero/tensorzero
13+
- coaidev/coai
14+
- labring/aiproxy
15+
- lightseekorg/smg
16+
- mylxsw/llm-gateway
17+
- traceloop/hub
18+
- alibaba/higress
19+
- apache/apisix
20+
- Kong/kong

configs/collections/10104.authentication-and-idp.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)