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:
authorLuke Bennett <lbennett@gitlab.com>2018-11-07 19:44:21 +0300
committerLuke Bennett <lbennett@gitlab.com>2019-02-13 03:17:52 +0300
commitaf989df0ec0c15f269071080ab08417e688dabf7 (patch)
tree53096af07d17412dc38b70327e69433b965504dd /app/assets/javascripts/pages/import/github/status/index.js
parent534a61179e2d0d7f9f376af1d01ed536e27f5b6d (diff)
Improve the GitHub and Gitea import feature table interface
These are frontend changes. Use Vue for the import feature UI for "githubish" providers (GitHub and Gitea). Add "Go to project" button after a successful import. Use CI-style status icons and improve spacing of the table and its component. Adds ETag polling to the github and gitea import jobs endpoint.
Diffstat (limited to 'app/assets/javascripts/pages/import/github/status/index.js')
-rw-r--r--app/assets/javascripts/pages/import/github/status/index.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/assets/javascripts/pages/import/github/status/index.js b/app/assets/javascripts/pages/import/github/status/index.js
new file mode 100644
index 00000000000..dcd84f0faf9
--- /dev/null
+++ b/app/assets/javascripts/pages/import/github/status/index.js
@@ -0,0 +1,7 @@
+import mountImportProjectsTable from '~/import_projects';
+
+document.addEventListener('DOMContentLoaded', () => {
+ const mountElement = document.getElementById('import-projects-mount-element');
+
+ mountImportProjectsTable(mountElement);
+});