feature(config) rm option: cache

This commit is contained in:
coderaiser 2018-04-12 13:48:01 +03:00
parent 28892b3933
commit 58c10e201a
7 changed files with 2 additions and 23 deletions

View file

@ -96,7 +96,6 @@ Cloud Commander supports command line parameters:
| `--terminal-path` | set terminal path
| `--vim` | enable vim hot keys
| `--columns` | set visible columns
| `--cache` | enable cache
| `--no-server` | do not start server
| `--no-auth` | disable authorization
| `--no-online` | load scripts from local server
@ -116,7 +115,6 @@ Cloud Commander supports command line parameters:
| `--no-terminal` | disable terminal
| `--no-vim` | disable vim hot keys
| `--no-columns` | set visible default columns
| `--no-cache` | disable cache
If no parameters given Cloud Commander reads information from `~/.cloudcmd.json` and use
port from it (`8000` default). if port variables `PORT` or `VCAP_APP_PORT` isn't exist.
@ -136,7 +134,7 @@ re-install it:
npm install cloudcmd -g
```
Then start it again, clear cache of your browser and reload page.
Then start it again and reload the page.
Hot keys
---------------
@ -369,7 +367,6 @@ Here is description of options:
"dirStorage" : true, /* store directory listing */
"online" : true, /* load js files from cdn or local path */
"open" : false /* open web browser when server started */
"cache" : true, /* enable cache */
"onePanelMode" : false, /* show one file panel (deprecated) */
"oneFilePanel" : false, /* show one file panel */
"keysPanel" : true, /* show classic panel with buttons of keys */
@ -416,7 +413,6 @@ Some config options can be overridden with `environment variables` such:
- `CLOUDCMD_VIM` - enable vim hot keys
- `CLOUDCMD_CONFIRM_COPY` - confirm copy
- `CLOUDCMD_CONFIRM_MOVE` - confirm move
- `CLOUDCMD_CACHE` - enable cache
Menu
---------------

View file

@ -121,11 +121,6 @@
"description": "confirm move",
"value": "true",
"required": false
},
"CLOUDCMD_CACHE": {
"description": "enable cache",
"value": "true",
"required": false
}
}
}

View file

@ -36,7 +36,6 @@ const args = require('minimist')(argv.slice(2), {
],
boolean: [
'auth',
'cache',
'repl',
'save',
'server',
@ -61,7 +60,6 @@ const args = require('minimist')(argv.slice(2), {
server : true,
name : choose(env('name'), config('name')),
auth : choose(env('auth'), config('auth')),
cache : choose(env.bool('cache'), config('cache')),
port : config('port'),
online : config('online'),
open : config('open'),
@ -120,7 +118,6 @@ function main() {
config('name', args.name);
config('auth', args.auth);
config('cache', args.cache);
config('online', args.online);
config('open', args.open);
config('username', args.username);

View file

@ -12,7 +12,6 @@
"dirStorage": false,
"online": true,
"open": false,
"cache": true,
"keysPanel": true,
"port": 8000,
"ip": null,

View file

@ -53,7 +53,6 @@ programs in browser from any computer, mobile or tablet device.
--terminal-path set terminal path
--vim enable vim hot keys
--columns set visible columns
--cache enable cache
--no-auth disable authorization
--no-server do not start server
--no-online load scripts from local server
@ -72,7 +71,6 @@ programs in browser from any computer, mobile or tablet device.
--no-terminal disable terminal
--no-vim disable vim hot keys
--no-columns set visible default columns
--no-cache disable cache
.SH RESOURCES AND DOCUMENTATION

View file

@ -161,7 +161,7 @@ function listen(prefix, socket) {
function cloudcmd(prefix, plugins, modules) {
const online = apart(config, 'online');
const cache = apart(config, 'cache');
const cache = false;
const diff = apart(config, 'diff');
const zip = apart(config, 'zip');
const dir = DIR_ROOT;

View file

@ -90,12 +90,6 @@
<option {{ zip-selected }}>zip</option>
</select>
</li>
<li>
<label>
<input data-name="js-cache" type="checkbox" {{ cache }} >
Cache
</label>
</li>
<li>
<label>
<input data-name="js-onePanelMode" type="checkbox" {{ onePanelMode }}>