🤖 Open-source, local-first alternative to Grok Bot, OpenAI dots and Claude Duet. Your own AI bots on any model: GPT, Claude, Gemini, Grok, DeepSeek, Kimi, GLM and 70+ more through one Modelflare key. Reach them in the app, WeChat or Feishu; they remember you, work in the background, run commands and use your computer. Pay per use.
Python ai-agentai-assistantchatbotclaudecomputer-usedeepseekdesktop-appdshelectronfeishugeminigptgrokllmlocal-firstmodelflaremulti-modelopenai-compatiblepersonal-ai-agentwechat
feat(site): 下载页改成紧凑的四行列表,加首次运行提示
dyk98420d95b04ff6
diff --git a/site/src/i18n/en.ts b/site/src/i18n/en.tsindex 54ec844..b837201 100644--- a/site/src/i18n/en.ts+++ b/site/src/i18n/en.ts@@ -412,12 +412,14 @@ export const en: Dict = {items: { "win-x64": "Windows installer (NSIS)", "mac-arm64": "macOS Apple silicon", "mac-x64": "macOS Intel", "linux-x64": "Linux AppImage", docker: "Docker command", changelog: "Changelog" },platform: { "win-x64": "Windows", "mac-arm64": "macOS", "mac-x64": "macOS", "linux-x64": "Linux" },arch: { "win-x64": "x64", "mac-arm64": "Apple silicon", "mac-x64": "Intel", "linux-x64": "x64 · AppImage" },- meta: "Version {version} · {sizeMB} MB · Published {publishedAt}",+ meta: "Version {version} · Published {publishedAt}",sha: "SHA-256",started: "Download started — check your browser's downloads.",downloading: "Downloading…",macNote: "Computer use on macOS is in beta: its direct mode still needs testing on more real machines. The rest of the app is the same as on Windows and Linux.",linuxHint: "chmod +x anymodel-bot-*.AppImage && ./anymodel-bot-*.AppImage",+ winHint: "If Windows warns you, choose More info, then Run anyway.",+ macHint: "If macOS blocks it, go to System Settings > Privacy & Security and choose Open Anyway.",verifyTitle: "Verify your download",verifyUnixLabel: "macOS / Linux",verifyWin: "Get-FileHash .\\<file> -Algorithm SHA256",diff --git a/site/src/i18n/zh.ts b/site/src/i18n/zh.tsindex 48f2d20..efa53a3 100644--- a/site/src/i18n/zh.ts+++ b/site/src/i18n/zh.ts@@ -415,12 +415,14 @@ export const zh = {items: { "win-x64": "Windows 安装包(NSIS)", "mac-arm64": "macOS Apple 芯片", "mac-x64": "macOS Intel", "linux-x64": "Linux AppImage", docker: "Docker 命令", changelog: "更新日志" },platform: { "win-x64": "Windows", "mac-arm64": "macOS", "mac-x64": "macOS", "linux-x64": "Linux" },arch: { "win-x64": "x64", "mac-arm64": "Apple 芯片", "mac-x64": "Intel", "linux-x64": "x64 · AppImage" },- meta: "版本 {version} · {sizeMB} MB · 发布于 {publishedAt}",+ meta: "版本 {version} · 发布于 {publishedAt}",sha: "SHA-256",started: "已开始下载,可在浏览器下载列表查看。",downloading: "正在下载…",macNote: "macOS 上的电脑操作目前为 Beta:直连模式还要在更多真机上验证。其余功能和 Windows、Linux 版一样。",linuxHint: "chmod +x anymodel-bot-*.AppImage && ./anymodel-bot-*.AppImage",+ winHint: "系统提示风险时,点「更多信息 → 仍要运行」。",+ macHint: "系统拦截时,到「系统设置 → 隐私与安全性」点「仍要打开」。",verifyTitle: "校验下载",verifyUnixLabel: "macOS / Linux",verifyWin: "Get-FileHash .\\<文件> -Algorithm SHA256",diff --git a/site/src/styles/pages.css b/site/src/styles/pages.cssindex e9bf4df..898d04f 100644--- a/site/src/styles/pages.css+++ b/site/src/styles/pages.css@@ -2,20 +2,48 @@/* 附属页的专用版式:下载、安全说明、开源许可、404。页面骨架(.page、.page__head、.page__section)在 components.css。 */@layer app {/* —— 下载 —— */- .dl-page { position: relative; }- .dl-page__mark { position: absolute; top: clamp(48px, 8vw, 96px); right: 0; }- .dl-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }- .dl-cards > * { min-width: 0; }- .dl-card { display: grid; align-content: start; gap: 12px; transition: box-shadow var(--dur-base) var(--ease-out); }- .dl-card[data-dl-recommended] { box-shadow: inset 0 0 0 1.5px var(--accent-fg), var(--card-shadow); }- .dl-card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }- .dl-card__head .muted { font-weight: 400; }- .dl-card > .btn { justify-self: start; }- .dl-card__label { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); margin-bottom: -4px; }- .dl-verify { display: grid; gap: 12px; margin: 0; }- .dl-verify > div { display: grid; gap: 6px; }+ /* 平台是一张卡片里的四行:名称、完整校验值、大小、下载,第二行放首次运行的提示。识别出的平台描边,按钮换成主按钮(DownloadView 的脚本)。+ 校验值在桌面上能完整显示;窄屏放不下时截断,复制按钮拿到的还是完整的值 */+ .dl-page { position: relative; padding-block: clamp(32px, 4vw, 48px); }+ .dl-page__mark { position: absolute; top: clamp(32px, 4vw, 48px); right: 0; }+ .dl-page .page__head { gap: 8px; margin-bottom: 20px; padding-right: 80px; }+ .dl-page h1 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; }+ .dl-page .lead { font-size: var(--fs-body); }+ .dl-page .code { align-items: center; gap: 8px; padding: 3px 3px 3px 10px; border-radius: var(--r-item); }+ .dl-page .code code { padding-top: 0; }+ .dl-page .copy-btn { height: 26px; padding: 0 6px; box-shadow: none; }+ .dl-page .warnbar { padding: 6px 10px; font-size: var(--fs-xs); }++ .card.dl-rows { display: grid; padding: 6px; }+ .dl-row { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(0, 600px) 72px auto; grid-template-areas: "name sha size btn" "hint hint hint btn"; align-items: center; gap: 4px 16px; padding: 10px 14px; border-radius: var(--r-field); }+ .dl-row + .dl-row { box-shadow: 0 -1px 0 var(--line); }+ .dl-row[data-dl-recommended] { box-shadow: inset 0 0 0 1.5px var(--accent-fg); }+ .dl-row__name { grid-area: name; font-size: var(--fs-body-sm); font-weight: 600; line-height: 1.3; letter-spacing: 0; }+ .dl-row__name .muted { font-weight: 400; }+ .dl-row__sha { grid-area: sha; }+ .dl-row__sha code { font-size: 12px; }+ .dl-row .code code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+ .dl-row__size { grid-area: size; text-align: right; white-space: nowrap; }+ .dl-row__btn { grid-area: btn; }+ .dl-row__hint { grid-area: hint; }+ .code.dl-row__hint { justify-self: start; max-width: 100%; }++ /* 校验、Docker、命令行、发布页:次要信息,两栏排,小标题 */+ .dl-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; margin-top: 28px; }+ .dl-more > section { display: grid; align-content: start; gap: 8px; }+ .dl-more h2 { font-size: var(--fs-body-sm); font-weight: 600; line-height: 1.3; letter-spacing: 0; }+ .dl-verify { display: grid; gap: 6px; margin: 0; }+ .dl-verify > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 8px; }.dl-verify dd { margin: 0; }- @media (max-width: 767px) { .dl-cards { grid-template-columns: 1fr; } .dl-page__mark { display: none; } }++ @media (max-width: 1023px) {+ .dl-row { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name size btn" "sha sha sha" "hint hint hint"; gap: 6px 12px; }+ }+ @media (max-width: 767px) {+ .dl-more { grid-template-columns: minmax(0, 1fr); }+ .dl-page__mark { display: none; }+ .dl-page .page__head { padding-right: 0; }+ }/* —— 安全说明:对照表里 AnyModelBot 一列用正文色,最后两行(出网、可审计)加重 —— */.compare td:nth-child(2) { color: var(--text); }diff --git a/site/src/views/DownloadView.astro b/site/src/views/DownloadView.astroindex 2c98299..6b00fdb 100644--- a/site/src/views/DownloadView.astro+++ b/site/src/views/DownloadView.astro@@ -19,67 +19,71 @@ const mono = (x: string | number) => `<span class="mono">${String(x).replace(/[&---<Base lang={lang} path="/download" title={`${d.pageTitle} — AnyModelBot`} description={d.pageDescription}><div class="container page dl-page">- <EyesMark size={96} class="dl-page__mark" lookAt="[data-dl-recommended]" />+ <EyesMark size={64} class="dl-page__mark" lookAt="[data-dl-recommended]" /><header class="page__head"><h1>{d.pageTitle}</h1><p class="lead">{d.pageLead}</p>+ <p class="small muted" set:html={fmt(d.meta, { version: mono(releases.version), publishedAt: mono(published) })} />{t.hero.appUiNote && <p class="small muted">{t.hero.appUiNote}</p>}</header>- <ul class="dl-cards" role="list" data-placement="download-page">+ <ul class="card dl-rows" role="list" data-placement="download-page">{PLATFORMS.map((p) => {const b = releases.platforms[p];return (- <li class="card dl-card" data-dl-card={p}>- <div class="dl-card__head">- <h2 class="h3">{d.platform[p]} <span class="muted">· {d.arch[p]}</span></h2>- </div>- <a class="btn btn--primary" href={b.url} download data-dl-platform={p} data-on="accent"><Icon name="download" />{d.items[p]}</a>- <p class="small muted" set:html={fmt(d.meta, { version: mono(releases.version), sizeMB: mono(b.sizeMB), publishedAt: mono(published) })} />- <p class="small muted dl-card__label">{d.sha}</p>- <div class="code"><code data-dl-sha>{b.sha256}</code><button type="button" class="copy-btn" data-copy-code><Icon name="copy" />{t.ui.copy}</button></div>- {p.startsWith("linux") && <div class="code"><code>{d.linuxHint}</code><button type="button" class="copy-btn" data-copy-code><Icon name="copy" />{t.ui.copy}</button></div>}+ <li class="dl-row" data-dl-card={p}>+ <h2 class="dl-row__name">{d.platform[p]} <span class="muted">· {d.arch[p]}</span></h2>+ <div class="code dl-row__sha"><span class="small muted">{d.sha}</span><code data-dl-sha>{b.sha256}</code><button type="button" class="copy-btn" data-copy-code aria-label={t.ui.copy} title={t.ui.copy}><Icon name="copy" /></button></div>+ <span class="small muted mono dl-row__size">{b.sizeMB} MB</span>+ <a class="btn btn--secondary btn--sm dl-row__btn" href={b.url} download data-dl-platform={p} aria-label={`${d.generic} ${d.items[p]}`}><Icon name="download" />{d.generic}</a>+ {p.startsWith("linux") && <div class="code dl-row__hint"><code>{d.linuxHint}</code><button type="button" class="copy-btn" data-copy-code aria-label={t.ui.copy} title={t.ui.copy}><Icon name="copy" /></button></div>}+ {p.startsWith("win") && <p class="small muted dl-row__hint">{d.winHint}</p>}+ {p.startsWith("mac") && <p class="small muted dl-row__hint">{d.macHint}</p>}</li>);})}</ul><p class="small muted page__aside">{d.macNote}</p>- <section class="page__section" aria-labelledby="verify-h">- <h2 id="verify-h">{d.verifyTitle}</h2>- <dl class="dl-verify">- {verify.map((x) => (- <div>- <dt class="small muted">{x.label}</dt>- <dd class="code"><code>{x.cmd}</code><button type="button" class="copy-btn" data-copy-code><Icon name="copy" />{t.ui.copy}</button></dd>- </div>- ))}- </dl>- </section>+ <div class="dl-more">+ <section aria-labelledby="verify-h">+ <h2 id="verify-h">{d.verifyTitle}</h2>+ <dl class="dl-verify">+ {verify.map((x) => (+ <div>+ <dt class="small muted">{x.label}</dt>+ <dd class="code"><code>{x.cmd}</code><button type="button" class="copy-btn" data-copy-code aria-label={t.ui.copy} title={t.ui.copy}><Icon name="copy" /></button></dd>+ </div>+ ))}+ </dl>+ </section>- <section class="page__section" id="docker" aria-labelledby="docker-h">- <h2 id="docker-h">{d.dockerTitle}</h2>- <div class="code"><code>{releases.platforms.docker.command}</code><button type="button" class="copy-btn" data-copy-code data-track="docker_cmd_copy" data-track-command="docker-run"><Icon name="copy" />{t.ui.copy}</button></div>- <p class="small muted">{d.dockerToken}</p>- <p class="warnbar"><b>⚠</b><span>{d.warn}</span></p>- </section>+ <section id="docker" aria-labelledby="docker-h">+ <h2 id="docker-h">{d.dockerTitle}</h2>+ <div class="code"><code>{releases.platforms.docker.command}</code><button type="button" class="copy-btn" data-copy-code data-track="docker_cmd_copy" data-track-command="docker-run" aria-label={t.ui.copy} title={t.ui.copy}><Icon name="copy" /></button></div>+ <p class="small muted">{d.dockerToken}</p>+ <p class="warnbar"><b>⚠</b><span>{d.warn}</span></p>+ </section>- <section class="page__section" aria-labelledby="cli-h">- <h2 id="cli-h">{d.cliTitle}</h2>- <p>{d.cliBody}</p>- </section>+ <section aria-labelledby="cli-h">+ <h2 id="cli-h">{d.cliTitle}</h2>+ <p class="small muted">{d.cliBody}</p>+ </section>- <section class="page__section" aria-labelledby="rel-h">- <h2 id="rel-h">{d.releases}</h2>- <p><a href={`${GITHUB_URL}/releases`} target="_blank" rel="noopener">{GITHUB_URL}/releases</a> · <a href={href(lang, "/changelog")}>{d.changelog}</a></p>- </section>+ <section aria-labelledby="rel-h">+ <h2 id="rel-h">{d.releases}</h2>+ <p class="small"><a href={`${GITHUB_URL}/releases`} target="_blank" rel="noopener">{GITHUB_URL}/releases</a> · <a href={href(lang, "/changelog")}>{d.changelog}</a></p>+ </section>+ </div></div><script>- // 推荐平台的卡片:给 Eyes 标记一个看的目标,卡片描边高亮+ // 推荐平台的那一行:给 Eyes 标记一个看的目标,描边高亮,下载按钮换成主按钮import { detectPlatform } from "../lib/platform";detectPlatform().then((p) => {const id = p.os === "win" ? "win-x64" : p.os === "mac" ? (p.arch === "x64" ? "mac-x64" : "mac-arm64") : p.os === "linux" ? "linux-x64" : null;- if (id) document.querySelector(`[data-dl-card="${id}"]`)?.setAttribute("data-dl-recommended", "");+ const row = id ? document.querySelector(`[data-dl-card="${id}"]`) : null;+ row?.setAttribute("data-dl-recommended", "");+ row?.querySelector(".btn")?.classList.replace("btn--secondary", "btn--primary");});</script></Base>