From 58c10e201a880f09192e8cd8aed85dd082ab128b Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 12 Apr 2018 13:48:01 +0300 Subject: [PATCH] feature(config) rm option: cache --- HELP.md | 6 +----- app.json | 5 ----- bin/cloudcmd.js | 3 --- json/config.json | 1 - man/cloudcmd.1 | 2 -- server/cloudcmd.js | 2 +- tmpl/config.hbs | 6 ------ 7 files changed, 2 insertions(+), 23 deletions(-) diff --git a/HELP.md b/HELP.md index f96ba27d..e3f4de55 100644 --- a/HELP.md +++ b/HELP.md @@ -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 --------------- diff --git a/app.json b/app.json index 9fe7b37d..20d51ad8 100644 --- a/app.json +++ b/app.json @@ -121,11 +121,6 @@ "description": "confirm move", "value": "true", "required": false - }, - "CLOUDCMD_CACHE": { - "description": "enable cache", - "value": "true", - "required": false } } } diff --git a/bin/cloudcmd.js b/bin/cloudcmd.js index df5f877b..8933e436 100755 --- a/bin/cloudcmd.js +++ b/bin/cloudcmd.js @@ -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); diff --git a/json/config.json b/json/config.json index 8e03e5e0..f5c4db6d 100644 --- a/json/config.json +++ b/json/config.json @@ -12,7 +12,6 @@ "dirStorage": false, "online": true, "open": false, - "cache": true, "keysPanel": true, "port": 8000, "ip": null, diff --git a/man/cloudcmd.1 b/man/cloudcmd.1 index 94c05dca..4a4dbca4 100644 --- a/man/cloudcmd.1 +++ b/man/cloudcmd.1 @@ -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 diff --git a/server/cloudcmd.js b/server/cloudcmd.js index b2b0f48f..ad4869d4 100644 --- a/server/cloudcmd.js +++ b/server/cloudcmd.js @@ -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; diff --git a/tmpl/config.hbs b/tmpl/config.hbs index feb74091..204e7607 100644 --- a/tmpl/config.hbs +++ b/tmpl/config.hbs @@ -90,12 +90,6 @@ -
  • - -