Skip to content

Commit a39dbb7

Browse files
authored
ci(webapp): use pinned biome version for checking player-project (#1386)
1 parent 0bde6b1 commit a39dbb7

30 files changed

+38
-49
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -423,13 +423,14 @@ jobs:
423423
with:
424424
npm_token: ${{ secrets.ARTIFACTORY_NPM_READ_TOKEN }}
425425

426-
- name: Install Biome
427-
run: npm install -g @biomejs/biome
426+
- name: Install NPM dependencies for webapp
427+
working-directory: webapp/
428+
run: npm install
428429

429430
- name: Check
430-
working-directory: webapp/player-project
431-
run: biome check ./src
432-
431+
working-directory: webapp/
432+
run: npm run player:check
433+
433434
- name: Install NPM dependencies for video player
434435
working-directory: webapp/video-player
435436
run: npm install

webapp/src/client/app/app-auth.interceptor.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { HttpErrorResponse, HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
1+
import { HttpErrorResponse, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
22
import { Injectable } from '@angular/core';
33
import { Router } from '@angular/router';
44
import { AuthService } from '@shared/services/auth.service';
55
import { NavigationService } from '@shared/services/navigation.service';
6-
import { Observable, throwError } from 'rxjs';
6+
import { throwError } from 'rxjs';
77
import { catchError } from 'rxjs/operators';
88

99
@Injectable()
@@ -26,7 +26,7 @@ export class AuthInterceptor implements HttpInterceptor {
2626
const currentUrl = new URL(window.location.href);
2727
const targetUrl = new URL(req.url);
2828
goToNext.push(currentUrl.hostname !== targetUrl.hostname);
29-
} catch (e) {
29+
} catch (_e) {
3030
// do nothing, the url is not valid, the req is for the same host
3131
}
3232

webapp/src/client/app/modules/base/menu/app-menu.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class AppMenuComponent extends BaseComponent implements OnInit {
7878
(): void => {
7979
this.navigationService.navigateToRoot().then(noop);
8080
},
81-
(url: string) => false,
81+
(_url: string) => false,
8282
true,
8383
);
8484

@@ -109,7 +109,7 @@ export class AppMenuComponent extends BaseComponent implements OnInit {
109109
* This function always returns zero, indicating "no change" in order.
110110
* KAH Dec 16 2023
111111
*/
112-
asIsOrder(a: KeyValue<string, RouterMenuItem>, b: KeyValue<string, RouterMenuItem>): number {
112+
asIsOrder(_a: KeyValue<string, RouterMenuItem>, _b: KeyValue<string, RouterMenuItem>): number {
113113
return 1;
114114
}
115115

webapp/src/client/app/modules/base/menu/menu-group-list-item/menu-group-list-item.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class MenuGroupListItemComponent extends BaseComponent implements OnInit,
2525
this.onMenuGroupMouseLeave(); // Call this function to reset the icon at init
2626
}
2727

28-
onToggleMenuGroupList($event: MouseEvent): void {
28+
onToggleMenuGroupList(_$event: MouseEvent): void {
2929
if (this.accordion) {
3030
this.isClosed = !this.isClosed;
3131
if (this.isClosed) {

webapp/src/client/app/modules/base/menu/menu-list-active-sessions/menu-list-active-sessions.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component, Input, OnInit } from '@angular/core';
22
import { BaseComponent } from '@shared/bases/base.component';
3-
import { ConnectionSessionType, SessionType, WebSession } from '@shared/models/web-session.model';
3+
import { SessionType, WebSession } from '@shared/models/web-session.model';
44
import { WebSessionService } from '@shared/services/web-session.service';
55
import { takeUntil } from 'rxjs/operators';
66

webapp/src/client/app/modules/web-client/ard/web-client-ard.component.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ import { catchError, map, switchMap, takeUntil } from 'rxjs/operators';
2828
import '@devolutions/iron-remote-desktop/iron-remote-desktop.js';
2929
import { ardQualityMode, Backend, resolutionQuality, wheelSpeedFactor } from '@devolutions/iron-remote-desktop-vnc';
3030
import { DVL_ARD_ICON, DVL_WARNING_ICON, JET_ARD_URL } from '@gateway/app.constants';
31-
import { ArdQualityMode } from '@gateway/shared/enums/ard-quality-mode.enum';
32-
import { ResolutionQuality } from '@gateway/shared/enums/resolution-quality.enum';
3331
import { AnalyticService, ProtocolString } from '@gateway/shared/services/analytic.service';
3432
import { ExtractedHostnamePort } from '@shared/services/utils/string.service';
3533
import { v4 as uuidv4 } from 'uuid';
@@ -385,7 +383,7 @@ export class WebClientArdComponent extends WebClientBaseComponent implements OnI
385383
this.remoteClient.onSessionEvent(handler);
386384
}
387385

388-
private handleSessionStarted(event: SessionEvent): void {
386+
private handleSessionStarted(_event: SessionEvent): void {
389387
this.handleIronRDPConnectStarted();
390388
this.initializeStatus();
391389
}

webapp/src/client/app/modules/web-client/form/form-components/ssh/ssh-form.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { AfterViewInit, ChangeDetectorRef, Component, Injectable, Input, OnDestroy, OnInit } from '@angular/core';
22
import { FormGroup } from '@angular/forms';
33
import { SshAuthMode } from '@gateway/shared/enums/web-client-auth-mode.enum';
4-
import { SSHFormDataInput } from '@gateway/shared/interfaces/forms.interfaces';
54
import { SshKeyService } from '@gateway/shared/services/ssh-key.service';
65
import { WebFormService } from '@gateway/shared/services/web-form.service';
76
import { BaseComponent } from '@shared/bases/base.component';

webapp/src/client/app/modules/web-client/form/form-controls/enable-cursor-control/enable-cursor-control.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { Component, Input, OnInit } from '@angular/core';
22
import { FormGroup } from '@angular/forms';
33

44
import { BaseComponent } from '@shared/bases/base.component';
5-
import { ArdQualityMode } from '@shared/enums/ard-quality-mode.enum';
65
import { WebFormService } from '@shared/services/web-form.service';
76

87
@Component({

webapp/src/client/app/modules/web-client/form/form-controls/enable-display-configuration-control/enable-display-configuration-control.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { Component, Input, OnInit } from '@angular/core';
22
import { FormGroup } from '@angular/forms';
33

44
import { BaseComponent } from '@shared/bases/base.component';
5-
import { ArdQualityMode } from '@shared/enums/ard-quality-mode.enum';
65
import { WebFormService } from '@shared/services/web-form.service';
76

87
@Component({

webapp/src/client/app/modules/web-client/form/form-controls/file-control/file-control.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, ElementRef, Input, OnDestroy, OnInit, ViewChild } from '@angular/core';
1+
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
22
import { SshKeyService } from '@gateway/shared/services/ssh-key.service';
33
import { WebFormService } from '@gateway/shared/services/web-form.service';
44
import { ValidateFileResult } from '../../../../../shared/services/ssh-key.service';

0 commit comments

Comments
 (0)