Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "frontend",
"version": "1.0.121",
"version": "1.0.124",
"scripts": {
"install:deps": "npm install",
"start": "npm install && ng serve --configuration local --open",
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/app/core/services/firestore.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
DocumentData,
} from '@angular/fire/firestore';
import { HttpClient } from '@angular/common/http';
import { catchError, EMPTY, Observable } from 'rxjs';
import { catchError, EMPTY, Observable, of } from 'rxjs';

@Injectable({
providedIn: 'root',
Expand All @@ -30,7 +30,7 @@ export class FirestoreService {
return this.http.post(this.cloudFunctionUrl, { data }).pipe(
catchError(error => {
console.error('Error while posting to cloud function:', error);
return error;
return of(null);
}),
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,16 @@ <h2>Set Up Your Web Node</h2>
}
<div class="buttons-container fx-row-vert-cent flex-between">
<div class="develop-buttons fx-row-vert-cent">
<!-- <button class="btn-aware h-lg border-rad-8 f-500 pl-12 pr-12"-->
<!-- [tooltip]="'Start a develop Block Producer Web Node'"-->
<!-- (click)="onStartDevelopWebnode()">Start BP-->
<!-- </button>-->
<!-- <button class="btn-aware h-lg border-rad-8 f-500 pl-12 pr-12"-->
<!-- [tooltip]="'Start a develop Web Node without Block Producer feature'"-->
<!-- (click)="onStartDevelopWebnodeNonBP()">Start Non BP-->
<!-- </button>-->
@if (!isLeaderboard) {
<button class="btn-aware h-lg border-rad-8 f-500 pl-12 pr-12"
[tooltip]="'Start a develop Block Producer Web Node'"
(click)="onStartDevelopWebnode()">Start BP
</button>
<button class="btn-aware h-lg border-rad-8 f-500 pl-12 pr-12"
[tooltip]="'Start a develop Web Node without Block Producer feature'"
(click)="onStartDevelopWebnodeNonBP()">Start Non BP
</button>
}
</div>
<button class="whitey h-lg border-rad-8 f-500 pl-12 pr-12"
(click)="startCustomWebNode()"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export class WebNodeFileUploadComponent extends ManualDetection {
validFiles: boolean = false;
error: boolean = false;
uploadedFileName: string;
isLeaderboard: boolean = CONFIG.showLeaderboard;

constructor(private webnodeService: WebNodeService) { super(); }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<div class="chip mr-8 p-relative h-sm pl-5 pr-5 fx-row-full-cent border-rad-6 text-nowrap"
[class.aware]="uptime.uptimePercentage <= 33.33"
[tooltip]="'Uptime tracks node availability in 5-min intervals. Each interval requires 1+ heartbeat while synced. Score reflects total synced intervals.'">
<span class="mina-icon icon-300 f-20">beenhere</span>
<div>Uptime {{ uptime.uptimePercentage }}% <span>{{ uptime.uptimeTime }}</span></div>
Expand Down
19 changes: 19 additions & 0 deletions frontend/src/app/layout/uptime-pill/uptime-pill.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,25 @@
}
}

&.aware {
&::before {
background-color: $aware-container;
}

div {
color: $aware-primary;
}

span {
color: $aware-secondary;

&.mina-icon {
display: none;
color: $aware-primary;
}
}
}

@media (max-width: 767px) {
width: 100%;
margin-bottom: 5px;
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
<body class="f-base">
<script>
const deployment = {
dateUTC: '2025-02-05T12:34:44.258Z',
dateUTC: '2025-02-06T07:59:47.969Z',
deviceIp: '5.13.60.20',
deviceOS: 'macOS',
deviceOSVersion: '23.5.0',
version: '1.0.121',
version: '1.0.124',
};
window.deployment = deployment;

Expand Down
Loading