-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
1,650 additions
and
626 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Lightouse CI | ||
on: | ||
push: | ||
branches: [ develop ] | ||
jobs: | ||
lighthouse: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Audit URLs using Lighthouse | ||
uses: treosh/lighthouse-ci-action@master | ||
with: | ||
urls: | | ||
https://staging.dex.software/home | ||
https://staging.dex.software/project/overview | ||
https://staging.dex.software/project/add/source | ||
https://staging.dex.software/account/login | ||
budgetPath: ./budget.json # test performance budgets | ||
uploadArtifacts: true # save results as an action artifacts | ||
temporaryPublicStorage: true # upload lighthouse report to the temporary storage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[ | ||
{ | ||
"path": "/*", | ||
"timings": [ | ||
{ | ||
"metric": "interactive", | ||
"budget": 3000 | ||
}, | ||
{ | ||
"metric": "first-meaningful-paint", | ||
"budget": 1000 | ||
} | ||
], | ||
"resourceSizes": [ | ||
{ | ||
"resourceType": "script", | ||
"budget": 125 | ||
}, | ||
{ | ||
"resourceType": "total", | ||
"budget": 300 | ||
} | ||
], | ||
"resourceCounts": [ | ||
{ | ||
"resourceType": "third-party", | ||
"budget": 10 | ||
} | ||
] | ||
} | ||
] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,5 @@ | |
::ng-deep .alert { | ||
margin: 0 0 10px 0; | ||
box-shadow: 0 3px 6px #0000001a; | ||
pointer-events: all; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,13 +14,13 @@ | |
* along with this program, in the LICENSE.md file in the root project directory. | ||
* If not, see https://www.gnu.org/licenses/lgpl-3.0.txt | ||
*/ | ||
import {ErrorHandler, Injectable} from '@angular/core'; | ||
import * as Sentry from '@sentry/browser'; | ||
import { ErrorHandler } from '@angular/core'; | ||
import { Injectable } from '@angular/core'; | ||
import { environment } from 'src/environments/environment'; | ||
import {environment} from 'src/environments/environment'; | ||
|
||
Sentry.init({ | ||
dsn: environment.sentryDsnUrl | ||
dsn: environment.sentryDsnUrl, | ||
release: '[email protected]' | ||
}); | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/app/modules/project/collaborator/collaborator.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<div class="collaborator-wrapper"> | ||
<div class="role">{{collaborator.role}}</div> | ||
<div class="orange"> | ||
<div class="name">{{collaborator.fullName}}</div> | ||
<ng-container *ngIf="isProduction()"> | ||
<div class="follow" (click)="onFollowClick(collaborator.id)"> | ||
<span>+</span> | ||
</div> | ||
</ng-container> | ||
</div> | ||
</div> |
81 changes: 81 additions & 0 deletions
81
src/app/modules/project/collaborator/collaborator.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
/* | ||
* | ||
* Digital Excellence Copyright (C) 2020 Brend Smits | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published | ||
* by the Free Software Foundation version 3 of the License. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty | ||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* See the GNU Lesser General Public License for more details. | ||
* | ||
* You can find a copy of the GNU Lesser General Public License | ||
* along with this program, in the LICENSE.md file in the root project directory. | ||
* If not, see https://www.gnu.org/licenses/lgpl-3.0.txt | ||
* | ||
*/ | ||
@import "assets/styles/variables"; | ||
|
||
.collaborator-wrapper { | ||
display: grid; | ||
grid-template-columns: 1fr 1.25fr; | ||
align-content: stretch; | ||
border-radius: 999px; | ||
box-shadow: inset 0 0 0 2px $accent-color-red-primary; | ||
margin-bottom: 2px; | ||
align-items: center; | ||
line-height: 1; | ||
.role { | ||
padding: 0 15px; | ||
max-width: 100%; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
color: $accent-color-red-primary; | ||
white-space: nowrap; | ||
} | ||
|
||
.orange { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
height: 28px; | ||
width: 100%; | ||
max-width: 100%; | ||
overflow: hidden; | ||
|
||
background-color: $accent-color-red-primary; | ||
color: white; | ||
border-radius: 999px; | ||
.name { | ||
padding: 0 15px; | ||
max-width: 100%; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
} | ||
|
||
.follow { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
font-size: 28px; | ||
color: white; | ||
min-width: 38px; | ||
border-left: 1px solid white; | ||
background-color: $accent-color-red-primary; | ||
max-height: 100%; | ||
height: 100%; | ||
&:hover{ | ||
background-color: $accent-color-red-secondary; | ||
cursor: pointer; | ||
} | ||
} | ||
|
||
} | ||
|
||
div { | ||
display: inline-block; | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
src/app/modules/project/collaborator/collaborator.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { Component, Input, OnInit } from '@angular/core'; | ||
import { Collaborator } from 'src/app/models/domain/collaborator'; | ||
import { environment } from 'src/environments/environment'; | ||
|
||
@Component({ | ||
selector: 'app-collaborator', | ||
templateUrl: './collaborator.component.html', | ||
styleUrls: ['./collaborator.component.scss'] | ||
}) | ||
export class CollaboratorComponent implements OnInit { | ||
|
||
@Input() collaborator: Collaborator; | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
/** | ||
* Method that is called when a user clicks the follow button on a collaborator | ||
* This functionality is not implemented YET | ||
*/ | ||
public onFollowClick(projectId: number) { | ||
// TODO: Implement this function when following users is added to the backend | ||
} | ||
|
||
/** | ||
* Check whether the the application is running in production mode | ||
* So we can hide the items that are not implemented yet | ||
*/ | ||
public isProduction(): boolean { | ||
return !environment.production; | ||
} | ||
|
||
} |
Oops, something went wrong.