Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.js « google_cloud « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ab9e82278120dba43c429e251050e98c661bc67f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 }),
  });
};