-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduced CardSettings for more flexible configuration #13
- Loading branch information
tillias
committed
Oct 4, 2020
1 parent
903c75d
commit fdecd0b
Showing
3 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
...app/entities/microservice/microservice-dashboard/microservice-card/card-settings.model.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,11 @@ | ||
export interface ICardSettings { | ||
previewWidth: number; | ||
previewHeight: number; | ||
fallbackImage: string; | ||
} | ||
|
||
export class CardSettings implements ICardSettings { | ||
static DEFAULT: CardSettings = new CardSettings(96, 96, '/content/images/jhipster_family_member_1.svg'); | ||
|
||
constructor(public previewWidth: number, public previewHeight: number, public fallbackImage: 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