debian-mirror-gitlab/app/assets/javascripts/pages/projects/compare/show/index.js
2023-03-17 16:20:25 +05:30

14 lines
491 B
JavaScript

import Diff from '~/diff';
import GpgBadges from '~/gpg_badges';
import { initDiffStatsDropdown } from '~/init_diff_stats_dropdown';
import initCompareSelector from '~/projects/compare';
import syntaxHighlight from '~/syntax_highlight';
initCompareSelector();
new Diff(); // eslint-disable-line no-new
const paddingTop = 16;
initDiffStatsDropdown(document.querySelector('.navbar-gitlab').offsetHeight - paddingTop);
GpgBadges.fetch();
syntaxHighlight([document.querySelector('.files')]);