create BO 1/2
This commit is contained in:
parent
17e4f9ec13
commit
b0c28605fb
115 changed files with 13445 additions and 11751 deletions
58
app/Console/Commands/AdminCreate.php
Normal file
58
app/Console/Commands/AdminCreate.php
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
use App\Models\User;
|
||||
|
||||
class AdminCreate extends Command
|
||||
{
|
||||
/**
|
||||
* The name and signature of the console command.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'admin:create';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $description = 'Create Admin User';
|
||||
|
||||
/**
|
||||
* Create a new command instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
$role = 0;
|
||||
$name = $this->ask('Name ?');
|
||||
$email = $this->ask('Email ?');
|
||||
$password = $this->secret('What is the password?');
|
||||
|
||||
$user = new User([
|
||||
'name' => $name,
|
||||
'email' => $email,
|
||||
'role' => $role,
|
||||
'password' => Hash::make($password)
|
||||
]);
|
||||
$user->saveOrFail();
|
||||
|
||||
$this->info('Admin created.');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,10 +1,30 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Undocumented class
|
||||
*
|
||||
* @category Description
|
||||
* @package Category
|
||||
* @author Name <email@email.com>
|
||||
* @license http://url.com MIT
|
||||
* @link http://url.com
|
||||
* phpcs:ignore PEAR.Commenting.FileComment.MissingVersion
|
||||
*/
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* Undocumented class
|
||||
*
|
||||
* @category Description
|
||||
* @package Category
|
||||
* @author Name <email@email.com>
|
||||
* @license http://url.com MIT
|
||||
* @link http://url.com
|
||||
*/
|
||||
class Handler extends ExceptionHandler
|
||||
{
|
||||
/**
|
||||
|
|
@ -34,8 +54,38 @@ class Handler extends ExceptionHandler
|
|||
*/
|
||||
public function register()
|
||||
{
|
||||
$this->reportable(function (Throwable $e) {
|
||||
//
|
||||
});
|
||||
$this->reportable(
|
||||
function (Throwable $e) {
|
||||
try {
|
||||
if (!config('app.debug')) {
|
||||
if ($this->shouldntReport($e)) {
|
||||
return false;
|
||||
}
|
||||
Mail::send(
|
||||
[
|
||||
'html' => 'emails.exception',
|
||||
'text' => 'emails.exception-plain'
|
||||
],
|
||||
[
|
||||
'exception' => $e,
|
||||
'appName' => config('app.name')
|
||||
],
|
||||
function ($m) {
|
||||
$m->to(
|
||||
config('mail.contactsList.serviceweb'),
|
||||
sprintf(
|
||||
'%s Exception Handler',
|
||||
config('app.name')
|
||||
)
|
||||
//phpcs:ignore Generic.Files.LineLength.TooLong
|
||||
)->subject('Need help !, an error occured in your application, please check Logs ASAP');
|
||||
}
|
||||
);
|
||||
}
|
||||
} finally {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
39
app/Http/Controllers/Auth/ConfirmPasswordController.php
Normal file
39
app/Http/Controllers/Auth/ConfirmPasswordController.php
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Auth;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Providers\RouteServiceProvider;
|
||||
use Illuminate\Foundation\Auth\ConfirmsPasswords;
|
||||
|
||||
class ConfirmPasswordController extends Controller
|
||||
{
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Confirm Password Controller
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This controller is responsible for handling password confirmations and
|
||||
| uses a simple trait to include the behavior. You're free to explore
|
||||
| this trait and override any functions that require customization.
|
||||
|
|
||||
*/
|
||||
use ConfirmsPasswords;
|
||||
|
||||
/**
|
||||
* Where to redirect users when the intended url fails.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $redirectTo = RouteServiceProvider::HOME;
|
||||
|
||||
/**
|
||||
* Create a new controller instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('auth');
|
||||
}
|
||||
}
|
||||
21
app/Http/Controllers/Auth/ForgotPasswordController.php
Normal file
21
app/Http/Controllers/Auth/ForgotPasswordController.php
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Auth;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
|
||||
|
||||
class ForgotPasswordController extends Controller
|
||||
{
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reset Controller
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This controller is responsible for handling password reset emails and
|
||||
| includes a trait which assists in sending these notifications from
|
||||
| your application to your users. Feel free to explore this trait.
|
||||
|
|
||||
*/
|
||||
use SendsPasswordResetEmails;
|
||||
}
|
||||
59
app/Http/Controllers/Auth/LoginController.php
Normal file
59
app/Http/Controllers/Auth/LoginController.php
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Controller pour le login
|
||||
*
|
||||
* @category Description
|
||||
* @package Category
|
||||
* @author Name <email@email.com>
|
||||
* @license http://url.com MIT
|
||||
* @link http://url.com
|
||||
* phpcs:ignore PEAR.Commenting.FileComment.MissingVersion
|
||||
*/
|
||||
|
||||
namespace App\Http\Controllers\Auth;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Providers\RouteServiceProvider;
|
||||
use Illuminate\Foundation\Auth\AuthenticatesUsers;
|
||||
|
||||
/**
|
||||
* Undocumented class
|
||||
*
|
||||
* @category Description
|
||||
* @package Category
|
||||
* @author Name <email@email.com>
|
||||
* @license http://url.com MIT
|
||||
* @link http://url.com
|
||||
*/
|
||||
class LoginController extends Controller
|
||||
{
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Login Controller
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This controller handles authenticating users for the application and
|
||||
| redirecting them to your home screen. The controller uses a trait
|
||||
| to conveniently provide its functionality to your applications.
|
||||
|
|
||||
*/
|
||||
use AuthenticatesUsers;
|
||||
|
||||
/**
|
||||
* Where to redirect users after login.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $redirectTo = RouteServiceProvider::HOME;
|
||||
|
||||
/**
|
||||
* Create a new controller instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('guest:web')->except('logout');
|
||||
}
|
||||
}
|
||||
72
app/Http/Controllers/Auth/RegisterController.php
Normal file
72
app/Http/Controllers/Auth/RegisterController.php
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Auth;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Providers\RouteServiceProvider;
|
||||
use App\Models\User;
|
||||
use Illuminate\Foundation\Auth\RegistersUsers;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
|
||||
class RegisterController extends Controller
|
||||
{
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Register Controller
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This controller handles the registration of new users as well as their
|
||||
| validation and creation. By default this controller uses a trait to
|
||||
| provide this functionality without requiring any additional code.
|
||||
|
|
||||
*/
|
||||
use RegistersUsers;
|
||||
|
||||
/**
|
||||
* Where to redirect users after registration.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $redirectTo = RouteServiceProvider::HOME;
|
||||
|
||||
/**
|
||||
* Create a new controller instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('guest:web');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a validator for an incoming registration request.
|
||||
*
|
||||
* @param array $data
|
||||
* @return \Illuminate\Contracts\Validation\Validator
|
||||
*/
|
||||
protected function validator(array $data)
|
||||
{
|
||||
return Validator::make($data, [
|
||||
'name' => ['required', 'string', 'max:255'],
|
||||
'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
|
||||
'password' => ['required', 'string', 'min:8', 'confirmed'],
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new user instance after a valid registration.
|
||||
*
|
||||
* @param array $data
|
||||
* @return \App\Models\User
|
||||
*/
|
||||
protected function create(array $data)
|
||||
{
|
||||
return User::create([
|
||||
'name' => $data['name'],
|
||||
'email' => $data['email'],
|
||||
'password' => Hash::make($data['password']),
|
||||
]);
|
||||
}
|
||||
}
|
||||
29
app/Http/Controllers/Auth/ResetPasswordController.php
Normal file
29
app/Http/Controllers/Auth/ResetPasswordController.php
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Auth;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Providers\RouteServiceProvider;
|
||||
use Illuminate\Foundation\Auth\ResetsPasswords;
|
||||
|
||||
class ResetPasswordController extends Controller
|
||||
{
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reset Controller
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This controller is responsible for handling password reset requests
|
||||
| and uses a simple trait to include this behavior. You're free to
|
||||
| explore this trait and override any methods you wish to tweak.
|
||||
|
|
||||
*/
|
||||
use ResetsPasswords;
|
||||
|
||||
/**
|
||||
* Where to redirect users after resetting their password.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $redirectTo = RouteServiceProvider::HOME;
|
||||
}
|
||||
41
app/Http/Controllers/Auth/VerificationController.php
Normal file
41
app/Http/Controllers/Auth/VerificationController.php
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Auth;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Providers\RouteServiceProvider;
|
||||
use Illuminate\Foundation\Auth\VerifiesEmails;
|
||||
|
||||
class VerificationController extends Controller
|
||||
{
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Email Verification Controller
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This controller is responsible for handling email verification for any
|
||||
| user that recently registered with the application. Emails may also
|
||||
| be re-sent if the user didn't receive the original email message.
|
||||
|
|
||||
*/
|
||||
use VerifiesEmails;
|
||||
|
||||
/**
|
||||
* Where to redirect users after verification.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $redirectTo = RouteServiceProvider::HOME;
|
||||
|
||||
/**
|
||||
* Create a new controller instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('auth');
|
||||
$this->middleware('signed')->only('verify');
|
||||
$this->middleware('throttle:6,1')->only('verify', 'resend');
|
||||
}
|
||||
}
|
||||
18
app/Http/Controllers/Bo/HomeController.php
Normal file
18
app/Http/Controllers/Bo/HomeController.php
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Bo;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Support\Facades\View;
|
||||
use Kwaadpepper\CrudPolicies\Traits\CrudController;
|
||||
|
||||
class HomeController extends Controller
|
||||
{
|
||||
// BO
|
||||
|
||||
public function home()
|
||||
{
|
||||
// View::share('modelsClasses', CrudController::getCrudModels());
|
||||
return view('back.home');
|
||||
}
|
||||
}
|
||||
64
app/Http/Controllers/ContactController.php
Normal file
64
app/Http/Controllers/ContactController.php
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Controller pour le contact
|
||||
*
|
||||
* @category Description
|
||||
* @package Category
|
||||
* @author Name <email@email.com>
|
||||
* @license http://url.com MIT
|
||||
* @link http://url.com
|
||||
* phpcs:ignore PEAR.Commenting.FileComment.MissingVersion
|
||||
*/
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Http\Requests\ContactFormRequest;
|
||||
use App\Mail\SendContactMail;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
|
||||
/**
|
||||
* Undocumented class
|
||||
*
|
||||
* @category Description
|
||||
* @package Category
|
||||
* @author Name <email@email.com>
|
||||
* @license http://url.com MIT
|
||||
* @link http://url.com
|
||||
*/
|
||||
class ContactController extends Controller
|
||||
{
|
||||
/**
|
||||
* Undocumented function
|
||||
*
|
||||
* @param Request $request La requete
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function contact(Request $request)
|
||||
{
|
||||
$status = $request->session()->get('status');
|
||||
|
||||
return view('front.contact', compact('status'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Undocumented function
|
||||
*
|
||||
* @param ContactFormRequest $request La requete
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function contactSubmit(ContactFormRequest $request)
|
||||
{
|
||||
$data = $request->all();
|
||||
|
||||
$toMail = env('MAIL_LIST_CONTACTFORM', config('mail.from.address'));
|
||||
//envoi du mail d'alerte
|
||||
Mail::to($toMail)
|
||||
->send(new SendContactMail($request));
|
||||
|
||||
return back()->with('status', true);
|
||||
}
|
||||
}
|
||||
|
|
@ -8,6 +8,6 @@ class HomeController extends Controller
|
|||
{
|
||||
public function index()
|
||||
{
|
||||
return view('home');
|
||||
return view('front.home');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,21 +1,42 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Middleware pour l'auth
|
||||
*
|
||||
* @category Description
|
||||
* @package Category
|
||||
* @author Name <email@email.com>
|
||||
* @license http://url.com MIT
|
||||
* @link http://url.com
|
||||
* phpcs:ignore PEAR.Commenting.FileComment.MissingVersion
|
||||
*/
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Illuminate\Auth\Middleware\Authenticate as Middleware;
|
||||
|
||||
/**
|
||||
* Undocumented class
|
||||
*
|
||||
* @category Description
|
||||
* @package Category
|
||||
* @author Name <email@email.com>
|
||||
* @license http://url.com MIT
|
||||
* @link http://url.com
|
||||
*/
|
||||
class Authenticate extends Middleware
|
||||
{
|
||||
/**
|
||||
* Get the path the user should be redirected to when they are not authenticated.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \Illuminate\Http\Request $request La requête
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
protected function redirectTo($request)
|
||||
{
|
||||
if (! $request->expectsJson()) {
|
||||
return route('login');
|
||||
if (!$request->expectsJson()) {
|
||||
return route('bo.login');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
60
app/Http/Requests/ContactFormRequest.php
Normal file
60
app/Http/Requests/ContactFormRequest.php
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class ContactFormRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function authorize()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
'civilite' => 'required|in:monsieur,madame',
|
||||
'name' => 'required|min:2',
|
||||
'lastname' => 'required|min:2',
|
||||
'address' => 'required|max:255',
|
||||
'postcode' => 'required',
|
||||
'city' => 'required|string|max:255',
|
||||
'phone' => 'required|max:255',
|
||||
'email' => 'required|email:rfc,dns,spoof|max:255',
|
||||
'topic' => 'required',
|
||||
'product_name' => 'required_if:topic,Réclamation|max:255',
|
||||
'barcode' => 'required_if:topic,Réclamation|max:128',
|
||||
'shop' => 'required_if:topic,Réclamation|max:255',
|
||||
'lot' => 'required_if:topic,Réclamation|max:255',
|
||||
'limit_date' => 'required_if:topic,Réclamation|date|nullable',
|
||||
'consumption_date' => 'required_if:topic,Réclamation|date|nullable',
|
||||
'message' => 'required|min:25',
|
||||
'file' => 'nullable|mimes:jpg,jpeg,png,pdf|max:5120',
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the error messages for the defined validation rules.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function messages()
|
||||
{
|
||||
return [
|
||||
'topic.required' => __('Veuille préciser la nature de votre demande.'),
|
||||
'file.max' => __('La taille du fichier ne peut pas dépasser :max kilo-octets.'),
|
||||
'file.mimes' => __('Le fichier doit être de type : :values.'),
|
||||
];
|
||||
}
|
||||
}
|
||||
102
app/Mail/SendContactMail.php
Normal file
102
app/Mail/SendContactMail.php
Normal file
|
|
@ -0,0 +1,102 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Sender pour le contact
|
||||
*
|
||||
* @category Description
|
||||
* @package Category
|
||||
* @author Name <email@email.com>
|
||||
* @license http://url.com MIT
|
||||
* @link http://url.com
|
||||
* phpcs:ignore PEAR.Commenting.FileComment.MissingVersion
|
||||
*/
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
/**
|
||||
* Undocumented class
|
||||
*
|
||||
* @category Description
|
||||
* @package Category
|
||||
* @author Name <email@email.com>
|
||||
* @license http://url.com MIT
|
||||
* @link http://url.com
|
||||
*/
|
||||
class SendContactMail extends Mailable
|
||||
{
|
||||
use Queueable;
|
||||
use SerializesModels;
|
||||
|
||||
/**
|
||||
* The form data.
|
||||
*/
|
||||
protected $data;
|
||||
|
||||
/**
|
||||
* The joined file name
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $joinedFileName;
|
||||
|
||||
|
||||
/**
|
||||
* Create a new message instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($data)
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the message.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function build()
|
||||
{
|
||||
$data = $this->data;
|
||||
$this->joinFileIfProvided();
|
||||
|
||||
return $this->subject(
|
||||
"Contact - " .
|
||||
config('app.name', 'Doux') .
|
||||
" - " .
|
||||
$data->topic
|
||||
)
|
||||
->from($data->email)
|
||||
->view('emails.send-contact', compact('data'));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Attach a joined file if given in data
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function joinFileIfProvided(): void
|
||||
{
|
||||
if ($this->data->file) {
|
||||
$this->joinedFileName = sprintf(
|
||||
'Doux_MESSAGE-PJ-%s.%s',
|
||||
date("YmdHis"),
|
||||
$this->data->file->extension()
|
||||
);
|
||||
$this->attach(
|
||||
$this->data->file,
|
||||
[
|
||||
'as' => $this->joinedFileName,
|
||||
'mime' => $this->data->file->getMimeType()
|
||||
]
|
||||
);
|
||||
$this->data->file = $this->joinedFileName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -10,7 +10,8 @@
|
|||
"guzzlehttp/guzzle": "^7.0.1",
|
||||
"laravel/framework": "^8.65",
|
||||
"laravel/sanctum": "^2.11",
|
||||
"laravel/tinker": "^2.5"
|
||||
"laravel/tinker": "^2.5",
|
||||
"laravel/ui": "^3.3"
|
||||
},
|
||||
"require-dev": {
|
||||
"facade/ignition": "^2.5",
|
||||
|
|
|
|||
60
composer.lock
generated
60
composer.lock
generated
|
|
@ -4,7 +4,7 @@
|
|||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "d4842c22e789d247c4b660e69490545f",
|
||||
"content-hash": "4e38664dc2e1313269ea0f10ec8cbadf",
|
||||
"packages": [
|
||||
{
|
||||
"name": "asm89/stack-cors",
|
||||
|
|
@ -1246,6 +1246,64 @@
|
|||
},
|
||||
"time": "2021-09-28T15:47:34+00:00"
|
||||
},
|
||||
{
|
||||
"name": "laravel/ui",
|
||||
"version": "v3.3.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/laravel/ui.git",
|
||||
"reference": "08ea313a35dfc89ff0cd9916ca0bcef9715d0ed6"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/laravel/ui/zipball/08ea313a35dfc89ff0cd9916ca0bcef9715d0ed6",
|
||||
"reference": "08ea313a35dfc89ff0cd9916ca0bcef9715d0ed6",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"illuminate/console": "^8.42|^9.0",
|
||||
"illuminate/filesystem": "^8.42|^9.0",
|
||||
"illuminate/support": "^8.42|^9.0",
|
||||
"illuminate/validation": "^8.42|^9.0",
|
||||
"php": "^7.3|^8.0"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "3.x-dev"
|
||||
},
|
||||
"laravel": {
|
||||
"providers": [
|
||||
"Laravel\\Ui\\UiServiceProvider"
|
||||
]
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Laravel\\Ui\\": "src/",
|
||||
"Illuminate\\Foundation\\Auth\\": "auth-backend/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Taylor Otwell",
|
||||
"email": "taylor@laravel.com"
|
||||
}
|
||||
],
|
||||
"description": "Laravel UI utilities and presets.",
|
||||
"keywords": [
|
||||
"laravel",
|
||||
"ui"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/laravel/ui/tree/v3.3.3"
|
||||
},
|
||||
"time": "2021-11-21T22:20:05+00:00"
|
||||
},
|
||||
{
|
||||
"name": "league/commonmark",
|
||||
"version": "1.6.6",
|
||||
|
|
|
|||
|
|
@ -15,9 +15,9 @@ class CreateUsersTable extends Migration
|
|||
{
|
||||
Schema::create('users', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->smallInteger('role');
|
||||
$table->string('name');
|
||||
$table->string('email')->unique();
|
||||
$table->timestamp('email_verified_at')->nullable();
|
||||
$table->string('password');
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
|
|
|
|||
171
package-lock.json
generated
171
package-lock.json
generated
|
|
@ -11,17 +11,22 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"axios": "^0.21",
|
||||
"bootstrap": "^4.6.0",
|
||||
"clean-webpack-plugin": "^3.0.0",
|
||||
"jquery": "^3.6",
|
||||
"laravel-mix": "^6.0.6",
|
||||
"laravel-mix-polyfill": "^3.0.1",
|
||||
"lodash": "^4.17.19",
|
||||
"popper.js": "^1.16.1",
|
||||
"postcss": "^8.1.14",
|
||||
"resolve-url-loader": "^4.0.0",
|
||||
"sass": "^1.43.4",
|
||||
"sass-loader": "^12.1.0",
|
||||
"sass": "^1.32.11",
|
||||
"sass-loader": "^11.0.1",
|
||||
"ui": "^0.2.4",
|
||||
"vue-loader": "^15.9.8",
|
||||
"vue-select": "^3.16.0",
|
||||
"vue-template-compiler": "^2.6.14",
|
||||
"webpack": "^5.61.0"
|
||||
"webpack": "^5.64.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/code-frame": {
|
||||
|
|
@ -2696,6 +2701,20 @@
|
|||
"integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/bootstrap": {
|
||||
"version": "4.6.1",
|
||||
"resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-4.6.1.tgz",
|
||||
"integrity": "sha512-0dj+VgI9Ecom+rvvpNZ4MUZJz8dcX7WCX+eTID9+/8HgOkv3dsRzi8BGeZJCQU6flWQVYxwTQnEZFrmJSEO7og==",
|
||||
"dev": true,
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/bootstrap"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"jquery": "1.9.1 - 3",
|
||||
"popper.js": "^1.16.1"
|
||||
}
|
||||
},
|
||||
"node_modules/brace-expansion": {
|
||||
"version": "1.1.11",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
|
||||
|
|
@ -5581,6 +5600,12 @@
|
|||
"url": "https://github.com/chalk/supports-color?sponsor=1"
|
||||
}
|
||||
},
|
||||
"node_modules/jquery": {
|
||||
"version": "3.6.0",
|
||||
"resolved": "https://registry.npmjs.org/jquery/-/jquery-3.6.0.tgz",
|
||||
"integrity": "sha512-JVzAR/AjBvVt2BmYhxRCSYysDsPcssdmTFnzyLEts9qNwmjmu4JTAMYubEfwVOSwpQ1I1sKKFcxhZCI2buerfw==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/js-tokens": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
|
||||
|
|
@ -6824,6 +6849,17 @@
|
|||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/popper.js": {
|
||||
"version": "1.16.1",
|
||||
"resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.16.1.tgz",
|
||||
"integrity": "sha512-Wb4p1J4zyFTbM+u6WuO4XstYx4Ky9Cewe4DWrel7B0w6VVICvPwdOpotjzcf6eD8TsckVnIMNONQyPIUFOUbCQ==",
|
||||
"deprecated": "You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1",
|
||||
"dev": true,
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/popperjs"
|
||||
}
|
||||
},
|
||||
"node_modules/portfinder": {
|
||||
"version": "1.0.28",
|
||||
"resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.28.tgz",
|
||||
|
|
@ -7967,16 +8003,16 @@
|
|||
}
|
||||
},
|
||||
"node_modules/sass-loader": {
|
||||
"version": "12.3.0",
|
||||
"resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-12.3.0.tgz",
|
||||
"integrity": "sha512-6l9qwhdOb7qSrtOu96QQ81LVl8v6Dp9j1w3akOm0aWHyrTYtagDt5+kS32N4yq4hHk3M+rdqoRMH+lIdqvW6HA==",
|
||||
"version": "11.1.1",
|
||||
"resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-11.1.1.tgz",
|
||||
"integrity": "sha512-fOCp/zLmj1V1WHDZbUbPgrZhA7HKXHEqkslzB+05U5K9SbSbcmH91C7QLW31AsXikxUMaxXRhhcqWZAxUMLDyA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"klona": "^2.0.4",
|
||||
"neo-async": "^2.6.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 12.13.0"
|
||||
"node": ">= 10.13.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
|
|
@ -8356,6 +8392,15 @@
|
|||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/std": {
|
||||
"version": "0.1.40",
|
||||
"resolved": "https://registry.npmjs.org/std/-/std-0.1.40.tgz",
|
||||
"integrity": "sha1-Nnil9lCU2eG2teJu2/wCErg0K3E=",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/std-env": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/std-env/-/std-env-3.0.1.tgz",
|
||||
|
|
@ -8737,6 +8782,18 @@
|
|||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/ui": {
|
||||
"version": "0.2.4",
|
||||
"resolved": "https://registry.npmjs.org/ui/-/ui-0.2.4.tgz",
|
||||
"integrity": "sha1-ObfICGsrG2SnLGQ3w43cfE5Og20=",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"std": "0.1.x"
|
||||
},
|
||||
"engines": {
|
||||
"node": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/unicode-canonical-property-names-ecmascript": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz",
|
||||
|
|
@ -8934,6 +8991,15 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"node_modules/vue-select": {
|
||||
"version": "3.16.0",
|
||||
"resolved": "https://registry.npmjs.org/vue-select/-/vue-select-3.16.0.tgz",
|
||||
"integrity": "sha512-F0x7HXTUc5eq7YSjR0uX77RGA+Yk2+I8aMW+NePyPqRX9OPSiDtKpezFIFhnhxqrOvMh4uVR0jHkXIDmzs6nYQ==",
|
||||
"dev": true,
|
||||
"peerDependencies": {
|
||||
"vue": "2.x"
|
||||
}
|
||||
},
|
||||
"node_modules/vue-style-loader": {
|
||||
"version": "4.1.3",
|
||||
"resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.3.tgz",
|
||||
|
|
@ -8961,9 +9027,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"node_modules/watchpack": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.2.0.tgz",
|
||||
"integrity": "sha512-up4YAn/XHgZHIxFBVCdlMiWDj6WaLKpwVeGQk2I5thdYxF/KmF0aaz6TfJZ/hfl1h/XlcDr7k1KH7ThDagpFaA==",
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.3.0.tgz",
|
||||
"integrity": "sha512-MnN0Q1OsvB/GGHETrFeZPQaOelWh/7O+EiFlj8sM9GPjtQkis7k01aAxrg/18kTfoIVcLL+haEVFlXDaSRwKRw==",
|
||||
"dependencies": {
|
||||
"glob-to-regexp": "^0.4.1",
|
||||
"graceful-fs": "^4.1.2"
|
||||
|
|
@ -8982,9 +9048,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/webpack": {
|
||||
"version": "5.62.0",
|
||||
"resolved": "https://registry.npmjs.org/webpack/-/webpack-5.62.0.tgz",
|
||||
"integrity": "sha512-4SyIaLQxm0JjUrQQ4UTHUU19rgl6hzidd8tYOBB3y78DKLBAVI777SYnl3f8e1XkHLYuILcyC7oUVs4mUZYKRg==",
|
||||
"version": "5.64.4",
|
||||
"resolved": "https://registry.npmjs.org/webpack/-/webpack-5.64.4.tgz",
|
||||
"integrity": "sha512-LWhqfKjCLoYJLKJY8wk2C3h77i8VyHowG3qYNZiIqD6D0ZS40439S/KVuc/PY48jp2yQmy0mhMknq8cys4jFMw==",
|
||||
"dependencies": {
|
||||
"@types/eslint-scope": "^3.7.0",
|
||||
"@types/estree": "^0.0.50",
|
||||
|
|
@ -9008,8 +9074,8 @@
|
|||
"schema-utils": "^3.1.0",
|
||||
"tapable": "^2.1.1",
|
||||
"terser-webpack-plugin": "^5.1.3",
|
||||
"watchpack": "^2.2.0",
|
||||
"webpack-sources": "^3.2.0"
|
||||
"watchpack": "^2.3.0",
|
||||
"webpack-sources": "^3.2.2"
|
||||
},
|
||||
"bin": {
|
||||
"webpack": "bin/webpack.js"
|
||||
|
|
@ -9351,9 +9417,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/webpack/node_modules/webpack-sources": {
|
||||
"version": "3.2.1",
|
||||
"resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.1.tgz",
|
||||
"integrity": "sha512-t6BMVLQ0AkjBOoRTZgqrWm7xbXMBzD+XDq2EZ96+vMfn3qKgsvdXZhbPZ4ElUOpdv4u+iiGe+w3+J75iy/bYGA==",
|
||||
"version": "3.2.2",
|
||||
"resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.2.tgz",
|
||||
"integrity": "sha512-cp5qdmHnu5T8wRg2G3vZZHoJPN14aqQ89SyQ11NpGH5zEMDCclt49rzo+MaRazk7/UeILhAI+/sEtcM+7Fr0nw==",
|
||||
"engines": {
|
||||
"node": ">=10.13.0"
|
||||
}
|
||||
|
|
@ -11578,6 +11644,13 @@
|
|||
"integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=",
|
||||
"dev": true
|
||||
},
|
||||
"bootstrap": {
|
||||
"version": "4.6.1",
|
||||
"resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-4.6.1.tgz",
|
||||
"integrity": "sha512-0dj+VgI9Ecom+rvvpNZ4MUZJz8dcX7WCX+eTID9+/8HgOkv3dsRzi8BGeZJCQU6flWQVYxwTQnEZFrmJSEO7og==",
|
||||
"dev": true,
|
||||
"requires": {}
|
||||
},
|
||||
"brace-expansion": {
|
||||
"version": "1.1.11",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
|
||||
|
|
@ -13807,6 +13880,12 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"jquery": {
|
||||
"version": "3.6.0",
|
||||
"resolved": "https://registry.npmjs.org/jquery/-/jquery-3.6.0.tgz",
|
||||
"integrity": "sha512-JVzAR/AjBvVt2BmYhxRCSYysDsPcssdmTFnzyLEts9qNwmjmu4JTAMYubEfwVOSwpQ1I1sKKFcxhZCI2buerfw==",
|
||||
"dev": true
|
||||
},
|
||||
"js-tokens": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
|
||||
|
|
@ -14760,6 +14839,12 @@
|
|||
"find-up": "^4.0.0"
|
||||
}
|
||||
},
|
||||
"popper.js": {
|
||||
"version": "1.16.1",
|
||||
"resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.16.1.tgz",
|
||||
"integrity": "sha512-Wb4p1J4zyFTbM+u6WuO4XstYx4Ky9Cewe4DWrel7B0w6VVICvPwdOpotjzcf6eD8TsckVnIMNONQyPIUFOUbCQ==",
|
||||
"dev": true
|
||||
},
|
||||
"portfinder": {
|
||||
"version": "1.0.28",
|
||||
"resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.28.tgz",
|
||||
|
|
@ -15553,9 +15638,9 @@
|
|||
}
|
||||
},
|
||||
"sass-loader": {
|
||||
"version": "12.3.0",
|
||||
"resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-12.3.0.tgz",
|
||||
"integrity": "sha512-6l9qwhdOb7qSrtOu96QQ81LVl8v6Dp9j1w3akOm0aWHyrTYtagDt5+kS32N4yq4hHk3M+rdqoRMH+lIdqvW6HA==",
|
||||
"version": "11.1.1",
|
||||
"resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-11.1.1.tgz",
|
||||
"integrity": "sha512-fOCp/zLmj1V1WHDZbUbPgrZhA7HKXHEqkslzB+05U5K9SbSbcmH91C7QLW31AsXikxUMaxXRhhcqWZAxUMLDyA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"klona": "^2.0.4",
|
||||
|
|
@ -15871,6 +15956,12 @@
|
|||
"integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=",
|
||||
"dev": true
|
||||
},
|
||||
"std": {
|
||||
"version": "0.1.40",
|
||||
"resolved": "https://registry.npmjs.org/std/-/std-0.1.40.tgz",
|
||||
"integrity": "sha1-Nnil9lCU2eG2teJu2/wCErg0K3E=",
|
||||
"dev": true
|
||||
},
|
||||
"std-env": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/std-env/-/std-env-3.0.1.tgz",
|
||||
|
|
@ -16141,6 +16232,15 @@
|
|||
"mime-types": "~2.1.24"
|
||||
}
|
||||
},
|
||||
"ui": {
|
||||
"version": "0.2.4",
|
||||
"resolved": "https://registry.npmjs.org/ui/-/ui-0.2.4.tgz",
|
||||
"integrity": "sha1-ObfICGsrG2SnLGQ3w43cfE5Og20=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"std": "0.1.x"
|
||||
}
|
||||
},
|
||||
"unicode-canonical-property-names-ecmascript": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz",
|
||||
|
|
@ -16297,6 +16397,13 @@
|
|||
"vue-style-loader": "^4.1.0"
|
||||
}
|
||||
},
|
||||
"vue-select": {
|
||||
"version": "3.16.0",
|
||||
"resolved": "https://registry.npmjs.org/vue-select/-/vue-select-3.16.0.tgz",
|
||||
"integrity": "sha512-F0x7HXTUc5eq7YSjR0uX77RGA+Yk2+I8aMW+NePyPqRX9OPSiDtKpezFIFhnhxqrOvMh4uVR0jHkXIDmzs6nYQ==",
|
||||
"dev": true,
|
||||
"requires": {}
|
||||
},
|
||||
"vue-style-loader": {
|
||||
"version": "4.1.3",
|
||||
"resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.3.tgz",
|
||||
|
|
@ -16324,9 +16431,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"watchpack": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.2.0.tgz",
|
||||
"integrity": "sha512-up4YAn/XHgZHIxFBVCdlMiWDj6WaLKpwVeGQk2I5thdYxF/KmF0aaz6TfJZ/hfl1h/XlcDr7k1KH7ThDagpFaA==",
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.3.0.tgz",
|
||||
"integrity": "sha512-MnN0Q1OsvB/GGHETrFeZPQaOelWh/7O+EiFlj8sM9GPjtQkis7k01aAxrg/18kTfoIVcLL+haEVFlXDaSRwKRw==",
|
||||
"requires": {
|
||||
"glob-to-regexp": "^0.4.1",
|
||||
"graceful-fs": "^4.1.2"
|
||||
|
|
@ -16342,9 +16449,9 @@
|
|||
}
|
||||
},
|
||||
"webpack": {
|
||||
"version": "5.62.0",
|
||||
"resolved": "https://registry.npmjs.org/webpack/-/webpack-5.62.0.tgz",
|
||||
"integrity": "sha512-4SyIaLQxm0JjUrQQ4UTHUU19rgl6hzidd8tYOBB3y78DKLBAVI777SYnl3f8e1XkHLYuILcyC7oUVs4mUZYKRg==",
|
||||
"version": "5.64.4",
|
||||
"resolved": "https://registry.npmjs.org/webpack/-/webpack-5.64.4.tgz",
|
||||
"integrity": "sha512-LWhqfKjCLoYJLKJY8wk2C3h77i8VyHowG3qYNZiIqD6D0ZS40439S/KVuc/PY48jp2yQmy0mhMknq8cys4jFMw==",
|
||||
"requires": {
|
||||
"@types/eslint-scope": "^3.7.0",
|
||||
"@types/estree": "^0.0.50",
|
||||
|
|
@ -16368,8 +16475,8 @@
|
|||
"schema-utils": "^3.1.0",
|
||||
"tapable": "^2.1.1",
|
||||
"terser-webpack-plugin": "^5.1.3",
|
||||
"watchpack": "^2.2.0",
|
||||
"webpack-sources": "^3.2.0"
|
||||
"watchpack": "^2.3.0",
|
||||
"webpack-sources": "^3.2.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"schema-utils": {
|
||||
|
|
@ -16383,9 +16490,9 @@
|
|||
}
|
||||
},
|
||||
"webpack-sources": {
|
||||
"version": "3.2.1",
|
||||
"resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.1.tgz",
|
||||
"integrity": "sha512-t6BMVLQ0AkjBOoRTZgqrWm7xbXMBzD+XDq2EZ96+vMfn3qKgsvdXZhbPZ4ElUOpdv4u+iiGe+w3+J75iy/bYGA=="
|
||||
"version": "3.2.2",
|
||||
"resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.2.tgz",
|
||||
"integrity": "sha512-cp5qdmHnu5T8wRg2G3vZZHoJPN14aqQ89SyQ11NpGH5zEMDCclt49rzo+MaRazk7/UeILhAI+/sEtcM+7Fr0nw=="
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
11
package.json
11
package.json
|
|
@ -11,17 +11,22 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"axios": "^0.21",
|
||||
"bootstrap": "^4.6.0",
|
||||
"clean-webpack-plugin": "^3.0.0",
|
||||
"jquery": "^3.6",
|
||||
"laravel-mix": "^6.0.6",
|
||||
"laravel-mix-polyfill": "^3.0.1",
|
||||
"lodash": "^4.17.19",
|
||||
"popper.js": "^1.16.1",
|
||||
"postcss": "^8.1.14",
|
||||
"resolve-url-loader": "^4.0.0",
|
||||
"sass": "^1.43.4",
|
||||
"sass-loader": "^12.1.0",
|
||||
"sass": "^1.32.11",
|
||||
"sass-loader": "^11.0.1",
|
||||
"ui": "^0.2.4",
|
||||
"vue-loader": "^15.9.8",
|
||||
"vue-select": "^3.16.0",
|
||||
"vue-template-compiler": "^2.6.14",
|
||||
"webpack": "^5.61.0"
|
||||
"webpack": "^5.64.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"animate.css": "^4.1.1",
|
||||
|
|
|
|||
90
phpcs.xml
Normal file
90
phpcs.xml
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ruleset name="RealWorld" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
|
||||
<arg name="colors" />
|
||||
<arg name="extensions" value="php" />
|
||||
<file>app/</file>
|
||||
<file>config/</file>
|
||||
<file>database/factories</file>
|
||||
<file>database/seeders</file>
|
||||
<file>routes/</file>
|
||||
<file>tests/</file>
|
||||
<rule ref="PSR1" />
|
||||
<rule ref="PSR12" />
|
||||
|
||||
|
||||
<description>Created with the PHP Coding Standard Generator. http://edorian.github.com/php-coding-standard-generator/
|
||||
</description>
|
||||
<rule ref="Generic.CodeAnalysis.EmptyStatement" />
|
||||
<rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop" />
|
||||
<rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall" />
|
||||
<rule ref="Generic.CodeAnalysis.JumbledIncrementer" />
|
||||
<rule ref="Generic.CodeAnalysis.UnconditionalIfStatement" />
|
||||
<rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier" />
|
||||
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter" />
|
||||
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod" />
|
||||
<rule ref="Generic.Commenting.Todo" />
|
||||
<rule ref="Generic.Commenting.Fixme" />
|
||||
<rule ref="Generic.ControlStructures.InlineControlStructure" />
|
||||
<rule ref="Generic.Files.ByteOrderMark" />
|
||||
<rule ref="Generic.Files.LineEndings" />
|
||||
<rule ref="Generic.Files.LineLength" />
|
||||
<rule ref="Generic.Formatting.DisallowMultipleStatements" />
|
||||
<rule ref="Generic.Formatting.NoSpaceAfterCast" />
|
||||
<rule ref="Generic.Functions.CallTimePassByReference" />
|
||||
<rule ref="Generic.Functions.FunctionCallArgumentSpacing" />
|
||||
<rule ref="Generic.Metrics.CyclomaticComplexity" />
|
||||
<rule ref="Generic.Metrics.NestingLevel" />
|
||||
<rule ref="Generic.NamingConventions.ConstructorName" />
|
||||
<rule ref="Generic.NamingConventions.UpperCaseConstantName" />
|
||||
<rule ref="Generic.NamingConventions.CamelCapsFunctionName" />
|
||||
<rule ref="Generic.PHP.DeprecatedFunctions" />
|
||||
<rule ref="Generic.PHP.DisallowShortOpenTag" />
|
||||
<rule ref="Generic.PHP.ForbiddenFunctions" />
|
||||
<rule ref="Generic.PHP.LowerCaseConstant" />
|
||||
<rule ref="Generic.PHP.NoSilencedErrors" />
|
||||
<rule ref="Generic.Strings.UnnecessaryStringConcat" />
|
||||
<rule ref="Generic.WhiteSpace.DisallowTabIndent" />
|
||||
<rule ref="Generic.WhiteSpace.ScopeIndent" />
|
||||
<rule ref="MySource.PHP.EvalObjectFactory" />
|
||||
<rule ref="MySource.PHP.GetRequestData" />
|
||||
<rule ref="MySource.PHP.AjaxNullComparison" />
|
||||
<rule ref="PEAR.Classes.ClassDeclaration" />
|
||||
<rule ref="PEAR.Commenting.InlineComment" />
|
||||
<rule ref="PSR1.Classes.ClassDeclaration" />
|
||||
<rule ref="PSR1.Files.SideEffects" />
|
||||
<rule ref="Squiz.PHP.CommentedOutCode" />
|
||||
<rule ref="Squiz.PHP.DisallowSizeFunctionsInLoops" />
|
||||
<rule ref="Squiz.PHP.DiscouragedFunctions">
|
||||
<properties>
|
||||
<property name="error" value="true" />
|
||||
</properties>
|
||||
</rule>
|
||||
<rule ref="Squiz.PHP.Eval" />
|
||||
<rule ref="Squiz.PHP.GlobalKeyword" />
|
||||
<rule ref="Squiz.PHP.Heredoc" />
|
||||
<rule ref="Squiz.PHP.InnerFunctions" />
|
||||
<rule ref="Squiz.PHP.LowercasePHPFunctions" />
|
||||
<rule ref="Squiz.PHP.NonExecutableCode" />
|
||||
<rule ref="Squiz.Scope.MemberVarScope" />
|
||||
<rule ref="Squiz.Scope.MethodScope" />
|
||||
<rule ref="Squiz.Scope.StaticThisUsage" />
|
||||
<rule ref="Squiz.WhiteSpace.MemberVarSpacing" />
|
||||
<rule ref="Squiz.WhiteSpace.ObjectOperatorSpacing">
|
||||
<properties>
|
||||
<property name="ignoreNewlines" value="true"/>
|
||||
</properties>
|
||||
</rule>
|
||||
<rule ref="Squiz.WhiteSpace.OperatorSpacing">
|
||||
<properties>
|
||||
<property name="ignoreNewlines" value="true"/>
|
||||
</properties>
|
||||
</rule>
|
||||
<rule ref="Squiz.WhiteSpace.ScopeKeywordSpacing" />
|
||||
<rule ref="Squiz.WhiteSpace.SemicolonSpacing" />
|
||||
|
||||
|
||||
<!-- For Laravel migrations -->
|
||||
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
|
||||
<exclude-pattern>*/database/migrations/*</exclude-pattern>
|
||||
</rule>
|
||||
</ruleset>
|
||||
2
public/assets/back.js
vendored
Normal file
2
public/assets/back.js
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
require('./bootstrap');
|
||||
require('./vuejs');
|
||||
28
public/assets/bootstrap.js
vendored
Normal file
28
public/assets/bootstrap.js
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/**
|
||||
* We'll load the axios HTTP library which allows us to easily issue requests
|
||||
* to our Laravel back-end. This library automatically handles sending the
|
||||
* CSRF token as a header based on the value of the "XSRF" token cookie.
|
||||
*/
|
||||
|
||||
window.axios = require('axios');
|
||||
|
||||
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
||||
|
||||
/**
|
||||
* Echo exposes an expressive API for subscribing to channels and listening
|
||||
* for events that are broadcast by Laravel. Echo and event broadcasting
|
||||
* allows your team to easily build robust real-time web applications.
|
||||
*/
|
||||
|
||||
// import Echo from 'laravel-echo';
|
||||
|
||||
// window.Pusher = require('pusher-js');
|
||||
|
||||
// window.Echo = new Echo({
|
||||
// broadcaster: 'pusher',
|
||||
// key: process.env.MIX_PUSHER_APP_KEY,
|
||||
// cluster: process.env.MIX_PUSHER_APP_CLUSTER,
|
||||
// forceTLS: true
|
||||
// });
|
||||
|
||||
window._ = require('lodash');
|
||||
143
public/assets/components/backend/ProductsPictos.vue
Normal file
143
public/assets/components/backend/ProductsPictos.vue
Normal file
|
|
@ -0,0 +1,143 @@
|
|||
<template>
|
||||
<div>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Image</th>
|
||||
<th scope="col">Actif ?</th>
|
||||
<th scope="col">Temps de cuisson</th>
|
||||
<th scope="col">Température de cuisson</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(picto, index) in this.pictos" :key="index">
|
||||
<td>
|
||||
<img :src="picto.url" :alt="picto.name" :title="picto.name" class="picto-img">
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" v-model="picto.status" @change="toggleStatus($event, index)" :disabled="picto.status === true ? (total > 1 ? false : false) : (picto.time.length > 0 && picto.temp.length > 0 ? false : true)">
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" v-model="picto.time" :disabled="picto.status === true ? true : false">
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" v-model="picto.temp" :disabled="picto.status === true ? true : false">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<input type="hidden" name="pictos" :value="JSON.stringify(this.pictos)" required>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
mounted() {
|
||||
this.pictos = JSON.parse(this.dbpictos);
|
||||
if (this.pictos.length === 0){
|
||||
this.pictos = this.defaultPictos;
|
||||
}
|
||||
//check missing added pictos for existing products
|
||||
if (!this.pictos.bainmarie) {
|
||||
this.pictos.bainmarie = this.defaultPictos.bainmarie;
|
||||
}
|
||||
if (!this.pictos.barbecue) {
|
||||
this.pictos.barbecue = this.defaultPictos.barbecue;
|
||||
}
|
||||
if (!this.pictos.microondes) {
|
||||
this.pictos.microondes = this.defaultPictos.microondes;
|
||||
}
|
||||
},
|
||||
props: [
|
||||
'dbpictos'
|
||||
],
|
||||
data() {
|
||||
return {
|
||||
total: 0,
|
||||
pictos: [],
|
||||
defaultPictos: {
|
||||
"four":{
|
||||
"name":"Four",
|
||||
"url":"/assets/images/four.png",
|
||||
"time":"",
|
||||
"temp":"",
|
||||
"status":false
|
||||
},
|
||||
"friteuse":{
|
||||
"name":"Friteuse",
|
||||
"url":"/assets/images/friteuse.png",
|
||||
"time":"",
|
||||
"temp":"",
|
||||
"status":false
|
||||
},
|
||||
"poele":{
|
||||
"name":"Poêle",
|
||||
"url":"/assets/images/poele.png",
|
||||
"time":"",
|
||||
"temp":"",
|
||||
"status":false
|
||||
},
|
||||
"cocotte":{
|
||||
"name":"Cocotte",
|
||||
"url":"/assets/images/cocotte.png",
|
||||
"time":"",
|
||||
"temp":"",
|
||||
"status":false
|
||||
},
|
||||
"plancha":{
|
||||
"name":"Plancha",
|
||||
"url":"/assets/images/plancha.png",
|
||||
"time":"",
|
||||
"temp":"",
|
||||
"status":false
|
||||
},
|
||||
"bainmarie":{
|
||||
"name":"Bain Marie",
|
||||
"url":"/assets/images/bainmarie.png",
|
||||
"time":"",
|
||||
"temp":"",
|
||||
"status":false
|
||||
},
|
||||
"barbecue":{
|
||||
"name":"Barbecue",
|
||||
"url":"/assets/images/barbecue.png",
|
||||
"time":"",
|
||||
"temp":"",
|
||||
"status":false
|
||||
},
|
||||
"microondes":{
|
||||
"name":"Micro Ondes",
|
||||
"url":"/assets/images/microondes.png",
|
||||
"time":"",
|
||||
"temp":"",
|
||||
"status":false
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
toggleStatus(event,index) {
|
||||
if (!event.target.checked) {
|
||||
this.pictos[index].time = '';
|
||||
this.pictos[index].temp = '';
|
||||
}
|
||||
this.updateCount();
|
||||
},
|
||||
updateCount(){
|
||||
this.total = _.filter(this.pictos, function(o) { return o.status === true; }).length;
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
pictos() {
|
||||
this.updateCount();
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.picto-img {
|
||||
width: 90px;
|
||||
}
|
||||
</style>
|
||||
82
public/assets/components/backend/RangesSubRanges.vue
Normal file
82
public/assets/components/backend/RangesSubRanges.vue
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
<template>
|
||||
<div>
|
||||
<v-select
|
||||
v-model="range"
|
||||
:clearable="false"
|
||||
label="label"
|
||||
:options='rangesDatas'
|
||||
:filterable="true"
|
||||
@input="checkRange">
|
||||
</v-select>
|
||||
<input type="hidden" v-model="range.id" name="range_id" />
|
||||
<v-select
|
||||
v-model="subrange"
|
||||
:clearable="false"
|
||||
label="name"
|
||||
:options='subrangesDatas'
|
||||
:filterable="true"
|
||||
:disabled="this.range.has_subranges === 0">
|
||||
</v-select>
|
||||
<input type="hidden" v-model="subrange.id" name="sub_range_id" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
mounted() {
|
||||
this.range = JSON.parse(this.dbRange);
|
||||
this.range.label = this.range.name + ' - ' + this.range.type;
|
||||
this.subrange = JSON.parse(this.dbSubrange);
|
||||
if(!this.range) {
|
||||
this.range = {
|
||||
name: null,
|
||||
id: null,
|
||||
type: null,
|
||||
}
|
||||
}
|
||||
if(!this.subrange) {
|
||||
this.subrange = {
|
||||
name: null,
|
||||
id: 0,
|
||||
}
|
||||
}
|
||||
this.rangesDatas = JSON.parse(this.ranges);
|
||||
this.rangesDatas.forEach((item,index) => {
|
||||
//TODO Ramener le vrai label de l'enum Type
|
||||
item.label = item.name + ' - ' + (item.type == 0 ? 'Frais' : 'Gel');
|
||||
});
|
||||
this.subrangesDatas = JSON.parse(this.subranges);
|
||||
this.subrangesDatas.unshift({
|
||||
name: "<---Pas de Sous Gamme--->",
|
||||
id: 0,
|
||||
});
|
||||
},
|
||||
props: [
|
||||
'ranges',
|
||||
'subranges',
|
||||
'dbRange',
|
||||
'dbSubrange',
|
||||
],
|
||||
data() {
|
||||
return {
|
||||
rangesDatas: [],
|
||||
subrangesDatas: [],
|
||||
range: {
|
||||
name: null,
|
||||
id: 0
|
||||
},
|
||||
subrange: {
|
||||
name: null,
|
||||
id: 0
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
checkRange(value) {
|
||||
if (value.has_subranges === 0) {
|
||||
this.subrange = {name: null,id: 0}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
BIN
public/assets/images/contact.jpg
Normal file
BIN
public/assets/images/contact.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 110 KiB |
31
public/assets/vuejs.js
vendored
Normal file
31
public/assets/vuejs.js
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
window.__IDHALALVue = require('vue').default;
|
||||
import vSelect from 'vue-select'
|
||||
__IDHALALVue.component('v-select', vSelect);
|
||||
|
||||
// register modules
|
||||
const modules = require.context("./modules", true, /\.js$/i);
|
||||
modules.keys().map(key => __IDHALALVue.mixin(modules(key).default));
|
||||
|
||||
// Register components
|
||||
const vues = require.context("./components/backend", true, /\.vue$/i);
|
||||
vues.keys().map(key =>
|
||||
__IDHALALVue.component(
|
||||
key
|
||||
.split("/")
|
||||
.pop()
|
||||
.split(".")[0]
|
||||
.replace(/\.?([A-Z])/g, function (x, y) {
|
||||
return "-" + y.toLowerCase();
|
||||
})
|
||||
.replace(/^-/, "")
|
||||
.replace("-component", ""),
|
||||
vues(key).default
|
||||
)
|
||||
);
|
||||
const vuejsModules = [];
|
||||
|
||||
document.getElementsByClassName('idhalal-vuejs').forEach(element => {
|
||||
vuejsModules.push(new __IDHALALVue({
|
||||
el: element
|
||||
}));
|
||||
});
|
||||
6356
public/css/app.css
vendored
6356
public/css/app.css
vendored
File diff suppressed because it is too large
Load diff
300
public/css/preload-back.css
vendored
Normal file
300
public/css/preload-back.css
vendored
Normal file
|
|
@ -0,0 +1,300 @@
|
|||
.min-height-100vh{
|
||||
min-height:calc(100vh - 3rem);
|
||||
}
|
||||
|
||||
.site{
|
||||
border:solid white 1px;
|
||||
}
|
||||
|
||||
#siteid{
|
||||
color:white;
|
||||
margin-right:100px;
|
||||
}
|
||||
|
||||
#sidebarTop{
|
||||
height:3rem;
|
||||
}
|
||||
|
||||
.v-select{
|
||||
position:relative;
|
||||
font-family:inherit;
|
||||
}
|
||||
|
||||
.v-select,
|
||||
.v-select *{
|
||||
box-sizing:border-box;
|
||||
}
|
||||
@-webkit-keyframes vSelectSpinner{
|
||||
0%{
|
||||
transform:rotate(0deg);
|
||||
}
|
||||
100%{
|
||||
transform:rotate(360deg);
|
||||
}
|
||||
}
|
||||
@keyframes vSelectSpinner{
|
||||
0%{
|
||||
transform:rotate(0deg);
|
||||
}
|
||||
100%{
|
||||
transform:rotate(360deg);
|
||||
}
|
||||
}
|
||||
.vs__fade-enter-active,
|
||||
.vs__fade-leave-active{
|
||||
pointer-events:none;
|
||||
transition:opacity 0.15s cubic-bezier(1, 0.5, 0.8, 1);
|
||||
}
|
||||
|
||||
.vs__fade-enter,
|
||||
.vs__fade-leave-to{
|
||||
opacity:0;
|
||||
}
|
||||
.vs--disabled .vs__dropdown-toggle,
|
||||
.vs--disabled .vs__clear,
|
||||
.vs--disabled .vs__search,
|
||||
.vs--disabled .vs__selected,
|
||||
.vs--disabled .vs__open-indicator{
|
||||
cursor:not-allowed;
|
||||
background-color:#f8f8f8;
|
||||
}
|
||||
.v-select[dir=rtl] .vs__actions{
|
||||
padding:0 3px 0 6px;
|
||||
}
|
||||
.v-select[dir=rtl] .vs__clear{
|
||||
margin-left:6px;
|
||||
margin-right:0;
|
||||
}
|
||||
.v-select[dir=rtl] .vs__deselect{
|
||||
margin-left:0;
|
||||
margin-right:2px;
|
||||
}
|
||||
.v-select[dir=rtl] .vs__dropdown-menu{
|
||||
text-align:right;
|
||||
}
|
||||
.vs__dropdown-toggle{
|
||||
-webkit-appearance:none;
|
||||
-moz-appearance:none;
|
||||
appearance:none;
|
||||
display:flex;
|
||||
padding:0 0 4px 0;
|
||||
background:none;
|
||||
border:1px solid rgba(60, 60, 60, 0.26);
|
||||
border-radius:4px;
|
||||
white-space:normal;
|
||||
}
|
||||
|
||||
.vs__selected-options{
|
||||
display:flex;
|
||||
flex-basis:100%;
|
||||
flex-grow:1;
|
||||
flex-wrap:wrap;
|
||||
padding:0 2px;
|
||||
position:relative;
|
||||
}
|
||||
|
||||
.vs__actions{
|
||||
display:flex;
|
||||
align-items:center;
|
||||
padding:4px 6px 0 3px;
|
||||
}
|
||||
.vs--searchable .vs__dropdown-toggle{
|
||||
cursor:text;
|
||||
}
|
||||
|
||||
.vs--unsearchable .vs__dropdown-toggle{
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
.vs--open .vs__dropdown-toggle{
|
||||
border-bottom-color:transparent;
|
||||
border-bottom-left-radius:0;
|
||||
border-bottom-right-radius:0;
|
||||
}
|
||||
|
||||
.vs__open-indicator{
|
||||
fill:rgba(60, 60, 60, 0.5);
|
||||
transform:scale(1);
|
||||
transition:transform 150ms cubic-bezier(1, -0.115, 0.975, 0.855);
|
||||
transition-timing-function:cubic-bezier(1, -0.115, 0.975, 0.855);
|
||||
}
|
||||
|
||||
.vs--open .vs__open-indicator{
|
||||
transform:rotate(180deg) scale(1);
|
||||
}
|
||||
|
||||
.vs--loading .vs__open-indicator{
|
||||
opacity:0;
|
||||
}
|
||||
.vs__clear{
|
||||
fill:rgba(60, 60, 60, 0.5);
|
||||
padding:0;
|
||||
border:0;
|
||||
background-color:transparent;
|
||||
cursor:pointer;
|
||||
margin-right:8px;
|
||||
}
|
||||
.vs__dropdown-menu{
|
||||
display:block;
|
||||
box-sizing:border-box;
|
||||
position:absolute;
|
||||
top:calc(100% - 1px);
|
||||
left:0;
|
||||
z-index:1000;
|
||||
padding:5px 0;
|
||||
margin:0;
|
||||
width:100%;
|
||||
max-height:350px;
|
||||
min-width:160px;
|
||||
overflow-y:auto;
|
||||
box-shadow:0px 3px 6px 0px rgba(0, 0, 0, 0.15);
|
||||
border:1px solid rgba(60, 60, 60, 0.26);
|
||||
border-top-style:none;
|
||||
border-radius:0 0 4px 4px;
|
||||
text-align:left;
|
||||
list-style:none;
|
||||
background:#fff;
|
||||
}
|
||||
|
||||
.vs__no-options{
|
||||
text-align:center;
|
||||
}
|
||||
.vs__dropdown-option{
|
||||
line-height:1.42857143;
|
||||
display:block;
|
||||
padding:3px 20px;
|
||||
clear:both;
|
||||
color:#333;
|
||||
white-space:nowrap;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
.vs__dropdown-option--highlight{
|
||||
background:#5897fb;
|
||||
color:#fff;
|
||||
}
|
||||
|
||||
.vs__dropdown-option--deselect{
|
||||
background:#fb5858;
|
||||
color:#fff;
|
||||
}
|
||||
|
||||
.vs__dropdown-option--disabled{
|
||||
background:inherit;
|
||||
color:rgba(60, 60, 60, 0.5);
|
||||
cursor:inherit;
|
||||
}
|
||||
.vs__selected{
|
||||
display:flex;
|
||||
align-items:center;
|
||||
background-color:#f0f0f0;
|
||||
border:1px solid rgba(60, 60, 60, 0.26);
|
||||
border-radius:4px;
|
||||
color:#333;
|
||||
line-height:1.4;
|
||||
margin:4px 2px 0px 2px;
|
||||
padding:0 0.25em;
|
||||
z-index:0;
|
||||
}
|
||||
|
||||
.vs__deselect{
|
||||
display:inline-flex;
|
||||
-webkit-appearance:none;
|
||||
-moz-appearance:none;
|
||||
appearance:none;
|
||||
margin-left:4px;
|
||||
padding:0;
|
||||
border:0;
|
||||
cursor:pointer;
|
||||
background:none;
|
||||
fill:rgba(60, 60, 60, 0.5);
|
||||
text-shadow:0 1px 0 #fff;
|
||||
}
|
||||
.vs--single .vs__selected{
|
||||
background-color:transparent;
|
||||
border-color:transparent;
|
||||
}
|
||||
.vs--single.vs--open .vs__selected, .vs--single.vs--loading .vs__selected{
|
||||
position:absolute;
|
||||
opacity:0.4;
|
||||
}
|
||||
.vs--single.vs--searching .vs__selected{
|
||||
display:none;
|
||||
}
|
||||
.vs__search::-webkit-search-cancel-button{
|
||||
display:none;
|
||||
}
|
||||
|
||||
.vs__search::-webkit-search-decoration,
|
||||
.vs__search::-webkit-search-results-button,
|
||||
.vs__search::-webkit-search-results-decoration,
|
||||
.vs__search::-ms-clear{
|
||||
display:none;
|
||||
}
|
||||
|
||||
.vs__search,
|
||||
.vs__search:focus{
|
||||
-webkit-appearance:none;
|
||||
-moz-appearance:none;
|
||||
appearance:none;
|
||||
line-height:1.4;
|
||||
font-size:1em;
|
||||
border:1px solid transparent;
|
||||
border-left:none;
|
||||
outline:none;
|
||||
margin:4px 0 0 0;
|
||||
padding:0 7px;
|
||||
background:none;
|
||||
box-shadow:none;
|
||||
width:0;
|
||||
max-width:100%;
|
||||
flex-grow:1;
|
||||
z-index:1;
|
||||
}
|
||||
|
||||
.vs__search::-moz-placeholder{
|
||||
color:inherit;
|
||||
}
|
||||
|
||||
.vs__search:-ms-input-placeholder{
|
||||
color:inherit;
|
||||
}
|
||||
|
||||
.vs__search::placeholder{
|
||||
color:inherit;
|
||||
}
|
||||
.vs--unsearchable .vs__search{
|
||||
opacity:1;
|
||||
}
|
||||
.vs--unsearchable:not(.vs--disabled) .vs__search{
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
.vs--single.vs--searching:not(.vs--open):not(.vs--loading) .vs__search{
|
||||
opacity:0.2;
|
||||
}
|
||||
.vs__spinner{
|
||||
align-self:center;
|
||||
opacity:0;
|
||||
font-size:5px;
|
||||
text-indent:-9999em;
|
||||
overflow:hidden;
|
||||
border-top:0.9em solid rgba(100, 100, 100, 0.1);
|
||||
border-right:0.9em solid rgba(100, 100, 100, 0.1);
|
||||
border-bottom:0.9em solid rgba(100, 100, 100, 0.1);
|
||||
border-left:0.9em solid rgba(60, 60, 60, 0.45);
|
||||
transform:translateZ(0);
|
||||
-webkit-animation:vSelectSpinner 1.1s infinite linear;
|
||||
animation:vSelectSpinner 1.1s infinite linear;
|
||||
transition:opacity 0.1s;
|
||||
}
|
||||
|
||||
.vs__spinner,
|
||||
.vs__spinner:after{
|
||||
border-radius:50%;
|
||||
width:5em;
|
||||
height:5em;
|
||||
}
|
||||
.vs--loading .vs__spinner{
|
||||
opacity:1;
|
||||
}
|
||||
3030
public/css/preload-front.css
vendored
Normal file
3030
public/css/preload-front.css
vendored
Normal file
File diff suppressed because it is too large
Load diff
1850
public/js/app.js
vendored
1850
public/js/app.js
vendored
File diff suppressed because it is too large
Load diff
2555
public/js/caroussel.js
vendored
2555
public/js/caroussel.js
vendored
File diff suppressed because it is too large
Load diff
1
public/js/ldcweb-cn.min.js
vendored
1
public/js/ldcweb-cn.min.js
vendored
File diff suppressed because one or more lines are too long
185
public/js/preload-back.js
vendored
Normal file
185
public/js/preload-back.js
vendored
Normal file
|
|
@ -0,0 +1,185 @@
|
|||
/******/ (() => { // webpackBootstrap
|
||||
/******/ var __webpack_modules__ = ({
|
||||
|
||||
/***/ "./resources/js/back.js":
|
||||
/*!******************************!*\
|
||||
!*** ./resources/js/back.js ***!
|
||||
\******************************/
|
||||
/***/ (() => {
|
||||
|
||||
// require('./bootstrap');
|
||||
// require('./vuejs');
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/sass/back.scss":
|
||||
/*!**********************************!*\
|
||||
!*** ./resources/sass/back.scss ***!
|
||||
\**********************************/
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
// extracted by mini-css-extract-plugin
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/sass/frontend/compile.scss":
|
||||
/*!**********************************************!*\
|
||||
!*** ./resources/sass/frontend/compile.scss ***!
|
||||
\**********************************************/
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
// extracted by mini-css-extract-plugin
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
/************************************************************************/
|
||||
/******/ // The module cache
|
||||
/******/ var __webpack_module_cache__ = {};
|
||||
/******/
|
||||
/******/ // The require function
|
||||
/******/ function __webpack_require__(moduleId) {
|
||||
/******/ // Check if module is in cache
|
||||
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
||||
/******/ if (cachedModule !== undefined) {
|
||||
/******/ return cachedModule.exports;
|
||||
/******/ }
|
||||
/******/ // Create a new module (and put it into the cache)
|
||||
/******/ var module = __webpack_module_cache__[moduleId] = {
|
||||
/******/ // no module.id needed
|
||||
/******/ // no module.loaded needed
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Return the exports of the module
|
||||
/******/ return module.exports;
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ // expose the modules object (__webpack_modules__)
|
||||
/******/ __webpack_require__.m = __webpack_modules__;
|
||||
/******/
|
||||
/************************************************************************/
|
||||
/******/ /* webpack/runtime/chunk loaded */
|
||||
/******/ (() => {
|
||||
/******/ var deferred = [];
|
||||
/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
|
||||
/******/ if(chunkIds) {
|
||||
/******/ priority = priority || 0;
|
||||
/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
|
||||
/******/ deferred[i] = [chunkIds, fn, priority];
|
||||
/******/ return;
|
||||
/******/ }
|
||||
/******/ var notFulfilled = Infinity;
|
||||
/******/ for (var i = 0; i < deferred.length; i++) {
|
||||
/******/ var [chunkIds, fn, priority] = deferred[i];
|
||||
/******/ var fulfilled = true;
|
||||
/******/ for (var j = 0; j < chunkIds.length; j++) {
|
||||
/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
|
||||
/******/ chunkIds.splice(j--, 1);
|
||||
/******/ } else {
|
||||
/******/ fulfilled = false;
|
||||
/******/ if(priority < notFulfilled) notFulfilled = priority;
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(fulfilled) {
|
||||
/******/ deferred.splice(i--, 1)
|
||||
/******/ var r = fn();
|
||||
/******/ if (r !== undefined) result = r;
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ return result;
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
||||
/******/ (() => {
|
||||
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ (() => {
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = (exports) => {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
||||
/******/ var installedChunks = {
|
||||
/******/ "/js/preload-back": 0,
|
||||
/******/ "css/preload-front": 0,
|
||||
/******/ "css/preload-back": 0
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // no chunk on demand loading
|
||||
/******/
|
||||
/******/ // no prefetching
|
||||
/******/
|
||||
/******/ // no preloaded
|
||||
/******/
|
||||
/******/ // no HMR
|
||||
/******/
|
||||
/******/ // no HMR manifest
|
||||
/******/
|
||||
/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
|
||||
/******/ var [chunkIds, moreModules, runtime] = data;
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0;
|
||||
/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
|
||||
/******/ for(moduleId in moreModules) {
|
||||
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
|
||||
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) var result = runtime(__webpack_require__);
|
||||
/******/ }
|
||||
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
|
||||
/******/ for(;i < chunkIds.length; i++) {
|
||||
/******/ chunkId = chunkIds[i];
|
||||
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
||||
/******/ installedChunks[chunkId][0]();
|
||||
/******/ }
|
||||
/******/ installedChunks[chunkIds[i]] = 0;
|
||||
/******/ }
|
||||
/******/ return __webpack_require__.O(result);
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
|
||||
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
/******/
|
||||
/******/ // startup
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
||||
/******/ __webpack_require__.O(undefined, ["css/preload-front","css/preload-back"], () => (__webpack_require__("./resources/js/back.js")))
|
||||
/******/ __webpack_require__.O(undefined, ["css/preload-front","css/preload-back"], () => (__webpack_require__("./resources/sass/back.scss")))
|
||||
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["css/preload-front","css/preload-back"], () => (__webpack_require__("./resources/sass/frontend/compile.scss")))
|
||||
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
||||
/******/
|
||||
/******/ })()
|
||||
;
|
||||
6108
public/js/preload-front.js
vendored
Normal file
6108
public/js/preload-front.js
vendored
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1,5 +1,9 @@
|
|||
{
|
||||
"/js/app.js": "/js/app.js",
|
||||
"/js/caroussel.js": "/js/caroussel.js",
|
||||
"/css/app.css": "/css/app.css"
|
||||
"/js/preload-back.js": "/js/preload-back.js",
|
||||
"/js/preload-front.js": "/js/preload-front.js",
|
||||
"/css/preload-front.css": "/css/preload-front.css",
|
||||
"/css/preload-back.css": "/css/preload-back.css",
|
||||
"/assets/back.js": "/assets/back.js",
|
||||
"/assets/bootstrap.js": "/assets/bootstrap.js",
|
||||
"/assets/vuejs.js": "/assets/vuejs.js"
|
||||
}
|
||||
|
|
|
|||
2
resources/assets/back.js
vendored
Normal file
2
resources/assets/back.js
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
require('./bootstrap');
|
||||
require('./vuejs');
|
||||
28
resources/assets/bootstrap.js
vendored
Normal file
28
resources/assets/bootstrap.js
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/**
|
||||
* We'll load the axios HTTP library which allows us to easily issue requests
|
||||
* to our Laravel back-end. This library automatically handles sending the
|
||||
* CSRF token as a header based on the value of the "XSRF" token cookie.
|
||||
*/
|
||||
|
||||
window.axios = require('axios');
|
||||
|
||||
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
||||
|
||||
/**
|
||||
* Echo exposes an expressive API for subscribing to channels and listening
|
||||
* for events that are broadcast by Laravel. Echo and event broadcasting
|
||||
* allows your team to easily build robust real-time web applications.
|
||||
*/
|
||||
|
||||
// import Echo from 'laravel-echo';
|
||||
|
||||
// window.Pusher = require('pusher-js');
|
||||
|
||||
// window.Echo = new Echo({
|
||||
// broadcaster: 'pusher',
|
||||
// key: process.env.MIX_PUSHER_APP_KEY,
|
||||
// cluster: process.env.MIX_PUSHER_APP_CLUSTER,
|
||||
// forceTLS: true
|
||||
// });
|
||||
|
||||
window._ = require('lodash');
|
||||
143
resources/assets/components/backend/ProductsPictos.vue
Normal file
143
resources/assets/components/backend/ProductsPictos.vue
Normal file
|
|
@ -0,0 +1,143 @@
|
|||
<template>
|
||||
<div>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Image</th>
|
||||
<th scope="col">Actif ?</th>
|
||||
<th scope="col">Temps de cuisson</th>
|
||||
<th scope="col">Température de cuisson</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(picto, index) in this.pictos" :key="index">
|
||||
<td>
|
||||
<img :src="picto.url" :alt="picto.name" :title="picto.name" class="picto-img">
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" v-model="picto.status" @change="toggleStatus($event, index)" :disabled="picto.status === true ? (total > 1 ? false : false) : (picto.time.length > 0 && picto.temp.length > 0 ? false : true)">
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" v-model="picto.time" :disabled="picto.status === true ? true : false">
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" v-model="picto.temp" :disabled="picto.status === true ? true : false">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<input type="hidden" name="pictos" :value="JSON.stringify(this.pictos)" required>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
mounted() {
|
||||
this.pictos = JSON.parse(this.dbpictos);
|
||||
if (this.pictos.length === 0){
|
||||
this.pictos = this.defaultPictos;
|
||||
}
|
||||
//check missing added pictos for existing products
|
||||
if (!this.pictos.bainmarie) {
|
||||
this.pictos.bainmarie = this.defaultPictos.bainmarie;
|
||||
}
|
||||
if (!this.pictos.barbecue) {
|
||||
this.pictos.barbecue = this.defaultPictos.barbecue;
|
||||
}
|
||||
if (!this.pictos.microondes) {
|
||||
this.pictos.microondes = this.defaultPictos.microondes;
|
||||
}
|
||||
},
|
||||
props: [
|
||||
'dbpictos'
|
||||
],
|
||||
data() {
|
||||
return {
|
||||
total: 0,
|
||||
pictos: [],
|
||||
defaultPictos: {
|
||||
"four":{
|
||||
"name":"Four",
|
||||
"url":"/assets/images/four.png",
|
||||
"time":"",
|
||||
"temp":"",
|
||||
"status":false
|
||||
},
|
||||
"friteuse":{
|
||||
"name":"Friteuse",
|
||||
"url":"/assets/images/friteuse.png",
|
||||
"time":"",
|
||||
"temp":"",
|
||||
"status":false
|
||||
},
|
||||
"poele":{
|
||||
"name":"Poêle",
|
||||
"url":"/assets/images/poele.png",
|
||||
"time":"",
|
||||
"temp":"",
|
||||
"status":false
|
||||
},
|
||||
"cocotte":{
|
||||
"name":"Cocotte",
|
||||
"url":"/assets/images/cocotte.png",
|
||||
"time":"",
|
||||
"temp":"",
|
||||
"status":false
|
||||
},
|
||||
"plancha":{
|
||||
"name":"Plancha",
|
||||
"url":"/assets/images/plancha.png",
|
||||
"time":"",
|
||||
"temp":"",
|
||||
"status":false
|
||||
},
|
||||
"bainmarie":{
|
||||
"name":"Bain Marie",
|
||||
"url":"/assets/images/bainmarie.png",
|
||||
"time":"",
|
||||
"temp":"",
|
||||
"status":false
|
||||
},
|
||||
"barbecue":{
|
||||
"name":"Barbecue",
|
||||
"url":"/assets/images/barbecue.png",
|
||||
"time":"",
|
||||
"temp":"",
|
||||
"status":false
|
||||
},
|
||||
"microondes":{
|
||||
"name":"Micro Ondes",
|
||||
"url":"/assets/images/microondes.png",
|
||||
"time":"",
|
||||
"temp":"",
|
||||
"status":false
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
toggleStatus(event,index) {
|
||||
if (!event.target.checked) {
|
||||
this.pictos[index].time = '';
|
||||
this.pictos[index].temp = '';
|
||||
}
|
||||
this.updateCount();
|
||||
},
|
||||
updateCount(){
|
||||
this.total = _.filter(this.pictos, function(o) { return o.status === true; }).length;
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
pictos() {
|
||||
this.updateCount();
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.picto-img {
|
||||
width: 90px;
|
||||
}
|
||||
</style>
|
||||
82
resources/assets/components/backend/RangesSubRanges.vue
Normal file
82
resources/assets/components/backend/RangesSubRanges.vue
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
<template>
|
||||
<div>
|
||||
<v-select
|
||||
v-model="range"
|
||||
:clearable="false"
|
||||
label="label"
|
||||
:options='rangesDatas'
|
||||
:filterable="true"
|
||||
@input="checkRange">
|
||||
</v-select>
|
||||
<input type="hidden" v-model="range.id" name="range_id" />
|
||||
<v-select
|
||||
v-model="subrange"
|
||||
:clearable="false"
|
||||
label="name"
|
||||
:options='subrangesDatas'
|
||||
:filterable="true"
|
||||
:disabled="this.range.has_subranges === 0">
|
||||
</v-select>
|
||||
<input type="hidden" v-model="subrange.id" name="sub_range_id" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
mounted() {
|
||||
this.range = JSON.parse(this.dbRange);
|
||||
this.range.label = this.range.name + ' - ' + this.range.type;
|
||||
this.subrange = JSON.parse(this.dbSubrange);
|
||||
if(!this.range) {
|
||||
this.range = {
|
||||
name: null,
|
||||
id: null,
|
||||
type: null,
|
||||
}
|
||||
}
|
||||
if(!this.subrange) {
|
||||
this.subrange = {
|
||||
name: null,
|
||||
id: 0,
|
||||
}
|
||||
}
|
||||
this.rangesDatas = JSON.parse(this.ranges);
|
||||
this.rangesDatas.forEach((item,index) => {
|
||||
//TODO Ramener le vrai label de l'enum Type
|
||||
item.label = item.name + ' - ' + (item.type == 0 ? 'Frais' : 'Gel');
|
||||
});
|
||||
this.subrangesDatas = JSON.parse(this.subranges);
|
||||
this.subrangesDatas.unshift({
|
||||
name: "<---Pas de Sous Gamme--->",
|
||||
id: 0,
|
||||
});
|
||||
},
|
||||
props: [
|
||||
'ranges',
|
||||
'subranges',
|
||||
'dbRange',
|
||||
'dbSubrange',
|
||||
],
|
||||
data() {
|
||||
return {
|
||||
rangesDatas: [],
|
||||
subrangesDatas: [],
|
||||
range: {
|
||||
name: null,
|
||||
id: 0
|
||||
},
|
||||
subrange: {
|
||||
name: null,
|
||||
id: 0
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
checkRange(value) {
|
||||
if (value.has_subranges === 0) {
|
||||
this.subrange = {name: null,id: 0}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
BIN
resources/assets/images/contact.jpg
Normal file
BIN
resources/assets/images/contact.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 110 KiB |
31
resources/assets/vuejs.js
vendored
Normal file
31
resources/assets/vuejs.js
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
window.__IDHALALVue = require('vue').default;
|
||||
import vSelect from 'vue-select'
|
||||
__IDHALALVue.component('v-select', vSelect);
|
||||
|
||||
// register modules
|
||||
const modules = require.context("./modules", true, /\.js$/i);
|
||||
modules.keys().map(key => __IDHALALVue.mixin(modules(key).default));
|
||||
|
||||
// Register components
|
||||
const vues = require.context("./components/backend", true, /\.vue$/i);
|
||||
vues.keys().map(key =>
|
||||
__IDHALALVue.component(
|
||||
key
|
||||
.split("/")
|
||||
.pop()
|
||||
.split(".")[0]
|
||||
.replace(/\.?([A-Z])/g, function (x, y) {
|
||||
return "-" + y.toLowerCase();
|
||||
})
|
||||
.replace(/^-/, "")
|
||||
.replace("-component", ""),
|
||||
vues(key).default
|
||||
)
|
||||
);
|
||||
const vuejsModules = [];
|
||||
|
||||
document.getElementsByClassName('idhalal-vuejs').forEach(element => {
|
||||
vuejsModules.push(new __IDHALALVue({
|
||||
el: element
|
||||
}));
|
||||
});
|
||||
230
resources/js/app.js
vendored
230
resources/js/app.js
vendored
|
|
@ -1,230 +0,0 @@
|
|||
// let isPass = false;
|
||||
// let heightOfsset = 0;
|
||||
// let heightElt = 0;
|
||||
|
||||
var app = {
|
||||
init: () => {
|
||||
window.onscroll = function () {
|
||||
app.scrollFunction();
|
||||
};
|
||||
|
||||
app.scroll();
|
||||
},
|
||||
|
||||
scroll: () => {
|
||||
|
||||
document
|
||||
.getElementById("backtotop")
|
||||
.addEventListener("click", function () {
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
scrollFunction: () => {
|
||||
let imgZoom = document.querySelectorAll('.img-zoom');
|
||||
let index = 0;
|
||||
if (
|
||||
document.body.scrollTop > 100 ||
|
||||
document.documentElement.scrollTop > 100
|
||||
) {
|
||||
document.getElementById("backtotop").style.display = "flex";
|
||||
for (index = 0; index < imgZoom.length; index++) {
|
||||
imgZoom[index].classList.add('zoomed');
|
||||
}
|
||||
} else {
|
||||
document.getElementById("backtotop").style.display = "none";
|
||||
for (index = 0; index < imgZoom.length; index++) {
|
||||
imgZoom[index].classList.remove('zoomed');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// if (isFriseHover) {
|
||||
// if (!isPass) {
|
||||
// heightOfsset = window.scrollY;
|
||||
// heightElt = document.querySelector(".timeline").clientHeight;
|
||||
// console.log("heightElt=" + heightElt);
|
||||
// }
|
||||
|
||||
// // let wrapper = document.querySelector(".timeline");
|
||||
// // var svgFrise = document.getElementById("frise-svg");
|
||||
|
||||
// // if (svgFrise === null) return;
|
||||
// // var point1 = document.getElementById("point1"),
|
||||
// // point2 = document.getElementById("point2");
|
||||
// // $doc = $(document);
|
||||
|
||||
// // console.log("wrapper.scrollTop=" + wrapper.scrollTop);
|
||||
|
||||
// let currentHeight = (window.scrollY - heightOfsset) * 100 / heightElt;
|
||||
// console.log("currentHeight=" + currentHeight);
|
||||
|
||||
// // var scrPos = wrapper.scrollTop / 13;
|
||||
// point1.setAttribute("offset", currentHeight - 15 + '%')
|
||||
// point2.setAttribute("offset", currentHeight - 10 + '%')
|
||||
|
||||
|
||||
// // let height = "height:" + currentHeight + "px";
|
||||
// // document.getElementById("frise-autoscroll").setAttribute("style", height);
|
||||
// // console.log(window.scrollY + ":" + height);
|
||||
// isPass = true;
|
||||
// } else {
|
||||
// console.log("fin");
|
||||
// }
|
||||
},
|
||||
};
|
||||
|
||||
document.addEventListener("DOMContentLoaded", app.init);
|
||||
|
||||
// FONCTION PERMETTANT DE FAIRE UN EFFET ANIMATION AU DEFILEMENT
|
||||
const ratio = 0.1; // 10% du div revelé pour rendre visible
|
||||
const options = {
|
||||
root: null, // Zone d'affichage : null = le viewport
|
||||
rootMargin: "0px",
|
||||
threshold: ratio,
|
||||
};
|
||||
var animArray = [
|
||||
"bounce",
|
||||
"flash",
|
||||
"pulse",
|
||||
"rubberBand",
|
||||
"shakeX",
|
||||
"shakeY",
|
||||
"headShake",
|
||||
"swing",
|
||||
"tada",
|
||||
"wobble",
|
||||
"jello",
|
||||
"heartBeat",
|
||||
"backInDown",
|
||||
"backInLeft",
|
||||
"backInRight",
|
||||
"backInUp",
|
||||
"backOutDown",
|
||||
"backOutLeft",
|
||||
"backOutRight",
|
||||
"backOutUp",
|
||||
"bounceIn",
|
||||
"bounceInDown",
|
||||
"bounceInLeft",
|
||||
"bounceInRight",
|
||||
"bounceInUp",
|
||||
"bounceOut",
|
||||
"bounceOutDown",
|
||||
"bounceOutLeft",
|
||||
"bounceOutRight",
|
||||
"bounceOutUp",
|
||||
"fadeIn",
|
||||
"fadeInDown",
|
||||
"fadeInDownBig",
|
||||
"fadeInLeft",
|
||||
"fadeInLeftBig",
|
||||
"fadeInRight",
|
||||
"fadeInRightBig",
|
||||
"fadeInUp",
|
||||
"fadeInUpBig",
|
||||
"fadeInTopLeft",
|
||||
"fadeInTopRight",
|
||||
"fadeInBottomLeft",
|
||||
"fadeInBottomRight",
|
||||
"fadeOut",
|
||||
"fadeOutDown",
|
||||
"fadeOutDownBig",
|
||||
"fadeOutLeft",
|
||||
"fadeOutLeftBig",
|
||||
"fadeOutRight",
|
||||
"fadeOutRightBig",
|
||||
"fadeOutUp",
|
||||
"fadeOutUpBig",
|
||||
"fadeOutTopLeft",
|
||||
"fadeOutTopRight",
|
||||
"fadeOutBottomRight",
|
||||
"fadeOutBottomLeft",
|
||||
"flip",
|
||||
"flipInX",
|
||||
"flipInY",
|
||||
"flipOutX",
|
||||
"flipOutY",
|
||||
"lightSpeedInRight",
|
||||
"lightSpeedInLeft",
|
||||
"lightSpeedOutRight",
|
||||
"lightSpeedOutLeft",
|
||||
"rotateIn",
|
||||
"rotateInDownLeft",
|
||||
"rotateInDownRight",
|
||||
"rotateInUpLeft",
|
||||
"rotateInUpRight",
|
||||
"rotateOut",
|
||||
"rotateOutDownLeft",
|
||||
"rotateOutDownRight",
|
||||
"rotateOutUpLeft",
|
||||
"rotateOutUpRight",
|
||||
"hinge",
|
||||
"jackInTheBox",
|
||||
"rollIn",
|
||||
"rollOut",
|
||||
"zoomIn",
|
||||
"zoomInDown",
|
||||
"zoomInLeft",
|
||||
"zoomInRight",
|
||||
"zoomInUp",
|
||||
"zoomOut",
|
||||
"zoomOutDown",
|
||||
"zoomOutLeft",
|
||||
"zoomOutRight",
|
||||
"zoomOutUp",
|
||||
"slideInDown",
|
||||
"slideInLeft",
|
||||
"slideInRight",
|
||||
"slideInUp",
|
||||
"slideOutDown",
|
||||
"slideOutLeft",
|
||||
"slideOutRight",
|
||||
"slideOutUp",
|
||||
];
|
||||
/**
|
||||
*
|
||||
* @param {IntersectionObserverEntry[]} entries
|
||||
* @param {IntersectionObserver} observer
|
||||
*/
|
||||
const handleIntersect = function (entries, observer) {
|
||||
entries.forEach(function (entry) {
|
||||
if (entry.intersectionRatio > ratio) {
|
||||
for (var i = 0; i < animArray.length; i++) {
|
||||
if (entry.target.classList.contains(animArray[i])) {
|
||||
entry.target.classList.add("animate__" + animArray[i]);
|
||||
entry.target.classList.add("reveal-visible");
|
||||
observer.unobserve(entry.target);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
const observer = new IntersectionObserver(handleIntersect, options);
|
||||
document.querySelectorAll(".animate__animated").forEach(function (r) {
|
||||
observer.observe(r);
|
||||
});
|
||||
|
||||
// let isFriseHover = false;
|
||||
// const optionsFrise = {
|
||||
// root: null, // Zone d'affichage : null = le viewport
|
||||
// rootMargin: "0px",
|
||||
// threshold: 0,
|
||||
// };
|
||||
// /**
|
||||
// *
|
||||
// * @param {IntersectionObserverEntry[]} entries
|
||||
// * @param {IntersectionObserver} observer
|
||||
// */
|
||||
// const handleFrise = function (entries, observer) {
|
||||
// entries.forEach(function (entry) {
|
||||
// isFriseHover = entry.isIntersecting;
|
||||
// });
|
||||
// };
|
||||
// const observerFrise = new IntersectionObserver(handleFrise, optionsFrise);
|
||||
// document.querySelectorAll(".timeline").forEach(function (r) {
|
||||
// observerFrise.observe(r);
|
||||
// });
|
||||
2
resources/js/back.js
vendored
Normal file
2
resources/js/back.js
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
// require('./bootstrap');
|
||||
// require('./vuejs');
|
||||
41
resources/js/bootstrap.js
vendored
Normal file
41
resources/js/bootstrap.js
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
window._ = require('lodash');
|
||||
|
||||
/**
|
||||
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
|
||||
* for JavaScript based Bootstrap features such as modals and tabs. This
|
||||
* code may be modified to fit the specific needs of your application.
|
||||
*/
|
||||
|
||||
try {
|
||||
window.Popper = require('popper.js').default;
|
||||
window.$ = window.jQuery = require('jquery');
|
||||
|
||||
require('bootstrap');
|
||||
} catch (e) {}
|
||||
|
||||
/**
|
||||
* We'll load the axios HTTP library which allows us to easily issue requests
|
||||
* to our Laravel back-end. This library automatically handles sending the
|
||||
* CSRF token as a header based on the value of the "XSRF" token cookie.
|
||||
*/
|
||||
|
||||
window.axios = require('axios');
|
||||
|
||||
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
||||
|
||||
/**
|
||||
* Echo exposes an expressive API for subscribing to channels and listening
|
||||
* for events that are broadcast by Laravel. Echo and event broadcasting
|
||||
* allows your team to easily build robust real-time web applications.
|
||||
*/
|
||||
|
||||
// import Echo from 'laravel-echo';
|
||||
|
||||
// window.Pusher = require('pusher-js');
|
||||
|
||||
// window.Echo = new Echo({
|
||||
// broadcaster: 'pusher',
|
||||
// key: process.env.MIX_PUSHER_APP_KEY,
|
||||
// cluster: process.env.MIX_PUSHER_APP_CLUSTER,
|
||||
// forceTLS: true
|
||||
// });
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
/*js doc*/
|
||||
|
||||
class Carrousel {
|
||||
export class Carrousel {
|
||||
/**
|
||||
*
|
||||
* This callback type is called 'requestCallback' and is displayed as a global symbol
|
||||
|
|
@ -29,8 +29,6 @@ class Carrousel {
|
|||
loop: true,
|
||||
play: true,
|
||||
interval: 3000,
|
||||
// autoPlay: true,
|
||||
// delay: 1000,
|
||||
pagination: false,
|
||||
navigation: true
|
||||
}, options)
|
||||
|
|
@ -98,14 +96,6 @@ class Carrousel {
|
|||
nextButton.addEventListener('click', this.next.bind(this))
|
||||
prevButton.addEventListener('click', this.prev.bind(this))
|
||||
|
||||
|
||||
// if (this.options.autoplay === true) {
|
||||
// let delay = 1000;
|
||||
// if (this.options.delay) {
|
||||
// delay === this.options.delay;
|
||||
// setTimeout(nextButton.next.bind(this), delay);
|
||||
// }
|
||||
// }
|
||||
if (this.options.loop === true) {
|
||||
return
|
||||
}
|
||||
204
resources/js/frontend/custom.js
vendored
Normal file
204
resources/js/frontend/custom.js
vendored
Normal file
|
|
@ -0,0 +1,204 @@
|
|||
// let isPass = false;
|
||||
// let heightOfsset = 0;
|
||||
// let heightElt = 0;
|
||||
|
||||
var app = {
|
||||
init: () => {
|
||||
window.onscroll = function () {
|
||||
app.scrollFunction();
|
||||
};
|
||||
|
||||
app.scroll();
|
||||
hideReclaFields();
|
||||
app.clickContact();
|
||||
},
|
||||
|
||||
scroll: () => {
|
||||
|
||||
document
|
||||
.getElementById("backtotop")
|
||||
.addEventListener("click", function () {
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
scrollFunction: () => {
|
||||
let imgZoom = document.querySelectorAll('.img-zoom');
|
||||
let index = 0;
|
||||
if (
|
||||
document.body.scrollTop > 100 ||
|
||||
document.documentElement.scrollTop > 100
|
||||
) {
|
||||
document.getElementById("backtotop").style.display = "flex";
|
||||
for (index = 0; index < imgZoom.length; index++) {
|
||||
imgZoom[index].classList.add('zoomed');
|
||||
}
|
||||
} else {
|
||||
document.getElementById("backtotop").style.display = "none";
|
||||
for (index = 0; index < imgZoom.length; index++) {
|
||||
imgZoom[index].classList.remove('zoomed');
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
clickContact: () => {
|
||||
let radioRequest = document.querySelectorAll('.radio-request');
|
||||
for (let index = 0; index < radioRequest.length; index++) {
|
||||
radioRequest[index].addEventListener("click", function () {
|
||||
if (index === 0) {
|
||||
showReclaFields();
|
||||
} else {
|
||||
hideReclaFields();
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
document.addEventListener("DOMContentLoaded", app.init);
|
||||
|
||||
function showReclaFields() {
|
||||
let collection = document.getElementsByClassName('recla_field');
|
||||
for (let elem of collection) {
|
||||
elem.style.display = 'flex';
|
||||
}
|
||||
}
|
||||
function hideReclaFields() {
|
||||
let collection = document.getElementsByClassName('recla_field');
|
||||
for (let elem of collection) {
|
||||
elem.style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// FONCTION PERMETTANT DE FAIRE UN EFFET ANIMATION AU DEFILEMENT
|
||||
const ratio = 0.1; // 10% du div revelé pour rendre visible
|
||||
const options = {
|
||||
root: null, // Zone d'affichage : null = le viewport
|
||||
rootMargin: "0px",
|
||||
threshold: ratio,
|
||||
};
|
||||
var animArray = [
|
||||
"bounce",
|
||||
"flash",
|
||||
"pulse",
|
||||
"rubberBand",
|
||||
"shakeX",
|
||||
"shakeY",
|
||||
"headShake",
|
||||
"swing",
|
||||
"tada",
|
||||
"wobble",
|
||||
"jello",
|
||||
"heartBeat",
|
||||
"backInDown",
|
||||
"backInLeft",
|
||||
"backInRight",
|
||||
"backInUp",
|
||||
"backOutDown",
|
||||
"backOutLeft",
|
||||
"backOutRight",
|
||||
"backOutUp",
|
||||
"bounceIn",
|
||||
"bounceInDown",
|
||||
"bounceInLeft",
|
||||
"bounceInRight",
|
||||
"bounceInUp",
|
||||
"bounceOut",
|
||||
"bounceOutDown",
|
||||
"bounceOutLeft",
|
||||
"bounceOutRight",
|
||||
"bounceOutUp",
|
||||
"fadeIn",
|
||||
"fadeInDown",
|
||||
"fadeInDownBig",
|
||||
"fadeInLeft",
|
||||
"fadeInLeftBig",
|
||||
"fadeInRight",
|
||||
"fadeInRightBig",
|
||||
"fadeInUp",
|
||||
"fadeInUpBig",
|
||||
"fadeInTopLeft",
|
||||
"fadeInTopRight",
|
||||
"fadeInBottomLeft",
|
||||
"fadeInBottomRight",
|
||||
"fadeOut",
|
||||
"fadeOutDown",
|
||||
"fadeOutDownBig",
|
||||
"fadeOutLeft",
|
||||
"fadeOutLeftBig",
|
||||
"fadeOutRight",
|
||||
"fadeOutRightBig",
|
||||
"fadeOutUp",
|
||||
"fadeOutUpBig",
|
||||
"fadeOutTopLeft",
|
||||
"fadeOutTopRight",
|
||||
"fadeOutBottomRight",
|
||||
"fadeOutBottomLeft",
|
||||
"flip",
|
||||
"flipInX",
|
||||
"flipInY",
|
||||
"flipOutX",
|
||||
"flipOutY",
|
||||
"lightSpeedInRight",
|
||||
"lightSpeedInLeft",
|
||||
"lightSpeedOutRight",
|
||||
"lightSpeedOutLeft",
|
||||
"rotateIn",
|
||||
"rotateInDownLeft",
|
||||
"rotateInDownRight",
|
||||
"rotateInUpLeft",
|
||||
"rotateInUpRight",
|
||||
"rotateOut",
|
||||
"rotateOutDownLeft",
|
||||
"rotateOutDownRight",
|
||||
"rotateOutUpLeft",
|
||||
"rotateOutUpRight",
|
||||
"hinge",
|
||||
"jackInTheBox",
|
||||
"rollIn",
|
||||
"rollOut",
|
||||
"zoomIn",
|
||||
"zoomInDown",
|
||||
"zoomInLeft",
|
||||
"zoomInRight",
|
||||
"zoomInUp",
|
||||
"zoomOut",
|
||||
"zoomOutDown",
|
||||
"zoomOutLeft",
|
||||
"zoomOutRight",
|
||||
"zoomOutUp",
|
||||
"slideInDown",
|
||||
"slideInLeft",
|
||||
"slideInRight",
|
||||
"slideInUp",
|
||||
"slideOutDown",
|
||||
"slideOutLeft",
|
||||
"slideOutRight",
|
||||
"slideOutUp",
|
||||
];
|
||||
/**
|
||||
*
|
||||
* @param {IntersectionObserverEntry[]} entries
|
||||
* @param {IntersectionObserver} observer
|
||||
*/
|
||||
const handleIntersect = function (entries, observer) {
|
||||
entries.forEach(function (entry) {
|
||||
if (entry.intersectionRatio > ratio) {
|
||||
for (var i = 0; i < animArray.length; i++) {
|
||||
if (entry.target.classList.contains(animArray[i])) {
|
||||
entry.target.classList.add("animate__" + animArray[i]);
|
||||
entry.target.classList.add("reveal-visible");
|
||||
observer.unobserve(entry.target);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
const observer = new IntersectionObserver(handleIntersect, options);
|
||||
document.querySelectorAll(".animate__animated").forEach(function (r) {
|
||||
observer.observe(r);
|
||||
});
|
||||
8
resources/js/frontend/front.js
vendored
Normal file
8
resources/js/frontend/front.js
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
// cookie notice
|
||||
import { LdcwebCn } from "./ldcweb-cn.js";
|
||||
window.LdcwebCn = LdcwebCn;
|
||||
|
||||
import { Carrousel } from "./caroussel.js"
|
||||
window.Carrousel = Carrousel;
|
||||
|
||||
require('./custom');
|
||||
304
resources/js/frontend/ldcweb-cn.js
vendored
Normal file
304
resources/js/frontend/ldcweb-cn.js
vendored
Normal file
|
|
@ -0,0 +1,304 @@
|
|||
/**
|
||||
* LDC Service Web
|
||||
* Version 1.0
|
||||
*/
|
||||
|
||||
export class LdcwebCn {
|
||||
|
||||
constructor(config) {
|
||||
this.config = config;
|
||||
this.cookieContainer = document.getElementById('ldcweb-cn');
|
||||
this.bannerContainer = document.getElementById('ldcweb-banner');
|
||||
this.modalContainer = document.getElementById('ldcweb-cn-modal');
|
||||
this.modalCloseBtn = document.getElementById('close-link');
|
||||
this.acceptAllBtnBanner = document.getElementById('ldcweb-cn-accept-banner');
|
||||
this.acceptAllBtn = document.getElementById('ldcweb-cn-accept');
|
||||
this.denyAllBtnBanner = document.getElementById('ldcweb-cn-deny-banner');
|
||||
this.denyAllBtn = document.getElementById('ldcweb-cn-deny');
|
||||
this.personalizeBtn = document.getElementsByClassName('ldcweb-cn-personalize');
|
||||
this.changeBtn = document.getElementsByClassName('ldcweb-cn-change');
|
||||
this.cookiesList = document.getElementById('ldcweb-cn-list');
|
||||
this.cookieLink = document.querySelector('.footer-content a[href="#cookie"]')
|
||||
this.template = document.getElementById('template').cloneNode(true);
|
||||
document.getElementById('template').remove();
|
||||
|
||||
let cookies = this.getLDCWebCookie('ldcwebcn-init');
|
||||
if (cookies === undefined) {
|
||||
let newCookie = [];
|
||||
|
||||
for (const [key, value] of Object.entries(this.config)) {
|
||||
newCookie.push(key + "=wait");
|
||||
}
|
||||
|
||||
this.saveLDCWebCookie(newCookie);
|
||||
this.cookieContainer.classList.add('open-banner');
|
||||
} else {
|
||||
let test = cookies.split(',');
|
||||
test.forEach(elm => {
|
||||
let test = elm.split('=');
|
||||
if (test[1] === 'wait') {
|
||||
this.cookieContainer.classList.add('open-banner');
|
||||
}
|
||||
});
|
||||
}
|
||||
this.modalCloseBtn.addEventListener(
|
||||
'click',
|
||||
function (e) {
|
||||
e.preventDefault();
|
||||
let cookies = this.getLDCWebCookie('ldcwebcn-init');
|
||||
let test = cookies.split(',');
|
||||
let bIsCompleted = true;
|
||||
for (let item of test) {
|
||||
if (item.indexOf('=wait') !== -1) {
|
||||
bIsCompleted = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (bIsCompleted) {
|
||||
this.cookieContainer.classList.remove('open-modal');
|
||||
this.cookieContainer.classList.remove('open-banner');
|
||||
} else {
|
||||
alert("Vous devez renseigner votre choix pour tous les cookies, svp.");
|
||||
}
|
||||
}.bind(this)
|
||||
);
|
||||
let accept = function (e) {
|
||||
e.preventDefault();
|
||||
for (const [key, value] of Object.entries(this.config)) {
|
||||
this.addCookie(key, value);
|
||||
}
|
||||
for (let acceptLabel of this.cookieContainer.querySelectorAll('.accept > label')) {
|
||||
acceptLabel.classList.add('active');
|
||||
}
|
||||
for (let denyLabel of this.cookieContainer.querySelectorAll('.deny > label')) {
|
||||
denyLabel.classList.remove('active');
|
||||
}
|
||||
this.updateAllCookiesButtonsActiveStatus()
|
||||
this.cookieContainer.classList.remove('open-modal');
|
||||
this.cookieContainer.classList.remove('open-banner');
|
||||
}.bind(this);
|
||||
this.acceptAllBtnBanner.addEventListener('click', accept);
|
||||
this.acceptAllBtn.addEventListener('click', accept);
|
||||
|
||||
let deny = function (e) {
|
||||
e.preventDefault();
|
||||
for (const [key, value] of Object.entries(this.config)) {
|
||||
this.removeCookie(key, value);
|
||||
}
|
||||
for (let acceptLabel of this.cookieContainer.querySelectorAll('.accept > label')) {
|
||||
acceptLabel.classList.remove('active');
|
||||
}
|
||||
for (let denyLabel of this.cookieContainer.querySelectorAll('.deny > label')) {
|
||||
denyLabel.classList.add('active');
|
||||
}
|
||||
this.updateAllCookiesButtonsActiveStatus()
|
||||
this.cookieContainer.classList.remove('open-modal');
|
||||
this.cookieContainer.classList.remove('open-banner');
|
||||
}.bind(this);
|
||||
this.denyAllBtnBanner.addEventListener('click', deny);
|
||||
this.denyAllBtn.addEventListener('click', deny);
|
||||
|
||||
this.cookieLink.addEventListener(
|
||||
'click',
|
||||
function (e) {
|
||||
e.preventDefault();
|
||||
this.setCookieList();
|
||||
this.updateAllCookiesButtonsActiveStatus()
|
||||
}.bind(this)
|
||||
);
|
||||
|
||||
for (let item of this.personalizeBtn) {
|
||||
this.addEvent(
|
||||
item,
|
||||
'click',
|
||||
function () {
|
||||
this.setCookieList();
|
||||
}.bind(this)
|
||||
);
|
||||
}
|
||||
|
||||
this.setListenerOnChange();
|
||||
|
||||
let cookie = this.getLDCWebCookie('ldcwebcn-init');
|
||||
let test = cookie.split(',');
|
||||
test.forEach(elm => {
|
||||
let test = elm.split('=');
|
||||
if (test[1] === 'true') {
|
||||
this.config[test[0]].script();
|
||||
}
|
||||
});
|
||||
|
||||
this.updateAllCookiesButtonsActiveStatus()
|
||||
}
|
||||
|
||||
setCookieList() {
|
||||
this.cookiesList.innerHTML = "";
|
||||
let cookiesSite = this.getLDCWebCookie('ldcwebcn-init');
|
||||
|
||||
for (const [key, value] of Object.entries(this.config)) {
|
||||
let cookie = document.createElement('li');
|
||||
cookie.append(this.template.children.item(0).cloneNode(true));
|
||||
let name = cookie.querySelector('span.ldcweb-cn-name');
|
||||
let description = cookie.querySelector('span.ldcweb-cn-description');
|
||||
let link = cookie.querySelector('a.ldcweb-cn-link');
|
||||
let acceptInput = cookie.querySelector('.accept > input');
|
||||
let denyInput = cookie.querySelector('.deny > input');
|
||||
let acceptLabel = cookie.querySelector('.accept > label');
|
||||
let denyLabel = cookie.querySelector('.deny > label');
|
||||
|
||||
name.textContent = value.name;
|
||||
description.textContent = value.description;
|
||||
link.textContent = "Politique de confidentialité";
|
||||
link.setAttribute("href", value.link);
|
||||
acceptInput.id = key + '1';
|
||||
acceptInput.name = key;
|
||||
acceptInput.dataset.name = key;
|
||||
acceptLabel.htmlFor = key + '1';
|
||||
denyInput.id = key + '2';
|
||||
denyInput.name = key;
|
||||
denyInput.dataset.name = key;
|
||||
denyLabel.htmlFor = key + '2';
|
||||
|
||||
acceptInput.addEventListener('click', function (e) {
|
||||
acceptLabel.classList.add('active');
|
||||
denyLabel.classList.remove('active');
|
||||
this.updateAllCookiesButtonsActiveStatus();
|
||||
this.addCookie(key, value)
|
||||
}.bind(this));
|
||||
denyInput.addEventListener('click', function (e) {
|
||||
acceptLabel.classList.remove('active');
|
||||
denyLabel.classList.add('active');
|
||||
this.updateAllCookiesButtonsActiveStatus();
|
||||
this.removeCookie(key, value)
|
||||
}.bind(this));
|
||||
|
||||
this.cookiesList.append(cookie);
|
||||
|
||||
let cookiesArray = cookiesSite.split(',');
|
||||
cookiesArray.forEach(elm => {
|
||||
let name = elm.slice(0, elm.indexOf('='));
|
||||
let status = elm.slice(elm.indexOf('=') + 1);
|
||||
if (name === key) {
|
||||
acceptLabel.classList.remove('active');
|
||||
denyLabel.classList.remove('active');
|
||||
switch (status) {
|
||||
case 'true':
|
||||
acceptLabel.classList.add('active');
|
||||
break;
|
||||
case 'false':
|
||||
denyLabel.classList.add('active');
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (status === 'wait') {
|
||||
this.cookieContainer.classList.add('open-banner');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
this.cookieContainer.classList.add('open-modal');
|
||||
this.setListenerOnChange();
|
||||
}
|
||||
|
||||
updateAllCookiesButtonsActiveStatus() {
|
||||
let acceptsButtons = this.cookieContainer.querySelectorAll('div.accept > label');
|
||||
let deniesButtons = this.cookieContainer.querySelectorAll('div.deny > label');
|
||||
let activeAcceptsButtons = this.cookieContainer.querySelectorAll('div.accept > label.active');
|
||||
let activeDeniesButtons = this.cookieContainer.querySelectorAll('div.deny > label.active');
|
||||
|
||||
this.acceptAllBtn.classList.remove('active');
|
||||
this.denyAllBtn.classList.remove('active');
|
||||
if (acceptsButtons.length && acceptsButtons.length === activeAcceptsButtons.length) {
|
||||
this.acceptAllBtn.classList.add('active');
|
||||
}
|
||||
if (deniesButtons.length && deniesButtons.length === activeDeniesButtons.length) {
|
||||
this.denyAllBtn.classList.add('active');
|
||||
}
|
||||
}
|
||||
|
||||
addCookie(key, value) {
|
||||
if (value.script) {
|
||||
value.script();
|
||||
}
|
||||
this.changeStatus(key, "true");
|
||||
}
|
||||
|
||||
removeCookie(key, value) {
|
||||
for (let cookieName of value.cookies) {
|
||||
this.deleteBrowserCookie(cookieName, "/", "." + location.host)
|
||||
}
|
||||
if (document.getElementById(key)) {
|
||||
document.getElementById(key).remove();
|
||||
}
|
||||
this.changeStatus(key, "false");
|
||||
}
|
||||
setListenerOnChange() {
|
||||
this.changeBtn = document.getElementsByClassName('ldcweb-cn-change');
|
||||
for (let item of this.changeBtn) {
|
||||
this.addEvent(
|
||||
item,
|
||||
'click',
|
||||
function () {
|
||||
this.changeStatus(item.getAttribute('data-name'), item.getAttribute('data-status'));
|
||||
}.bind(this)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
changeStatus(name, status) {
|
||||
let newCookie = [];
|
||||
|
||||
let cookie = this.getLDCWebCookie('ldcwebcn-init');
|
||||
let test = cookie.split(',');
|
||||
test.forEach(elm => {
|
||||
let test = elm.split('=');
|
||||
if (test[0] === name) {
|
||||
newCookie.push(name + "=" + status);
|
||||
if (status === 'false') {
|
||||
this.config[test[0]].cookies.forEach(elm => {
|
||||
let cookies = this.getLDCWebCookie(elm);
|
||||
if (cookies !== undefined) {
|
||||
document.cookie = elm + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; domain=" + document.domain + "; path=/";
|
||||
document.cookie = elm + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; domain=." + document.domain + "; path=/";
|
||||
}
|
||||
});
|
||||
}
|
||||
} else {
|
||||
newCookie.push(elm);
|
||||
}
|
||||
});
|
||||
|
||||
this.saveLDCWebCookie(newCookie);
|
||||
}
|
||||
|
||||
deleteBrowserCookie(name, path, domain) {
|
||||
if (this.getLDCWebCookie(name)) {
|
||||
document.cookie = name + "=" +
|
||||
((path) ? ";path=" + path : "") +
|
||||
((domain) ? ";domain=" + domain : "") +
|
||||
";expires=Thu, 01 Jan 1970 00:00:01 GMT";
|
||||
}
|
||||
}
|
||||
|
||||
getLDCWebCookie(name) {
|
||||
let matches = document.cookie.match(new RegExp(
|
||||
"(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"
|
||||
));
|
||||
return matches ? decodeURIComponent(matches[1]) : undefined;
|
||||
}
|
||||
|
||||
addEvent(element, evnt, funct) {
|
||||
if (element.attachEvent)
|
||||
return element.attachEvent('on' + evnt, funct);
|
||||
else
|
||||
return element.addEventListener(evnt, funct, false);
|
||||
}
|
||||
|
||||
saveLDCWebCookie(content) {
|
||||
// document.cookie = "ldcwebcn-init=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
|
||||
let date = new Date();
|
||||
let newDate = new Date(date.setMonth(date.getMonth() + 13));
|
||||
document.cookie = "ldcwebcn-init=" + content + "; expires=" + newDate.toUTCString() + ";";
|
||||
}
|
||||
|
||||
}
|
||||
31
resources/js/vuejs.js
vendored
Normal file
31
resources/js/vuejs.js
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
window.__IDHALALVue = require('vue').default;
|
||||
import vSelect from 'vue-select'
|
||||
__IDHALALVue.component('v-select', vSelect);
|
||||
|
||||
// register modules
|
||||
const modules = require.context("./modules", true, /\.js$/i);
|
||||
modules.keys().map(key => __IDHALALVue.mixin(modules(key).default));
|
||||
|
||||
// Register components
|
||||
const vues = require.context("./components/backend", true, /\.vue$/i);
|
||||
vues.keys().map(key =>
|
||||
__IDHALALVue.component(
|
||||
key
|
||||
.split("/")
|
||||
.pop()
|
||||
.split(".")[0]
|
||||
.replace(/\.?([A-Z])/g, function (x, y) {
|
||||
return "-" + y.toLowerCase();
|
||||
})
|
||||
.replace(/^-/, "")
|
||||
.replace("-component", ""),
|
||||
vues(key).default
|
||||
)
|
||||
);
|
||||
const vuejsModules = [];
|
||||
|
||||
document.getElementsByClassName('idhalal-vuejs').forEach(element => {
|
||||
vuejsModules.push(new __IDHALALVue({
|
||||
el: element
|
||||
}));
|
||||
});
|
||||
2
resources/sass/__import.scss
vendored
Normal file
2
resources/sass/__import.scss
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
@import "variables";
|
||||
@import "classes";
|
||||
12
resources/sass/_classes.scss
vendored
Normal file
12
resources/sass/_classes.scss
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
.min-height-100vh {
|
||||
min-height: calc(100vh - #{$topNavHeight});
|
||||
}
|
||||
|
||||
.site {
|
||||
border: solid white 1px;
|
||||
}
|
||||
|
||||
#siteid {
|
||||
color: white;
|
||||
margin-right: 100px;
|
||||
}
|
||||
252
resources/sass/_form.scss
vendored
252
resources/sass/_form.scss
vendored
|
|
@ -1,252 +0,0 @@
|
|||
form{
|
||||
font-size:16px;
|
||||
}
|
||||
|
||||
input[type=text]{
|
||||
border:0 none;
|
||||
}
|
||||
|
||||
input[type=submit]{
|
||||
min-width:180px;
|
||||
padding:15px;
|
||||
color:$color-main;
|
||||
background-color:transparent;
|
||||
font-weight:bold;
|
||||
text-align:center;
|
||||
text-transform:uppercase;
|
||||
border:1px solid $color-main;
|
||||
}
|
||||
|
||||
.newsletter input[type=text],
|
||||
input[type=submit]{
|
||||
border-radius: 30px;
|
||||
}
|
||||
|
||||
input[type=submit]{
|
||||
cursor: pointer;
|
||||
&:hover{
|
||||
color:$color-light;
|
||||
background-color:$color-main;
|
||||
}
|
||||
}
|
||||
|
||||
input[type=text],
|
||||
input[type=number],
|
||||
input[type=mail]{
|
||||
padding:15px;
|
||||
font-size:15px;
|
||||
border:0 none;
|
||||
outline-color:#efefef;
|
||||
}
|
||||
|
||||
textarea{
|
||||
width:100%;
|
||||
max-width:100%;
|
||||
margin-top:30px;
|
||||
margin-bottom:30px;
|
||||
}
|
||||
|
||||
.form-row{
|
||||
display:flex;
|
||||
padding-top:30px;
|
||||
padding-bottom:30px;
|
||||
}
|
||||
|
||||
.form-group{
|
||||
display:flex;
|
||||
padding-bottom:2px;
|
||||
width:100%;
|
||||
max-width:100%;
|
||||
border-bottom:solid 1px $color-dark;
|
||||
input[type=text],
|
||||
input[type=number],
|
||||
input[type=mail]{
|
||||
flex-grow:2;
|
||||
}
|
||||
&:first-of-type{
|
||||
margin-left:0;
|
||||
}
|
||||
&:last-of-type{
|
||||
margin-right:0;
|
||||
}
|
||||
}
|
||||
|
||||
fieldset{
|
||||
margin-top:45px;
|
||||
border:0 none;
|
||||
legend{
|
||||
margin-bottom:30px;
|
||||
font-weight:bold;
|
||||
}
|
||||
}
|
||||
|
||||
/*CUSTOM RADIO*/
|
||||
.radio-label {
|
||||
position: relative;
|
||||
padding-left: 20px;
|
||||
margin-right:25px;
|
||||
color:#999999;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Hide the browser's default radio button */
|
||||
.radio-label input {
|
||||
appearance: none;
|
||||
}
|
||||
|
||||
/* Create a custom radio button */
|
||||
.checkmark {
|
||||
position: absolute;
|
||||
top: 3px;
|
||||
left: 0;
|
||||
right:10px;
|
||||
height: 12px;
|
||||
width: 12px;
|
||||
background-color: $color-light;
|
||||
border:solid 1px $color-main;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
/* On mouse-over, add a grey background color */
|
||||
.radio-label:hover input ~ .checkmark {
|
||||
background-color: $color-main;
|
||||
}
|
||||
|
||||
/* When the radio button is checked, add a blue background */
|
||||
.radio-label input:checked ~ .checkmark {
|
||||
background-color: $color-light;
|
||||
}
|
||||
|
||||
/* Create the indicator (the dot/circle - hidden when not checked) */
|
||||
.checkmark:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Show the indicator (dot/circle) when checked */
|
||||
.radio-label input:checked ~ .checkmark:after {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Style the indicator (dot/circle) */
|
||||
.radio-label .checkmark:after {
|
||||
top: 2px;
|
||||
left: 2px;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background-color: $color-main;
|
||||
}
|
||||
|
||||
/*CUSTOM CHECKBOX*/
|
||||
.ck-button{
|
||||
margin-bottom:45px;
|
||||
}
|
||||
.ck-button label{
|
||||
margin-right:10px;
|
||||
&:last-child{
|
||||
margin-right:0;
|
||||
}
|
||||
}
|
||||
|
||||
.ck-button label span {
|
||||
padding:10px;
|
||||
margin-right:10px;
|
||||
border:1px solid $color-dark;
|
||||
border-radius:40px;
|
||||
cursor: pointer;
|
||||
&:last-child{
|
||||
margin-right:0;
|
||||
}
|
||||
&:hover{
|
||||
color:$color-light;
|
||||
border-color:$color-main;
|
||||
background-color:$color-main;
|
||||
}
|
||||
}
|
||||
|
||||
.ck-button label input {
|
||||
position:absolute;
|
||||
top:-20px;
|
||||
}
|
||||
|
||||
.ck-button input:checked + span {
|
||||
background-color:$color-main;
|
||||
color:$color-light;
|
||||
border-color:$color-light;
|
||||
}
|
||||
|
||||
/*CUSTOM FORM*/
|
||||
.swap {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.swap:after {
|
||||
cursor: pointer;
|
||||
visibility: visible;
|
||||
content: '';
|
||||
font-size: calc(var(--swap-size) - 2.5rem);
|
||||
display: inline-block;
|
||||
width: var(--swap-size);
|
||||
height: var(--swap-size);
|
||||
padding: .5rem;
|
||||
border: 1px solid $color-main;
|
||||
border-radius: .4em;
|
||||
background-color: $color-light;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.swap:checked:after {
|
||||
content:"";
|
||||
background-color: $color-main;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 800px){
|
||||
.newsletter input[type=text]{
|
||||
width:430px;
|
||||
}
|
||||
.form-group{
|
||||
align-items:center;
|
||||
margin-left:15px;
|
||||
margin-right:15px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 799px){
|
||||
input[type=text],
|
||||
input[type=submit]{
|
||||
display: block;
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
}
|
||||
|
||||
form,
|
||||
input[type=text]{
|
||||
width:100%;
|
||||
max-width:100%;
|
||||
}
|
||||
|
||||
input[type=submit]{
|
||||
margin-top:25px;
|
||||
}
|
||||
|
||||
.form-row,
|
||||
.form-group{
|
||||
flex-direction:column;
|
||||
}
|
||||
|
||||
.form-group{
|
||||
margin-bottom:25px;
|
||||
&:last-child{
|
||||
margin-bottom:0;
|
||||
}
|
||||
}
|
||||
|
||||
.ck-button label span {
|
||||
display:inline-block;
|
||||
margin-bottom:5px;
|
||||
}
|
||||
}
|
||||
34
resources/sass/_variables.scss
vendored
34
resources/sass/_variables.scss
vendored
|
|
@ -1,18 +1,22 @@
|
|||
$color-light: #fff !default;
|
||||
$color-dark: #0c1417 !default;
|
||||
$color-main: #fccf1d !default;
|
||||
$color-second: #ff0400 !default;
|
||||
// NAVBAR
|
||||
$topNavHeight: 3rem;
|
||||
|
||||
$color-grey: #888 !default;
|
||||
$color-blue: #222f5c !default;
|
||||
$color-brown: #8b4437 !default;
|
||||
$color-green: #85b83f !default;
|
||||
$color-pink: #be366c !default;
|
||||
$color-orange: #d36500 !default;
|
||||
$color-newgrey: #cba583 !default;
|
||||
$color-newblue: #98c1e8 !default;
|
||||
// Body
|
||||
$body-bg: #f8fafc;
|
||||
|
||||
$globalfont: 18px;
|
||||
// Typography
|
||||
$font-family-sans-serif: 'Nunito', sans-serif;
|
||||
$font-size-base: 0.9rem;
|
||||
$line-height-base: 1.6;
|
||||
|
||||
$fontbarlow-regular: "barlow-regular", arial, sans-serif;
|
||||
$fontbarlow-bold: "barlow-bold", arial, sans-serif;
|
||||
// Colors
|
||||
$blue: #3490dc;
|
||||
$indigo: #6574cd;
|
||||
$purple: #9561e2;
|
||||
$pink: #f66d9b;
|
||||
$red: #e3342f;
|
||||
$orange: #f6993f;
|
||||
$yellow: #ffed4a;
|
||||
$green: #38c172;
|
||||
$teal: #4dc0b5;
|
||||
$cyan: #6cb2eb;
|
||||
|
|
|
|||
5
resources/sass/back.scss
vendored
Normal file
5
resources/sass/back.scss
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
@import "_import";
|
||||
|
||||
@import "layouts/backend/top_nav";
|
||||
|
||||
@import "vue-select/src/scss/vue-select.scss";
|
||||
|
|
@ -1,21 +1,21 @@
|
|||
#picto-localisation {
|
||||
left: -40px;
|
||||
width: 25px;
|
||||
height: 34px;
|
||||
margin-right: 30px;
|
||||
|
||||
.cls-1 {
|
||||
fill: #131414;
|
||||
}
|
||||
.cls-2 {
|
||||
fill: transparent;
|
||||
}
|
||||
}
|
||||
.footer-widgets {
|
||||
align-items: center;
|
||||
.footer-widgets__content {
|
||||
left: 20%;
|
||||
right: 0;
|
||||
#picto-localisation {
|
||||
position: absolute;
|
||||
left: -30px;
|
||||
width: 25px;
|
||||
height: 34px;
|
||||
|
||||
.cls-1 {
|
||||
fill: #131414;
|
||||
}
|
||||
.cls-2 {
|
||||
fill: transparent;
|
||||
}
|
||||
}
|
||||
&.white-color {
|
||||
p {
|
||||
color: white;
|
||||
252
resources/sass/frontend/_form.scss
vendored
Normal file
252
resources/sass/frontend/_form.scss
vendored
Normal file
|
|
@ -0,0 +1,252 @@
|
|||
form {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
input[type="text"] {
|
||||
border: 0 none;
|
||||
}
|
||||
|
||||
input[type="submit"] {
|
||||
min-width: 180px;
|
||||
padding: 15px;
|
||||
color: $color-main;
|
||||
background-color: transparent;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
border: 1px solid $color-main;
|
||||
}
|
||||
|
||||
.newsletter input[type="text"],
|
||||
input[type="submit"] {
|
||||
border-radius: 30px;
|
||||
}
|
||||
|
||||
input[type="submit"] {
|
||||
cursor: pointer;
|
||||
&:hover {
|
||||
color: $color-light;
|
||||
background-color: $color-main;
|
||||
}
|
||||
}
|
||||
|
||||
input[type="text"],
|
||||
input[type="number"],
|
||||
input[type="mail"] {
|
||||
padding: 15px;
|
||||
font-size: 15px;
|
||||
border: 0 none;
|
||||
outline-color: #efefef;
|
||||
}
|
||||
|
||||
textarea {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
margin-top: 30px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.form-row {
|
||||
display: flex;
|
||||
padding-top: 30px;
|
||||
padding-bottom: 30px;
|
||||
}
|
||||
|
||||
.form-group {
|
||||
display: flex;
|
||||
padding-bottom: 2px;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
border-bottom: solid 1px $color-dark;
|
||||
input[type="text"],
|
||||
input[type="number"],
|
||||
input[type="mail"] {
|
||||
flex-grow: 2;
|
||||
}
|
||||
&:first-of-type {
|
||||
margin-left: 0;
|
||||
}
|
||||
&:last-of-type {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
fieldset {
|
||||
margin-top: 45px;
|
||||
border: 0 none;
|
||||
legend {
|
||||
margin-bottom: 30px;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
/*CUSTOM RADIO*/
|
||||
.radio-label {
|
||||
position: relative;
|
||||
padding-left: 20px;
|
||||
margin-right: 25px;
|
||||
// color:#999999;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Hide the browser's default radio button */
|
||||
.radio-label input {
|
||||
appearance: none;
|
||||
}
|
||||
|
||||
/* Create a custom radio button */
|
||||
.checkmark {
|
||||
position: absolute;
|
||||
top: 3px;
|
||||
left: 0;
|
||||
right: 10px;
|
||||
height: 12px;
|
||||
width: 12px;
|
||||
background-color: $color-light;
|
||||
border: solid 1px $color-main;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
/* On mouse-over, add a grey background color */
|
||||
.radio-label:hover input ~ .checkmark {
|
||||
background-color: $color-main;
|
||||
}
|
||||
|
||||
/* When the radio button is checked, add a blue background */
|
||||
.radio-label input:checked ~ .checkmark {
|
||||
background-color: $color-light;
|
||||
}
|
||||
|
||||
/* Create the indicator (the dot/circle - hidden when not checked) */
|
||||
.checkmark:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Show the indicator (dot/circle) when checked */
|
||||
.radio-label input:checked ~ .checkmark:after {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Style the indicator (dot/circle) */
|
||||
.radio-label .checkmark:after {
|
||||
top: 2px;
|
||||
left: 2px;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background-color: $color-main;
|
||||
}
|
||||
|
||||
/*CUSTOM CHECKBOX*/
|
||||
.ck-button {
|
||||
margin-bottom: 45px;
|
||||
}
|
||||
.ck-button label {
|
||||
margin-right: 10px;
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.ck-button label span {
|
||||
padding: 10px;
|
||||
margin-right: 10px;
|
||||
border: 1px solid $color-dark;
|
||||
border-radius: 40px;
|
||||
cursor: pointer;
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
&:hover {
|
||||
color: $color-light;
|
||||
border-color: $color-main;
|
||||
background-color: $color-main;
|
||||
}
|
||||
}
|
||||
|
||||
.ck-button label input {
|
||||
position: absolute;
|
||||
top: -20px;
|
||||
}
|
||||
|
||||
.ck-button input:checked + span {
|
||||
background-color: $color-main;
|
||||
color: $color-light;
|
||||
border-color: $color-light;
|
||||
}
|
||||
|
||||
/*CUSTOM FORM*/
|
||||
.swap {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.swap:after {
|
||||
cursor: pointer;
|
||||
visibility: visible;
|
||||
content: "";
|
||||
font-size: calc(var(--swap-size) - 2.5rem);
|
||||
display: inline-block;
|
||||
width: var(--swap-size);
|
||||
height: var(--swap-size);
|
||||
padding: 0.5rem;
|
||||
border: 1px solid $color-main;
|
||||
border-radius: 0.4em;
|
||||
background-color: $color-light;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.swap:checked:after {
|
||||
content: "";
|
||||
background-color: $color-main;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 800px) {
|
||||
.newsletter input[type="text"] {
|
||||
width: 430px;
|
||||
}
|
||||
.form-group {
|
||||
align-items: center;
|
||||
margin-left: 15px;
|
||||
margin-right: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 799px) {
|
||||
input[type="text"],
|
||||
input[type="submit"] {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
form,
|
||||
input[type="text"] {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
input[type="submit"] {
|
||||
margin-top: 25px;
|
||||
}
|
||||
|
||||
.form-row,
|
||||
.form-group {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.form-group {
|
||||
margin-bottom: 25px;
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.ck-button label span {
|
||||
display: inline-block;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
}
|
||||
|
|
@ -25,6 +25,9 @@
|
|||
&.vertical-center {
|
||||
align-items: center;
|
||||
}
|
||||
&.horizontal-center {
|
||||
justify-content: center;
|
||||
}
|
||||
&.start {
|
||||
align-items: flex-start;
|
||||
}
|
||||
23
resources/sass/frontend/_variables.scss
vendored
Normal file
23
resources/sass/frontend/_variables.scss
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
$color-light: #fff !default;
|
||||
$color-dark: #0c1417 !default;
|
||||
$color-main: #fccf1d !default;
|
||||
$color-second: #ff0400 !default;
|
||||
|
||||
$color-grey: #888 !default;
|
||||
$color-blue: #222f5c !default;
|
||||
$color-brown: #8b4437 !default;
|
||||
$color-green: #85b83f !default;
|
||||
$color-pink: #be366c !default;
|
||||
$color-orange: #d36500 !default;
|
||||
$color-newgrey: #cba583 !default;
|
||||
$color-newblue: #98c1e8 !default;
|
||||
|
||||
$globalfont: 18px;
|
||||
|
||||
// $fontrubik-normal: "rubik-variable", arial, sans-serif;
|
||||
// $fontrubik-light: "rubik-light", arial, sans-serif;
|
||||
// $fontrubik-italic: "rubik-italic", arial, sans-serif;
|
||||
// $fontcocon-regular: "cocon-regular", arial, sans-serif;
|
||||
|
||||
$fontbarlow-regular: "barlow-regular", arial, sans-serif;
|
||||
$fontbarlow-bold: "barlow-bold", arial, sans-serif;
|
||||
|
|
@ -1,7 +1,8 @@
|
|||
@import "resets";
|
||||
|
||||
@import "~animate.css/animate.css";
|
||||
@import "animate";
|
||||
// Fonts
|
||||
// @import url("https://fonts.googleapis.com/css?family=Nunito");
|
||||
// // Bootstrap
|
||||
// @import "~bootstrap/scss/bootstrap";
|
||||
|
||||
@import "variables";
|
||||
@import "fonts";
|
||||
|
|
@ -19,8 +20,10 @@
|
|||
@import "list";
|
||||
@import "punchline";
|
||||
@import "newsletter";
|
||||
@import "animate";
|
||||
@import "carrousel";
|
||||
@import "carrousel2";
|
||||
@import "timeline";
|
||||
|
||||
@import "custom";
|
||||
@import "cookies-ldc";
|
||||
3
resources/sass/layouts/backend/top_nav.scss
vendored
Normal file
3
resources/sass/layouts/backend/top_nav.scss
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#sidebarTop {
|
||||
height: $topNavHeight;
|
||||
}
|
||||
73
resources/views/auth/login.blade.php
Normal file
73
resources/views/auth/login.blade.php
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
@extends('layouts.backend')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col">
|
||||
<div class="card">
|
||||
<div class="card-header">{{ __('Connexion') }}</div>
|
||||
|
||||
<div class="card-body">
|
||||
<form method="POST" action="{{ route('bo.login') }}">
|
||||
@csrf
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="email" class="col-4 col-form-label text-end">{{ __('Adresse email') }}</label>
|
||||
|
||||
<div class="col-6">
|
||||
<input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" required autocomplete="email" autofocus>
|
||||
|
||||
@error('email')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row mt-4 ">
|
||||
<label for="password" class="col-4 col-form-label text-end">{{ __('Mot de passe') }}</label>
|
||||
|
||||
<div class="col-6">
|
||||
<input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="current-password">
|
||||
|
||||
@error('password')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row mt-4">
|
||||
<div class="col-6 offset-md-4">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" name="remember" id="remember" {{ old('remember') ? 'checked' : '' }}>
|
||||
|
||||
<label class="form-check-label" for="remember">
|
||||
{{ __('Se souvenir de moi') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row mb-0 mt-4">
|
||||
<div class="col-8 offset-4">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
{{ __('Connexion') }}
|
||||
</button>
|
||||
|
||||
@if (Route::has('bo.password.request'))
|
||||
<a class="btn btn-link" href="{{ route('password.request') }}">
|
||||
{{ __('Mot de passe oublié ?') }}
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
49
resources/views/auth/passwords/confirm.blade.php.disabled
Normal file
49
resources/views/auth/passwords/confirm.blade.php.disabled
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
@extends('layouts.backend')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
<div class="card-header">{{ __('Confirmez votre mot de passe') }}</div>
|
||||
|
||||
<div class="card-body">
|
||||
{{ __('Veuillez confirmer votre mot de passe pour continuer') }}
|
||||
|
||||
<form method="POST" action="{{ route('password.confirm') }}">
|
||||
@csrf
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="password" class="col-md-4 col-form-label text-md-right">{{ __('Mot de passe') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="current-password">
|
||||
|
||||
@error('password')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row mb-0">
|
||||
<div class="col-md-8 offset-md-4">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
{{ __('Confirmer votre mot de passe') }}
|
||||
</button>
|
||||
|
||||
@if (Route::has('password.request'))
|
||||
<a class="btn btn-link" href="{{ route('password.request') }}">
|
||||
{{ __('Mot de passe oublié ?') }}
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
47
resources/views/auth/passwords/email.blade.php.disabled
Normal file
47
resources/views/auth/passwords/email.blade.php.disabled
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
@extends('layouts.backend')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
<div class="card-header">{{ __('Réinitialisation de mot de passe') }}</div>
|
||||
|
||||
<div class="card-body">
|
||||
@if (session('status'))
|
||||
<div class="alert alert-success" role="alert">
|
||||
{{ session('status') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form method="POST" action="{{ route('password.email') }}">
|
||||
@csrf
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="email" class="col-md-4 col-form-label text-md-right">{{ __('Adresse email') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" required autocomplete="email" autofocus>
|
||||
|
||||
@error('email')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row mb-0">
|
||||
<div class="col-md-6 offset-md-4">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
{{ __('Envoyer un lien de réinitialisation de mot de passe') }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
65
resources/views/auth/passwords/reset.blade.php.disabled
Normal file
65
resources/views/auth/passwords/reset.blade.php.disabled
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
@extends('layouts.backend')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
<div class="card-header">{{ __('Réinitialisation de mot de passe') }}</div>
|
||||
|
||||
<div class="card-body">
|
||||
<form method="POST" action="{{ route('password.update') }}">
|
||||
@csrf
|
||||
|
||||
<input type="hidden" name="token" value="{{ $token }}">
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="email" class="col-md-4 col-form-label text-md-right">{{ __('Adresse email') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ $email ?? old('email') }}" required autocomplete="email" autofocus>
|
||||
|
||||
@error('email')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="password" class="col-md-4 col-form-label text-md-right">{{ __('Mot de passe') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="new-password">
|
||||
|
||||
@error('password')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="password-confirm" class="col-md-4 col-form-label text-md-right">{{ __('Confirmation Mot de passe') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="password-confirm" type="password" class="form-control" name="password_confirmation" required autocomplete="new-password">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row mb-0">
|
||||
<div class="col-md-6 offset-md-4">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
{{ __('Réinitialiser le mot de passe') }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
77
resources/views/auth/register.blade.php.disabled
Normal file
77
resources/views/auth/register.blade.php.disabled
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
@extends('layouts.backend')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
<div class="card-header">{{ __('Register') }}</div>
|
||||
|
||||
<div class="card-body">
|
||||
<form method="POST" action="{{ route('register') }}">
|
||||
@csrf
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="name" class="col-md-4 col-form-label text-md-right">{{ __('Name') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="name" type="text" class="form-control @error('name') is-invalid @enderror" name="name" value="{{ old('name') }}" required autocomplete="name" autofocus>
|
||||
|
||||
@error('name')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="email" class="col-md-4 col-form-label text-md-right">{{ __('E-Mail Address') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" required autocomplete="email">
|
||||
|
||||
@error('email')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="password" class="col-md-4 col-form-label text-md-right">{{ __('Password') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="new-password">
|
||||
|
||||
@error('password')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="password-confirm" class="col-md-4 col-form-label text-md-right">{{ __('Confirm Password') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="password-confirm" type="password" class="form-control" name="password_confirmation" required autocomplete="new-password">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row mb-0">
|
||||
<div class="col-md-6 offset-md-4">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
{{ __('Register') }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
28
resources/views/auth/verify.blade.php.disabled
Normal file
28
resources/views/auth/verify.blade.php.disabled
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
@extends('layouts.backend')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
<div class="card-header">{{ __('Verify Your Email Address') }}</div>
|
||||
|
||||
<div class="card-body">
|
||||
@if (session('resent'))
|
||||
<div class="alert alert-success" role="alert">
|
||||
{{ __('A fresh verification link has been sent to your email address.') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{{ __('Before proceeding, please check your email for a verification link.') }}
|
||||
{{ __('If you did not receive the email') }},
|
||||
<form class="d-inline" method="POST" action="{{ route('verification.resend') }}">
|
||||
@csrf
|
||||
<button type="submit" class="btn btn-link p-0 m-0 align-baseline">{{ __('click here to request another') }}</button>.
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
15
resources/views/back/home.blade.php
Normal file
15
resources/views/back/home.blade.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
@extends('layouts.backend')
|
||||
|
||||
@section('title', 'Back office')
|
||||
@section('description', 'Page d\'accueil du Back office')
|
||||
@section('metaIndex', 'noindex,nofollow')
|
||||
|
||||
@section('content')
|
||||
<div class="card">
|
||||
{{-- @include('crud-policies::crud.modules.flashMessage') --}}
|
||||
<div class="card-header">{{ __('Back office') }}</div>
|
||||
<div class="card-body">
|
||||
<h4>Application</h4>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
10
resources/views/emails/exception-plain.blade.php
Normal file
10
resources/views/emails/exception-plain.blade.php
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{{ $appName }} Exception Handler
|
||||
|
||||
Une erreur est survenue sur le site {{ $appName }}
|
||||
{{ $exception->getMessage() }}
|
||||
date : {{ date('Y-m-d H:i:s') }}
|
||||
code : {{$exception->getCode() }}
|
||||
file : {{$exception->getFile() }}
|
||||
line : {{$exception->getLine() }}
|
||||
|
||||
Veuillez vérifier les logs pour en voir la trace.
|
||||
16
resources/views/emails/exception.blade.php
Normal file
16
resources/views/emails/exception.blade.php
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>{{ $appName }} Exception Handler</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
</head>
|
||||
<body>
|
||||
<h1>Une erreur est survenue sur le site {{ $appName }}</h1>
|
||||
<h2>{{ $exception->getMessage() }}</h2>
|
||||
<p>date : {{ date('Y-m-d H:i:s') }}</p>
|
||||
<p>code : {{$exception->getCode() }}</p>
|
||||
<p>file : {{$exception->getFile() }}</p>
|
||||
<p>line : {{$exception->getLine() }}</p>
|
||||
<p>Veuillez vérifier les logs pour en voir la trace.</p>
|
||||
</body>
|
||||
</html>
|
||||
180
resources/views/emails/send-contact.blade.php
Normal file
180
resources/views/emails/send-contact.blade.php
Normal file
|
|
@ -0,0 +1,180 @@
|
|||
<!doctype html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
|
||||
|
||||
<head>
|
||||
<title>
|
||||
</title>
|
||||
<!--[if !mso]><!-->
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<!--<![endif]-->
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<style type="text/css">
|
||||
#outlook a {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-ms-text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
table,
|
||||
td {
|
||||
border-collapse: collapse;
|
||||
mso-table-lspace: 0pt;
|
||||
mso-table-rspace: 0pt;
|
||||
}
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
height: auto;
|
||||
line-height: 100%;
|
||||
outline: none;
|
||||
text-decoration: none;
|
||||
-ms-interpolation-mode: bicubic;
|
||||
}
|
||||
|
||||
p {
|
||||
display: block;
|
||||
margin: 13px 0;
|
||||
}
|
||||
</style>
|
||||
<!--[if mso]>
|
||||
<noscript>
|
||||
<xml>
|
||||
<o:OfficeDocumentSettings>
|
||||
<o:AllowPNG/>
|
||||
<o:PixelsPerInch>96</o:PixelsPerInch>
|
||||
</o:OfficeDocumentSettings>
|
||||
</xml>
|
||||
</noscript>
|
||||
<![endif]-->
|
||||
<!--[if lte mso 11]>
|
||||
<style type="text/css">
|
||||
.mj-outlook-group-fix { width:100% !important; }
|
||||
</style>
|
||||
<![endif]-->
|
||||
<!--[if !mso]><!-->
|
||||
<link href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700" rel="stylesheet" type="text/css">
|
||||
<style type="text/css">
|
||||
@import url(https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700);
|
||||
</style>
|
||||
<!--<![endif]-->
|
||||
<style type="text/css">
|
||||
@media only screen and (min-width:480px) {
|
||||
.mj-column-per-100 {
|
||||
width: 100% !important;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style media="screen and (min-width:480px)">
|
||||
.moz-text-html .mj-column-per-100 {
|
||||
width: 100% !important;
|
||||
max-width: 100%;
|
||||
}
|
||||
</style>
|
||||
<style type="text/css">
|
||||
@media only screen and (max-width:480px) {
|
||||
table.mj-full-width-mobile {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
td.mj-full-width-mobile {
|
||||
width: auto !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body style="word-spacing:normal;background-color:#f9f7f3;">
|
||||
<div style="background-color:#f9f7f3;">
|
||||
<!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600" bgcolor="#f9f7f3" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
|
||||
<div style="background:#f9f7f3;background-color:#f9f7f3;margin:0px auto;max-width:600px;">
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#f9f7f3;background-color:#f9f7f3;width:100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="direction:ltr;font-size:0px;padding:20px 0;text-align:center;">
|
||||
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
|
||||
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:collapse;border-spacing:0px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width:339px;">
|
||||
<img height="auto" src="{{ asset('assets/images/logo_IDHALAL.png') }}" style="border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:13px;" width="339">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:25px;font-weight:bold;line-height:1;text-align:center;text-transform:uppercase;color:black;">Message Contact</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]></td></tr></table><![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]></td></tr></table><table align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600" bgcolor="#f9f7f3" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
|
||||
<div style="background:#f9f7f3;background-color:#f9f7f3;margin:0px auto;max-width:600px;">
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#f9f7f3;background-color:#f9f7f3;width:100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="direction:ltr;font-size:0px;padding:20px 0;text-align:center;">
|
||||
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
|
||||
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:20px;line-height:1;text-align:left;color:black;">Bonjour,<br><br> Voici un message envoyé depuis {{ config('app.name', 'iDHalal') }}<br><br></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<p style="border-top:dashed 1px lightgrey;font-size:1px;margin:0px auto;width:100%;">
|
||||
</p>
|
||||
<!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" style="border-top:dashed 1px lightgrey;font-size:1px;margin:0px auto;width:550px;" role="presentation" width="550px" ><tr><td style="height:0;line-height:0;">
|
||||
</td></tr></table><![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:20px;line-height:1;text-align:left;color:black;">Expediteur : {{ $data->civilite }} {{ $data->name }} {{ $data->lastname }}<br><br> Adresse : {{ $data->address }} {{ $data->postcode }} {{ $data->city }} <br><br> Téléphone : {{ $data->phone }}<br><br> Email : {{ $data->email }}<br><br> Sujet : {{ $data->topic }}<br><br> Produit : {{ $data->product_name }}<br><br> Code Barre : {{ $data->barcode }}<br><br> Lot : {{ $data->lot }}<br><br> Date limite de consommation : {{ $data->limit_date }}<br><br> Lieu d'achat : {{ $data->shop }}<br><br> Date de consommation : {{ $data->consumption_date }}<br><br> Message : <br><br>
|
||||
{{ $data->message }}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:20px;line-height:1;text-align:left;color:black;"><br> L'équipe {{ config('app.name') }}<br></div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]></td></tr></table><![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]></td></tr></table><![endif]-->
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
@extends('layouts.app')
|
||||
@extends('layouts.frontend')
|
||||
@section('title', __('Accueil'))
|
||||
@section('description', __("Découvrez DOUX, des produits de volailles françaises."))
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
@extends('layouts.app')
|
||||
@extends('layouts.frontend')
|
||||
@section('title', __('Accueil'))
|
||||
@section('description', __("Découvrez DOUX, des produits de volailles françaises."))
|
||||
|
||||
200
resources/views/front/contact.blade.php
Normal file
200
resources/views/front/contact.blade.php
Normal file
|
|
@ -0,0 +1,200 @@
|
|||
@extends('layouts.frontend')
|
||||
@section('title', __('Accueil'))
|
||||
@section('description', __("Découvrez DOUX, des produits de volailles françaises."))
|
||||
|
||||
@section('content')
|
||||
|
||||
<main>
|
||||
<section class="jumbotron">
|
||||
<p class="maintitle ttu animate__animated fadeIn animate__slow">Nous contacter</p>
|
||||
<img class="img-zoom" src="{{ asset('assets/images/contact.jpg') }}" alt="Nous contacter">
|
||||
<div class="banner">
|
||||
<svg id="Calque_1" data-name="Calque 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1919.76 59.99">
|
||||
<defs>
|
||||
<style>
|
||||
.cls-1 {
|
||||
fill: #ffffff;
|
||||
}
|
||||
|
||||
.cls-2 {
|
||||
fill: transparent;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<path class="cls-1" d="M1919.67,58c-.42.62,1,2.12-1,2-1.17-.07-2.34,0-3.5,0H0V55c3-.06,6,.08,9-.22,28.32-2.84,56.61-6,85-8.6q59.19-5.38,118.44-10c46.65-3.58,93.32-7,140-9.88,49.7-3.05,99.43-5.85,149.18-7.9,68.4-2.81,136.83-5,205.26-7.06,38.63-1.14,77.28-1.58,115.92-1.94,78.47-.74,156.93-.9,235.39.32,37.81.59,75.62,1.2,113.42,2.09q64.44,1.5,128.85,4,76.89,2.85,153.71,6.91,63.36,3.32,126.66,7.44,43.86,2.85,87.7,6,33.13,2.4,66.22,5.17,38.82,3.23,77.61,6.72c20.06,1.79,40.11,3.73,60.16,5.6Z" />
|
||||
<path class="cls-2" d="M1919.67,58l-47.21-4.36c-20-1.87-40.1-3.81-60.16-5.6q-38.79-3.47-77.61-6.72-33.09-2.74-66.22-5.17-43.83-3.18-87.7-6-63.3-4.11-126.66-7.44-76.83-4-153.71-6.91-64.41-2.4-128.85-4c-37.8-.89-75.61-1.5-113.42-2.09-78.46-1.22-156.92-1.06-235.39-.32-38.64.36-77.29.8-115.92,1.94-68.43,2-136.86,4.25-205.26,7.06-49.75,2-99.48,4.85-149.18,7.9-46.7,2.87-93.37,6.3-140,9.88q-59.27,4.54-118.44,10c-28.35,2.58-56.64,5.76-85,8.6-3,.3-6,.16-9,.22V0H1919.67Z" />
|
||||
</svg>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="container has-bckg--grey is-flex horizontal-center">
|
||||
<svg id="picto-localisation" data-name="Calque 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 34">
|
||||
<path class="cls-1" d="M13,34H12L0,16V9A17.57,17.57,0,0,1,9,0h7a17.86,17.86,0,0,1,9,9v7Zm-.32-15.79c3.8-.16,5.87-2.45,5.88-6s-2.46-5.7-6-6C9.31,6,6,9.41,6.39,12.6,6.86,16.09,8.82,18.3,12.68,18.21Z" />
|
||||
<path class="cls-2" d="M0,16,12,34H0Z" />
|
||||
<path class="cls-2" d="M13,34,25,16V34Z" />
|
||||
<path class="cls-2" d="M25,9a17.86,17.86,0,0,0-9-9h9Z" />
|
||||
<path class="cls-2" d="M9,0A17.57,17.57,0,0,0,0,9V0Z" />
|
||||
<path class="cls-2" d="M12.67,18.2c-3.85.1-5.81-2.11-6.28-5.6C6,9.41,9.31,6,12.56,6.25c3.54.31,6,2.4,6,6S16.48,18.05,12.67,18.2Z" />
|
||||
</svg>
|
||||
<p> <strong>Adresse</strong><br /><br />
|
||||
DOUX FARMOR<br />
|
||||
450 Route de Rosporden<br />
|
||||
Le Grand Guelen<br />
|
||||
28000 QUIMPER, France
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="wrapper">
|
||||
<div class="breadcrumb is-flex">
|
||||
<a href="{{ route('home') }}" class="link">Accueil</a>
|
||||
</div>
|
||||
<h2 class="sectiontitle align-center animate__animated fadeInUp animate__slow">Une question ? Une idée ? Un conseil ?<br>
|
||||
Des informations sur nos produits ?</h2>
|
||||
<p class="align-center">N’hésitez-pas à nous contacter en renseignant le formulaire ci-dessous.<br>
|
||||
Nous traiterons votre demande avec la plus grande attention dans les meilleurs délais.</p>
|
||||
{{-- IF MAIL IS SENT --}}
|
||||
@if(!is_null($status))
|
||||
@if(session()->get('status'))
|
||||
<div class="form-result form-result_confirm">
|
||||
<div class="form-result__title title title_small">Votre message a bien été envoyé !</div>
|
||||
<div class="form-result__text">Nos services mettent tout en oeuvre pour y répondre au plus vite.</div>
|
||||
</div>
|
||||
@else
|
||||
<div class="form-result form-result_fail">
|
||||
<div class="form-result__title title">Oups ! Une erreur s’est produite...</div>
|
||||
<div class="form-result__text">Votre message n’a pas pu être envoyé.<br>Nous en sommes désolés et vous prions<br>de bien vouloir réessayer plus tard.</div>
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
<form action="{{route('contact.submit')}}" method="post" class="form contact__form" enctype="multipart/form-data">
|
||||
@csrf
|
||||
@if ($errors->any())
|
||||
@foreach ($errors->all() as $error)
|
||||
<div class="field__error">{{ $error }}</div>
|
||||
@endforeach
|
||||
@endif
|
||||
<fieldset>
|
||||
<legend>Vos coordonnées :</legend>
|
||||
|
||||
<label class="radio-label">Monsieur
|
||||
<input type="radio" checked="checked" name="civilite" value="monsieur" @if (old('civilite')=="monsieur" ) checked @endif>
|
||||
<span class="checkmark"></span>
|
||||
</label>
|
||||
<label class="radio-label">Madame
|
||||
<input type="radio" name="civilite" value="madame" @if (old('civilite')=="madame" ) checked @endif>
|
||||
<span class="checkmark"></span>
|
||||
</label>
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group">
|
||||
<label for="name">Nom* : </label>
|
||||
<input type="text" name="name" id="name" required value="{{old('name')}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="lastname">Prénom* : </label>
|
||||
<input type="text" name="lastname" id="lastname" value="{{ old('lastname') }}" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="form-group">
|
||||
<label for="address">Adresse* : </label>
|
||||
<input type="text" name="address" id="address" value="{{ old('address') }}" autocomplete="street-address" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="country">Code postal* : </label>
|
||||
<input type="number" name="postcode" id="postcode" value="{{ old('postcode') }}" autocomplete="postal-code" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="form-group">
|
||||
<label for="city">Ville* : </label>
|
||||
<input type="text" name="city" id="city" value="{{ old('city') }}" autocomplete="address-level2" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="phone">Téléphone* : </label>
|
||||
<input type="number" name="phone" id="phone" value="{{ old('phone') }}" autocomplete="tel" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email">Email* : </label>
|
||||
<input type="mail" name="email" id="email" value="{{ old('email') }}" autocomplete="email" required>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend>Préciser votre demande :</legend>
|
||||
<div class="ck-button">
|
||||
<label>
|
||||
<input type="radio" class="radio-request" value="Réclamation" name="topic" @if (old('topic')=="Réclamation" ) checked @endif><span>Réclamation produit</span>
|
||||
</label>
|
||||
<label>
|
||||
<input type="radio" class="radio-request" value="La marque" name="topic" @if (old('topic')=="La marque" ) checked @endif><span>La marque</span>
|
||||
</label>
|
||||
<label>
|
||||
<input type="radio" class="radio-request" value="Contact Commercial" name="topic" @if (old('topic')=="Contact Commercial" ) checked @endif><span>Contact commercial</span>
|
||||
</label>
|
||||
<label>
|
||||
<input type="radio" class="radio-request" value="Autre" name="topic" @if (old('topic')=="Autre" ) checked @endif><span>Autre demande</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-row recla_field">
|
||||
<div class="form-group">
|
||||
<label for="address">Nom du produit* : </label>
|
||||
<input type="text" name="product_name" id="product_name" value="{{ old('product_name') }}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="barcode">Code barre* : </label>
|
||||
<input type="number" name="barcode" id="barcode" value="{{ old('barcode') }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row recla_field">
|
||||
<div class="form-group">
|
||||
<label for="shop">Lieu d'achat* : </label>
|
||||
<input type="text" name="shop" id="shop" value="{{ old('shop') }}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="lot">Numéro de lot* : </label>
|
||||
<input type="number" name="lot" id="lot" value="{{ old('lot') }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row recla_field">
|
||||
<div class="form-group">
|
||||
<label for="limit_date">Date Limite de Consommation* : </label>
|
||||
<input type="date" name="limit_date" id="limit_date" value="{{ old('limit_date') }}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="consumption_date">Date de consommation* : </label>
|
||||
<input type="date" name="consumption_date" id="consumption_date" value="{{ old('consumption_date') }}">
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<label for="message">Message* : </label>
|
||||
<textarea name="message" id="message" cols="30" rows="10">{{ old('message') }}</textarea>
|
||||
</div>
|
||||
<div>
|
||||
<input type="file" name="file" id="file" @if ('topic'=="Réclamation" ) required @endif>
|
||||
<label for="file">
|
||||
@if ('topic'=="Réclamation" )
|
||||
Photo de l'emballage
|
||||
@else
|
||||
Insérer une pièce jointe
|
||||
@endif
|
||||
</label>
|
||||
</div>
|
||||
</fieldset>
|
||||
<p class="is-small">Les informations que vous nous communiquez sont collectées et traitées par la Société Bretonne de Volaille, responsable de traitement selon les finalités définies dans notre Charte de confidentialité. Ces informations sont destinées au personnel de la Société Bretonne de Volaille et peuvent être partagées avec ses sous-traitants.<br />
|
||||
A tout moment, vous pouvez retirer votre consentement. Pour toute information complémentaire concernant vos données personnelles et vos droits, merci de consulter notre <a href="{{ route('policy') }}">Charte de confidentialité.</a></P>
|
||||
<div class="is-small">
|
||||
<input type="checkbox" name="rgpd" id="rgpd" required>
|
||||
<label for="rgpd">J’accepte les conditions générales d’utilisation du site et autorise la Société Bretonne de Volaille à traiter mes données personnelles conformément à la Charte de confidentialité.</label>
|
||||
</div>
|
||||
<div class="align-center">
|
||||
<input type="submit" value="Envoyer">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
@endsection
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
@extends('layouts.app')
|
||||
@extends('layouts.frontend')
|
||||
@section('title', __('Accueil'))
|
||||
@section('description', __("Découvrez DOUX, des produits de volailles françaises."))
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
@extends('layouts.app')
|
||||
@extends('layouts.frontend')
|
||||
@section('title', __('Accueil'))
|
||||
@section('description', __("Découvrez DOUX, des produits de volailles françaises."))
|
||||
|
||||
141
resources/views/front/home.blade.php
Normal file
141
resources/views/front/home.blade.php
Normal file
|
|
@ -0,0 +1,141 @@
|
|||
@extends('layouts.frontend')
|
||||
@section('title', __('Accueil'))
|
||||
@section('description', __("Découvrez DOUX, des produits de volailles françaises."))
|
||||
|
||||
@section('content')
|
||||
<div class="jumbotron">
|
||||
<div id="carrousel1">
|
||||
<div class="item">
|
||||
<div class="item__image">
|
||||
<img class="img-zoom" src="{{ asset('assets/images/image-sample.jpg') }}" />
|
||||
</div>
|
||||
<a href="#" title="read more about post"></a>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="item__image">
|
||||
<img class="img-zoom" src="{{ asset('assets/images/image-sample.jpg') }}" />
|
||||
</div>
|
||||
<a href="#" title="read more about post"></a>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="item__image">
|
||||
<img class="img-zoom" src="{{ asset('assets/images/image-sample.jpg') }}" />
|
||||
</div>
|
||||
<a href="#" title="read more about post"></a>
|
||||
</div>
|
||||
</div>
|
||||
<h1 class="item__title maintitle align-center ttu animate__animated fadeIn animate__slow">Doux,<br />Plaisir et qualité<br />à la française</h1>
|
||||
<div class="banner">
|
||||
<svg id="Calque_1" data-name="Calque 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1919.76 59.99">
|
||||
<defs>
|
||||
<style>
|
||||
.cls-1 {
|
||||
fill: #ffffff;
|
||||
}
|
||||
|
||||
.cls-2 {
|
||||
fill: transparent;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<path class="cls-1" d="M1919.67,58c-.42.62,1,2.12-1,2-1.17-.07-2.34,0-3.5,0H0V55c3-.06,6,.08,9-.22,28.32-2.84,56.61-6,85-8.6q59.19-5.38,118.44-10c46.65-3.58,93.32-7,140-9.88,49.7-3.05,99.43-5.85,149.18-7.9,68.4-2.81,136.83-5,205.26-7.06,38.63-1.14,77.28-1.58,115.92-1.94,78.47-.74,156.93-.9,235.39.32,37.81.59,75.62,1.2,113.42,2.09q64.44,1.5,128.85,4,76.89,2.85,153.71,6.91,63.36,3.32,126.66,7.44,43.86,2.85,87.7,6,33.13,2.4,66.22,5.17,38.82,3.23,77.61,6.72c20.06,1.79,40.11,3.73,60.16,5.6Z" />
|
||||
<path class="cls-2" d="M1919.67,58l-47.21-4.36c-20-1.87-40.1-3.81-60.16-5.6q-38.79-3.47-77.61-6.72-33.09-2.74-66.22-5.17-43.83-3.18-87.7-6-63.3-4.11-126.66-7.44-76.83-4-153.71-6.91-64.41-2.4-128.85-4c-37.8-.89-75.61-1.5-113.42-2.09-78.46-1.22-156.92-1.06-235.39-.32-38.64.36-77.29.8-115.92,1.94-68.43,2-136.86,4.25-205.26,7.06-49.75,2-99.48,4.85-149.18,7.9-46.7,2.87-93.37,6.3-140,9.88q-59.27,4.54-118.44,10c-28.35,2.58-56.64,5.76-85,8.6-3,.3-6,.16-9,.22V0H1919.67Z" />
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="wrapper">
|
||||
<div class="page-subtitle header-title align-center has-label">
|
||||
|
||||
<div class="animate__animated fadeInUp animate__slow">
|
||||
<i class="mascotte"></i><span>La référence française de la volaille</span>
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="align-center smrt-mb-200">
|
||||
90 ans d'expérience au service de la gourmandise
|
||||
</h2>
|
||||
<div class="is-flex">
|
||||
<div class="w50 align-center animate__animated fadeInLeft animate__slow">
|
||||
<img src="{{ asset('assets/images/prez-img.jpg') }}" alt="photo" />
|
||||
</div>
|
||||
<div class="w50">
|
||||
<h3 class="color-yellow">Notre Histoire</h3>
|
||||
<p class="align-justify">
|
||||
Tout commence lorsque Pierre Doux se lance dans une activité de
|
||||
négoce de poulet en 1933, avant de créer une entreprise à son
|
||||
nom en 1955. Durant près de 90 ans, l'activité n'a cessé de se
|
||||
développer toujours dans le but de répondre aux besoins nouveaux
|
||||
de la société ; offrant en plus des volailles entières, des
|
||||
produits panés ou des Chicken Franks rapides et faciles à
|
||||
préparer.
|
||||
</p>
|
||||
<p class="align-justify">
|
||||
Aujourd'hui, la marque Doux est présente dans plus de 100 pays
|
||||
avec des gammes de produits variés : volailles entières,
|
||||
découpes ou produits élaborés halal pour satisfaire les
|
||||
exigences culturelles et religieuses des familles aux 4 coins du
|
||||
monde. En 2021, elle continue d'innover pour satisfaire vos
|
||||
envies avec son Steak Haché de poulet et ses Mini Chicken
|
||||
Franks.
|
||||
</p>
|
||||
<p class="smrt-align-center">
|
||||
<a href="{{ route('wasup') }}/#notre-histoire" class="cta">En savoir plus</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="products" class="container">
|
||||
<div class="products-content wrapper align-center">
|
||||
<div class="sectiontitle">
|
||||
<h2 class="animate__animated fadeInUp animate__slow">Poulet, Cordon bleu ou Wing's ?</h2>
|
||||
</div>
|
||||
<h3 class="h2 align-left">
|
||||
Découvrez tous nos produits à base de volaille.
|
||||
</h3>
|
||||
<p class="align-left">bloc texte, lorem ipsum...</p>
|
||||
<a href="{{ route('products') }}" class="cta">Découvrir</a>
|
||||
<div class="products-list is-flex">
|
||||
<div class="product-item">
|
||||
<img src="{{ asset('assets/images/image1.png') }}" alt="" />
|
||||
</div>
|
||||
<div class="product-item">
|
||||
<img src="{{ asset('assets/images/image2.png') }}" alt="" />
|
||||
</div>
|
||||
<div class="product-item">
|
||||
<img src="{{ asset('assets/images/image3.png') }}" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<img src="{{ asset('assets/images/frise.jpg') }}" alt="" />
|
||||
</div>
|
||||
|
||||
<div class="container news">
|
||||
<div class="wrapper">
|
||||
<div class="sectiontitle">
|
||||
<h2 class="align-center animate__animated fadeInUp animate__slow">
|
||||
L'actualité de la marque Doux
|
||||
</h2>
|
||||
</div>
|
||||
<div class="animate__animated fadeInUp animate__slow">
|
||||
<img src="{{ asset('assets/images/burger-fond.jpg') }}" />
|
||||
</div>
|
||||
<h3 class="h2 align-center">
|
||||
Doux innove et propose sa référence iconique en format mini !
|
||||
</h3>
|
||||
<p class="align-justify">
|
||||
Découvrez nos nouveautés : les Mini Chicken Franks Doux. Original ou
|
||||
Cheese, retrouvez vos deux recettes préférées en version mini. Ce
|
||||
format est idéal pour les moments de partage et les repas sur le
|
||||
pouce. Réchauffez les au micro-ondes, elles seront prêtes en
|
||||
quelques minutes seulement. Très pratique et pensées pour vous
|
||||
faciliter la vie ! N'hésitez plus et laissez vous tenter !
|
||||
</p>
|
||||
<p class="align-center">
|
||||
<a href="{{ route('news') }}" title="" class="cta">En savoir plus</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
@extends('layouts.app')
|
||||
@extends('layouts.frontend')
|
||||
@section('title', __('Accueil'))
|
||||
@section('description', __("Découvrez DOUX, des produits de volailles françaises."))
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
@extends('layouts.app')
|
||||
@extends('layouts.frontend')
|
||||
@section('title', __('Accueil'))
|
||||
@section('description', __("Découvrez DOUX, des produits de volailles françaises."))
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
@extends('layouts.app')
|
||||
@extends('layouts.frontend')
|
||||
@section('title', __('Accueil'))
|
||||
@section('description', __("Découvrez DOUX, des produits de volailles françaises."))
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
@extends('layouts.app')
|
||||
@extends('layouts.frontend')
|
||||
@section('title', __('Accueil'))
|
||||
@section('description', __("Découvrez DOUX, des produits de volailles françaises."))
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
@extends('layouts.app')
|
||||
@extends('layouts.frontend')
|
||||
@section('title', __('Accueil'))
|
||||
@section('description', __("Découvrez DOUX, des produits de volailles françaises."))
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
@extends('layouts.app')
|
||||
@extends('layouts.frontend')
|
||||
@section('title', __('Accueil'))
|
||||
@section('description', __("Découvrez DOUX, des produits de volailles françaises."))
|
||||
|
||||
|
|
@ -1,143 +0,0 @@
|
|||
@extends('layouts.app')
|
||||
@section('title', __('Accueil'))
|
||||
@section('description', __("Découvrez DOUX, des produits de volailles françaises."))
|
||||
|
||||
@section('content')
|
||||
<main>
|
||||
<div class="jumbotron">
|
||||
<div id="carrousel1">
|
||||
<div class="item">
|
||||
<div class="item__image">
|
||||
<img class="img-zoom" src="{{ asset('assets/images/image-sample.jpg') }}" />
|
||||
</div>
|
||||
<a href="#" title="read more about post"></a>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="item__image">
|
||||
<img class="img-zoom" src="{{ asset('assets/images/image-sample.jpg') }}" />
|
||||
</div>
|
||||
<a href="#" title="read more about post"></a>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="item__image">
|
||||
<img class="img-zoom" src="{{ asset('assets/images/image-sample.jpg') }}" />
|
||||
</div>
|
||||
<a href="#" title="read more about post"></a>
|
||||
</div>
|
||||
</div>
|
||||
<h1 class="item__title maintitle align-center ttu animate__animated fadeIn animate__slow">Doux,<br />Plaisir et qualité<br />à la française</h1>
|
||||
<div class="banner">
|
||||
<svg id="Calque_1" data-name="Calque 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1919.76 59.99">
|
||||
<defs>
|
||||
<style>
|
||||
.cls-1 {
|
||||
fill: #ffffff;
|
||||
}
|
||||
|
||||
.cls-2 {
|
||||
fill: transparent;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<path class="cls-1" d="M1919.67,58c-.42.62,1,2.12-1,2-1.17-.07-2.34,0-3.5,0H0V55c3-.06,6,.08,9-.22,28.32-2.84,56.61-6,85-8.6q59.19-5.38,118.44-10c46.65-3.58,93.32-7,140-9.88,49.7-3.05,99.43-5.85,149.18-7.9,68.4-2.81,136.83-5,205.26-7.06,38.63-1.14,77.28-1.58,115.92-1.94,78.47-.74,156.93-.9,235.39.32,37.81.59,75.62,1.2,113.42,2.09q64.44,1.5,128.85,4,76.89,2.85,153.71,6.91,63.36,3.32,126.66,7.44,43.86,2.85,87.7,6,33.13,2.4,66.22,5.17,38.82,3.23,77.61,6.72c20.06,1.79,40.11,3.73,60.16,5.6Z" />
|
||||
<path class="cls-2" d="M1919.67,58l-47.21-4.36c-20-1.87-40.1-3.81-60.16-5.6q-38.79-3.47-77.61-6.72-33.09-2.74-66.22-5.17-43.83-3.18-87.7-6-63.3-4.11-126.66-7.44-76.83-4-153.71-6.91-64.41-2.4-128.85-4c-37.8-.89-75.61-1.5-113.42-2.09-78.46-1.22-156.92-1.06-235.39-.32-38.64.36-77.29.8-115.92,1.94-68.43,2-136.86,4.25-205.26,7.06-49.75,2-99.48,4.85-149.18,7.9-46.7,2.87-93.37,6.3-140,9.88q-59.27,4.54-118.44,10c-28.35,2.58-56.64,5.76-85,8.6-3,.3-6,.16-9,.22V0H1919.67Z" />
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="wrapper">
|
||||
<div class="page-subtitle header-title align-center has-label">
|
||||
|
||||
<div class="animate__animated fadeInUp animate__slow">
|
||||
<i class="mascotte"></i><span>La référence française de la volaille</span>
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="align-center smrt-mb-200">
|
||||
90 ans d'expérience au service de la gourmandise
|
||||
</h2>
|
||||
<div class="is-flex">
|
||||
<div class="w50 align-center animate__animated fadeInLeft animate__slow">
|
||||
<img src="{{ asset('assets/images/prez-img.jpg') }}" alt="photo" />
|
||||
</div>
|
||||
<div class="w50">
|
||||
<h3 class="color-yellow">Notre Histoire</h3>
|
||||
<p class="align-justify">
|
||||
Tout commence lorsque Pierre Doux se lance dans une activité de
|
||||
négoce de poulet en 1933, avant de créer une entreprise à son
|
||||
nom en 1955. Durant près de 90 ans, l'activité n'a cessé de se
|
||||
développer toujours dans le but de répondre aux besoins nouveaux
|
||||
de la société ; offrant en plus des volailles entières, des
|
||||
produits panés ou des Chicken Franks rapides et faciles à
|
||||
préparer.
|
||||
</p>
|
||||
<p class="align-justify">
|
||||
Aujourd'hui, la marque Doux est présente dans plus de 100 pays
|
||||
avec des gammes de produits variés : volailles entières,
|
||||
découpes ou produits élaborés halal pour satisfaire les
|
||||
exigences culturelles et religieuses des familles aux 4 coins du
|
||||
monde. En 2021, elle continue d'innover pour satisfaire vos
|
||||
envies avec son Steak Haché de poulet et ses Mini Chicken
|
||||
Franks.
|
||||
</p>
|
||||
<p class="smrt-align-center">
|
||||
<a href="{{ route('wasup') }}/#notre-histoire" class="cta">En savoir plus</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="products" class="container">
|
||||
<div class="products-content wrapper align-center">
|
||||
<div class="sectiontitle">
|
||||
<h2 class="animate__animated fadeInUp animate__slow">Poulet, Cordon bleu ou Wing's ?</h2>
|
||||
</div>
|
||||
<h3 class="h2 align-left">
|
||||
Découvrez tous nos produits à base de volaille.
|
||||
</h3>
|
||||
<p class="align-left">bloc texte, lorem ipsum...</p>
|
||||
<a href="{{ route('products') }}" class="cta">Découvrir</a>
|
||||
<div class="products-list is-flex">
|
||||
<div class="product-item">
|
||||
<img src="{{ asset('assets/images/image1.png') }}" alt="" />
|
||||
</div>
|
||||
<div class="product-item">
|
||||
<img src="{{ asset('assets/images/image2.png') }}" alt="" />
|
||||
</div>
|
||||
<div class="product-item">
|
||||
<img src="{{ asset('assets/images/image3.png') }}" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<img src="{{ asset('assets/images/frise.jpg') }}" alt="" />
|
||||
</div>
|
||||
|
||||
<div class="container news">
|
||||
<div class="wrapper">
|
||||
<div class="sectiontitle">
|
||||
<h2 class="align-center animate__animated fadeInUp animate__slow">
|
||||
L'actualité de la marque Doux
|
||||
</h2>
|
||||
</div>
|
||||
<div class="animate__animated fadeInUp animate__slow">
|
||||
<img src="{{ asset('assets/images/burger-fond.jpg') }}" />
|
||||
</div>
|
||||
<h3 class="h2 align-center">
|
||||
Doux innove et propose sa référence iconique en format mini !
|
||||
</h3>
|
||||
<p class="align-justify">
|
||||
Découvrez nos nouveautés : les Mini Chicken Franks Doux. Original ou
|
||||
Cheese, retrouvez vos deux recettes préférées en version mini. Ce
|
||||
format est idéal pour les moments de partage et les repas sur le
|
||||
pouce. Réchauffez les au micro-ondes, elles seront prêtes en
|
||||
quelques minutes seulement. Très pratique et pensées pour vous
|
||||
faciliter la vie ! N'hésitez plus et laissez vous tenter !
|
||||
</p>
|
||||
<p class="align-center">
|
||||
<a href="{{ route('news') }}" title="" class="cta">En savoir plus</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
@endsection
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue