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

index.js « whats_new « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 19cdb590ae2f709cd63fc0e89e1e0e3b4da891ff (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
25
26
27
28
import Vue from 'vue';
import App from './components/app.vue';
import store from './store';

let whatsNewApp;

export default () => {
  if (whatsNewApp) {
    store.dispatch('openDrawer');
  } else {
    const whatsNewElm = document.getElementById('whats-new-app');

    whatsNewApp = new Vue({
      el: whatsNewElm,
      store,
      components: {
        App,
      },
      render(createElement) {
        return createElement('app', {
          props: {
            features: whatsNewElm.getAttribute('data-features'),
          },
        });
      },
    });
  }
};