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: 808fcce46df1d180038a139bc1715f28a2148324 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import GroupsList from '~/groups_list';
import Landing from '~/landing';
import initGroupsList from '../../../groups';

function exploreGroups() {
  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();
}

exploreGroups();