Skip to content

Instantly share code, notes, and snippets.

View PriaaChauhan's full-sized avatar
😇
Keen to learn new & challenging things.

Pria Chauhan PriaaChauhan

😇
Keen to learn new & challenging things.
View GitHub Profile
@PriaaChauhan
PriaaChauhan / index.js
Created October 8, 2025 07:48
updated
// const BASE_URL = 'http://localhost:8443/api';
const BASE_URL = 'http://192.168.2.1:8443/api';
class SwitchUI {
constructor() {
this.selectedPort = null;
this.portData = {}; // to store backend port data
this.currentContent = 'dashboard';
this.notifications = [];