-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3335 from Vizzuality/feature/recent-imagery-settings
Feature/recent imagery settings
- Loading branch information
Showing
43 changed files
with
1,042 additions
and
218 deletions.
There are no files selected for viewing
4 changes: 1 addition & 3 deletions
4
app/assets/javascripts/map/templates/legend/sentinel_tiles.handlebars
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 @@ | ||
<div class="layer-sublayer js-refresh-tiles" data-sublayer="sentinel_tiles" style="cursor: pointer;"> | ||
<div class="sublayer-title -hidden">Refresh tile</div> | ||
</div> | ||
<div class="layer-sublayer js-refresh-tiles" data-sublayer="sentinel_tiles" style="cursor: pointer;"></div> |
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
2 changes: 1 addition & 1 deletion
2
...ript/components/slider/slider-styles.scss → .../components/carousel/carousel-styles.scss
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,3 @@ | ||
import Component from './carousel-component'; | ||
|
||
export default Component; |
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
42 changes: 42 additions & 0 deletions
42
app/javascript/components/datepicker/datepicker-component.js
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,42 @@ | ||
import React, { PureComponent } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { SingleDatePicker } from 'react-dates'; | ||
|
||
import 'react-dates/initialize'; | ||
import 'react-dates/lib/css/_datepicker.css'; | ||
import './datepicker-styles.scss'; | ||
|
||
class Datepicker extends PureComponent { | ||
constructor(props) { | ||
super(props); | ||
this.state = { | ||
focused: false | ||
}; | ||
} | ||
|
||
render() { | ||
const { className, date, handleOnDateChange, settings } = this.props; | ||
return ( | ||
<div className={`c-datepicker ${className || ''}`}> | ||
<SingleDatePicker | ||
date={date} | ||
onDateChange={d => { | ||
handleOnDateChange(d); | ||
}} | ||
focused={this.state.focused} | ||
onFocusChange={({ focused }) => this.setState({ focused })} | ||
{...settings} | ||
/> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
Datepicker.propTypes = { | ||
className: PropTypes.string, | ||
date: PropTypes.object, | ||
handleOnDateChange: PropTypes.func.isRequired, | ||
settings: PropTypes.object | ||
}; | ||
|
||
export default Datepicker; |
30 changes: 30 additions & 0 deletions
30
app/javascript/components/datepicker/datepicker-styles.scss
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,30 @@ | ||
@import '~styles/settings.scss'; | ||
|
||
.c-datepicker { | ||
td { | ||
vertical-align: middle; | ||
} | ||
|
||
.SingleDatePickerInput { | ||
.DateInput_input { | ||
padding: 0; | ||
height: 28px; | ||
border: 1px solid $green-gfw; | ||
border-radius: rem(25px); | ||
font-size: 13px; | ||
font-weight: normal; | ||
text-align: center; | ||
text-transform: uppercase; | ||
color: $slate; | ||
cursor: pointer; | ||
} | ||
} | ||
|
||
.CalendarDay__selected, | ||
.CalendarDay__selected:active, | ||
.CalendarDay__selected:hover { | ||
background: $green-gfw; | ||
border: 1px solid $green-gfw; | ||
color: $white; | ||
} | ||
} |
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,3 @@ | ||
import Component from './datepicker-component'; | ||
|
||
export default Component; |
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
Oops, something went wrong.