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

snippet_show.js « snippet « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bbddfc579c5d3f54a1afea936229056a7c1c2652 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import LineHighlighter from '~/line_highlighter';
import BlobViewer from '~/blob/viewer';
import ZenMode from '~/zen_mode';
import initNotes from '~/init_notes';
import snippetEmbed from '~/snippet/snippet_embed';
import { SnippetShowInit } from '~/snippets';
import loadAwardsHandler from '~/awards_handler';

document.addEventListener('DOMContentLoaded', () => {
  if (!gon.features.snippetsVue) {
    new LineHighlighter(); // eslint-disable-line no-new
    new BlobViewer(); // eslint-disable-line no-new
    initNotes();
    new ZenMode(); // eslint-disable-line no-new
    snippetEmbed();
  } else {
    SnippetShowInit();
    initNotes();
  }
  loadAwardsHandler();
});