Read toml formatted configs for display

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
2025-04-30 09:00:44 -07:00
parent 4c11d44918
commit 95647069eb
3 changed files with 12 additions and 11 deletions

View File

@@ -44,7 +44,7 @@ class GlModelHooks {
}
/**
* Render the config json in a <pre> tag
* Render the config toml in a <pre> tag
*
* @param $input The text inside the custom tag
* @param array $args Any attributes given in the tag
@@ -170,15 +170,8 @@ class GlModelHooks {
$uploadFormObj->mComment .= <<<CONF
<mvconfig>
{
"viewerConfig": {
"default": {
"camera-controls": true
}
},
"annotations": {},
"annotationSets": {}
}
[viewerConfig.default]
camera-controls = true
</mvconfig>
CONF;
}