mirror of
https://github.com/sasjs/server.git
synced 2025-12-11 03:34:35 +00:00
fix(root-package.json): lint:fix command fixed in root package json
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
"lint-web:fix": "npx prettier --write \"web/src/**/*.{ts,tsx,js,jsx,html,css,sass,less,yml,md,graphql}\"",
|
"lint-web:fix": "npx prettier --write \"web/src/**/*.{ts,tsx,js,jsx,html,css,sass,less,yml,md,graphql}\"",
|
||||||
"lint-web": "npx prettier --check \"web/src/**/*.{ts,tsx,js,jsx,html,css,sass,less,yml,md,graphql}\"",
|
"lint-web": "npx prettier --check \"web/src/**/*.{ts,tsx,js,jsx,html,css,sass,less,yml,md,graphql}\"",
|
||||||
"lint": "npm run lint-api && npm run lint-web",
|
"lint": "npm run lint-api && npm run lint-web",
|
||||||
"lint:fix": "npm run lint-api-fix && npm run lint-web-fix"
|
"lint:fix": "npm run lint-api:fix && npm run lint-web:fix"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"prettier": "^2.3.1"
|
"prettier": "^2.3.1"
|
||||||
|
|||||||
@@ -25,9 +25,11 @@ const Main = (props: any) => {
|
|||||||
.get(`/SASjsApi/files?filePath=${props.selectedFilePath}`)
|
.get(`/SASjsApi/files?filePath=${props.selectedFilePath}`)
|
||||||
.then((res: any) => {
|
.then((res: any) => {
|
||||||
setFileContent(res.data.fileContent)
|
setFileContent(res.data.fileContent)
|
||||||
}).catch((err) => {
|
})
|
||||||
|
.catch((err) => {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
}).finally(() => {
|
})
|
||||||
|
.finally(() => {
|
||||||
setIsLoading(false)
|
setIsLoading(false)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -46,9 +48,11 @@ const Main = (props: any) => {
|
|||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
setEditMode(false)
|
setEditMode(false)
|
||||||
}).catch((err) => {
|
})
|
||||||
|
.catch((err) => {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
}).finally(() => {
|
})
|
||||||
|
.finally(() => {
|
||||||
setIsLoading(false)
|
setIsLoading(false)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,13 +44,16 @@ const SideBar = (props: any) => {
|
|||||||
const [directoryData, setDirectoryData] = useState<TreeNode | null>(null)
|
const [directoryData, setDirectoryData] = useState<TreeNode | null>(null)
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
axios.get(`/SASjsApi/executor`).then((res: any) => {
|
axios
|
||||||
if (res.data && res.data?.status === 'success') {
|
.get(`/SASjsApi/executor`)
|
||||||
setDirectoryData(res.data.tree)
|
.then((res: any) => {
|
||||||
}
|
if (res.data && res.data?.status === 'success') {
|
||||||
}).catch((err) => {
|
setDirectoryData(res.data.tree)
|
||||||
console.log(err)
|
}
|
||||||
})
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log(err)
|
||||||
|
})
|
||||||
const queryParams = new URLSearchParams(location.search)
|
const queryParams = new URLSearchParams(location.search)
|
||||||
props.setSelectedFilePath(queryParams.get('filePath'))
|
props.setSelectedFilePath(queryParams.get('filePath'))
|
||||||
}, [])
|
}, [])
|
||||||
|
|||||||
@@ -3,11 +3,9 @@ import ReactDOM from 'react-dom'
|
|||||||
import './index.css'
|
import './index.css'
|
||||||
import App from './App'
|
import App from './App'
|
||||||
|
|
||||||
|
|
||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
<React.StrictMode>
|
<React.StrictMode>
|
||||||
<App />
|
<App />
|
||||||
</React.StrictMode>,
|
</React.StrictMode>,
|
||||||
document.getElementById('root')
|
document.getElementById('root')
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user