debian-mirror-gitlab/app/assets/javascripts/google_cloud/index.js
2021-12-11 22:18:48 +05:30

11 lines
379 B
JavaScript

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