code: sync from git
Browse files
code/.claude/skills/eco-release/SKILL.md
CHANGED
|
@@ -88,7 +88,7 @@ env -u ALL_PROXY -u all_proxy python3 .claude/skills/eco-release/scripts/inspect
|
|
| 88 |
### 5. 页面
|
| 89 |
|
| 90 |
- 新发布落在已有模态时,页面代码一般不用改,只在预览里检查新名字的标记(`page.md` 第 4 节)。
|
| 91 |
-
- 官网
|
| 92 |
- 新模态按 `page.md` 第 2 节逐项改:org 的显示名、`CAT_ORDER`、颜色(用 dataviz 验证器检查)、`media.tsx`、背景和卡片视频。
|
| 93 |
- 页面风格跟 minimax.io 一致:亮色、会动的官方素材背景、白色卡片。
|
| 94 |
- 文案用英文,不加小字说明,不说 open source。
|
|
|
|
| 88 |
### 5. 页面
|
| 89 |
|
| 90 |
- 新发布落在已有模态时,页面代码一般不用改,只在预览里检查新名字的标记(`page.md` 第 4 节)。
|
| 91 |
+
- 跳转到官网是按模态挂的:语言挂 M Plan,视频和图像挂 H3 Family,新发布自动带上。新模态要不要挂、挂到哪,问用户后在 `web/src/lib/links.ts` 加一行(`page.md` 第 1.5 节)。
|
| 92 |
- 新模态按 `page.md` 第 2 节逐项改:org 的显示名、`CAT_ORDER`、颜色(用 dataviz 验证器检查)、`media.tsx`、背景和卡片视频。
|
| 93 |
- 页面风格跟 minimax.io 一致:亮色、会动的官方素材背景、白色卡片。
|
| 94 |
- 文案用英文,不加小字说明,不说 open source。
|
code/.claude/skills/eco-release/reference/page.md
CHANGED
|
@@ -22,18 +22,19 @@
|
|
| 22 |
- **Downloads 视图和标题总下载数**:按 `site.dl_total` 自动加进去。
|
| 23 |
- **网站图标**:`web/public/favicon.ico` 是官网的原图标,`icon.svg` 和 `apple-touch-icon.png` 是按它做的高清版。新发布不用动。
|
| 24 |
|
| 25 |
-
## 1.5 官网
|
| 26 |
|
| 27 |
-
`web/src/lib/links.ts` 的 `OFFICIAL_PAGE` 把
|
| 28 |
-
-
|
| 29 |
-
-
|
|
|
|
| 30 |
|
| 31 |
-
|
| 32 |
- 页面顶部导航(桌面端);
|
| 33 |
- Models 菜单底部的 "… on minimax.io";
|
| 34 |
-
-
|
| 35 |
|
| 36 |
-
新发布
|
| 37 |
|
| 38 |
## 2. 新模态要改的地方(缺一处就会出错)
|
| 39 |
|
|
|
|
| 22 |
- **Downloads 视图和标题总下载数**:按 `site.dl_total` 自动加进去。
|
| 23 |
- **网站图标**:`web/public/favicon.ico` 是官网的原图标,`icon.svg` 和 `apple-touch-icon.png` 是按它做的高清版。新发布不用动。
|
| 24 |
|
| 25 |
+
## 1.5 跳转到官网:按模态挂
|
| 26 |
|
| 27 |
+
`web/src/lib/links.ts` 的 `OFFICIAL_PAGE` 把**模态**映射到 minimax.io 上的页面(2026-11-24 用户定的):
|
| 28 |
+
- 所有语言模型(language)→ https://www.minimax.io/m-plan("M Plan")
|
| 29 |
+
- 所有视频和图像模型(video、image)→ https://www.minimax.io/h3-family("H3 Family")
|
| 30 |
+
- music 不挂
|
| 31 |
|
| 32 |
+
它出现在三个地方:
|
| 33 |
- 页面顶部导航(桌面端);
|
| 34 |
- Models 菜单底部的 "… on minimax.io";
|
| 35 |
+
- 该模态下每个发布页面标题下的半透明按钮,样式和官网首屏的按钮一样。
|
| 36 |
|
| 37 |
+
已有模态的新发布自动带上按钮,不用改。新模态要不要挂、挂到哪,先问用户。
|
| 38 |
|
| 39 |
## 2. 新模态要改的地方(缺一处就会出错)
|
| 40 |
|
code/web/src/lib/links.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
-
/** minimax.io's
|
| 2 |
-
*
|
|
|
|
| 3 |
export const OFFICIAL_PAGE: Record<string, { label: string; href: string }> = {
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
}
|
| 8 |
|
| 9 |
-
/** The same pages once each, for the menu and the header
|
| 10 |
-
|
|
|
|
|
|
|
|
|
| 1 |
+
/** minimax.io's page for a modality's models: every language release links to M Plan, every
|
| 2 |
+
* video and image release to the H3 Family page. Shown as a button on each release's page and
|
| 3 |
+
* in the header and Models menu. Keys are category keys (org.CATEGORY_NAME). */
|
| 4 |
export const OFFICIAL_PAGE: Record<string, { label: string; href: string }> = {
|
| 5 |
+
language: { label: "M Plan", href: "https://www.minimax.io/m-plan" },
|
| 6 |
+
video: { label: "H3 Family", href: "https://www.minimax.io/h3-family" },
|
| 7 |
+
image: { label: "H3 Family", href: "https://www.minimax.io/h3-family" },
|
| 8 |
}
|
| 9 |
|
| 10 |
+
/** The same pages once each, for the menu and the header (H3 Family first, as the video
|
| 11 |
+
* category leads the page). */
|
| 12 |
+
export const OFFICIAL_LINKS = [...new Map(["video", "image", "language"].map((c) => OFFICIAL_PAGE[c])
|
| 13 |
+
.map((l) => [l.href, l])).values()]
|
code/web/src/pages/category.tsx
CHANGED
|
@@ -66,12 +66,12 @@ export function CategoryPage({ site, cat, rel }: { site: Site; cat: string; rel:
|
|
| 66 |
</span>
|
| 67 |
</h1>
|
| 68 |
)}
|
| 69 |
-
{/*
|
| 70 |
-
{
|
| 71 |
-
<a href={OFFICIAL_PAGE[
|
| 72 |
className="mt-7 inline-flex h-11 items-center gap-1.5 rounded-[10px] bg-white/20 px-6 text-[16px] font-medium text-white backdrop-blur-sm transition-colors hover:bg-white/30 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white"
|
| 73 |
style={{ animation: "rise 700ms cubic-bezier(.22,.61,.36,1) 120ms both" }}>
|
| 74 |
-
{OFFICIAL_PAGE[
|
| 75 |
</a>
|
| 76 |
)}
|
| 77 |
{tabs.length > 1 && (
|
|
|
|
| 66 |
</span>
|
| 67 |
</h1>
|
| 68 |
)}
|
| 69 |
+
{/* minimax.io's page for this modality, set like the buttons under its hero there */}
|
| 70 |
+
{L && OFFICIAL_PAGE[cat] && (
|
| 71 |
+
<a href={OFFICIAL_PAGE[cat].href} target="_blank" rel="noopener"
|
| 72 |
className="mt-7 inline-flex h-11 items-center gap-1.5 rounded-[10px] bg-white/20 px-6 text-[16px] font-medium text-white backdrop-blur-sm transition-colors hover:bg-white/30 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white"
|
| 73 |
style={{ animation: "rise 700ms cubic-bezier(.22,.61,.36,1) 120ms both" }}>
|
| 74 |
+
{OFFICIAL_PAGE[cat].label}<ArrowUpRight className="size-4" />
|
| 75 |
</a>
|
| 76 |
)}
|
| 77 |
{tabs.length > 1 && (
|