philomena/assets/js/when-ready.ts

68 lines
2 KiB
TypeScript
Raw Normal View History

2019-10-05 02:09:52 +02:00
/**
* Functions to execute when the DOM is ready
*/
2024-07-04 02:27:59 +02:00
import { whenReady } from './utils/dom';
2019-10-05 02:09:52 +02:00
2024-07-04 02:27:59 +02:00
import { listenAutocomplete } from './autocomplete';
import { loadBooruData } from './booru';
import { registerEvents } from './boorujs';
import { setupBurgerMenu } from './burger';
import { bindCaptchaLinks } from './captcha';
import { setupComments } from './comment';
import { setupDupeReports } from './duplicate_reports';
import { setSesCookie } from './fp';
import { setupGalleryEditing } from './galleries';
2019-10-05 02:09:52 +02:00
import { initImagesClientside } from './imagesclientside';
2024-07-04 02:27:59 +02:00
import { bindImageTarget } from './image_expansion';
import { setupEvents } from './misc';
import { setupNotifications } from './notifications';
import { setupPreviews } from './preview';
import { setupQuickTag } from './quick-tag';
import { initializeListener } from './resizablemedia';
import { setupSettings } from './settings';
import { listenForKeys } from './shortcuts';
import { initTagDropdown } from './tags';
import { setupTagListener } from './tagsinput';
import { setupTagEvents } from './tagsmisc';
import { setupTimestamps } from './timeago';
import { setupImageUpload } from './upload';
import { setupSearch } from './search';
import { setupToolbar } from './markdowntoolbar';
import { hideStaffTools } from './staffhider';
import { pollOptionCreator } from './poll';
import { warnAboutPMs } from './pmwarning';
import { imageSourcesCreator } from './sources';
2019-10-05 02:09:52 +02:00
whenReady(() => {
loadBooruData();
listenAutocomplete();
registerEvents();
setupBurgerMenu();
bindCaptchaLinks();
initImagesClientside();
setupComments();
setupDupeReports();
setSesCookie();
2019-10-05 02:09:52 +02:00
setupGalleryEditing();
bindImageTarget();
setupEvents();
setupNotifications();
setupPreviews();
setupQuickTag();
initializeListener();
setupSettings();
listenForKeys();
initTagDropdown();
setupTagListener();
setupTagEvents();
setupTimestamps();
setupImageUpload();
setupSearch();
setupToolbar();
2019-10-05 02:09:52 +02:00
hideStaffTools();
pollOptionCreator();
2022-03-24 17:31:57 +01:00
warnAboutPMs();
imageSourcesCreator();
2019-10-05 02:09:52 +02:00
});