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

index.js « groups « explore « pages « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3c7edbdd7c783b8d68e670092b58b2ff2582f629 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import GroupsList from '~/groups_list';
import Landing from '~/landing';
import initGroupsList from '../../../groups';

document.addEventListener('DOMContentLoaded', () => {
  new GroupsList(); // eslint-disable-line no-new
  initGroupsList();
  const landingElement = document.querySelector('.js-explore-groups-landing');
  if (!landingElement) return;
  const exploreGroupsLanding = new Landing(
    landingElement,
    landingElement.querySelector('.dismiss-button'),
    'explore_groups_landing_dismissed',
  );
  exploreGroupsLanding.toggle();
});