Skip to content

Commit

Permalink
Add logo
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Nov 1, 2024
1 parent 5dabed6 commit 444daed
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import io.quarkiverse.loggingmanager.LogController;
import io.quarkiverse.loggingmanager.devui.LoggingManagerJsonRpcService;
import io.quarkus.deployment.IsDevelopment;
import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.devui.spi.JsonRPCProvidersBuildItem;
import io.quarkus.devui.spi.page.CardPageBuildItem;
Expand All @@ -15,23 +16,24 @@ public class LoggingManagerDevUIProcessor {
private static final String LEVEL = "level";

@BuildStep(onlyIf = IsDevelopment.class)
public CardPageBuildItem pages() {
CardPageBuildItem pageBuildItem = new CardPageBuildItem();
public void pages(BuildProducer<CardPageBuildItem> cardPageBuildItemBuildProducer) {
CardPageBuildItem card = new CardPageBuildItem();

pageBuildItem.addBuildTimeData(LEVEL, LogController.LEVELS
card.addBuildTimeData(LEVEL, LogController.LEVELS
.stream().map((level) -> Map.of(LEVEL, level))
.collect(Collectors.toList()));

pageBuildItem.addPage(Page.tableDataPageBuilder("Level")
card.addPage(Page.tableDataPageBuilder("Level")
.showColumn(LEVEL)
.buildTimeDataKey(LEVEL)
.icon("font-awesome-solid:layer-group"));

pageBuildItem.addPage(Page.webComponentPageBuilder()
card.addPage(Page.webComponentPageBuilder()
.icon("font-awesome-solid:play")
.componentLink("qwc-logging-manager-loggers.js"));

return pageBuildItem;
card.setCustomCard("qwc-logging-manager-card.js");
cardPageBuildItemBuildProducer.produce(card);
}

@BuildStep(onlyIf = IsDevelopment.class)
Expand Down
86 changes: 86 additions & 0 deletions deployment/src/main/resources/dev-ui/qwc-logging-manager-card.js

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

0 comments on commit 444daed

Please sign in to comment.