project-compass 2.7.0 → 2.7.1
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.
- package/package.json +1 -1
- package/src/cli.js +6 -13
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -142,9 +142,9 @@ function Studio() {
|
|
|
142
142
|
{flexDirection: 'column'},
|
|
143
143
|
...runtimes.map(r => create(
|
|
144
144
|
Box,
|
|
145
|
-
{key: r.name, marginBottom:
|
|
146
|
-
create(Text, {width:
|
|
147
|
-
create(Text, {dimColor: r.status !== 'ok'}, r.version)
|
|
145
|
+
{key: r.name, marginBottom: 0},
|
|
146
|
+
create(Text, {width: 20, color: r.status === 'ok' ? 'green' : 'red'}, `${r.status === 'ok' ? '✓' : '✗'} ${r.name}`),
|
|
147
|
+
create(Text, {dimColor: r.status !== 'ok'}, `: ${r.version}`)
|
|
148
148
|
)),
|
|
149
149
|
create(Text, {marginTop: 1, color: 'yellow'}, '🛠️ Interactive Project Creator coming soon in v3.0'),
|
|
150
150
|
create(Text, {dimColor: true}, 'Press Shift+A to return to Navigator.')
|
|
@@ -153,13 +153,6 @@ function Studio() {
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
function CursorText({value, cursorIndex, active = true}) {
|
|
156
|
-
const [visible, setVisible] = useState(true);
|
|
157
|
-
useEffect(() => {
|
|
158
|
-
if (!active) return;
|
|
159
|
-
const interval = setInterval(() => setVisible(v => !v), 500);
|
|
160
|
-
return () => clearInterval(interval);
|
|
161
|
-
}, [active]);
|
|
162
|
-
|
|
163
156
|
const before = value.slice(0, cursorIndex);
|
|
164
157
|
const charAt = value[cursorIndex] || ' ';
|
|
165
158
|
const after = value.slice(cursorIndex + 1);
|
|
@@ -168,7 +161,7 @@ function CursorText({value, cursorIndex, active = true}) {
|
|
|
168
161
|
Text,
|
|
169
162
|
null,
|
|
170
163
|
before,
|
|
171
|
-
active
|
|
164
|
+
active ? create(Text, {backgroundColor: 'white', color: 'black'}, charAt) : charAt,
|
|
172
165
|
after
|
|
173
166
|
);
|
|
174
167
|
}
|
|
@@ -435,11 +428,11 @@ function Compass({rootPath, initialView = 'navigator'}) {
|
|
|
435
428
|
}
|
|
436
429
|
|
|
437
430
|
if (key.shift && key.upArrow) {
|
|
438
|
-
scrollLogs(1);
|
|
431
|
+
scrollLogs(-1);
|
|
439
432
|
return;
|
|
440
433
|
}
|
|
441
434
|
if (key.shift && key.downArrow) {
|
|
442
|
-
scrollLogs(
|
|
435
|
+
scrollLogs(1);
|
|
443
436
|
return;
|
|
444
437
|
}
|
|
445
438
|
|