1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-10 19:34:34 +00:00

fix(root-package.json): lint:fix command fixed in root package json

This commit is contained in:
2021-10-25 06:31:04 +00:00
parent 0fb4301966
commit ec6333f6aa
4 changed files with 19 additions and 14 deletions

View File

@@ -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": "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:fix": "npm run lint-api-fix && npm run lint-web-fix"
"lint:fix": "npm run lint-api:fix && npm run lint-web:fix"
},
"devDependencies": {
"prettier": "^2.3.1"

View File

@@ -25,9 +25,11 @@ const Main = (props: any) => {
.get(`/SASjsApi/files?filePath=${props.selectedFilePath}`)
.then((res: any) => {
setFileContent(res.data.fileContent)
}).catch((err) => {
})
.catch((err) => {
console.log(err)
}).finally(() => {
})
.finally(() => {
setIsLoading(false)
})
}
@@ -46,9 +48,11 @@ const Main = (props: any) => {
})
.then((res) => {
setEditMode(false)
}).catch((err) => {
})
.catch((err) => {
console.log(err)
}).finally(() => {
})
.finally(() => {
setIsLoading(false)
})
}

View File

@@ -44,13 +44,16 @@ const SideBar = (props: any) => {
const [directoryData, setDirectoryData] = useState<TreeNode | null>(null)
useEffect(() => {
axios.get(`/SASjsApi/executor`).then((res: any) => {
if (res.data && res.data?.status === 'success') {
setDirectoryData(res.data.tree)
}
}).catch((err) => {
console.log(err)
})
axios
.get(`/SASjsApi/executor`)
.then((res: any) => {
if (res.data && res.data?.status === 'success') {
setDirectoryData(res.data.tree)
}
})
.catch((err) => {
console.log(err)
})
const queryParams = new URLSearchParams(location.search)
props.setSelectedFilePath(queryParams.get('filePath'))
}, [])

View File

@@ -3,11 +3,9 @@ import ReactDOM from 'react-dom'
import './index.css'
import App from './App'
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
)