From a76cd8833c8e5d72decba7139c5f57a29eae6a0c Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Thu, 23 Nov 2017 17:16:01 +0000 Subject: [PATCH 1/4] Added IDE commit panel Closes #40041 --- .../repo/components/commit_sidebar/list.vue | 90 ++++ .../commit_sidebar/list_collapsed.vue | 41 ++ .../components/commit_sidebar/list_item.vue | 36 ++ .../javascripts/repo/components/repo.vue | 32 +- .../repo/components/repo_commit_section.vue | 159 +++--- .../javascripts/repo/components/repo_file.vue | 3 +- .../repo/components/repo_file_buttons.vue | 10 +- .../repo/components/repo_preview.vue | 6 +- .../repo/components/repo_sidebar.vue | 8 +- .../javascripts/repo/components/repo_tab.vue | 25 +- .../javascripts/repo/components/repo_tabs.vue | 4 +- app/assets/javascripts/repo/stores/getters.js | 4 + app/assets/stylesheets/pages/repo.scss | 480 ++++++++---------- app/views/projects/tree/show.html.haml | 2 +- app/views/shared/repo/_repo.html.haml | 1 + 15 files changed, 528 insertions(+), 373 deletions(-) create mode 100644 app/assets/javascripts/repo/components/commit_sidebar/list.vue create mode 100644 app/assets/javascripts/repo/components/commit_sidebar/list_collapsed.vue create mode 100644 app/assets/javascripts/repo/components/commit_sidebar/list_item.vue diff --git a/app/assets/javascripts/repo/components/commit_sidebar/list.vue b/app/assets/javascripts/repo/components/commit_sidebar/list.vue new file mode 100644 index 00000000000..348d3afc830 --- /dev/null +++ b/app/assets/javascripts/repo/components/commit_sidebar/list.vue @@ -0,0 +1,90 @@ + + + diff --git a/app/assets/javascripts/repo/components/commit_sidebar/list_collapsed.vue b/app/assets/javascripts/repo/components/commit_sidebar/list_collapsed.vue new file mode 100644 index 00000000000..b45949e3e75 --- /dev/null +++ b/app/assets/javascripts/repo/components/commit_sidebar/list_collapsed.vue @@ -0,0 +1,41 @@ + + + diff --git a/app/assets/javascripts/repo/components/commit_sidebar/list_item.vue b/app/assets/javascripts/repo/components/commit_sidebar/list_item.vue new file mode 100644 index 00000000000..c8d4a2ad307 --- /dev/null +++ b/app/assets/javascripts/repo/components/commit_sidebar/list_item.vue @@ -0,0 +1,36 @@ + + + diff --git a/app/assets/javascripts/repo/components/repo.vue b/app/assets/javascripts/repo/components/repo.vue index 98117802016..a00e1e9d809 100644 --- a/app/assets/javascripts/repo/components/repo.vue +++ b/app/assets/javascripts/repo/components/repo.vue @@ -40,20 +40,24 @@ export default { diff --git a/app/assets/javascripts/repo/components/repo_commit_section.vue b/app/assets/javascripts/repo/components/repo_commit_section.vue index 377e3d65348..e4ee4da248c 100644 --- a/app/assets/javascripts/repo/components/repo_commit_section.vue +++ b/app/assets/javascripts/repo/components/repo_commit_section.vue @@ -1,11 +1,18 @@ diff --git a/app/assets/javascripts/repo/components/repo_file.vue b/app/assets/javascripts/repo/components/repo_file.vue index 5be47d568e7..54b26537ab9 100644 --- a/app/assets/javascripts/repo/components/repo_file.vue +++ b/app/assets/javascripts/repo/components/repo_file.vue @@ -85,12 +85,11 @@