Retrospring/app/javascript/packs/application.ts

29 lines
1.5 KiB
TypeScript
Raw Normal View History

require('../styles/application.scss');
import start from 'retrospring/common';
import initAnnouncements from 'retrospring/features/announcement';
import initAnswerbox from 'retrospring/features/answerbox/index';
import initInbox from 'retrospring/features/inbox/index';
2021-12-24 18:33:09 -08:00
import initUser from 'retrospring/features/user';
import initSettings from 'retrospring/features/settings/index';
2021-12-28 12:12:33 -08:00
import initLists from 'retrospring/features/lists';
import initQuestionbox from 'retrospring/features/questionbox';
import initQuestion from 'retrospring/features/question';
2022-01-07 17:51:23 -08:00
import initModeration from 'retrospring/features/moderation';
2022-01-13 14:01:42 -08:00
import initMemes from 'retrospring/features/memes';
2022-01-13 14:43:35 -08:00
import initLocales from 'retrospring/features/locales';
2022-04-09 17:37:54 -07:00
import initFront from 'retrospring/features/front';
start();
document.addEventListener('DOMContentLoaded', initAnswerbox);
document.addEventListener('DOMContentLoaded', initInbox);
2021-12-28 12:12:33 -08:00
document.addEventListener('DOMContentLoaded', initUser);
document.addEventListener('turbo:load', initSettings);
document.addEventListener('DOMContentLoaded', initLists);
document.addEventListener('DOMContentLoaded', initQuestionbox);
2022-01-07 17:51:23 -08:00
document.addEventListener('DOMContentLoaded', initQuestion);
document.addEventListener('DOMContentLoaded', initModeration);
2022-01-13 14:01:42 -08:00
document.addEventListener('DOMContentLoaded', initMemes);
document.addEventListener('turbo:load', initAnnouncements);
document.addEventListener('turbo:load', initLocales);
document.addEventListener('turbo:load', initFront);