mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
chore(client) split variable declarations
This commit is contained in:
parent
f6ab3ffd39
commit
d0a486d7e7
7 changed files with 19 additions and 8 deletions
|
|
@ -628,7 +628,9 @@ function CmdProto() {
|
|||
* @param options = {active: true}
|
||||
*/
|
||||
this.getPanel = (options) => {
|
||||
let files, panel, isLeft;
|
||||
let files;
|
||||
let panel;
|
||||
let isLeft;
|
||||
let dataName = 'js-';
|
||||
|
||||
const current = DOM.getCurrentFile();
|
||||
|
|
@ -656,7 +658,7 @@ function CmdProto() {
|
|||
|
||||
if (!panel)
|
||||
throw Error('can not find Active Panel!');
|
||||
|
||||
|
||||
return panel;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,8 @@ module.exports = (name, options, callback = options) => {
|
|||
const isArray = itype.array(module.local);
|
||||
const version = module.version;
|
||||
|
||||
let remoteTmpls, local;
|
||||
let remoteTmpls;
|
||||
let local;
|
||||
if (isArray) {
|
||||
remoteTmpls = module.remote;
|
||||
local = module.local;
|
||||
|
|
|
|||
|
|
@ -33,7 +33,8 @@ module.exports.removeMatch = (string, callback) => {
|
|||
* записываем данные в него
|
||||
*/
|
||||
module.exports.set = (name, data, callback) => {
|
||||
let str, error;
|
||||
let str;
|
||||
let error;
|
||||
|
||||
if (itype.object(data))
|
||||
str = jonny.stringify(data);
|
||||
|
|
|
|||
|
|
@ -114,7 +114,10 @@ function KeyProto() {
|
|||
}
|
||||
|
||||
function switchKey(event) {
|
||||
let i, isSelected, prev, next;
|
||||
let i;
|
||||
let isSelected;
|
||||
let prev;
|
||||
let next;
|
||||
let current = Info.element;
|
||||
let dataName;
|
||||
|
||||
|
|
|
|||
|
|
@ -84,7 +84,8 @@ function getMenuNameByEl(el) {
|
|||
}
|
||||
|
||||
function getOptions(notFile) {
|
||||
let name, func;
|
||||
let name;
|
||||
let func;
|
||||
|
||||
if (notFile) {
|
||||
name = 'context';
|
||||
|
|
|
|||
|
|
@ -285,7 +285,8 @@ function deleteSilent(files = DOM.getActiveFiles()) {
|
|||
* @param operation
|
||||
*/
|
||||
function _processFiles(options, data) {
|
||||
let selFiles, files;
|
||||
let selFiles;
|
||||
let files;
|
||||
let panel;
|
||||
let shouldAsk;
|
||||
let sameName;
|
||||
|
|
|
|||
|
|
@ -43,7 +43,9 @@ const Info = DOM.CurrentInfo;
|
|||
const Key = CloudCmd.Key;
|
||||
const basename = (a) => a.split('/').pop();
|
||||
|
||||
let El, TemplateAudio, Overlay;
|
||||
let El;
|
||||
let TemplateAudio;
|
||||
let Overlay;
|
||||
|
||||
const Config = {
|
||||
beforeShow: (callback) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue