Files
apes-sidebar/src/client/plugins-viewers.ts
T
shuuul 82e24d87b8 feat: add dsh-bioviewer to the file-previewer catalog
Register BioViewer as a recommended better-sidebar file previewer for
PDB, mmCIF, MRC maps, small molecules and Chimera .cmm markers.
2026-11-18 16:15:53 +08:00

60 lines
2.5 KiB
TypeScript

/**
* The built-in catalog of FILE-PREVIEWER plugins (file-type previewers),
* shown in the "add preview plugin" modal (Side card settings → 文件预览
* grid → the dashed card). Adding an entry: append one object here (unique
* `id` = npm package name, `name` / `description` = i18n-friendly (add a
* `pluginXxxName` / `pluginXxxDesc` key in locales.ts), `url` = GitHub repo,
* `install` = the full shell command pre-filled into the
* install terminal — it starts with `cd ~/.dsh` so the install runs with
* the DSH home as the working directory). Data integrity is guarded by
* `tests/plugin-list.spec.ts`.
*/
import { t } from './locales.ts'
import type { PluginEntry } from './plugins-shared.ts'
/** File-previewer plugins (alphabetical order). */
export const builtinViewerPlugins: readonly PluginEntry[] = [
{
id: '@huanlin/dsh-plugin-better-sidebar-plugin-office',
name: () => t('pluginOfficeName'),
url: 'https://github.com/HuanLinOTO/dsh-plugin-better-sidebar-plugin-office',
description: () => t('pluginOfficeDesc'),
install: 'cd ~/.dsh && dsh plugin --profile web add @huanlin/dsh-plugin-better-sidebar-plugin-office',
},
{
id: 'dsh-md-export',
name: () => t('pluginMdExportName'),
url: 'https://github.com/AnakinCao/dsh-md-export',
description: () => t('pluginMdExportDesc'),
install: 'cd ~/.dsh && dsh plugin --profile web add dsh-md-export',
},
{
id: 'dsh-code-nav',
name: () => t('pluginCodeNavName'),
url: 'https://github.com/AnakinCao/dsh-code-nav',
description: () => t('pluginCodeNavDesc'),
install: 'cd ~/.dsh && dsh plugin --profile web add https://github.com/AnakinCao/dsh-code-nav.git',
},
{
id: 'dsh-video-preview',
name: () => t('pluginVideoPreviewName'),
url: 'https://github.com/zemul/dsh-video-preview',
description: () => t('pluginVideoPreviewDesc'),
install: 'cd ~/.dsh && dsh plugin --profile web add dsh-video-preview',
},
{
id: '@huanlin/dsh-plugin-better-sidebar-plugin-audio',
name: () => t('pluginAudioName'),
url: 'https://github.com/HuanLinOTO/dsh-plugin-better-sidebar-plugin-audio',
description: () => t('pluginAudioDesc'),
install: 'cd ~/.dsh && dsh plugin --profile web add @huanlin/dsh-plugin-better-sidebar-plugin-audio',
},
{
id: 'dsh-bioviewer',
name: () => t('pluginBioviewerName'),
url: 'https://github.com/shuuul/dsh-bioviewer',
description: () => t('pluginBioviewerDesc'),
install: 'cd ~/.dsh && dsh plugin --profile web add dsh-bioviewer',
},
]