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

13 lines
369 B
JavaScript
Raw Normal View History

2021-12-11 22:18:48 +05:30
import Vue from 'vue';
import App from './components/app.vue';
export default () => {
2022-01-26 12:08:38 +05:30
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 }),
});
2021-12-11 22:18:48 +05:30
};