refactor: codacy and some style changes etc

This commit is contained in:
David Ralph
2021-08-27 19:42:40 +01:00
parent abe70617d8
commit fcff3e44a6
21 changed files with 110 additions and 76 deletions

View File

@@ -47,17 +47,17 @@ export default class About extends PureComponent {
const newVersion = versionData[0].tag_name;
let updateMsg = this.language.version.no_update;
let update = this.language.version.no_update;
if (Number(window.constants.VERSION.replaceAll('.', '')) < Number(newVersion.replaceAll('.', ''))) {
updateMsg = `${this.language.version.update_available}: ${newVersion}`;
update = `${this.language.version.update_available}: ${newVersion}`;
}
this.setState({
// exclude bots
contributors: contributors.filter((contributor) => !contributor.login.includes('bot')),
sponsors: sponsors,
update: updateMsg,
other_contributors: other_contributors,
sponsors,
update,
other_contributors,
photographers: photographers.sort().join(', '),
loading: null
});

View File

@@ -32,7 +32,7 @@ export default class Changelog extends PureComponent {
this.setState({
title: data.title,
date: date,
date,
image: data.featured_image || null,
author: 'By ' + data.authors.join(', '),
html: data.html