Skip to content

Commit 7377999

Browse files
committed
Upgrade to Hawtio 5.0.1
1 parent d1c3c70 commit 7377999

7 files changed

Lines changed: 22 additions & 21 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Build](https://github.com/hawtio/hawtio-sample-plugin-ts/actions/workflows/build.yml/badge.svg)](https://github.com/hawtio/hawtio-sample-plugin-ts/actions/workflows/build.yml)
44

5-
This sample demonstrates how to write and use a custom plugin with [Hawtio v5](https://github.com/hawtio/hawtio/tree/5.x) in a Spring Boot application.
5+
This sample demonstrates how to write and use a custom plugin with [Hawtio v5](https://github.com/hawtio/hawtio) in a Spring Boot application.
66

77
## Key components
88

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<!-- Versions -->
1818
<spring-boot-version>4.0.3</spring-boot-version>
19-
<hawtio-version>5.0.0</hawtio-version>
19+
<hawtio-version>5.0.1</hawtio-version>
2020
<node-version>v22.16.0</node-version>
2121
<yarn-version>v1.22.22</yarn-version>
2222
<frontend-maven-plugin-version>2.0.0</frontend-maven-plugin-version>

sample-plugin/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
"webpack-cli": "^7.0.0",
4343
"webpack-dev-server": "^5.2.3"
4444
},
45+
"resolutions": {
46+
"@module-federation/utilities": "3.1.83"
47+
},
4548
"browserslist": {
4649
"production": [
4750
">0.2%",

sample-plugin/src/sample-plugin/custom-tree/CustomTree.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const CustomTreeContent: React.FunctionComponent = () => {
8686

8787
if (!selectedNode) {
8888
return (
89-
<PageSection hasBodyWrapper={false} variant='default' isFilled>
89+
<PageSection hasBodyWrapper={false} isFilled>
9090
<EmptyState titleText={<Title headingLevel='h1' size='lg'>
9191
Select Node
9292
</Title>} variant='full' icon={CubesIcon} >
@@ -112,12 +112,12 @@ const CustomTreeContent: React.FunctionComponent = () => {
112112
return (
113113
<React.Fragment>
114114
<PageGroup>
115-
<PageSection hasBodyWrapper={false} variant='default' className='custom-tree-content-header'>
115+
<PageSection hasBodyWrapper={false} className='custom-tree-content-header'>
116116
<Title headingLevel='h1'>{selectedNode.name}</Title>
117117
<Content component='small'>{selectedNode.mbean}</Content>
118118
</PageSection>
119119
</PageGroup>
120-
<PageSection hasBodyWrapper={false} variant='default' className='custom-tree-content-main'>
120+
<PageSection hasBodyWrapper={false} className='custom-tree-content-main'>
121121
{customTreeContent}
122122
</PageSection>
123123
</React.Fragment>

sample-plugin/src/sample-plugin/custom-tree/CustomTreePreferences.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { CardBody, Form, FormGroup, FormSection, Content, TextInput } from '@patternfly/react-core'
1+
import { CardBody, Content, Form, FormGroup, FormSection, TextInput } from '@patternfly/react-core'
22
import React, { useState } from 'react'
33
import { preferencesService } from './preferences-service'
44

55
export const CustomTreePreferences: React.FunctionComponent = () => {
66
const [domain, setDomain] = useState(preferencesService.loadDomain())
77

8-
const onDomainChanged = (value: string) => {
8+
const onDomainChanged = (_event: React.FormEvent<HTMLInputElement>, value: string) => {
99
setDomain(value)
1010
preferencesService.saveDomain(value)
1111
}
@@ -18,7 +18,7 @@ export const CustomTreePreferences: React.FunctionComponent = () => {
1818
<FormGroup
1919
label='Domain'
2020
fieldId='custom-tree-prefs-form-domain'
21-
helperText='The target domain to activate the plugin. This is just for demonstration purposes, as the plugin may not work with other domains than `java.lang`.'
21+
labelInfo='The target domain to activate the plugin. This is just for demonstration purposes, as the plugin may not work with other domains than `java.lang`.'
2222
>
2323
<TextInput id='custom-tree-prefs-form-domain-input' type='text' value={domain} onChange={onDomainChanged} />
2424
</FormGroup>

sample-plugin/src/sample-plugin/simple/SimplePreferences.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ import React from 'react'
33

44
export const SimplePreferences: React.FunctionComponent = () => (
55
<CardBody>
6-
<Content>
7-
<Content component='h2'>Simple Plugin</Content>
8-
<Content component='p'>Preferences view for Simple plugin.</Content>
9-
</Content>
6+
<Content component='h2'>Simple Plugin</Content>
7+
<Content component='p'>Preferences view for Simple plugin.</Content>
108
</CardBody>
119
)

sample-plugin/yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,18 +1299,18 @@ __metadata:
12991299
languageName: node
13001300
linkType: hard
13011301

1302-
"@module-federation/sdk@npm:0.22.1":
1303-
version: 0.22.1
1304-
resolution: "@module-federation/sdk@npm:0.22.1"
1305-
checksum: 10/7b742e502faca4c829d3e5be53b801b2dcb02381b9df70baca6cccba1ad303074834063d38900a39c0393746a292f37879997372cdd751cb99ff8588a70ca81e
1302+
"@module-federation/sdk@npm:2.0.0":
1303+
version: 2.0.0
1304+
resolution: "@module-federation/sdk@npm:2.0.0"
1305+
checksum: 10/748d58797966cac8f820bf25803487a9b5317761af98bad1f3fc4756b80751b7b69145cc46590ce1afc1a12992a68bf29878f794fdcb99e48999187042486174
13061306
languageName: node
13071307
linkType: hard
13081308

1309-
"@module-federation/utilities@npm:^3.1.77":
1310-
version: 3.1.79
1311-
resolution: "@module-federation/utilities@npm:3.1.79"
1309+
"@module-federation/utilities@npm:3.1.83":
1310+
version: 3.1.83
1311+
resolution: "@module-federation/utilities@npm:3.1.83"
13121312
dependencies:
1313-
"@module-federation/sdk": "npm:0.22.1"
1313+
"@module-federation/sdk": "npm:2.0.0"
13141314
peerDependencies:
13151315
react: ^16 || ^17 || ^18
13161316
react-dom: ^16 || ^17 || ^18
@@ -1322,7 +1322,7 @@ __metadata:
13221322
optional: true
13231323
react-dom:
13241324
optional: true
1325-
checksum: 10/84a88f36acd12b81ee85a867167a9f067c64707141641a8556a2f4cd90636caedf8493a5bd8e66b31363cb88dba1d5c6a5f3fb4f895bea7cc35296be2a42a937
1325+
checksum: 10/a12aa7161f290685db589c461d4137a5f9dba3d3cd239482fcfa723dda7ff120c389cd78a0d0bc0cf67e93b36f552a471939155f2a6022574abfe5493f6f78c7
13261326
languageName: node
13271327
linkType: hard
13281328

0 commit comments

Comments
 (0)