APP als Hybrid Version - Anbindung an API
This commit is contained in:
parent
d054732bf5
commit
c1514999be
46 changed files with 3418 additions and 196 deletions
37
backend/app/Http/Requests/UpdateSettingsRequest.php
Normal file
37
backend/app/Http/Requests/UpdateSettingsRequest.php
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class UpdateSettingsRequest extends FormRequest
|
||||
{
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'settings' => ['required', 'array'],
|
||||
'settings.theme' => ['nullable', 'string', 'max:50'],
|
||||
'settings.floatingLines' => ['nullable', 'array'],
|
||||
'settings.appearance' => ['nullable', 'string', 'max:50'],
|
||||
'settings.accentColor' => ['nullable', 'string', 'max:50'],
|
||||
'settings.language' => ['nullable', 'string', 'max:10'],
|
||||
'settings.emotionGradientStart' => ['nullable', 'string', 'max:20'],
|
||||
'settings.emotionGradientEnd' => ['nullable', 'string', 'max:20'],
|
||||
'settings.timelineZoom' => ['nullable', 'numeric', 'min:0.1', 'max:10'],
|
||||
'settings.timelineScrollLeft' => ['nullable', 'numeric', 'min:0'],
|
||||
'settings.showFps' => ['nullable', 'boolean'],
|
||||
'settings.presets' => ['nullable', 'array'],
|
||||
'settings.activePresetId' => ['nullable', 'string', 'max:100'],
|
||||
];
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue