Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
Updated dependencies and environment
Browse files Browse the repository at this point in the history
  • Loading branch information
bartvanb committed Jan 23, 2024
1 parent 188ca8f commit d673ccb
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 29 deletions.
4 changes: 2 additions & 2 deletions new-frontend/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
"maximumWarning": "1mb",
"maximumError": "10mb"
},
{
"type": "anyComponentStyle",
Expand Down
121 changes: 98 additions & 23 deletions new-frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions new-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
"@ngx-translate/http-loader": "^8.0.0",
"@observablehq/plot": "^0.6.11",
"angularx-qrcode": "^16.0.2",
"file-saver": "^2.0.5",
"rxjs": "~7.8.0",
"socket.io-client": "^4.7.4",
"tslib": "^2.6.2",
"zone.js": "^0.13.3"
},
Expand All @@ -41,6 +43,7 @@
"@angular/cli": "~16.2.8",
"@angular/compiler-cli": "^16.2.11",
"@types/d3": "^7.4.2",
"@types/file-saver": "^2.0.7",
"@types/jasmine": "^5.1.1",
"@types/qrcode": "^1.5.5",
"@typescript-eslint/eslint-plugin": "5.62.0",
Expand Down
6 changes: 4 additions & 2 deletions new-frontend/src/app/services/socketio-connect.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,17 @@ export class SocketioConnectService {

// update observable (generate status messages downstream) when node comes
//online
this.socket?.on('node-online', (data) => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
this.socket?.on('node-online', (data: any) => {
this.nodeStatusUpdate$.next({
id: data.id,
name: data.name,
online: true
});
});
// ... and when a node goes offline
this.socket?.on('node-offline', (data) => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
this.socket?.on('node-offline', (data: any) => {
this.nodeStatusUpdate$.next({
id: data.id,
name: data.name,
Expand Down
3 changes: 1 addition & 2 deletions new-frontend/src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ const env: EnvironmentConfig = {
production: true,
server_url: (window as any).env?.server_url || 'https://petronas.vantage6.ai',
api_path: (window as any).env?.api_path || '',
version: '0.0.0',
algorithm_server_url: (window as any).env?.algorithm_server_url || '' //TODO: add default algorithm server url
version: '0.0.0'
};

export const environment = env;

0 comments on commit d673ccb

Please sign in to comment.