BigW Consortium Gitlab

diff_notes_bundle.js.es6 867 Bytes
Newer Older
Phil Hughes committed
1 2
//= require vue
//= require vue-resource
3
//= require_directory ./models
Phil Hughes committed
4 5
//= require_directory ./stores
//= require_directory ./services
6
//= require_directory ./mixins
Phil Hughes committed
7 8 9 10
//= require_directory ./components

$(() => {
  window.DiffNotesApp = new Vue({
11
    el: '#diff-notes-app',
Phil Hughes committed
12 13
    components: {
      'resolve-btn': ResolveBtn,
14
      'resolve-discussion-btn': ResolveDiscussionBtn,
15
      'comment-and-resolve-btn': CommentAndResolveBtn
16 17 18 19 20 21 22 23 24 25
    },
    methods: {
      compileComponents: function () {
        const $components = $('resolve-btn, resolve-discussion-btn, jump-to-discussion');
        if ($components.length) {
          $components.each(function () {
            DiffNotesApp.$compile($(this).get(0));
          });
        }
      }
Phil Hughes committed
26 27 28 29 30 31 32 33 34 35
    }
  });

  new Vue({
    el: '#resolve-count-app',
    components: {
      'resolve-count': ResolveCount
    }
  });
});