-
Notifications
You must be signed in to change notification settings - Fork 1
Info page #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Stan0men
wants to merge
30
commits into
dev
Choose a base branch
from
info_page
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Info page #27
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
753807f
add main pages and styles
Stan0men 2566917
trouble with hide panel -_-
Stan0men 444eb68
add state with error
Stan0men df9a34b
add function toogglePanel
Stan0men 7e3f701
some commit
Stan0men d01b691
pass json to tripListDetails
Stan0men b0d0b0f
add data to tripListDetails
Stan0men 0515073
add clearInput
Stan0men fbfc865
changed structure of this page
Stan0men 457a376
add updateFilter method
Stan0men 4652826
fix troubles with state & many folders
Stan0men 0f3359e
add clearInput and filter methods
Stan0men cd80a76
add some styles
Stan0men d66ea5d
update from dev
Stan0men 5c0394a
commit for merge
Stan0men 14ce247
commit for merge
Stan0men f3a3543
fix syles, add icons
Stan0men 2aba372
add some styles to Info page
Stan0men d4d099a
fix conflict
Stan0men f33f3c2
1
Stan0men 26d776e
add map
Stan0men 18052e9
fix map
Stan0men fa8a897
mao is not working but I want switch branch
Stan0men 1d3d06c
add map
Stan0men 32a129b
fix form
Stan0men b19bee2
fix all styles and issues
Stan0men eb06ad6
merge with dev without troubles
Stan0men 526c6e0
Upd routes to '/images/bla bla.
Stan0men 30c75ba
Clear curly braces from <InfoMap />
Stan0men b25c951
Update Info.scss
Stan0men File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,43 @@ | ||
| import { Map, InfoWindow, Marker, GoogleApiWrapper } from 'google-maps-react'; | ||
| import React from 'react'; | ||
| import PropTypes from 'prop-types'; | ||
| import './InfoMap.scss'; | ||
|
|
||
|
|
||
| const KEY = 'AIzaSyBPo6m3oLTozHOupA5V_kbBtxwgqbiVmOs'; | ||
|
|
||
|
|
||
| export class InfoMap extends React.Component { | ||
| constructor() { | ||
| super(); | ||
| this.state = { | ||
| }; | ||
| } | ||
|
|
||
| render() { | ||
| const { google } = this.props; | ||
| return ( | ||
| <Map google={google} zoom={14}> | ||
|
|
||
| <Marker | ||
| onClick={this.onMarkerClick} | ||
| name="Current location" | ||
| /> | ||
|
|
||
| <InfoWindow onClose={this.onInfoWindowClose}> | ||
| <div> | ||
| <h1>something</h1> | ||
| </div> | ||
| </InfoWindow> | ||
| </Map> | ||
| ); | ||
| } | ||
| } | ||
|
|
||
| InfoMap.propTypes = { | ||
| google: PropTypes.objectOf(PropTypes.any).isRequired | ||
| }; | ||
|
|
||
| export default GoogleApiWrapper({ | ||
| apiKey: (KEY) | ||
| })(InfoMap); | ||
This file contains hidden or 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 @@ | ||
| .info-map { | ||
| font-family: 'Courier New', Courier, monospace; | ||
| border: 1px solid black; | ||
| width: 500px; | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,23 +1,41 @@ | ||
| [ | ||
| { | ||
| { "id":1, | ||
| "name": "Lviv - Paris", | ||
| "rating": 4.7, | ||
| "feedback": "The driver was drunk! I liked everything!\n\n Quisque varius imperdiet auctor. In et dui elit. Nam metus lorem, imperdiet iaculis imperdiet sit amet, ullamcorper quis ipsum. Sed sed nisi vitae magna vestibulum commodo.", | ||
| "userName": "Petro", | ||
| "date": "07/08/2018" | ||
| }, | ||
| { | ||
| "id":2, | ||
| "name": "Lviv - Ternopil", | ||
| "rating": 4.1, | ||
| "feedback": "The driver was drunk! I liked everything!\n\n Quisque varius imperdiet auctor. In et dui elit. Nam metus lorem, imperdiet iaculis imperdiet sit amet, ullamcorper quis ipsum. Sed sed nisi vitae magna vestibulum commodo.", | ||
| "userName": "Petro", | ||
| "date": "07/08/2018" | ||
| }, | ||
| { | ||
| "id":3, | ||
| "name": "Lviv - Kyiv", | ||
| "rating": 5, | ||
| "feedback": "The driver was drunk! I liked everything!\n\n Quisque varius imperdiet auctor. In et dui elit. Nam metus lorem, imperdiet iaculis imperdiet sit amet, ullamcorper quis ipsum. Sed sed nisi vitae magna vestibulum commodo.", | ||
| "userName": "Petro", | ||
| "date": "07/08/2018" | ||
| }, | ||
| { | ||
| "id":4, | ||
| "name": "Kyiv -Lviv ", | ||
| "rating": 5, | ||
| "feedback": "The driver was drunk! I liked everything!\n\n Quisque varius imperdiet auctor. In et dui elit. Nam metus lorem, imperdiet iaculis imperdiet sit amet, ullamcorper quis ipsum. Sed sed nisi vitae magna vestibulum commodo.", | ||
| "userName": "Petro", | ||
| "date": "07/08/2018" | ||
| }, | ||
| { | ||
| "id":5, | ||
| "name": "Rivne -Lviv ", | ||
| "rating": 5, | ||
| "feedback": "The driver was drunk! I liked everything!\n\n Quisque varius imperdiet auctor. In et dui elit. Nam metus lorem, imperdiet iaculis imperdiet sit amet, ullamcorper quis ipsum. Sed sed nisi vitae magna vestibulum commodo.", | ||
| "userName": "Petro", | ||
| "date": "07/08/2018" | ||
| } | ||
| ] |
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hate magic numbers :)