Skip to content
Open
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
48 changes: 26 additions & 22 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@
"@abacritt/angularx-social-login": "2.3.0",
"@ai-sdk/openai": "2.0.67",
"@ali-hm/angular-tree-component": "12.0.5",
"@angular/animations": "16.2.12",
"@angular/cdk": "16.2.12",
"@angular/common": "16.2.12",
"@angular/compiler": "16.2.12",
"@angular/core": "16.2.12",
"@angular/forms": "16.2.12",
"@angular/localize": "16.2.12",
"@angular/platform-browser": "16.2.12",
"@angular/platform-browser-dynamic": "16.2.12",
"@angular/router": "16.2.12",
"@angular/animations": "17.3.12",
"@angular/cdk": "17.3.10",
"@angular/common": "17.3.12",
"@angular/compiler": "17.3.12",
"@angular/core": "17.3.12",
"@angular/forms": "17.3.12",
"@angular/localize": "17.3.12",
"@angular/platform-browser": "17.3.12",
"@angular/platform-browser-dynamic": "17.3.12",
"@angular/router": "17.3.12",
"@auth0/angular-jwt": "5.1.0",
"@codingame/monaco-vscode-java-default-extension": "8.0.4",
"@codingame/monaco-vscode-python-default-extension": "8.0.4",
Expand Down Expand Up @@ -63,18 +63,18 @@
"js-abbreviation-number": "1.4.0",
"jszip": "3.10.1",
"lodash-es": "4.17.21",
"marked": "4.3.0",
"marked": "12.0.2",
"monaco-breakpoints": "0.2.0",
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@8.0.4",
"monaco-editor-wrapper": "5.5.3",
"monaco-languageclient": "8.8.3",
"ng-zorro-antd": "16.2.2",
"ng-zorro-antd": "17.4.1",
"ng2-pdf-viewer": "9.1.5",
"ngx-color-picker": "12.0.1",
"ngx-file-drop": "16.0.0",
"ngx-image-viewer": "1.0.13",
"ngx-json-viewer": "3.2.1",
"ngx-markdown": "16.0.0",
"ngx-markdown": "17.2.1",
"papaparse": "5.4.1",
"path-browserify": "1.0.1",
"plotly.js-basic-dist-min": "2.29.0",
Expand All @@ -97,24 +97,27 @@
"y-websocket": "1.4.0",
"yjs": "13.5.41",
"zod": "3.25.76",
"zone.js": "0.13.0"
"zone.js": "0.14.10"
},
"resolutions": {
"vscode": "npm:@codingame/monaco-vscode-api@8.0.4",
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@8.0.4",
"webpack": "5.89.0"
},
"devDependencies": {
"@angular-builders/custom-webpack": "16.0.1",
"@angular-devkit/build-angular": "16.2.12",
"@angular-eslint/eslint-plugin": "16.3.1",
"@angular-eslint/eslint-plugin-template": "16.3.1",
"@angular-eslint/template-parser": "16.3.1",
"@angular/cli": "16.2.12",
"@angular/compiler-cli": "16.2.12",
"@angular-builders/custom-webpack": "17.0.2",
"@angular-devkit/build-angular": "17.3.17",
"@angular-devkit/core": "17.3.17",
"@angular-devkit/schematics": "17.3.17",
"@angular-eslint/eslint-plugin": "17.5.3",
"@angular-eslint/eslint-plugin-template": "17.5.3",
"@angular-eslint/template-parser": "17.5.3",
"@angular/cli": "17.3.17",
"@angular/compiler-cli": "17.3.12",
"@nrwl/cli": "15.9.7",
"@nrwl/nx-cloud": "19.1.0",
"@nx/angular": "20.0.3",
"@schematics/angular": "17.3.17",
"@types/backbone": "1.4.15",
"@types/concaveman": "1.1.6",
"@types/content-disposition": "0",
Expand Down Expand Up @@ -157,7 +160,8 @@
"sass": "1.71.1",
"style-loader": "3.3.4",
"ts-node": "4.1.0",
"typescript": "5.1.6",
"typescript": "5.4.5",
"webpack": "5.89.0",
"webpack-bundle-analyzer": "4.5.0"
},
"browserslist": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
outline: transparent;
overflow: visible;
position: relative;
: 1pt;
}

:host ::ng-deep .ql-editor > p {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const TOOLBAR = [
})
export class MarkdownDescriptionComponent implements OnInit, OnChanges, AfterViewInit, OnDestroy {
private modalData = inject(NZ_MODAL_DATA, { optional: true });
private markdownRenderSequence = 0;
private resizeObserver?: ResizeObserver;

@Input() description = "";
Expand Down Expand Up @@ -140,8 +141,20 @@ export class MarkdownDescriptionComponent implements OnInit, OnChanges, AfterVie
}

renderMarkdown(text: string): void {
this.renderedDescription = text?.trim() ? this.markdownService.parse(text) : "";
this.scheduleOverflowCheck();
const currentRenderSequence = ++this.markdownRenderSequence;
if (!text?.trim()) {
this.renderedDescription = "";
this.scheduleOverflowCheck();
return;
}

Promise.resolve(this.markdownService.parse(text)).then(renderedDescription => {
if (currentRenderSequence !== this.markdownRenderSequence) {
return;
}
this.renderedDescription = renderedDescription;
this.scheduleOverflowCheck();
});
Comment thread
aglinxinyuan marked this conversation as resolved.
}

toggleViewMore(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
flex-direction: column;
gap: 10px;
justify-content: center;
align-items: start;
align-items: flex-start;
}

.select-unit.name-field {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ <h3 class="file-title">
*ngIf="selectedVersion"
[isMaximized]="isMaximized"
[did]="did"
[dvid]="selectedVersion?.dvid"
[dvid]="selectedVersion.dvid"
[filePath]="currentDisplayedFileName"
[fileSize]="currentFileSize"
[isLogin]="isLogin"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
.create-computing-unit {
display: flex;
gap: 10px;
justify-content: start;
justify-content: flex-start;
align-items: center;
}

Expand Down Expand Up @@ -197,7 +197,7 @@
flex-direction: column;
gap: 10px;
justify-content: center;
align-items: start;
align-items: flex-start;
}

.select-unit.name-field {
Expand Down Expand Up @@ -306,7 +306,7 @@
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(1, 1fr);
justify-content: start;
justify-content: flex-start;
align-items: center;
gap: 5px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,7 @@ export class JointUIService {
break;
}
jointPaper.getModelById(operatorID).attr({
[`.${operatorStateClass}`]: { text: operatorState.toString() },
[`.${operatorStateClass}`]: { fill: fillColor },
[`.${operatorStateClass}`]: { text: operatorState.toString(), fill: fillColor },
"rect.body": { stroke: fillColor },
[`.${operatorPortMetricsClass}`]: { fill: fillColor },
[`.${operatorWorkerCountClass}`]: { fill: fillColor },
Expand Down
Loading
Loading