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

index.js « list « releases « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: adbed3cb8e2a64c7ddc42ed3fc9a180dbbd261cc (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 App from './components/app.vue';
import createStore from './store';

export default () => {
  const element = document.getElementById('js-releases-page');

  return new Vue({
    el: element,
    store: createStore(),
    components: {
      App,
    },
    render(createElement) {
      return createElement('app', {
        props: {
          projectId: element.dataset.projectId,
          documentationLink: element.dataset.documentationPath,
          illustrationPath: element.dataset.illustrationPath,
        },
      });
    },
  });
};