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

index.js « databases « google_cloud « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e240a1116e8ebd1c87673357aeadc94ccd2fadc4 (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-databases') => {
  const element = document.querySelector(containerId);
  const { ...attrs } = JSON.parse(element.getAttribute('data'));
  return new Vue({
    el: element,
    render: (createElement) => createElement(Panel, { attrs }),
  });
};