mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-17 16:38:18 +00:00
chore: cloudcmd: actions: lint ☘️
This commit is contained in:
parent
c7095e2570
commit
e68338a17b
3 changed files with 6 additions and 6 deletions
|
|
@ -77,7 +77,7 @@ const parseHrefAttribute = (prefix, attribute) => {
|
|||
export const _parseHrefAttribute = parseHrefAttribute;
|
||||
|
||||
/**
|
||||
* get current direcotory path
|
||||
* get current directory path
|
||||
*/
|
||||
export const getCurrentDirPath = (panel = DOM.getPanel()) => {
|
||||
const path = DOM.getByDataName('js-path', panel);
|
||||
|
|
@ -98,7 +98,7 @@ export const getCurrentPath = (currentFile) => {
|
|||
};
|
||||
|
||||
/**
|
||||
* get current direcotory name
|
||||
* get current directory name
|
||||
*/
|
||||
export const getCurrentDirName = () => {
|
||||
const href = DOM
|
||||
|
|
@ -111,7 +111,7 @@ export const getCurrentDirName = () => {
|
|||
};
|
||||
|
||||
/**
|
||||
* get current direcotory path
|
||||
* get current directory path
|
||||
*/
|
||||
export const getParentDirPath = (panel) => {
|
||||
const path = DOM.getCurrentDirPath(panel);
|
||||
|
|
@ -125,7 +125,7 @@ export const getParentDirPath = (panel) => {
|
|||
};
|
||||
|
||||
/**
|
||||
* get not current direcotory path
|
||||
* get not current directory path
|
||||
*/
|
||||
export const getNotCurrentDirPath = () => {
|
||||
const panel = DOM.getPanel({
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ export const getExt = (name) => {
|
|||
};
|
||||
|
||||
/**
|
||||
* find object by name in arrray
|
||||
* find object by name in array
|
||||
*
|
||||
* @param array
|
||||
* @param name
|
||||
|
|
|
|||
|
|
@ -316,7 +316,7 @@ function getDOM() {
|
|||
const CurrentInfo = {
|
||||
dirPath: '/',
|
||||
files: [],
|
||||
filesPasive: [],
|
||||
filesPassive: [],
|
||||
panel: create(),
|
||||
panelPassive: create(),
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue