dsh-folia 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.js +7 -94
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -16094,102 +16094,15 @@ window.__ModuleLoader__.load({
|
|
|
16094
16094
|
//("要什么"写在签名处),所以这里显式解构出那一个回调。
|
|
16095
16095
|
// 四段的**顺序**是用户的明确口径(致谢压尾),判据按首次出现下标比大小钉住。
|
|
16096
16096
|
function renderAboutTab(ctx) {
|
|
16097
|
-
|
|
16098
|
-
//
|
|
16099
|
-
//
|
|
16100
|
-
//
|
|
16097
|
+
// 本仓自有版本:**「关于」页签保留,内容清空**(用户口径)。
|
|
16098
|
+
// 不再显示项目简介 / Star / 贡献者致谢,也不再带上游的交流群二维码与赞赏码 ——
|
|
16099
|
+
// 这一页只作为"存在一个关于页签"的占位,点进去是空白。
|
|
16100
|
+
//
|
|
16101
|
+
// 组件可见性门仍保留:关掉 about-notice 组件行时,这一页签照旧整块不渲染
|
|
16102
|
+
//(判据仍是 test/verify-component-visibility.mjs 的"声明落点必须被 gate")。
|
|
16101
16103
|
if (!weComponentVisibleOf(ctx.sel && ctx.sel.inventory && ctx.sel.inventory.components, 'about-notice')) return null;
|
|
16102
|
-
|
|
16103
|
-
// 这里的"读"与 SliderRow 一类模块级助手同口径 —— 只读,不发请求)。
|
|
16104
|
-
const stars = starCountLabel();
|
|
16105
|
-
// 本仓自有版本:**不再带上游的交流群二维码与赞赏码**(那是原作者的社群与收款渠道)。
|
|
16106
|
-
// 「关于」页只剩项目简介 / Star / 贡献者致谢三节,联系方式留给仓库的 Issues。
|
|
16107
|
-
// 贡献者致谢逐条列出(名字 / 做了什么)——「谢谢」要能落到具体的人身上,
|
|
16108
|
-
// 一句笼统的"感谢所有贡献者"没有信息量。
|
|
16109
|
-
const credits = [
|
|
16110
|
-
weT("🧩 oneincase —— 内置 WebWallGL 实时渲染引擎与 media-bridge 媒体中间件的作者:场景 / 网页壁纸的实时渲染,以及 Windows / macOS / Linux 三平台的原生媒体链路,都建立在它们之上"),
|
|
16111
|
-
weT("🛠️ YV3507 —— 提交量最大的贡献者:从早期场景渲染器起步,到静态帧系列修复、液态玻璃令牌体系、实时帧链路与多轮大型重构,几乎每个里程碑都有他"),
|
|
16112
|
-
weT("🎨 yuxilao —— scene-gl 的 Linux 实时渲染管线(WebGL2 官方 shader 驱动)、轮换交接与 GPU 帧回填"),
|
|
16113
|
-
weT("🍎 Jerry —— 在三平台原生支持落地之前,macOS 侧的适配与贡献路径由他维护"),
|
|
16114
|
-
weT("🌟 还有 SiriLee、libiwolve、0-007pro、jujubaoj646-star、xiahou001、wilianyichen、hecoococ、ShamSky88、Rekk0、Y1X1n 等贡献者,以及所有通过 issue 反馈与 PR 参与改进的朋友 —— 谢谢你们!"),
|
|
16115
|
-
];
|
|
16116
|
-
return React.createElement(React.Fragment, null,
|
|
16117
|
-
// ── ① 项目简介 ──
|
|
16118
|
-
React.createElement("div", { className: "we-picker__section" },
|
|
16119
|
-
React.createElement("div", { className: "we-picker__section-head" },
|
|
16120
|
-
React.createElement("span", { className: "we-picker__section-label" }, weT("📖 项目简介")),
|
|
16121
|
-
),
|
|
16122
|
-
React.createElement("div", { className: "we-about__lead" },
|
|
16123
|
-
React.createElement("div", { className: "we-about__lead-title" }, weT("🖼️ 壁纸引擎 · 让 DSH 的背后动起来")),
|
|
16124
|
-
React.createElement("p", { className: "we-about__p" },
|
|
16125
|
-
weT("把 Wallpaper Engine 的壁纸搬到 DSH 界面后面:视频直接播放,场景(Scene)与网页(Web)壁纸由内置的 WebWallGL 引擎实时渲染,再配上一整套液态玻璃界面改造 —— 你桌面上那张会动的画,现在就在对话背后放着。🎬✨")),
|
|
16126
|
-
React.createElement("p", { className: "we-about__p" },
|
|
16127
|
-
weT("壁纸全部来自你自己的机器(本机库 / WE 工程目录 / 手动上传),插件不联网也能用,更不会把它们传到任何地方。🔒")),
|
|
16128
|
-
),
|
|
16129
|
-
),
|
|
16130
|
-
// ── ② 仓库与 Star ──
|
|
16131
|
-
React.createElement("div", { className: "we-picker__section" },
|
|
16132
|
-
React.createElement("div", { className: "we-picker__section-head" },
|
|
16133
|
-
React.createElement("span", { className: "we-picker__section-label" }, weT("⭐ 开源与支持")),
|
|
16134
|
-
),
|
|
16135
|
-
React.createElement("p", { className: "we-about__p" },
|
|
16136
|
-
weT("项目以 MIT 协议开源、完全免费。如果它让你的 DSH 好看了一点点,去仓库点一颗 ⭐ 就是最直接的鼓励~")),
|
|
16137
|
-
React.createElement("div", { className: "we-about__star-row" },
|
|
16138
|
-
React.createElement("a", {
|
|
16139
|
-
className: "we-picker__btn we-picker__btn--primary we-about__star",
|
|
16140
|
-
href: ABOUT_REPO_URL,
|
|
16141
|
-
target: "_blank",
|
|
16142
|
-
rel: "noopener noreferrer",
|
|
16143
|
-
title: weT("在浏览器里打开项目仓库"),
|
|
16144
|
-
}, weT("⭐ 去 GitHub 点亮 Star")),
|
|
16145
|
-
// 实时 star 数:宿主代取(带缓存,见 packages/about-notice/lib/routes/github-stars.js)。
|
|
16146
|
-
// 取不到时**整行不消失**、改说"暂时取不到" —— 数字是点缀,按钮才是主操作。
|
|
16147
|
-
stars
|
|
16148
|
-
? React.createElement("span", {
|
|
16149
|
-
className: "we-about__stars",
|
|
16150
|
-
title: weT("来自 GitHub API 的实时数据(带缓存;拉不到时显示上一次取到的值)"),
|
|
16151
|
-
}, stars)
|
|
16152
|
-
: null,
|
|
16153
|
-
),
|
|
16154
|
-
React.createElement("div", { className: "we-about__url-row" },
|
|
16155
|
-
React.createElement("span", { className: "we-picker__hint" }, weT("🔗 仓库地址(按钮打不开时可手动复制):")),
|
|
16156
|
-
// 可选中、可整段复制的裸地址:桌面壳里外链能否唤起浏览器不由插件说了算,
|
|
16157
|
-
// 这条是给"点了没反应"的场景留的兜底(同字体集导出的"普通链接"口径)。
|
|
16158
|
-
React.createElement("code", { className: "we-about__url" }, ABOUT_REPO_URL),
|
|
16159
|
-
),
|
|
16160
|
-
// 「重新查看本版更新公告」:公告的哨兵 `noticeSeen` 让它**一版只弹一次** ⇒ 不给一条
|
|
16161
|
-
// 重看路径的话,用户"想再看这版改了什么"就只能去改设置文件。
|
|
16162
|
-
// ⚠️ 只调回调(`ctx.onReopenNotice`):状态写入与 emit 都在 client.js 那一侧 ——
|
|
16163
|
-
// 本渲染器因此保持"只读模块级状态"(判据见文件头那段说明)。
|
|
16164
|
-
// 与上面那枚 Star 按钮**同放一节**是有意的:它们是同一件事的两个面(公告配图下那行
|
|
16165
|
-
// 也是同一个求星入口,见 src/client.js 的 UpdateNotice)。
|
|
16166
|
-
React.createElement("button", {
|
|
16167
|
-
className: "we-picker__btn we-about__reopen", type: "button",
|
|
16168
|
-
onClick: () => { if (typeof onReopenNotice === "function") onReopenNotice(); },
|
|
16169
|
-
title: weT("再弹一次本版更新公告(含配图下方的求星入口)"),
|
|
16170
|
-
}, weT("重新查看本版更新公告")),
|
|
16171
|
-
React.createElement("p", { className: "we-about__p" },
|
|
16172
|
-
weT("想要新功能、遇到问题,或者想看看接下来要做什么,都欢迎来仓库提 Issue / PR —— 一起把它做得更好 🧰")),
|
|
16173
|
-
),
|
|
16174
|
-
// ── ③ 交流群:**已整节移除**(本仓不带上游社群二维码;见上方 qrCards 位置的说明)──
|
|
16175
|
-
// ── ④ 贡献者致谢(**压尾**:用户口径——先讲清"这是什么、去哪支持",
|
|
16176
|
-
// 最后再把功劳簿摆出来。💌 那句收尾也并进这一段,页面结束在"谢谢"上。)──
|
|
16177
|
-
React.createElement("div", { className: "we-picker__section" },
|
|
16178
|
-
React.createElement("div", { className: "we-picker__section-head" },
|
|
16179
|
-
React.createElement("span", { className: "we-picker__section-label" }, weT("🙏 贡献者致谢")),
|
|
16180
|
-
),
|
|
16181
|
-
React.createElement("p", { className: "we-about__p" }, weT("这个插件是许多人一起做出来的成果,谢谢他们:❤️")),
|
|
16182
|
-
React.createElement("ul", { className: "we-about__credits" },
|
|
16183
|
-
credits.map((line, i) => React.createElement("li", { key: "credit-" + i, className: "we-about__credit" }, line)),
|
|
16184
|
-
),
|
|
16185
|
-
React.createElement("p", { className: "we-about__p" }, weT("也谢谢上游 Wallpaper Engine 生态与 DSH 官方插件的作者们 —— 站在你们的肩膀上。🙇")),
|
|
16186
|
-
React.createElement("p", { className: "we-about__p we-about__foot" },
|
|
16187
|
-
weT("💌 感谢每一位使用者 —— 换上你喜欢的那张壁纸,这个插件就没白写。")),
|
|
16188
|
-
),
|
|
16189
|
-
);
|
|
16104
|
+
return null;
|
|
16190
16105
|
}
|
|
16191
|
-
|
|
16192
|
-
|
|
16193
16106
|
// ── 页签级重置(issue #192 用户口径:「每个选项卡后面加重置,重置指定选项卡」)──────────
|
|
16194
16107
|
// 压在**每个页签内容的最末尾**,由 client.js 的渲染点在 renderActiveTab() 之后统一挂 ——
|
|
16195
16108
|
// 六处渲染器各挂一遍必然漏一个,挂一处才是结构性的。
|