2019-10-05 02:09:52 +02:00
|
|
|
/**
|
|
|
|
* Functions to execute when the DOM is ready
|
|
|
|
*/
|
|
|
|
|
2023-11-23 17:07:49 +01:00
|
|
|
import { whenReady } from './utils/dom';
|
2019-10-05 02:09:52 +02:00
|
|
|
|
2023-11-23 17:07:49 +01:00
|
|
|
import { showOwnedComments } from './communications/comment';
|
|
|
|
import { showOwnedPosts } from './communications/post';
|
2019-10-05 02:09:52 +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';
|
2022-01-31 20:28:38 +01:00
|
|
|
import { setupDupeReports } from './duplicate_reports';
|
2024-06-05 22:56:48 +02:00
|
|
|
import { setSesCookie } from './fp';
|
2019-10-05 02:09:52 +02:00
|
|
|
import { setupGalleryEditing } from './galleries';
|
|
|
|
import { initImagesClientside } from './imagesclientside';
|
|
|
|
import { bindImageTarget } from './image_expansion';
|
|
|
|
import { setupEvents } from './misc';
|
|
|
|
import { setupNotifications } from './notifications';
|
|
|
|
import { setupPreviews } from './preview';
|
|
|
|
import { setupQuickTag } from './quick-tag';
|
|
|
|
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';
|
2022-01-31 20:28:38 +01:00
|
|
|
import { setupToolbar } from './markdowntoolbar';
|
2019-10-05 02:09:52 +02:00
|
|
|
import { hideStaffTools } from './staffhider';
|
|
|
|
import { pollOptionCreator } from './poll';
|
2022-03-24 17:31:57 +01:00
|
|
|
import { warnAboutPMs } from './pmwarning';
|
2021-10-10 01:03:18 +02:00
|
|
|
import { imageSourcesCreator } from './sources';
|
2024-05-31 20:07:00 +02:00
|
|
|
import { sizeGraphs } from './graph';
|
2024-06-03 23:07:10 +02:00
|
|
|
import { setupSliders } from './slider';
|
2019-10-05 02:09:52 +02:00
|
|
|
|
|
|
|
whenReady(() => {
|
|
|
|
|
|
|
|
showOwnedComments();
|
|
|
|
showOwnedPosts();
|
|
|
|
loadBooruData();
|
|
|
|
listenAutocomplete();
|
|
|
|
registerEvents();
|
|
|
|
setupBurgerMenu();
|
|
|
|
bindCaptchaLinks();
|
|
|
|
initImagesClientside();
|
|
|
|
setupComments();
|
|
|
|
setupDupeReports();
|
2024-06-05 22:56:48 +02:00
|
|
|
setSesCookie();
|
2019-10-05 02:09:52 +02:00
|
|
|
setupGalleryEditing();
|
|
|
|
bindImageTarget();
|
|
|
|
setupEvents();
|
|
|
|
setupNotifications();
|
|
|
|
setupPreviews();
|
|
|
|
setupQuickTag();
|
|
|
|
setupSettings();
|
|
|
|
listenForKeys();
|
|
|
|
initTagDropdown();
|
|
|
|
setupTagListener();
|
|
|
|
setupTagEvents();
|
|
|
|
setupTimestamps();
|
|
|
|
setupImageUpload();
|
|
|
|
setupSearch();
|
2020-12-08 06:21:44 +01:00
|
|
|
setupToolbar();
|
2019-10-05 02:09:52 +02:00
|
|
|
hideStaffTools();
|
|
|
|
pollOptionCreator();
|
2022-03-24 17:31:57 +01:00
|
|
|
warnAboutPMs();
|
2021-10-10 00:50:57 +02:00
|
|
|
imageSourcesCreator();
|
2024-06-03 23:07:10 +02:00
|
|
|
setupSliders();
|
2024-05-31 20:07:00 +02:00
|
|
|
sizeGraphs();
|
2019-10-05 02:09:52 +02:00
|
|
|
|
|
|
|
});
|