mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
chore(cloudcmd) lint: no-multi-spaces
This commit is contained in:
parent
d3ecafe0ea
commit
62e2ca2a64
28 changed files with 78 additions and 72 deletions
|
|
@ -58,9 +58,9 @@ const config = {
|
|||
|
||||
const connectionWraped = wraptile(connection);
|
||||
|
||||
module.exports = manage;
|
||||
module.exports.save = save;
|
||||
module.exports.middle = middle;
|
||||
module.exports = manage;
|
||||
module.exports.save = save;
|
||||
module.exports.middle = middle;
|
||||
module.exports.subscribe = (fn) => {
|
||||
changeEmitter.on('change', fn);
|
||||
};
|
||||
|
|
@ -69,7 +69,7 @@ module.exports.unsubscribe = (fn) => {
|
|||
changeEmitter.removeListener('change', fn);
|
||||
};
|
||||
|
||||
module.exports.listen = (socket, auth) => {
|
||||
module.exports.listen = (socket, auth) => {
|
||||
check(socket, auth);
|
||||
|
||||
if (!manage('configDialog'))
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ module.exports = (request, response, next) => {
|
|||
|
||||
function rest(request, response) {
|
||||
const name = ponse.getPathName(request);
|
||||
const params = {
|
||||
const params = {
|
||||
request,
|
||||
response,
|
||||
name: name.replace(apiURL, '') || '/',
|
||||
|
|
@ -194,8 +194,8 @@ function onPUT(name, body, callback) {
|
|||
if (isRootAll([files.to, files.from]))
|
||||
return callback(getWin32RootMsg());
|
||||
|
||||
files.from = root(files.from);
|
||||
files.to = root(files.to);
|
||||
files.from = root(files.from);
|
||||
files.to = root(files.to);
|
||||
|
||||
copy(files.from, files.to, files.names, (error) => {
|
||||
const msg = formatMsg('copy', files.names);
|
||||
|
|
@ -262,8 +262,8 @@ function getPacker(operation) {
|
|||
|
||||
function operation(op, from, to, names, fn) {
|
||||
if (!fn) {
|
||||
fn = names;
|
||||
names = [
|
||||
fn = names;
|
||||
names = [
|
||||
path.basename(from),
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,11 +34,11 @@ const logger = tryRequire('morgan');
|
|||
|
||||
module.exports = async (options) => {
|
||||
const prefix = config('prefix');
|
||||
const port = process.env.PORT || /* c9 */
|
||||
const port = process.env.PORT || /* c9 */
|
||||
config('port');
|
||||
|
||||
const ip = process.env.IP || /* c9 */
|
||||
config('ip') ||
|
||||
const ip = process.env.IP || /* c9 */
|
||||
config('ip') ||
|
||||
'0.0.0.0';
|
||||
|
||||
const app = express();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue