feat: add mobile application structure with emotion picker and API integration
- Added favicon and icon assets for the mobile app. - Implemented EmotionPicker component for selecting emotions with child options. - Created hooks for fetching emotions, feeds, and rapport data. - Established API service for handling requests and authentication. - Integrated Zustand for state management of user authentication. - Defined color palette for the application. - Set up TypeScript types for various entities including User, Emotion, and Feed. - Configured Babel and TypeScript for the mobile project. - Added package.json with necessary dependencies for Expo and React Native.
This commit is contained in:
@@ -17,7 +17,7 @@ class StoreFeedRequest extends FormRequest
|
||||
$rules = [
|
||||
'titre' => 'required|string|max:255',
|
||||
'contenu' => 'required|string',
|
||||
'image_url' => 'nullable|string|max:500',
|
||||
'image_url' => 'nullable|url|max:500',
|
||||
'est_publie' => 'boolean',
|
||||
'ordre' => 'integer|min:0',
|
||||
];
|
||||
|
||||
@@ -17,7 +17,7 @@ class StoreSaisieRequest extends FormRequest
|
||||
'emotion_id' => 'required|exists:emotions,id',
|
||||
'intensite' => 'required|integer|between:1,10',
|
||||
'note' => 'nullable|string|max:2000',
|
||||
'date_saisie' => 'required|date',
|
||||
'date_saisie' => 'required|date_format:Y-m-d',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class UpdatePasswordRequest extends FormRequest
|
||||
{
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'ancien_mot_de_passe' => 'required|string',
|
||||
'password' => 'required|string|min:8|confirmed',
|
||||
];
|
||||
}
|
||||
|
||||
public function messages(): array
|
||||
{
|
||||
return [
|
||||
'ancien_mot_de_passe.required' => 'L\'ancien mot de passe est obligatoire.',
|
||||
'password.required' => 'Le nouveau mot de passe est obligatoire.',
|
||||
'password.min' => 'Le nouveau mot de passe doit contenir au moins 8 caractères.',
|
||||
'password.confirmed' => 'La confirmation du mot de passe ne correspond pas.',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user