generator-jhipster 7.9.1 → 7.9.2
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/generators/client/templates/angular/src/main/webapp/app/admin/gateway/gateway.component.ts.ejs +0 -14
- package/generators/client/templates/react/src/main/webapp/app/modules/administration/gateway/gateway.tsx.ejs +1 -9
- package/generators/client/templates/vue/src/main/webapp/app/admin/gateway/gateway.component.ts.ejs +0 -14
- package/generators/generator-constants.js +1 -1
- package/package.json +1 -1
|
@@ -39,20 +39,6 @@ export class GatewayComponent implements OnInit {
|
|
|
39
39
|
refresh(): void {
|
|
40
40
|
this.updatingRoutes = true;
|
|
41
41
|
this.gatewayRoutesService.findAll().subscribe(gatewayRoutes => {
|
|
42
|
-
<%_ if (serviceDiscoveryType === 'consul') { _%>
|
|
43
|
-
gatewayRoutes.serviceInstances = gatewayRoutes.serviceInstances.map(serviceInstance => {
|
|
44
|
-
if (serviceInstance.healthService && serviceInstance.healthService.checks) {
|
|
45
|
-
if (serviceInstance.healthService.checks.filter(
|
|
46
|
-
check => check.status === 'PASSING'
|
|
47
|
-
).length === serviceInstance.healthService.checks.length) {
|
|
48
|
-
serviceInstance.instanceInfo.status = 'UP'
|
|
49
|
-
} else {
|
|
50
|
-
serviceInstance.instanceInfo.status = 'DOWN'
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return serviceInstance;
|
|
54
|
-
});
|
|
55
|
-
<%_ } _%>
|
|
56
42
|
this.gatewayRoutes = gatewayRoutes;
|
|
57
43
|
this.updatingRoutes = false;
|
|
58
44
|
});
|
|
@@ -50,19 +50,11 @@ export const GatewayPage = () => {
|
|
|
50
50
|
|
|
51
51
|
const badgeInfo = info => {
|
|
52
52
|
if (info) {
|
|
53
|
-
<%_ if (serviceDiscoveryType === 'consul') { _%>
|
|
54
|
-
if (info.checks && info.checks.filter(check => check.status === 'PASSING').length === info.checks.length) {
|
|
55
|
-
return <Badge color="success">UP</Badge>;
|
|
56
|
-
} else {
|
|
57
|
-
return <Badge color="danger">DOWN</Badge>;
|
|
58
|
-
}
|
|
59
|
-
<%_ } else { _%>
|
|
60
53
|
if (info.status === 'UP') {
|
|
61
54
|
return <Badge color="success">{info.status}</Badge>;
|
|
62
55
|
} else {
|
|
63
56
|
return <Badge color="danger">{info.status}</Badge>;
|
|
64
57
|
}
|
|
65
|
-
<%_ } _%>
|
|
66
58
|
} else {
|
|
67
59
|
return <Badge color="warning">?</Badge>;
|
|
68
60
|
}
|
|
@@ -76,7 +68,7 @@ export const GatewayPage = () => {
|
|
|
76
68
|
{route.serviceInstances.map((instance, i) =>
|
|
77
69
|
<tr key={instance.instanceInfo + '-info'}>
|
|
78
70
|
<td><a href={instance.uri} target="_blank" rel="noopener noreferrer">{instance.uri}</a></td>
|
|
79
|
-
<td>{badgeInfo(
|
|
71
|
+
<td>{badgeInfo(instance.instanceInfo)}</td>
|
|
80
72
|
<td>{metadata(instance.metadata)}</td>
|
|
81
73
|
</tr>
|
|
82
74
|
)}
|
package/generators/client/templates/vue/src/main/webapp/app/admin/gateway/gateway.component.ts.ejs
CHANGED
|
@@ -16,20 +16,6 @@ export default class <%=jhiPrefixCapitalized%>GatewayComponent extends Vue {
|
|
|
16
16
|
this.updatingRoutes = true;
|
|
17
17
|
this.gatewayService().findAll().then((res) => {
|
|
18
18
|
this.gatewayRoutes = res.data;
|
|
19
|
-
<%_ if (serviceDiscoveryType === 'consul') { _%>
|
|
20
|
-
this.gatewayRoutes.serviceInstances = this.gatewayRoutes.serviceInstances.map(serviceInstance => {
|
|
21
|
-
if (serviceInstance.healthService && serviceInstance.healthService.checks) {
|
|
22
|
-
if (serviceInstance.healthService.checks.filter(
|
|
23
|
-
check => check.status === 'PASSING'
|
|
24
|
-
).length === serviceInstance.healthService.checks.length) {
|
|
25
|
-
serviceInstance.instanceInfo.status = 'UP'
|
|
26
|
-
} else {
|
|
27
|
-
serviceInstance.instanceInfo.status = 'DOWN'
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return serviceInstance;
|
|
31
|
-
});
|
|
32
|
-
<%_ } _%>
|
|
33
19
|
this.updatingRoutes = false;
|
|
34
20
|
});
|
|
35
21
|
}
|
|
@@ -33,7 +33,7 @@ const NPM_VERSION = commonPackageJson.devDependencies.npm;
|
|
|
33
33
|
const OPENAPI_GENERATOR_CLI_VERSION = '2.5.1';
|
|
34
34
|
|
|
35
35
|
// Libraries version
|
|
36
|
-
const JHIPSTER_DEPENDENCIES_VERSION = '7.9.
|
|
36
|
+
const JHIPSTER_DEPENDENCIES_VERSION = '7.9.2';
|
|
37
37
|
// The spring-boot version should match the one managed by https://mvnrepository.com/artifact/tech.jhipster/jhipster-dependencies/JHIPSTER_DEPENDENCIES_VERSION
|
|
38
38
|
const SPRING_BOOT_VERSION = '2.7.2';
|
|
39
39
|
const LIQUIBASE_VERSION = '4.12.0';
|