Skip to content

Commit 88ea92e

Browse files
committed
update
1 parent 737c469 commit 88ea92e

8 files changed

Lines changed: 3003 additions & 2569 deletions

File tree

package-lock.json

Lines changed: 2951 additions & 2514 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@
1111
},
1212
"private": true,
1313
"dependencies": {
14-
"@angular/animations": "^20.1.3",
14+
"@angular/animations": "^21.0.2",
1515
"@angular/cdk": "^20.2.14",
16-
"@angular/common": "^20.1.3",
17-
"@angular/compiler": "^20.1.3",
18-
"@angular/core": "^20.1.3",
19-
"@angular/forms": "^20.1.3",
20-
"@angular/localize": "^20.1.3",
21-
"@angular/platform-browser": "^20.1.3",
22-
"@angular/platform-browser-dynamic": "^20.1.3",
23-
"@angular/router": "^20.1.3",
24-
"@angular/service-worker": "^20.1.3",
16+
"@angular/common": "^21.0.2",
17+
"@angular/compiler": "^21.0.2",
18+
"@angular/core": "^21.0.2",
19+
"@angular/forms": "^21.0.2",
20+
"@angular/localize": "^21.0.2",
21+
"@angular/platform-browser": "^21.0.2",
22+
"@angular/platform-browser-dynamic": "^21.0.2",
23+
"@angular/router": "^21.0.2",
24+
"@angular/service-worker": "^21.0.2",
2525
"@citation-js/core": "^0.7.14",
2626
"@citation-js/plugin-csl": "^0.7.14",
2727
"@citation-js/plugin-doi": "^0.7.16",
@@ -64,9 +64,9 @@
6464
"zone.js": "~0.15.0"
6565
},
6666
"devDependencies": {
67-
"@angular/build": "^20.1.3",
68-
"@angular/cli": "^20.1.3",
69-
"@angular/compiler-cli": "^20.1.3",
67+
"@angular/build": "^21.0.1",
68+
"@angular/cli": "^21.0.1",
69+
"@angular/compiler-cli": "^21.0.2",
7070
"@types/chroma-js": "^2.1.3",
7171
"@types/cytoscape-cxtmenu": "^3.4.0",
7272
"@types/file-saver": "^2.0.5",
@@ -83,6 +83,6 @@
8383
"karma-coverage": "~2.1.0",
8484
"karma-jasmine": "~4.0.0",
8585
"karma-jasmine-html-reporter": "~1.7.0",
86-
"typescript": "~5.8.3"
86+
"typescript": "~5.9.3"
8787
}
8888
}

src/app/components/are-you-sure-clear-modal/are-you-sure-clear-modal.component.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Component, signal } from '@angular/core';
22
import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap";
33
import {FormsModule} from "@angular/forms";
4-
import {CommonModule} from "@angular/common";
4+
55

66
interface ClearSetting {
77
key: string;
@@ -13,9 +13,8 @@ interface ClearSetting {
1313
@Component({
1414
selector: 'app-are-you-sure-clear-modal',
1515
imports: [
16-
FormsModule,
17-
CommonModule
18-
],
16+
FormsModule
17+
],
1918
templateUrl: './are-you-sure-clear-modal.component.html',
2019
styleUrl: './are-you-sure-clear-modal.component.scss'
2120
})

src/app/components/batch-upload-modal/batch-upload-modal.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {DataFrame, fromCSV} from "data-forge";
55
import {InputFile} from "../../classes/input-file";
66
import {Differential} from "../../classes/differential";
77
import {Raw} from "../../classes/raw";
8-
import {NgClass, NgForOf, NgIf} from "@angular/common";
8+
import { NgClass } from "@angular/common";
99
import {
1010
NgbActiveModal,
1111
NgbNav,

src/app/components/session-save-modal/session-save-modal.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component, Input, signal } from '@angular/core';
22
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
3-
import { CommonModule } from '@angular/common';
3+
44
import { FormsModule } from '@angular/forms';
55
import { SiteProperties } from 'curtain-web-api';
66

@@ -11,7 +11,7 @@ export interface SessionSaveOptions {
1111

1212
@Component({
1313
selector: 'app-session-save-modal',
14-
imports: [CommonModule, FormsModule],
14+
imports: [FormsModule],
1515
templateUrl: './session-save-modal.component.html',
1616
styleUrl: './session-save-modal.component.scss',
1717
})
Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,32 @@
1-
<div class="protein-info-panel card" [ngStyle]="panelStyle" *ngIf="visible">
2-
<div class="card-header d-flex justify-content-between align-items-center">
3-
<h6 class="mb-0">{{ proteinId ? 'Protein Information' : 'Interaction Information' }}</h6>
4-
<button type="button" class="btn-close btn-close-white" aria-label="Close" (click)="onClose()"></button>
5-
</div>
6-
<div class="card-body p-0">
7-
@if (loading) {
8-
<div class="d-flex justify-content-center align-items-center p-3">
9-
<div class="spinner-border spinner-border-sm me-2" role="status">
10-
<span class="visually-hidden">Loading...</span>
1+
@if (visible) {
2+
<div class="protein-info-panel card" [ngStyle]="panelStyle">
3+
<div class="card-header d-flex justify-content-between align-items-center">
4+
<h6 class="mb-0">{{ proteinId ? 'Protein Information' : 'Interaction Information' }}</h6>
5+
<button type="button" class="btn-close btn-close-white" aria-label="Close" (click)="onClose()"></button>
6+
</div>
7+
<div class="card-body p-0">
8+
@if (loading) {
9+
<div class="d-flex justify-content-center align-items-center p-3">
10+
<div class="spinner-border spinner-border-sm me-2" role="status">
11+
<span class="visually-hidden">Loading...</span>
12+
</div>
13+
<span>Loading...</span>
14+
</div>
15+
}
16+
@if (error) {
17+
<div class="alert alert-danger m-3 mb-0" role="alert">
18+
<i class="bi bi-exclamation-triangle me-2"></i>
19+
{{error}}
1120
</div>
12-
<span>Loading...</span>
13-
</div>
14-
}
15-
@if (error) {
16-
<div class="alert alert-danger m-3 mb-0" role="alert">
17-
<i class="bi bi-exclamation-triangle me-2"></i>
18-
{{error}}
19-
</div>
20-
}
21-
@if (!loading && !error && contentHtml) {
22-
<iframe
23-
#contentFrame
24-
class="protein-info-iframe"
25-
frameborder="0"
26-
scrolling="auto">
27-
</iframe>
28-
}
21+
}
22+
@if (!loading && !error && contentHtml) {
23+
<iframe
24+
#contentFrame
25+
class="protein-info-iframe"
26+
frameborder="0"
27+
scrolling="auto">
28+
</iframe>
29+
}
30+
</div>
2931
</div>
30-
</div>
32+
}

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { enableProdMode } from '@angular/core';
1+
import { enableProdMode, provideZoneChangeDetection } from '@angular/core';
22
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
33

44
import { AppModule } from './app/app.module';
@@ -8,5 +8,5 @@ if (environment.production) {
88
enableProdMode();
99
}
1010

11-
platformBrowserDynamic().bootstrapModule(AppModule)
11+
platformBrowserDynamic().bootstrapModule(AppModule, { applicationProviders: [provideZoneChangeDetection()], })
1212
.catch(err => console.error(err));

tsconfig.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@
1919
"importHelpers": true,
2020
"target": "ES2022",
2121
"module": "ES2022",
22-
"lib": [
23-
"es2020",
24-
"dom"
25-
],
2622
"useDefineForClassFields": false,
2723
"types": [
2824
"node",

0 commit comments

Comments
 (0)