From ad39f4a732f193db9efa9f20d0fe4f9ab27b4b4f Mon Sep 17 00:00:00 2001 From: David Ralph Date: Tue, 14 Mar 2023 23:53:05 +0000 Subject: [PATCH] chore: run prettier, refactor translations --- .../main/marketplace/examples/photos.json | 48 +++++++++---------- .../main/marketplace/examples/quotes.json | 38 +++++++-------- .../main/marketplace/examples/settings.json | 24 +++++----- .../main/marketplace/sections/Create.jsx | 9 +++- .../main/settings/sections/Experimental.jsx | 7 +-- .../settings/sections/quicklinks/AddModal.jsx | 6 +-- .../widgets/background/PhotoInformation.jsx | 31 ++++-------- .../background/scss/_photoinformation.scss | 29 +++++------ src/index.jsx | 36 ++------------ src/modules/helpers/experimental.js | 1 - src/modules/translations.js | 36 +++++++------- 11 files changed, 114 insertions(+), 151 deletions(-) diff --git a/src/components/modals/main/marketplace/examples/photos.json b/src/components/modals/main/marketplace/examples/photos.json index fc934c32..bf3dc38c 100644 --- a/src/components/modals/main/marketplace/examples/photos.json +++ b/src/components/modals/main/marketplace/examples/photos.json @@ -1,25 +1,25 @@ { - "name": "Example Photos", - "description": "This is an example.", - "type": "photos", - "version": "1.0.0", - "author": "Mue", - "icon_url": "https://raw.githubusercontent.com/mue/branding/main/logo/logo_square.png", - "screenshot_url": "https://github.com/mue/mue/raw/main/assets/screenshot.webp", - "photos": [ - { - "photographer": "Example photographer", - "location": "Example location", - "url": { - "default": "https://github.com/mue/mue/raw/main/assets/screenshot.webp" - } - }, - { - "photographer": "Example photographer 2", - "location": "Example location 2", - "url": { - "default": "https://github.com/mue/mue/raw/main/assets/screenshot2.webp" - } - } - ] -} \ No newline at end of file + "name": "Example Photos", + "description": "This is an example.", + "type": "photos", + "version": "1.0.0", + "author": "Mue", + "icon_url": "https://raw.githubusercontent.com/mue/branding/main/logo/logo_square.png", + "screenshot_url": "https://github.com/mue/mue/raw/main/assets/screenshot.webp", + "photos": [ + { + "photographer": "Example photographer", + "location": "Example location", + "url": { + "default": "https://github.com/mue/mue/raw/main/assets/screenshot.webp" + } + }, + { + "photographer": "Example photographer 2", + "location": "Example location 2", + "url": { + "default": "https://github.com/mue/mue/raw/main/assets/screenshot2.webp" + } + } + ] +} diff --git a/src/components/modals/main/marketplace/examples/quotes.json b/src/components/modals/main/marketplace/examples/quotes.json index ce9f91cc..577e1eb7 100644 --- a/src/components/modals/main/marketplace/examples/quotes.json +++ b/src/components/modals/main/marketplace/examples/quotes.json @@ -1,20 +1,20 @@ { - "name": "Example Quotes", - "description": "This is an example.", - "type": "quotes", - "version": "1.0.0", - "author": "Mue", - "icon_url": "https://raw.githubusercontent.com/mue/branding/main/logo/logo_square.png", - "screenshot_url": "https://github.com/mue/mue/raw/main/assets/screenshot.webp", - "language": "en", - "quotes": [ - { - "quote": "This is an example quote.", - "author": "Example 1" - }, - { - "quote": "This is another example quote.", - "author": "Example 2" - } - ] -} \ No newline at end of file + "name": "Example Quotes", + "description": "This is an example.", + "type": "quotes", + "version": "1.0.0", + "author": "Mue", + "icon_url": "https://raw.githubusercontent.com/mue/branding/main/logo/logo_square.png", + "screenshot_url": "https://github.com/mue/mue/raw/main/assets/screenshot.webp", + "language": "en", + "quotes": [ + { + "quote": "This is an example quote.", + "author": "Example 1" + }, + { + "quote": "This is another example quote.", + "author": "Example 2" + } + ] +} diff --git a/src/components/modals/main/marketplace/examples/settings.json b/src/components/modals/main/marketplace/examples/settings.json index e965f3b8..df07ff22 100644 --- a/src/components/modals/main/marketplace/examples/settings.json +++ b/src/components/modals/main/marketplace/examples/settings.json @@ -1,13 +1,13 @@ { - "name": "Example Settings", - "description": "This is an example.", - "type": "settings", - "version": "1.0.0", - "author": "Mue", - "icon_url": "https://raw.githubusercontent.com/mue/branding/main/logo/logo_square.png", - "screenshot_url": "https://github.com/mue/mue/raw/main/assets/screenshot.webp", - "settings": { - "searchBar": false, - "weather": true - } -} \ No newline at end of file + "name": "Example Settings", + "description": "This is an example.", + "type": "settings", + "version": "1.0.0", + "author": "Mue", + "icon_url": "https://raw.githubusercontent.com/mue/branding/main/logo/logo_square.png", + "screenshot_url": "https://github.com/mue/mue/raw/main/assets/screenshot.webp", + "settings": { + "searchBar": false, + "weather": true + } +} diff --git a/src/components/modals/main/marketplace/sections/Create.jsx b/src/components/modals/main/marketplace/sections/Create.jsx index 5010ceeb..90f8ecf0 100644 --- a/src/components/modals/main/marketplace/sections/Create.jsx +++ b/src/components/modals/main/marketplace/sections/Create.jsx @@ -226,7 +226,14 @@ export default class Create extends PureComponent { ) || 'marketplace'} - diff --git a/src/components/modals/main/settings/sections/Experimental.jsx b/src/components/modals/main/settings/sections/Experimental.jsx index f3f6b7c9..c9391e02 100644 --- a/src/components/modals/main/settings/sections/Experimental.jsx +++ b/src/components/modals/main/settings/sections/Experimental.jsx @@ -51,14 +51,11 @@ function ExperimentalSettings() { varient="outlined" InputLabelProps={{ shrink: true }} /> - - +