Skip to content

Commit ac6cdc0

Browse files
committed
Topology prep.
1 parent b74722c commit ac6cdc0

File tree

5 files changed

+28
-1
lines changed

5 files changed

+28
-1
lines changed

Protest/Front/loader.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ const LOADER = {
120120
"reverseproxy.js",
121121
"passwordgen.js",
122122
"passwordstrength.js",
123+
"topology.js",
123124
"gandalf.js",
124125
"encoder.js",
125126
"netcalc.js",
@@ -309,6 +310,7 @@ const LOADER = {
309310
case "DevicesGrid" : return new DevicesGrid(command.args);
310311
case "UsersGrid" : return new UsersGrid(command.args);
311312
case "PasswordStrength" : return new PasswordStrength(command.args);
313+
case "Topology" : return new Topology(command.args);
312314
case "Gandalf" : return new Gandalf(command.args);
313315
case "Fetch" : return new Fetch(command.args);
314316
case "Monitor" : return new Monitor(command.args);

Protest/Front/topology.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.topology-container {
2+
position: absolute;
3+
top: 0;
4+
right: 0;
5+
left: 0;
6+
bottom: 0;
7+
overflow: auto;
8+
}

Protest/Front/topology.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
class Topology extends Window{
2+
constructor(args) {
3+
super();
4+
this.args = args ?? {};
5+
6+
this.AddCssDependencies("topology.css");
7+
8+
this.SetTitle("Topology");
9+
this.SetIcon("mono/topology.svg");
10+
11+
}
12+
}

Protest/Front/ui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ const MENU = {
356356
{ t:"Watchdog", i:"mono/watchdog.svg?light", g:"tools", h:false, f:()=> new Watchdog() },
357357
{ t:"Reverse proxy", i:"mono/reverseproxy.svg?light", g:"tools", h:false, f:args=> new ReverseProxy(args), k:"man in the middle" },
358358
{ t:"Issues", i:"mono/issues.svg?light", g:"tools", h:false, f:()=> new Issues() },
359-
//{ t:"Topology", i:"mono/topology.svg?light", g:"tools", h:true, f:()=> {} },
359+
{ t:"Topology", i:"mono/topology.svg?light", g:"tools", h:true, f:()=> new Topology() },
360360
{ t:"Gandalf", i:"mono/gandalf.svg?light", g:"tools", h:true, f:()=> new Gandalf() },
361361
//{ t:"Scripts", i:"mono/scripts.svg?light", g:"tools", h:false, f:args=> {} },
362362
//{ t:"Script reports", i:"mono/reportfile.svg?light", g:"tools", h:true, f:args=> {} },

Protest/Tools/Topology.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
namespace Protest.Tools;
2+
3+
internal static class Topology {
4+
5+
}

0 commit comments

Comments
 (0)