refactor(ui): new icon library and user migration (#1828)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user