Skip to content

Commit

Permalink
Development: Update client dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
krusche committed Nov 3, 2024
1 parent b63ac73 commit bbf19a0
Show file tree
Hide file tree
Showing 7 changed files with 1,216 additions and 3,124 deletions.
8 changes: 4 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ module.exports = {
coverageThreshold: {
global: {
// TODO: in the future, the following values should increase to at least 90%
statements: 87.46,
branches: 73.56,
functions: 82.04,
lines: 87.52,
statements: 87.53,
branches: 73.62,
functions: 82.09,
lines: 87.59,
},
},
coverageReporters: ['clover', 'json', 'lcov', 'text-summary'],
Expand Down
4,236 changes: 1,166 additions & 3,070 deletions package-lock.json

Large diffs are not rendered by default.

68 changes: 34 additions & 34 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@
"node_modules"
],
"dependencies": {
"@angular/animations": "18.2.9",
"@angular/cdk": "18.2.10",
"@angular/common": "18.2.9",
"@angular/compiler": "18.2.9",
"@angular/core": "18.2.9",
"@angular/forms": "18.2.9",
"@angular/localize": "18.2.9",
"@angular/material": "18.2.10",
"@angular/platform-browser": "18.2.9",
"@angular/platform-browser-dynamic": "18.2.9",
"@angular/router": "18.2.9",
"@angular/service-worker": "18.2.9",
"@angular/animations": "18.2.10",
"@angular/cdk": "18.2.11",
"@angular/common": "18.2.10",
"@angular/compiler": "18.2.10",
"@angular/core": "18.2.10",
"@angular/forms": "18.2.10",
"@angular/localize": "18.2.10",
"@angular/material": "18.2.11",
"@angular/platform-browser": "18.2.10",
"@angular/platform-browser-dynamic": "18.2.10",
"@angular/router": "18.2.10",
"@angular/service-worker": "18.2.10",
"@ctrl/ngx-emoji-mart": "9.2.0",
"@danielmoncada/angular-datetime-picker": "18.1.0",
"@fingerprintjs/fingerprintjs": "4.5.1",
Expand All @@ -34,17 +34,17 @@
"@fortawesome/free-solid-svg-icons": "6.6.0",
"@ls1intum/apollon": "3.3.15",
"@ng-bootstrap/ng-bootstrap": "17.0.1",
"@ngx-translate/core": "15.0.0",
"@ngx-translate/http-loader": "8.0.0",
"@sentry/angular": "8.35.0",
"@ngx-translate/core": "16.0.3",
"@ngx-translate/http-loader": "16.0.0",
"@sentry/angular": "8.36.0",
"@siemens/ngx-datatable": "22.4.1",
"@swimlane/ngx-charts": "20.5.0",
"@swimlane/ngx-graph": "8.4.0",
"@vscode/codicons": "0.0.36",
"@vscode/markdown-it-katex": "1.1.0",
"bootstrap": "5.3.3",
"compare-versions": "6.1.1",
"core-js": "3.38.1",
"core-js": "3.39.0",
"crypto-js": "4.2.0",
"dayjs": "1.11.13",
"diff-match-patch-typescript": "1.1.0",
Expand All @@ -67,17 +67,17 @@
"ngx-infinite-scroll": "18.0.0",
"ngx-webstorage": "18.0.0",
"papaparse": "5.4.1",
"pdfjs-dist": "4.7.76",
"posthog-js": "1.176.0",
"pdfjs-dist": "4.8.69",
"posthog-js": "1.180.1",
"rxjs": "7.8.1",
"simple-statistics": "7.8.7",
"smoothscroll-polyfill": "0.4.4",
"sockjs-client": "1.6.1",
"split.js": "1.6.5",
"ts-cacheable": "1.0.10",
"tslib": "2.8.0",
"tslib": "2.8.1",
"turndown": "7.2.0",
"uuid": "10.0.0",
"uuid": "11.0.2",
"webstomp-client": "1.2.6",
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",
"zone.js": "0.14.10"
Expand All @@ -91,17 +91,17 @@
"d3-transition": "^3.0.1"
},
"@typescript-eslint/utils": {
"eslint": "^9.13.0"
"eslint": "^9.14.0"
},
"braces": "3.0.3",
"cookie": "1.0.1",
"critters": "0.0.25",
"debug": "4.3.7",
"eslint-plugin-deprecation": {
"eslint": "^9.12.0"
"eslint": "^9.14.0"
},
"eslint-plugin-jest": {
"@typescript-eslint/eslint-plugin": "^8.11.0"
"@typescript-eslint/eslint-plugin": "^8.12.0"
},
"express": "5.0.1",
"jsdom": "25.0.1",
Expand All @@ -118,32 +118,32 @@
},
"devDependencies": {
"@angular-builders/jest": "18.0.0",
"@angular-devkit/build-angular": "18.2.10",
"@angular-devkit/build-angular": "18.2.11",
"@angular-eslint/builder": "18.4.0",
"@angular-eslint/eslint-plugin": "18.4.0",
"@angular-eslint/eslint-plugin-template": "18.4.0",
"@angular-eslint/schematics": "18.4.0",
"@angular-eslint/template-parser": "18.4.0",
"@angular/cli": "18.2.10",
"@angular/compiler-cli": "18.2.9",
"@angular/language-service": "18.2.9",
"@sentry/types": "8.35.0",
"@angular/cli": "18.2.11",
"@angular/compiler-cli": "18.2.10",
"@angular/language-service": "18.2.10",
"@sentry/types": "8.36.0",
"@types/crypto-js": "4.2.2",
"@types/d3-shape": "3.1.6",
"@types/dompurify": "3.0.5",
"@types/emoji-js": "3.5.2",
"@types/jest": "29.5.14",
"@types/lodash-es": "4.17.12",
"@types/markdown-it": "14.1.2",
"@types/node": "22.7.9",
"@types/node": "22.8.7",
"@types/papaparse": "5.3.15",
"@types/smoothscroll-polyfill": "0.3.4",
"@types/sockjs-client": "1.5.4",
"@types/turndown": "5.0.5",
"@types/uuid": "10.0.0",
"@typescript-eslint/eslint-plugin": "8.11.0",
"@typescript-eslint/parser": "8.11.0",
"eslint": "9.13.0",
"@typescript-eslint/eslint-plugin": "8.12.2",
"@typescript-eslint/parser": "8.12.2",
"eslint": "9.14.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-deprecation": "3.0.0",
"eslint-plugin-jest": "28.8.3",
Expand All @@ -159,11 +159,11 @@
"jest-junit": "16.0.0",
"jest-preset-angular": "14.2.4",
"lint-staged": "15.2.10",
"ngxtension": "4.0.0",
"ngxtension": "4.1.0",
"ng-mocks": "14.13.1",
"prettier": "3.3.3",
"rimraf": "6.0.1",
"sass": "1.80.4",
"sass": "1.80.6",
"ts-jest": "29.2.5",
"typescript": "5.5.4",
"weak-napi": "2.0.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ export class CourseExercisesComponent implements OnInit, OnDestroy {
sortedExercises?: Exercise[];
exerciseForGuidedTour?: Exercise;

exerciseSelected: boolean = true;
exerciseSelected = true;
accordionExerciseGroups: AccordionGroups = DEFAULT_UNIT_GROUPS;
sidebarData: SidebarData;
sidebarExercises: SidebarCardElement[] = [];
isCollapsed: boolean = false;
isLti: boolean = false;
isCollapsed = false;
isLti = false;

protected readonly DEFAULT_COLLAPSE_STATE = DEFAULT_COLLAPSE_STATE;
protected readonly DEFAULT_SHOW_ALWAYS = DEFAULT_SHOW_ALWAYS;
Expand Down Expand Up @@ -115,7 +115,7 @@ export class CourseExercisesComponent implements OnInit, OnDestroy {
} else if (!exerciseId && upcomingExercise) {
this.router.navigate([upcomingExercise.id], { relativeTo: this.route, replaceUrl: true });
} else {
this.exerciseSelected = exerciseId ? true : false;
this.exerciseSelected = !!exerciseId;
}
}

Expand Down Expand Up @@ -151,6 +151,7 @@ export class CourseExercisesComponent implements OnInit, OnDestroy {
private onCourseLoad() {
this.programmingSubmissionService.initializeCacheForStudent(this.course?.exercises, true);
}

onSubRouteDeactivate() {
if (this.route.firstChild) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ export class CourseLecturesComponent implements OnInit, OnDestroy {
course?: Course;
courseId: number;

lectureSelected: boolean = true;
lectureSelected = true;
sidebarData: SidebarData;
accordionLectureGroups: AccordionGroups = DEFAULT_UNIT_GROUPS;
sortedLectures: Lecture[] = [];
sidebarLectures: SidebarCardElement[] = [];
isCollapsed: boolean = false;
isCollapsed = false;
readonly DEFAULT_COLLAPSE_STATE = DEFAULT_COLLAPSE_STATE;
protected readonly DEFAULT_SHOW_ALWAYS = DEFAULT_SHOW_ALWAYS;

Expand Down Expand Up @@ -84,7 +84,7 @@ export class CourseLecturesComponent implements OnInit, OnDestroy {
} else if (!lectureId && upcomingLecture) {
this.router.navigate([upcomingLecture.id], { relativeTo: this.route, replaceUrl: true });
} else {
this.lectureSelected = lectureId ? true : false;
this.lectureSelected = !!lectureId;
}
}

Expand Down
9 changes: 2 additions & 7 deletions src/main/webapp/app/overview/course-overview.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,19 +130,14 @@ export class CourseOverviewComponent implements OnInit, OnDestroy, AfterViewInit
isExamStarted = false;
private examStartedSubscription: Subscription;
readonly MIN_DISPLAYED_COURSES: number = 6;
isLti: boolean = false;
isLti = false;
private ltiSubscription: Subscription;

// Properties to track hidden items for dropdown menu
dropdownOpen: boolean = false;
anyItemHidden: boolean = false;
anyItemHidden = false;
hiddenItems: SidebarItem[] = [];
thresholdsForEachSidebarItem: number[] = [];
dropdownOffset: number;
dropdownClickNumber: number = 0;
readonly WINDOW_OFFSET: number = 300;
readonly ITEM_HEIGHT: number = 38;
readonly BREADCRUMB_AND_NAVBAR_HEIGHT: number = 88;

private conversationServiceInstantiated = false;
private checkedForUnreadMessages = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { Exercise, ExerciseType } from 'app/entities/exercise.model';
import { MockSyncStorage } from '../../helpers/mocks/service/mock-sync-storage.service';
import { LocalStorageService, SessionStorageService } from 'ngx-webstorage';
import { MockTranslateService } from '../../helpers/mocks/service/mock-translate.service';
import { TranslateDirective, TranslateService } from '@ngx-translate/core';
import { TranslateService } from '@ngx-translate/core';
import { TextAssessmentEventType } from 'app/entities/text/text-assesment-event.model';
import { ArtemisTranslatePipe } from 'app/shared/pipes/artemis-translate.pipe';
import { GradingSystemService } from 'app/grading-system/grading-system.service';
Expand Down Expand Up @@ -50,7 +50,7 @@ describe('AssessmentHeaderComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [ArtemisTestModule, NgbTooltipMocksModule, NgbAlertsMocksModule, RouterModule.forRoot([])],
declarations: [AssessmentHeaderComponent, AssessmentWarningComponent, AlertOverlayComponent, TranslateDirective, ArtemisTranslatePipe, MockTranslateValuesDirective],
declarations: [AssessmentHeaderComponent, AssessmentWarningComponent, AlertOverlayComponent, ArtemisTranslatePipe, MockTranslateValuesDirective],
providers: [
{
provide: AlertService,
Expand Down

0 comments on commit bbf19a0

Please sign in to comment.