-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pmp): remove repository - front
refs #181
- Loading branch information
1 parent
b2f6468
commit fd9344c
Showing
33 changed files
with
290 additions
and
17 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
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
3 changes: 3 additions & 0 deletions
3
libs/pmp-web/repository/domain/src/lib/payloads/delete-repository.payload.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,3 @@ | ||
export interface DeleteRepositoryPayload { | ||
repositoryId: string; | ||
} |
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
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
File renamed without changes.
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 @@ | ||
export * from './payloads/generic-dialog.payload'; |
5 changes: 5 additions & 0 deletions
5
libs/pmp-web/shared/domain/src/payloads/generic-dialog.payload.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,5 @@ | ||
export interface GenericDialogPayload { | ||
message?: string; | ||
noOptionMsg?: string; | ||
yesOptionMsg?: string; | ||
} |
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,7 @@ | ||
# pmp-web-shared-ui-generic-dialog | ||
|
||
This library was generated with [Nx](https://nx.dev). | ||
|
||
## Running unit tests | ||
|
||
Run `nx test pmp-web-shared-ui-generic-dialog` to execute the unit tests. |
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,9 @@ | ||
module.exports = { | ||
name: 'pmp-web-shared-ui-generic-dialog', | ||
preset: '../../../../jest.config.js', | ||
coverageDirectory: '../../../../coverage/libs/pmp-web/shared/ui-generic-dialog', | ||
snapshotSerializers: [ | ||
'jest-preset-angular/AngularSnapshotSerializer.js', | ||
'jest-preset-angular/HTMLCommentSerializer.js' | ||
] | ||
}; |
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,3 @@ | ||
export * from './lib/pmp-web-shared-ui-generic-dialog.module'; | ||
|
||
export * from './lib/components/generic-dialog/generic-dialog.component'; |
11 changes: 11 additions & 0 deletions
11
.../shared/ui-generic-dialog/src/lib/components/generic-dialog/generic-dialog.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 @@ | ||
<mat-dialog-content> | ||
<span>{{ message }}</span> | ||
</mat-dialog-content> | ||
<mat-dialog-actions> | ||
<button [mat-dialog-close]="false" mat-button type="button"> | ||
{{ noOptionMsg | uppercase }} | ||
</button> | ||
<button [mat-dialog-close]="true" color="primary" mat-button type="button"> | ||
{{ yesOptionMsg | uppercase }} | ||
</button> | ||
</mat-dialog-actions> |
3 changes: 3 additions & 0 deletions
3
.../shared/ui-generic-dialog/src/lib/components/generic-dialog/generic-dialog.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,3 @@ | ||
.mat-dialog-actions { | ||
justify-content: flex-end; | ||
} |
20 changes: 20 additions & 0 deletions
20
...eb/shared/ui-generic-dialog/src/lib/components/generic-dialog/generic-dialog.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,20 @@ | ||
import { Component, Inject } from '@angular/core'; | ||
import { MAT_DIALOG_DATA } from '@angular/material'; | ||
import { GenericDialogPayload } from '@pimp-my-pr/pmp-web/shared/domain'; | ||
|
||
@Component({ | ||
selector: 'pimp-my-pr-generic-dialog', | ||
templateUrl: './generic-dialog.component.html', | ||
styleUrls: ['./generic-dialog.component.scss'] | ||
}) | ||
export class GenericDialogComponent { | ||
message: string; | ||
noOptionMsg: string; | ||
yesOptionMsg: string; | ||
|
||
constructor(@Inject(MAT_DIALOG_DATA) data: GenericDialogPayload) { | ||
this.message = data && data.message ? data.message : 'Are you sure?'; | ||
this.noOptionMsg = data && data.noOptionMsg ? data.noOptionMsg : 'Cancel'; | ||
this.yesOptionMsg = data && data.yesOptionMsg ? data.yesOptionMsg : 'Yes'; | ||
} | ||
} |
Oops, something went wrong.