Merge branch 'develop' into dist/ubuntu/bionic/develop

This commit is contained in:
wpetit 2019-12-06 17:15:38 +01:00
commit 5c77f22c26
2 changed files with 16 additions and 6 deletions

View File

@ -8,6 +8,9 @@
width: 100%;
height: 100%;
display: flex;
flex-direction: row;
align-items: stretch;
justify-content: stretch;
// Lanes
& > div {
@ -17,6 +20,11 @@
flex-grow: 1;
flex-basis: 100%;
background-color: transparent;
display: flex;
flex-direction: column;
bottom: 0;
height: 100% !important;
min-height: 100% !important;
// Card container
& > div > div > div {
@ -27,7 +35,8 @@
}
[data-react-beautiful-dnd-droppable] {
height: 100%;
height: calc(100vh) !important;
min-height: calc(100vh) !important;
}
.kanboard-card {

View File

@ -11,14 +11,15 @@ export class GiteaClient {
fetchIssues(project, page = 1) {
return fetch(`/gitea/api/v1/repos/${project}/issues?page=${page}`)
.then(this.assertAuthorization)
.then(this.assertOk)
.then(res => res.json())
;
}
fetchUserProjects() {
return fetch(`/gitea/api/v1/user/repos`)
.then(this.assertOk)
.then(this.assertAuthorization)
.then(this.assertOk)
.then(res => res.json())
;
}
@ -31,15 +32,15 @@ export class GiteaClient {
},
body: JSON.stringify({ labels: [labelID] }),
})
.then(this.assertOk)
.then(this.assertAuthorization)
.then(this.assertOk)
.then(res => res.json())
}
fetchProjectLabels(project) {
return fetch(`/gitea/api/v1/repos/${project}/labels`)
.then(this.assertOk)
.then(this.assertAuthorization)
.then(this.assertOk)
.then(res => res.json())
;
}
@ -48,8 +49,8 @@ export class GiteaClient {
return fetch(`/gitea/api/v1/repos/${project}/issues/${issueNumber}/labels/${labelID}`, {
method: 'DELETE'
})
.then(this.assertOk)
.then(this.assertAuthorization)
.then(this.assertOk)
}
createIssue(project, title, body, labelID) {
@ -64,8 +65,8 @@ export class GiteaClient {
labels: [labelID],
}),
})
.then(this.assertOk)
.then(this.assertAuthorization)
.then(this.assertOk)
.then(res => res.json())
}