Questions:
I noticed that in ./platform/src/app/routes/Mode/Mode.tsx
, retrieveLayoutData
directly uses leftPanels
and rightPanels
as variables. This forces us to provide these two variables in the layoutTemplate
of “mode”. I think “PanelServices” should not be used in this way.
Solutions:
Can we use a format like panels: [{ position: 'left', component: LeftPanelComponent }, ...]
in “mode”, and then in ./platform/src/app/routes/Mode/Mode.tsx
, we just need to retrieve the panels
?
Finals:
I think this change might enhance the extensibility to some extent. If this suggestion is not accepted, please let me know. Thank you very much.