Add global JavaScript user callbacks
Idea: pheix-io/ethelia#29 (closed)
Issues to be sorted out:
- Requirements for UI/UX widgets, minimal list:
- Specific
id
for block to be hidden onlogin
/auth
(BLOCK_A); - Specific
id
for block to be shown onlogin
/auth
(BLOCK_B); - Riot.js component for BLOCK_B, shall we render it?
- Specific
- Distinguish
login
/auth
,logout
/exit
,extend
orrefresh
events in callbacks;- on
refresh
we should update fallback to BLOCK_A and then revert BLOCK_B on successful refresh.
- on
- User's JavaScript code integration, callback names, arguments;