fantonangeli commented on code in PR #3401:
URL:
https://github.com/apache/incubator-kie-tools/pull/3401#discussion_r2721274235
##########
packages/kogito-data-index-webapp/env/index.js:
##########
@@ -37,6 +37,18 @@ module.exports =
composeEnv([require("@kie-tools/root-env/env")], {
default: "GraphQL DOCS",
description: "Documentation link text",
},
+ KOGITO_DATA_INDEX_WEBAPP_version: {
+ default: require("../package.json").version,
+ description: "Kogito Data Index Version",
+ },
+ KOGITO_DATA_INDEX_WEBAPP_graphqluiHref: {
+ default: "/q/graphql-ui",
+ description: "GraphQL Dev UI Console link",
+ },
+ KOGITO_DATA_INDEX_WEBAPP_graphqluiText: {
+ default: "GraphQL UI",
+ description: "GraphQL Dev UI Console link text",
Review Comment:
```suggestion
KOGITO_DATA_INDEX_WEBAPP_graphqlUiHref: {
default: "/q/graphql-ui",
description: "GraphQL UI link URL",
},
KOGITO_DATA_INDEX_WEBAPP_graphqlUiText: {
default: "GraphQL UI",
description: "GraphQL UI link text",
```
##########
packages/kogito-data-index-webapp/env/index.js:
##########
@@ -50,6 +62,11 @@ module.exports =
composeEnv([require("@kie-tools/root-env/env")], {
href: getOrDefault(this.vars.KOGITO_DATA_INDEX_WEBAPP_docLinkHref),
text: getOrDefault(this.vars.KOGITO_DATA_INDEX_WEBAPP_docLinkText),
},
+ version: getOrDefault(this.vars.KOGITO_DATA_INDEX_WEBAPP_version),
+ graphqlUi: {
+ href: getOrDefault(this.vars.KOGITO_DATA_INDEX_WEBAPP_graphqluiHref),
+ text: getOrDefault(this.vars.KOGITO_DATA_INDEX_WEBAPP_graphqluiText),
Review Comment:
```suggestion
href:
getOrDefault(this.vars.KOGITO_DATA_INDEX_WEBAPP_graphqlUiHref),
text:
getOrDefault(this.vars.KOGITO_DATA_INDEX_WEBAPP_graphqlUiText),
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]