文件
mynode/packages/lib/services/plugins/utils/isCompatible/getDefaultPlatforms.ts
chen 301194963b
一些检查失败了
automerge / automerge (push) Has been cancelled
react-native-android-build-apk / AssembleRelease (push) Has been cancelled
Build macOS M1 / Main (push) Has been cancelled
Joplin Continuous Integration / Main (macos-15-intel) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-11-vs2026-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-2025) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04-arm) (push) Has been cancelled
Joplin UI tests / Main (ubuntu-22.04) (push) Has been cancelled
Joplin UI tests / Main (windows-2025) (push) Has been cancelled
Joplin UI tests / Mobile (push) Has been cancelled
Close stale issues / ProcessStaleIssues (push) Has been cancelled
feat: Initial clean release of CHM
2026-11-04 11:29:39 +08:00

44 行
1.4 KiB
TypeScript

// Although `platforms: ['desktop', 'mobile']` is required to support both mobile
// and desktop, no plugin authors have done this as of 04/25/2024. As such, we include
// a list of plugins that have "platforms" default to ['desktop', 'mobile'] rather
// than just ['desktop'].
// cSpell:disable
const defaultSupportMobile = [
'com.github.joplin.kanban',
'com.hieuthi.joplin.function-plot',
'com.hieuthi.joplin.markdown-table-colorize',
'com.joplin.copy.codeBlocks',
'com.whatever.inline-tags',
'com.whatever.quick-links',
'cx.evermeet.tessus.menu-shortcut-toolbar',
'io.github.personalizedrefrigerator.codemirror6-settings',
'io.github.personalizedrefrigerator.revealjs-integration',
'io.treymo.LinkGraph',
'jl15988.JoplinAlertsPerfectPlugin',
'jl15988.JoplinCodePerfectPlugin',
'joplin.plugin.alondmnt.history-panel',
'joplin.plugin.ambrt.backlinksToNote',
'joplin.plugin.ambrt.embedSearch',
'joplin.plugin.note.tabs',
'joplin.plugin.spoiler.cards',
'net.cwesson.joplin-plugin-typograms',
'org.joplinapp.plugins.AbcSheetMusic',
'org.joplinapp.plugins.admonition',
'org.joplinapp.plugins.joplin-calendar',
'outline',
'plugin.calebjohn.MathMode',
'plugin.calebjohn.rich-markdown',
];
// cSpell:enable
const getDefaultPluginPlatforms = (id: string) => {
if (defaultSupportMobile.includes(id)) {
return ['desktop', 'mobile'];
} else {
return ['desktop'];
}
};
export default getDefaultPluginPlatforms;