py-web-ssh 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- py_web_ssh-0.1.0.dist-info/METADATA +75 -0
- py_web_ssh-0.1.0.dist-info/RECORD +16 -0
- py_web_ssh-0.1.0.dist-info/WHEEL +4 -0
- py_web_ssh-0.1.0.dist-info/entry_points.txt +3 -0
- py_web_ssh-0.1.0.dist-info/licenses/LICENSE +21 -0
- webssh/__init__.py +5 -0
- webssh/app.py +200 -0
- webssh/files.py +189 -0
- webssh/history.py +66 -0
- webssh/models.py +76 -0
- webssh/session.py +345 -0
- webssh/ssh_client.py +288 -0
- webssh/static/app.js +316 -0
- webssh/static/index.html +120 -0
- webssh/static/logs.html +44 -0
- webssh/static/styles.css +267 -0
webssh/static/styles.css
ADDED
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
color-scheme: dark;
|
|
3
|
+
--bg: #101418;
|
|
4
|
+
--surface: #171d22;
|
|
5
|
+
--surface-2: #202830;
|
|
6
|
+
--line: #35414c;
|
|
7
|
+
--text: #e6edf3;
|
|
8
|
+
--muted: #93a4b5;
|
|
9
|
+
--accent: #4aa3ff;
|
|
10
|
+
--accent-2: #37c592;
|
|
11
|
+
--danger: #ff6b6b;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
* {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
body {
|
|
19
|
+
margin: 0;
|
|
20
|
+
min-height: 100vh;
|
|
21
|
+
background: var(--bg);
|
|
22
|
+
color: var(--text);
|
|
23
|
+
font-family:
|
|
24
|
+
Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
button,
|
|
28
|
+
input {
|
|
29
|
+
font: inherit;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
button {
|
|
33
|
+
min-height: 36px;
|
|
34
|
+
border: 1px solid var(--line);
|
|
35
|
+
border-radius: 6px;
|
|
36
|
+
background: var(--surface-2);
|
|
37
|
+
color: var(--text);
|
|
38
|
+
padding: 0 12px;
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
button:hover {
|
|
43
|
+
border-color: var(--accent);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
button.primary {
|
|
47
|
+
border-color: transparent;
|
|
48
|
+
background: var(--accent);
|
|
49
|
+
color: #06111d;
|
|
50
|
+
font-weight: 700;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
input {
|
|
54
|
+
width: 100%;
|
|
55
|
+
min-height: 36px;
|
|
56
|
+
border: 1px solid var(--line);
|
|
57
|
+
border-radius: 6px;
|
|
58
|
+
background: #0c1116;
|
|
59
|
+
color: var(--text);
|
|
60
|
+
padding: 6px 9px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
input[type="file"] {
|
|
64
|
+
padding: 6px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
label {
|
|
68
|
+
display: grid;
|
|
69
|
+
gap: 5px;
|
|
70
|
+
color: var(--muted);
|
|
71
|
+
font-size: 13px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.app-shell {
|
|
75
|
+
display: grid;
|
|
76
|
+
grid-template-columns: 340px minmax(0, 1fr);
|
|
77
|
+
min-height: 100vh;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.sidebar {
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
gap: 14px;
|
|
84
|
+
overflow: auto;
|
|
85
|
+
border-right: 1px solid var(--line);
|
|
86
|
+
background: var(--surface);
|
|
87
|
+
padding: 16px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.brand h1 {
|
|
91
|
+
margin: 0;
|
|
92
|
+
font-size: 22px;
|
|
93
|
+
letter-spacing: 0;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.brand p {
|
|
97
|
+
margin: 4px 0 0;
|
|
98
|
+
color: var(--muted);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.panel {
|
|
102
|
+
display: grid;
|
|
103
|
+
gap: 12px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.panel h2 {
|
|
107
|
+
margin: 0;
|
|
108
|
+
color: var(--text);
|
|
109
|
+
font-size: 15px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.stack {
|
|
113
|
+
display: grid;
|
|
114
|
+
gap: 10px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.compact {
|
|
118
|
+
margin-top: 14px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.grid-2 {
|
|
122
|
+
display: grid;
|
|
123
|
+
grid-template-columns: 94px 1fr;
|
|
124
|
+
gap: 10px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.checks {
|
|
128
|
+
display: grid;
|
|
129
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
130
|
+
gap: 8px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.checks label {
|
|
134
|
+
display: flex;
|
|
135
|
+
align-items: center;
|
|
136
|
+
gap: 7px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.checks input {
|
|
140
|
+
width: auto;
|
|
141
|
+
min-height: auto;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.button-row {
|
|
145
|
+
display: grid;
|
|
146
|
+
grid-template-columns: 1fr 1fr;
|
|
147
|
+
gap: 8px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.quiet-link {
|
|
151
|
+
color: var(--accent);
|
|
152
|
+
font-size: 13px;
|
|
153
|
+
text-decoration: none;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.workspace {
|
|
157
|
+
display: grid;
|
|
158
|
+
grid-template-rows: 52px minmax(0, 1fr);
|
|
159
|
+
min-width: 0;
|
|
160
|
+
min-height: 100vh;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.toolbar {
|
|
164
|
+
display: flex;
|
|
165
|
+
align-items: center;
|
|
166
|
+
justify-content: space-between;
|
|
167
|
+
gap: 12px;
|
|
168
|
+
border-bottom: 1px solid var(--line);
|
|
169
|
+
padding: 0 14px;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
#status {
|
|
173
|
+
color: var(--accent-2);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
#session-label {
|
|
177
|
+
margin-left: 10px;
|
|
178
|
+
color: var(--muted);
|
|
179
|
+
font-size: 12px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.tabs {
|
|
183
|
+
display: flex;
|
|
184
|
+
gap: 6px;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.tab.active {
|
|
188
|
+
border-color: var(--accent);
|
|
189
|
+
color: var(--accent);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.pane {
|
|
193
|
+
display: none;
|
|
194
|
+
min-height: 0;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.pane.active {
|
|
198
|
+
display: block;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
#terminal-pane {
|
|
202
|
+
background: #0b0f14;
|
|
203
|
+
padding: 8px;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
#terminal {
|
|
207
|
+
width: 100%;
|
|
208
|
+
height: calc(100vh - 68px);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
#logs-pane {
|
|
212
|
+
overflow: auto;
|
|
213
|
+
padding: 14px;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
#logs,
|
|
217
|
+
#full-logs {
|
|
218
|
+
margin: 0;
|
|
219
|
+
white-space: pre-wrap;
|
|
220
|
+
color: #d6dee8;
|
|
221
|
+
font-family: "Cascadia Mono", Consolas, Menlo, monospace;
|
|
222
|
+
font-size: 13px;
|
|
223
|
+
line-height: 1.45;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.logs-page {
|
|
227
|
+
background: #0f1419;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.log-document {
|
|
231
|
+
display: grid;
|
|
232
|
+
gap: 16px;
|
|
233
|
+
max-width: 1100px;
|
|
234
|
+
margin: 0 auto;
|
|
235
|
+
padding: 24px;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.log-document h1 {
|
|
239
|
+
margin: 0;
|
|
240
|
+
font-size: 24px;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.log-document p {
|
|
244
|
+
margin: 6px 0 0;
|
|
245
|
+
color: var(--muted);
|
|
246
|
+
word-break: break-all;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
@media (max-width: 900px) {
|
|
250
|
+
.app-shell {
|
|
251
|
+
grid-template-columns: 1fr;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.sidebar {
|
|
255
|
+
max-height: 48vh;
|
|
256
|
+
border-right: 0;
|
|
257
|
+
border-bottom: 1px solid var(--line);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.workspace {
|
|
261
|
+
min-height: 52vh;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
#terminal {
|
|
265
|
+
height: 52vh;
|
|
266
|
+
}
|
|
267
|
+
}
|