-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
113 lines (99 loc) · 3.07 KB
/
Copy pathindex.html
File metadata and controls
113 lines (99 loc) · 3.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Security-Policy"
content="default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline';">
<title>Multi SSH</title>
<link rel="stylesheet" href="node_modules/@xterm/xterm/css/xterm.css" />
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
margin: 0;
padding: 0;
background: #1a1a1a;
color: white;
overflow: hidden;
height: 100vh;
}
.app-layout {
height: 100vh;
display: flex;
flex-direction: column;
}
.control-panel {
background: #333;
padding: 5px 10px;
border-bottom: 1px solid #444;
font-size: 0.9em;
flex-shrink: 0;
}
.terminals-container {
flex: 1;
display: flex;
margin: 5px;
gap: 5px;
flex-wrap: wrap;
align-items: flex-start;
align-content: flex-start;
overflow: auto;
padding-right: 5px; /* Account for scrollbar */
}
/* Very wide main scrollbar to make it easy to grab the scrollbar and not use the one from the sub-terminal */
.terminals-container::-webkit-scrollbar {
width: 30px;
}
.terminals-container::-webkit-scrollbar-thumb {
background: #888;
border-radius: 10px;
}
.terminals-container::-webkit-scrollbar-track {
background: #333;
}
.terminal-wrapper {
border: 2px solid #444;
border-radius: 8px;
overflow: hidden;
background: #1a1a1a;
display: flex;
flex-direction: column;
height: 350px; /* Set default, will be overridden by JS */
}
.terminal-title-bar {
background: #333;
color: white;
padding: 5px 10px;
font-size: 0.9em;
font-weight: bold;
border-bottom: 1px solid #444;
}
.terminal-container {
flex: 1;
background: #0c0c0c;
position: relative;
overflow: hidden;
}
.terminal {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div class="app-layout">
<div class="control-panel">
<label>
<input type="checkbox" id="send-to-all"> Send to All
</label>
<select id="host-group-select" style="margin-left: 20px;">
<option value="">Select Host Group</option>
</select>
</div>
<div class="terminals-container" id="terminals-container">
<!-- Terminals will be dynamically added here -->
</div>
</div>
<script src="renderer.js"></script>
</body>
</html>