2021-12-24 15:02:52 -08:00
|
|
|
import registerEvents from 'utilities/registerEvents';
|
2022-01-02 18:28:50 -08:00
|
|
|
import registerInboxEntryEvents from './entry';
|
|
|
|
import { authorSearchHandler } from './author';
|
|
|
|
import { deleteAllAuthorQuestionsHandler, deleteAllQuestionsHandler } from './delete';
|
|
|
|
import { generateQuestionHandler } from './generate';
|
2021-08-11 05:10:24 -07:00
|
|
|
|
|
|
|
export default (): void => {
|
2022-01-02 18:28:50 -08:00
|
|
|
registerEvents([
|
|
|
|
{ type: 'click', target: document.querySelector('#ib-generate-question'), handler: generateQuestionHandler },
|
|
|
|
{ type: 'click', target: document.querySelector('#ib-delete-all'), handler: deleteAllQuestionsHandler },
|
|
|
|
{ type: 'click', target: document.querySelector('#ib-delete-all-author'), handler: deleteAllAuthorQuestionsHandler },
|
|
|
|
{ type: 'submit', target: document.querySelector('#author-form'), handler: authorSearchHandler }
|
|
|
|
]);
|
2021-08-11 05:10:24 -07:00
|
|
|
|
2022-01-02 18:28:50 -08:00
|
|
|
registerInboxEntryEvents();
|
2021-08-11 05:10:24 -07:00
|
|
|
}
|