chore(cloudcmd) lint

This commit is contained in:
coderaiser 2021-11-20 22:20:10 +02:00
parent 57390d541f
commit 0f17c11c04
8 changed files with 22 additions and 18 deletions

View file

@ -3,10 +3,9 @@ Thank you for reporting an issue. Please fill in the template below. If unsure
about something, just do as best as you're able.
-->
* **Version** (`cloudcmd -v`):
* **Node Version** `node -v`:
* **OS** (`uname -a` on Linux):
* **Browser name/version**:
* **Used Command Line Parameters**:
* **Changed Config**:
- **Version** (`cloudcmd -v`):
- **Node Version** `node -v`:
- **OS** (`uname -a` on Linux):
- **Browser name/version**:
- **Used Command Line Parameters**:
- **Changed Config**:

View file

@ -6,4 +6,3 @@ about something, just do as best as you're able.
- [ ] commit message named according to [Contributing Guide](https://github.com/coderaiser/cloudcmd/blob/master/CONTRIBUTING.md "Contributting Guide")
- [ ] `npm run codestyle` is OK
- [ ] `npm test` is OK

View file

@ -955,11 +955,13 @@ First, locate the command to run cloudcmd
```sh
which cloudcmd
```
take note of the result and create a systemd entry by executing
```sh
sudo nano /etc/systemd/system/cloudcmd.service
```
and use this template
```
@ -975,6 +977,7 @@ User = YOUR_USER
[Install]
WantedBy = multi-user.target
```
Don't forget to change the line for `ExecStart` and `User`
Save the changes and exit editor.
@ -998,6 +1001,7 @@ take note of the result and create a rc script
```
vi /usr/local/etc/rc.d/cloudcmd
```
and use this template
```
@ -1079,6 +1083,7 @@ There are a lot of ways to be involved in `Cloud Commander` development:
- if you know a language not currently translated, or would like to improve an existing translation, you can help with [site translations](https://github.com/coderaiser/cloudcmd/wiki "Cloud Commander community wiki");
## Version history
- *2021.02.03*, **[v15.6.0](//github.com/coderaiser/cloudcmd/releases/tag/v15.6.0)**
- *2021.02.02*, **[v15.5.2](//github.com/coderaiser/cloudcmd/releases/tag/v15.5.2)**
- *2021.01.31*, **[v15.5.1](//github.com/coderaiser/cloudcmd/releases/tag/v15.5.1)**

View file

@ -165,7 +165,6 @@ docker-compose up
More documentation you can find on https://cloudcmd.io/.
## Get involved
There is a lot ways to be involved in `Cloud Commander` development:

View file

@ -382,7 +382,12 @@ function CloudCmdProto(DOM) {
noCurrent,
} = options;
const names = ['file', 'path', 'link', 'pathLink'];
const names = [
'file',
'path',
'link',
'pathLink',
];
const [
error,

View file

@ -26,8 +26,7 @@ const {Buffer} = DOM;
const vim = require(pathVim);
test('cloudcmd: client: key: set next file: no', (t) => {
const element = {
};
const element = {};
const setCurrentFile = stub();
@ -358,8 +357,7 @@ test('cloudcmd: client: key: set first file current: ^', (t) => {
});
test('cloudcmd: client: key: visual', (t) => {
const element = {
};
const element = {};
const toggleSelectedFile = stub();
@ -374,8 +372,7 @@ test('cloudcmd: client: key: visual', (t) => {
});
test('cloudcmd: client: key: ESC', (t) => {
const element = {
};
const element = {};
const unselectFiles = stub();

View file

@ -301,7 +301,7 @@ test('cloudcmd: route: sendIndex: encode: not encoded', async (t) => {
});
test('cloudcmd: route: sendIndex: ddos: render', async (t) => {
const name = '$$$\'"';
const name = `$$$'"`;
const path = '/';
const files = [{
name,

View file

@ -55,7 +55,7 @@ test('cloudcmd: terminal: enabled: no string', (t) => {
console.log = originalLog;
const msg = 'cloudcmd --terminal: Cannot find module \'hello\'';
const msg = `cloudcmd --terminal: Cannot find module 'hello'`;
const [arg] = log.args[0];
t.match(arg, RegExp(msg), 'should call with msg');