19 lines
829 B
JavaScript
19 lines
829 B
JavaScript
import { PROJECT_BADGE } from '~/badges/constants';
|
|
import initSettingsPanels from '~/settings_panels';
|
|
import setupProjectEdit from '~/project_edit';
|
|
import initConfirmDangerModal from '~/confirm_danger_modal';
|
|
import mountBadgeSettings from '~/pages/shared/mount_badge_settings';
|
|
import fileUpload from '~/lib/utils/file_upload';
|
|
import initProjectLoadingSpinner from '../shared/save_project_loader';
|
|
import initProjectPermissionsSettings from '../shared/permissions';
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
initProjectLoadingSpinner();
|
|
setupProjectEdit();
|
|
// Initialize expandable settings panels
|
|
initSettingsPanels();
|
|
fileUpload('.js-choose-project-avatar-button', '.js-project-avatar-input');
|
|
initProjectPermissionsSettings();
|
|
initConfirmDangerModal();
|
|
mountBadgeSettings(PROJECT_BADGE);
|
|
});
|