Commit 45f92905 authored by Clement Ho's avatar Clement Ho

Merge branch 'burndown-chart-bundle-refactor' into 'master'

Removed burndown_chart webpack bundle

See merge request gitlab-org/gitlab-ee!4809
parents 13a1da90 738d03fd
...@@ -64,7 +64,6 @@ function generateEntries() { ...@@ -64,7 +64,6 @@ function generateEntries() {
// EE-only // EE-only
add_gitlab_slack_application: 'ee/add_gitlab_slack_application/index.js', add_gitlab_slack_application: 'ee/add_gitlab_slack_application/index.js',
burndown_chart: 'ee/burndown_chart/index.js',
geo_nodes: 'ee/geo_nodes', geo_nodes: 'ee/geo_nodes',
ldap_group_links: 'ee/groups/ldap_group_links.js', ldap_group_links: 'ee/groups/ldap_group_links.js',
mirrors: 'ee/mirrors', mirrors: 'ee/mirrors',
......
import Cookies from 'js-cookie'; import Cookies from 'js-cookie';
import BurndownChart from './burndown_chart'; import BurndownChart from './burndown_chart';
$(() => { export default () => {
// handle hint dismissal // handle hint dismissal
const hint = $('.burndown-hint'); const hint = $('.burndown-hint');
hint.on('click', '.dismiss-icon', () => { hint.on('click', '.dismiss-icon', () => {
...@@ -47,4 +47,4 @@ $(() => { ...@@ -47,4 +47,4 @@ $(() => {
window.addEventListener('resize', () => chart.animateResize(1)); window.addEventListener('resize', () => chart.animateResize(1));
$(document).on('click', '.js-sidebar-toggle', () => chart.animateResize(2)); $(document).on('click', '.js-sidebar-toggle', () => chart.animateResize(2));
} }
}); };
import '~/pages/projects/milestones/show/index'; import '~/pages/projects/milestones/show/index';
import UserCallout from '~/user_callout'; import UserCallout from '~/user_callout';
import initBurndownChart from 'ee/burndown_chart';
document.addEventListener('DOMContentLoaded', () => new UserCallout()); document.addEventListener('DOMContentLoaded', () => {
new UserCallout(); // eslint-disable-line no-new
initBurndownChart();
});
...@@ -3,9 +3,6 @@ ...@@ -3,9 +3,6 @@
- burndown = local_assigns[:burndown] - burndown = local_assigns[:burndown]
- warning = data_warning_for(burndown) - warning = data_warning_for(burndown)
- content_for :page_specific_javascripts do
= webpack_bundle_tag 'burndown_chart'
= warning = warning
- if can_generate_chart?(burndown) - if can_generate_chart?(burndown)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment