我们可以把 modules 和 constants 的命名区分下,不然会看起来比较奇怪,这里会怀疑获取的是一个不同的 Constant _Originally posted by @wewoor in https://github.com/DTStack/molecule/pull/471#discussion_r732653692_
Activity
mortalYoung commentedon Oct 21, 2021
另外需要优化的点在于,需要把 modules 做细分,例如有部分的 modules 是以 [xxx,xxx] 作为一个整体的,而我们如果想要禁用某一个 xxx 则会比较困难,需要对其做拆分,会有利于后续禁用内置模块
mortalYoung commentedon Oct 26, 2021
modules 和 constants 命名如下:
EXPLORER_ACTIVITY_ITEM、EDITOR_MENU_CLOSE_ALL.分割、以功能模块起始,如:editor.closeAll、sidebar.explore.saveALL.作为分割,如:menu.file.open看一哈 cc @wewoor
wewoor commentedon Oct 26, 2021
没太看懂 modules 部分的命名,如果是下面的这个例子:
命名是怎样的
mortalYoung commentedon Oct 26, 2021
考虑如下:
ExplorerRegisterPanelRegisterMenuRegisterActionRegisterContextMenuRegister,目前暂时想到这几个,后续待补充molecule.builtin.explorer.inactive()molecule.builtin.menu.inactive()来禁用相关的内置模块cc @wewoor