D

dsh-plugin-better-sidebar-plugin-office

@huanlin/dsh-plugin-better-sidebar-plugin-office

v0.2.0 界面与主题

DSH Web 插件:为 better-sidebar 编辑器提供 Office 文件预览(.docx/.xlsx/.pptx)。通过 ctx.betterSidebar.registerFileViewer 注册 docx/xlsx/pptx 文件查看器,把沉重的 Office 渲染库(docx-preview / Univer / SheetJS /

作者原文(英文)

DSH web plugin: Office file previewers (.docx/.xlsx/.pptx) for the better-sidebar editor. Registers the docx/xlsx/pptx file viewers through ctx.betterSidebar.registerFileViewer, keeping the heavy Office render libraries (docx-preview / Univer / SheetJS /

中文简介由 DeepSeek 模型翻译,仅供参考。

dsh-plugin
分类
ui
发布
2026-09-04
版本
v0.2.0

检测报告

能力很少。几乎没有命中能力模式,源码里很少出现敏感调用。
1一般23未命中
高关注需留意一般

能力清单

  • 动态加载模块dynamic-import一般4 处命中
    • lib/types/client/icons.d.ts:11export declare const IconDocxOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
    • lib/types/client/icons.d.ts:13export declare const IconXlsxOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
    • lib/types/client/icons.d.ts:15export declare const IconPptxOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
    • lib/types/client/PptxView.d.ts:6}): import("react").JSX.Element;
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
能力标识关注度命中次数
动态加载模块dynamic-import一般4

这份报告的口径

扫描读的是包里的源码,全程不执行第三方代码。 本次读了 13 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。

依赖安全公告

这个插件声明的依赖中,有 2 条已公开的安全公告 (最高等级:高):

等级依赖包编号摘要
高xlsxCVE-2023-30533Prototype Pollution in sheetJS 详情 →
中xlsxCVE-2024-22363SheetJS Regular Expression Denial of Service (ReDoS) 详情 →

查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0), 不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响—— 所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自 OSV.dev。

← 返回全部插件