Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.js « edit « services « projects « pages « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5249709a2a30afbe4e657c473485bddc912aaa45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import IntegrationSettingsForm from '~/integrations/integration_settings_form';
import PrometheusMetrics from '~/prometheus_metrics/custom_metrics';
import PrometheusAlerts from '~/prometheus_alerts';
import initAlertsSettings from '~/alerts_service_settings';

document.addEventListener('DOMContentLoaded', () => {
  const integrationSettingsForm = new IntegrationSettingsForm('.js-integration-settings-form');
  integrationSettingsForm.init();

  const prometheusSettingsSelector = '.js-prometheus-metrics-monitoring';
  const prometheusSettingsWrapper = document.querySelector(prometheusSettingsSelector);
  if (prometheusSettingsWrapper) {
    const prometheusMetrics = new PrometheusMetrics(prometheusSettingsSelector);
    prometheusMetrics.init();
  }

  PrometheusAlerts();
  initAlertsSettings(document.querySelector('.js-alerts-service-settings'));
});