Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【提议】模块化插件支持 #859

Open
foxfire881 opened this issue Jul 30, 2024 · 0 comments
Open

【提议】模块化插件支持 #859

foxfire881 opened this issue Jul 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@foxfire881
Copy link

Cherry现在的耦合度太高了,很多模块例如Prism、Mermaid等都高度绑定,第三方一更新版本或者开发者想增加几个按钮、修改什么功能,都要严重依赖等待官方发布最新的整合包。

虽然开发者自己也可以修改源码,但是总体上还是比较麻烦,主要是自己改完了之后,官方一更新版本自己又得重来一遍,这也是为什么我一直不想自己修改源码的原因。

如果Cherry在基础功能之外可以规范接口,支持外挂模块化插件,自由度就更高、能吸引更多开发者加入了。

例如把工具栏、侧边栏、浮动条……等等每个按钮的功能都设计成接口形式插件化,对应插件只需要放进指定目录,Cherry本体启动时自动扫描、加载外挂插件,无需用户修改代码,也无需用户修改配置文件,仅仅只是把插件放进对应目录就行了……

—— 如此一来可以大幅降低耦合度,版本更新时不需要用户修改核心模块代码了, 更可以建立插件社区吸引更多开发者加入,集思广益对Cherry进行各种奇思妙想的扩展。

@sunsonliu sunsonliu added the enhancement New feature or request label Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants