refactor(ui): new icon library and user migration (#1828)

This commit is contained in:
Alex
2026-06-25 08:57:48 +01:00
committed by GitHub
parent 90fa4d7c42
commit d0d884a06b
66 changed files with 963 additions and 486 deletions
@@ -1,7 +1,6 @@
package org.booklore.model.enums;
public enum IconType {
PRIME_NG,
LUCIDE,
CUSTOM_SVG
}
@@ -4,7 +4,7 @@ import lombok.Getter;
@Getter
public enum ShelfType {
KOBO("Kobo", "pi pi-tablet");
KOBO("Kobo", "tablet");
private final String name;
private final String icon;
@@ -107,7 +107,7 @@ public class KoboSettingsService {
ShelfCreateRequest.builder()
.name(ShelfType.KOBO.getName())
.icon(ShelfType.KOBO.getIcon())
.iconType(IconType.PRIME_NG)
.iconType(IconType.LUCIDE)
.build()
);
}
@@ -25,7 +25,7 @@ public class UserDefaultsService {
.user(user)
.name("Favorites")
.icon("heart")
.iconType(IconType.PRIME_NG)
.iconType(IconType.LUCIDE)
.build();
shelfRepository.save(shelf);
}
@@ -52,4 +52,4 @@ public class UserDefaultsService {
log.error("Error serializing setting {} for user {}", key, user.getUsername(), e);
}
}
}
}