Split frontend UI into feature modules
This commit is contained in:
14
wwwroot/js/ui-runtime.js
Normal file
14
wwwroot/js/ui-runtime.js
Normal file
@@ -0,0 +1,14 @@
|
||||
const runtime = {
|
||||
refreshPhaseData: async () => {},
|
||||
loadSuggestData: async () => {},
|
||||
loadVoteData: async () => {},
|
||||
handleAuthError: () => false,
|
||||
};
|
||||
|
||||
export function configureUiRuntime(deps) {
|
||||
Object.assign(runtime, deps ?? {});
|
||||
}
|
||||
|
||||
export function getUiRuntime() {
|
||||
return runtime;
|
||||
}
|
||||
Reference in New Issue
Block a user