chore(cloudcmd) lint: no-multi-spaces

This commit is contained in:
coderaiser 2019-02-08 15:47:05 +02:00
parent d3ecafe0ea
commit 62e2ca2a64
28 changed files with 78 additions and 72 deletions

View file

@ -8,7 +8,7 @@ const Events = require('../dom/events');
const {Key} = CloudCmd;
const ConfigView = {
const ConfigView = {
bindKeys: false,
beforeClose: () => {
Events.rmKey(listener);

View file

@ -25,7 +25,7 @@ const TITLE = 'Edit';
let MSG_CHANGED;
const isLoading = fullstore();
const ConfigView = {
const ConfigView = {
beforeClose: () => {
exec.ifExist(Menu, 'hide');
isChanged();

View file

@ -7,7 +7,7 @@ CloudCmd.EditNamesVim = exports;
const Events = require('../dom/events');
const {Key} = CloudCmd;
const ConfigView = {
const ConfigView = {
bindKeys: false,
beforeClose: () => {
Events.rmKey(listener);

View file

@ -21,7 +21,7 @@ const rename = currify(_rename);
let Menu;
const EditNames = exec.bind();
const ConfigView = {
const ConfigView = {
beforeClose: () => {
exec.ifExist(Menu, 'hide');
DOM.Events.remove('keydown', keyListener);

View file

@ -39,8 +39,8 @@ module.exports.init = async () => {
function create() {
const element = createElement('div', {
style:
'width : 100%;' +
'height : 100%;' +
'width : 100%;' +
'height : 100%;' +
'font-family: "Droid Sans Mono";',
notAppend: true,
});

View file

@ -94,10 +94,10 @@ function getOptions(notFile) {
let func;
if (notFile) {
name = 'context';
func = Key.unsetBind;
name = 'context';
func = Key.unsetBind;
} else {
name = 'contextFile';
name = 'contextFile';
}
const options = {
@ -244,7 +244,7 @@ function uploadFromCloud() {
CloudCmd.execFromModule('Cloud', 'saveFile', (currentName, data) => {
const path = DOM.getCurrentDirPath() + currentName;
RESTful.write(path, data, (error) => {
RESTful.write(path, data, (error) => {
if (error)
return;

View file

@ -294,6 +294,8 @@ function _processFiles(options, data) {
let names = [];
/* eslint no-multi-spaces: 0 */
if (data) {
from = data.from;
to = data.to;

View file

@ -43,9 +43,9 @@ function show() {
createElement('style', {
dataName: 'upload-css',
innerText: '[data-name=js-upload-file-button] {' +
`font-family: ${fontFamily};` +
'font-size: 20px;' +
'width: 97%' +
`font-family: ${fontFamily};` +
'font-size: 20px;' +
'width: 97%' +
'}',
});
}

View file

@ -267,10 +267,10 @@ function getMediaElement(src, callback) {
return alert(error);
if (!TemplateAudio)
TemplateAudio = template;
TemplateAudio = template;
const is = isAudio(name);
const type = is ? 'audio' : 'video';
const type = is ? 'audio' : 'video';
const innerHTML = rendy(TemplateAudio, {
src,