Use common status codes across UI components
All status codes are defined in an external JSON file named "ui_common.json". This file is loaded by the UI components if they must exchange statuses. Also, the protocol for propagating the status of the server has been modified. Instead of using separate flags to denote if the server is in some status or not, we now use a status code which must be defined in the common JSON file. In the present commit, the WebSocket server is managing status codes in that fashion, and the GUI is able to understand the responses and adjust its behavior accordingly.
Showing
- agkyra/nwgui/menu.html 60 additions, 94 deletionsagkyra/nwgui/menu.html
- agkyra/nwgui/notify.js 20 additions, 1 deletionagkyra/nwgui/notify.js
- agkyra/nwgui/protocol.js 7 additions, 16 deletionsagkyra/nwgui/protocol.js
- agkyra/nwgui/static/images/tray_off.png 0 additions, 0 deletionsagkyra/nwgui/static/images/tray_off.png
- agkyra/nwgui/static/images/tray_warning.png 0 additions, 0 deletionsagkyra/nwgui/static/images/tray_warning.png
- agkyra/protocol.py 92 additions, 72 deletionsagkyra/protocol.py
- agkyra/scripts/cli.py 2 additions, 2 deletionsagkyra/scripts/cli.py
- agkyra/scripts/gui.py 3 additions, 2 deletionsagkyra/scripts/gui.py
- agkyra/scripts/server.py 2 additions, 1 deletionagkyra/scripts/server.py
- agkyra/ui_common.json 16 additions, 0 deletionsagkyra/ui_common.json
Loading
Please register or sign in to comment