Skip to content

Commit 26dd2e5

Browse files
authored
Merge pull request #373 from LavaLite/develop
Develop
2 parents 9299f27 + e2abe64 commit 26dd2e5

File tree

6 files changed

+22
-120
lines changed

6 files changed

+22
-120
lines changed

Diff for: app/Http/Controllers/Litepie/MasterResourceController.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public function __construct(MasterRepositoryInterface $master)
3838
*/
3939
public function index(MasterRequest $request, $type = null)
4040
{
41-
4241
$pageLimit = $request->input('pageLimit', config('database.pagination.limit'));
4342
$data = $this->repository
4443
->pushFilter(MasterResourceFilter::class)
@@ -57,7 +56,7 @@ public function index(MasterRequest $request, $type = null)
5756

5857
return $this->response->setMetaTitle(trans('master.master.names'))
5958
->view($view)
60-
->data(compact('data', 'groups', 'modules', 'form', 'count', 'groups'))
59+
->data(compact('data', 'type', 'groups', 'modules', 'form', 'count'))
6160
->output();
6261
}
6362

Diff for: composer.json

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
"lavalite/framework": "^8.0",
2424
"litefront/default": "^1.0",
25+
"litefront/user": "^1.0",
26+
"litefront/public": "^1.0",
2527

2628
"litecms/block": "^8.0",
2729
"litecms/blog": "^8.0",

Diff for: config/theme.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@
2121
'view' => 'default',
2222
],
2323
'public' => [
24-
'theme' => 'default',
25-
'view' => 'default',
24+
'theme' => 'public',
25+
'view' => 'public',
2626
],
2727
'user' => [
28-
'theme' => 'default',
29-
'view' => 'default',
28+
'theme' => 'user',
29+
'view' => 'user',
3030
],
3131
'client' => [
32-
'theme' => 'default',
33-
'view' => 'default',
32+
'theme' => 'user',
33+
'view' => 'user',
3434
],
3535
],
3636

Diff for: database/migrations/2018_07_25_100001_create_masters_table.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ public function up()
2020
Schema::create('masters', function ($table) {
2121
$table->increments('id');
2222
$table->integer('parent_id')->nullable();
23-
$table->string('type', 255)->nullable();
24-
$table->string('name', 255)->nullable();
23+
$table->string('type', 50)->nullable();
24+
$table->string('name', 50)->nullable();
2525
$table->string('code', 20)->nullable();
2626
$table->double('amount', 10, 2)->nullable();
2727
$table->string('abbr', 50)->nullable();
28-
$table->string('description', 255)->nullable();
29-
$table->string('icon', 255)->nullable();
28+
$table->text('description')->nullable();
29+
$table->string('icon', 50)->nullable();
3030
$table->text('image')->nullable();
3131
$table->text('images')->nullable();
3232
$table->text('file')->nullable();

Diff for: packages/.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Ignore everything
2+
*
3+
4+
# But not these files...
5+
!.gitignore

Diff for: public/themes/.gitignore

+4-108
Original file line numberDiff line numberDiff line change
@@ -1,109 +1,5 @@
1-
# ignore log files and databases
2-
*.log
3-
*.sql
4-
*.sqlite
1+
# Ignore everything
2+
*
53

6-
# ignore compiled files
7-
*.com
8-
*.class
9-
*.dll
10-
*.exe
11-
*.o
12-
*.so
13-
14-
# ignore packaged files
15-
*.7z
16-
*.dmg
17-
*.gz
18-
*.iso
19-
*.jar
20-
*.rar
21-
*.tar
22-
*.zip
23-
24-
# ignore OS generated files
25-
ehthumbs.db
26-
Thumbs.db
27-
.DS_Store
28-
.DS_Store?
29-
._*
30-
.Spotlight-V100
31-
.Trashes
32-
33-
# ignore Editor files
34-
*.sublime-project
35-
*.sublime-workspace
36-
*.komodoproject
37-
_ide_helper.php
38-
/.idea
39-
/.vscode
40-
# Eclipse project files
41-
.buildpath
42-
.project
43-
.settings/
44-
workspace.xml
45-
46-
# Ignore cache
47-
.cache/
48-
49-
# Ignore user created files :)
50-
*.bak
51-
*.orig
52-
53-
# Ignore system files
54-
.bash_history
55-
LICENSE_AFL.txt
56-
LICENSE.html
57-
LICENSE.txt
58-
LICENSE_EE*
59-
RELEASE_NOTES.txt
60-
.ssh/
61-
error_log
62-
# .htpasswds
63-
# /.htaccess
64-
php.ini.sample
65-
.modgit/
66-
_vti_bin/
67-
_vti_cnf/
68-
_vti_inf.html
69-
_vti_log/
70-
_vti_pvt/
71-
_vti_txt/
72-
tmp/
73-
php.ini
74-
_old/
75-
# .htpasswds/
76-
# .htpasswd
77-
.viminfo
78-
.profile
79-
.bashrc
80-
.bash_logout
81-
.bash_history
82-
.modgit/
83-
.modman/
84-
pkginfo
85-
nohup.out
86-
Homestead.yaml
87-
Homestead.json
88-
/.vagrant
89-
.phpunit.result.cache
90-
91-
#Laravel Specific files
92-
/vendor
93-
.env
94-
.env.backup
95-
!.env.example
96-
# /public/.htaccess
97-
# storage/*
98-
# !storage/framework/cache/
99-
# !storage/framework/sessions/
100-
# !storage/framework/views/
101-
/storage/*.key
102-
/node_modules
103-
/public/hot
104-
/public/storage
105-
106-
# composer files
107-
composer.dev.json
108-
composer.lock
109-
package-lock.json
4+
# But not these files...
5+
!.gitignore

0 commit comments

Comments
 (0)