mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
41 lines
736 B
JavaScript
41 lines
736 B
JavaScript
export const getDOM = () => {
|
|
const prompt = Promise.resolve.bind(Promise);
|
|
const CurrentInfo = {
|
|
element: {},
|
|
files: [],
|
|
};
|
|
|
|
const noop = () => {};
|
|
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,
|
|
};
|
|
};
|
|
|
|
export const getCloudCmd = () => {
|
|
const show = () => {};
|
|
|
|
return {
|
|
Operation: {
|
|
show,
|
|
},
|
|
};
|
|
};
|
|
|