MCPcopy
hub / github.com/ZToolsCenter/ZTools / getSettingPluginPath

Method getSettingPluginPath

src/main/api/plugin/redirect.ts:260–270  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

258 }
259
260 private getSettingPluginPath(): string {
261 const plugins = databaseAPI.dbGet('plugins')
262 if (!plugins || !Array.isArray(plugins)) {
263 throw new Error('未找到插件列表')
264 }
265 const settingPlugin = plugins.find((p: any) => p.name === 'setting')
266 if (!settingPlugin) {
267 throw new Error('未找到设置插件')
268 }
269 return settingPlugin.path
270 }
271}
272
273export default new PluginRedirectAPI()

Callers 1

redirectToSettingPageMethod · 0.95

Calls 1

dbGetMethod · 0.45

Tested by

no test coverage detected