Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 6d53e4c2 authored by LEPAGE Gaetan's avatar LEPAGE Gaetan
Browse files

[front] remove workstation related code

parent 978b2a78
No related branches found
No related tags found
No related merge requests found
import * as utils from "./utils.js";
import { Cluster } from "./cluster.js";
// import { Workstations } from "./workstations.js";
var last_updated = new utils.Field('Last update', '', false);
last_updated.get_node_from_id('last-updated');
var cluster = new Cluster();
// var ws = new Workstations();
var active = cluster;
// var inactive = ws;
// Show the default page
active.show();
cluster.show();
// TODO use socketio rooms instead of namespaces (easier to switch)
// console.log("Connecting to socket")
var socket = io('https://rlhm.glepage.com');
// console.log("Succesfully connected to socket server.")
......@@ -31,20 +26,5 @@ socket.on('update', function(new_dict) {
update_timestamp();
// Update data
active.update(new_dict);
cluster.update(new_dict);
});
// function tab_button_callback(selected_tab) {
// // If already in this mode, return and do nothing
//
// // Else,
// // Release previous button
// // Push selected button
//
// // Connect to corresponding namespace on the socket
//
// // Swap the active and inactive modules
// [active, inactive] = [inactive, active];
// inactive.hide();
// active.show();
// }
export class Workstations {
constructor() {
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment