DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.
feat(dsh-tauri-ui): add PanelPage matching the official plugin page
hairyfadf004b0c6c0
diff --git a/packages/dsh-tauri-ui/src/client/components/index.ts b/packages/dsh-tauri-ui/src/client/components/index.tsindex 71f64e4c..cdc443e3 100644--- a/packages/dsh-tauri-ui/src/client/components/index.ts+++ b/packages/dsh-tauri-ui/src/client/components/index.ts@@ -2,5 +2,6 @@ export * from './icon'export type * from './icon'export * from './icons'export * from './menu-select'+export * from './panel-page'export * from './panel-width-sync'export { circleTreeSvg, clockSvg, FishMark, IconPlaceholder, PanelLeftOutline } from './special-icons'diff --git a/packages/dsh-tauri-ui/src/client/components/panel-page.cssr.ts b/packages/dsh-tauri-ui/src/client/components/panel-page.cssr.tsnew file mode 100644index 00000000..147a7178--- /dev/null+++ b/packages/dsh-tauri-ui/src/client/components/panel-page.cssr.ts@@ -0,0 +1,21 @@+import { cssr } from '../utils/cssr'++const { c, bem: { b } } = cssr++/**+ * 面板页几何:逐条对齐官方插件页 `@deepseek-ai/dsh-client-ui-plugin-manager`+ * 的 `.X_2TxG_page`(含 `>*{width:100%;max-width:960px}` 子项约束)。+ */+export default b('panel-page', {+ boxSizing: 'border-box',+ display: 'flex',+ flexDirection: 'column',+ alignItems: 'center',+ gap: '32px',+ height: '100%',+ padding: '28px clamp(24px, 4vw, 48px) 48px',+ overflow: 'auto',+ color: 'var(--dsw-alias-label-primary)',+}, [+ c('&>*', { width: '100%', maxWidth: '960px' }),+])diff --git a/packages/dsh-tauri-ui/src/client/components/panel-page.tsx b/packages/dsh-tauri-ui/src/client/components/panel-page.tsxnew file mode 100644index 00000000..851abc81--- /dev/null+++ b/packages/dsh-tauri-ui/src/client/components/panel-page.tsx@@ -0,0 +1,19 @@+import type { ReactElement, ReactNode } from 'react'+import { useMountStyle } from '../hooks/use-mount-style'+import panelPageStyle from './panel-page.cssr'++const PANEL_PAGE_STYLE_ID = 'dsh-tauri-ui-panel-page-styles'++/**+ * 面板页容器:复刻官方插件页(`@deepseek-ai/dsh-client-ui-plugin-manager` 的+ * `PluginManagerPage`)的页根几何,使第三方插件面板与官方左侧栏「插件」入口+ * 在左右留白、内容列宽与滚动行为上完全一致。+ *+ * 页根自持 `height:100%` + `overflow:auto`(`main` 槽宿主锚点是 `display:contents`,+ * 中心列不滚动),居中与间距由 `align-items:center` + `gap` 承担;面板自身根节点+ * 作为直接子项被 `>*` 规则夹到 960px。+ */+export function PanelPage({ children }: { children: ReactNode }): ReactElement {+ useMountStyle(panelPageStyle, PANEL_PAGE_STYLE_ID)+ return <div className="dshp-panel-page">{children}</div>+}