Welcome to mirror list, hosted at ThFree Co, Russian Federation.

search_results.js « search « frontend « content - gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 91e3787b03368a750d3a6f8c40f466bf405c39da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import Vue from 'vue';
import GoogleResults from './components/google_results.vue';
import SearchForm from './components/search_form.vue';

const mountVue = (el, Component) => {
  return new Vue({
    el,
    components: { Component },
    render(createElement) {
      return createElement(Component);
    },
  });
};

document.addEventListener('DOMContentLoaded', () => {
  mountVue('.js-google-search', GoogleResults);
  mountVue('.js-search-form', SearchForm);
});