mirror of
https://github.com/flarum/core.git
synced 2025-08-06 16:36:47 +02:00
feat: Admin debug mode warning (#3590)
* feat: Admin debug mode warning * prettier * Wrap in Alert component * feat: add `title` and `icon` attributes to the `Alert` component Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com> * Update framework/core/js/src/admin/components/DebugWarningWidget.js Co-authored-by: Sami Mazouz <sychocouldy@gmail.com> * Update framework/core/locale/core.yml Co-authored-by: Sami Mazouz <sychocouldy@gmail.com> * prettier * chore: convert to TS Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com> * Update framework/core/js/src/common/components/Alert.tsx Co-authored-by: David Wheatley <hi@davwheat.dev> * chore: add docs link Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com> Co-authored-by: Sami Mazouz <ilyasmazouz@gmail.com> Co-authored-by: Sami Mazouz <sychocouldy@gmail.com> Co-authored-by: David Wheatley <hi@davwheat.dev>
This commit is contained in:
@@ -59,6 +59,14 @@ core:
|
||||
title: Dashboard
|
||||
tools_button: Tools
|
||||
|
||||
# These translations are usin in the debug warning widget.
|
||||
debug-warning:
|
||||
detail: |
|
||||
When <code>debug</code> mode is active, Flarum will rebuild its <code>JavaScript</code> and <code>CSS</code> assets on every request, and could also potentially leak other information, such as database secrets, environment variables, etc.
|
||||
|
||||
It is highly recommended to disable <code>debug</code> in your <code>config.php</code> file in production. See <link>Flarum docs</link> for more information.
|
||||
label: Debug mode active
|
||||
|
||||
# These translations are used in the Edit Custom CSS modal dialog.
|
||||
edit_css:
|
||||
customize_text: "Customize your forum's appearance by adding your own Less/CSS code to be applied on top of Flarum's <a>default styles</a>."
|
||||
|
Reference in New Issue
Block a user