@redhat-cloud-services/frontend-components-config-utilities 1.4.13 → 1.4.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/federated-modules.js +1 -0
- package/package.json +1 -1
- package/proxy.js +9 -5
package/federated-modules.js
CHANGED
|
@@ -8,6 +8,7 @@ const include = {
|
|
|
8
8
|
'@patternfly/react-table': {},
|
|
9
9
|
'@patternfly/react-tokens': {},
|
|
10
10
|
'@patternfly/react-icons': {},
|
|
11
|
+
'@patternfly/quickstarts': { singleton: true },
|
|
11
12
|
'@redhat-cloud-services/frontend-components': {},
|
|
12
13
|
'@redhat-cloud-services/frontend-components-utilities': {},
|
|
13
14
|
'@redhat-cloud-services/frontend-components-notifications': {},
|
package/package.json
CHANGED
package/proxy.js
CHANGED
|
@@ -30,6 +30,7 @@ module.exports = ({
|
|
|
30
30
|
proxyVerbose,
|
|
31
31
|
useCloud = false,
|
|
32
32
|
target = '',
|
|
33
|
+
keycloakUri = '',
|
|
33
34
|
registry = []
|
|
34
35
|
}) => {
|
|
35
36
|
const proxy = [];
|
|
@@ -208,11 +209,14 @@ module.exports = ({
|
|
|
208
209
|
console.log('\u001b[0m');
|
|
209
210
|
}
|
|
210
211
|
},
|
|
211
|
-
|
|
212
|
+
onBeforeSetupMiddleware({ app, compiler, options }) {
|
|
212
213
|
app.enable('strict routing'); // trailing slashes are mean
|
|
213
214
|
let chromePath = localChrome;
|
|
214
215
|
if (standaloneConfig) {
|
|
215
|
-
|
|
216
|
+
if (standaloneConfig.chrome) {
|
|
217
|
+
chromePath = resolvePath(reposDir, standaloneConfig.chrome.path);
|
|
218
|
+
keycloakUri = standaloneConfig.chrome.keycloakUri;
|
|
219
|
+
}
|
|
216
220
|
} else if (!localChrome && useProxy) {
|
|
217
221
|
if (typeof defaultServices.chrome === 'function') {
|
|
218
222
|
defaultServices.chrome = defaultServices.chrome({});
|
|
@@ -229,15 +233,15 @@ module.exports = ({
|
|
|
229
233
|
registerChrome({
|
|
230
234
|
app,
|
|
231
235
|
chromePath,
|
|
232
|
-
keycloakUri
|
|
233
|
-
https: Boolean(
|
|
236
|
+
keycloakUri,
|
|
237
|
+
https: Boolean(options.https),
|
|
234
238
|
proxyVerbose
|
|
235
239
|
});
|
|
236
240
|
}
|
|
237
241
|
|
|
238
242
|
registry.forEach(cb => cb({
|
|
239
243
|
app,
|
|
240
|
-
|
|
244
|
+
options,
|
|
241
245
|
compiler,
|
|
242
246
|
config: standaloneConfig
|
|
243
247
|
}));
|