-
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.
+ package_info.component; +extension icons
- Loading branch information
1 parent
6b94a9e
commit 0d92d4f
Showing
17 changed files
with
143 additions
and
91 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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"extends": [ | ||
"airbnb", | ||
"prettier" | ||
], | ||
"env": { | ||
"browser": true, | ||
"commonjs": true, | ||
"es6": true, | ||
"jest": true, | ||
"node": true | ||
}, | ||
"parser": "babel-eslint", | ||
"rules": { | ||
"consistent-return": "off", | ||
"jsx-a11y/href-no-hash": ["off"], | ||
"jsx-a11y/no-static-element-interactions": "off", | ||
"jsx-a11y/label-has-associated-control": "off", | ||
"jsx-a11y/click-events-have-key-events": "off", | ||
"react/jsx-props-no-spreading": "off", | ||
"import/prefer-default-export" : "off", | ||
"react/button-has-type":"off", | ||
"react/no-unused-state": "off", | ||
"import/no-extraneous-dependencies": "off", | ||
"react/destructuring-assignment": "off", | ||
"react/sort-comp": "off", | ||
"react/prop-types": "off", | ||
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }], | ||
"no-shadow":"off", | ||
"max-len": [ | ||
"warn", | ||
{ | ||
"code": 100, | ||
"tabWidth": 2, | ||
"comments": 100, | ||
"ignoreComments": false, | ||
"ignoreTrailingComments": true, | ||
"ignoreUrls": true, | ||
"ignoreStrings": true, | ||
"ignoreTemplateLiterals": true, | ||
"ignoreRegExpLiterals": true | ||
} | ||
] | ||
} | ||
} |
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,5 @@ | ||
{ | ||
"printWidth": 100, | ||
"singleQuote": true, | ||
"trailingComma": "all" | ||
} |
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,70 +1,6 @@ | ||
# Getting Started with Create React App | ||
#####todo: | ||
|
||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). | ||
|
||
## Available Scripts | ||
|
||
In the project directory, you can run: | ||
|
||
### `npm start` | ||
|
||
Runs the app in the development mode.\ | ||
Open [http://localhost:3000](http://localhost:3000) to view it in the browser. | ||
|
||
The page will reload if you make edits.\ | ||
You will also see any lint errors in the console. | ||
|
||
### `npm test` | ||
|
||
Launches the test runner in the interactive watch mode.\ | ||
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. | ||
|
||
### `npm run build` | ||
|
||
Builds the app for production to the `build` folder.\ | ||
It correctly bundles React in production mode and optimizes the build for the best performance. | ||
|
||
The build is minified and the filenames include the hashes.\ | ||
Your app is ready to be deployed! | ||
|
||
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. | ||
|
||
### `npm run eject` | ||
|
||
**Note: this is a one-way operation. Once you `eject`, you can’t go back!** | ||
|
||
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. | ||
|
||
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. | ||
|
||
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. | ||
|
||
## Learn More | ||
|
||
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). | ||
|
||
To learn React, check out the [React documentation](https://reactjs.org/). | ||
|
||
### Code Splitting | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) | ||
|
||
### Analyzing the Bundle Size | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) | ||
|
||
### Making a Progressive Web App | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) | ||
|
||
### Advanced Configuration | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) | ||
|
||
### Deployment | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) | ||
|
||
### `npm run build` fails to minify | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) | ||
- [ ] - добавить фетч детальной инфы по номеру телефона | ||
- [ ] - сделать локализации интерфейса | ||
- [ ] - сделать страницу истории через табсы или роутер туда автоматически добавлять информацию по | ||
каждой найденной посылке(маршрут, адрес доставки и т.д) |
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.
Binary file not shown.
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,14 +1,12 @@ | ||
import React from 'react'; | ||
import './header.styles.css'; | ||
|
||
const Header = () => { | ||
return ( | ||
<div className='header-wrap'> | ||
<h3> | ||
трек посылок <b>Nova Poshta</b> | ||
</h3> | ||
</div> | ||
); | ||
}; | ||
const Header = () => ( | ||
<div className="header-wrap"> | ||
<h3> | ||
трек посылок <b>Nova Poshta</b> | ||
</h3> | ||
</div> | ||
); | ||
|
||
export default Header; |
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,39 @@ | ||
import React from 'react'; | ||
import { useSelector } from 'react-redux'; | ||
import './package_info.styles.css'; | ||
// 20450332281236 | ||
|
||
const PackageInfo = () => { | ||
const packageInfo = useSelector((state) => state.packages.packageInfo); | ||
|
||
if (!packageInfo) return null; | ||
|
||
const { | ||
WarehouseRecipient, | ||
Status, | ||
RecipientDateTime, | ||
CitySender, | ||
CityRecipient, | ||
ActualDeliveryDate, | ||
} = packageInfo; | ||
|
||
return ( | ||
<div className="package-info-wrap"> | ||
<span> | ||
статус - {Status} {RecipientDateTime} | ||
</span> | ||
<ul> | ||
<li>маршрут:</li> | ||
<li> | ||
{CitySender} - {CityRecipient} | ||
</li> | ||
<li>Адрес доставки:</li> | ||
<li>{WarehouseRecipient}</li> | ||
<li>дата доставки:</li> | ||
<li>{ActualDeliveryDate}</li> | ||
</ul> | ||
</div> | ||
); | ||
}; | ||
|
||
export default PackageInfo; |
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,28 @@ | ||
.package-info-wrap { | ||
box-shadow: 0 2px 12px 0 rgba(0,0,0,.1); | ||
padding: 10px; | ||
margin-top: 10px; | ||
background-color: #ffffffa8; | ||
} | ||
.package-info-wrap ul{ | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
.package-info-wrap li { | ||
list-style: none; | ||
font-size: 16px; | ||
color: #333333; | ||
} | ||
|
||
.package-info-wrap li:nth-child(odd) { | ||
font-size: 12px; | ||
color: #828282; | ||
font-family: Arial, Helvetica, sans-serif; | ||
margin-top: 10px; | ||
} | ||
|
||
.package-info-wrap li:nth-child(4) { | ||
color:red; | ||
font-size: 18px; | ||
} |
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,4 +1,4 @@ | ||
|
||
import React from 'react'; | ||
|
||
function Options() { | ||
return ( | ||
|
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