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

index.js « logs « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 70dbffdc3dd292a82635856b1e8b7311899aae00 (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 { getParameterValues } from '~/lib/utils/url_utility';
import LogViewer from './components/environment_logs.vue';
import store from './stores';

export default (props = {}) => {
  const el = document.getElementById('environment-logs');
  const [currentPodName] = getParameterValues('pod_name');

  // eslint-disable-next-line no-new
  new Vue({
    el,
    store,
    render(createElement) {
      return createElement(LogViewer, {
        props: {
          ...el.dataset,
          currentPodName,
          ...props,
        },
      });
    },
  });
};