Commit 4bc09efd authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'cngo-remove-DOMContentLoaded-handlers' into 'master'

Delete DOMContentLoaded handlers [RUN ALL RSPEC] [RUN AS-IF-FOSS]

See merge request gitlab-org/gitlab!65678
parents dccdaaeb a73b6b73
import initDeprecatedRemoveRowBehavior from '~/behaviors/deprecated_remove_row_behavior'; import initDeprecatedRemoveRowBehavior from '~/behaviors/deprecated_remove_row_behavior';
import initBroadcastMessagesForm from './broadcast_message'; import initBroadcastMessagesForm from './broadcast_message';
document.addEventListener('DOMContentLoaded', () => { initBroadcastMessagesForm();
initBroadcastMessagesForm(); initDeprecatedRemoveRowBehavior();
initDeprecatedRemoveRowBehavior();
});
import ClustersBundle from '~/clusters/clusters_bundle'; import ClustersBundle from '~/clusters/clusters_bundle';
document.addEventListener('DOMContentLoaded', () => { new ClustersBundle(); // eslint-disable-line no-new
new ClustersBundle(); // eslint-disable-line no-new
});
import ClustersBundle from '~/clusters/clusters_bundle'; import ClustersBundle from '~/clusters/clusters_bundle';
document.addEventListener('DOMContentLoaded', () => { new ClustersBundle(); // eslint-disable-line no-new
new ClustersBundle(); // eslint-disable-line no-new
});
import initCreateCluster from '~/create_cluster/init_create_cluster'; import initCreateCluster from '~/create_cluster/init_create_cluster';
document.addEventListener('DOMContentLoaded', () => { initCreateCluster(document, gon);
initCreateCluster(document, gon);
});
import initClustersListApp from '~/clusters_list'; import initClustersListApp from '~/clusters_list';
import PersistentUserCallout from '~/persistent_user_callout'; import PersistentUserCallout from '~/persistent_user_callout';
document.addEventListener('DOMContentLoaded', () => { const callout = document.querySelector('.gcp-signup-offer');
const callout = document.querySelector('.gcp-signup-offer'); PersistentUserCallout.factory(callout);
PersistentUserCallout.factory(callout); initClustersListApp();
initClustersListApp();
});
import initNewCluster from '~/clusters/new_cluster'; import initNewCluster from '~/clusters/new_cluster';
document.addEventListener('DOMContentLoaded', () => { initNewCluster();
initNewCluster();
});
...@@ -2,8 +2,6 @@ import ClustersBundle from '~/clusters/clusters_bundle'; ...@@ -2,8 +2,6 @@ import ClustersBundle from '~/clusters/clusters_bundle';
import initIntegrationForm from '~/clusters/forms/show'; import initIntegrationForm from '~/clusters/forms/show';
import initClusterHealth from '~/pages/projects/clusters/show/cluster_health'; import initClusterHealth from '~/pages/projects/clusters/show/cluster_health';
document.addEventListener('DOMContentLoaded', () => { new ClustersBundle(); // eslint-disable-line no-new
new ClustersBundle(); // eslint-disable-line no-new initClusterHealth();
initClusterHealth(); initIntegrationForm();
initIntegrationForm();
});
import initConfirmModal from '~/confirm_modal'; import initConfirmModal from '~/confirm_modal';
document.addEventListener('DOMContentLoaded', () => { initConfirmModal();
initConfirmModal();
});
import initConfirmModal from '~/confirm_modal'; import initConfirmModal from '~/confirm_modal';
document.addEventListener('DOMContentLoaded', () => { initConfirmModal();
initConfirmModal();
});
import initGroupsList from '~/groups'; import initGroupsList from '~/groups';
document.addEventListener('DOMContentLoaded', () => { initGroupsList();
initGroupsList();
});
...@@ -2,8 +2,6 @@ import Milestone from '~/milestone'; ...@@ -2,8 +2,6 @@ import Milestone from '~/milestone';
import Sidebar from '~/right_sidebar'; import Sidebar from '~/right_sidebar';
import MountMilestoneSidebar from '~/sidebar/mount_milestone_sidebar'; import MountMilestoneSidebar from '~/sidebar/mount_milestone_sidebar';
document.addEventListener('DOMContentLoaded', () => { new Milestone(); // eslint-disable-line no-new
new Milestone(); // eslint-disable-line no-new new Sidebar(); // eslint-disable-line no-new
new Sidebar(); // eslint-disable-line no-new new MountMilestoneSidebar(); // eslint-disable-line no-new
new MountMilestoneSidebar(); // eslint-disable-line no-new
});
import ProjectsList from '~/projects_list'; import ProjectsList from '~/projects_list';
document.addEventListener('DOMContentLoaded', () => { new ProjectsList(); // eslint-disable-line no-new
new ProjectsList(); // eslint-disable-line no-new
});
import ClustersBundle from '~/clusters/clusters_bundle'; import ClustersBundle from '~/clusters/clusters_bundle';
document.addEventListener('DOMContentLoaded', () => { new ClustersBundle(); // eslint-disable-line no-new
new ClustersBundle(); // eslint-disable-line no-new
});
import ClustersBundle from '~/clusters/clusters_bundle'; import ClustersBundle from '~/clusters/clusters_bundle';
document.addEventListener('DOMContentLoaded', () => { new ClustersBundle(); // eslint-disable-line no-new
new ClustersBundle(); // eslint-disable-line no-new
});
import initIntegrationForm from '~/clusters/forms/show/index'; import initIntegrationForm from '~/clusters/forms/show/index';
import initCreateCluster from '~/create_cluster/init_create_cluster'; import initCreateCluster from '~/create_cluster/init_create_cluster';
document.addEventListener('DOMContentLoaded', () => { initCreateCluster(document, gon);
initCreateCluster(document, gon); initIntegrationForm();
initIntegrationForm();
});
import initNewCluster from '~/clusters/new_cluster'; import initNewCluster from '~/clusters/new_cluster';
document.addEventListener('DOMContentLoaded', () => { initNewCluster();
initNewCluster();
});
import ClustersBundle from '~/clusters/clusters_bundle'; import ClustersBundle from '~/clusters/clusters_bundle';
import initClusterHealth from '~/pages/projects/clusters/show/cluster_health'; import initClusterHealth from '~/pages/projects/clusters/show/cluster_health';
document.addEventListener('DOMContentLoaded', () => { new ClustersBundle(); // eslint-disable-line no-new
new ClustersBundle(); // eslint-disable-line no-new initClusterHealth();
initClusterHealth();
});
import initDeleteMilestoneModal from '~/pages/milestones/shared/delete_milestone_modal_init'; import initDeleteMilestoneModal from '~/pages/milestones/shared/delete_milestone_modal_init';
import initMilestonesShow from '~/pages/milestones/shared/init_milestones_show'; import initMilestonesShow from '~/pages/milestones/shared/init_milestones_show';
document.addEventListener('DOMContentLoaded', () => { initMilestonesShow();
initMilestonesShow(); initDeleteMilestoneModal();
initDeleteMilestoneModal();
});
import initNotificationsDropdown from '~/notifications'; import initNotificationsDropdown from '~/notifications';
document.addEventListener('DOMContentLoaded', () => { initNotificationsDropdown();
initNotificationsDropdown();
});
import ShortcutsNavigation from '~/behaviors/shortcuts/shortcuts_navigation'; import ShortcutsNavigation from '~/behaviors/shortcuts/shortcuts_navigation';
import BuildArtifacts from '~/build_artifacts'; import BuildArtifacts from '~/build_artifacts';
document.addEventListener('DOMContentLoaded', () => { new ShortcutsNavigation(); // eslint-disable-line no-new
new ShortcutsNavigation(); // eslint-disable-line no-new new BuildArtifacts(); // eslint-disable-line no-new
new BuildArtifacts(); // eslint-disable-line no-new
});
import ShortcutsNavigation from '~/behaviors/shortcuts/shortcuts_navigation'; import ShortcutsNavigation from '~/behaviors/shortcuts/shortcuts_navigation';
import BlobViewer from '~/blob/viewer/index'; import BlobViewer from '~/blob/viewer/index';
document.addEventListener('DOMContentLoaded', () => { new ShortcutsNavigation(); // eslint-disable-line no-new
new ShortcutsNavigation(); // eslint-disable-line no-new new BlobViewer(); // eslint-disable-line no-new
new BlobViewer(); // eslint-disable-line no-new
});
import ClustersBundle from '~/clusters/clusters_bundle'; import ClustersBundle from '~/clusters/clusters_bundle';
document.addEventListener('DOMContentLoaded', () => { new ClustersBundle(); // eslint-disable-line no-new
new ClustersBundle(); // eslint-disable-line no-new
});
import ClustersBundle from '~/clusters/clusters_bundle'; import ClustersBundle from '~/clusters/clusters_bundle';
document.addEventListener('DOMContentLoaded', () => { new ClustersBundle(); // eslint-disable-line no-new
new ClustersBundle(); // eslint-disable-line no-new
});
import initCreateCluster from '~/create_cluster/init_create_cluster'; import initCreateCluster from '~/create_cluster/init_create_cluster';
document.addEventListener('DOMContentLoaded', () => { initCreateCluster(document, gon);
initCreateCluster(document, gon);
});
...@@ -3,9 +3,7 @@ import initIntegrationForm from '~/clusters/forms/show'; ...@@ -3,9 +3,7 @@ import initIntegrationForm from '~/clusters/forms/show';
import initGkeNamespace from '~/create_cluster/gke_cluster_namespace'; import initGkeNamespace from '~/create_cluster/gke_cluster_namespace';
import initClusterHealth from './cluster_health'; import initClusterHealth from './cluster_health';
document.addEventListener('DOMContentLoaded', () => { new ClustersBundle(); // eslint-disable-line no-new
new ClustersBundle(); // eslint-disable-line no-new initGkeNamespace();
initGkeNamespace(); initClusterHealth();
initClusterHealth(); initIntegrationForm();
initIntegrationForm();
});
import initMergeConflicts from '~/merge_conflicts/merge_conflicts_bundle'; import initMergeConflicts from '~/merge_conflicts/merge_conflicts_bundle';
import initSidebarBundle from '~/sidebar/sidebar_bundle'; import initSidebarBundle from '~/sidebar/sidebar_bundle';
document.addEventListener('DOMContentLoaded', () => { initSidebarBundle();
initSidebarBundle(); initMergeConflicts();
initMergeConflicts();
});
...@@ -2,8 +2,6 @@ import NoEmojiValidator from '~/emoji/no_emoji_validator'; ...@@ -2,8 +2,6 @@ import NoEmojiValidator from '~/emoji/no_emoji_validator';
import LengthValidator from '~/pages/sessions/new/length_validator'; import LengthValidator from '~/pages/sessions/new/length_validator';
import UsernameValidator from '~/pages/sessions/new/username_validator'; import UsernameValidator from '~/pages/sessions/new/username_validator';
document.addEventListener('DOMContentLoaded', () => { new UsernameValidator(); // eslint-disable-line no-new
new UsernameValidator(); // eslint-disable-line no-new new LengthValidator(); // eslint-disable-line no-new
new LengthValidator(); // eslint-disable-line no-new new NoEmojiValidator(); // eslint-disable-line no-new
new NoEmojiValidator(); // eslint-disable-line no-new
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment