1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-11 00:10:06 +00:00

chore: add content in home page

This commit is contained in:
2021-10-19 16:33:36 +00:00
parent cb8b34afac
commit cff5ba460d
4 changed files with 18 additions and 4 deletions

View File

@@ -59,7 +59,7 @@ router.get('/SASjsApi/files', async (req, res) => {
} else { } else {
res.status(400).send({ res.status(400).send({
status: 'failure', status: 'failure',
message: 'please provide valid file path' message: 'Invalid Request: Expected parameter filePath was not provided'
}) })
} }
}) })

View File

@@ -5,9 +5,20 @@ import Box from '@mui/material/Box'
const Home = () => { const Home = () => {
return ( return (
<Box sx={{ display: 'flex' }} className="main"> <Box className="main">
<CssBaseline /> <CssBaseline />
<h2>this is home component</h2> <h2>Welcome to SASjs Server!</h2>
<p>
This portal provides an interface for executing Stored Programs (drive)
and ad hoc code (studio) against a SAS executable. The source code is
available on <a href="https://github.com/sasjs/server"> github</a> and
contributions are welcomed.
</p>
<p>
SASjs Server is maintained by the SAS Apps team -{' '}
<a href="https://sasapps.io/contact-us"> contact us</a> if you'd like
help with SAS DevOps or SAS Application development!{' '}
</p>
</Box> </Box>
) )
} }

View File

@@ -5,7 +5,7 @@ import Box from '@mui/material/Box'
const SASjsStudio = () => { const SASjsStudio = () => {
return ( return (
<Box sx={{ display: 'flex' }} className="main"> <Box className="main">
<CssBaseline /> <CssBaseline />
<h2>This is container for SAS studio</h2> <h2>This is container for SAS studio</h2>
</Box> </Box>

View File

@@ -14,4 +14,7 @@ code {
.main { .main {
margin-top: 50px; margin-top: 50px;
display: flex;
flex-direction: column;
align-items: center;
} }