debian-mirror-gitlab/app/assets/javascripts/google_cloud/index.js
2022-01-26 12:08:38 +05:30

12 lines
369 B
JavaScript

import Vue from 'vue';
import App from './components/app.vue';
export default () => {
const root = '#js-google-cloud';
const element = document.querySelector(root);
const { screen, ...attrs } = JSON.parse(element.getAttribute('data'));
return new Vue({
el: element,
render: (createElement) => createElement(App, { props: { screen }, attrs }),
});
};