summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/repo/components/repo_preview.vue
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-12-13 09:26:45 +0000
committerPhil Hughes <me@iamphill.com>2017-12-13 09:26:45 +0000
commiteacf99aff7a71d11b42f22c2e9399d1550052853 (patch)
tree9700aa80f7be849a0cab14e3313a35b0db41f2a4 /app/assets/javascripts/repo/components/repo_preview.vue
parentbcb14a0dbb729ab88ef5eb93ad7a4694ed8cac9d (diff)
parentaa90e8ea5b025dc5de5887b2694e25745bf97e48 (diff)
downloadgitlab-ce-eacf99aff7a71d11b42f22c2e9399d1550052853.tar.gz
Merge branch '28869-es6-modules' into 'master'
Export old code into es6 modules See merge request gitlab-org/gitlab-ce!15787
Diffstat (limited to 'app/assets/javascripts/repo/components/repo_preview.vue')
-rw-r--r--app/assets/javascripts/repo/components/repo_preview.vue3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/repo/components/repo_preview.vue b/app/assets/javascripts/repo/components/repo_preview.vue
index 6ce9267f598..425c55fafb5 100644
--- a/app/assets/javascripts/repo/components/repo_preview.vue
+++ b/app/assets/javascripts/repo/components/repo_preview.vue
@@ -1,6 +1,7 @@
<script>
/* global LineHighlighter */
import { mapGetters } from 'vuex';
+import syntaxHighlight from '../../syntax_highlight';
export default {
computed: {
@@ -13,7 +14,7 @@ export default {
},
methods: {
highlightFile() {
- $(this.$el).find('.file-content').syntaxHighlight();
+ syntaxHighlight($(this.$el).find('.file-content'));
},
},
mounted() {