spawn-term 0.1.9 → 0.1.10
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.
|
@@ -62,39 +62,13 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
62
62
|
function App() {
|
|
63
63
|
var store = (0, _react.useContext)(_Store.default);
|
|
64
64
|
var appState = (0, _zustand.useStore)(store);
|
|
65
|
-
|
|
66
|
-
return [
|
|
67
|
-
'running'
|
|
68
|
-
].indexOf(x.state) >= 0;
|
|
69
|
-
});
|
|
70
|
-
var done = appState.processes.filter(function(x) {
|
|
71
|
-
return [
|
|
72
|
-
'error',
|
|
73
|
-
'success'
|
|
74
|
-
].indexOf(x.state) >= 0;
|
|
75
|
-
});
|
|
76
|
-
return /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/ _react.default.createElement(_ink.Box, {
|
|
65
|
+
return /*#__PURE__*/ _react.default.createElement(_ink.Box, {
|
|
77
66
|
flexDirection: "column"
|
|
78
|
-
},
|
|
67
|
+
}, appState.processes.map(function(item) {
|
|
79
68
|
return /*#__PURE__*/ _react.default.createElement(_ChildProcess.default, {
|
|
80
69
|
key: item.id,
|
|
81
70
|
id: item.id
|
|
82
71
|
});
|
|
83
|
-
}))
|
|
84
|
-
flexDirection: "column",
|
|
85
|
-
borderStyle: "single",
|
|
86
|
-
borderColor: "black",
|
|
87
|
-
borderBottom: true,
|
|
88
|
-
borderTop: false,
|
|
89
|
-
borderLeft: false,
|
|
90
|
-
borderRight: false
|
|
91
|
-
}), /*#__PURE__*/ _react.default.createElement(_ink.Box, {
|
|
92
|
-
flexDirection: "column"
|
|
93
|
-
}, done.map(function(item) {
|
|
94
|
-
return /*#__PURE__*/ _react.default.createElement(_ChildProcess.default, {
|
|
95
|
-
key: item.id,
|
|
96
|
-
id: item.id
|
|
97
|
-
});
|
|
98
|
-
})));
|
|
72
|
+
}));
|
|
99
73
|
}
|
|
100
74
|
/* CJS INTEROP */ if (exports.__esModule && exports.default) { try { Object.defineProperty(exports.default, '__esModule', { value: true }); for (var key in exports) { exports.default[key] = exports[key]; } } catch (_) {}; module.exports = exports.default; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/node/spawn-term/src/components/App.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport { useStore } from 'zustand';\nimport StoreContext from '../contexts/Store';\nimport { Box } from '../ink.mjs';\nimport type { AppState, ChildProcess as ChildProcessT } from '../types';\nimport ChildProcess from './ChildProcess';\n\nexport default function App() {\n const store = useContext(StoreContext);\n const appState = useStore(store) as AppState;\n
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/node/spawn-term/src/components/App.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport { useStore } from 'zustand';\nimport StoreContext from '../contexts/Store';\nimport { Box } from '../ink.mjs';\nimport type { AppState, ChildProcess as ChildProcessT } from '../types';\nimport ChildProcess from './ChildProcess';\n\nexport default function App() {\n const store = useContext(StoreContext);\n const appState = useStore(store) as AppState;\n\n return (\n <Box flexDirection=\"column\">\n {appState.processes.map((item: ChildProcessT) => (\n <ChildProcess key={item.id} id={item.id} />\n ))}\n </Box>\n );\n}\n"],"names":["App","store","useContext","StoreContext","appState","useStore","Box","flexDirection","processes","map","item","ChildProcess","key","id"],"mappings":";;;;+BAOA;;;eAAwBA;;;6DAPU;uBACT;4DACA;mBACL;mEAEK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEV,SAASA;IACtB,IAAMC,QAAQC,IAAAA,iBAAU,EAACC,cAAY;IACrC,IAAMC,WAAWC,IAAAA,iBAAQ,EAACJ;IAE1B,qBACE,6BAACK,QAAG;QAACC,eAAc;OAChBH,SAASI,SAAS,CAACC,GAAG,CAAC,SAACC;6BACvB,6BAACC,qBAAY;YAACC,KAAKF,KAAKG,EAAE;YAAEA,IAAIH,KAAKG,EAAE;;;AAI/C"}
|
|
@@ -6,30 +6,10 @@ import ChildProcess from './ChildProcess.mjs';
|
|
|
6
6
|
export default function App() {
|
|
7
7
|
const store = useContext(StoreContext);
|
|
8
8
|
const appState = useStore(store);
|
|
9
|
-
|
|
10
|
-
'running'
|
|
11
|
-
].indexOf(x.state) >= 0);
|
|
12
|
-
const done = appState.processes.filter((x)=>[
|
|
13
|
-
'error',
|
|
14
|
-
'success'
|
|
15
|
-
].indexOf(x.state) >= 0);
|
|
16
|
-
return /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(Box, {
|
|
9
|
+
return /*#__PURE__*/ React.createElement(Box, {
|
|
17
10
|
flexDirection: "column"
|
|
18
|
-
},
|
|
11
|
+
}, appState.processes.map((item)=>/*#__PURE__*/ React.createElement(ChildProcess, {
|
|
19
12
|
key: item.id,
|
|
20
13
|
id: item.id
|
|
21
|
-
})))
|
|
22
|
-
flexDirection: "column",
|
|
23
|
-
borderStyle: "single",
|
|
24
|
-
borderColor: "black",
|
|
25
|
-
borderBottom: true,
|
|
26
|
-
borderTop: false,
|
|
27
|
-
borderLeft: false,
|
|
28
|
-
borderRight: false
|
|
29
|
-
}), /*#__PURE__*/ React.createElement(Box, {
|
|
30
|
-
flexDirection: "column"
|
|
31
|
-
}, done.map((item)=>/*#__PURE__*/ React.createElement(ChildProcess, {
|
|
32
|
-
key: item.id,
|
|
33
|
-
id: item.id
|
|
34
|
-
}))));
|
|
14
|
+
})));
|
|
35
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/node/spawn-term/src/components/App.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport { useStore } from 'zustand';\nimport StoreContext from '../contexts/Store';\nimport { Box } from '../ink.mjs';\nimport type { AppState, ChildProcess as ChildProcessT } from '../types';\nimport ChildProcess from './ChildProcess';\n\nexport default function App() {\n const store = useContext(StoreContext);\n const appState = useStore(store) as AppState;\n
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/node/spawn-term/src/components/App.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport { useStore } from 'zustand';\nimport StoreContext from '../contexts/Store';\nimport { Box } from '../ink.mjs';\nimport type { AppState, ChildProcess as ChildProcessT } from '../types';\nimport ChildProcess from './ChildProcess';\n\nexport default function App() {\n const store = useContext(StoreContext);\n const appState = useStore(store) as AppState;\n\n return (\n <Box flexDirection=\"column\">\n {appState.processes.map((item: ChildProcessT) => (\n <ChildProcess key={item.id} id={item.id} />\n ))}\n </Box>\n );\n}\n"],"names":["React","useContext","useStore","StoreContext","Box","ChildProcess","App","store","appState","flexDirection","processes","map","item","key","id"],"mappings":"AAAA,OAAOA,SAASC,UAAU,QAAQ,QAAQ;AAC1C,SAASC,QAAQ,QAAQ,UAAU;AACnC,OAAOC,kBAAkB,oBAAoB;AAC7C,SAASC,GAAG,QAAQ,aAAa;AAEjC,OAAOC,kBAAkB,iBAAiB;AAE1C,eAAe,SAASC;IACtB,MAAMC,QAAQN,WAAWE;IACzB,MAAMK,WAAWN,SAASK;IAE1B,qBACE,oBAACH;QAAIK,eAAc;OAChBD,SAASE,SAAS,CAACC,GAAG,CAAC,CAACC,qBACvB,oBAACP;YAAaQ,KAAKD,KAAKE,EAAE;YAAEA,IAAIF,KAAKE,EAAE;;AAI/C"}
|