Compare commits
1 Commits
dependabot
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
c9337417ae |
7
app/Dockerfile
Normal file
7
app/Dockerfile
Normal file
@@ -0,0 +1,7 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM node:12-alpine
|
||||
RUN apk add --no-cache python g++ make
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN yarn install --production
|
||||
CMD ["node", "src/index.js"]
|
@@ -8,9 +8,10 @@
|
||||
<link rel="stylesheet" href="css/font-awesome/all.min.css" crossorigin="anonymous" />
|
||||
<link href="https://fonts.googleapis.com/css?family=Lato&display=swap" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="css/styles.css" />
|
||||
<title>Todo App</title>
|
||||
<title>Lista de compras</title>
|
||||
</head>
|
||||
<body>
|
||||
<center><h2>Lista de Compras</h2></center>
|
||||
<div id="root"></div>
|
||||
<script src="js/react.production.min.js"></script>
|
||||
<script src="js/react-dom.production.min.js"></script>
|
||||
|
@@ -53,7 +53,7 @@ function TodoListCard() {
|
||||
<React.Fragment>
|
||||
<AddItemForm onNewItem={onNewItem} />
|
||||
{items.length === 0 && (
|
||||
<p className="text-center">No items yet! Add one above!</p>
|
||||
<p className="text-center">Adicionar um item</p>
|
||||
)}
|
||||
{items.map(item => (
|
||||
<ItemDisplay
|
||||
@@ -96,7 +96,7 @@ function AddItemForm({ onNewItem }) {
|
||||
value={newItem}
|
||||
onChange={e => setNewItem(e.target.value)}
|
||||
type="text"
|
||||
placeholder="New Item"
|
||||
placeholder="Novo produto"
|
||||
aria-describedby="basic-addon1"
|
||||
/>
|
||||
<InputGroup.Append>
|
||||
@@ -106,7 +106,7 @@ function AddItemForm({ onNewItem }) {
|
||||
disabled={!newItem.length}
|
||||
className={submitting ? 'disabled' : ''}
|
||||
>
|
||||
{submitting ? 'Adding...' : 'Add Item'}
|
||||
{submitting ? 'Adding...' : 'OK'}
|
||||
</Button>
|
||||
</InputGroup.Append>
|
||||
</InputGroup>
|
||||
|
@@ -1672,9 +1672,9 @@ has@^1.0.1, has@^1.0.3:
|
||||
function-bind "^1.1.1"
|
||||
|
||||
hosted-git-info@^2.1.4:
|
||||
version "2.8.9"
|
||||
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9"
|
||||
integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==
|
||||
version "2.8.4"
|
||||
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.4.tgz#44119abaf4bc64692a16ace34700fed9c03e2546"
|
||||
integrity sha512-pzXIvANXEFrc5oFFXRMkbLPQ2rXRoDERwDLyrcUxGhaZhgP54BBSl9Oheh7Vv0T090cszWBxPjkQQ5Sq1PbBRQ==
|
||||
|
||||
html-encoding-sniffer@^1.0.2:
|
||||
version "1.0.2"
|
||||
|
Reference in New Issue
Block a user