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

index.js « configuration « google_cloud « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 580315588d0a7e501b20c52b271b183152e17391 (plain)
1
2
3
4
5
6
7
8
9
10
11
import Vue from 'vue';
import Panel from './panel.vue';

export default (containerId = '#js-google-cloud-configuration') => {
  const element = document.querySelector(containerId);
  const { ...attrs } = JSON.parse(element.getAttribute('data'));
  return new Vue({
    el: element,
    render: (createElement) => createElement(Panel, { attrs }),
  });
};