-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI config now primarily pulled from backend endpoint
- Loading branch information
1 parent
d17b372
commit c52f7fd
Showing
13 changed files
with
434 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
app/src/main/java/io/apicurio/registry/ui/UserInterfaceConfigProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package io.apicurio.registry.ui; | ||
|
||
import org.eclipse.microprofile.config.inject.ConfigProperty; | ||
|
||
import io.apicurio.common.apps.config.Info; | ||
import jakarta.inject.Singleton; | ||
|
||
@Singleton | ||
public class UserInterfaceConfigProperties { | ||
|
||
@ConfigProperty(name = "registry.ui.contextPath", defaultValue = "/") | ||
@Info(category = "ui", description = "Context path of the UI", availableSince = "3.0.0") | ||
public String contextPath; | ||
@ConfigProperty(name = "registry.ui.navPrefixPath", defaultValue = "/") | ||
@Info(category = "ui", description = "Navigation prefix for all UI paths", availableSince = "3.0.0") | ||
public String navPrefixPath; | ||
@ConfigProperty(name = "registry.ui.docsUrl", defaultValue = "/docs/") | ||
@Info(category = "ui", description = "URL of the Documentation component", availableSince = "3.0.0") | ||
public String docsUrl; | ||
|
||
|
||
@ConfigProperty(name = "registry.auth.url.configured") | ||
public String authOidcUrl; | ||
@ConfigProperty(name = "registry.ui.auth.oidc.redirectUri", defaultValue = "/") | ||
@Info(category = "ui", description = "The OIDC redirectUri", availableSince = "3.0.0") | ||
public String authOidcRedirectUri; | ||
@ConfigProperty(name = "registry.ui.auth.oidc.clientId", defaultValue = "apicurio-registry-ui") | ||
@Info(category = "ui", description = "The OIDC clientId", availableSince = "3.0.0") | ||
public String authOidcClientId; | ||
|
||
|
||
@ConfigProperty(name = "registry.ui.features.readOnly", defaultValue = "false") | ||
@Info(category = "ui", description = "Enabled to set the UI to read-only mode", availableSince = "3.0.0") | ||
public String featureReadOnly; | ||
@ConfigProperty(name = "registry.ui.features.breadcrumbs", defaultValue = "true") | ||
@Info(category = "ui", description = "Enabled to show breadcrumbs in the UI", availableSince = "3.0.0") | ||
public String featureBreadcrumbs; | ||
@ConfigProperty(name = "registry.ui.features.settings", defaultValue = "true") | ||
@Info(category = "ui", description = "Enabled to show the Settings tab in the UI", availableSince = "3.0.0") | ||
public String featureSettings; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.