Task #3579
closedMicro forwarder: Status page to show faces and FIB
100%
Description
The Micro forwarder extension already has the shell for a status page. Update it to show the faces and FIB, like nfd-status.
Updated by Anonymous over 8 years ago
- Blocked by Task #3578: Micro forwarder: Support list faces and list FIB added
Updated by Anonymous over 8 years ago
- Blocks Task #3581: Micro forwarder: Sign the Firefox extension added
Updated by Anonymous over 8 years ago
- Blocks Task #3582: Micro forwarder: Sign the Chrome extension added
Updated by Anonymous over 8 years ago
- Status changed from New to In Progress
- Assignee set to Wentao Shang
Hi Wentao. The config.html page works to register a route and show status, but only when I open in as a normal web page. It doesn't work when I open it from the toolbar button. I assigned this to you for you take a look. Maybe a page loaded from the toolbar button doesn't add the port listeners?
https://github.com/named-data/ndn-js/blob/master/tools/micro-forwarder/extension/config.html
Updated by Wentao Shang over 8 years ago
It's true that the html page inside the extension won't load the content script automatically when it is opened. Actually this is quite easy to fix: we just need to include content.js inside the config.html page. If you want I can push this one-line change directly.
Updated by Wentao Shang over 8 years ago
I also found a small bug while testing config.html: if I make a typo in the url, the websocket connection will fail to create eventually, but the wrong url will persist when you click on "get status" button.
Updated by Anonymous over 8 years ago
For the WebSocket bug, I created issue #3586.
Updated by Wentao Shang over 8 years ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
Updated by Anonymous over 8 years ago
Hi Wentao. Is the Config button supposed to work in Chrome? It doesn't open the config HTML page for me.
Updated by Wentao Shang over 8 years ago
Jeff Thompson wrote:
Hi Wentao. Is the Config button supposed to work in Chrome? It doesn't open the config HTML page for me.
After some research, I found out that Chrome doesn't allow you to inline JavaScript code in the extension HTML page, like in:
There is a walk-around I found on the Web that adds an "click" event listener to the button in the JS file. I'll push the fix now.
Updated by Wentao Shang over 8 years ago
Updated by Anonymous over 8 years ago
Thanks. The page loads in Chrome but I get some JavaScript errors. I'll open a new issue.