saladday1 commited on
Commit
3c90ca7
·
verified ·
1 Parent(s): a4eeb31

code: sync from git

Browse files
code/.claude/skills/eco-release/SKILL.md CHANGED
@@ -88,6 +88,7 @@ env -u ALL_PROXY -u all_proxy python3 .claude/skills/eco-release/scripts/inspect
88
  ### 5. 页面
89
 
90
  - 新发布落在已有模态时,页面代码一般不用改,只在预览里检查新名字的标记(`page.md` 第 4 节)。
 
91
  - 新模态按 `page.md` 第 2 节逐项改:org 的显示名、`CAT_ORDER`、颜色(用 dataviz 验证器检查)、`media.tsx`、背景和卡片视频。
92
  - 页面风格跟 minimax.io 一致:亮色、会动的官方素材背景、白色卡片。
93
  - 文案用英文,不加小字说明,不说 open source。
 
88
  ### 5. 页面
89
 
90
  - 新发布落在已有模态时,页面代码一般不用改,只在预览里检查新名字的标记(`page.md` 第 4 节)。
91
+ - 官网有它的专页(像 H3 Family、M Plan)时,在 `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
@@ -20,6 +20,20 @@
20
  - **Models 下拉菜单、模态块、分类页 tab**:分类页 tab 要等社区模型满 `org.PAGE_MIN = 10` 个才出现。不到 10 个时,卡片点开去 HF;数据每天都在算,满了自动出 tab。
21
  - **首页模态顺序**:video 固定第一,其余按社区规模排(`org.build` 里的 `cats`)。
22
  - **Downloads 视图和标题总下载数**:按 `site.dl_total` 自动加进去。
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
  ## 2. 新模态要改的地方(缺一处就会出错)
25
 
 
20
  - **Models 下拉菜单、模态块、分类页 tab**:分类页 tab 要等社区模型满 `org.PAGE_MIN = 10` 个才出现。不到 10 个时,卡片点开去 HF;数据每天都在算,满了自动出 tab。
21
  - **首页模态顺序**:video 固定第一,其余按社区规模排(`org.build` 里的 `cats`)。
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` 把发布 key 映射到 minimax.io 上的专页。现在有三条:
28
+ - h3、h3-image → https://www.minimax.io/h3-family(显示为 "H3 Family")
29
+ - m3 → https://www.minimax.io/m-plan(显示为 "M Plan")
30
+
31
+ 加一行就会自动出现在三个地方:
32
+ - 页面顶部导航(桌面端);
33
+ - Models 菜单底部的 "… on minimax.io";
34
+ - 这个发布页面标题下的半透明按钮,样式和官网首屏的按钮一样。
35
+
36
+ 新发布有没有官网专页、该链到哪,先问用户,不要猜。
37
 
38
  ## 2. 新模态要改的地方(缺一处就会出错)
39
 
code/web/index.html CHANGED
@@ -5,8 +5,11 @@
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
6
  <title>MiniMax Ecosystem</title>
7
  <meta name="description" content="Community models built on MiniMax open models, updated daily." />
8
- <meta name="theme-color" content="#0b0b10" />
9
- <link rel="icon" href="data:," />
 
 
 
10
  </head>
11
  <body>
12
  <div id="root"></div>
 
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
6
  <title>MiniMax Ecosystem</title>
7
  <meta name="description" content="Community models built on MiniMax open models, updated daily." />
8
+ <meta name="theme-color" content="#181E25" />
9
+ <!-- minimax.io's favicon (as on its H3 Family page), with a vector copy for sharp screens -->
10
+ <link rel="icon" href="/favicon.ico" sizes="32x32" />
11
+ <link rel="icon" href="/icon.svg" type="image/svg+xml" />
12
+ <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
13
  </head>
14
  <body>
15
  <div id="root"></div>
code/web/public/apple-touch-icon.png ADDED

Git LFS Details

  • SHA256: 3fe2cd9dc913ba327d208162cf349d5643344b97b6239b0e2093df4b773b1dab
  • Pointer size: 129 Bytes
  • Size of remote file: 4.45 kB
code/web/public/favicon.ico ADDED
code/web/public/icon.svg ADDED
code/web/src/components/site-header.tsx CHANGED
@@ -8,6 +8,7 @@ import { catColor } from "@/lib/category"
8
  import { full } from "@/lib/format"
9
  import { href } from "@/lib/route"
10
  import { Logo } from "@/components/logo"
 
11
 
12
  /** Sits on the hero video of every page: the MiniMax logo home, and every model page in a menu. */
13
  export function SiteHeader({ site }: { site: Site }) {
@@ -17,8 +18,18 @@ export function SiteHeader({ site }: { site: Site }) {
17
  <a href={href()} className="-m-1.5 rounded-lg p-1.5 text-white focus-visible:outline-2 focus-visible:outline-white">
18
  <Logo className="h-8 w-auto sm:h-9" />
19
  </a>
 
 
 
 
 
 
 
 
 
 
20
  <DropdownMenu modal={false}>
21
- <DropdownMenuTrigger className="group inline-flex h-10 items-center gap-1.5 rounded-full bg-white px-4.5 text-[15px] font-medium text-[#171717] transition-colors hover:bg-border5 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white data-[state=open]:bg-border5">
22
  Models
23
  <ChevronDown className="size-4 transition-transform duration-200 group-data-[state=open]:rotate-180" />
24
  </DropdownMenuTrigger>
@@ -50,13 +61,17 @@ export function SiteHeader({ site }: { site: Site }) {
50
  })}
51
  <DropdownMenuSeparator className="my-1.5 bg-border" />
52
  <DropdownMenuLabel className="sr-only">Elsewhere</DropdownMenuLabel>
53
- <DropdownMenuItem asChild className="rounded-lg px-2.5 py-2 text-[15px] text-foreground/80 focus:bg-muted focus:text-foreground">
54
- <a href="https://huggingface.co/MiniMaxAI" target="_blank" rel="noopener" className="flex items-center gap-2">
55
- MiniMaxAI on Hugging Face <ArrowUpRight className="ml-auto size-4 text-muted-foreground" />
56
- </a>
57
- </DropdownMenuItem>
 
 
 
58
  </DropdownMenuContent>
59
  </DropdownMenu>
 
60
  </header>
61
  )
62
  }
 
8
  import { full } from "@/lib/format"
9
  import { href } from "@/lib/route"
10
  import { Logo } from "@/components/logo"
11
+ import { OFFICIAL_LINKS } from "@/lib/links"
12
 
13
  /** Sits on the hero video of every page: the MiniMax logo home, and every model page in a menu. */
14
  export function SiteHeader({ site }: { site: Site }) {
 
18
  <a href={href()} className="-m-1.5 rounded-lg p-1.5 text-white focus-visible:outline-2 focus-visible:outline-white">
19
  <Logo className="h-8 w-auto sm:h-9" />
20
  </a>
21
+ <div className="flex items-center gap-1 sm:gap-2">
22
+ {/* minimax.io's pages for the releases that have one, as its own header lists them */}
23
+ <nav aria-label="On minimax.io" className="hidden items-center gap-1 md:flex">
24
+ {OFFICIAL_LINKS.map((l) => (
25
+ <a key={l.href} href={l.href} target="_blank" rel="noopener"
26
+ className="inline-flex h-10 items-center gap-1 rounded-full px-3.5 text-[15px] font-medium text-white transition-colors hover:bg-white/15 focus-visible:outline-2 focus-visible:outline-white">
27
+ {l.label}<ArrowUpRight className="size-4 opacity-80" />
28
+ </a>
29
+ ))}
30
+ </nav>
31
  <DropdownMenu modal={false}>
32
+ <DropdownMenuTrigger className="group inline-flex h-10 items-center gap-1.5 rounded-full bg-white px-4.5 text-[15px] font-medium text-[#171717] transition-colors hover:bg-white/85 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white data-[state=open]:bg-white/85">
33
  Models
34
  <ChevronDown className="size-4 transition-transform duration-200 group-data-[state=open]:rotate-180" />
35
  </DropdownMenuTrigger>
 
61
  })}
62
  <DropdownMenuSeparator className="my-1.5 bg-border" />
63
  <DropdownMenuLabel className="sr-only">Elsewhere</DropdownMenuLabel>
64
+ {[...OFFICIAL_LINKS.map((l) => ({ label: `${l.label} on minimax.io`, href: l.href })),
65
+ { label: "MiniMaxAI on Hugging Face", href: "https://huggingface.co/MiniMaxAI" }].map((l) => (
66
+ <DropdownMenuItem key={l.href} asChild className="rounded-lg px-2.5 py-2 text-[15px] text-foreground/80 focus:bg-muted focus:text-foreground">
67
+ <a href={l.href} target="_blank" rel="noopener" className="flex items-center gap-2">
68
+ {l.label} <ArrowUpRight className="ml-auto size-4 text-muted-foreground" />
69
+ </a>
70
+ </DropdownMenuItem>
71
+ ))}
72
  </DropdownMenuContent>
73
  </DropdownMenu>
74
+ </div>
75
  </header>
76
  )
77
  }
code/web/src/lib/links.ts ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ /** minimax.io's own page for a release, where there is one: a button on the release's page and
2
+ * an entry in the Models menu. Keys are release keys (org.RELEASES). */
3
+ export const OFFICIAL_PAGE: Record<string, { label: string; href: string }> = {
4
+ h3: { label: "H3 Family", href: "https://www.minimax.io/h3-family" },
5
+ "h3-image": { label: "H3 Family", href: "https://www.minimax.io/h3-family" },
6
+ m3: { label: "M Plan", href: "https://www.minimax.io/m-plan" },
7
+ }
8
+
9
+ /** The same pages once each, for the menu and the header. */
10
+ export const OFFICIAL_LINKS = [...new Map(Object.values(OFFICIAL_PAGE).map((l) => [l.href, l])).values()]
code/web/src/pages/category.tsx CHANGED
@@ -8,6 +8,7 @@ import { SiteHeader } from "@/components/site-header"
8
  import { CountUp, Panel, Section, Stat } from "@/components/layout"
9
  import { TitleLockup } from "@/components/lockup"
10
  import { HeroVideo } from "@/components/media"
 
11
  import { GrowthLines, WeeklyBars } from "@/components/growth"
12
  import { DailyLines } from "@/components/daily"
13
  import { DownloadHistory } from "@/components/downloads"
@@ -39,7 +40,8 @@ export function CategoryPage({ site, cat, rel }: { site: Site; cat: string; rel:
39
  const builders = useMemo(() => new Set(repos.map((r) => r.id.split("/")[0])).size, [repos])
40
 
41
  useEffect(() => {
42
- document.title = release ? `${release.name} · MiniMax Ecosystem` : "MiniMax Ecosystem"
 
43
  }, [release])
44
 
45
  if (!c) return null
@@ -64,6 +66,14 @@ export function CategoryPage({ site, cat, rel }: { site: Site; cat: string; rel:
64
  </span>
65
  </h1>
66
  )}
 
 
 
 
 
 
 
 
67
  {tabs.length > 1 && (
68
  <nav className="-mx-4 mt-8 flex gap-2 overflow-x-auto px-4 pb-1 [scrollbar-width:none] sm:mx-0 sm:flex-wrap sm:justify-center sm:px-0 [&::-webkit-scrollbar]:hidden">
69
  {tabs.map((r) => {
 
8
  import { CountUp, Panel, Section, Stat } from "@/components/layout"
9
  import { TitleLockup } from "@/components/lockup"
10
  import { HeroVideo } from "@/components/media"
11
+ import { OFFICIAL_PAGE } from "@/lib/links"
12
  import { GrowthLines, WeeklyBars } from "@/components/growth"
13
  import { DailyLines } from "@/components/daily"
14
  import { DownloadHistory } from "@/components/downloads"
 
40
  const builders = useMemo(() => new Set(repos.map((r) => r.id.split("/")[0])).size, [repos])
41
 
42
  useEffect(() => {
43
+ // as minimax.io titles its pages ("MiniMax H3 · H3 Family")
44
+ document.title = release ? `${release.name.replace(/-/g, " ")} · MiniMax Ecosystem` : "MiniMax Ecosystem"
45
  }, [release])
46
 
47
  if (!c) return null
 
66
  </span>
67
  </h1>
68
  )}
69
+ {/* the release's own page on minimax.io, set like the buttons under its hero there */}
70
+ {lineage && OFFICIAL_PAGE[lineage] && (
71
+ <a href={OFFICIAL_PAGE[lineage].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[lineage].label}<ArrowUpRight className="size-4" />
75
+ </a>
76
+ )}
77
  {tabs.length > 1 && (
78
  <nav className="-mx-4 mt-8 flex gap-2 overflow-x-auto px-4 pb-1 [scrollbar-width:none] sm:mx-0 sm:flex-wrap sm:justify-center sm:px-0 [&::-webkit-scrollbar]:hidden">
79
  {tabs.map((r) => {