refactor: replace custom CRM with Monica fork
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s

This commit is contained in:
Kroonk
2026-05-22 16:19:55 +02:00
parent 38cc4c09ca
commit a213a1dba0
2215 changed files with 242567 additions and 6015 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Http\Requests\People;
use App\Http\Requests\AuthorizedRequest;
class ContactFieldsRequest extends AuthorizedRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'contact_field_type_id' => 'required|integer',
'data' => 'max:255|required',
];
}
}

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Http\Requests\People;
use App\Http\Requests\AuthorizedRequest;
class ConversationRequest extends AuthorizedRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'happened_at' => 'required|date',
];
}
}

View File

@@ -0,0 +1,23 @@
<?php
namespace App\Http\Requests\People;
use App\Http\Requests\AuthorizedRequest;
class DebtRequest extends AuthorizedRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'in_debt' => 'required',
'amount' => 'required|numeric',
'reason' => 'string|nullable',
'status' => '',
];
}
}

View File

@@ -0,0 +1,27 @@
<?php
namespace App\Http\Requests\People;
use App\Http\Requests\AuthorizedRequest;
class GiftsRequest extends AuthorizedRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'name' => 'required',
'comment' => '',
'url' => '',
'offered' => 'string',
'date_offered' => 'date|nullable',
'value' => 'integer|nullable',
'has_recipient' => 'boolean',
'recipient' => 'required_with:has_recipient',
];
}
}

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Http\Requests\People;
use App\Http\Requests\AuthorizedRequest;
class NoteToggleRequest extends AuthorizedRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [];
}
}

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Http\Requests\People;
use App\Http\Requests\AuthorizedRequest;
class NotesRequest extends AuthorizedRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'body' => 'required|string',
'is_favorited' => 'boolean|required',
];
}
}

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Http\Requests\People;
use App\Http\Requests\AuthorizedRequest;
class PetsRequest extends AuthorizedRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'name' => 'max:255|nullable',
'pet_category_id' => 'integer',
];
}
}