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

index.js « instance_statistics « analytics « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0d7dcf6ace854a99f58fe891c868e82fbd8c6240 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import Vue from 'vue';
import VueApollo from 'vue-apollo';
import createDefaultClient from '~/lib/graphql';
import InstanceStatisticsApp from './components/app.vue';

Vue.use(VueApollo);

const apolloProvider = new VueApollo({
  defaultClient: createDefaultClient(),
});

export default () => {
  const el = document.getElementById('js-instance-statistics-app');

  if (!el) return false;

  return new Vue({
    el,
    apolloProvider,
    render(h) {
      return h(InstanceStatisticsApp);
    },
  });
};