debian-mirror-gitlab/app/assets/javascripts/google_cloud/deployments/index.js
2022-08-13 15:12:31 +05:30

11 lines
353 B
JavaScript

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