io.quarkiverse.statiq.deployment.devui.StatiqDevUIProcessor Maven / Gradle / Ivy
package io.quarkiverse.statiq.deployment.devui;
import io.quarkiverse.statiq.runtime.devui.StatiqJsonRPCService;
import io.quarkus.deployment.IsDevelopment;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.pkg.builditem.CurateOutcomeBuildItem;
import io.quarkus.devui.spi.JsonRPCProvidersBuildItem;
import io.quarkus.devui.spi.page.CardPageBuildItem;
import io.quarkus.devui.spi.page.Page;
public class StatiqDevUIProcessor {
@BuildStep(onlyIf = IsDevelopment.class)
CardPageBuildItem create(CurateOutcomeBuildItem bi) {
CardPageBuildItem pageBuildItem = new CardPageBuildItem();
pageBuildItem.addPage(Page.webComponentPageBuilder()
.title("Statiq files")
.componentLink("qwc-statiq.js")
.icon("font-awesome-solid:link")
.dynamicLabelJsonRPCMethodName("getStatiqCount"));
return pageBuildItem;
}
@BuildStep(onlyIf = IsDevelopment.class)
JsonRPCProvidersBuildItem createJsonRPCServiceForCache() {
return new JsonRPCProvidersBuildItem(StatiqJsonRPCService.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy