JenkinsFile

This commit is contained in:
Marco Santos
2024-09-27 18:40:30 +01:00
parent f88eb65384
commit ba1130b65a
9 changed files with 94 additions and 28 deletions

1
geradoresfe/.env Normal file
View File

@@ -0,0 +1 @@
REACT_APP_API_URL=http://localhost:5015/

View File

@@ -66,7 +66,7 @@ function ToggleCustomTheme({
);
}
function App() {
const [mode, setMode] = React.useState<PaletteMode>('light');
/*const [mode, setMode] = React.useState<PaletteMode>('light');
const [showCustomTheme, setShowCustomTheme] = React.useState(true);
const LPtheme = createTheme(getLPTheme(mode));
const defaultTheme = createTheme({ palette: { mode } });
@@ -77,7 +77,7 @@ function App() {
const toggleCustomTheme = () => {
setShowCustomTheme((prev) => !prev);
};
};*/
return (
<div className="App">
@@ -85,13 +85,12 @@ function App() {
<meta charSet="utf-8" />
<title>Geradores</title>
</Helmet>
<ThemeProvider theme={showCustomTheme ? LPtheme : defaultTheme}>
{ /*<ThemeProvider theme={showCustomTheme ? LPtheme : defaultTheme}></ThemeProvider>*/}
<div>
<CssBaseline />
<GeradorCC />
<Box sx={{ bgcolor: 'background.default' }}>
</Box>
</ThemeProvider>
</div>
</div>
);

View File

@@ -30,14 +30,6 @@ export default function GeradorNIF() {
return (
<Box
id="GeradorNIF"
sx={(theme) => ({
width: '100%',
backgroundImage:
theme.palette.mode === 'light'
? 'radial-gradient(ellipse 80% 50% at 50% -20%, hsl(210, 100%, 90%), transparent)'
: 'radial-gradient(ellipse 80% 50% at 50% -20%, hsl(210, 100%, 16%), transparent)',
backgroundRepeat: 'no-repeat',
})}
>
<Container
sx={{
@@ -56,9 +48,10 @@ export default function GeradorNIF() {
>
<Card sx={{ minWidth: 275 }}>
<CardContent>
<Typography sx={{ fontSize: 14 }} color="text.secondary" gutterBottom>
NIFC
<Typography variant='h4'>
NIF<Button size="small">copiar</Button>
</Typography>
<br />
<Typography sx={{ mb: 1.5 }} color="text.secondary">
{nif}
</Typography>
@@ -67,7 +60,6 @@ export default function GeradorNIF() {
<Button size="small" onClick={fetchNif}>Gerar</Button>
</CardActions>
</Card>
</Stack>
</Container>
</Box>