generator-folklore 3.0.29 → 3.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/generators/eslint/templates/.eslint.config.js +1 -1
- package/lib/generators/laravel/templates/gitignore +17 -13
- package/lib/generators/laravel-panneau/templates/app/Contracts/Repositories/Pages.php +1 -1
- package/lib/generators/laravel-panneau/templates/app/Http/Resources/PageResource.php +1 -1
- package/lib/generators/laravel-panneau/templates/app/Models/MediaFile.php +11 -0
- package/lib/generators/laravel-panneau/templates/app/Models/Page.php +1 -1
- package/lib/generators/laravel-panneau/templates/app/Repositories/Pages.php +1 -1
- package/lib/generators/laravel-panneau/templates/resources/assets/js/components/Panneau.jsx +3 -1
- package/lib/generators/laravel-panneau/templates/routes.php +9 -11
- package/package.json +2 -2
- package/lib/generators/laravel-panneau/templates/resources/assets/styles/panneau.scss +0 -3
|
@@ -1,28 +1,31 @@
|
|
|
1
1
|
# Numerous always-ignore extensions
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
|
|
3
|
+
_.diff
|
|
4
|
+
_.err
|
|
5
|
+
_.orig
|
|
6
|
+
_.log
|
|
7
|
+
_.rej
|
|
8
|
+
_.swo
|
|
9
|
+
_.swp
|
|
10
|
+
_.vi
|
|
11
|
+
_~
|
|
12
|
+
_.sass-cache
|
|
12
13
|
|
|
13
14
|
# OS or Editor folders
|
|
15
|
+
|
|
14
16
|
.DS_Store
|
|
15
17
|
Thumbs.db
|
|
16
18
|
.cache
|
|
17
19
|
.project
|
|
18
20
|
.settings
|
|
19
21
|
.tmproj
|
|
20
|
-
|
|
22
|
+
\*.esproj
|
|
21
23
|
nbproject
|
|
22
24
|
devnotes.md
|
|
23
|
-
_notes
|
|
25
|
+
\_notes
|
|
24
26
|
|
|
25
27
|
# Folders to ignore
|
|
28
|
+
|
|
26
29
|
.hg
|
|
27
30
|
.svn
|
|
28
31
|
.CVS
|
|
@@ -32,7 +35,8 @@ publish
|
|
|
32
35
|
|
|
33
36
|
/node_modules
|
|
34
37
|
/public/storage
|
|
35
|
-
/
|
|
38
|
+
/public/static
|
|
39
|
+
/storage/\*.key
|
|
36
40
|
/vendor
|
|
37
41
|
/.idea
|
|
38
42
|
Homestead.json
|
|
@@ -11,7 +11,7 @@ interface Pages extends BasePages
|
|
|
11
11
|
|
|
12
12
|
public function findByHandle(string $handle): ?PageResource;
|
|
13
13
|
|
|
14
|
-
public function findBySlug(string $slug, string $locale = null): ?PageResource;
|
|
14
|
+
public function findBySlug(string $slug, ?string $locale = null): ?PageResource;
|
|
15
15
|
|
|
16
16
|
public function create($data): PageResource;
|
|
17
17
|
|
|
@@ -6,7 +6,7 @@ use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
6
6
|
use App\Contracts\Entities\Page;
|
|
7
7
|
use App\Contracts\Entities\Pages\Home as HomePage;
|
|
8
8
|
use Folklore\Http\Resources\MediaResource;
|
|
9
|
-
use Folklore\Contracts\
|
|
9
|
+
use Folklore\Contracts\Entities\HasBlocks;
|
|
10
10
|
|
|
11
11
|
class PageResource extends JsonResource
|
|
12
12
|
{
|
|
@@ -25,7 +25,7 @@ class Pages extends BasePages implements PagesContract
|
|
|
25
25
|
return parent::findByHandle($handle);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
public function findBySlug(string $slug, string $locale = null): ?PageContract
|
|
28
|
+
public function findBySlug(string $slug, ?string $locale = null): ?PageContract
|
|
29
29
|
{
|
|
30
30
|
return parent::findBySlug($slug, $locale);
|
|
31
31
|
}
|
|
@@ -6,7 +6,9 @@ import React, { useState, useEffect } from 'react';
|
|
|
6
6
|
|
|
7
7
|
import * as fieldsComponents from './panneau/fields';
|
|
8
8
|
|
|
9
|
-
import '
|
|
9
|
+
import '@panneau/app/assets/css/styles.css';
|
|
10
|
+
import '@panneau/themes/assets/css/styles.css';
|
|
11
|
+
import '@panneau/themes/assets/css/vendor.css';
|
|
10
12
|
|
|
11
13
|
const propTypes = {
|
|
12
14
|
definition: PropTypes.object.isRequired, // eslint-disable-line react/forbid-prop-types
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
use Illuminate\Support\Facades\Route;
|
|
4
4
|
use Panneau\Support\Facade as Panneau;
|
|
5
|
+
use App\Panneau\Http\Controllers\HomeController;
|
|
6
|
+
use App\Panneau\Http\Controllers\UploadController;
|
|
5
7
|
|
|
6
8
|
Panneau::router()->group(function () {
|
|
7
9
|
$namePrefix = config('panneau.routes.name_prefix', config('panneau.routes.prefix') . '.');
|
|
@@ -14,19 +16,15 @@ Panneau::router()->group(function () {
|
|
|
14
16
|
Panneau::router()->auth();
|
|
15
17
|
});
|
|
16
18
|
|
|
17
|
-
Route::
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
Route::get('/', 'HomeController@index')->name($namePrefix . 'home');
|
|
19
|
+
Route::middleware(['web', 'auth', 'can:view,' . \Panneau\Panneau::class])->group(
|
|
20
|
+
function () use ($namePrefix) {
|
|
21
|
+
Route::get('/', [HomeController::class, 'index'])->name($namePrefix . 'home');
|
|
21
22
|
|
|
22
|
-
Route::post('upload', '
|
|
23
|
-
|
|
24
|
-
// Account
|
|
25
|
-
Route::get('account', 'AccountController@index')->name($namePrefix . 'account');
|
|
26
|
-
Route::post('account', 'AccountController@update')->name(
|
|
27
|
-
$namePrefix . 'account.update'
|
|
23
|
+
Route::post('upload', [UploadController::class, 'upload'])->name(
|
|
24
|
+
$namePrefix . 'upload'
|
|
28
25
|
);
|
|
29
26
|
|
|
30
27
|
Panneau::router()->resources();
|
|
31
|
-
}
|
|
28
|
+
}
|
|
29
|
+
);
|
|
32
30
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "generator-folklore",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.30",
|
|
4
4
|
"description": "Yeoman generator for projects at Folklore",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yeoman-generator"
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"yeoman-generator": "5.9.0",
|
|
41
41
|
"yeoman-remote": "^1.0.1"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "729e543ff89bac05964cdafb710eeb79d8e09362"
|
|
44
44
|
}
|