-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #181 from ndsev/release/2025.1.0
Release 2025.1.0
- Loading branch information
Showing
32 changed files
with
1,090 additions
and
786 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2024.5.0 | ||
2025.1.0 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
import { Component } from "@angular/core"; | ||
import { MapService } from "./map.service"; | ||
import { ParametersService } from "./parameters.service"; | ||
|
||
@Component({ | ||
selector: 'legal-dialog', | ||
template: ` | ||
<p-dialog header="Copyright and Legal Information" [(visible)]="parametersService.legalInfoDialogVisible" [modal]="false" | ||
[style]="{'min-height': '10em', 'min-width': '40em'}"> | ||
<div class="dialog-content"> | ||
<table class="stats-table"> | ||
<thead> | ||
<tr> | ||
<th>Map Name</th> | ||
<th>Legal Information</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr *ngFor="let info of aggregatedLegalInfo"> | ||
<td>{{ info.mapName }}</td> | ||
<td>{{ info.entry }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<button pButton type="button" label="Close" icon="pi pi-cross" (click)="close()"></button> | ||
</div> | ||
</p-dialog> | ||
`, | ||
styles: [ | ||
` | ||
.dialog-content { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 1em; | ||
} | ||
.stats-table { | ||
width: 100%; | ||
border-collapse: collapse; | ||
} | ||
.stats-table th, .stats-table td { | ||
border: 1px solid #ccc; | ||
padding: 0.5em; | ||
text-align: left; | ||
} | ||
.stats-table th { | ||
background-color: #f9f9f9; | ||
font-weight: bold; | ||
} | ||
` | ||
] | ||
}) | ||
export class LegalInfoDialogComponent { | ||
public aggregatedLegalInfo: { mapName: string, entry: string }[] = []; | ||
|
||
constructor(private mapService: MapService, | ||
public parametersService: ParametersService) { | ||
this.mapService.legalInformationUpdated.subscribe(_ => { | ||
this.aggregatedLegalInfo = []; | ||
this.mapService.legalInformationPerMap.forEach((entries, mapName) => { | ||
if (entries.size) { | ||
this.aggregatedLegalInfo.push({ | ||
mapName: mapName, | ||
entry: Array.from(entries).join('\n\n') | ||
}) | ||
} | ||
}); | ||
}); | ||
} | ||
|
||
close() { | ||
this.parametersService.legalInfoDialogVisible = false; | ||
} | ||
} | ||
|
Oops, something went wrong.