refactor(config): rename and re-type footer columns
This commit is contained in:
@@ -22,28 +22,28 @@ const LayoutFooter = () => {
|
||||
const links = [
|
||||
{
|
||||
key: 'docs',
|
||||
show: !!config.data.footerDocsLink,
|
||||
href: config.data.footerDocsLink,
|
||||
show: !!config.data.footerDocsUrl,
|
||||
href: config.data.footerDocsUrl,
|
||||
text: formatMessage('footer.docsLinkText'),
|
||||
},
|
||||
{
|
||||
key: 'terms-of-services',
|
||||
show: !!config.data.footerTosLink,
|
||||
href: config.data.footerTosLink,
|
||||
show: !!config.data.footerTosUrl,
|
||||
href: config.data.footerTosUrl,
|
||||
text: formatMessage('footer.tosLinkText'),
|
||||
},
|
||||
|
||||
{
|
||||
key: 'privacy-policy',
|
||||
show: !!config.data.footerPrivacyPolicyLink,
|
||||
href: config.data.footerPrivacyPolicyLink,
|
||||
show: !!config.data.footerPrivacyPolicyUrl,
|
||||
href: config.data.footerPrivacyPolicyUrl,
|
||||
text: formatMessage('footer.privacyPolicyLinkText'),
|
||||
},
|
||||
|
||||
{
|
||||
key: 'imprint',
|
||||
show: !!config.data.footerImprintLink,
|
||||
href: config.data.footerImprintLink,
|
||||
show: !!config.data.footerImprintUrl,
|
||||
href: config.data.footerImprintUrl,
|
||||
text: formatMessage('footer.imprintLinkText'),
|
||||
},
|
||||
,
|
||||
|
||||
@@ -281,15 +281,15 @@
|
||||
"userInterfacePage.primaryDarkColorFieldLabel": "Primary dark color",
|
||||
"userInterfacePage.primaryLightColorFieldLabel": "Primary light color",
|
||||
"userInterfacePage.svgDataFieldLabel": "Logo SVG code",
|
||||
"userInterfacePage.footerLogoSvgDataFieldLabel": "logo SVG code",
|
||||
"userInterfacePage.footerLogoSvgDataFieldLabel": "Footer logo SVG code",
|
||||
"userInterfacePage.footerCopyrightTextFieldLabel": "Copyright text",
|
||||
"userInterfacePage.enableFooterLabel": "Enable footer",
|
||||
"userInterfacePage.footerTextColorLabel": "Text color",
|
||||
"userInterfacePage.footerBackgroundColorLabel": "Background color",
|
||||
"userInterfacePage.footerDocsLinkLabel": "Documentation link",
|
||||
"userInterfacePage.footerTosLinkLabel": "Terms of services link",
|
||||
"userInterfacePage.footerPrivacyPolicyLinkLabel": "Privacy policy link",
|
||||
"userInterfacePage.footerImprintLinkLabel": "Imprint link",
|
||||
"userInterfacePage.footerDocsUrlLabel": "Documentation link",
|
||||
"userInterfacePage.footerTosUrlLabel": "Terms of services link",
|
||||
"userInterfacePage.footerPrivacyPolicyUrlLabel": "Privacy policy link",
|
||||
"userInterfacePage.footerImprintUrlLabel": "Imprint link",
|
||||
"userInterfacePage.submit": "Update",
|
||||
"authenticationPage.title": "Single Sign-On with SAML",
|
||||
"authenticationForm.active": "Active",
|
||||
|
||||
@@ -37,10 +37,10 @@ const defaultValues = {
|
||||
footerCopyrightText: '',
|
||||
footerBackgroundColor: '#FFFFFF',
|
||||
footerTextColor: '#000000',
|
||||
footerDocsLink: '',
|
||||
footerTosLink: '',
|
||||
footerPrivacyPolicyLink: '',
|
||||
footerImprintLink: '',
|
||||
footerDocsUrl: '',
|
||||
footerTosUrl: '',
|
||||
footerPrivacyPolicyUrl: '',
|
||||
footerImprintUrl: '',
|
||||
};
|
||||
|
||||
const mergeIfGiven = (oldValue, newValue) => {
|
||||
@@ -66,12 +66,12 @@ export default function UserInterface() {
|
||||
enableFooter: uiData.enableFooter,
|
||||
footerBackgroundColor: uiData.footerBackgroundColor,
|
||||
footerCopyrightText: uiData.footerCopyrightText,
|
||||
footerDocsLink: uiData.footerDocsLink,
|
||||
footerImprintLink: uiData.footerImprintLink,
|
||||
footerDocsUrl: uiData.footerDocsUrl,
|
||||
footerImprintUrl: uiData.footerImprintUrl,
|
||||
footerLogoSvgData: uiData.footerLogoSvgData,
|
||||
footerPrivacyPolicyLink: uiData.footerPrivacyPolicyLink,
|
||||
footerPrivacyPolicyUrl: uiData.footerPrivacyPolicyUrl,
|
||||
footerTextColor: uiData.footerTextColor,
|
||||
footerTosLink: uiData.footerTosLink,
|
||||
footerTosUrl: uiData.footerTosUrl,
|
||||
logoSvgData: uiData.logoSvgData,
|
||||
palettePrimaryDark: getPrimaryDarkColor(uiData.palettePrimaryDark),
|
||||
palettePrimaryLight: getPrimaryLightColor(uiData.palettePrimaryLight),
|
||||
@@ -208,39 +208,39 @@ export default function UserInterface() {
|
||||
/>
|
||||
|
||||
<TextField
|
||||
name="footerDocsLink"
|
||||
label={formatMessage('userInterfacePage.footerDocsLinkLabel')}
|
||||
name="footerDocsUrl"
|
||||
label={formatMessage('userInterfacePage.footerDocsUrlLabel')}
|
||||
multiline
|
||||
fullWidth
|
||||
data-test="logo-docs-text-field"
|
||||
/>
|
||||
|
||||
<TextField
|
||||
name="footerTosLink"
|
||||
label={formatMessage('userInterfacePage.footerTosLinkLabel')}
|
||||
name="footerTosUrl"
|
||||
label={formatMessage('userInterfacePage.footerTosUrlLabel')}
|
||||
multiline
|
||||
fullWidth
|
||||
data-test="logo-tos-text-field"
|
||||
data-test="logo-tos-url-text-field"
|
||||
/>
|
||||
|
||||
<TextField
|
||||
name="footerPrivacyPolicyLink"
|
||||
name="footerPrivacyPolicyUrl"
|
||||
label={formatMessage(
|
||||
'userInterfacePage.footerPrivacyPolicyLinkLabel',
|
||||
'userInterfacePage.footerPrivacyPolicyUrlLabel',
|
||||
)}
|
||||
multiline
|
||||
fullWidth
|
||||
data-test="logo-privacy-policy-text-field"
|
||||
data-test="logo-privacy-policy-url-text-field"
|
||||
/>
|
||||
|
||||
<TextField
|
||||
name="footerImprintLink"
|
||||
name="footerImprintUrl"
|
||||
label={formatMessage(
|
||||
'userInterfacePage.footerImprintLinkLabel',
|
||||
'userInterfacePage.footerImprintUrlLabel',
|
||||
)}
|
||||
multiline
|
||||
fullWidth
|
||||
data-test="logo-imprint-text-field"
|
||||
data-test="logo-imprint-url-text-field"
|
||||
/>
|
||||
|
||||
<LoadingButton
|
||||
|
||||
Reference in New Issue
Block a user