2018-11-20 20:47:30 +05:30
|
|
|
import { PROJECT_BADGE } from '~/badges/constants';
|
2018-03-17 18:26:18 +05:30
|
|
|
import initSettingsPanels from '~/settings_panels';
|
|
|
|
import setupProjectEdit from '~/project_edit';
|
2018-05-09 12:01:36 +05:30
|
|
|
import initConfirmDangerModal from '~/confirm_danger_modal';
|
2018-11-20 20:47:30 +05:30
|
|
|
import mountBadgeSettings from '~/pages/shared/mount_badge_settings';
|
2019-02-13 22:33:31 +05:30
|
|
|
import fileUpload from '~/lib/utils/file_upload';
|
2018-10-15 14:42:47 +05:30
|
|
|
import initProjectLoadingSpinner from '../shared/save_project_loader';
|
2018-03-17 18:26:18 +05:30
|
|
|
import initProjectPermissionsSettings from '../shared/permissions';
|
|
|
|
|
2018-03-27 19:54:05 +05:30
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
2018-10-15 14:42:47 +05:30
|
|
|
initProjectLoadingSpinner();
|
2018-03-17 18:26:18 +05:30
|
|
|
setupProjectEdit();
|
|
|
|
// Initialize expandable settings panels
|
|
|
|
initSettingsPanels();
|
2019-02-13 22:33:31 +05:30
|
|
|
fileUpload('.js-choose-project-avatar-button', '.js-project-avatar-input');
|
2018-03-17 18:26:18 +05:30
|
|
|
initProjectPermissionsSettings();
|
2018-05-09 12:01:36 +05:30
|
|
|
initConfirmDangerModal();
|
2018-11-20 20:47:30 +05:30
|
|
|
mountBadgeSettings(PROJECT_BADGE);
|
2018-03-27 19:54:05 +05:30
|
|
|
});
|