mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-23 08:23:54 +00:00
feat(services): add Jean Server one-click template and extra fields
Register the jean-server compose template, logo, and catalog entries, and expose token and allowed-origins settings on the service form. Sort extra fields by sortOrder and omit empty service-name prefixes.
This commit is contained in:
@@ -101,6 +101,7 @@ class StackForm extends Component
|
||||
$rules = data_get($field, 'rules', 'nullable');
|
||||
$isPassword = data_get($field, 'isPassword', false);
|
||||
$customHelper = data_get($field, 'customHelper', false);
|
||||
$sortOrder = data_get($field, 'sortOrder');
|
||||
$this->fields->put($key, [
|
||||
'serviceName' => $serviceName,
|
||||
'key' => $key,
|
||||
@@ -109,6 +110,7 @@ class StackForm extends Component
|
||||
'isPassword' => $isPassword,
|
||||
'rules' => $rules,
|
||||
'customHelper' => $customHelper,
|
||||
'sortOrder' => $sortOrder,
|
||||
]);
|
||||
|
||||
$this->validationAttributes["fields.$key.value"] = $fieldKey;
|
||||
@@ -116,7 +118,7 @@ class StackForm extends Component
|
||||
}
|
||||
$this->fields = $this->fields->groupBy('serviceName')->map(function ($group) {
|
||||
return $group->sortBy(function ($field) {
|
||||
return data_get($field, 'isPassword') ? 1 : 0;
|
||||
return data_get($field, 'sortOrder') ?? (data_get($field, 'isPassword') ? 1 : 0);
|
||||
})->mapWithKeys(function ($field) {
|
||||
return [$field['key'] => $field];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user