generator-folklore 3.0.5 → 3.0.6
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/generators/intl/index.js +93 -0
- package/lib/generators/laravel-mediatheque/index.js +133 -0
- package/lib/generators/laravel-mediatheque/templates/app/Models/Media.php +9 -0
- package/lib/generators/laravel-mediatheque/templates/app/Models/MediaFile.php +9 -0
- package/lib/generators/laravel-panneau/index.js +49 -28
- package/lib/generators/laravel-panneau/templates/app/Contracts/Repositories/Pages.php +19 -0
- package/lib/generators/laravel-panneau/templates/app/Contracts/Resources/Blocks/Text.php +10 -0
- package/lib/generators/laravel-panneau/templates/app/Contracts/Resources/Page.php +10 -0
- package/lib/generators/laravel-panneau/templates/app/Contracts/Resources/Pages/Home.php +9 -0
- package/lib/generators/laravel-panneau/templates/app/Http/Resources/BlockResource.php +37 -0
- package/lib/generators/laravel-panneau/templates/app/Http/Resources/BlocksCollection.php +8 -0
- package/lib/generators/laravel-panneau/templates/app/Http/Resources/PageResource.php +47 -0
- package/lib/generators/laravel-panneau/templates/app/Http/Resources/PagesCollection.php +10 -0
- package/lib/generators/laravel-panneau/templates/app/Models/Block.php +3 -13
- package/lib/generators/laravel-panneau/templates/app/Models/Page.php +3 -60
- package/lib/generators/laravel-panneau/templates/app/Panneau/Composers/AppComposer.php +50 -0
- package/lib/generators/laravel-panneau/templates/app/Panneau/Fields/Block.php +22 -0
- package/lib/generators/laravel-panneau/templates/app/Panneau/Fields/Blocks.php +87 -0
- package/lib/generators/laravel-panneau/templates/app/Panneau/Fields/Page.php +51 -0
- package/lib/generators/laravel-panneau/templates/app/Panneau/Fields/PageSlug.php +34 -0
- package/lib/generators/laravel-panneau/templates/app/Panneau/Fields/PageSlugLocalized.php +18 -0
- package/lib/generators/laravel-panneau/templates/app/Panneau/Http/Controllers/AccountController.php +41 -0
- package/lib/generators/laravel-panneau/templates/app/Panneau/Http/Controllers/Controller.php +19 -0
- package/lib/generators/laravel-panneau/templates/app/Panneau/Http/Controllers/HomeController.php +16 -0
- package/lib/generators/laravel-panneau/templates/app/Panneau/Http/Controllers/PagesController.php +24 -0
- package/lib/generators/laravel-panneau/templates/app/Panneau/Http/Controllers/UploadController.php +27 -0
- package/lib/generators/laravel-panneau/templates/app/Panneau/Http/Controllers/UsersController.php +32 -0
- package/lib/generators/laravel-panneau/templates/app/Panneau/Http/Requests/AccountUpdateRequest.php +29 -0
- package/lib/generators/laravel-panneau/templates/app/Panneau/Http/Requests/UploadRequest.php +29 -0
- package/lib/generators/laravel-panneau/templates/app/Panneau/Http/Resources/BlockResource.php +39 -0
- package/lib/generators/laravel-panneau/templates/app/Panneau/Http/Resources/BlocksCollection.php +8 -0
- package/lib/generators/laravel-panneau/templates/app/Panneau/Http/Resources/PageResource.php +56 -0
- package/lib/generators/laravel-panneau/templates/app/Panneau/Http/Resources/PagesCollection.php +10 -0
- package/lib/generators/laravel-panneau/templates/app/Panneau/Http/Resources/UserResource.php +24 -0
- package/lib/generators/laravel-panneau/templates/app/Panneau/PanneauServiceProvider.php +48 -0
- package/lib/generators/laravel-panneau/templates/app/Panneau/Policies/PanneauPolicy.php +32 -0
- package/lib/generators/laravel-panneau/templates/app/Panneau/Resources/Blocks/BlockWithBlocks.php +110 -0
- package/lib/generators/laravel-panneau/templates/app/Panneau/Resources/Blocks/TextBlock.php +27 -0
- package/lib/generators/laravel-panneau/templates/app/Panneau/Resources/Blocks.php +42 -0
- package/lib/generators/laravel-panneau/templates/app/Panneau/Resources/Pages/Page.php +28 -0
- package/lib/generators/laravel-panneau/templates/app/Panneau/Resources/Pages.php +92 -0
- package/lib/generators/laravel-panneau/templates/app/Panneau/Resources/Users.php +57 -0
- package/lib/generators/laravel-panneau/templates/app/Repositories/Pages.php +42 -0
- package/lib/generators/laravel-panneau/templates/app/Resources/Blocks/TextBlock.php +14 -0
- package/lib/generators/laravel-panneau/templates/app/Resources/Page.php +10 -0
- package/lib/generators/laravel-panneau/templates/app/Resources/Pages/HomePage.php +10 -0
- package/lib/generators/laravel-panneau/templates/app.blade.php +8 -0
- package/lib/generators/laravel-panneau/templates/index.js +32 -0
- package/lib/generators/laravel-panneau/templates/lang/en/panneau.php +62 -0
- package/lib/generators/laravel-panneau/templates/lang/fr/panneau.php +62 -0
- package/lib/generators/laravel-panneau/templates/layout.blade.php +17 -48
- package/lib/generators/laravel-panneau/templates/resources/assets/js/components/Panneau.jsx +68 -0
- package/lib/generators/laravel-panneau/templates/{app/Schemas/Fields/.gitkeep → resources/assets/js/components/panneau/fields/PageSlug.jsx} +0 -0
- package/lib/generators/laravel-panneau/templates/resources/assets/js/components/panneau/fields/PageSlugLocalized.jsx +43 -0
- package/lib/generators/laravel-panneau/templates/resources/assets/js/components/panneau/fields/index.js +2 -0
- package/lib/generators/laravel-panneau/templates/resources/assets/styles/panneau.scss +2 -0
- package/lib/generators/laravel-panneau/templates/routes.php +30 -0
- package/lib/generators/laravel-project/index.js +504 -0
- package/lib/generators/laravel-project/templates/env +41 -0
- package/lib/generators/laravel-project/templates/laravel/app/Composers/AppComposer.php +48 -0
- package/lib/generators/laravel-project/templates/laravel/app/Composers/IntlComposer.php +10 -0
- package/lib/generators/laravel-project/templates/laravel/app/Composers/MetaComposer.php +48 -0
- package/lib/generators/laravel-project/templates/laravel/app/Composers/RoutesComposer.php +19 -0
- package/lib/generators/laravel-project/templates/laravel/app/Contracts/Resources/User.php +10 -0
- package/lib/generators/laravel-project/templates/laravel/app/Http/Controllers/HomeController.php +18 -0
- package/lib/generators/laravel-project/templates/laravel/app/Http/Middleware/TrustProxies.php +28 -0
- package/lib/generators/laravel-project/templates/laravel/app/Http/Resources/UserResource.php +21 -0
- package/lib/generators/laravel-project/templates/laravel/app/Models/User.php +50 -0
- package/lib/generators/laravel-project/templates/laravel/app/Providers/AppServiceProvider.php +45 -0
- package/lib/generators/laravel-project/templates/laravel/app/Providers/RouteServiceProvider.php +64 -0
- package/lib/generators/laravel-project/templates/laravel/app/Providers/ViewServiceProvider.php +33 -0
- package/lib/generators/laravel-project/templates/laravel/app/Repositories/Users.php +36 -0
- package/lib/generators/laravel-project/templates/laravel/app/Resources/User.php +11 -0
- package/lib/generators/laravel-project/templates/laravel/config/app.php +216 -0
- package/lib/generators/laravel-project/templates/laravel/config/auth.php +116 -0
- package/lib/generators/laravel-project/templates/laravel/config/services.php +39 -0
- package/lib/generators/laravel-project/templates/laravel/lang/en/content.php +5 -0
- package/lib/generators/laravel-project/templates/laravel/lang/en/errors.php +17 -0
- package/lib/generators/laravel-project/templates/laravel/lang/en/meta.php +11 -0
- package/lib/generators/laravel-project/templates/laravel/lang/en/routes.php +4 -0
- package/lib/generators/laravel-project/templates/laravel/lang/fr/auth.php +19 -0
- package/lib/generators/laravel-project/templates/laravel/lang/fr/content.php +5 -0
- package/lib/generators/laravel-project/templates/laravel/lang/fr/errors.php +17 -0
- package/lib/generators/laravel-project/templates/laravel/lang/fr/meta.php +11 -0
- package/lib/generators/laravel-project/templates/laravel/lang/fr/pagination.php +19 -0
- package/lib/generators/laravel-project/templates/laravel/lang/fr/passwords.php +22 -0
- package/lib/generators/laravel-project/templates/laravel/lang/fr/routes.php +12 -0
- package/lib/generators/laravel-project/templates/laravel/lang/fr/validation.php +146 -0
- package/lib/generators/laravel-project/templates/laravel/resources/assets/fonts/.gitkeep +0 -0
- package/lib/generators/laravel-project/templates/laravel/resources/assets/img/.gitkeep +0 -0
- package/lib/generators/laravel-project/templates/laravel/resources/assets/img/folklore.png +0 -0
- package/lib/generators/laravel-project/templates/laravel/resources/views/analytics/body.blade.php +3 -0
- package/lib/generators/laravel-project/templates/laravel/resources/views/analytics/gpt.blade.php +16 -0
- package/lib/generators/laravel-project/templates/laravel/resources/views/analytics/head.blade.php +1 -0
- package/lib/generators/laravel-project/templates/laravel/resources/views/app.blade.php +8 -0
- package/lib/generators/laravel-project/templates/laravel/resources/views/errors/401.blade.php +8 -0
- package/lib/generators/laravel-project/templates/laravel/resources/views/errors/403.blade.php +8 -0
- package/lib/generators/laravel-project/templates/laravel/resources/views/errors/404.blade.php +8 -0
- package/lib/generators/laravel-project/templates/laravel/resources/views/errors/500.blade.php +8 -0
- package/lib/generators/laravel-project/templates/laravel/resources/views/layout.blade.php +33 -0
- package/lib/generators/laravel-project/templates/laravel/resources/views/meta/all.blade.php +4 -0
- package/lib/generators/laravel-project/templates/laravel/resources/views/meta/base.blade.php +11 -0
- package/lib/generators/laravel-project/templates/laravel/resources/views/meta/facebook.blade.php +4 -0
- package/lib/generators/laravel-project/templates/laravel/resources/views/meta/opengraph.blade.php +9 -0
- package/lib/generators/laravel-project/templates/laravel/resources/views/meta/twitter.blade.php +5 -0
- package/lib/generators/laravel-project/templates/laravel/routes/web.php +12 -0
- package/lib/generators/react-app/templates/src/components/App.jsx +3 -2
- package/lib/generators/react-app/templates/src/components/pages/Error.jsx +2 -2
- package/lib/lib/generator.js +9 -0
- package/package.json +2 -2
- package/lib/generators/laravel-panneau/templates/_composer.json +0 -6
- package/lib/generators/laravel-panneau/templates/_package.json +0 -11
- package/lib/generators/laravel-panneau/templates/app/Http/Controllers/Panneau/HomeController.php +0 -14
- package/lib/generators/laravel-panneau/templates/app/Http/Controllers/Panneau/PagesController.php +0 -11
- package/lib/generators/laravel-panneau/templates/app/Models/Mediatheque/File.php +0 -13
- package/lib/generators/laravel-panneau/templates/app/Models/Mediatheque/Picture.php +0 -13
- package/lib/generators/laravel-panneau/templates/app/Models/Mediatheque/Video.php +0 -34
- package/lib/generators/laravel-panneau/templates/app/Providers/PanneauServiceProvider.php +0 -23
- package/lib/generators/laravel-panneau/templates/app/Reducers/SlugExtractReducer.php +0 -18
- package/lib/generators/laravel-panneau/templates/app/Resources/Pages.php +0 -54
- package/lib/generators/laravel-panneau/templates/app/Schemas/Blocks/Base.php +0 -22
- package/lib/generators/laravel-panneau/templates/app/Schemas/Bubbles/Base.php +0 -22
- package/lib/generators/laravel-panneau/templates/app/Schemas/Pages/Base.php +0 -36
- package/lib/generators/laravel-panneau/templates/resources/lang/en/panneau.php +0 -12
- package/lib/generators/laravel-panneau/templates/resources/lang/fr/panneau.php +0 -12
@@ -0,0 +1,116 @@
|
|
1
|
+
<?php
|
2
|
+
|
3
|
+
return [
|
4
|
+
|
5
|
+
/*
|
6
|
+
|--------------------------------------------------------------------------
|
7
|
+
| Authentication Defaults
|
8
|
+
|--------------------------------------------------------------------------
|
9
|
+
|
|
10
|
+
| This option controls the default authentication "guard" and password
|
11
|
+
| reset options for your application. You may change these defaults
|
12
|
+
| as required, but they're a perfect start for most applications.
|
13
|
+
|
|
14
|
+
*/
|
15
|
+
|
16
|
+
'defaults' => [
|
17
|
+
'guard' => 'web',
|
18
|
+
'passwords' => 'users',
|
19
|
+
],
|
20
|
+
|
21
|
+
/*
|
22
|
+
|--------------------------------------------------------------------------
|
23
|
+
| Authentication Guards
|
24
|
+
|--------------------------------------------------------------------------
|
25
|
+
|
|
26
|
+
| Next, you may define every authentication guard for your application.
|
27
|
+
| Of course, a great default configuration has been defined for you
|
28
|
+
| here which uses session storage and the Eloquent user provider.
|
29
|
+
|
|
30
|
+
| All authentication drivers have a user provider. This defines how the
|
31
|
+
| users are actually retrieved out of your database or other storage
|
32
|
+
| mechanisms used by this application to persist your user's data.
|
33
|
+
|
|
34
|
+
| Supported: "session"
|
35
|
+
|
|
36
|
+
*/
|
37
|
+
|
38
|
+
'guards' => [
|
39
|
+
'web' => [
|
40
|
+
'driver' => 'session',
|
41
|
+
'provider' => 'users',
|
42
|
+
],
|
43
|
+
],
|
44
|
+
|
45
|
+
/*
|
46
|
+
|--------------------------------------------------------------------------
|
47
|
+
| User Providers
|
48
|
+
|--------------------------------------------------------------------------
|
49
|
+
|
|
50
|
+
| All authentication drivers have a user provider. This defines how the
|
51
|
+
| users are actually retrieved out of your database or other storage
|
52
|
+
| mechanisms used by this application to persist your user's data.
|
53
|
+
|
|
54
|
+
| If you have multiple user tables or models you may configure multiple
|
55
|
+
| sources which represent each model / table. These sources may then
|
56
|
+
| be assigned to any extra authentication guards you have defined.
|
57
|
+
|
|
58
|
+
| Supported: "database", "eloquent"
|
59
|
+
|
|
60
|
+
*/
|
61
|
+
|
62
|
+
'providers' => [
|
63
|
+
'users' => [
|
64
|
+
'driver' => 'repository',
|
65
|
+
'repository' => Folklore\Contracts\Repositories\Users::class,
|
66
|
+
],
|
67
|
+
|
68
|
+
// 'users' => [
|
69
|
+
// 'driver' => 'eloquent',
|
70
|
+
// 'model' => App\Models\User::class,
|
71
|
+
// ],
|
72
|
+
|
73
|
+
// 'users' => [
|
74
|
+
// 'driver' => 'database',
|
75
|
+
// 'table' => 'users',
|
76
|
+
// ],
|
77
|
+
],
|
78
|
+
|
79
|
+
/*
|
80
|
+
|--------------------------------------------------------------------------
|
81
|
+
| Resetting Passwords
|
82
|
+
|--------------------------------------------------------------------------
|
83
|
+
|
|
84
|
+
| You may specify multiple password reset configurations if you have more
|
85
|
+
| than one user table or model in the application and you want to have
|
86
|
+
| separate password reset settings based on the specific user types.
|
87
|
+
|
|
88
|
+
| The expire time is the number of minutes that each reset token will be
|
89
|
+
| considered valid. This security feature keeps tokens short-lived so
|
90
|
+
| they have less time to be guessed. You may change this as needed.
|
91
|
+
|
|
92
|
+
*/
|
93
|
+
|
94
|
+
'passwords' => [
|
95
|
+
'users' => [
|
96
|
+
'provider' => 'users',
|
97
|
+
'table' => 'password_resets',
|
98
|
+
'expire' => 60,
|
99
|
+
'throttle' => 60,
|
100
|
+
],
|
101
|
+
],
|
102
|
+
|
103
|
+
/*
|
104
|
+
|--------------------------------------------------------------------------
|
105
|
+
| Password Confirmation Timeout
|
106
|
+
|--------------------------------------------------------------------------
|
107
|
+
|
|
108
|
+
| Here you may define the amount of seconds before a password confirmation
|
109
|
+
| times out and the user is prompted to re-enter their password via the
|
110
|
+
| confirmation screen. By default, the timeout lasts for three hours.
|
111
|
+
|
|
112
|
+
*/
|
113
|
+
|
114
|
+
'password_timeout' => 10800,
|
115
|
+
|
116
|
+
];
|
@@ -0,0 +1,39 @@
|
|
1
|
+
<?php
|
2
|
+
|
3
|
+
return [
|
4
|
+
|
5
|
+
/*
|
6
|
+
|--------------------------------------------------------------------------
|
7
|
+
| Third Party Services
|
8
|
+
|--------------------------------------------------------------------------
|
9
|
+
|
|
10
|
+
| This file is for storing the credentials for third party services such
|
11
|
+
| as Mailgun, Postmark, AWS and more. This file provides the de facto
|
12
|
+
| location for this type of information, allowing packages to have
|
13
|
+
| a conventional file to locate the various service credentials.
|
14
|
+
|
|
15
|
+
*/
|
16
|
+
|
17
|
+
'mailgun' => [
|
18
|
+
'domain' => env('MAILGUN_DOMAIN'),
|
19
|
+
'secret' => env('MAILGUN_SECRET'),
|
20
|
+
'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'),
|
21
|
+
'scheme' => 'https',
|
22
|
+
],
|
23
|
+
|
24
|
+
'postmark' => [
|
25
|
+
'token' => env('POSTMARK_TOKEN'),
|
26
|
+
],
|
27
|
+
|
28
|
+
'ses' => [
|
29
|
+
'key' => env('AWS_ACCESS_KEY_ID'),
|
30
|
+
'secret' => env('AWS_SECRET_ACCESS_KEY'),
|
31
|
+
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
|
32
|
+
],
|
33
|
+
|
34
|
+
'google' => [
|
35
|
+
'tagmanager_id' => env('GOOGLE_TAGMANAGER_ID'),
|
36
|
+
'analytics_id' => env('GOOGLE_ANALYTICS_ID'),
|
37
|
+
],
|
38
|
+
|
39
|
+
];
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<?php
|
2
|
+
|
3
|
+
return [
|
4
|
+
'title_401' => 'Error 401',
|
5
|
+
'description_401' => 'You are not authorized to access this page.',
|
6
|
+
|
7
|
+
'title_403' => 'Error 403',
|
8
|
+
'description_403' => 'Access to this page is forbidden',
|
9
|
+
|
10
|
+
'title_404' => 'Error 404',
|
11
|
+
'description_404' => 'This page doesn’t exists',
|
12
|
+
|
13
|
+
'title_500' => 'Error 500',
|
14
|
+
'description_500' => 'There was an error',
|
15
|
+
|
16
|
+
'goto_home' => 'Go to home',
|
17
|
+
];
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<?php
|
2
|
+
|
3
|
+
return [
|
4
|
+
|
5
|
+
/*
|
6
|
+
|--------------------------------------------------------------------------
|
7
|
+
| Authentication Language Lines
|
8
|
+
|--------------------------------------------------------------------------
|
9
|
+
|
|
10
|
+
| The following language lines are used during authentication for various
|
11
|
+
| messages that we need to display to the user. You are free to modify
|
12
|
+
| these language lines according to your application's requirements.
|
13
|
+
|
|
14
|
+
*/
|
15
|
+
|
16
|
+
'failed' => 'Les informations de connexion sont invalides.',
|
17
|
+
'throttle' => 'Vous avez fait trop de tentatives de connexion. Réessayez dans :seconds secondes.',
|
18
|
+
|
19
|
+
];
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<?php
|
2
|
+
|
3
|
+
return [
|
4
|
+
'title_401' => 'Accès non-autorisé',
|
5
|
+
'description_401' => 'Vous n’êtes pas autorisé à accéder à cette page.',
|
6
|
+
|
7
|
+
'title_403' => 'Accès interdit',
|
8
|
+
'description_403' => 'Cette page n’est pas accessible.',
|
9
|
+
|
10
|
+
'title_404' => 'Page non-trouvée',
|
11
|
+
'description_404' => 'Cette page n’existe pas.',
|
12
|
+
|
13
|
+
'title_500' => 'Erreur',
|
14
|
+
'description_500' => 'Il s’est produit une erreur avec votre requête.',
|
15
|
+
|
16
|
+
'goto_home' => 'Aller à la page d’accueil',
|
17
|
+
];
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<?php
|
2
|
+
|
3
|
+
return [
|
4
|
+
|
5
|
+
/*
|
6
|
+
|--------------------------------------------------------------------------
|
7
|
+
| Pagination Language Lines
|
8
|
+
|--------------------------------------------------------------------------
|
9
|
+
|
|
10
|
+
| The following language lines are used by the paginator library to build
|
11
|
+
| the simple pagination links. You are free to change them to anything
|
12
|
+
| you want to customize your views to better match your application.
|
13
|
+
|
|
14
|
+
*/
|
15
|
+
|
16
|
+
'previous' => '« Précédent',
|
17
|
+
'next' => 'Suivant »',
|
18
|
+
|
19
|
+
];
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<?php
|
2
|
+
|
3
|
+
return [
|
4
|
+
|
5
|
+
/*
|
6
|
+
|--------------------------------------------------------------------------
|
7
|
+
| Password Reset Language Lines
|
8
|
+
|--------------------------------------------------------------------------
|
9
|
+
|
|
10
|
+
| The following language lines are the default lines which match reasons
|
11
|
+
| that are given by the password broker for a password update attempt
|
12
|
+
| has failed, such as for an invalid token or invalid new password.
|
13
|
+
|
|
14
|
+
*/
|
15
|
+
|
16
|
+
'password' => 'Le mot de passe doit contenir au minimum 6 caractères et être identique à la confirmation',
|
17
|
+
'reset' => 'Votre mot de passe a été réinitialisé',
|
18
|
+
'sent' => 'Nous vous avons envoyé un courriel pour réinitialiser votre mot de passe',
|
19
|
+
'token' => 'Ce lien est invalide',
|
20
|
+
'user' => 'Cette adresse courriel est invalide',
|
21
|
+
|
22
|
+
];
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<?php
|
2
|
+
|
3
|
+
return [
|
4
|
+
'login' => 'connexion',
|
5
|
+
'logout' => 'deconnexion',
|
6
|
+
'password/reset' => 'mot-de-passe/reinitialiser',
|
7
|
+
'password/email' => 'mot-de-passe/courriel',
|
8
|
+
'password/reset/{token}' => 'mot-de-passe/reinitialiser/{token}',
|
9
|
+
'verify' => 'verification',
|
10
|
+
'verify/resend' => 'verification/reenvoyer',
|
11
|
+
'verify/{id}' => 'verification/{id}',
|
12
|
+
];
|
@@ -0,0 +1,146 @@
|
|
1
|
+
<?php
|
2
|
+
|
3
|
+
return [
|
4
|
+
/*
|
5
|
+
|--------------------------------------------------------------------------
|
6
|
+
| Validation Language Lines
|
7
|
+
|--------------------------------------------------------------------------
|
8
|
+
|
|
9
|
+
| The following language lines contain the default error messages used by
|
10
|
+
| the validator class. Some of these rules have multiple versions such
|
11
|
+
| as the size rules. Feel free to tweak each of these messages.
|
12
|
+
|
|
13
|
+
*/
|
14
|
+
|
15
|
+
'accepted' => 'Le champ :attribute doit être accepté.',
|
16
|
+
'active_url' => "Le champ :attribute n'est pas une URL valide.",
|
17
|
+
'after' => 'Le champ :attribute doit être une date postérieure au :date.',
|
18
|
+
'after_or_equal' => 'Le champ :attribute doit être une date postérieure ou égale au :date.',
|
19
|
+
'alpha' => 'Le champ :attribute doit contenir uniquement des lettres.',
|
20
|
+
'alpha_dash' => 'Le champ :attribute doit contenir uniquement des lettres, des chiffres et des tirets.',
|
21
|
+
'alpha_num' => 'Le champ :attribute doit contenir uniquement des chiffres et des lettres.',
|
22
|
+
'array' => 'Le champ :attribute doit être un tableau.',
|
23
|
+
'before' => 'Le champ :attribute doit être une date antérieure au :date.',
|
24
|
+
'before_or_equal' => 'Le champ :attribute doit être une date antérieure ou égale au :date.',
|
25
|
+
'between' => [
|
26
|
+
'numeric' => 'La valeur de :attribute doit être comprise entre :min et :max.',
|
27
|
+
'file' => 'La taille du fichier de :attribute doit être comprise entre :min et :max kilo-octets.',
|
28
|
+
'string' => 'Le texte :attribute doit contenir entre :min et :max caractères.',
|
29
|
+
'array' => 'Le tableau :attribute doit contenir entre :min et :max éléments.',
|
30
|
+
],
|
31
|
+
'boolean' => 'Le champ :attribute doit être vrai ou faux.',
|
32
|
+
'confirmed' => 'Le champ de confirmation :attribute ne correspond pas.',
|
33
|
+
'date' => "Le champ :attribute n'est pas une date valide.",
|
34
|
+
'date_format' => 'Le champ :attribute ne correspond pas au format :format.',
|
35
|
+
'different' => 'Les champs :attribute et :other doivent être différents.',
|
36
|
+
'digits' => 'Le champ :attribute doit contenir :digits chiffres.',
|
37
|
+
'digits_between' => 'Le champ :attribute doit contenir entre :min et :max chiffres.',
|
38
|
+
'dimensions' => "La taille de l'image :attribute n'est pas conforme.",
|
39
|
+
'distinct' => 'Le champ :attribute a une valeur en double.',
|
40
|
+
'email' => 'Le champ :attribute doit être une adresse courriel valide.',
|
41
|
+
'exists' => 'Le champ :attribute sélectionné est invalide.',
|
42
|
+
'file' => 'Le champ :attribute doit être un fichier.',
|
43
|
+
'filled' => 'Le champ :attribute doit avoir une valeur.',
|
44
|
+
'gt' => [
|
45
|
+
'numeric' => 'La valeur de :attribute doit être supérieure à :value.',
|
46
|
+
'file' => 'La taille du fichier de :attribute doit être supérieure à :value kilo-octets.',
|
47
|
+
'string' => 'Le texte :attribute doit contenir plus de :value caractères.',
|
48
|
+
'array' => 'Le tableau :attribute doit contenir plus de :value éléments.',
|
49
|
+
],
|
50
|
+
'gte' => [
|
51
|
+
'numeric' => 'La valeur de :attribute doit être supérieure ou égale à :value.',
|
52
|
+
'file' => 'La taille du fichier de :attribute doit être supérieure ou égale à :value kilo-octets.',
|
53
|
+
'string' => 'Le texte :attribute doit contenir au moins :value caractères.',
|
54
|
+
'array' => 'Le tableau :attribute doit contenir au moins :value éléments.',
|
55
|
+
],
|
56
|
+
'image' => 'Le champ :attribute doit être une image.',
|
57
|
+
'in' => 'Le champ :attribute est invalide.',
|
58
|
+
'in_array' => "Le champ :attribute n'existe pas dans :other.",
|
59
|
+
'integer' => 'Le champ :attribute doit être un entier.',
|
60
|
+
'ip' => 'Le champ :attribute doit être une adresse IP valide.',
|
61
|
+
'ipv4' => 'Le champ :attribute doit être une adresse IPv4 valide.',
|
62
|
+
'ipv6' => 'Le champ :attribute doit être une adresse IPv6 valide.',
|
63
|
+
'json' => 'Le champ :attribute doit être un document JSON valide.',
|
64
|
+
'lt' => [
|
65
|
+
'numeric' => 'La valeur de :attribute doit être inférieure à :value.',
|
66
|
+
'file' => 'La taille du fichier de :attribute doit être inférieure à :value kilo-octets.',
|
67
|
+
'string' => 'Le texte :attribute doit contenir moins de :value caractères.',
|
68
|
+
'array' => 'Le tableau :attribute doit contenir moins de :value éléments.',
|
69
|
+
],
|
70
|
+
'lte' => [
|
71
|
+
'numeric' => 'La valeur de :attribute doit être inférieure ou égale à :value.',
|
72
|
+
'file' => 'La taille du fichier de :attribute doit être inférieure ou égale à :value kilo-octets.',
|
73
|
+
'string' => 'Le texte :attribute doit contenir au plus :value caractères.',
|
74
|
+
'array' => 'Le tableau :attribute doit contenir au plus :value éléments.',
|
75
|
+
],
|
76
|
+
'max' => [
|
77
|
+
'numeric' => 'La valeur de :attribute ne peut être supérieure à :max.',
|
78
|
+
'file' => 'La taille du fichier de :attribute ne peut pas dépasser :max kilo-octets.',
|
79
|
+
'string' => 'Le texte de :attribute ne peut contenir plus de :max caractères.',
|
80
|
+
'array' => 'Le tableau :attribute ne peut contenir plus de :max éléments.',
|
81
|
+
],
|
82
|
+
'mimes' => 'Le champ :attribute doit être un fichier de type : :values.',
|
83
|
+
'mimetypes' => 'Le champ :attribute doit être un fichier de type : :values.',
|
84
|
+
'min' => [
|
85
|
+
'numeric' => 'La valeur de :attribute doit être supérieure ou égale à :min.',
|
86
|
+
'file' => 'La taille du fichier de :attribute doit être supérieure à :min kilo-octets.',
|
87
|
+
'string' => 'Le texte :attribute doit contenir au moins :min caractères.',
|
88
|
+
'array' => 'Le tableau :attribute doit contenir au moins :min éléments.',
|
89
|
+
],
|
90
|
+
'not_in' => "Le champ :attribute sélectionné n'est pas valide.",
|
91
|
+
'not_regex' => "Le format du champ :attribute n'est pas valide.",
|
92
|
+
'numeric' => 'Le champ :attribute doit contenir un nombre.',
|
93
|
+
'present' => 'Le champ :attribute doit être présent.',
|
94
|
+
'regex' => 'Le format du champ :attribute est invalide.',
|
95
|
+
'required' => 'Le champ :attribute est obligatoire.',
|
96
|
+
'required_if' => 'Le champ :attribute est obligatoire quand la valeur de :other est :value.',
|
97
|
+
'required_unless' => 'Le champ :attribute est obligatoire sauf si :other est :values.',
|
98
|
+
'required_with' => 'Le champ :attribute est obligatoire quand :values est présent.',
|
99
|
+
'required_with_all' => 'Le champ :attribute est obligatoire quand :values est présent.',
|
100
|
+
'required_without' => "Le champ :attribute est obligatoire quand :values n'est pas présent.",
|
101
|
+
'required_without_all' => "Le champ :attribute est requis quand aucun de :values n'est présent.",
|
102
|
+
'same' => 'Les champs :attribute et :other doivent être identiques.',
|
103
|
+
'size' => [
|
104
|
+
'numeric' => 'La valeur de :attribute doit être :size.',
|
105
|
+
'file' => 'La taille du fichier de :attribute doit être de :size kilo-octets.',
|
106
|
+
'string' => 'Le texte de :attribute doit contenir :size caractères.',
|
107
|
+
'array' => 'Le tableau :attribute doit contenir :size éléments.',
|
108
|
+
],
|
109
|
+
'string' => 'Le champ :attribute doit être une chaîne de caractères.',
|
110
|
+
'timezone' => 'Le champ :attribute doit être un fuseau horaire valide.',
|
111
|
+
'unique' => 'La valeur du champ :attribute est déjà utilisée.',
|
112
|
+
'uploaded' => "Le fichier du champ :attribute n'a pu être téléversé.",
|
113
|
+
'url' => "Le format de l'URL de :attribute n'est pas valide.",
|
114
|
+
|
115
|
+
/*
|
116
|
+
|--------------------------------------------------------------------------
|
117
|
+
| Custom Validation Language Lines
|
118
|
+
|--------------------------------------------------------------------------
|
119
|
+
|
|
120
|
+
| Here you may specify custom validation messages for attributes using the
|
121
|
+
| convention "attribute.rule" to name the lines. This makes it quick to
|
122
|
+
| specify a specific custom language line for a given attribute rule.
|
123
|
+
|
|
124
|
+
*/
|
125
|
+
|
126
|
+
'custom' => [
|
127
|
+
'attribute-name' => [
|
128
|
+
'rule-name' => 'custom-message',
|
129
|
+
],
|
130
|
+
],
|
131
|
+
|
132
|
+
/*
|
133
|
+
|--------------------------------------------------------------------------
|
134
|
+
| Custom Validation Attributes
|
135
|
+
|--------------------------------------------------------------------------
|
136
|
+
|
|
137
|
+
| The following language lines are used to swap attribute place-holders
|
138
|
+
| with something more reader friendly such as E-Mail Address instead
|
139
|
+
| of "email". This simply helps us make messages a little cleaner.
|
140
|
+
|
|
141
|
+
*/
|
142
|
+
|
143
|
+
'attributes' => [
|
144
|
+
|
145
|
+
],
|
146
|
+
];
|
File without changes
|
File without changes
|
Binary file
|
package/lib/generators/laravel-project/templates/laravel/resources/views/analytics/gpt.blade.php
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
@if(!empty($tagManagerId) && (!isset($body) || !$body))
|
2
|
+
<!-- Google Tag Manager -->
|
3
|
+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
4
|
+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
5
|
+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
6
|
+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
7
|
+
})(window,document,'script','dataLayer','{{ $tagManagerId }}');</script>
|
8
|
+
<!-- End Google Tag Manager -->
|
9
|
+
@endif
|
10
|
+
|
11
|
+
@if (!empty($tagManagerId) && isset($body) && $body)
|
12
|
+
<!-- Google Tag Manager (noscript) -->
|
13
|
+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-P2CF52F"
|
14
|
+
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
15
|
+
<!-- End Google Tag Manager (noscript) -->
|
16
|
+
@endif
|
package/lib/generators/laravel-project/templates/laravel/resources/views/analytics/head.blade.php
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
@include('analytics.gpt')
|
@@ -0,0 +1,33 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<!--[if IE ]> <html class="ie" lang="{{ $locale }}"> <![endif]-->
|
3
|
+
<!--[if !(IE) ]><!--> <html lang="{{ $locale }}"> <!--<![endif]-->
|
4
|
+
<head>
|
5
|
+
<meta charset="utf-8">
|
6
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
8
|
+
|
9
|
+
@include('meta.all')
|
10
|
+
|
11
|
+
@include('analytics.head')
|
12
|
+
|
13
|
+
@if(!isset($inWebpack) || !$inWebpack)
|
14
|
+
@include('assets.head')
|
15
|
+
@endif
|
16
|
+
</head>
|
17
|
+
<body>
|
18
|
+
@include('analytics.body')
|
19
|
+
|
20
|
+
@section('body')
|
21
|
+
<div id="app"></div>
|
22
|
+
<script type="text/javascript">
|
23
|
+
var props = @json($props);
|
24
|
+
</script>
|
25
|
+
@show
|
26
|
+
|
27
|
+
@if(isset($inWebpack) && $inWebpack)
|
28
|
+
<script type="text/javascript" src="/static/js/bundle.js"></script>
|
29
|
+
@else
|
30
|
+
@include('assets.body')
|
31
|
+
@endif
|
32
|
+
</body>
|
33
|
+
</html>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<title>{{ $title }}</title>
|
2
|
+
|
3
|
+
<meta name="language" content="{{ $locale }}">
|
4
|
+
<meta name="description" content="{{ $description }}" data-react-helmet="true">
|
5
|
+
|
6
|
+
@if (isset($keywords) && sizeof($keywords))
|
7
|
+
<meta name="keywords" content="{{ $keywords->implode(',') }}" data-react-helmet="true">
|
8
|
+
@endif
|
9
|
+
|
10
|
+
<link rel="shortcut icon" href="{{ asset('static/media/favicon/favicon.ico') }}" type="image/x-ico" data-react-helmet="true">
|
11
|
+
<link rel="icon" href="{{ asset('static/media/favicon/favicon.png') }}" type="image/png" data-react-helmet="true">
|
package/lib/generators/laravel-project/templates/laravel/resources/views/meta/opengraph.blade.php
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
<!-- Open Graph -->
|
2
|
+
<meta property="og:locale" content="{{$locale}}">
|
3
|
+
<meta property="og:title" content="{{ $title }}" data-react-helmet="true">
|
4
|
+
<meta property="og:type" content="website" data-react-helmet="true">
|
5
|
+
<meta property="og:description" content="{{ $description }}" data-react-helmet="true">
|
6
|
+
<meta property="og:url" content="{{ $url }}" data-react-helmet="true">
|
7
|
+
@if(isset($image))
|
8
|
+
<meta property="og:image" content="{{ $image }}" data-react-helmet="true">
|
9
|
+
@endif
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<?php
|
2
|
+
|
3
|
+
use App\Http\Controllers\HomeController;
|
4
|
+
|
5
|
+
//Redirect to current langage home
|
6
|
+
Route::get('/', [HomeController::class, 'redirect'])->name('home');
|
7
|
+
|
8
|
+
Route::groupWithLocales(function () {
|
9
|
+
Route::getTrans('/', [HomeController::class, 'index'])->nameWithLocale('home');
|
10
|
+
Route::getTrans('/test', [HomeController::class, 'index'])->nameWithLocale('test');
|
11
|
+
Route::getTrans('/test/{with_param}', [HomeController::class, 'index'])->nameWithLocale('test_with_param');
|
12
|
+
});
|