Comparing version 0.2.6 to 1.0.0
@@ -66,2 +66,10 @@ /* eslint-disable */ | ||
return function jump(event) { | ||
if ( | ||
document.getElementById('fileSearch') === document.activeElement && | ||
document.activeElement != null | ||
) { | ||
// if we're currently focused on the search input, we don't want to navigate | ||
return; | ||
} | ||
switch (event.which) { | ||
@@ -68,0 +76,0 @@ case 78: // n |
@@ -27,2 +27,27 @@ /* eslint-disable */ | ||
function onFilterInput() { | ||
const searchValue = document.getElementById('fileSearch').value; | ||
const rows = document.getElementsByTagName('tbody')[0].children; | ||
for (let i = 0; i < rows.length; i++) { | ||
const row = rows[i]; | ||
if ( | ||
row.textContent | ||
.toLowerCase() | ||
.includes(searchValue.toLowerCase()) | ||
) { | ||
row.style.display = ''; | ||
} else { | ||
row.style.display = 'none'; | ||
} | ||
} | ||
} | ||
// loads the search box | ||
function addSearchBox() { | ||
var template = document.getElementById('filterTemplate'); | ||
var templateClone = template.content.cloneNode(true); | ||
templateClone.getElementById('fileSearch').oninput = onFilterInput; | ||
template.parentElement.appendChild(templateClone); | ||
} | ||
// loads all columns | ||
@@ -166,2 +191,3 @@ function loadColumns() { | ||
loadData(); | ||
addSearchBox(); | ||
addSortIndicators(); | ||
@@ -168,0 +194,0 @@ enableUI(); |
@@ -68,3 +68,3 @@ /** | ||
- The SSH connection is told to start [`cp-remote.py`](cp-remote.py) on the remote host. | ||
- `cp-remote.py` calls [`socket.socketpair`](http://docs.python.org/2.7/library/socket.html#socket.socketpair) to create a pair of connected file descriptors (Unix domain sockets). | ||
- `cp-remote.py` calls [`socket.socketpair`](http://docs.python.org/3/library/socket.html#socket.socketpair) to create a pair of connected file descriptors (Unix domain sockets). | ||
- `cp-remote.py` starts `socat`, telling it to relay data between standard input (i.e. the SSH connection) and one of the connected file descriptors. | ||
@@ -71,0 +71,0 @@ - `cp-remote.py` sets `NODE_CHANNEL_FD` to the other connected file descriptor and starts `node`, telling it to run the module you specified. |
{ | ||
"name": "cp-remote", | ||
"description": "Remote child_process runner with message support", | ||
"version": "0.2.6", | ||
"version": "1.0.0", | ||
"homepage": "https://github.com/davedoesdev/cp-remote", | ||
@@ -37,13 +37,21 @@ "author": { | ||
"devDependencies": { | ||
"async": "^3.2.2", | ||
"c8": "^7.10.0", | ||
"chai": "^4.3.4", | ||
"grunt": "^1.4.1", | ||
"grunt-apidox": "^2.0.14", | ||
"grunt-contrib-jshint": "^3.1.1", | ||
"async": "^3.2.4", | ||
"c8": "^7.11.3", | ||
"chai": "^4.3.6", | ||
"grunt": "^1.5.3", | ||
"grunt-apidox": "^2.0.17", | ||
"grunt-contrib-jshint": "^3.2.0", | ||
"grunt-exec": "^3.0.0", | ||
"grunt-mocha-test": "^0.13.3", | ||
"mocha": "^9.1.3", | ||
"yargs": "^17.2.1" | ||
"mocha": "^10.0.0", | ||
"yargs": "^17.5.1" | ||
}, | ||
"overrides": { | ||
"jsdoctypeparser": { | ||
"lodash": "^4.17.21" | ||
}, | ||
"dox": { | ||
"markdown-it": "^12.3.2" | ||
} | ||
} | ||
} |
@@ -1,1 +0,1 @@ | ||
module.exports = "import binascii;exec(binascii.unhexlify('23212f7573722f62696e2f656e7620707974686f6e0a0a696d706f727420736f636b65740a696d706f72742073756270726f636573730a696d706f7274206f730a696d706f7274207379730a696d706f727420746872656164696e670a0a61726773203d2067657461747472285f5f6275696c74696e735f5f2c0a202020202020202020202020202020277261775f696e707574272c0a2020202020202020202020202020206c616d6264613a206f70656e28302c20277262272c20627566666572696e673d302c20636c6f736566643d46616c7365292e726561646c696e6528295b303a2d315d2928295b313a2d315d0a0a73312c7332203d20736f636b65742e736f636b65747061697228290a69662068617361747472286f732c20277365745f696e686572697461626c6527293a0a202020206f732e7365745f696e686572697461626c652873312e66696c656e6f28292c2054727565290a202020206f732e7365745f696e686572697461626c652873322e66696c656e6f28292c2054727565290a0a7031203d2073756270726f636573732e506f70656e285b27736f636174272c20272d272c202746443a27202b207374722873312e66696c656e6f2829295d2c20636c6f73655f6664733d46616c7365290a0a656e76203d2064696374286f732e656e7669726f6e290a656e765b274e4f44455f4348414e4e454c5f4644275d203d207374722873322e66696c656e6f2829290a0a7032203d2073756270726f636573732e506f70656e285b276e6f6465272c20272d65272c202770726f636573732e61726776203d205b70726f636573732e617267765b305d2c2070726f636573732e617267765b315d5d2e636f6e636174284a534f4e2e7061727365284275666665722e66726f6d2870726f636573732e617267765b325d2c2022686578222929293b20736574496d6d6564696174652866756e6374696f6e202829207b2072657175697265287265717569726528227061746822292e7265736f6c76652870726f636573732e617267765b315d29293b207d29272c207379732e617267765b315d2c20617267735d2c20656e763d656e762c20737464696e3d73756270726f636573732e504950452c207374646f75743d322c20636c6f73655f6664733d46616c7365290a70322e737464696e2e636c6f736528290a0a2373312e636c6f736528290a2373322e636c6f736528290a0a646f6e65203d2046616c73650a0a636c617373205761697454687265616428746872656164696e672e546872656164293a0a202020206465662072756e2873656c66293a0a202020202020202070312e7761697428290a20202020202020206966206e6f7420646f6e653a2070322e6b696c6c28290a0a746872656164203d205761697454687265616428290a7468726561642e737461727428290a0a70322e7761697428290a646f6e65203d20547275650a70312e6b696c6c28290a'))" | ||
module.exports = "import binascii;exec(binascii.unhexlify('23212f7573722f62696e2f656e7620707974686f6e330a0a696d706f727420736f636b65740a696d706f72742073756270726f636573730a696d706f7274206f730a696d706f7274207379730a696d706f727420746872656164696e670a0a61726773203d2067657461747472285f5f6275696c74696e735f5f2c0a202020202020202020202020202020277261775f696e707574272c0a2020202020202020202020202020206c616d6264613a206f70656e28302c20277262272c20627566666572696e673d302c20636c6f736566643d46616c7365292e726561646c696e6528295b303a2d315d2928295b313a2d315d0a0a73312c7332203d20736f636b65742e736f636b65747061697228290a69662068617361747472286f732c20277365745f696e686572697461626c6527293a0a202020206f732e7365745f696e686572697461626c652873312e66696c656e6f28292c2054727565290a202020206f732e7365745f696e686572697461626c652873322e66696c656e6f28292c2054727565290a0a7031203d2073756270726f636573732e506f70656e285b27736f636174272c20272d272c202746443a27202b207374722873312e66696c656e6f2829295d2c20636c6f73655f6664733d46616c7365290a0a656e76203d2064696374286f732e656e7669726f6e290a656e765b274e4f44455f4348414e4e454c5f4644275d203d207374722873322e66696c656e6f2829290a0a7032203d2073756270726f636573732e506f70656e285b276e6f6465272c20272d65272c202770726f636573732e61726776203d205b70726f636573732e617267765b305d2c2070726f636573732e617267765b315d5d2e636f6e636174284a534f4e2e7061727365284275666665722e66726f6d2870726f636573732e617267765b325d2c2022686578222929293b20736574496d6d6564696174652866756e6374696f6e202829207b2072657175697265287265717569726528227061746822292e7265736f6c76652870726f636573732e617267765b315d29293b207d29272c207379732e617267765b315d2c20617267735d2c20656e763d656e762c20737464696e3d73756270726f636573732e504950452c207374646f75743d322c20636c6f73655f6664733d46616c7365290a70322e737464696e2e636c6f736528290a0a2373312e636c6f736528290a2373322e636c6f736528290a0a646f6e65203d2046616c73650a0a636c617373205761697454687265616428746872656164696e672e546872656164293a0a202020206465662072756e2873656c66293a0a202020202020202070312e7761697428290a20202020202020206966206e6f7420646f6e653a2070322e6b696c6c28290a0a746872656164203d205761697454687265616428290a7468726561642e737461727428290a0a70322e7761697428290a646f6e65203d20547275650a70312e6b696c6c28290a'))" |
@@ -67,3 +67,3 @@ # cp-remote [![Build Status](https://github.com/davedoesdev/cp-remote/actions/workflows/ci.yml/badge.svg)](https://github.com/davedoesdev/cp-remote/actions/workflows/ci.yml) [![Coverage Status](https://coveralls.io/repos/davedoesdev/cp-remote/badge.png?branch=master)](https://coveralls.io/r/davedoesdev/cp-remote?branch=master) [![NPM version](https://badge.fury.io/js/cp-remote.png)](http://badge.fury.io/js/cp-remote) | ||
- The SSH connection is told to start [`cp-remote.py`](cp-remote.py) on the remote host. | ||
- `cp-remote.py` calls [`socket.socketpair`](http://docs.python.org/2.7/library/socket.html#socket.socketpair) to create a pair of connected file descriptors (Unix domain sockets). | ||
- `cp-remote.py` calls [`socket.socketpair`](http://docs.python.org/3/library/socket.html#socket.socketpair) to create a pair of connected file descriptors (Unix domain sockets). | ||
- `cp-remote.py` starts `socat`, telling it to relay data between standard input (i.e. the SSH connection) and one of the connected file descriptors. | ||
@@ -70,0 +70,0 @@ - `cp-remote.py` sets `NODE_CHANNEL_FD` to the other connected file descriptor and starts `node`, telling it to [run](#runhost-module_path) the module you specified. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
95117
799
0
26