dsh-web-ui
zhu1090093659
Plugin and skin collection for DeepSeek Harness (DSH) Web UI - task board, git graph, right-side panel, remote mobile UI, pet, live token stats, and skin center.
alcohol-101/dsh-gif-background
Custom background (image / GIF / animated wallpaper) plugin for the DeepSeek Harness (DSH) Web GUI - enable switch plus a local asset library, with separate display mechanisms for the official theme and skin-center skins.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:alcohol-101/dsh-gif-background
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A standalone plugin that adds a custom background (image / GIF / animated wallpaper) to the DeepSeek Harness (DSH) Web GUI: one enable switch plus a local asset library, with two display mechanisms that cooperate with the official theme and the dsh-web-ui skin center.
gif / jpg / jpeg / png / webp, 100 MB limit), delete, rename, refresh. Deleting the asset currently in use falls back to the built-in background.background-image and a translucent token override sheet lets the panels show it through. The built-in art is served through a short API URL, because multi-MB base64 data URLs inside CSS declarations are silently dropped by the browser parser.Prerequisites: DSH 0.1.x. Restart dsh web after installing, then hard-refresh the browser (Ctrl+F5).
dsh plugin --profile web add dsh-gif-background
git clone https://github.com/alcohol-101/dsh-gif-background.git
dsh plugin --profile web add "link:<path-to-the-cloned-repo>"
Settings → Plugins → the Custom Background card:
gifs/ and hit refresh.Two mechanisms, switched automatically by page state:
--dsw-alias-bg-base, -bg-layer-1/2/3, -bg-module-platform, --dsw-specific-sidebar-fill; light and dark pairs) is injected so the panels become translucent.z-index:-1 plus a scrim layer remain; the skin's own translucent #root surface lets the backdrop through naturally.Note: the dsh-web-ui skin center keeps a data-dsh-skin-center scope attribute on <body> even when no skin is active. Older versions mistook that for an active skin and never painted the official theme; the current version whitelists it and only treats the skins' own body attributes as skins.
dsh-gif-background/
├── client/
│ ├── client.template.js # browser-half source (__GIF_BASE64__ placeholder)
│ └── build.mjs # builds lib/client.js, embedding gifs/builtin.gif
├── lib/
│ ├── index.js # host half: loopback-only asset API
│ └── client.js # browser bundle (committed so link installs need no build)
├── gifs/
│ └── builtin.gif # built-in background (uploads stay local, gitignored)
├── docs/维护指南.md # code walkthrough for maintainers (Chinese)
├── .github/workflows/ci.yml # CI: rebuild check + legacy identifier guard
├── cordis.patch.yml # dsh bundle patch: declares the plugin row
├── CONTRIBUTING.md # contribution guide
└── package.json # dsh.client injects + exports
client/client.template.js, then node client/build.mjs to rebuild lib/client.js.lib/index.js.dsh web; browser-only changes only need Ctrl+F5.lib/client.js is stale or legacy identifiers reappear; failures notify you by email.docs/维护指南.md (a commented walkthrough in Chinese) and CONTRIBUTING.md.Pitfalls worth recording:
background-image value is silently dropped by the parser → the built-in background goes through a short API URL instead.MutationObserver fires for setAttribute even when the value is unchanged (whatwg/dom#520) → every attribute write is guarded against the same value; an unguarded write retriggers the observer forever and freezes the page.prefix route matches pathname.startsWith(prefix + '/'), so the prefix must not carry a trailing slash; register one exact route per path and dispatch by HTTP method.A short ffmpeg recipe (scale + dither palette, infinite loop):
ffmpeg -y -i input.mp4 -t 33 \
-vf "fps=8,scale=840:-1:flags=lanczos,split[s0][s1];[s0]palettegen=max_colors=160:stats_mode=diff[p];[s1][p]paletteuse=dither=floyd_steinberg:diff_mode=rectangle" \
-loop 0 builtin.gif
For a seamless loop, cut the segment and crossfade it onto itself (xfade) before palettizing.
The switch is on but no background shows under the official theme?
Hard-refresh (Ctrl+F5), then check in the DevTools console:
document.body.attributes should contain data-dsh-gif-bg="on" and NOT data-dsh-gif-bg-skin;document.querySelector('[data-dsh-frame]').style.backgroundImage should contain the asset URL;getComputedStyle(document.body).getPropertyValue('--dsw-alias-bg-base') should be an rgba value.If step 1 fails, a skin-center skin is active — in skin mode the background shows behind the skin's panels.
Want a different panel translucency under the official theme?
Edit the rgba values in SKINLESS_CSS in client/client.template.js (both light and dark pairs), rebuild, then Ctrl+F5.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: web-ui。