nicolium: wip preferences changes
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
"correctness": "error",
|
||||
"suspicious": "error",
|
||||
"pedantic": "warn",
|
||||
"perf": "warn",
|
||||
"perf": "warn"
|
||||
},
|
||||
"rules": {
|
||||
"max-dependencies": "off",
|
||||
|
||||
@ -54,6 +54,9 @@
|
||||
"ws": "^8.18.3"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{js,cjs,mjs,ts}": ["oxlint", "oxfmt --check"]
|
||||
"*.{js,cjs,mjs,ts}": [
|
||||
"oxlint",
|
||||
"oxfmt --check"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@ -1408,7 +1408,7 @@
|
||||
"plfe_config.fields.logo_label": "Logo",
|
||||
"plfe_config.fields.promo_panel_fields_label": "Promo panel items",
|
||||
"plfe_config.fields.theme_label": "Default theme",
|
||||
"plfe_config.greentext_label": "Enable greentext support",
|
||||
"plfe_config.greentext_label": "<span>>render greentext</span>",
|
||||
"plfe_config.headings.advanced": "Advanced",
|
||||
"plfe_config.headings.cryptocurrency": "Cryptocurrency",
|
||||
"plfe_config.headings.events": "Events",
|
||||
|
||||
@ -61,7 +61,10 @@ const messages = defineMessages({
|
||||
id: 'plfe_config.display_fqn_label',
|
||||
defaultMessage: 'Display domain (eg @user@domain) for local accounts.',
|
||||
},
|
||||
greentextLabel: { id: 'plfe_config.greentext_label', defaultMessage: 'Enable greentext support' },
|
||||
greentextLabel: {
|
||||
id: 'plfe_config.greentext_label',
|
||||
defaultMessage: '<span>>render greentext</span>',
|
||||
},
|
||||
mediaPreviewLabel: {
|
||||
id: 'plfe_config.media_preview_label',
|
||||
defaultMessage: 'Prefer preview media for thumbnails',
|
||||
@ -352,7 +355,13 @@ const FrontendConfigEditor: React.FC = () => {
|
||||
/>
|
||||
</ListItem>
|
||||
|
||||
<ListItem label={intl.formatMessage(messages.greentextLabel)}>
|
||||
<ListItem
|
||||
label={intl.formatMessage(messages.greentextLabel, {
|
||||
span: (children) => (
|
||||
<span className='dark:text-accent-green text-lime-600'>{children}</span>
|
||||
),
|
||||
})}
|
||||
>
|
||||
<Toggle
|
||||
checked={frontendConfig.greentext}
|
||||
onChange={handleChange('greentext', (e) => e.target.checked)}
|
||||
|
||||
Reference in New Issue
Block a user