From 7a7b2369be9338b55dfc3d7e69f918721cec2bc8 Mon Sep 17 00:00:00 2001 From: Peng Kaifan <2811825214@qq.com> Date: Fri, 30 Oct 2020 17:52:10 +0800 Subject: [PATCH] normal commit --- .../IssuesPage/IssuesPageTemplate.vue | 6 +- src/components/Label.vue | 2 +- src/components/Modal.vue | 1 + src/network/api.js | 4 + src/pages/Repository/Compare/Compare.vue | 49 +- .../Issues/IssueDetail/IssueDetail.vue | 99 +- .../IssueDetail/components/IssueHeader.vue | 153 +++ .../Issues/IssueDetail/components/index.js | 3 +- src/pages/Repository/Issues/IssuesBrowser.vue | 13 +- .../Conversation(deprecated)/Conversation.vue | 1164 +++++++++++++++++ .../components/Comment.vue | 296 +++++ .../components/CommitComment.vue | 140 ++ .../components/CommitCommentItem.vue | 206 +++ .../components/HiddenItemLoading.vue | 74 ++ .../components/PullRequestBody.vue | 137 ++ .../components/PullRequestBodyEditor.vue | 116 ++ .../components/PullRequestCommentCreator.vue | 181 +++ .../components/PullRequestCommentEditor.vue | 118 ++ .../components/Referenced.vue | 86 ++ .../components/Review.vue | 413 ++++++ .../components/ReviewBodyEditor.vue | 87 ++ .../components/ReviewComment.vue | 437 +++++++ .../components/ReviewCommentCreator.vue | 166 +++ .../components/ReviewCommentEditor.vue | 167 +++ .../components/ReviewCommentGroup.vue | 134 ++ .../components/ReviewCommentReply.vue | 194 +++ .../components/SimpleTimelineItem.vue | 89 ++ .../components/TimelineItem.vue | 751 +++++++++++ .../components/index.js | 15 + .../Conversation/Conversation.vue | 88 +- .../PullRequestDetail/PullRequestDetail.vue | 152 ++- .../PullRequests/PullRequestsBrowser.vue | 4 +- .../ReleaseCreator/ReleaseCreator.vue | 61 +- .../Repository/Releases/ReleaseDetail.vue | 8 +- .../Repository/Releases/ReleaseListItem.vue | 63 +- src/pages/Repository/Releases/Releases.vue | 40 +- src/pages/Repository/Releases/graphql.js | 30 +- src/pages/Repository/Tags/Tags.vue | 2 +- 38 files changed, 5441 insertions(+), 308 deletions(-) create mode 100644 src/pages/Repository/Issues/IssueDetail/components/IssueHeader.vue create mode 100644 src/pages/Repository/PullRequests/PullRequestDetail/Conversation(deprecated)/Conversation.vue create mode 100644 src/pages/Repository/PullRequests/PullRequestDetail/Conversation(deprecated)/components/Comment.vue create mode 100644 src/pages/Repository/PullRequests/PullRequestDetail/Conversation(deprecated)/components/CommitComment.vue create mode 100644 src/pages/Repository/PullRequests/PullRequestDetail/Conversation(deprecated)/components/CommitCommentItem.vue create mode 100644 src/pages/Repository/PullRequests/PullRequestDetail/Conversation(deprecated)/components/HiddenItemLoading.vue create mode 100644 src/pages/Repository/PullRequests/PullRequestDetail/Conversation(deprecated)/components/PullRequestBody.vue create mode 100644 src/pages/Repository/PullRequests/PullRequestDetail/Conversation(deprecated)/components/PullRequestBodyEditor.vue create mode 100644 src/pages/Repository/PullRequests/PullRequestDetail/Conversation(deprecated)/components/PullRequestCommentCreator.vue create mode 100644 src/pages/Repository/PullRequests/PullRequestDetail/Conversation(deprecated)/components/PullRequestCommentEditor.vue create mode 100644 src/pages/Repository/PullRequests/PullRequestDetail/Conversation(deprecated)/components/Referenced.vue create mode 100644 src/pages/Repository/PullRequests/PullRequestDetail/Conversation(deprecated)/components/Review.vue create mode 100644 src/pages/Repository/PullRequests/PullRequestDetail/Conversation(deprecated)/components/ReviewBodyEditor.vue create mode 100644 src/pages/Repository/PullRequests/PullRequestDetail/Conversation(deprecated)/components/ReviewComment.vue create mode 100644 src/pages/Repository/PullRequests/PullRequestDetail/Conversation(deprecated)/components/ReviewCommentCreator.vue create mode 100644 src/pages/Repository/PullRequests/PullRequestDetail/Conversation(deprecated)/components/ReviewCommentEditor.vue create mode 100644 src/pages/Repository/PullRequests/PullRequestDetail/Conversation(deprecated)/components/ReviewCommentGroup.vue create mode 100644 src/pages/Repository/PullRequests/PullRequestDetail/Conversation(deprecated)/components/ReviewCommentReply.vue create mode 100644 src/pages/Repository/PullRequests/PullRequestDetail/Conversation(deprecated)/components/SimpleTimelineItem.vue create mode 100644 src/pages/Repository/PullRequests/PullRequestDetail/Conversation(deprecated)/components/TimelineItem.vue create mode 100644 src/pages/Repository/PullRequests/PullRequestDetail/Conversation(deprecated)/components/index.js diff --git a/src/components/IssuesPage/IssuesPageTemplate.vue b/src/components/IssuesPage/IssuesPageTemplate.vue index b46fdbd..b6386f0 100644 --- a/src/components/IssuesPage/IssuesPageTemplate.vue +++ b/src/components/IssuesPage/IssuesPageTemplate.vue @@ -35,7 +35,7 @@ - + Visibility Organization @@ -118,6 +118,10 @@ perPage: { type: Number, default: 8 + }, + isEmpty: { + type: Boolean, + default: false } }, diff --git a/src/components/Label.vue b/src/components/Label.vue index 311726e..04fc020 100644 --- a/src/components/Label.vue +++ b/src/components/Label.vue @@ -1,5 +1,5 @@ diff --git a/src/components/Modal.vue b/src/components/Modal.vue index aa92a8a..43b11b0 100644 --- a/src/components/Modal.vue +++ b/src/components/Modal.vue @@ -158,6 +158,7 @@ } .loading-wrapper{ + pointer-events: none; position: absolute; top: 0; bottom: 0; diff --git a/src/network/api.js b/src/network/api.js index b7dc621..17f83bf 100644 --- a/src/network/api.js +++ b/src/network/api.js @@ -136,6 +136,10 @@ export const API_REPOSITORY_RELEASE = payload => { return `${GITHUB_REST_API_BASE}/repos/${payload.owner}/${payload.repo}/releases/${payload.releaseId}` } +export const API_REPOSITORY_LATESTRELEASE = payload => { + return `${GITHUB_REST_API_BASE}/repos/${payload.owner}/${payload.repo}/releases/latest` +} + export const API_REPOSITORY_RELEASE_ASSETS = payload => { return `${GITHUB_REST_API_BASE}/repos/${payload.owner}/${payload.repo}/releases/${payload.releaseId}/assets` } diff --git a/src/pages/Repository/Compare/Compare.vue b/src/pages/Repository/Compare/Compare.vue index e62ff96..cb591a7 100644 --- a/src/pages/Repository/Compare/Compare.vue +++ b/src/pages/Repository/Compare/Compare.vue @@ -217,7 +217,7 @@

- +
@@ -227,18 +227,12 @@
-
- -
- +
Nothing to show
-
- View all tags -
-
+
{{defaultBranch}} @@ -252,11 +246,15 @@ {{item}} +
+ View all tags +
+ - +
@@ -266,18 +264,12 @@
-
- -
- -
+ +
Nothing to show
-
- View all tags -
-
+
{{defaultBranch}} @@ -291,32 +283,30 @@ {{item}} +
+ View all tags +
+ - +
-
- -
-
+
{{item}}
- +
-
- -
-
+
{{item}} @@ -600,6 +590,7 @@ } ) this.modalRefsData[meta].tags.data = this.parseTagsFromHTML(res.data) + if(this.modalRefsData[meta].tags.data.length == 0) this.modalRefsData[meta].tags.isEmpty = true }catch(e) { console.log(e) }finally{ diff --git a/src/pages/Repository/Issues/IssueDetail/IssueDetail.vue b/src/pages/Repository/Issues/IssueDetail/IssueDetail.vue index 8510357..bc8562b 100644 --- a/src/pages/Repository/Issues/IssueDetail/IssueDetail.vue +++ b/src/pages/Repository/Issues/IssueDetail/IssueDetail.vue @@ -1,74 +1,11 @@ + + +