retrospring/app/javascript/packs/application.ts

21 lines
1 KiB
TypeScript
Raw Normal View History

require('sweetalert/dist/sweetalert.css');
import start from 'retrospring/common';
import initAnswerbox from 'retrospring/features/answerbox/index';
import initInbox from 'retrospring/features/inbox/index';
2021-12-25 03:33:09 +01:00
import initUser from 'retrospring/features/user';
import initSettings from 'retrospring/features/settings/index';
2021-12-28 21:12:33 +01:00
import initLists from 'retrospring/features/lists';
import initQuestionbox from 'retrospring/features/questionbox';
import initQuestion from 'retrospring/features/question';
2022-01-08 02:51:23 +01:00
import initModeration from 'retrospring/features/moderation';
start();
2021-08-10 13:16:40 +02:00
document.addEventListener('turbolinks:load', initAnswerbox);
document.addEventListener('DOMContentLoaded', initInbox);
2021-12-28 21:12:33 +01:00
document.addEventListener('DOMContentLoaded', initUser);
document.addEventListener('turbolinks:load', initSettings);
document.addEventListener('DOMContentLoaded', initLists);
document.addEventListener('DOMContentLoaded', initQuestionbox);
2022-01-08 02:51:23 +01:00
document.addEventListener('DOMContentLoaded', initQuestion);
document.addEventListener('DOMContentLoaded', initModeration);