chore: minor changes
This commit is contained in:
Generated
-1
@@ -2,6 +2,5 @@
|
|||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="VcsDirectoryMappings">
|
<component name="VcsDirectoryMappings">
|
||||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||||
<mapping directory="$PROJECT_DIR$/../jecnam/JecnaAPI" vcs="Git" />
|
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
||||||
@@ -1,3 +1,7 @@
|
|||||||
|
/*
|
||||||
|
AI GENERATED SLOP
|
||||||
|
*/
|
||||||
|
|
||||||
package cz.jzitnik.auth;
|
package cz.jzitnik.auth;
|
||||||
|
|
||||||
import javax.crypto.Cipher;
|
import javax.crypto.Cipher;
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
package cz.jzitnik.controllers;
|
package cz.jzitnik.controllers;
|
||||||
|
|
||||||
|
import cz.jzitnik.query.QueryOptions;
|
||||||
import cz.jzitnik.router.Routable;
|
import cz.jzitnik.router.Routable;
|
||||||
import cz.jzitnik.router.Route;
|
import cz.jzitnik.router.Route;
|
||||||
import cz.jzitnik.state.AppState;
|
import cz.jzitnik.state.AppState;
|
||||||
import cz.jzitnik.state.InjectState;
|
import cz.jzitnik.state.InjectState;
|
||||||
|
import javafx.application.Platform;
|
||||||
import javafx.fxml.FXML;
|
import javafx.fxml.FXML;
|
||||||
import javafx.scene.control.Label;
|
import javafx.scene.control.Label;
|
||||||
|
|
||||||
@@ -72,7 +74,7 @@ public class DashboardBaseController implements Routable {
|
|||||||
welcomeLabel.getStyleClass().add("skeleton-text");
|
welcomeLabel.getStyleClass().add("skeleton-text");
|
||||||
classLabel.getStyleClass().add("skeleton-text");
|
classLabel.getStyleClass().add("skeleton-text");
|
||||||
|
|
||||||
cz.jzitnik.query.QueryOptions opts = cz.jzitnik.query.QueryOptions.defaultOptions();
|
QueryOptions opts = QueryOptions.defaultOptions();
|
||||||
appState.getQueryClient().fetch("user:profile", () -> {
|
appState.getQueryClient().fetch("user:profile", () -> {
|
||||||
try {
|
try {
|
||||||
return appState.getClient().getStudentProfile().join();
|
return appState.getClient().getStudentProfile().join();
|
||||||
@@ -80,7 +82,7 @@ public class DashboardBaseController implements Routable {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}, opts).thenAccept(result -> {
|
}, opts).thenAccept(result -> {
|
||||||
javafx.application.Platform.runLater(() -> {
|
Platform.runLater(() -> {
|
||||||
welcomeLabel.getStyleClass().remove("skeleton-text");
|
welcomeLabel.getStyleClass().remove("skeleton-text");
|
||||||
classLabel.getStyleClass().remove("skeleton-text");
|
classLabel.getStyleClass().remove("skeleton-text");
|
||||||
|
|
||||||
|
|||||||
@@ -334,25 +334,6 @@ public class GradesController extends DashboardBaseController {
|
|||||||
else if (value == 5) badge.getStyleClass().add("grade-5");
|
else if (value == 5) badge.getStyleClass().add("grade-5");
|
||||||
else badge.getStyleClass().add("grade-other");
|
else badge.getStyleClass().add("grade-other");
|
||||||
|
|
||||||
// Tooltip
|
|
||||||
/*
|
|
||||||
StringBuilder tooltipText = new StringBuilder();
|
|
||||||
if (desc != null && !desc.isEmpty()) {
|
|
||||||
tooltipText.append(desc).append("\n");
|
|
||||||
}
|
|
||||||
if (teacher != null && !teacher.isEmpty()) {
|
|
||||||
tooltipText.append("Učitel: ").append(teacher).append("\n");
|
|
||||||
}
|
|
||||||
if (date != null && !date.isEmpty()) {
|
|
||||||
tooltipText.append("Datum: ").append(date);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!tooltipText.isEmpty() && !isPredicted) {
|
|
||||||
Tooltip tooltip = new Tooltip(tooltipText.toString().trim());
|
|
||||||
Tooltip.install(badge, tooltip);
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (!isPredicted) {
|
if (!isPredicted) {
|
||||||
badge.setOnMouseClicked(e -> showGradeDetailsDialog(desc, teacher, date));
|
badge.setOnMouseClicked(e -> showGradeDetailsDialog(desc, teacher, date));
|
||||||
badge.getStyleClass().add("clickable-grade");
|
badge.getStyleClass().add("clickable-grade");
|
||||||
|
|||||||
Reference in New Issue
Block a user