Skip to main content

dsh-ui-web/packages/skins/ths

34Stars2Forks0Issues0Watchers

iFinD-style stock trading theme for DSH Web, featuring brand-red title bar, market quote status bar, and trading terminal panel.

Evidence5/5methodologySourceInstallMaintenanceDSH versionSecurity scan
Machine-auditedInstall commandRepo verifieddsh-plugin topicLicenseREADMEAI wiki

ⓘ This plugin is a sub-package of the CAPTAIN1275/dsh-ui-web monorepo — stars and activity count the whole repository.

Language
TypeScript
License
Apache-2.0
Branch
main
dsh-plugindsh-plugin-marketdsh-plugins

Install

cmdweb profile
$ dsh plugin --profile web add @captain1275/dsh-client-ui-skin-ths

Run the command above in your terminal to install this plugin via the dsh CLI. You can switch Profile in the top-right corner. New to dsh? Read the beginner tutorial

Install via your agent

Install the DeepSeek Harness plugin CAPTAIN1275/dsh-ui-web/packages/skins/ths for me: review the repository at https://github.com/CAPTAIN1275/dsh-ui-web first, then run the install command and verify the plugin loads successfully.

Paste this instruction to the DSH Web GUI assistant — it will install and verify for you.

One-Line Positioning

Transform the entire DSH Web interface into the visual style of the Tonghuashun stock trading terminal: a brand-red fixed title bar with Shanghai Composite Index quote, a red-up green-down market status bar at the bottom, a stock watchlist-style sidebar and trading terminal color scheme, wrapping the coding experience with a "market watching" skin.

Core Capabilities

  • Set the data-dsh-ths body attribute as the scope for the entire Tonghuashun stylesheet; all theme tokens including colors and fonts are overridden via this attribute
  • Insert a brand-red fixed title bar at the top of the page: white candle SVG icon on the left + "同花顺 · DeepSeek 在线" title + Shanghai Composite Index quote (value/change %), three decorative window button characters on the right
  • Insert a market status bar at the bottom of the page: brand color "同花顺" on the left + Shanghai/Shenzhen/ChiNext index cells (red-up green-down color scheme) + Ready/Connected/Online status + real-time "Code Index" cell
  • Inject a red-background "同" character SVG favicon into head and pin the document title to "同花顺 · DeepSeek 在线" (does not affect title overrides after session start)
  • Every 30 seconds, aggregate all workspaces' daily net code line additions via codeKline RPC, rendering the change text and color for the "Code Index" cell
  • Lock onto its own Tonghuashun color palette under both Light/Dark Appearance themes, providing "day session/night session" two visual modes

Technical Implementation

  • Language: TypeScript (CSS Modules with lightningcss compilation)
  • Key Dependencies: @deepseek-ai/cordis (effect lifecycle), @deepseek-ai/dsh-client-connection (only reads codeKline/workspace RPC via ConnectionHandle), built with tsdown
  • Architecture Pattern: Standard DSH client plugin: host half (src/index.ts) is empty apply placeholder, client half (src/client/index.ts) injects DOM chrome; registered as plugin entry ui-skin-ths via cordis.patch.yml, managed mutually exclusively by dsh-skin use script
  • Entry File: packages/skins/ths/src/client/index.ts:75 (apply(ctx) is the only runtime entry)

Applicable Scenarios

For users who want an immersive visual switch during long hours of watching the market while coding, or simply prefer the red-blue color scheme of Tonghuashun/East Money style trading terminals. The skin only overlays chrome and tokens at the visual layer, does not affect AI conversations, does not modify model requests, and does not touch user data—suitable for "changing mood without changing functionality".

Prerequisites & Compatibility

DependencyMin VersionDescription
DSH Web Main ProgramNot DeclaredOnly declares client injection @deepseek-ai/dsh-client-connection (devDependencies: ^0.1.0-rc.6), no hard-coded DSH version in package.json
NodeNot DeclaredNo engines field declared in package; build requires pnpm ≥10 (git install first prompts adding package key to allowBuilds in profile's pnpm-workspace.yaml)
PlatformCross-PlatformPure browser DOM operations, no OS binding; works on macOS/Windows/Linux desktop DSH clients
Native ModulesNoneNo node native module dependencies
Extra Requirementdata-pane attribute on AppFrame columnsFrom ui-layout package; without it, panel-level chrome (sidebar gradient/session detail surface) won't take effect, window title bar and status bar still work normally

Installation

dsh plugin --profile web add github:CAPTAIN1275/dsh-ui-web/packages/skins/ths

Enable: dsh-skin use ths (repository scripts/dsh-skin helper script), only one skin can be active at a time.

Configuration

No additional configuration required. All visual aspects (market text, index values, colors, refresh frequency) are hardcoded in the source code—no switches, no environment variables, no Schema fields after installation.

FAQ

Q: Any configuration needed after installation?

A: No. This skin is a pure presentation layer plugin, it doesn't read environment variables, register config items, or create services. Just restart DSH Web after installation and enable with dsh-skin use ths.

Q: Does it intercept or modify model requests?

A: No. apply() only modifies browser DOM, doesn't inject services, doesn't fire cordis events, and doesn't touch any provider requests; KV Cache is unaffected.

Q: Are the index values in the status bar real-time market data?

A: No. The Shanghai Composite Index / Shenzhen Component Index / ChiNext Index values in the status bar are fixed text, purely for visual effect. What does change dynamically is the "Code Index" cell, which aggregates all workspaces' daily net code line additions every 30 seconds.

Q: Can multiple skins be enabled at the same time?

A: No. Tonghuashun, Aurora, and other skins all inject elements into the window chrome simultaneously; the documentation clearly requires only one skin entry active at a time. To switch themes, use dsh-skin use <other-skin>, or uninstall this package to return to default appearance.

Q: Will the page revert to original after uninstall?

A: Yes. On cordis unload, the effect cleaner removes the body attribute, title bar, status bar, favicon, and restores the overwritten document title; if the user has opened sessions with titles while the skin was active, the skin won't override the session titles.

Q: Will the loading page (splash screen) be styled by this skin?

A: No. The shell's splash screen renders before the plugin bundle loads; the skin takes effect starting from the finalized UI; the splash screen's internal cards remain in modern style.

Q: Will switching to dark theme revert to non-skin appearance?

A: No. The skin locks its own color palette under both data-ds-dark-theme states; switching Appearance themes gives you light/dark trading terminal color schemes, not the default DSH appearance.

Q: Why don't the minimize/maximize/close buttons in the title bar respond to clicks?

A: Those buttons are decorative characters (aria-hidden), only for visual simulation, not bound to any window control events; actual window operations still go through the operating system.

Difficulty Level

Beginner — one install command + one enable command, no configuration items; the only prerequisite is having ui-layout correctly installed to see full panel-level styling.

Known Issues & Limitations

  • Splash screen remains unchanged: DSH shell splash screen renders before plugin bundle, skin takes effect starting from finalized UI; once attributes are set, splash screen also gets window borders, but its internal cards remain in modern style
  • Theme switching locked inside skin: both data-ds-dark-theme states map to the skin's own light/dark terminal color scheme; switching Appearance themes won't return to default DSH appearance
  • Index cells are decorative fixed text: Shanghai Composite Index / Shenzhen Component Index / ChiNext Index values in status bar are hardcoded in source, not tracking real market data
  • Only one skin allowed at a time: enabling two skins simultaneously causes chrome overlap; recommend using scripts/dsh-skin to centrally manage skin switching
  • "Code Index" cell degrades to dash placeholder when codeKline RPC unavailable: implementation uses try/catch + explicit api === undefined check; failure won't crash the terminal, but user won't see any data

Read the usage guide →

Install steps, key points, FAQ and compatibility for this plugin — auto-derived from indexed fields.

Listing badge

Listed on deepseek-plugin.org
[![Listed on deepseek-plugin.org](https://img.shields.io/badge/listed_on-deepseek--plugin.org-007EC6)](https://deepseek-plugin.org/plugins/CAPTAIN1275/dsh-ui-web/packages/skins/ths)

Paste this markdown into your GitHub README to link back to this listing. The badge only states the listing — not a security endorsement.

← Back to plugin directory