From d7eb46b3a167a5c074a9020dafeba815e9b1e057 Mon Sep 17 00:00:00 2001 From: qing <1776177662@qq.com> Date: Wed, 12 Aug 2026 15:32:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(dnfs):=20=E6=96=B0=E5=A2=9E=E4=B8=BB?= =?UTF-8?q?=E9=A2=98/=E6=A0=B7=E5=BC=8F=E7=A5=96=E5=85=88=E7=BB=A7?= =?UTF-8?q?=E6=89=BF=E2=80=94=E2=80=94=E5=BD=93=E5=89=8D=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E7=BC=BA=E5=A4=B1=E6=97=B6=E6=B2=BF=E6=A0=91=E5=90=91=E4=B8=8A?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E5=B9=B6=E6=B3=A8=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 提取 injectSpCss 复用 CSS 注入逻辑,renderSpCss 的 applyCss 去重。 inheritThemeStyle 在 load_notes 中检查当前层 theme/style,缺失时 沿 stack 向根逐级搜索最近祖先,找到后自动注入,支持跨导航取消。 --- fsys/public/js/dnfs.js | 75 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 65 insertions(+), 10 deletions(-) diff --git a/fsys/public/js/dnfs.js b/fsys/public/js/dnfs.js index 7c1076b..65e397d 100644 --- a/fsys/public/js/dnfs.js +++ b/fsys/public/js/dnfs.js @@ -614,6 +614,25 @@ function themeVarsToText(vars) { return lines.join('\n'); } +/* 将 theme/style 信封注入为