Skip to content

Commit 47be2e2

Browse files
author
Gabriel Deggau
committed
tradução para pt-br
1 parent ee2f2ff commit 47be2e2

File tree

13 files changed

+68
-18
lines changed

13 files changed

+68
-18
lines changed
File renamed without changes.

frontend/debug.log

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[1214/214516.659:ERROR:directory_reader_win.cc(43)] FindFirstFile: O sistema n�o pode encontrar o caminho especificado. (0x3)

frontend/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"history": "4.10.1",
2222
"immer": "^7.0.7",
2323
"jsbarcode": "^3.11.3",
24+
"localtunnel": "^2.0.0",
2425
"polished": "^3.6.5",
2526
"prop-types": "^15.7.2",
2627
"react": "^16.13.1",

frontend/src/pages/Address/New/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function AddressNew({ match }) {
106106
})
107107
.catch(() => {
108108
setNullToFields();
109-
toast.error('Was note possible find the ZIP Code informed!');
109+
toast.error('Não foi possível encontrar o CEP informado!');
110110
});
111111
} else {
112112
setNullToFields();
@@ -139,7 +139,7 @@ function AddressNew({ match }) {
139139
await api.post('/adresses/user', values);
140140
}
141141

142-
toast.success('Address saved!', {
142+
toast.success('Endereço salvo com sucesso!', {
143143
autoClose: 5000,
144144
});
145145

frontend/src/pages/Catalog/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function Catalog() {
8080

8181
const { order_number } = response.data;
8282

83-
toast.success(`Your order ${order_number} is waiting to be delivered!`, {
83+
toast.success(`Seu pedido ${order_number} está aguardando a entrega!`, {
8484
autoClose: 5000,
8585
});
8686
} catch (err) {

frontend/src/pages/Monitoring/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,7 @@ function Monitoring() {
503503
/>
504504
{renderRouteFromSelectedCargo()}
505505
{renderSelectCargoOnMap()}
506+
{renderOrdersFromSelectedCargo()}
506507
{/* {renderCargosLocations()} */}
507508
{popoverCargoOpen && (
508509
<Popup
@@ -518,7 +519,6 @@ function Monitoring() {
518519
<PopupCargo cargo={selectedCargo} />
519520
</Popup>
520521
)}
521-
{renderOrdersFromSelectedCargo()}
522522
{popoverOrderOpen && (
523523
<Popup
524524
latitude={parseFloat(selectedOrder.delivery_adress.latitude)}

frontend/src/pages/Product/New/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function ProductNew() {
2424
try {
2525
await api.post('/products', values);
2626

27-
toast.success(`New product created!`, {
27+
toast.success(`Produto cadastrado com sucesso!`, {
2828
autoClose: 5000,
2929
});
3030

frontend/src/pages/SignUp/index.js

+4-7
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,13 @@ export default function SignUp() {
5858
dispatch(
5959
signUpRequest(name, last_name, telephone, email, password)
6060
);
61-
toast.success(
62-
`Welcome ${name}! Please, login below with your credentials!`,
63-
{
64-
autoClose: 5000,
65-
}
66-
);
61+
toast.success(`Bem vindo ${name}!`, {
62+
autoClose: 5000,
63+
});
6764
} catch (err) {
6865
// const errorMessage = err.response.data.error;
6966
// console.log(errorMessage);
70-
toast.error('An error has occurred, please contact system admin!', {
67+
toast.error('Ocorreu um erro, favor contatar o administrador!', {
7168
autoClose: 5000,
7269
});
7370
}

frontend/src/pages/User/New/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function UserNew() {
4646
payload.password = password;
4747
await api.post('/users', payload);
4848

49-
toast.success(`New ${values.role} created!`, {
49+
toast.success(`Novo ${values.role} cadastrado!`, {
5050
autoClose: 5000,
5151
});
5252

frontend/src/pages/Vehicle/New/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function VehicleNew() {
7373
try {
7474
await api.post('/vehicles', values);
7575

76-
toast.success(`New vehicle created!`, {
76+
toast.success(`Veículo cadastrado!`, {
7777
autoClose: 5000,
7878
});
7979

frontend/src/store/modules/auth/sagas.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function* signIn({ payload }) {
2929
if (user.adresses.length === 0) history.push('/adresses/new');
3030
else history.push('/catalog');
3131
} catch (err) {
32-
toast.error('E-mail or password is wrong!');
32+
toast.error('E-mail e/ou senha estão errados!');
3333
yield put(signFailure());
3434
}
3535
}

frontend/src/store/modules/user/sagas.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ export function* updateProfile({ payload }) {
2929

3030
const response = yield call(api.put, 'users', profile);
3131

32-
toast.success('Profile updated successfully!');
32+
toast.success('Perfil atualizado!');
3333

3434
yield put(updateProfileSuccess(response.data));
3535
} catch (err) {
36-
toast.error('Error when try update profile, please check your data!');
36+
toast.error('Ocorreu um erro ao atualizar o perfil, verifique seus dados!');
3737
yield put(updateProfileFailure());
3838
}
3939
}

frontend/yarn.lock

+52-1
Original file line numberDiff line numberDiff line change
@@ -2602,6 +2602,14 @@ axe-core@^3.5.4:
26022602
resolved "https://registry.npmjs.org/axe-core/-/axe-core-3.5.5.tgz#84315073b53fa3c0c51676c588d59da09a192227"
26032603
integrity sha512-5P0QZ6J5xGikH780pghEdbEKijCTrruK9KxtPZCFWUpef0f6GipO+xEZ5GKCb020mmqgbiNO6TcA55CriL784Q==
26042604

2605+
axios@0.19.0:
2606+
version "0.19.0"
2607+
resolved "https://registry.yarnpkg.com/axios/-/axios-0.19.0.tgz#8e09bff3d9122e133f7b8101c8fbdd00ed3d2ab8"
2608+
integrity sha512-1uvKqKQta3KBxIz14F2v06AEHZ/dIoeKfbTRkK1E5oqjDnuEerLmYTgJB5AiQZHJcljpg1TuRzdjDR06qNk0DQ==
2609+
dependencies:
2610+
follow-redirects "1.5.10"
2611+
is-buffer "^2.0.2"
2612+
26052613
axios@^0.19.2:
26062614
version "0.19.2"
26072615
resolved "https://registry.npmjs.org/axios/-/axios-0.19.2.tgz#3ea36c5d8818d0d5f8a8a97a6d36b86cdc00cb27"
@@ -4144,6 +4152,13 @@ debug@2.6.9, debug@^2.2.0, debug@^2.3.3, debug@^2.6.0, debug@^2.6.9:
41444152
dependencies:
41454153
ms "2.0.0"
41464154

4155+
debug@4.1.1:
4156+
version "4.1.1"
4157+
resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791"
4158+
integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==
4159+
dependencies:
4160+
ms "^2.1.1"
4161+
41474162
debug@=3.1.0:
41484163
version "3.1.0"
41494164
resolved "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261"
@@ -6469,6 +6484,11 @@ is-buffer@^1.0.2, is-buffer@^1.1.5:
64696484
resolved "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be"
64706485
integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==
64716486

6487+
is-buffer@^2.0.2:
6488+
version "2.0.5"
6489+
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.5.tgz#ebc252e400d22ff8d77fa09888821a24a658c191"
6490+
integrity sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==
6491+
64726492
is-callable@^1.1.4, is-callable@^1.2.2:
64736493
version "1.2.2"
64746494
resolved "https://registry.npmjs.org/is-callable/-/is-callable-1.2.2.tgz#c7c6715cd22d4ddb48d3e19970223aceabb080d9"
@@ -7583,6 +7603,16 @@ loader-utils@^1.1.0, loader-utils@^1.2.3, loader-utils@^1.4.0:
75837603
emojis-list "^3.0.0"
75847604
json5 "^1.0.1"
75857605

7606+
localtunnel@^2.0.0:
7607+
version "2.0.0"
7608+
resolved "https://registry.yarnpkg.com/localtunnel/-/localtunnel-2.0.0.tgz#2ea71174fa80e34cce91b2a7ce416e6a57d9ff7c"
7609+
integrity sha512-g6E0aLgYYDvQDxIjIXkgJo2+pHj3sGg4Wz/XP3h2KtZnRsWPbOQY+hw1H8Z91jep998fkcVE9l+kghO+97vllg==
7610+
dependencies:
7611+
axios "0.19.0"
7612+
debug "4.1.1"
7613+
openurl "1.1.1"
7614+
yargs "13.3.0"
7615+
75867616
locate-path@^2.0.0:
75877617
version "2.0.0"
75887618
resolved "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e"
@@ -8492,6 +8522,11 @@ open@^7.0.2:
84928522
is-docker "^2.0.0"
84938523
is-wsl "^2.1.1"
84948524

8525+
openurl@1.1.1:
8526+
version "1.1.1"
8527+
resolved "https://registry.yarnpkg.com/openurl/-/openurl-1.1.1.tgz#3875b4b0ef7a52c156f0db41d4609dbb0f94b387"
8528+
integrity sha1-OHW0sO96UsFW8NtB1GCduw+Us4c=
8529+
84958530
opn@^5.5.0:
84968531
version "5.5.0"
84978532
resolved "https://registry.npmjs.org/opn/-/opn-5.5.0.tgz#fc7164fab56d235904c51c3b27da6758ca3b9bfc"
@@ -12822,7 +12857,7 @@ yargs-parser@^11.1.1:
1282212857
camelcase "^5.0.0"
1282312858
decamelize "^1.2.0"
1282412859

12825-
yargs-parser@^13.1.2:
12860+
yargs-parser@^13.1.1, yargs-parser@^13.1.2:
1282612861
version "13.1.2"
1282712862
resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz#130f09702ebaeef2650d54ce6e3e5706f7a4fb38"
1282812863
integrity sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==
@@ -12856,6 +12891,22 @@ yargs@12.0.5:
1285612891
y18n "^3.2.1 || ^4.0.0"
1285712892
yargs-parser "^11.1.1"
1285812893

12894+
yargs@13.3.0:
12895+
version "13.3.0"
12896+
resolved "https://registry.yarnpkg.com/yargs/-/yargs-13.3.0.tgz#4c657a55e07e5f2cf947f8a366567c04a0dedc83"
12897+
integrity sha512-2eehun/8ALW8TLoIl7MVaRUrg+yCnenu8B4kBlRxj3GJGDKU1Og7sMXPNm1BYyM1DOJmTZ4YeN/Nwxv+8XJsUA==
12898+
dependencies:
12899+
cliui "^5.0.0"
12900+
find-up "^3.0.0"
12901+
get-caller-file "^2.0.1"
12902+
require-directory "^2.1.1"
12903+
require-main-filename "^2.0.0"
12904+
set-blocking "^2.0.0"
12905+
string-width "^3.0.0"
12906+
which-module "^2.0.0"
12907+
y18n "^4.0.0"
12908+
yargs-parser "^13.1.1"
12909+
1285912910
yargs@^13.3.0:
1286012911
version "13.3.2"
1286112912
resolved "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz#ad7ffefec1aa59565ac915f82dccb38a9c31a2dd"

0 commit comments

Comments
 (0)