mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 08:54:10 +00:00
chore(cloudcmd) lint
This commit is contained in:
parent
d473a7e187
commit
794caced01
15 changed files with 42 additions and 35 deletions
|
|
@ -352,7 +352,7 @@ function CloudCmdProto(DOM) {
|
|||
const {noCurrent} = options;
|
||||
|
||||
if (!isRefresh && json)
|
||||
return createFileTable(json, panel, options, callback);
|
||||
return await createFileTable(json, panel, options, callback);
|
||||
|
||||
const position = DOM.getPanelPosition(panel);
|
||||
const sort = CloudCmd.sort[position];
|
||||
|
|
@ -403,7 +403,7 @@ function CloudCmdProto(DOM) {
|
|||
* @param history
|
||||
* @param callback
|
||||
*/
|
||||
async function createFileTable(json, panelParam, options) {
|
||||
async function createFileTable(data, panelParam, options) {
|
||||
const {
|
||||
history,
|
||||
noCurrent,
|
||||
|
|
@ -413,7 +413,7 @@ function CloudCmdProto(DOM) {
|
|||
|
||||
const [
|
||||
error,
|
||||
[templFile, templPath, templLink, templPathLink],
|
||||
[file, path, link, pathLink],
|
||||
] = await tryToCatch(Files.get, names);
|
||||
|
||||
if (error)
|
||||
|
|
@ -436,14 +436,14 @@ function CloudCmdProto(DOM) {
|
|||
panel.innerHTML = buildFromJSON({
|
||||
sort : options.sort,
|
||||
order : options.order,
|
||||
data : json,
|
||||
data,
|
||||
id : panel.id,
|
||||
prefix,
|
||||
template : {
|
||||
file : templFile,
|
||||
path : templPath,
|
||||
pathLink : templPathLink,
|
||||
link : templLink,
|
||||
file,
|
||||
path,
|
||||
pathLink,
|
||||
link,
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue