debian-mirror-gitlab/app/assets/javascripts/pages/projects/compare/show/index.js

14 lines
442 B
JavaScript
Raw Normal View History

2018-03-17 18:26:18 +05:30
import Diff from '~/diff';
2018-10-15 14:42:47 +05:30
import GpgBadges from '~/gpg_badges';
2021-03-11 19:13:27 +05:30
import initChangesDropdown from '~/init_changes_dropdown';
2021-04-17 20:07:23 +05:30
import initCompareSelector from '~/projects/compare';
initCompareSelector();
2018-03-17 18:26:18 +05:30
2018-03-27 19:54:05 +05:30
document.addEventListener('DOMContentLoaded', () => {
2018-03-17 18:26:18 +05:30
new Diff(); // eslint-disable-line no-new
const paddingTop = 16;
initChangesDropdown(document.querySelector('.navbar-gitlab').offsetHeight - paddingTop);
2018-10-15 14:42:47 +05:30
GpgBadges.fetch();
2018-03-27 19:54:05 +05:30
});