debian-mirror-gitlab/app/assets/javascripts/google_cloud/configuration/index.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
355 B
JavaScript
Raw Normal View History

2022-08-13 15:12:31 +05:30
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 }),
});
};