mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
48 lines
866 B
JavaScript
48 lines
866 B
JavaScript
'use strict';
|
|
|
|
const noop = () => {};
|
|
|
|
module.exports.getDOM = () => {
|
|
const prompt = Promise.resolve.bind(Promise);
|
|
const CurrentInfo = {
|
|
element: {},
|
|
files: [],
|
|
};
|
|
|
|
const Buffer = {
|
|
copy: noop,
|
|
paste: noop,
|
|
};
|
|
|
|
const Dialog = {
|
|
prompt,
|
|
};
|
|
|
|
return {
|
|
Buffer,
|
|
CurrentInfo,
|
|
Dialog,
|
|
selectFile: noop,
|
|
unselectFile: noop,
|
|
unselectFiles: noop,
|
|
setCurrentFile: noop,
|
|
getCurrentName: noop,
|
|
setCurrentByName: noop,
|
|
toggleSelectedFile: noop,
|
|
prompNewDirectory: noop,
|
|
promptNewFile: noop,
|
|
};
|
|
};
|
|
|
|
module.exports.getCloudCmd = () => {
|
|
const show = () => {};
|
|
|
|
return {
|
|
Operation: {
|
|
show,
|
|
},
|
|
|
|
config: noop,
|
|
_config: noop,
|
|
};
|
|
};
|