Skip to content

Commit

Permalink
Merge pull request #310 from ls1intum/code-cleanup
Browse files Browse the repository at this point in the history
Code cleanup
  • Loading branch information
fabian-emilius authored Oct 10, 2024
2 parents 9fdfb4c + e6c2e91 commit 2a25afc
Show file tree
Hide file tree
Showing 30 changed files with 75 additions and 75 deletions.
44 changes: 22 additions & 22 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-react": "7.37.1",
"fork-ts-checker-webpack-plugin": "9.0.2",
"globals": "15.10.0",
"globals": "15.11.0",
"html-webpack-plugin": "5.6.0",
"mini-css-extract-plugin": "2.9.1",
"postcss": "8.4.47",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
useLoadedThesisContext,
useThesisUpdateAction,
} from '../../../../../../providers/ThesisProvider/hooks'
import { Button, Center, Group, Stack, Tooltip } from '@mantine/core'
import { Button, Center, Group, Stack } from '@mantine/core'
import { Check, Pencil, Trash } from 'phosphor-react'
import { doRequest } from '../../../../../../requests/request'
import { IThesis, IThesisPresentation } from '../../../../../../requests/responses/thesis'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ private CalendarService.CalendarEvent createPresentationCalendarEvent(ThesisPres
"Details: " + clientHost + "/presentations/" + presentation.getId() + "\n\n" +
"Abstract:\n" + presentation.getThesis().getAbstractField(),
presentation.getScheduledAt(),
presentation.getScheduledAt().plus(60, ChronoUnit.MINUTES),
presentation.getScheduledAt().plus(45, ChronoUnit.MINUTES),
this.applicationMail,
presentation.getThesis().getRoles().stream().map((role) -> role.getUser().getEmail()).toList(),
presentation.getInvites().stream().map(ThesisPresentationInvite::getEmail).toList()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div th:replace="fragments/salutation :: main"></div>
<div th:replace="~{fragments/salutation :: main}"></div>

<p th:inline="text">
I am delighted to inform you that I would like to take the next steps in
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div th:replace="fragments/salutation :: main"></div>
<div th:replace="~{fragments/salutation :: main}"></div>

<p th:inline="text">
I am delighted to inform you that I would like to take the next steps in
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div th:replace="fragments/salutation :: main"></div>
<div th:replace="~{fragments/salutation :: main}"></div>

<p th:inline="text">there is a new thesis application by <strong>[[${application.user.firstName}]]&nbsp;[[${application.user.lastName}]]</strong>.</p>
<p th:inline="text">We received the following thesis application details:</p>
Expand Down Expand Up @@ -62,4 +62,4 @@

<p th:inline="text"><strong>You can find the submitted files in the attachment part of this email.</strong></p>

<div th:replace="fragments/notification-settings :: main"></div>
<div th:replace="~{fragments/notification-settings :: main}"></div>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div th:replace="fragments/salutation :: main"></div>
<div th:replace="~{fragments/salutation :: main}"></div>

<p th:inline="text">With this email, we confirm your thesis application.</p>
<p th:inline="text">We received the following details:</p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div th:replace="fragments/salutation :: main"></div>
<div th:replace="~{fragments/salutation :: main}"></div>

<p th:inline="text">
Thank you for your interest in pursuing your thesis under my supervision.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div th:replace="fragments/salutation :: main"></div>
<div th:replace="~{fragments/salutation :: main}"></div>

<p th:inline="text">
Thank you for your interest in pursuing your thesis under my supervision.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div th:replace="fragments/salutation :: main"></div>
<div th:replace="~{fragments/salutation :: main}"></div>

<p th:inline="text">
Thank you for your interest in pursuing your thesis under my supervision.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div th:replace="fragments/salutation :: main"></div>
<div th:replace="~{fragments/salutation :: main}"></div>

<p th:inline="text">
Thank you for your interest in pursuing your thesis under my supervision.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div th:replace="fragments/salutation :: main"></div>
<div th:replace="~{fragments/salutation :: main}"></div>

<p th:inline="text">
Thank you for your interest in pursuing your thesis under my supervision.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div th:replace="fragments/salutation :: main"></div>
<div th:replace="~{fragments/salutation :: main}"></div>

<p th:inline="text">
Thank you for your interest in pursuing your thesis under my supervision.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div th:replace="fragments/salutation :: main"></div>
<div th:replace="~{fragments/salutation :: main}"></div>

<p th:inline="text">
There are currently <strong>[[${unreviewedApplications}]]</strong> unreviewed thesis applications.
Expand All @@ -8,4 +8,4 @@
Review Applications: <a target="_blank" rel="noopener noreferrer nofollow" th:href="${reviewApplicationsLink}">[[${reviewApplicationsLink}]]</a>
</p>

<div th:replace="fragments/notification-settings :: main"></div>
<div th:replace="~{fragments/notification-settings :: main}"></div>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div th:replace="fragments/salutation :: main"></div>
<div th:replace="~{fragments/salutation :: main}"></div>

<p th:inline="text">
[[${assessment.createdBy.firstName}]] [[${assessment.createdBy.lastName}]] added an assessment to thesis "[[${thesis.title}]]"
Expand All @@ -23,6 +23,6 @@
<strong>Grade Suggestion</strong>: [[${assessment.gradeSuggestion}]]
</p>

<div th:replace="fragments/thesis-link :: main"></div>
<div th:replace="~{fragments/thesis-link :: main}"></div>

<div th:replace="fragments/notification-settings :: main"></div>
<div th:replace="~{fragments/notification-settings :: main}"></div>
6 changes: 3 additions & 3 deletions server/src/main/resources/mail-templates/thesis-closed.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<div th:replace="fragments/salutation :: main"></div>
<div th:replace="~{fragments/salutation :: main}"></div>

<p th:inline="text">
[[${deletingUser.firstName}]] [[${deletingUser.lastName}]] closed thesis "[[${thesis.title}]]".
Please contact your advisor or supervisor if you think that this was a mistake.
</p>

<div th:replace="fragments/thesis-link :: main"></div>
<div th:replace="~{fragments/thesis-link :: main}"></div>

<div th:replace="fragments/notification-settings :: main"></div>
<div th:replace="~{fragments/notification-settings :: main}"></div>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div th:replace="fragments/salutation :: main"></div>
<div th:replace="~{fragments/salutation :: main}"></div>

<p th:inline="text">
[[${comment.createdBy.firstName}]] [[${comment.createdBy.lastName}]] posted a comment on thesis "[[${thesis.title}]]"
Expand All @@ -9,6 +9,6 @@
[[${comment.message}]]
</p>

<div th:replace="fragments/thesis-link :: main"></div>
<div th:replace="~{fragments/thesis-link :: main}"></div>

<div th:replace="fragments/notification-settings :: main"></div>
<div th:replace="~{fragments/notification-settings :: main}"></div>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div th:replace="fragments/salutation :: main"></div>
<div th:replace="~{fragments/salutation :: main}"></div>

<p th:inline="text">
[[${creatingUser.firstName}]] [[${creatingUser.lastName}]] created and assigned a thesis to you: <a target="_blank" rel="noopener noreferrer nofollow" th:href="${thesisUrl}">[[${thesisUrl}]]</a>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div th:replace="fragments/salutation :: main"></div>
<div th:replace="~{fragments/salutation :: main}"></div>

<p th:inline="text">
[[${DataFormatter.formatUsers(thesis.supervisors)}]] added the final grade to your thesis "[[${thesis.title}]]"
Expand All @@ -13,6 +13,6 @@
[[${thesis.grade.feedback}]]
</p>

<div th:replace="fragments/thesis-link :: main"></div>
<div th:replace="~{fragments/thesis-link :: main}"></div>

<div th:replace="fragments/notification-settings :: main"></div>
<div th:replace="~{fragments/notification-settings :: main}"></div>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div th:replace="fragments/salutation :: main"></div>
<div th:replace="~{fragments/salutation :: main}"></div>

<p th:inline="text">
[[${DataFormatter.formatUsers(thesis.students)}]] submitted thesis "[[${thesis.title}]]".
Expand All @@ -8,6 +8,6 @@
The next step is to write an assessment about the thesis.
</p>

<div th:replace="fragments/thesis-link :: main"></div>
<div th:replace="~{fragments/thesis-link :: main}"></div>

<div th:replace="fragments/notification-settings :: main"></div>
<div th:replace="~{fragments/notification-settings :: main}"></div>
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div th:replace="fragments/salutation :: main"></div>
<div th:replace="~{fragments/salutation :: main}"></div>

<p th:inline="text">
[[${deletingUser.firstName}]] [[${deletingUser.lastName}]] cancelled the presentation scheduled at [[${DataFormatter.formatDateTime(presentation.scheduledAt)}]] for thesis "[[${thesis.title}]]"
</p>

<div th:replace="fragments/thesis-link :: main"></div>
<div th:replace="~{fragments/thesis-link :: main}"></div>

<div th:replace="fragments/notification-settings :: main"></div>
<div th:replace="~{fragments/notification-settings :: main}"></div>
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div th:replace="fragments/salutation :: main"></div>
<div th:replace="~{fragments/salutation :: main}"></div>

<p th:inline="text">
The [[${DataFormatter.formatConstantName(thesis.type)}]] thesis presentation of
<strong>[[${DataFormatter.formatUsers(thesis.students)}]]</strong> scheduled at
[[${DataFormatter.formatDateTime(presentation.scheduledAt)}]] was cancelled.
</p>

<div th:replace="fragments/notification-settings :: main"></div>
<div th:replace="~{fragments/notification-settings :: main}"></div>
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ <h2>INVITATION</h2>
Full Details: <a target="_blank" rel="noopener noreferrer nofollow" th:href="${presentationUrl}">[[${presentationUrl}]]</a>
</p>

<div th:replace="fragments/notification-settings :: main"></div>
<div th:replace="~{fragments/notification-settings :: main}"></div>
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ <h2>INVITATION</h2>
Full Details: <a target="_blank" rel="noopener noreferrer nofollow" th:href="${presentationUrl}">[[${presentationUrl}]]</a>
</p>

<div th:replace="fragments/notification-settings :: main"></div>
<div th:replace="~{fragments/notification-settings :: main}"></div>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div th:replace="fragments/salutation :: main"></div>
<div th:replace="~{fragments/salutation :: main}"></div>

<p th:inline="text">
[[${presentation.createdBy.firstName}]] [[${presentation.createdBy.lastName}]] scheduled a presentation for thesis "[[${thesis.title}]]"
Expand Down Expand Up @@ -29,6 +29,6 @@
[[${DataFormatter.formatDateTime(presentation.scheduledAt)}]]
</p>

<div th:replace="fragments/thesis-link :: main"></div>
<div th:replace="~{fragments/thesis-link :: main}"></div>

<div th:replace="fragments/notification-settings :: main"></div>
<div th:replace="~{fragments/notification-settings :: main}"></div>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div th:replace="fragments/salutation :: main"></div>
<div th:replace="~{fragments/salutation :: main}"></div>

<p th:inline="text">
[[${presentation.createdBy.firstName}]] [[${presentation.createdBy.lastName}]] updated a presentation for thesis "[[${thesis.title}]]"
Expand Down Expand Up @@ -29,6 +29,6 @@
[[${DataFormatter.formatDateTime(presentation.scheduledAt)}]]
</p>

<div th:replace="fragments/thesis-link :: main"></div>
<div th:replace="~{fragments/thesis-link :: main}"></div>

<div th:replace="fragments/notification-settings :: main"></div>
<div th:replace="~{fragments/notification-settings :: main}"></div>
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div th:replace="fragments/salutation :: main"></div>
<div th:replace="~{fragments/salutation :: main}"></div>

<p th:inline="text">
[[${proposal.approvedBy.firstName}]] [[${proposal.approvedBy.lastName}]] approved the proposal of thesis "[[${thesis.title}]]".
The next step is to start with the project work and with writing the thesis.
You can see your submission deadline on <a target="_blank" rel="noopener noreferrer nofollow" th:href="${thesisUrl}">[[${thesisUrl}]]</a>.
</p>

<div th:replace="fragments/notification-settings :: main"></div>
<div th:replace="~{fragments/notification-settings :: main}"></div>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div th:replace="fragments/salutation :: main"></div>
<div th:replace="~{fragments/salutation :: main}"></div>

<p th:inline="text">
[[${reviewingUser.firstName}]] [[${reviewingUser.lastName}]] reviewed your proposal for thesis "[[${thesis.title}]]".
Expand All @@ -11,6 +11,6 @@
</ul>
</p>

<div th:replace="fragments/thesis-link :: main"></div>
<div th:replace="~{fragments/thesis-link :: main}"></div>

<div th:replace="fragments/notification-settings :: main"></div>
<div th:replace="~{fragments/notification-settings :: main}"></div>
Loading

0 comments on commit 2a25afc

Please sign in to comment.