mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-21 02:29:23 +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
|
|
@ -8,7 +8,7 @@ const Events = require('../dom/events');
|
|||
|
||||
const {Key} = CloudCmd;
|
||||
|
||||
const ConfigView = {
|
||||
const ConfigView = {
|
||||
bindKeys: false,
|
||||
beforeClose: () => {
|
||||
Events.rmKey(listener);
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ const TITLE = 'Edit';
|
|||
let MSG_CHANGED;
|
||||
const isLoading = fullstore();
|
||||
|
||||
const ConfigView = {
|
||||
const ConfigView = {
|
||||
beforeClose: () => {
|
||||
exec.ifExist(Menu, 'hide');
|
||||
isChanged();
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -294,6 +294,8 @@ function _processFiles(options, data) {
|
|||
|
||||
let names = [];
|
||||
|
||||
/* eslint no-multi-spaces: 0 */
|
||||
|
||||
if (data) {
|
||||
from = data.from;
|
||||
to = data.to;
|
||||
|
|
|
|||
|
|
@ -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%' +
|
||||
'}',
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue