feat: widget zoom for weather and fixes

This commit is contained in:
David Ralph
2021-05-07 13:27:28 +01:00
parent cb129238cb
commit 7327382497
6 changed files with 16 additions and 7 deletions

View File

@@ -16,7 +16,7 @@ export default class About extends React.PureComponent {
contributors: [],
sponsors: [],
other_contributors: [],
photographers: [],
photographers: window.language.modals.main.loading,
update: window.language.modals.main.settings.sections.about.version.checking_update,
loading: window.language.modals.main.loading
};
@@ -54,7 +54,6 @@ export default class About extends React.PureComponent {
updateMsg = `${this.language.version.update_available}: ${newVersion}`;
}
this.setState({
contributors: contributors.filter((contributor) => !contributor.login.includes('bot')),
sponsors: sponsors,
@@ -103,7 +102,7 @@ export default class About extends React.PureComponent {
<h3>{this.language.resources_used.title}</h3>
<p><a href='https://www.pexels.com' className='aboutLink' target='_blank' rel='noopener noreferrer'>Pexels</a>, <a href='https://unsplash.com' className='aboutLink' target='_blank' rel='noopener noreferrer'>Unsplash</a> ({this.language.resources_used.bg_images})</p>
<p><a href='https://fonts.google.com/icons?selected=Material+Icons' className='aboutLink' target='_blank' rel='noopener noreferrer'>Google Fonts</a> ({this.language.resources_used.pin_icon})</p>
<p><a href='https://undraw.co/' className='aboutLink' target='_blank' rel='noopener noreferrer'>Undraw</a> ({this.language.resources_used.welcome_img})</p>
<p><a href='https://undraw.co' className='aboutLink' target='_blank' rel='noopener noreferrer'>Undraw</a> ({this.language.resources_used.welcome_img})</p>
<h3>{this.language.contributors}</h3>
<p>{this.state.loading}</p>
@@ -128,7 +127,6 @@ export default class About extends React.PureComponent {
))}
<h3>{this.language.photographers}</h3>
<p>{this.state.loading}</p>
<p>{this.state.photographers}</p>
</>
);

View File

@@ -34,6 +34,7 @@ export default class QuoteSettings extends React.PureComponent {
switch (this.state.quoteType) {
case 'custom': quoteSettings = customSettings; break;
default: break;
}
return (

View File

@@ -3,6 +3,7 @@ import React from 'react';
import Switch from '../Switch';
import Radio from '../Radio';
import Checkbox from '../Checkbox';
import Slider from '../Slider';
export default class TimeSettings extends React.PureComponent {
constructor() {
@@ -71,6 +72,8 @@ export default class TimeSettings extends React.PureComponent {
</ul>
<br/>
<Radio name='tempformat' title={language.temp_format.title} options={tempFormat} category='weather'/>
<Slider title={window.language.modals.main.settings.sections.appearance.accessibility.widget_zoom} name='zoomWeather' min='10' max='400' default='100' display='%' category='weather'/>
<h3>{language.extra_info.title}</h3>
<Checkbox name='showlocation' text={language.extra_info.show_location} category='weather'/>
<Checkbox name='weatherdescription' text={language.extra_info.show_description} category='weather'/>