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

index.js « csv « blob « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4cf6c169c68fba6de2e295b858d1eb735cafb3e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import Vue from 'vue';
import CsvViewer from './csv_viewer.vue';

export default () => {
  const el = document.getElementById('js-csv-viewer');

  return new Vue({
    el,
    render(createElement) {
      return createElement(CsvViewer, {
        props: {
          csv: el.dataset.data,
        },
      });
    },
  });
};