Coder Social home page Coder Social logo

kraken-hpc / kraken-dashboard Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 2.0 2.67 MB

A React.js based dashboard for kraken (https://github.com/hpc/kraken)

License: BSD 3-Clause "New" or "Revised" License

HTML 0.59% JavaScript 1.13% CSS 12.45% TypeScript 85.84%
electron kraken-dashboard reactjs

kraken-dashboard's People

Contributors

jlowellwofford avatar kpelzel avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kraken-dashboard's Issues

Right click on graph sets new cfg

Add the ability to right click on a node in the graph and "go to" that node. This will send a new cfg state to kraken for that node.

Remove (or autodetect) base64 encodings/decodings

Kraken no longer base64 encodes ips, macs, and uuids in the restapi. This breaks the dashboard badly. I just get a blank screen. The console shows:

2.7b3fa0db.chunk.js:2 DOMException: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.
    at _ (http://192.168.57.10/static/js/main.050dec14.chunk.js:1:13213)
    at Y (http://192.168.57.10/static/js/main.050dec14.chunk.js:1:13514)
    at te (http://192.168.57.10/static/js/main.050dec14.chunk.js:1:18808)
    at pa (http://192.168.57.10/static/js/2.7b3fa0db.chunk.js:2:808877)
    at Ps (http://192.168.57.10/static/js/2.7b3fa0db.chunk.js:2:854313)
    at Dl (http://192.168.57.10/static/js/2.7b3fa0db.chunk.js:2:839833)
    at Ml (http://192.168.57.10/static/js/2.7b3fa0db.chunk.js:2:839758)
    at _l (http://192.168.57.10/static/js/2.7b3fa0db.chunk.js:2:837078)
    at http://192.168.57.10/static/js/2.7b3fa0db.chunk.js:2:795156
    at t.unstable_runWithPriority (http://192.168.57.10/static/js/2.7b3fa0db.chunk.js:2:870278)
gs @ 2.7b3fa0db.chunk.js:2
42.7b3fa0db.chunk.js:2 DOMException: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.
    at _ (http://192.168.57.10/static/js/main.050dec14.chunk.js:1:13213)
    at Y (http://192.168.57.10/static/js/main.050dec14.chunk.js:1:13514)
    at ne (http://192.168.57.10/static/js/main.050dec14.chunk.js:1:19619)
    at pa (http://192.168.57.10/static/js/2.7b3fa0db.chunk.js:2:808877)
    at Ps (http://192.168.57.10/static/js/2.7b3fa0db.chunk.js:2:854313)
    at Dl (http://192.168.57.10/static/js/2.7b3fa0db.chunk.js:2:839833)
    at Ml (http://192.168.57.10/static/js/2.7b3fa0db.chunk.js:2:839758)
    at _l (http://192.168.57.10/static/js/2.7b3fa0db.chunk.js:2:837078)
    at http://192.168.57.10/static/js/2.7b3fa0db.chunk.js:2:795156
    at t.unstable_runWithPriority (http://192.168.57.10/static/js/2.7b3fa0db.chunk.js:2:870278)
gs @ 2.7b3fa0db.chunk.js:2
main.050dec14.chunk.js:1 Uncaught (in promise) DOMException: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.
    at _ (http://192.168.57.10/static/js/main.050dec14.chunk.js:1:13213)
    at Y (http://192.168.57.10/static/js/main.050dec14.chunk.js:1:13514)
    at te (http://192.168.57.10/static/js/main.050dec14.chunk.js:1:18808)
    at pa (http://192.168.57.10/static/js/2.7b3fa0db.chunk.js:2:808877)
    at Ps (http://192.168.57.10/static/js/2.7b3fa0db.chunk.js:2:854313)
    at Dl (http://192.168.57.10/static/js/2.7b3fa0db.chunk.js:2:839833)
    at Ml (http://192.168.57.10/static/js/2.7b3fa0db.chunk.js:2:839758)
    at _l (http://192.168.57.10/static/js/2.7b3fa0db.chunk.js:2:837078)
    at http://192.168.57.10/static/js/2.7b3fa0db.chunk.js:2:795156
    at t.unstable_runWithPriority (http://192.168.57.10/static/js/2.7b3fa0db.chunk.js:2:870278)
DevTools failed to load SourceMap: Could not parse content for http://192.168.57.10/static/js/2.7b3fa0db.chunk.js.map: Unexpected token < in JSON at position 0
DevTools failed to load SourceMap: Could not parse content for http://192.168.57.10/static/js/main.050dec14.chunk.js.map: Unexpected token < in JSON at position 0
DevTools failed to load SourceMap: Could not parse content for http://192.168.57.10/static/css/main.ce8a1b51.chunk.css.map: Unexpected token < in JSON at position 0

Have kraken-dashboard poll for a resumed kraken

Currently, to get the dashboard to re-connect to a kraken that has gone away and come back, a forced refresh is required (at least in the electron app).

It would be nice to have a polling loop that will auto-reconnect.

Add freeze/thaw button(s)

It would be nice to be able to easily freeze/thaw from the dashboard.

This might be specified on the node level since it applies to each node (including master), similar to the on/off buttons.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.