Skip to content

Commit

Permalink
Add Logo (#336)
Browse files Browse the repository at this point in the history
* IntelliJ icon

* Add logo
  • Loading branch information
melloware authored Nov 1, 2024
1 parent a4d2b1a commit d5c0660
Show file tree
Hide file tree
Showing 5 changed files with 172 additions and 20 deletions.
72 changes: 72 additions & 0 deletions .idea/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading

0 comments on commit d5c0660

Please sign in to comment.