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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/ci_variable_list/index.js')
-rw-r--r--app/assets/javascripts/ci_variable_list/index.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/app/assets/javascripts/ci_variable_list/index.js b/app/assets/javascripts/ci_variable_list/index.js
new file mode 100644
index 00000000000..58501b216c1
--- /dev/null
+++ b/app/assets/javascripts/ci_variable_list/index.js
@@ -0,0 +1,25 @@
+import Vue from 'vue';
+import CiVariableSettings from './components/ci_variable_settings.vue';
+import createStore from './store';
+import { parseBoolean } from '~/lib/utils/common_utils';
+
+export default () => {
+ const el = document.getElementById('js-ci-project-variables');
+ const { endpoint, projectId, group, maskableRegex } = el.dataset;
+ const isGroup = parseBoolean(group);
+
+ const store = createStore({
+ endpoint,
+ projectId,
+ isGroup,
+ maskableRegex,
+ });
+
+ return new Vue({
+ el,
+ store,
+ render(createElement) {
+ return createElement(CiVariableSettings);
+ },
+ });
+};