Revert "feat: add community plugin discovery entry to DSH manager"

This reverts commit 03232a590c.
This commit is contained in:
techflag
2026-09-26 18:44:50 +08:00
parent 03232a590c
commit 1ff24f2e58
4 changed files with 0 additions and 25 deletions
-1
View File
@@ -61,7 +61,6 @@
"@deepseek-ai/dsh-client-connection": "0.1.7-rc.2",
"@deepseek-ai/dsh-client-ui-conversation": "0.1.7-rc.2",
"@deepseek-ai/dsh-client-ui-layout": "0.1.7-rc.2",
"@deepseek-ai/dsh-client-ui-plugin-manager": "0.1.7-rc.2",
"@deepseek-ai/dsh-client-ui-renderer": "0.1.7-rc.2",
"@deepseek-ai/dsh-client-ui-sidebar": "0.1.7-rc.2",
"@deepseek-ai/dsh-client-ui-sidebar-right": "0.1.7-rc.2",
@@ -1,15 +0,0 @@
import type { ReactNode } from 'react';
/** This is a discovery link, not a second plugin installer or a copied catalog. */
export function CommunityPlugins({ view }: { readonly view: 'summary' | 'page' }): ReactNode {
if (view === 'summary') return 'WorkDSH 提供的第三方 DSH 插件发现入口;不是 DSH 官方推荐。';
return (
<div style={{ display: 'grid', gap: 16, maxWidth: 680, lineHeight: 1.65 }}>
<p style={{ margin: 0 }}>在 dshmarket 浏览社区插件,确认作者、来源、版本及兼容性后,复制包名或仓库地址,再使用此页面右上角的“添加插件”安装。</p>
<p style={{ margin: 0 }}>dshmarket 是独立的第三方网站。打开后适用该网站的内容和隐私政策;WorkDSH 不会自动安装其中的插件。</p>
<a href="https://dshmarket.com/zh/" target="_blank" rel="noopener noreferrer" style={{ width: 'fit-content', padding: '10px 16px', borderRadius: 8, background: '#3679ed', color: '#fff', textDecoration: 'none', fontWeight: 600 }}>
前往 dshmarket 浏览社区插件 ↗
</a>
</div>
);
}
@@ -1,9 +1,7 @@
import { ShellAppearance } from '../components/ShellAppearance.js';
import { CommunityPlugins } from '../components/CommunityPlugins.js';
import type { Context } from '@deepseek-ai/cordis';
import type {} from '@deepseek-ai/dsh-api-remotes/client';
import type {} from '@deepseek-ai/dsh-client-ui-renderer/client';
import type {} from '@deepseek-ai/dsh-client-ui-plugin-manager/client';
import type {} from '@deepseek-ai/dsh-client-ui-sidebar/client';
import type {} from '@deepseek-ai/dsh-client-ui-sidebar-right/client';
import type {} from '@deepseek-ai/dsh-client-ui-session/client';
@@ -28,10 +26,6 @@ const productViews: Readonly<Record<string, string>> = {
};
export function apply(ctx: Context): void {
ctx.slots.inject('plugins.item', () => ctx.slots.register({
name: 'plugins.item', id: 'workdsh-community-plugins', order: 100,
label: 'WorkDSH · 发现社区插件',
}, CommunityPlugins));
let legacyBrowserEnabled = false;
ctx.effect(() => {
const controller = new AbortController();
-3
View File
@@ -440,9 +440,6 @@ importers:
'@deepseek-ai/dsh-client-ui-layout':
specifier: 0.1.7-rc.2
version: 0.1.7-rc.2(@deepseek-ai/[email protected])
'@deepseek-ai/dsh-client-ui-plugin-manager':
specifier: 0.1.7-rc.2
version: 0.1.7-rc.2(@deepseek-ai/[email protected])
'@deepseek-ai/dsh-client-ui-renderer':
specifier: 0.1.7-rc.2
version: 0.1.7-rc.2(@deepseek-ai/[email protected])