Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
AngeloRai committed Jul 14, 2021
1 parent cca3bf2 commit 9509791
Show file tree
Hide file tree
Showing 28 changed files with 1,365 additions and 114 deletions.
350 changes: 350 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,17 @@
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3",
"axios": "^0.21.1",
"bootstrap": "^5.0.2",
"date-fns": "^2.22.1",
"formik": "^2.2.9",
"react": "^17.0.2",
"react-bootstrap": "^1.6.1",
"react-dom": "^17.0.2",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.3",
"web-vitals": "^1.1.2"
"web-vitals": "^1.1.2",
"yup": "^0.32.9"
},
"scripts": {
"start": "react-scripts start",
Expand Down
Binary file removed public/favicon.ico
Binary file not shown.
4 changes: 2 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />

<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
Expand All @@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>ActionSys</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
Binary file removed public/logo192.png
Binary file not shown.
Binary file removed public/logo512.png
Binary file not shown.
16 changes: 1 addition & 15 deletions public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,7 @@
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}

],
"start_url": ".",
"display": "standalone",
Expand Down
38 changes: 0 additions & 38 deletions src/App.css

This file was deleted.

25 changes: 0 additions & 25 deletions src/App.js

This file was deleted.

8 changes: 0 additions & 8 deletions src/App.test.js

This file was deleted.

15 changes: 15 additions & 0 deletions src/api/axios.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import axios from 'axios'

const apis = {
development: 'http://localhost:4000',
production: 'https://.herokuapp.com'
}

// Configura axios para receber url base automaticamente, evitando repetição nas requisições.
const api = axios.create({
baseURL: apis[process.env.NODE_ENV]
})


export default api

9 changes: 9 additions & 0 deletions src/components/App/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.App {
text-align: center;
}

.App-logo {
height: 40vmin;
pointer-events: none;
}

36 changes: 36 additions & 0 deletions src/components/App/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { BrowserRouter, Route, Switch } from "react-router-dom";

import './App.css';
import "bootstrap/dist/css/bootstrap.min.css";
import NavbarComponent from "../NavbarComponent/NavbarComponent"
import NovoFuncionario from "../NovoFuncionario/NovoFuncionario"
import AtualizarFuncionario from "../AtualizarFuncionario/AtualizarFuncionario"
import ListarFuncionarios from "../ListarFuncionarios/ListarFuncionarios"
import DeletarFuncionario from "../DeletarFuncionario"
import ListarUmFuncionario from "../ListarUmFuncioanrio/ListarUmFuncionario"


function App() {
return (
<div className="m-2">

<BrowserRouter >
<NavbarComponent/>
<Switch>
<div className="container">
<Route exact path="/" component={ListarFuncionarios} />
<Route exact path="/funcionario/adicionar" component={NovoFuncionario} />
<Route exact path="/funcionario/atualizar/:id" component={AtualizarFuncionario} />
<Route exact path="/funcionario/detalhes/:id" component={ListarUmFuncionario} />

<Route exact path="/funcionario/deletar/:id" component={DeletarFuncionario} />

</div>

</Switch>
</BrowserRouter>
</div>
);
}

export default App;
Loading

0 comments on commit 9509791

Please sign in to comment.