-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
148 lines (144 loc) · 3.23 KB
/
index.html
File metadata and controls
148 lines (144 loc) · 3.23 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ladybug Shell Demo</title>
<style>
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
background: #1e1e1e;
color: #d4d4d4;
font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Source Code Pro', monospace;
font-size: 14px;
height: 100vh;
display: flex;
flex-direction: column;
}
.header {
background: #252526;
padding: 12px 16px;
border-bottom: 1px solid #3c3c3c;
display: flex;
align-items: center;
gap: 12px;
}
.header h1 {
margin: 0;
font-size: 16px;
font-weight: 600;
color: #569cd6;
}
.status {
font-size: 12px;
padding: 4px 8px;
border-radius: 4px;
background: #3c3c3c;
}
.status.loading {
background: #dcdcaa;
color: #1e1e1e;
}
.status.ready {
background: #4ec9b0;
color: #1e1e1e;
}
.status.error {
background: #f14c4c;
color: #fff;
}
.terminal {
flex: 1;
overflow: auto;
padding: 16px;
}
.output-line {
margin: 4px 0;
white-space: pre-wrap;
word-break: break-word;
}
.output-line.error {
color: #f14c4c;
}
.output-line.success {
color: #4ec9b0;
}
.output-line.info {
color: #9cdcfe;
}
.output-line.result {
color: #d4d4d4;
}
.output-line table {
border-collapse: collapse;
margin: 8px 0;
}
.output-line td, .output-line th {
border: 1px solid #3c3c3c;
padding: 4px 8px;
}
.output-line th {
background: #2d2d2d;
}
.input-area {
background: #252526;
padding: 12px 16px;
border-top: 1px solid #3c3c3c;
display: flex;
align-items: center;
gap: 8px;
}
.prompt {
color: #4ec9b0;
font-weight: bold;
}
#command-input {
flex: 1;
background: transparent;
border: none;
color: #d4d4d4;
font-family: inherit;
font-size: 14px;
outline: none;
resize: none;
min-height: 24px;
}
#command-input::placeholder {
color: #6a6a6a;
}
.help-panel {
background: #252526;
padding: 12px 16px;
border-bottom: 1px solid #3c3c3c;
font-size: 12px;
color: #6a6a6a;
}
.help-panel kbd {
background: #3c3c3c;
padding: 2px 6px;
border-radius: 3px;
color: #d4d4d4;
}
</style>
<script src="/sw.js"></script>
</head>
<body>
<div class="header">
<h1>🐞 Ladybug Shell</h1>
<span id="status" class="status loading">Loading WASM...</span>
</div>
<div class="help-panel">
Press <kbd>Enter</kbd> to execute • Type <kbd>help</kbd> for commands • Use <kbd>↑</kbd><kbd>↓</kbd> for history
</div>
<div class="terminal" id="terminal"></div>
<div class="input-area">
<span class="prompt">lbug></span>
<textarea id="command-input" placeholder="Enter Cypher query or command..." autocomplete="off" autofocus rows="1"></textarea>
</div>
<script type="module" src="/main.js"></script>
</body>
</html>