Skip to content

Commit a2d6c62

Browse files
committed
linter and prettier
1 parent faa5817 commit a2d6c62

File tree

8 files changed

+74
-21
lines changed

8 files changed

+74
-21
lines changed

package-lock.json

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

src/main/java/de/tum/cit/aet/core/repository/DocumentDictionaryEntityRepositoryImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ public ApplicationDocumentIdsDTO getApplicationDocumentIdsDTOByApplicationId(UUI
5757
case MASTER_TRANSCRIPT -> masterIds.add(documentInformationHolderDTO);
5858
case REFERENCE -> referenceIds.add(documentInformationHolderDTO);
5959
case CV -> dto.setCvDocumentDictionaryId(documentInformationHolderDTO);
60-
default -> {} // For the moment, skip CUSTOM or others
60+
default -> {
61+
} // For the moment, skip CUSTOM or others
6162
}
6263
}
6364

src/main/java/de/tum/cit/aet/notification/service/TemplateProcessingService.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,10 @@ public String renderTemplate(@NonNull EmailTemplateTranslation emailTemplateTran
8282
Map<String, Object> dataModel = createDataModel(content);
8383
addMetaData(emailTemplateTranslation.getLanguage(), dataModel);
8484

85-
String templateName = emailTemplateTranslation.getEmailTemplate().getTemplateName() != null
86-
? emailTemplateTranslation.getEmailTemplate().getTemplateName()
87-
: "inline";
85+
String templateName =
86+
emailTemplateTranslation.getEmailTemplate().getTemplateName() != null
87+
? emailTemplateTranslation.getEmailTemplate().getTemplateName()
88+
: "inline";
8889

8990
Template inlineTemplate = new Template(
9091
templateName,

src/main/java/de/tum/cit/aet/usermanagement/dto/SchoolDTO.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ public static SchoolDTO fromEntity(School school, List<Department> departments)
2929
return null;
3030
}
3131

32-
List<DepartmentShortDTO> departmentDTOs = departments != null
33-
? departments.stream().map(DepartmentShortDTO::fromEntity).collect(Collectors.toList())
34-
: List.of();
32+
List<DepartmentShortDTO> departmentDTOs =
33+
departments != null ? departments.stream().map(DepartmentShortDTO::fromEntity).collect(Collectors.toList()) : List.of();
3534

3635
return new SchoolDTO(school.getSchoolId(), school.getName(), school.getAbbreviation(), departmentDTOs);
3736
}

src/main/webapp/app/interview/interview-process-detail/slots-section/slot-card/slot-card.component.html

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919
icon="pencil"
2020
label="button.edit"
2121
[shouldTranslate]="true"
22-
[styleClass]="
23-
'px-4 py-2.5 text-left text-sm hover:bg-background-surface flex items-center gap-2 text-text-primary transition-colors justify-start border-none rounded-none'
24-
"
22+
[styleClass]="'px-4 py-2.5 text-left text-sm hover:bg-background-surface flex items-center gap-2 text-text-primary transition-colors justify-start border-none rounded-none'"
2523
(click)="onEdit()"
2624
/>
2725

@@ -32,9 +30,7 @@
3230
icon="trash"
3331
label="button.delete"
3432
[shouldTranslate]="true"
35-
[styleClass]="
36-
'px-4 py-2.5 text-left text-sm hover:bg-negative-hover flex items-center gap-2 text-negative-default transition-colors justify-start border-none rounded-none'
37-
"
33+
[styleClass]="'px-4 py-2.5 text-left text-sm hover:bg-negative-hover flex items-center gap-2 text-negative-default transition-colors justify-start border-none rounded-none'"
3834
(click)="deleteDialog.confirm()"
3935
/>
4036

@@ -97,9 +93,7 @@
9793
icon="plus"
9894
label="button.assign"
9995
[shouldTranslate]="true"
100-
[styleClass]="
101-
'h-6 px-3 py-1 text-xs font-medium text-text-secondary border border-border-default rounded-md hover:bg-background-surface transition-all flex items-center justify-center'
102-
"
96+
[styleClass]="'h-6 px-3 py-1 text-xs font-medium text-text-secondary border border-border-default rounded-md hover:bg-background-surface transition-all flex items-center justify-center'"
10397
(click)="onAssign()"
10498
/>
10599
}

src/main/webapp/app/interview/interview-process-detail/slots-section/slots-section.component.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ <h3 class="text-xl font-semibold" jhiTranslate="interview.detail.empty.title">No
8080
: getShowMoreText(getRemainingCount(group.date, group.slots.length))
8181
"
8282
[shouldTranslate]="isExpanded(group.date)"
83-
[styleClass]="
84-
'w-full py-2 border border-border-default rounded-md text-text-secondary text-sm font-medium flex items-center justify-center gap-1.5 hover:bg-background-surface hover:border-border-default transition-all'
85-
"
83+
[styleClass]="'w-full py-2 border border-border-default rounded-md text-text-secondary text-sm font-medium flex items-center justify-center gap-1.5 hover:bg-background-surface hover:border-border-default transition-all'"
8684
(click)="toggleExpanded(group.date)"
8785
/>
8886
}

src/main/webapp/app/shared/components/atoms/datepicker/datepicker.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class DatePickerComponent {
6363
*/
6464
effectiveMinDate = computed(() => {
6565
const min = this.minDate();
66-
if (min && min.getHours() === 0 && min.getMinutes() === 0 && min.getSeconds() === 0 && min.getMilliseconds() === 0) {
66+
if (min?.getHours() === 0 && min.getMinutes() === 0 && min.getSeconds() === 0 && min.getMilliseconds() === 0) {
6767
return min;
6868
}
6969
const base = min ?? new Date();

src/main/webapp/app/shared/filter/filter.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class FilterOption implements IFilterOption {
7777
constructor(
7878
public displayName: string,
7979
public field: string,
80-
public translationKey: string | undefined = undefined,
80+
public translationKey?: string | undefined,
8181
) {
8282
this.displayName = displayName;
8383
this.field = field;

0 commit comments

Comments
 (0)