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

index.js « dashboard « issues « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a1ae3b93f7d53e3cd0ac699fcfbad3b4dbab7b92 (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
import Vue from 'vue';
import { parseBoolean } from '~/lib/utils/common_utils';
import IssuesDashboardApp from './components/issues_dashboard_app.vue';

export function mountIssuesDashboardApp() {
  const el = document.querySelector('.js-issues-dashboard');

  if (!el) {
    return null;
  }

  const { calendarPath, emptyStateSvgPath, isSignedIn, rssPath } = el.dataset;

  return new Vue({
    el,
    name: 'IssuesDashboardRoot',
    provide: {
      calendarPath,
      emptyStateSvgPath,
      isSignedIn: parseBoolean(isSignedIn),
      rssPath,
    },
    render: (createComponent) => createComponent(IssuesDashboardApp),
  });
}