Skip to content

Commit 355695c

Browse files
committed
chore: 设置页仓库改按钮、使用说明页按钮纯图标、文档站补 favicon、README 协议段一句话
设置页 header 之前在标题下面挂了一行「仓库:URL」纯文字链接,跟右边的 header-actions 一组按钮风格不一致。把它从描述区抽出来,挪到 header-actions 里跟「主题 / 使用说明 / 保存设置 / 恢复默认」并列成第三个按钮:ExternalLink + 「GitHub 仓库」文字。.repo-line 那段 css 一并删掉。 使用说明页 header 之前是「Settings2 + 打开设置页」「ExternalLink + GitHub 仓库」两个 icon + 文字按钮,独立标签页空间够大本来还行,但跟弹窗的 icon-btn 风格不一致。改成纯图标按钮:32x32 方形,icon 16px,title 提示对应文字。.header-actions .icon-btn 加宽高 / padding 0 / center 对齐。 VitePress config head 之前只有 theme-color meta,浏览器标签页和 Pages 部署的预览图都没有 favicon,看起来是默认的扩展图标缺位。head 加 link rel=icon type=image/svg+xml href=/icon.svg,复用 sync-docs-assets.mjs 同步过来的项目主图标,无需额外资源。 README 「开源协议」一节把「简单说」那段四条短句拿掉——文档站「开发手册 / 构建与发布」会展开协议要点,README 简洁化为一句「本项目基于 CC BY-NC-SA 4.0 协议授权,完整法律文本见 LICENSE」。 插件版本升级到 1.0.98。
1 parent 1ddb103 commit 355695c

5 files changed

Lines changed: 22 additions & 39 deletions

File tree

README.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,4 @@ StackPrism会从页面运行时、DOM、资源 URL、响应头、动态加载资
5353

5454
## 开源协议
5555

56-
本项目基于 [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)](https://creativecommons.org/licenses/by-nc-sa/4.0/) 协议授权。
57-
58-
简单说:
59-
60-
- 可以自由使用、修改、传播
61-
- 必须署名(保留原作者信息)
62-
- **不得用于商业用途**
63-
- 二次创作需用同样协议发布
64-
65-
完整法律文本见 [LICENSE](LICENSE)
56+
本项目基于 [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)](https://creativecommons.org/licenses/by-nc-sa/4.0/) 协议授权,完整法律文本见 [LICENSE](LICENSE)

docs/.vitepress/config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ export default defineConfig({
55
title: 'StackPrism',
66
description: '网页技术栈检测扩展 · 使用文档',
77
lastUpdated: true,
8-
head: [['meta', { name: 'theme-color', content: '#0f766e' }]],
8+
head: [
9+
['link', { rel: 'icon', type: 'image/svg+xml', href: '/icon.svg' }],
10+
['meta', { name: 'theme-color', content: '#0f766e' }]
11+
],
912
themeConfig: {
1013
logo: '/icon.svg',
1114
nav: [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "stackprism",
33
"private": true,
4-
"version": "1.0.97",
4+
"version": "1.0.98",
55
"type": "module",
66
"description": "StackPrism 用于检测网页前端、后端、CDN、SaaS、广告营销、统计、登录、支付、网站程序和主题模板线索。",
77
"scripts": {

src/ui/help/Help.vue

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@
99
<p>这页专门讲怎么添加自己的识别规则。你可以把规则理解成一句话:看到什么字,就认为网页用了什么东西。</p>
1010
</div>
1111
<div class="header-actions">
12-
<button type="button" class="primary" @click="openSettings">
13-
<Settings2 :size="14" :stroke-width="2" />
14-
<span>打开设置页</span>
12+
<button type="button" class="icon-btn primary" title="打开设置页" @click="openSettings">
13+
<Settings2 :size="16" :stroke-width="2" />
1514
</button>
16-
<button type="button" @click="openRepo">
17-
<ExternalLink :size="14" :stroke-width="2" />
18-
<span>GitHub 仓库</span>
15+
<button type="button" class="icon-btn" title="GitHub 仓库" @click="openRepo">
16+
<ExternalLink :size="16" :stroke-width="2" />
1917
</button>
2018
</div>
2119
</div>
@@ -407,6 +405,13 @@ examplepay-sdk</pre
407405
gap: 6px;
408406
}
409407
408+
.header-actions .icon-btn {
409+
height: 32px;
410+
justify-content: center;
411+
padding: 0;
412+
width: 32px;
413+
}
414+
410415
.header-actions button {
411416
align-items: center;
412417
background: transparent;

src/ui/settings/Settings.vue

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
<span v-if="version" class="version-badge">v{{ version }}</span>
88
</h1>
99
<p>控制识别分类,添加自定义规则,并覆盖弹窗样式。</p>
10-
<p class="repo-line">
11-
仓库:
12-
<a :href="REPOSITORY_URL" target="_blank" rel="noreferrer" @click="openRepository">{{ REPOSITORY_URL }}</a>
13-
</p>
1410
</div>
1511
<div class="header-actions">
1612
<button type="button" :title="`主题:${themeLabel(theme)}(点击切换)`" @click="toggleTheme">
@@ -23,6 +19,10 @@
2319
<BookOpen :size="14" :stroke-width="2" />
2420
<span>使用说明</span>
2521
</button>
22+
<button type="button" title="GitHub 仓库" @click="openRepository">
23+
<ExternalLink :size="14" :stroke-width="2" />
24+
<span>GitHub 仓库</span>
25+
</button>
2626
<button type="button" class="primary" @click="saveSettings">
2727
<Save :size="14" :stroke-width="2" />
2828
<span>保存设置</span>
@@ -176,7 +176,7 @@
176176

177177
<script setup lang="ts">
178178
import { onMounted, reactive, ref, watch, computed } from 'vue'
179-
import { BookOpen, Inbox, Monitor, Moon, Pencil, RotateCcw, Save, Sun, Trash2 } from 'lucide-vue-next'
179+
import { BookOpen, ExternalLink, Inbox, Monitor, Moon, Pencil, RotateCcw, Save, Sun, Trash2 } from 'lucide-vue-next'
180180
import Select from '@/ui/components/Select.vue'
181181
import { CATEGORY_ORDER } from '@/utils/category-order'
182182
import { applyCustomCss } from '@/utils/apply-custom-css'
@@ -760,22 +760,6 @@
760760
letter-spacing: 0.02em;
761761
}
762762
763-
.repo-line {
764-
color: var(--muted);
765-
font-size: 12px;
766-
margin-top: 8px;
767-
}
768-
769-
.repo-line a {
770-
color: var(--muted);
771-
text-decoration: none;
772-
transition: color 0.15s ease;
773-
}
774-
775-
.repo-line a:hover {
776-
color: var(--accent);
777-
}
778-
779763
h2 {
780764
color: var(--muted);
781765
font-size: 11px;

0 commit comments

Comments
 (0)