OK, I found my error. So I have now an additional page in admin, with the smtp button in it.
Graphically, there is still work to do, but it works.
Just in case, here is what I did (presently only on my computer) :
- 1) I copied ConfigureSMTPSettingModal.js in flarum\vendor\flarum\core\js\admin\src\components\
- 2) I modified AppearancePage.js :
- a) I added : import ConfigureSMTPSettingModal from 'flarum/components/ConfigureSMTPSettingModal';
- b) I cloned and modified the block for custom CSS :
- 3) I added the keys to core.yml
===============================================
To create a new page
I cloned ApearancePage.js and replaced Appearance by Advanced everywhere
I added : import EditCustomCssModal from 'flarum/components/EditCustomCssModal';
In initializers/routes.js, I added two lines :
import AdvancedPage from 'flarum/components/AdvancedPage';
'advanced': {path: '/advanced', component: AdvancedPage.component()},
In adminNav, I added an item
In core/lesss/admin I added a file : Advanced.less
Recompile.
Enjoy.