-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
5bbcb5c
commit 1be0abb
Showing
29 changed files
with
839 additions
and
353 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
57 changes: 57 additions & 0 deletions
57
COMETwebapp/Components/ModelDashboard/Elements/ElementDomainProgress.razor
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,57 @@ | ||
<!------------------------------------------------------------------------------ | ||
Copyright (c) 2022 RHEA System S.A. | ||
Authors: Justine Veirier d'aiguebonne, Sam Gerené, Alex Vorobiev, Alexander van Delft | ||
This file is part of COMET WEB Community Edition | ||
The COMET WEB Community Edition is the RHEA Web Application implementation of ECSS-E-TM-10-25 Annex A and Annex C. | ||
The COMET WEB Community Edition is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Affero General Public | ||
License as published by the Free Software Foundation; either | ||
version 3 of the License, or (at your option) any later version. | ||
The COMET WEB Community Edition 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 | ||
Affero General Public License for more details. | ||
You should have received a copy of the GNU Affero General Public License | ||
along with this program. If not, see http://www.gnu.org/licenses/. | ||
-------------------------------------------------------------------------------> | ||
|
||
@if (this.Data != null) | ||
{ | ||
var identifiedElements = Math.Round((double)this.IdentifiedElements.Count * 100 / this.Data.Count); | ||
var otherElements = 100 - identifiedElements; | ||
<div class="container-fluid p-0"> | ||
<div class="row m-0"> | ||
<BSProgress Class="height-30px"> | ||
<BSProgressBar IsStriped="true" Class="taskdone" Value="otherElements"> | ||
@otherElements % | ||
</BSProgressBar> | ||
<BSProgressBar IsStriped="true" Color="BSColor.Danger" Value="identifiedElements"> | ||
@identifiedElements % | ||
</BSProgressBar> | ||
</BSProgress> | ||
</div> | ||
|
||
<ElementTable Elements="@IdentifiedElements"/> | ||
</div> | ||
} | ||
|
||
@code { | ||
/// <summary> | ||
/// <see cref="ElementDefinition">s owned by the active domain | ||
/// </summary> | ||
[Parameter] | ||
public List<ElementDefinition>? Data { get; set; } | ||
|
||
|
||
/// <summary> | ||
/// <see cref="ElementDefinition">s identified as unused or unreferenced | ||
/// </summary> | ||
[Parameter] | ||
public List<ElementDefinition> IdentifiedElements { get; set; } | ||
|
||
} |
56 changes: 56 additions & 0 deletions
56
COMETwebapp/Components/ModelDashboard/Elements/ElementTable.razor
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,56 @@ | ||
<!------------------------------------------------------------------------------ | ||
Copyright (c) 2022 RHEA System S.A. | ||
Authors: Justine Veirier d'aiguebonne, Sam Gerené, Alex Vorobiev, Alexander van Delft | ||
This file is part of COMET WEB Community Edition | ||
The COMET WEB Community Edition is the RHEA Web Application implementation of ECSS-E-TM-10-25 Annex A and Annex C. | ||
The COMET WEB Community Edition is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Affero General Public | ||
License as published by the Free Software Foundation; either | ||
version 3 of the License, or (at your option) any later version. | ||
The COMET WEB Community Edition 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 | ||
Affero General Public License for more details. | ||
You should have received a copy of the GNU Affero General Public License | ||
along with this program. If not, see http://www.gnu.org/licenses/. | ||
-------------------------------------------------------------------------------> | ||
|
||
@if(this.Elements != null && this.Elements.Count != 0) | ||
{ | ||
<div class="m-top-20px" style="border: 1px solid #008bd2; border-radius: 10px;"> | ||
<BSTable IsBordered="false" IsStriped="true" Class="text-align-center"> | ||
<BSTHead> | ||
<BSTR> | ||
<BSTD>Element</BSTD> | ||
</BSTR> | ||
</BSTHead> | ||
<BSTBody> | ||
@foreach(var element in this.Elements) | ||
{ | ||
<BSTR AlignRow="AlignRow.Middle"> | ||
<BSTD>@element.Name</BSTD> | ||
</BSTR> | ||
} | ||
</BSTBody> | ||
</BSTable> | ||
</div> | ||
} else | ||
{ | ||
<div> | ||
No Task to do. | ||
</div> | ||
} | ||
|
||
|
||
@code { | ||
/// <summary> | ||
/// All <see cref="ParameterValueSet"> to complete | ||
/// </summary> | ||
[Parameter] | ||
public List<ElementDefinition>? Elements { get; set; } | ||
} |
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
Oops, something went wrong.