This is an automated email from the ASF dual-hosted git repository.
andytaylor pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis-console.git
The following commit(s) were added to refs/heads/main by this push:
new 1c9761a ARTEMIS-5490: Adds console plugin to the Hawtio About Dialog
Product
1c9761a is described below
commit 1c9761a12728139011b8408760bc5af1003ff0b8
Author: phantomjinx <[email protected]>
AuthorDate: Mon May 19 16:57:15 2025 +0100
ARTEMIS-5490: Adds console plugin to the Hawtio About Dialog Product
* When executed the plugin will be listed in the About box under
component versions with the version of artemis.
---
.../artemis-extension/packages/artemis-console-plugin/package.json | 5 +++--
.../artemis-extension/packages/artemis-console-plugin/src/index.ts | 5 ++++-
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git
a/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/package.json
b/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/package.json
index 848a3c3..ff3075c 100644
---
a/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/package.json
+++
b/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/package.json
@@ -17,8 +17,9 @@
"./dist/index.css": "./dist/index.css"
},
"scripts": {
- "build": "tsup --clean",
- "test": "jest"
+ "build": "tsup --clean && yarn replace-version",
+ "test": "jest",
+ "replace-version": "replace __PACKAGE_VERSION_PLACEHOLDER__
$npm_package_version ./dist/index.js"
},
"dependencies": {
"@hawtio/react": "1.9.2",
diff --git
a/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/index.ts
b/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/index.ts
index 4a81bad..0a4f08b 100644
---
a/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/index.ts
+++
b/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/index.ts
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-import { HawtioPlugin, hawtio, helpRegistry, workspace, preferencesRegistry}
from '@hawtio/react'
+import { HawtioPlugin, hawtio, configManager as hawtioConfigMgr, helpRegistry,
workspace, preferencesRegistry} from '@hawtio/react'
import { Artemis } from './Artemis'
import { ArtemisJMX } from './ArtemisJMX'
import { ArtemisPreferences } from './ArtemisPreferences'
@@ -48,4 +48,7 @@ export const artemis: HawtioPlugin = () => {
helpRegistry.add(artemisPluginName, artemisPluginTitle, help, 1)
preferencesRegistry.add(artemisPluginName, artemisPluginTitle,
ArtemisPreferences, 1)
+
+ // See package.json "replace-version" script for how to replace the version
placeholder with a real version
+ hawtioConfigMgr.addProductInfo('Artemis Console Plugin',
'__PACKAGE_VERSION_PLACEHOLDER__')
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact