Merge branch 'develop' into feature/tauri-beta-update

This commit is contained in:
Vladimir Stoilov
2024-07-04 13:47:09 +03:00
129 changed files with 30552 additions and 395 deletions

View File

@@ -181,6 +181,8 @@
Get Help
</a>
<!--
TODO: "View Active" button is broken or should have been removed.
<div sfngTipUpAnchor="left" class="flex space-x-2 flex-rows">
<sfng-tipup key="appSettings-Filter"></sfng-tipup>
<sfng-select [ngModel]="viewSetting" (ngModelChange)="viewSettingChange.next($event)"
@@ -193,6 +195,7 @@
</sfng-select-item>
</sfng-select>
</div>
-->
</div>
<div class="flex items-center text-tertiary">

View File

@@ -195,6 +195,8 @@ export class MapRendererComponent implements OnInit, AfterViewInit, OnDestroy {
data.forEach((country: any) => {
this.countryNames[country.properties.iso_a2] = country.properties.name
})
// Add special country values.
this.countryNames["__"] = "Anycast"
this.worldGroup.selectAll()
.data<GeoPermissibleObjects>(data)

View File

@@ -94,7 +94,7 @@ export class AppIconComponent implements OnInit, OnDestroy {
this._profile = p || null;
if (this.initDone) {
this.updateView(true);
this.updateView();
}
}
get profile(): IDandName | null | undefined {

View File

@@ -180,14 +180,14 @@
<span sfngAddToFilter="remote_ip" [sfngAddToFilterValue]="conn.remote_ip">
<span>Remote Peer:</span>
<span>
<span *ngIf="!!conn.country" [appCountryFlags]="conn.country"></span>
{{ conn.remote_ip || 'DNS Request'}}
<span *ngIf="conn.remote_port" class="text-tertiary">{{ ':'+conn.remote_port }}</span>
</span>
</span>
<span sfngAddToFilter="country" [sfngAddToFilterValue]="conn.country">
<span>Country:</span>
<span>{{ conn.country || 'N/A'}}</span>
<span *ngIf="!!conn.country" [appCountryFlags]="conn.country"></span>
<span>{{ (conn.country | countryName) || 'N/A' }}</span>
</span>
<span sfngAddToFilter="asn" [sfngAddToFilterValue]="conn.asn">
<span>ASN:</span>

View File

@@ -11,6 +11,9 @@ export class ConnectionLocationPipe implements PipeTransform {
return '';
}
if (!!conn.country) {
if (conn.country === "__") {
return "Anycast"
}
return conn.country;
}