Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
elixir 1.8.1
erlang 21.3.2
nodejs 9.5.0
elixir 1.19.5-otp-28
erlang 28.3.2
nodejs 11.12.1
66 changes: 0 additions & 66 deletions assets/brunch-config.js

This file was deleted.

16 changes: 9 additions & 7 deletions assets/js/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "phoenix_html";
import {Socket} from "phoenix";
import { Socket } from "phoenix";

import NodeSelector from "./node_selector.js";
import ClusterView from "./cluster_view.js";
Expand All @@ -8,17 +8,19 @@ import ClusterView from "./cluster_view.js";
class App {
constructor(node_selector_container) {
this.node_selector = new NodeSelector(node_selector_container, this.channel);
this.cluster_view = new ClusterView($('#graph'), $('#log'));
$('#stop_msg_tracing').click(e => {
if (this.cluster_view)
this.cluster_view = new ClusterView($("#graph"), $("#log"));

$("#stop_msg_tracing").click(_e => {
if (this.cluster_view) {
this.cluster_view.stopMsgTraceAll();
}
});
}
}

$( () => {
$(() => {
window.socket = new Socket("/socket");
window.socket.connect();

window.app = new App($('#node_selector'));
})
window.app = new App($("#node_selector"));
});
8 changes: 8 additions & 0 deletions assets/js/globals.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import jquery from "jquery";

window.$ = jquery;
window.jQuery = jquery;

export const $ = jquery;
export const jQuery = jquery;
export const d3 = window.d3;
Loading