Skip to content

Commit

Permalink
backend: add highlighted and theme flags
Browse files Browse the repository at this point in the history
  • Loading branch information
dulvui committed Jan 17, 2024
1 parent 07cab59 commit cdce688
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,8 @@ public class WebcomponentModel {
private List<String> searchTags;

private Boolean deleted;

private Boolean highlighted;

private String theme;
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,8 @@ public class WebcomponentEntryRest {
private List<String> searchTags;

private WebcomponentVersionRest currentVersion;

private Boolean highlighted;

private String theme;
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public WebcomponentModel mapRow(ResultSet resultSet, int i) throws SQLException
model.setRepositoryUrl(resultSet.getString("repository_url"));
model.setImage(resultSet.getString("image"));
model.setLicense(resultSet.getString("license"));
model.setHighlighted(resultSet.getBoolean("highlighted"));
model.setTheme(resultSet.getString("theme"));


try {
model.setCopyrightHolders(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,7 @@ public class Webcomponent {

private Boolean deleted;

private Boolean highlighted;

private String theme;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table webcomponent
add highlighted boolean default false not null;

alter table webcomponent
add theme text default "dark" not null;

0 comments on commit cdce688

Please sign in to comment.