diff --git a/README.md b/README.md index cddf1d3..8c5333b 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -# Gitea-font · Gitea 极简蓝白 ins 风外观定制 +# QQGit · 极简蓝白 ins 风外观定制 > 目标实例:`https://git.qyhhh.top`(`Gitea 1.21.11`,二进制 `/usr/local/bin/gitea`,运行用户 `git:git`) > 本仓库是**外观定制的工作目录(staging)**。所有改动先在这里做出来、经确认后再复制进 `/var/lib/gitea/custom`。 -当前状态:**`v1.0-rc1` 候选版已就绪,等 QQ 在预览页验收;线上未做任何修改。** +当前状态:**`v1.0-rc2` 候选版已就绪,等 QQ 在预览页验收;线上未做任何修改。** ## 一、铁律(不可违反) @@ -78,10 +78,11 @@ git tag v1.0-rc1 ## 六、版本标签约定 +| `v1.0-rc2` | 品牌定名 QQGit(APP_NAME 已改,页签标题实测生效),口号「自己的代码,自己的地方。」 | | 标签 | 含义 | | --- | --- | | `v0.0-baseline` | 线上原始状态 + 官方 1.21.11 模板快照 | -| `v1.0-rc1` | 工作目录候选版:Logo 全套 + 三主题 + 模板钩子 + 预览页,**未上线** | +| `v1.0-rc2` | 工作目录候选版:Logo 全套 + 三主题 + 模板钩子 + 预览页,**未上线** | | `v1.0-live` | 已部署到线上并通过验收 | ## 七、上传限制(现状记录,不在本次改动范围) diff --git a/baseline/app-ini/app-name.txt b/baseline/app-ini/app-name.txt new file mode 100644 index 0000000..7212728 --- /dev/null +++ b/baseline/app-ini/app-name.txt @@ -0,0 +1,4 @@ +APP_NAME = QQGit +(原值: QQgit: QQ的git仓库) +修改时间: 2026-11-02T18:32:44+08:00 +备份: /etc/gitea/app.ini.bak-20261102-183223 diff --git a/custom/templates/home.tmpl b/custom/templates/home.tmpl index 921599c..b14604a 100644 --- a/custom/templates/home.tmpl +++ b/custom/templates/home.tmpl @@ -8,7 +8,8 @@

{{AppName}}

-

{{ctx.Locale.Tr "startpage.app_desc"}}

+ {{/* 品牌口号:想换回官方文案就恢复下面注释里那行 {{ctx.Locale.Tr "startpage.app_desc"}} */}} +

自己的代码,自己的地方。

diff --git a/preview/app.js b/preview/app.js index f254941..5186701 100644 --- a/preview/app.js +++ b/preview/app.js @@ -18,6 +18,13 @@ buttons.forEach((b) => b.addEventListener('click', () => apply(b.dataset.mode))); + /* 支持 ?theme=light|dark|auto 直接进入某档,方便截图与分享 */ + const forced = new URLSearchParams(location.search).get('theme'); + if (forced && links[forced]) { + apply(forced); + return; + } + let saved = null; try { saved = localStorage.getItem('qq-preview-theme'); } catch (e) { /* ignore */ } apply(saved && links[saved] ? saved : 'auto'); diff --git a/preview/index.html b/preview/index.html index c6e2b1d..b8f1bd8 100644 --- a/preview/index.html +++ b/preview/index.html @@ -3,7 +3,7 @@ -Gitea 外观预览 · 蓝白 ins 风 +QQGit 外观预览 · 蓝白 ins 风 @@ -41,8 +41,8 @@
logo -

Q 的 Git

-

面向硬核开发者的极致轻量自托管 Git 服务

+

QQGit

+

自己的代码,自己的地方。

◆跨平台

@@ -67,7 +67,7 @@
Q
-

qq/gitea-font · 私有

+

QQ/gitea-font · 私有

更新于 3 分钟前 · ★ 12 · 分支 2 · 标签 3

Gitea 蓝白 ins 风外观定制:主题、模板钩子与 Logo 套件。

@@ -146,7 +146,7 @@ DARK_PRIMARY = "#38BDF8"
输入框 / 搜索
- + 提示:聚焦时边框使用主色 --color-primary
@@ -170,7 +170,7 @@ DARK_PRIMARY = "#38BDF8"