nestjs-web-repl 2.1.1 → 2.1.3

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.
@@ -23,26 +23,37 @@ function renderReplUi(channel) {
23
23
  <title>REPL: ${safe}</title>
24
24
  <style>
25
25
  html,body{height:100%;margin:0;font-family:ui-monospace,Menlo,Consolas,monospace;background:#1e1e1e;color:#ddd}
26
- #app{display:flex;flex-direction:column;height:100vh}
26
+ #app{display:flex;flex-direction:column;height:100vh;height:100dvh}
27
27
  #out{flex:1;overflow:auto;padding:10px;white-space:pre-wrap;font-size:13px;line-height:1.4}
28
+ #out:empty::before{content:'Run a command to see output.';color:#666}
28
29
  #out .cmd{color:#4ec9b0}#out .sys{color:#888}#out .err{color:#f14c4c}
29
- #editor{height:32%;border-top:1px solid #333}
30
- #bar{display:flex;gap:12px;align-items:center;padding:6px 10px;background:#252526;font-size:12px;border-top:1px solid #333}
30
+ #editor{height:32%}
31
+ #bar{display:flex;gap:12px;align-items:center;padding:6px 10px;background:#252526;font-size:12px;border-top:1px solid #333;border-bottom:1px solid #333}
31
32
  #bar .dot{width:8px;height:8px;border-radius:50%;background:#666;display:inline-block;margin-right:4px}
32
33
  #bar .dot.on{background:#3fb950}
33
34
  button{background:#0e639c;color:#fff;border:0;padding:4px 12px;border-radius:3px;cursor:pointer}
35
+ @media (max-width:600px){
36
+ #bar{flex-wrap:wrap;gap:6px 12px;padding:8px 10px}
37
+ #bar>span{white-space:nowrap}
38
+ #owner{overflow:hidden;text-overflow:ellipsis;max-width:100%}
39
+ .run-wrap{flex:1 0 100%}
40
+ #run{width:100%;min-height:44px;padding:10px 16px;font-size:15px;white-space:nowrap}
41
+ #run .kbd-hint{display:none}
42
+ #out{flex:1 1 0;min-height:96px}
43
+ #editor{height:auto;flex:1 1 0;min-height:200px}
44
+ }
34
45
  </style>
35
46
  </head>
36
47
  <body>
37
48
  <div id="app">
38
49
  <div id="out"></div>
39
- <div id="editor"></div>
40
50
  <div id="bar">
41
51
  <span><span id="dot" class="dot"></span><span id="state">connecting…</span></span>
42
52
  <span>channel: <b>${safe}</b></span>
43
53
  <span id="owner"></span>
44
- <span style="margin-left:auto"><button id="run">Run ▶ (Ctrl+Enter)</button></span>
54
+ <span class="run-wrap" style="margin-left:auto"><button id="run">Run ▶ <span class="kbd-hint">(Ctrl+Enter)</span></button></span>
45
55
  </div>
56
+ <div id="editor"></div>
46
57
  </div>
47
58
  <script src="https://cdn.jsdelivr.net/npm/monaco-editor@0.52.0/min/vs/loader.js"></script>
48
59
  <script>
package/package.json CHANGED
@@ -1,7 +1,23 @@
1
1
  {
2
2
  "name": "nestjs-web-repl",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "Expose a live NestJS REPL over the network (HTTP + SSE + Monaco UI).",
5
+ "keywords": [
6
+ "nestjs",
7
+ "nest",
8
+ "repl",
9
+ "web-repl",
10
+ "node-repl",
11
+ "remote-repl",
12
+ "sse",
13
+ "server-sent-events",
14
+ "monaco",
15
+ "debugging",
16
+ "devtools",
17
+ "introspection",
18
+ "dynamic-module",
19
+ "redis"
20
+ ],
5
21
  "license": "MIT",
6
22
  "main": "dist/index.js",
7
23
  "types": "dist/index.d.ts",