|
@@ -43,9 +43,15 @@
|
|
|
|
|
|
|
|
<!-- 内容面板 -->
|
|
<!-- 内容面板 -->
|
|
|
<div class="tab-content">
|
|
<div class="tab-content">
|
|
|
- <!-- 常用网址:设置中配置,点击卡片在浏览器打开 -->
|
|
|
|
|
|
|
+ <!-- 常用网址:设置中配置(支持分组),点击卡片在浏览器打开;可勾选后一键打开 -->
|
|
|
<div class="tab-panel active" id="tab-links">
|
|
<div class="tab-panel active" id="tab-links">
|
|
|
- <div class="card-grid" id="links-grid"></div>
|
|
|
|
|
|
|
+ <div class="panel-head links-head">
|
|
|
|
|
+ <div class="panel-head-actions">
|
|
|
|
|
+ <button class="btn-ghost" id="links-select-all" title="全选 / 取消全选所有网址">全选</button>
|
|
|
|
|
+ <button class="btn-primary" id="links-open-selected" title="一键打开已勾选的网址">一键打开</button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="links-body" id="links-grid"></div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 新闻:煎蛋 + 热榜(澎湃/知乎/微信/今日头条优先),命中关键词的排在前面并高亮 -->
|
|
<!-- 新闻:煎蛋 + 热榜(澎湃/知乎/微信/今日头条优先),命中关键词的排在前面并高亮 -->
|
|
@@ -57,7 +63,7 @@
|
|
|
<div class="panel-head-actions">
|
|
<div class="panel-head-actions">
|
|
|
<span class="github-refresh-time" id="news-refresh-time" title="最后一次成功刷新的时间"></span>
|
|
<span class="github-refresh-time" id="news-refresh-time" title="最后一次成功刷新的时间"></span>
|
|
|
<button class="btn-ghost" id="news-read" title="朗读未点击过的新闻标题">阅读</button>
|
|
<button class="btn-ghost" id="news-read" title="朗读未点击过的新闻标题">阅读</button>
|
|
|
- <button class="btn-ghost" id="news-refresh">刷新</button>
|
|
|
|
|
|
|
+ <button class="btn-ghost" id="news-refresh"><svg class="btn-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="23 4 23 10 17 10"/><polyline points="1 20 1 14 7 14"/><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"/></svg>刷新</button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="news-list" id="news-list">
|
|
<div class="news-list" id="news-list">
|
|
@@ -74,7 +80,7 @@
|
|
|
<div class="panel-head">
|
|
<div class="panel-head">
|
|
|
<div class="panel-head-actions">
|
|
<div class="panel-head-actions">
|
|
|
<span class="github-refresh-time" id="github-refresh-time" title="最后一次成功刷新的时间"></span>
|
|
<span class="github-refresh-time" id="github-refresh-time" title="最后一次成功刷新的时间"></span>
|
|
|
- <button class="btn-ghost" id="github-refresh">刷新</button>
|
|
|
|
|
|
|
+ <button class="btn-ghost" id="github-refresh"><svg class="btn-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="23 4 23 10 17 10"/><polyline points="1 20 1 14 7 14"/><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"/></svg>刷新</button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="repo-list" id="repo-list">
|
|
<div class="repo-list" id="repo-list">
|
|
@@ -88,7 +94,7 @@
|
|
|
<div class="trending-head">
|
|
<div class="trending-head">
|
|
|
<h3 class="trending-title">热门仓库 <span class="trending-sub">GitHub Trending</span></h3>
|
|
<h3 class="trending-title">热门仓库 <span class="trending-sub">GitHub Trending</span></h3>
|
|
|
<span class="github-refresh-time" id="trending-refresh-time" title="最后一次成功刷新的时间"></span>
|
|
<span class="github-refresh-time" id="trending-refresh-time" title="最后一次成功刷新的时间"></span>
|
|
|
- <button class="btn-ghost" id="trending-refresh">刷新</button>
|
|
|
|
|
|
|
+ <button class="btn-ghost" id="trending-refresh"><svg class="btn-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="23 4 23 10 17 10"/><polyline points="1 20 1 14 7 14"/><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"/></svg>刷新</button>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="trending-list" id="trending-list">
|
|
<div class="trending-list" id="trending-list">
|
|
|
<div class="empty-state">
|
|
<div class="empty-state">
|
|
@@ -106,7 +112,7 @@
|
|
|
<div class="panel-head-actions">
|
|
<div class="panel-head-actions">
|
|
|
<span class="market-status" id="market-status"><span class="dot"></span>加载中…</span>
|
|
<span class="market-status" id="market-status"><span class="dot"></span>加载中…</span>
|
|
|
<span class="github-refresh-time" id="stock-refresh-time" title="最后一次成功刷新的时间"></span>
|
|
<span class="github-refresh-time" id="stock-refresh-time" title="最后一次成功刷新的时间"></span>
|
|
|
- <button class="btn-ghost" id="stock-refresh">刷新</button>
|
|
|
|
|
|
|
+ <button class="btn-ghost" id="stock-refresh"><svg class="btn-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="23 4 23 10 17 10"/><polyline points="1 20 1 14 7 14"/><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"/></svg>刷新</button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="stock-list" id="stock-list">
|
|
<div class="stock-list" id="stock-list">
|
|
@@ -158,10 +164,8 @@
|
|
|
<div class="record-chart-tooltip" id="record-chart-tooltip" hidden></div>
|
|
<div class="record-chart-tooltip" id="record-chart-tooltip" hidden></div>
|
|
|
<div class="record-chart-empty" id="record-chart-empty">请先选择姓名,才显示柱状图(可选名称进一步筛选)</div>
|
|
<div class="record-chart-empty" id="record-chart-empty">请先选择姓名,才显示柱状图(可选名称进一步筛选)</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <!-- 自动补全候选:姓名/名称输入框通过 list 属性引用;随数据库历史值刷新。
|
|
|
|
|
- 必须放在 record-list 容器之外,避免 loadRecords() 的 innerHTML='' 把它们清空 -->
|
|
|
|
|
- <datalist id="record-names-dl"></datalist>
|
|
|
|
|
- <datalist id="record-items-dl"></datalist>
|
|
|
|
|
|
|
+ <!-- 自动补全候选改为自定义下拉(record-ac,由 JS 动态创建挂到 body),
|
|
|
|
|
+ 不再用原生 datalist:与自定义下拉叠加会弹出两套候选(名称出现两个列表提示) -->
|
|
|
<div class="record-list" id="record-list"></div>
|
|
<div class="record-list" id="record-list"></div>
|
|
|
<div class="record-actions">
|
|
<div class="record-actions">
|
|
|
<button class="btn-ghost" id="record-add">添加记录</button>
|
|
<button class="btn-ghost" id="record-add">添加记录</button>
|
|
@@ -315,7 +319,7 @@
|
|
|
<div class="tool-card-body">
|
|
<div class="tool-card-body">
|
|
|
<p class="tool-desc">显示主窗口 footer 最近获取到的古诗词内容,可手动刷新获取新的一首。数据来自古诗词网随机接口。</p>
|
|
<p class="tool-desc">显示主窗口 footer 最近获取到的古诗词内容,可手动刷新获取新的一首。数据来自古诗词网随机接口。</p>
|
|
|
<div class="tool-row tool-actions">
|
|
<div class="tool-row tool-actions">
|
|
|
- <button class="btn-primary" id="poem-tool-refresh">刷新获取</button>
|
|
|
|
|
|
|
+ <button class="btn-primary" id="poem-tool-refresh"><svg class="btn-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="23 4 23 10 17 10"/><polyline points="1 20 1 14 7 14"/><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"/></svg>刷新获取</button>
|
|
|
<button class="btn-ghost" id="poem-tool-read">朗读</button>
|
|
<button class="btn-ghost" id="poem-tool-read">朗读</button>
|
|
|
<span class="tool-hint" id="poem-tool-hint"></span>
|
|
<span class="tool-hint" id="poem-tool-hint"></span>
|
|
|
</div>
|
|
</div>
|
|
@@ -532,7 +536,7 @@
|
|
|
<span class="tool-hint">正在读取显示器…</span>
|
|
<span class="tool-hint">正在读取显示器…</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="tool-row tool-actions">
|
|
<div class="tool-row tool-actions">
|
|
|
- <button class="btn-ghost" id="brightness-refresh" type="button" title="重新读取各显示器当前亮度">刷新</button>
|
|
|
|
|
|
|
+ <button class="btn-ghost" id="brightness-refresh" type="button" title="重新读取各显示器当前亮度"><svg class="btn-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="23 4 23 10 17 10"/><polyline points="1 20 1 14 7 14"/><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"/></svg>刷新</button>
|
|
|
<button class="btn-ghost" id="brightness-off" type="button" title="立即关闭所有显示器(移动鼠标或按键即唤醒)">息屏</button>
|
|
<button class="btn-ghost" id="brightness-off" type="button" title="立即关闭所有显示器(移动鼠标或按键即唤醒)">息屏</button>
|
|
|
<span class="tool-hint" id="brightness-hint"></span>
|
|
<span class="tool-hint" id="brightness-hint"></span>
|
|
|
</div>
|
|
</div>
|
|
@@ -553,6 +557,54 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 工具:智能重命名——扫描目录,AI 推断命名规律,批量重命名文件 -->
|
|
|
|
|
+ <div class="tool-card is-collapsed" data-tool="renamer">
|
|
|
|
|
+ <div class="tool-card-head" role="button" tabindex="0" aria-expanded="false">
|
|
|
|
|
+ <span class="tool-card-title" title="选择目录扫描文件,填至少 3 个「旧名→新名」示例,AI 推断命名规律并预览全部新名称,确认后一键批量重命名;可随时从历史撤回。"><span class="tool-arrow">▸</span><span class="dot"></span>智能重命名</span>
|
|
|
|
|
+ <span class="tool-status" id="renamer-status"></span>
|
|
|
|
|
+ <span class="tool-order-btns"><button class="tool-order-btn tool-up" type="button" title="上移">↑</button><button class="tool-order-btn tool-down" type="button" title="下移">↓</button></span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="tool-card-body">
|
|
|
|
|
+ <!-- 目录选择 -->
|
|
|
|
|
+ <div class="tool-row">
|
|
|
|
|
+ <input class="input" id="renamer-dir" type="text" placeholder="要重命名的目录,如 D:\图片" title="选择要扫描的目录">
|
|
|
|
|
+ <button class="btn-ghost" id="renamer-browse" type="button">浏览…</button>
|
|
|
|
|
+ <label class="tool-check"><input type="checkbox" id="renamer-recursive">含子目录</label>
|
|
|
|
|
+ <button class="btn-primary" id="renamer-scan">扫描</button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="tool-row" id="renamer-filelist-row" hidden>
|
|
|
|
|
+ <span class="tool-hint" id="renamer-filelist"></span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- 文件表格:原文件名(可双击复制到新名)| 新文件名(直接修改,≥3 个作为示例)| 状态 -->
|
|
|
|
|
+ <div class="renamer-table-wrap" id="renamer-table-wrap" hidden>
|
|
|
|
|
+ <table class="renamer-table" id="renamer-table">
|
|
|
|
|
+ <thead>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <th class="rt-name-head" id="renamer-th-name" title="点击排序:升序 → 降序 → 恢复原始顺序">原文件名 <span class="rt-sort-ind" id="renamer-sort-ind"></span></th>
|
|
|
|
|
+ <th style="width:40%">新文件名</th>
|
|
|
|
|
+ <th style="width:150px">状态</th>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ </thead>
|
|
|
|
|
+ <tbody id="renamer-table-body"></tbody>
|
|
|
|
|
+ </table>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- 操作栏:示例计数 + AI 推断 + 执行重命名(按钮紧跟在 AI 推断后面) -->
|
|
|
|
|
+ <div class="tool-row renamer-actions" id="renamer-actions" hidden>
|
|
|
|
|
+ <span class="tool-hint" id="renamer-example-count"></span>
|
|
|
|
|
+ <button class="btn-ghost" id="renamer-reset" type="button" hidden>清空修改</button>
|
|
|
|
|
+ <button class="btn-primary" id="renamer-preview" type="button">✨ AI 推断</button>
|
|
|
|
|
+ <button class="btn-danger" id="renamer-execute" type="button" disabled>执行重命名</button>
|
|
|
|
|
+ <span class="tool-hint" id="renamer-summary"></span>
|
|
|
|
|
+ <span class="tool-hint" id="renamer-preview-status"></span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- 历史 -->
|
|
|
|
|
+ <details class="tool-details">
|
|
|
|
|
+ <summary class="tool-summary">历史记录(可撤回)</summary>
|
|
|
|
|
+ <div id="renamer-history"></div>
|
|
|
|
|
+ </details>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 本地:设置中配置的本地资源/工具,点击卡片启动 -->
|
|
<!-- 本地:设置中配置的本地资源/工具,点击卡片启动 -->
|
|
@@ -596,7 +648,7 @@
|
|
|
<div class="card-title-row">
|
|
<div class="card-title-row">
|
|
|
<span class="card-title"><span class="dot"></span>服务模式</span>
|
|
<span class="card-title"><span class="dot"></span>服务模式</span>
|
|
|
<button class="btn-ghost" id="service-mode-toggle" type="button" title="启动/停止 Windows 服务(会弹出 UAC 提权确认);运行后未登录也能调用电源 API">启动服务模式</button>
|
|
<button class="btn-ghost" id="service-mode-toggle" type="button" title="启动/停止 Windows 服务(会弹出 UAC 提权确认);运行后未登录也能调用电源 API">启动服务模式</button>
|
|
|
- <button class="btn-ghost" id="service-mode-refresh">刷新</button>
|
|
|
|
|
|
|
+ <button class="btn-ghost" id="service-mode-refresh"><svg class="btn-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="23 4 23 10 17 10"/><polyline points="1 20 1 14 7 14"/><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"/></svg>刷新</button>
|
|
|
</div>
|
|
</div>
|
|
|
<p id="service-mode-status">检查中…</p>
|
|
<p id="service-mode-status">检查中…</p>
|
|
|
</div>
|
|
</div>
|
|
@@ -762,6 +814,15 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
+ <!-- 右下角标题文字与网址(归入「系统」组):格式「标题|链接」 -->
|
|
|
|
|
+ <div class="setting-row" data-tab-group="system">
|
|
|
|
|
+ <div class="setting-info">
|
|
|
|
|
+ <div class="setting-title">右下角文字</div>
|
|
|
|
|
+ <div class="setting-hint">格式:标题|链接 —— 竖线左侧是右下角显示的文字,右侧是点击打开的网址(默认「官方文档|https://v3.wails.io」);标题留空则隐藏该链接</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <input class="input" id="footer-docs-text" type="text" placeholder="官方文档|https://v3.wails.io" spellcheck="false">
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
<!-- Tab 显示顺序(归入「系统」组) -->
|
|
<!-- Tab 显示顺序(归入「系统」组) -->
|
|
|
<div class="setting-row" data-tab-group="system">
|
|
<div class="setting-row" data-tab-group="system">
|
|
|
<div class="setting-info">
|
|
<div class="setting-info">
|
|
@@ -787,9 +848,9 @@
|
|
|
<div class="setting-row" data-tab-group="system">
|
|
<div class="setting-row" data-tab-group="system">
|
|
|
<div class="setting-info">
|
|
<div class="setting-info">
|
|
|
<div class="setting-title">标签数据库</div>
|
|
<div class="setting-title">标签数据库</div>
|
|
|
- <div class="setting-hint">资源管理器文件/文件夹右键「标签」写入的 SQLite 数据库路径;鼠标悬停文件约 0.3 秒后读取其中的标签与备注并显示在光标上方</div>
|
|
|
|
|
|
|
+ <div class="setting-hint">资源管理器文件/文件夹右键「标签」写入的 SQLite 数据库路径;鼠标悬停文件约 0.3 秒后读取其中的标签与备注并显示在光标上方;默认程序所在目录</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <input class="input" id="tag-db-path" type="text" placeholder="D:\My\腾图\标签.db">
|
|
|
|
|
|
|
+ <input class="input" id="tag-db-path" type="text" placeholder="默认:程序目录\标签.db">
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 自定义 Tab 页面(归入「系统」组) -->
|
|
<!-- 自定义 Tab 页面(归入「系统」组) -->
|
|
@@ -891,9 +952,9 @@
|
|
|
<div class="setting-row setting-row-col" data-tab-group="links">
|
|
<div class="setting-row setting-row-col" data-tab-group="links">
|
|
|
<div class="setting-info">
|
|
<div class="setting-info">
|
|
|
<div class="setting-title">常用网址</div>
|
|
<div class="setting-title">常用网址</div>
|
|
|
- <div class="setting-hint">每行一条,格式:名称|网址,例如 煎蛋|https://jandan.net/</div>
|
|
|
|
|
|
|
+ <div class="setting-hint">顶层写分组名,缩进写「名称|网址」;无缩进的「名称|网址」为未分组</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <textarea class="input textarea" id="links-text" rows="4" placeholder="名称|网址,每行一条"></textarea>
|
|
|
|
|
|
|
+ <textarea class="input textarea" id="links-text" rows="5" placeholder="分组名 名称|网址 名称|网址"></textarea>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 新闻关键词 -->
|
|
<!-- 新闻关键词 -->
|
|
@@ -1014,9 +1075,9 @@
|
|
|
<div class="setting-row" data-tab-group="host">
|
|
<div class="setting-row" data-tab-group="host">
|
|
|
<div class="setting-info">
|
|
<div class="setting-info">
|
|
|
<div class="setting-title">上传保存目录</div>
|
|
<div class="setting-title">上传保存目录</div>
|
|
|
- <div class="setting-hint">上传文件的保存目录,留空则保存到用户配置目录/uploads</div>
|
|
|
|
|
|
|
+ <div class="setting-hint">上传文件的保存目录,留空则保存到程序所在目录\上传</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <input class="input" id="upload-dir" type="text" placeholder="D:\My\腾图\上传">
|
|
|
|
|
|
|
+ <input class="input" id="upload-dir" type="text" placeholder="默认:程序目录\上传">
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 上传大小上限 -->
|
|
<!-- 上传大小上限 -->
|
|
@@ -1038,6 +1099,9 @@
|
|
|
<input class="input hotkey-input" id="proxyhotkey" readonly placeholder="留空=不设热键">
|
|
<input class="input hotkey-input" id="proxyhotkey" readonly placeholder="留空=不设热键">
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
+ <!-- LocalSend 相关设置(同类归为一个子框) -->
|
|
|
|
|
+ <div class="setting-subgroup" data-tab-group="tools" data-subgroup="localsend">
|
|
|
|
|
+ <div class="setting-subgroup-title">LocalSend 相关</div>
|
|
|
<!-- LocalSend 本机名称 -->
|
|
<!-- LocalSend 本机名称 -->
|
|
|
<div class="setting-row" data-tab-group="tools">
|
|
<div class="setting-row" data-tab-group="tools">
|
|
|
<div class="setting-info">
|
|
<div class="setting-info">
|
|
@@ -1068,7 +1132,11 @@
|
|
|
<button class="btn-ghost" id="localsend-pickdir" type="button" title="选择接收目录">选择目录</button>
|
|
<button class="btn-ghost" id="localsend-pickdir" type="button" title="选择接收目录">选择目录</button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ </div><!-- /setting-subgroup localsend -->
|
|
|
|
|
|
|
|
|
|
+ <!-- Croc 相关设置(同类归为一个子框) -->
|
|
|
|
|
+ <div class="setting-subgroup" data-tab-group="tools" data-subgroup="croc">
|
|
|
|
|
+ <div class="setting-subgroup-title">Croc 相关</div>
|
|
|
<!-- Croc 传送密码(发送/接收共用) -->
|
|
<!-- Croc 传送密码(发送/接收共用) -->
|
|
|
<div class="setting-row croc-setting-row" data-tab-group="tools">
|
|
<div class="setting-row croc-setting-row" data-tab-group="tools">
|
|
|
<div class="setting-info">
|
|
<div class="setting-info">
|
|
@@ -1089,6 +1157,58 @@
|
|
|
<button class="btn-ghost" id="croc-pickdir" type="button" title="选择接收目录">选择目录</button>
|
|
<button class="btn-ghost" id="croc-pickdir" type="button" title="选择接收目录">选择目录</button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ </div><!-- /setting-subgroup croc -->
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 智能重命名 AI 设置(同类归为一个子框) -->
|
|
|
|
|
+ <div class="setting-subgroup" data-tab-group="tools" data-subgroup="ai">
|
|
|
|
|
+ <div class="setting-subgroup-title">AI重命名</div>
|
|
|
|
|
+ <!-- 接入商类型 -->
|
|
|
|
|
+ <div class="setting-row" data-tab-group="tools">
|
|
|
|
|
+ <div class="setting-info">
|
|
|
|
|
+ <div class="setting-title">接入商类型</div>
|
|
|
|
|
+ <div class="setting-hint">Ollama 本地:无需鉴权,接口地址如 http://localhost:11434;OpenAI 兼容:需 API Key,接口地址如 https://xxx/v1</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <select class="input" id="renamer-provider" style="max-width:200px">
|
|
|
|
|
+ <option value="ollama">Ollama(本地)</option>
|
|
|
|
|
+ <option value="openai">OpenAI 兼容接入商</option>
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- 接口地址 -->
|
|
|
|
|
+ <div class="setting-row" data-tab-group="tools">
|
|
|
|
|
+ <div class="setting-info">
|
|
|
|
|
+ <div class="setting-title">接口地址</div>
|
|
|
|
|
+ <div class="setting-hint">OpenAI 兼容 Chat Completions 接口地址</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <input class="input" id="renamer-baseurl" type="text" placeholder="http://localhost:11434 或 https://xxx/v1" spellcheck="false">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- API Key -->
|
|
|
|
|
+ <div class="setting-row" data-tab-group="tools">
|
|
|
|
|
+ <div class="setting-info">
|
|
|
|
|
+ <div class="setting-title">API Key</div>
|
|
|
|
|
+ <div class="setting-hint">本地 Ollama 可空;OpenAI 兼容必填</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <input class="input" id="renamer-apikey" type="password" placeholder="本地 Ollama 可空" autocomplete="new-password" spellcheck="false">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- 模型名称 -->
|
|
|
|
|
+ <div class="setting-row" data-tab-group="tools">
|
|
|
|
|
+ <div class="setting-info">
|
|
|
|
|
+ <div class="setting-title">模型名称</div>
|
|
|
|
|
+ <div class="setting-hint">用于推断命名规律,如 qwen2.5:7b</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <input class="input" id="renamer-model" type="text" placeholder="qwen2.5:7b" spellcheck="false">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- 测试连接 -->
|
|
|
|
|
+ <div class="setting-row" data-tab-group="tools">
|
|
|
|
|
+ <div class="setting-info">
|
|
|
|
|
+ <div class="setting-title">测试连接</div>
|
|
|
|
|
+ <div class="setting-hint">验证接入商配置是否可连通(需已保存)</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="browser-path-group">
|
|
|
|
|
+ <button class="btn-ghost" id="renamer-aitest" type="button">测试连接</button>
|
|
|
|
|
+ <span class="tool-hint" id="renamer-aitest-result"></span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div><!-- /setting-subgroup ai -->
|
|
|
|
|
|
|
|
<!-- 视频下载保存目录 -->
|
|
<!-- 视频下载保存目录 -->
|
|
|
<div class="setting-row ytdlp-setting-row" data-tab-group="tools">
|
|
<div class="setting-row ytdlp-setting-row" data-tab-group="tools">
|
|
@@ -1150,18 +1270,18 @@
|
|
|
<div class="setting-row" data-tab-group="todo">
|
|
<div class="setting-row" data-tab-group="todo">
|
|
|
<div class="setting-info">
|
|
<div class="setting-info">
|
|
|
<div class="setting-title">待办文件路径</div>
|
|
<div class="setting-title">待办文件路径</div>
|
|
|
- <div class="setting-hint">「待办」标签每行一个任务,保存到该文本文件</div>
|
|
|
|
|
|
|
+ <div class="setting-hint">「待办」标签每行一个任务,保存到该文本文件;默认程序所在目录</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <input class="input" id="todo-path" type="text" placeholder="D:\My\腾图\待办.txt">
|
|
|
|
|
|
|
+ <input class="input" id="todo-path" type="text" placeholder="默认:程序目录\待办.txt">
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 记录数据库路径 -->
|
|
<!-- 记录数据库路径 -->
|
|
|
<div class="setting-row" data-tab-group="record">
|
|
<div class="setting-row" data-tab-group="record">
|
|
|
<div class="setting-info">
|
|
<div class="setting-info">
|
|
|
<div class="setting-title">记录数据库路径</div>
|
|
<div class="setting-title">记录数据库路径</div>
|
|
|
- <div class="setting-hint">「记录」标签全部「姓名|名称|值」保存到该 SQLite 数据库文件;姓名/名称输入自动补全历史值,选择姓名与名称后按值绘柱状图</div>
|
|
|
|
|
|
|
+ <div class="setting-hint">「记录」标签全部「姓名|名称|值」保存到该 SQLite 数据库文件;姓名/名称输入自动补全历史值,选择姓名与名称后按值绘柱状图;默认程序所在目录</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <input class="input" id="record-db-path" type="text" placeholder="D:\My\腾图\记录.db">
|
|
|
|
|
|
|
+ <input class="input" id="record-db-path" type="text" placeholder="默认:程序目录\记录.db">
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 文本备份目录 -->
|
|
<!-- 文本备份目录 -->
|
|
@@ -1170,7 +1290,7 @@
|
|
|
<div class="setting-title">文本备份目录</div>
|
|
<div class="setting-title">文本备份目录</div>
|
|
|
<div class="setting-hint">文件类自定义 Tab 的「备份」按钮按当前时间备份文件到该目录,文件名带时间戳</div>
|
|
<div class="setting-hint">文件类自定义 Tab 的「备份」按钮按当前时间备份文件到该目录,文件名带时间戳</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <input class="input" id="backup-dir" type="text" placeholder="D:\My\腾图\备份">
|
|
|
|
|
|
|
+ <input class="input" id="backup-dir" type="text" placeholder="默认:程序目录\备份">
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 股票滚动条 -->
|
|
<!-- 股票滚动条 -->
|
|
@@ -1233,12 +1353,13 @@
|
|
|
<div class="setting-row" data-tab-group="host">
|
|
<div class="setting-row" data-tab-group="host">
|
|
|
<div class="setting-info">
|
|
<div class="setting-info">
|
|
|
<div class="setting-title">鼠标提醒</div>
|
|
<div class="setting-title">鼠标提醒</div>
|
|
|
- <div class="setting-hint">触发提醒时在鼠标旁浮出透明气泡文字,可调字号、宽度、滚动速度、颜色与描边</div>
|
|
|
|
|
|
|
+ <div class="setting-hint">触发提醒时在鼠标旁浮出透明气泡文字,可调字号、宽度、滚动速度、颜色与描边;「滚动显示」控制超长文字水平滚动(关闭时超长部分右侧裁剪)</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="ticker-controls">
|
|
<div class="ticker-controls">
|
|
|
<input class="input input-num" id="mouse-alert-size" type="number" min="10" max="48" title="字号 px">
|
|
<input class="input input-num" id="mouse-alert-size" type="number" min="10" max="48" title="字号 px">
|
|
|
<input class="input input-num" id="mouse-alert-width" type="number" min="120" max="1200" title="窗口宽度 px">
|
|
<input class="input input-num" id="mouse-alert-width" type="number" min="120" max="1200" title="窗口宽度 px">
|
|
|
<input class="input input-num" id="mouse-alert-speed" type="number" min="5" max="300" title="滚动速度 px/s">
|
|
<input class="input input-num" id="mouse-alert-speed" type="number" min="5" max="300" title="滚动速度 px/s">
|
|
|
|
|
+ <label class="switch" title="滚动显示超长文字(关闭=裁剪)"><input type="checkbox" id="mouse-alert-scroll" checked><span class="switch-track"></span></label>
|
|
|
<input class="input-color" id="mouse-alert-color" type="color" title="文字颜色">
|
|
<input class="input-color" id="mouse-alert-color" type="color" title="文字颜色">
|
|
|
<input class="input input-num" id="mouse-alert-outline-width" type="number" min="0" max="6" title="文字描边宽度 px(0 关闭)">
|
|
<input class="input input-num" id="mouse-alert-outline-width" type="number" min="0" max="6" title="文字描边宽度 px(0 关闭)">
|
|
|
<input class="input-color" id="mouse-alert-outline-color" type="color" title="文字描边颜色(与文字形成反差)">
|
|
<input class="input-color" id="mouse-alert-outline-color" type="color" title="文字描边颜色(与文字形成反差)">
|
|
@@ -1249,10 +1370,22 @@
|
|
|
|
|
|
|
|
<!-- 保存栏 -->
|
|
<!-- 保存栏 -->
|
|
|
<div class="save-bar">
|
|
<div class="save-bar">
|
|
|
- <button class="btn-primary" id="save-settings">保存设置</button>
|
|
|
|
|
|
|
+ <button class="btn-primary" id="save-settings">
|
|
|
|
|
+ <svg class="btn-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"/><polyline points="17 21 17 13 7 13 7 21"/><polyline points="7 3 7 8 15 8"/></svg>
|
|
|
|
|
+ 保存设置
|
|
|
|
|
+ </button>
|
|
|
<span class="save-status" id="save-status"></span>
|
|
<span class="save-status" id="save-status"></span>
|
|
|
- <button class="btn-ghost save-bar-extra" id="check-update" type="button">检查更新</button>
|
|
|
|
|
- <button class="btn-ghost save-bar-extra" id="feedback-open" type="button">意见/建议</button>
|
|
|
|
|
|
|
+ <button class="btn-ghost save-bar-extra" id="check-update" type="button">
|
|
|
|
|
+ <svg class="btn-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="23 4 23 10 17 10"/><polyline points="1 20 1 14 7 14"/><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"/></svg>
|
|
|
|
|
+ 检查更新
|
|
|
|
|
+ </button>
|
|
|
|
|
+ <!--
|
|
|
|
|
+ <a class="btn-ghost save-bar-extra" id="doc-open" href="https://i.scwy.net/down/toolsbox" data-wml-openURL="https://i.scwy.net/down/toolsbox" target="_blank" rel="noopener">使用说明</a>
|
|
|
|
|
+ -->
|
|
|
|
|
+ <button class="btn-ghost save-bar-extra" id="feedback-open" type="button">
|
|
|
|
|
+ <svg class="btn-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"/></svg>
|
|
|
|
|
+ 意见/建议
|
|
|
|
|
+ </button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -1327,10 +1460,11 @@
|
|
|
<span class="footer-version"><span class="dot"></span>腾图工具箱 <span id="footer-version-text"></span></span>
|
|
<span class="footer-version"><span class="dot"></span>腾图工具箱 <span id="footer-version-text"></span></span>
|
|
|
<div class="footer-desc" id="footer-desc">
|
|
<div class="footer-desc" id="footer-desc">
|
|
|
<span class="footer-marquee" id="footer-marquee"></span>
|
|
<span class="footer-marquee" id="footer-marquee"></span>
|
|
|
|
|
+ <span class="renamer-footer-status" id="renamer-footer-status" hidden></span>
|
|
|
<button class="poem-read" id="poem-read" title="朗读古诗" hidden>🔊</button>
|
|
<button class="poem-read" id="poem-read" title="朗读古诗" hidden>🔊</button>
|
|
|
</div>
|
|
</div>
|
|
|
<span class="footer-time" id="time">--:--:--</span>
|
|
<span class="footer-time" id="time">--:--:--</span>
|
|
|
- <a class="footer-docs" data-wml-openURL="https://v3.wails.io" aria-label="Wails documentation">官方文档</a>
|
|
|
|
|
|
|
+ <a class="footer-docs" id="footer-docs" data-wml-openURL="https://v3.wails.io" aria-label="官方文档">官方文档</a>
|
|
|
</footer>
|
|
</footer>
|
|
|
|
|
|
|
|
<!-- 「更多」Tab 下拉菜单:挂在 body 下,避免被标签栏的 backdrop-filter/overflow 裁剪或压层 -->
|
|
<!-- 「更多」Tab 下拉菜单:挂在 body 下,避免被标签栏的 backdrop-filter/overflow 裁剪或压层 -->
|
|
@@ -1343,6 +1477,15 @@
|
|
|
<div class="update-sub" id="update-sub"></div>
|
|
<div class="update-sub" id="update-sub"></div>
|
|
|
<div class="update-bar"><div class="update-bar-fill" id="update-bar-fill" style="width:0%"></div></div>
|
|
<div class="update-bar"><div class="update-bar-fill" id="update-bar-fill" style="width:0%"></div></div>
|
|
|
<div class="update-pct" id="update-pct">0%</div>
|
|
<div class="update-pct" id="update-pct">0%</div>
|
|
|
|
|
+ <div class="update-tip-img">
|
|
|
|
|
+ <img src="https://i.scwy.net/other/pay_good.jpg" alt="扫码打赏" loading="lazy">
|
|
|
|
|
+ <div class="update-tip-text">如果对你有帮助,欢迎扫码打赏</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="update-poem" id="update-poem" hidden>
|
|
|
|
|
+ <div class="update-poem-title"></div>
|
|
|
|
|
+ <div class="update-poem-author"></div>
|
|
|
|
|
+ <div class="update-poem-content"></div>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|