docker + css tweaks + samediMalin

This commit is contained in:
nessar committed 2025-10-29 01:23:15 +01:00
1 parent 865555a19b
commit 2b552cf5cd
9 files changed
+191 -11

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
<h1>{{ title() }}</h1>
<div class="content">
<app-user-input></app-user-input>
<mat-divider [vertical]="true" style="height: 100%;"></mat-divider>
<mat-divider [vertical]="true" style="height: 80%;"></mat-divider>
<app-calendar-year></app-calendar-year>
</div>
</main>
+1 -2
View File
@@ -13,5 +13,4 @@
align-items: center;
justify-content: center;
gap: 2rem;
height: 80%;
}
}
@@ -25,7 +25,7 @@ export class CalendarYear implements OnInit {
this.selectedDates.optimizeVacations(vacationData);
}
this.isLoading.set(false);
}, 500);
}, 1);
});
}
@@ -35,6 +35,5 @@ export class CalendarYear implements OnInit {
ngOnInit(): void {
this.selectedDates = this.calendarService.getSelectedDatesForYear(this.year);
this.isLoading.set(false);
}
}
+3
View File
@@ -494,6 +494,7 @@ export class SelectedDates implements SelectedDateInterface {
this._datesSelected = [...tempDatesBackup];
this.push(new SelectedDate(DayType.CP, new DateRange<Date>(twoDaysBefore1, twoDaysBefore2)));
vacationsNumber.cp -= 2;
vacationsNumber.other += 1; // Reward: gain 1 other day
},
heuristic: this.computeHeuristics()
});
@@ -509,6 +510,7 @@ export class SelectedDates implements SelectedDateInterface {
this._datesSelected = [...tempDatesBackup];
this.push(new SelectedDate(DayType.CP, new DateRange<Date>(twoDaysAfter1, twoDaysAfter2)));
vacationsNumber.cp -= 2;
vacationsNumber.other += 1; // Reward: gain 1 other day
},
heuristic: this.computeHeuristics()
});
@@ -526,6 +528,7 @@ export class SelectedDates implements SelectedDateInterface {
this.push(new SelectedDate(DayType.CP, new DateRange<Date>(oneDayBefore, oneDayBefore)));
this.push(new SelectedDate(DayType.CP, new DateRange<Date>(oneDayAfter, oneDayAfter)));
vacationsNumber.cp -= 2;
vacationsNumber.other += 1; // Reward: gain 1 other day
},
heuristic: this.computeHeuristics()
});