You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by an...@apache.org on 2025/05/07 08:09:18 UTC

(activemq-artemis-console) branch main updated (12e3a08 -> 7afb74f)

This is an automated email from the ASF dual-hosted git repository.

andytaylor pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis-console.git


    from 12e3a08  ARTEMIS-5447 - fix distribution by excluding new build dirs and including yarn licenses
     new 82761e8  ARTEMIS-5440 - fix base URL in the console, so Hawtio BaseTagHrefFilter works
     new 7afb74f  ARTEMIS-5440 - update readme.md with changed yarn instructions

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 README.md                                          |  9 +++---
 .../artemis-extension/app/webpack.config.cjs       | 34 +++++++++++-----------
 2 files changed, 22 insertions(+), 21 deletions(-)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@activemq.apache.org
For additional commands, e-mail: commits-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact



(activemq-artemis-console) 01/02: ARTEMIS-5440 - fix base URL in the console, so Hawtio BaseTagHrefFilter works

Posted by an...@apache.org.
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

commit 82761e8da6884e58539b098c61d63a81cb26c27a
Author: Grzegorz Grzybek <gr...@gmail.com>
AuthorDate: Wed Apr 30 18:59:16 2025 +0200

    ARTEMIS-5440 - fix base URL in the console, so Hawtio BaseTagHrefFilter works
---
 .../artemis-extension/app/webpack.config.cjs       | 34 +++++++++++-----------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/artemis-console-extension/artemis-extension/app/webpack.config.cjs b/artemis-console-extension/artemis-extension/app/webpack.config.cjs
index 36dbfb4..a9f1ffc 100644
--- a/artemis-console-extension/artemis-extension/app/webpack.config.cjs
+++ b/artemis-console-extension/artemis-extension/app/webpack.config.cjs
@@ -60,7 +60,7 @@ module.exports = (webpackEnv, args) => {
         }
       } : undefined)),
       new InterpolateHtmlPlugin(HtmlWebpackPlugin, {
-        PUBLIC_URL: '/console'
+        PUBLIC_URL: '/hawtio'
       }),
       new MiniCssExtractPlugin({
         // Options similar to the same options in webpackOptions.output
@@ -77,7 +77,7 @@ module.exports = (webpackEnv, args) => {
       //   can be used to reconstruct the HTML if necessary
       new WebpackManifestPlugin({
         fileName: 'asset-manifest.json',
-        publicPath: '/console',
+        publicPath: '/hawtio',
         generate: (seed, files, entrypoints) => {
           const manifestFiles = files.reduce((manifest, file) => {
             manifest[file.name] = file.path;
@@ -331,14 +331,14 @@ module.exports = (webpackEnv, args) => {
       static: [
         {
           directory: path.resolve(__dirname, "build"),
-          publicPath: "/console",
+          publicPath: "/hawtio",
         }
       ],
       historyApiFallback: {
-        index: "/console/"
+        index: "/hawtio/"
       },
       devMiddleware: {
-        publicPath: "/console",
+        publicPath: "/hawtio",
         mimeTypes: {
           mjs: "application/javascript"
         },
@@ -352,9 +352,9 @@ module.exports = (webpackEnv, args) => {
             }
             next()
           })
-          // Redirect / or /console to /console/
-          devServer.app.get('/', (_, res) => res.redirect('/console/'))
-          devServer.app.get('/console$', (_, res) => res.redirect('/console/'))
+          // Redirect / or /hawtio to /hawtio/
+          devServer.app.get('/', (_, res) => res.redirect('/hawtio/'))
+          devServer.app.get('/hawtio$', (_, res) => res.redirect('/hawtio/'))
 
           const username = 'developer'
           const proxyEnabled = true
@@ -363,30 +363,30 @@ module.exports = (webpackEnv, args) => {
 
           // Hawtio backend API mock
           let login = true
-          devServer.app.get('/console/user', (_, res) => {
+          devServer.app.get('/hawtio/user', (_, res) => {
             login ? res.send(`"${username}"`) : res.sendStatus(403)
           })
-          devServer.app.post('/console/auth/login', (_, res) => {
+          devServer.app.post('/hawtio/auth/login', (_, res) => {
             login = true
             res.send(String(login))
           })
-          devServer.app.get('/console/auth/logout', (_, res) => {
+          devServer.app.get('/hawtio/auth/logout', (_, res) => {
             login = false
-            res.redirect('/console/login')
+            res.redirect('/hawtio/login')
           })
-          devServer.app.get('/console/auth/config/session-timeout', (_, res) => {
+          devServer.app.get('/hawtio/auth/config/session-timeout', (_, res) => {
             res.type('application/json')
             res.send('{}')
           })
-          devServer.app.get('/console/proxy/enabled', (_, res) => res.send(String(proxyEnabled)))
-          devServer.app.get('/console/plugin', (_, res) => res.send(JSON.stringify(plugin)))
+          devServer.app.get('/hawtio/proxy/enabled', (_, res) => res.send(String(proxyEnabled)))
+          devServer.app.get('/hawtio/plugin', (_, res) => res.send(JSON.stringify(plugin)))
 
           // hawtconfig.json mock
-          devServer.app.get('/console/hawtconfig.json', (_, res) => res.send(JSON.stringify(hawtconfig)))
+          devServer.app.get('/hawtio/hawtconfig.json', (_, res) => res.send(JSON.stringify(hawtconfig)))
 
           middlewares.push({
             name: 'hawtio-backend',
-            path: '/console/proxy',
+            path: '/hawtio/proxy',
             middleware: hawtioBackend({
               // Uncomment it if you want to see debug log for Hawtio backend
               logLevel: 'debug',


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@activemq.apache.org
For additional commands, e-mail: commits-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact



(activemq-artemis-console) 02/02: ARTEMIS-5440 - update readme.md with changed yarn instructions

Posted by an...@apache.org.
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

commit 7afb74f7cb3f2c25d4ae397a815619a10d7de0cd
Author: Grzegorz Grzybek <gr...@gmail.com>
AuthorDate: Tue May 6 15:13:06 2025 +0200

    ARTEMIS-5440 - update readme.md with changed yarn instructions
---
 README.md | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index ab00bba..384c244 100644
--- a/README.md
+++ b/README.md
@@ -63,19 +63,20 @@ frontend project itself in development mode with `yarn start` or `npm run start`
 Start the plugin project in development mode with yarn:
 
 ```console
-cd artemis-console-extension/artemis-extension
+cd artemis-console-extension/artemis-extension/app
 yarn start
 ```
 
 or with npm:
 
 ```console
-cd artemis-console-extension/artemis-extension
+cd artemis-console-extension/artemis-extension/app
 npm run start
 ```
 
-
-Now you should be able to preview the plugins under development at <http://localhost:8080/console/>. However, since it still
+Now you should be able to preview the plugins under development at <http://localhost:8080/hawtio/>. However, since it still
 hasn't been connected to a backend JVM, you can then connect to a running Artemis instance using the connect tab using for
 instance http://localhost:8161/console/jolokia.
 You can now edit the artemis console web application and see changes loaded live.
+
+The URL uses `/hawtio` base path due to a [Hawtio bug](https://github.com/hawtio/hawtio/issues/3885).
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@activemq.apache.org
For additional commands, e-mail: commits-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact