Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ void createVersion(BuildProducer<CardPageBuildItem> cardPageBuildItemBuildProduc
.dynamicLabelJsonRPCMethodName("getDatasourcePort");
card.addPage(portPage);

final PageBuilder pgAdminPage = Page.externalPageBuilder("Postgre Admin UI")
final PageBuilder pgAdminPage = Page.externalPageBuilder("pgAdmin UI")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed spelling and name.

.icon("font-awesome-solid:database")
.url(managementBase);
.url(managementBase, managementBase)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allow the pgAdmin to be opened in new tab

.isHtmlContent();
card.addPage(pgAdminPage);

card.setCustomCard("qwc-embedded-postgresql-card.js");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,20 @@
import io.quarkiverse.embedded.postgresql.devui.PgAdminUiProxy;
import io.quarkus.deployment.IsDevelopment;
import io.quarkus.deployment.IsLocalDevelopment;
import io.quarkus.deployment.IsNormal;
import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.annotations.BuildSteps;
import io.quarkus.deployment.annotations.ExecutionTime;
import io.quarkus.deployment.annotations.Record;
import io.quarkus.deployment.builditem.DevServicesResultBuildItem;
import io.quarkus.deployment.builditem.LaunchModeBuildItem;
import io.quarkus.deployment.dev.devservices.GlobalDevServicesConfig;
import io.quarkus.vertx.core.deployment.CoreVertxBuildItem;
import io.quarkus.vertx.http.deployment.NonApplicationRootPathBuildItem;
import io.quarkus.vertx.http.deployment.RouteBuildItem;

@BuildSteps(onlyIfNot = IsNormal.class, onlyIf = GlobalDevServicesConfig.Enabled.class)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Respect quarkus.devservices.enabled=false flag if devservices are disabled entirely.

public class PgAdminProcessor {

private final static String CONTAINER_ID = "quarkus-embedded-postgresql-pgadmin";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ metadata:
- "data"
config:
- "quarkus.embedded.postgresql."
- "quarkus.pgadmin-ui."
status: "preview"
guide: "https://quarkiverse.github.io/quarkiverse-docs/quarkus-embedded-postgresql/dev/index.html"
icon-url: "https://wiki.postgresql.org/images/a/a4/PostgreSQL_logo.3colors.svg"