-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added history page and routing, deploying to chrome store
- Loading branch information
1 parent
52bbb86
commit 5537c04
Showing
32 changed files
with
354 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,33 @@ | ||
>Nova Poshta track extension - расширение для браузера, позволяет отслеживать посылки в сети доставки новая почта. Доступно в Chrome/Firefox. | ||
Создано на фреймворке React. | ||
Chrome - https://chrome.google.com/webstore/detail/novaposhta-tracking/dlkjflpmejaehpobbokpgofkbfkojpea?hl=ru&authuser=0 | ||
|
||
##### nova poshta track extension: | ||
 | ||
|
||
##### main: | ||
 | ||
##### package info: | ||
 | ||
|
||
##### package info additional: | ||
 | ||
|
||
##### history: | ||
 | ||
|
||
##### errr: | ||
 | ||
|
||
##### validation: | ||
 | ||
##### todo: | ||
|
||
- [x] - добавить фетч детальной инфы по номеру телефона (24.04.2021) :white_check_mark: | ||
- [x] - сделать локализации интерфейса (06.05.2021) :white_check_mark: | ||
- [x] - сделать валидацию инпутов (04.05.2021) :white_check_mark: | ||
- [x] - записывать трек номера из поиска в локал сторейдж и показывать их внизу поп-апа, сделать кликабельными (05.05.2021) :white_check_mark: | ||
- [ ] - сделать страницу истории через табсы или роутер туда автоматически добавлять информацию по | ||
каждой найденной посылке(маршрут, адрес доставки и т.д) | ||
- [x] - сделать страницу истории через табсы или роутер туда автоматически добавлять информацию по | ||
каждой найденной посылке(маршрут, адрес доставки и т.д) (14.05.2021) :white_check_mark: | ||
- [ ] - перенести все на тайпскрипт | ||
- [ ] - сделать какой нибудь спиннер |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extName": { | ||
"message": "NovaPoshta tracking", | ||
"description": "" | ||
}, | ||
"appDesc": { | ||
"message": "Track your novaposhta packages" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extName": { | ||
"message": "Новая Почта трекинг", | ||
"description": "Расширение для отслеживания посылок новой почты" | ||
}, | ||
"appDesc": { | ||
"message": "Отследите ваши отправления Новой Пошты" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extName": { | ||
"message": "Нова Пошта трекінг", | ||
"description": "Доповнення для трекінгу відправлень нової пошти" | ||
}, | ||
"appDesc": { | ||
"message": "Відслідкуйте ваші відправлення Нової Пошти" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,18 @@ | ||
{ | ||
"manifest_version": 2, | ||
"version": "0.0.1", | ||
"short_name": "React App", | ||
"name": "Create React App Sample", | ||
"description": "Sample application showing how to create an extension with Create React App", | ||
"version": "0.1.7", | ||
"short_name": "Nova Poshta Track", | ||
"name": "__MSG_extName__", | ||
"description": "__MSG_appDesc__", | ||
"default_locale": "ru", | ||
"browser_action": { | ||
"default_title": "CRE", | ||
"default_title": "nova poshta", | ||
"default_popup": "popup.html" | ||
}, | ||
"background": { | ||
"scripts": ["background.bundle.js"] | ||
}, | ||
"content_scripts": [ | ||
{ | ||
"matches": ["<all_urls>"], | ||
"js": ["contentScript.bundle.js"] | ||
} | ||
], | ||
"icons": { | ||
"16": "img/icon-16.png", | ||
"48": "img/icon-48.png", | ||
"128": "img/icon-128.png" | ||
}, | ||
"permissions": ["activeTab"], | ||
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
.header-wrap { | ||
margin-bottom: 13px; | ||
} | ||
.header-wrap h3 { | ||
font-size: 0.90rem; | ||
text-align: center; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import React from 'react'; | ||
import { useDispatch } from 'react-redux'; | ||
import { Table } from 'react-bootstrap'; | ||
import { useHistory } from 'react-router-dom'; | ||
import { useTranslation } from 'react-i18next'; | ||
import { fetchPackageInfo } from '../../redux/packages/packages.actions'; | ||
import './history_table.styles.css'; | ||
|
||
const HistoryTable = ({ packages }) => { | ||
const dispatch = useDispatch(); | ||
const history = useHistory(); | ||
const { t } = useTranslation(); | ||
|
||
const handleClick = (tnn) => { | ||
dispatch(fetchPackageInfo(tnn)); | ||
history.push('/'); | ||
}; | ||
return ( | ||
<Table striped bordered variant="dark" hover size="sm" className="history-table"> | ||
<thead> | ||
<tr> | ||
<th>{t('history_table.track')}#</th> | ||
<th>{t('history_table.route')}</th> | ||
<th>{t('history_table.status')}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{packages.map((pack) => ( | ||
<tr key={pack.Number}> | ||
<td> | ||
<span | ||
className="history-table-number" | ||
href="#" | ||
onClick={() => handleClick(pack.Number)} | ||
> | ||
{pack.Number} | ||
</span> | ||
</td> | ||
<td> | ||
{pack.WarehouseSender} - {pack.WarehouseRecipient} | ||
</td> | ||
<td>{pack.Status}</td> | ||
</tr> | ||
))} | ||
</tbody> | ||
</Table> | ||
); | ||
}; | ||
|
||
export default HistoryTable; |
Oops, something went wrong.