diff --git a/.eslintrc.js b/.eslintrc.js index 7dfe405d..473457c0 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,4 +1,4 @@ module.exports = { extends: 'react-app', parser: '@babel/eslint-parser' -} \ No newline at end of file +}; diff --git a/src/components/modals/main/marketplace/sections/Added.jsx b/src/components/modals/main/marketplace/sections/Added.jsx index f6fcc94d..4d180963 100644 --- a/src/components/modals/main/marketplace/sections/Added.jsx +++ b/src/components/modals/main/marketplace/sections/Added.jsx @@ -29,14 +29,14 @@ export default class Added extends React.PureComponent { }; this.buttons = { uninstall: , - } + }; this.language = window.language.modals.main.addons; } toggle(type, data) { if (type === 'item') { const installed = JSON.parse(localStorage.getItem('installed')); - const info = installed.find(i => i.name === data); + const info = installed.find((i) => i.name === data); this.setState({ item: { diff --git a/src/components/modals/main/marketplace/sections/Marketplace.jsx b/src/components/modals/main/marketplace/sections/Marketplace.jsx index 2acbf0c8..4658f5db 100644 --- a/src/components/modals/main/marketplace/sections/Marketplace.jsx +++ b/src/components/modals/main/marketplace/sections/Marketplace.jsx @@ -34,7 +34,7 @@ export default class Marketplace extends React.PureComponent { this.buttons = { uninstall: , install: - } + }; this.language = window.language.modals.main.marketplace; } diff --git a/src/components/modals/main/marketplace/sections/Sideload.jsx b/src/components/modals/main/marketplace/sections/Sideload.jsx index acedc926..478b824a 100644 --- a/src/components/modals/main/marketplace/sections/Sideload.jsx +++ b/src/components/modals/main/marketplace/sections/Sideload.jsx @@ -10,7 +10,7 @@ export default function Sideload() { const install = (input) => { MarketplaceFunctions.install(input.type, input); toast(window.language.toasts.installed); - } + }; return ( <> diff --git a/src/components/modals/main/settings/sections/background/Background.jsx b/src/components/modals/main/settings/sections/background/Background.jsx index 14cf19db..963b48d8 100644 --- a/src/components/modals/main/settings/sections/background/Background.jsx +++ b/src/components/modals/main/settings/sections/background/Background.jsx @@ -57,7 +57,7 @@ export default class BackgroundSettings extends React.PureComponent { - ) + ); } else { return null; } @@ -65,7 +65,7 @@ export default class BackgroundSettings extends React.PureComponent { marketplaceType = () => { if (localStorage.getItem('photo_packs')) { - return + return ; } } diff --git a/src/components/widgets/background/Background.jsx b/src/components/widgets/background/Background.jsx index e7990312..8080b554 100644 --- a/src/components/widgets/background/Background.jsx +++ b/src/components/widgets/background/Background.jsx @@ -26,7 +26,7 @@ export default class Background extends React.PureComponent { if (gradient.length > 1) { // Note: Append the gradient for additional browser support. - const stepStyles = gradient.map(g => ` ${g.colour} ${g.stop}%`).join(); + const stepStyles = gradient.map((g) => ` ${g.colour} ${g.stop}%`).join(); style += ` background: ${type}-gradient(${(type === 'linear' ? (`${angle}deg,`) : '')}${stepStyles})`; } @@ -37,7 +37,7 @@ export default class Background extends React.PureComponent { } videoCheck(url) { - return url.startsWith('data:video/') || url.endsWith('.mp4') || url.endsWith('.webm') || url.endsWith('.ogg') + return url.startsWith('data:video/') || url.endsWith('.mp4') || url.endsWith('.webm') || url.endsWith('.ogg'); } offlineBackground() { @@ -235,7 +235,7 @@ export default class Background extends React.PureComponent { } }); this.getBackground(); - } + }; EventBus.on('refresh', (data) => { if (data === 'background') { diff --git a/src/components/widgets/search/Search.jsx b/src/components/widgets/search/Search.jsx index 30f0fbeb..1cbadc8a 100644 --- a/src/components/widgets/search/Search.jsx +++ b/src/components/widgets/search/Search.jsx @@ -34,7 +34,7 @@ export default class Search extends React.PureComponent { setTimeout(() => { window.location.href = this.state.url + `?${this.state.query}=` + searchText.value; }, 1000); - } + }; } searchButton = () => { diff --git a/src/components/widgets/weather/Weather.jsx b/src/components/widgets/weather/Weather.jsx index da251480..f2d218d8 100644 --- a/src/components/widgets/weather/Weather.jsx +++ b/src/components/widgets/weather/Weather.jsx @@ -115,7 +115,7 @@ export default class Weather extends React.PureComponent { return (
{this.state.location}
); - }; + } const minmax = () => { const mintemp = (localStorage.getItem('mintemp') === 'true'); diff --git a/src/modules/helpers/background/setRgba.js b/src/modules/helpers/background/setRgba.js index 85cfc433..34e9b47f 100644 --- a/src/modules/helpers/background/setRgba.js +++ b/src/modules/helpers/background/setRgba.js @@ -1,6 +1,6 @@ const isValidRGBValue = (value) => { return (typeof (value) === 'number' && Number.isNaN(value) === false && value >= 0 && value <= 255); -} +}; export default function setRGBA(red, green, blue, alpha) { if (isValidRGBValue(red) && isValidRGBValue(green) && isValidRGBValue(blue)) { diff --git a/src/modules/helpers/marketplace.js b/src/modules/helpers/marketplace.js index 4124b384..e84ca372 100644 --- a/src/modules/helpers/marketplace.js +++ b/src/modules/helpers/marketplace.js @@ -14,7 +14,7 @@ export default class MarketplaceFunctions { case 'settings': const oldSettings = JSON.parse(localStorage.getItem('backup_settings')); localStorage.clear(); - oldSettings.forEach(item => localStorage.setItem(item.name, item.value)); + oldSettings.forEach((item) => localStorage.setItem(item.name, item.value)); break; case 'quote_packs': localStorage.removeItem('quote_packs'); @@ -60,7 +60,7 @@ export default class MarketplaceFunctions { } localStorage.setItem('backup_settings', JSON.stringify(oldSettings)); - input.settings.forEach(element => localStorage.setItem(element.name, element.value)); + input.settings.forEach((element) => localStorage.setItem(element.name, element.value)); break; case 'photos': diff --git a/src/translations/de_DE.json b/src/translations/de_DE.json index 28a2f744..4efe2104 100644 --- a/src/translations/de_DE.json +++ b/src/translations/de_DE.json @@ -73,7 +73,7 @@ "title": "Digital", "seconds": "Sekunden", "twentyfourhour": "24 Stunden", - "twelvehour": "12 hour", + "twelvehour": "12 Stunden", "zero": "Nullen füllen" }, "analogue": {