debian-mirror-gitlab/app/assets/javascripts/ci_secure_files/index.js

18 lines
433 B
JavaScript
Raw Normal View History

2022-05-07 20:08:51 +05:30
import Vue from 'vue';
import SecureFilesList from './components/secure_files_list.vue';
export const initCiSecureFiles = (selector = '#js-ci-secure-files') => {
const containerEl = document.querySelector(selector);
const { projectId } = containerEl.dataset;
return new Vue({
el: containerEl,
provide: {
projectId,
},
render(createElement) {
return createElement(SecureFilesList);
},
});
};