Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit 8c3b561

Browse files
committed
v3.1.7
- add support for table sorting - make table header sticky - show sensible error for axios - update readme - update assets rdme …
1 parent 0d95895 commit 8c3b561

File tree

5 files changed

+56
-33
lines changed

5 files changed

+56
-33
lines changed

README.md

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -101,22 +101,22 @@ return [
101101
'routeListPath' => storage_path('logs/simpleMenu.php'),
102102

103103
/*
104-
* where to redirect when a route is available in one locale "en" but not in another "fr" ?
104+
* dynamic pages controller namespace
105105
*/
106-
'unFoundLocalizedRoute' => 'home',
106+
'pagesControllerNS' => 'App\Http\Controllers',
107107

108108
/*
109-
* pages action controller namespace
109+
* where to redirect when a route is available in one locale "en" but not in another "fr" ?
110110
*/
111-
'pagesControllerNS' => 'App\Http\Controllers',
111+
'unFoundLocalizedRoute' => 'home',
112112

113113
/*
114114
* the user model we are going to use for the admin page
115115
*/
116116
'userModel' => App\User::class,
117117

118118
/*
119-
* when adding a page which is a nest of a nother to a menu
119+
* when adding a page which is a nest of a nother to a menu, ex.
120120
*
121121
* root
122122
* | child 1
@@ -139,23 +139,38 @@ return [
139139
*/
140140
'clearRootDescendants' => false,
141141

142-
/**
143-
* when removing a nest from a list, do you want to reset its hierarchy ?
142+
/*
143+
* when removing a nest from a list, ex.
144+
*
145+
* root
146+
* | child 1
147+
* | child 2 "remove"
148+
* | child 3
149+
*
150+
* do you want to reset its hierarchy ?
144151
*/
145-
'clearNestDescendants' => false,
152+
'clearNestDescendants'=> false,
146153

147154
/*
148-
* when deleteing a page "from the db", do you also want to delete all of its childrens ?
155+
* when deleting a page "from the db", ex.
156+
*
157+
* page "delete/destroy"
158+
* | nested child 1
159+
* | nested child 2
160+
* | nested child 3
161+
*
162+
* do you also want to delete all of its children ?
149163
*/
150164
'deletePageAndNests' => false,
151165

152166
/*
153-
* package routes url & name prefix
167+
* package routes url & route name prefix
154168
*/
155169
'crud_prefix' => 'admin',
156170

157171
/*
158172
* all the package controllers
173+
*
159174
* if you need to change anything, just create new controller
160175
* and extend from the below original
161176
* ex. "class ExampleController extends PagesController"

logs/v3.1.0.txt

Lines changed: 0 additions & 7 deletions
This file was deleted.

logs/v3.1.7.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
- add support for table sorting
2+
- make table header sticky
3+
- show sensible error for axios
4+
- update readme
5+
- update assets

src/config/simpleMenu.php

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,10 @@
2323
'routeListPath' => storage_path('logs/simpleMenu.php'),
2424

2525
/*
26-
* pages action controller namespace
26+
* dynamic pages controller namespace
2727
*/
2828
'pagesControllerNS' => 'App\Http\Controllers',
2929

30-
/*
31-
* the user model we are going to use for the admin page
32-
*/
33-
'userModel' => App\User::class,
34-
3530
/*
3631
* where to redirect when a route is available in one locale "en" but not in another "fr" ?
3732
*
@@ -41,7 +36,12 @@
4136
'unFoundLocalizedRoute' => 'home',
4237

4338
/*
44-
* when adding a page which is a nest of another to a menu
39+
* the user model we are going to use for the admin page
40+
*/
41+
'userModel' => App\User::class,
42+
43+
/*
44+
* when adding a page which is a nest of another to a menu, ex.
4545
*
4646
* root
4747
* | child 1
@@ -68,19 +68,33 @@
6868
'clearRootDescendants' => false,
6969

7070
/*
71-
* when removing a nest from a list, do you want to reset its hierarchy ?
71+
* when removing a nest from a list, ex.
72+
*
73+
* root
74+
* | child 1
75+
* | child 2 "remove"
76+
* | child 3
77+
*
78+
* do you want to reset its hierarchy ?
7279
*/
7380
'clearNestDescendants'=> false,
7481

7582
/*
76-
* when deleting a page "from the db", do you also want to delete all of its children ?
83+
* when deleting a page "from the db", ex.
84+
*
85+
* page "delete/destroy"
86+
* | nested child 1
87+
* | nested child 2
88+
* | nested child 3
89+
*
90+
* do you also want to delete all of its children ?
7791
*/
7892
'deletePageAndNests' => false,
7993

8094
/*
81-
* package routes url & name prefix ex.
95+
* package routes url & route name prefix ex.
8296
* url = 'admin/pages'
83-
* name = 'admin.pages.*'
97+
* route name = 'admin.pages.*'
8498
*/
8599
'crud_prefix' => 'admin',
86100

src/resources/views/admin/bulma/pages/create.blade.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,7 @@ class="input toggle-pad"
7474
@if (count($templates))
7575
<span class="help">
7676
@foreach ($templates as $one)
77-
<code class="link"
78-
@click="$refs.template.value = $event.target.dataset.value"
79-
data-value="{{ $one }}">
80-
{{ $one }}
81-
</code>
77+
<code class="link" data-value="{{ $one }}" @click="$refs.template.value = $event.target.dataset.value">{{ $one }}</code>
8278
@endforeach
8379
</span>
8480
@endif

0 commit comments

Comments
 (0)