mirror of
https://github.com/TommyFang2077/dsh-desktop.git
synced 2026-08-18 05:16:35 +08:00
- bundle dshmarket 1.10.1; drop the duplicate vision settings section (modlens card is the single config surface) - embed the updater signing public key in every build (Makefile / CI / Flatpak); in-app updates now actually run - structured release notes per version: docs/release-notes/v<version>.md feeds GitHub, Gitea and the in-app update panel - gate releases on the notes file; Gitea publish reads/patches the same body
116 lines
4.4 KiB
HTML
116 lines
4.4 KiB
HTML
<!doctype html>
|
||
<html lang="zh-CN" class="dsh-desktop-offset">
|
||
<head>
|
||
<meta charset="utf-8" />
|
||
<title>视觉引擎(ModLens)</title>
|
||
<link rel="stylesheet" href="chrome.css" />
|
||
<style>
|
||
:root {
|
||
--bg: #f6f6f8;
|
||
--sidebar: #efeff2;
|
||
--text: #1d1d1f;
|
||
--muted: #86868b;
|
||
--line: rgba(0,0,0,0.08);
|
||
--accent: #0071e3;
|
||
--card: #ffffff;
|
||
--ok: #248a3d;
|
||
}
|
||
html, body {
|
||
margin: 0; width: 1280px; height: 800px; overflow: hidden;
|
||
background: var(--bg); color: var(--text);
|
||
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
|
||
-webkit-font-smoothing: antialiased;
|
||
}
|
||
.shell {
|
||
display: grid;
|
||
grid-template-columns: 220px 1fr;
|
||
height: calc(800px - 36px);
|
||
}
|
||
.nav {
|
||
background: var(--sidebar);
|
||
border-right: 0.5px solid var(--line);
|
||
padding: 22px 12px;
|
||
}
|
||
.nav h2 { margin: 0 10px 16px; font-size: 18px; font-weight: 600; }
|
||
.nav a {
|
||
display: block; padding: 8px 12px; border-radius: 8px;
|
||
color: var(--text); text-decoration: none; font-size: 13px;
|
||
}
|
||
.nav a.active { background: #fff; font-weight: 600; }
|
||
.nav a.muted { color: var(--muted); }
|
||
.content { padding: 28px 40px; overflow: hidden; }
|
||
.content h1 { margin: 0 0 6px; font-size: 22px; font-weight: 600; }
|
||
.lead { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
|
||
.dshdv { width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 14px; }
|
||
.dshdv h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 22px; }
|
||
.dshdv p { margin: 0; color: var(--muted); font-size: 13px; line-height: 20px; }
|
||
.dshdv label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #6e6e73; }
|
||
.dshdv .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
|
||
.dshdv a { color: var(--accent); text-decoration: none; font-size: 12px; }
|
||
.dshdv input, .dshdv select {
|
||
height: 36px; border: 1px solid var(--line); background: var(--card);
|
||
color: var(--text); border-radius: 8px; padding: 0 12px; font: inherit;
|
||
}
|
||
.dshdv button {
|
||
align-self: flex-start; height: 32px; padding: 0 14px; border: 0;
|
||
border-radius: 8px; background: var(--accent); color: #fff; font: inherit;
|
||
}
|
||
.dshdv .ok { color: var(--ok); }
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<header id="dsh-desktop-titlebar">
|
||
<button class="more" type="button">•••</button>
|
||
<div class="menu"></div>
|
||
<div class="drag"></div>
|
||
<div class="traffic">
|
||
<button class="tl min"></button>
|
||
<button class="tl zoom"></button>
|
||
<button class="tl close"></button>
|
||
</div>
|
||
</header>
|
||
<div class="shell">
|
||
<nav class="nav">
|
||
<h2>设置</h2>
|
||
<a class="muted" href="#">通用</a>
|
||
<a class="muted" href="#">模型</a>
|
||
<a class="muted" href="#">语音输入</a>
|
||
<a class="active" href="#">插件</a>
|
||
<a class="muted" href="#">技能</a>
|
||
</nav>
|
||
<section class="content">
|
||
<h1>插件 · 插件配置</h1>
|
||
<p class="lead">视觉引擎(ModLens)由 modlens 插件提供 · 写入 ~/.modlens/config.json</p>
|
||
<div class="dshdv">
|
||
<h3>视觉引擎(ModLens)</h3>
|
||
<p>纯文本对话模型读图时使用这里的引擎。已声明视觉能力的模型(如 Qwen)不会走这条桥。</p>
|
||
<label>
|
||
引擎
|
||
<select>
|
||
<option selected>OpenAI 兼容</option>
|
||
<option>Gemini API</option>
|
||
<option>Anthropic</option>
|
||
<option>Antigravity CLI</option>
|
||
<option>Claude CLI</option>
|
||
</select>
|
||
</label>
|
||
<label>
|
||
接口地址
|
||
<input value="https://api.openai.com/v1" />
|
||
</label>
|
||
<label>
|
||
<span class="head">API 密钥 <a href="#">获取 API</a></span>
|
||
<input type="password" value="sk-••••••••••••••••" />
|
||
</label>
|
||
<label>
|
||
视觉模型
|
||
<input value="" placeholder="例如 gpt-4o" />
|
||
</label>
|
||
<button type="button">保存</button>
|
||
<p class="ok">已保存</p>
|
||
</div>
|
||
</section>
|
||
</div>
|
||
</body>
|
||
</html>
|