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

index.js « search_settings « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1fb1a378ffb1ff6f12bf1827b39972e30888efa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import Vue from 'vue';
import $ from 'jquery';
import { expandSection, closeSection } from '~/settings_panels';
import SearchSettings from '~/search_settings/components/search_settings.vue';

const initSearch = ({ el }) =>
  new Vue({
    el,
    render: (h) =>
      h(SearchSettings, {
        ref: 'searchSettings',
        props: {
          searchRoot: document.querySelector('#content-body'),
          sectionSelector: 'section.settings',
        },
        on: {
          collapse: (section) => closeSection($(section)),
          expand: (section) => expandSection($(section)),
        },
      }),
  });

export default initSearch;