-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #363 from TeskaLabs/fature/implement-ws-connection…
…-to-remote-control-screen Microservices container refactorisation with websocket
- Loading branch information
Showing
15 changed files
with
822 additions
and
478 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# ASAB Services | ||
|
||
ASAB WebUI Services is a page with a list of available instances. It use a websocket connection, so the data are propagated realtime. | ||
|
||
## Setup | ||
|
||
In `config` file, define ASAB Services as a service: | ||
|
||
``` | ||
module.exports = { | ||
app: { | ||
... | ||
}, | ||
webpackDevServer: { | ||
port: 3000, | ||
proxy: { | ||
'/api/lmio_remote_control': { | ||
target: 'http://localhost:8086', | ||
ws: true, | ||
pathRewrite: {'^/api/lmio_remote_control' : ''} | ||
}, | ||
} | ||
} | ||
} | ||
``` | ||
|
||
In the top-level `index.js` of your ASAB UI application, load the ASAB services module | ||
|
||
``` | ||
const modules = []; | ||
... | ||
import ASABServicesModule from 'asab-webui/modules/maintenance/ServicesModule'; | ||
modules.push(ASABServicesModule); | ||
... | ||
ReactDOM.render(( | ||
<HashRouter> | ||
<Application modules={modules} defaultpath="/" configdefaults={ConfigDefaults}/> | ||
</HashRouter> | ||
), document.getElementById('app')); | ||
``` | ||
|
||
The module will be displayed as a subitem of `Maintenance` in the sidebar navigation. |
35 changes: 0 additions & 35 deletions
35
...dules/maintenance/MicroservicesModule/MicroservicesContainers/AttentionCard/JSONObject.js
This file was deleted.
Oops, something went wrong.
55 changes: 0 additions & 55 deletions
55
...odules/maintenance/MicroservicesModule/MicroservicesContainers/AttentionCard/JSONTable.js
This file was deleted.
Oops, something went wrong.
38 changes: 0 additions & 38 deletions
38
src/modules/maintenance/MicroservicesModule/MicroservicesContainers/AttentionCard/index.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.