agama-project / agama

A service-based Linux installer
https://agama-project.github.io/
GNU General Public License v2.0
146 stars 42 forks source link

[web] Stop exporting all components #1049

Open dgdavid opened 9 months ago

dgdavid commented 9 months ago

TL;DR: rewrote namespace/index.js files for exporting only public components


As discussed at https://github.com/openSUSE/agama/pull/1045#discussion_r1497103964, right now we're exporting all components via their namespace's index.js file. However, as @joseivanlopez wrotes, it should export the pages and the components that might be reused from pages out of its namespace. The rest should be considered as internal components.

Instead of start diverging the way it is currently done in a single namespace, I've created this issue for addressing all of them at once.

lslezak commented 6 months ago

Note: exporting everything and using the internal components might cause dependency cycles which break hot module replacement. See related #1214 .