From 7f5b8266834991667a6eba92686e700fdb4ce325 Mon Sep 17 00:00:00 2001 From: David Ralph Date: Thu, 4 Nov 2021 13:58:53 +0000 Subject: [PATCH] fix: various modal things, improve ui, add missing translations etc --- .../main/marketplace/SideloadFailedModal.jsx | 2 +- .../main/marketplace/sections/Create.jsx | 19 +++++++---------- .../main/marketplace/sections/Sideload.jsx | 12 +++++------ .../scss/settings/modules/_material-ui.scss | 9 ++++++++ .../modals/main/settings/Checkbox.jsx | 6 +++++- src/components/modals/main/settings/Radio.jsx | 4 ++++ .../modals/main/settings/Slider.jsx | 2 +- src/components/modals/main/settings/Text.jsx | 2 +- .../modals/main/settings/sections/About.jsx | 20 +++++++++++++----- .../modals/main/settings/sections/Date.jsx | 2 +- .../modals/main/settings/sections/Navbar.jsx | 2 +- .../main/settings/sections/QuickLinks.jsx | 8 ++++--- .../sections/background/Background.jsx | 21 +++++++++++-------- .../settings/sections/background/Custom.jsx | 8 +++---- .../sections/background/CustomURLModal.jsx | 6 ++++-- src/translations/de_DE.json | 3 +++ src/translations/en_GB.json | 3 +++ src/translations/en_US.json | 3 +++ src/translations/es.json | 3 +++ src/translations/fr.json | 3 +++ src/translations/nl.json | 3 +++ src/translations/no.json | 3 +++ src/translations/ru.json | 3 +++ src/translations/zh_CN.json | 3 +++ 24 files changed, 103 insertions(+), 47 deletions(-) diff --git a/src/components/modals/main/marketplace/SideloadFailedModal.jsx b/src/components/modals/main/marketplace/SideloadFailedModal.jsx index 1d769f74..c28f44b7 100644 --- a/src/components/modals/main/marketplace/SideloadFailedModal.jsx +++ b/src/components/modals/main/marketplace/SideloadFailedModal.jsx @@ -5,7 +5,7 @@ export default function SideloadFailedModal({ modalClose, reason }) { return ( <> -

{getMessage('modals.main.error_boundary.error')}

+

{getMessage('modals.main.error_boundary.title')}

{getMessage('modals.main.addons.sideload.failed')}

{reason} diff --git a/src/components/modals/main/marketplace/sections/Create.jsx b/src/components/modals/main/marketplace/sections/Create.jsx index feb813ab..a1a4f7e8 100644 --- a/src/components/modals/main/marketplace/sections/Create.jsx +++ b/src/components/modals/main/marketplace/sections/Create.jsx @@ -5,6 +5,7 @@ import { PhotoOutlined as Photos, FormatQuoteOutlined as Quotes } from '@mui/icons-material'; +import { TextField } from '@mui/material'; import { toast } from 'react-toastify'; import { saveFile } from 'modules/helpers/settings/modals'; @@ -207,18 +208,12 @@ export default class Create extends PureComponent { const writeDescription = ( <>

{getMessage('modals.main.marketplace.product.information')}

-

{getMessage('modals.main.addons.create.metadata.name')}

- setMetadata(e.target.value, 'name')}/> -

{getMessage('modals.main.marketplace.product.version')}

- setMetadata(e.target.value, 'version')}/> -

{getMessage('modals.main.marketplace.product.author')}

- setMetadata(e.target.value, 'author')}/> -

{getMessage('modals.main.addons.create.metadata.icon_url')}

- setMetadata(e.target.value, 'icon_url')}/> -

{getMessage('modals.main.addons.create.metadata.screenshot_url')}

- setMetadata(e.target.value, 'screenshot_url')}/> -

{getMessage('modals.main.addons.create.metadata.description')}

-