diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-02-20 14:29:09 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-02-20 14:29:09 -0600 |
commit | 8ba08213a16aaa9d00b5d7df308212550d90d28e (patch) | |
tree | 28ff0d8e0adf8b97e8dbea4fc8f740161d4cef2e /app | |
parent | 90fc4d1078af4fec2f63ade13780084a0471d116 (diff) | |
download | gitlab-ce-8ba08213a16aaa9d00b5d7df308212550d90d28e.tar.gz |
remove require.context from diff_notes_bundleremove-require-context-diff-notes-bundle
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/diff_notes/diff_notes_bundle.js.es6 | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/app/assets/javascripts/diff_notes/diff_notes_bundle.js.es6 b/app/assets/javascripts/diff_notes/diff_notes_bundle.js.es6 index 190461451d5..cadf8b96b87 100644 --- a/app/assets/javascripts/diff_notes/diff_notes_bundle.js.es6 +++ b/app/assets/javascripts/diff_notes/diff_notes_bundle.js.es6 @@ -1,14 +1,18 @@ -/* eslint-disable func-names, comma-dangle, new-cap, no-new, import/newline-after-import, no-multi-spaces, max-len */ +/* eslint-disable func-names, comma-dangle, new-cap, no-new, max-len */ /* global Vue */ /* global ResolveCount */ -function requireAll(context) { return context.keys().map(context); } const Vue = require('vue'); -requireAll(require.context('./models', false, /^\.\/.*\.(js|es6)$/)); -requireAll(require.context('./stores', false, /^\.\/.*\.(js|es6)$/)); -requireAll(require.context('./services', false, /^\.\/.*\.(js|es6)$/)); -requireAll(require.context('./mixins', false, /^\.\/.*\.(js|es6)$/)); -requireAll(require.context('./components', false, /^\.\/.*\.(js|es6)$/)); +require('./models/discussion'); +require('./models/note'); +require('./stores/comments'); +require('./services/resolve'); +require('./mixins/discussion'); +require('./components/comment_resolve_btn'); +require('./components/jump_to_discussion'); +require('./components/resolve_btn'); +require('./components/resolve_count'); +require('./components/resolve_discussion_btn'); $(() => { const projectPath = document.querySelector('.merge-request').dataset.projectPath; |