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

@@ -11,8 +11,8 @@ mnt="$( cd ../.. && pwd )"
docker run \
-ti \
--rm \
-v $mnt:/portmaster-ui \
-w /portmaster-ui/modules/portmaster \
-v $mnt:/portmaster \
-w /portmaster/desktop/angular \
-p 8081:8080 \
node:latest \
npm start -- --host 0.0.0.0 --port 8080

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "portmaster",
"version": "0.8.5",
"version": "0.8.7",
"scripts": {
"ng": "ng",
"start": "npm install && npm run build-libs:dev && ng serve --proxy-config ./proxy.json",

View File

@@ -18,6 +18,12 @@ export class DebugAPI {
})
}
ready(): Observable<string> {
return this.http.get(`${this.httpAPI}/v1/ready`, {
responseType: 'text'
})
}
getStack(): Observable<string> {
return this.http.get(`${this.httpAPI}/v1/debug/stack`, {
responseType: 'text'

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;
}