Skip to content

Commit f9a947c

Browse files
committed
Merge branch 'release/v0.0.6'
2 parents 178deaf + 6951360 commit f9a947c

565 files changed

Lines changed: 300882 additions & 2479 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 42 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -132,28 +132,54 @@ npm install --save-dev fs
132132

133133
Replace the content of `webpack.mix.fs`
134134
```bash
135-
const mix = require('laravel-mix');
136-
var fs = require('fs');
135+
var admin_path = 'resources/assets/vendor/vaahcms/admin/';
136+
var admin_default_theme_path = admin_path+'default/';
137137

138-
/*
139-
|--------------------------------------------------------------------------
140-
| Mix Asset Management
141-
|--------------------------------------------------------------------------
142-
|
143-
| Mix provides a clean, fluent API for defining some Webpack build steps
144-
| for your Laravel application. By default, we are compiling the Sass
145-
| file for the application as well as bundling up all the JS files.
146-
|
147-
*/
138+
mix.setPublicPath(admin_default_theme_path);
139+
140+
var admin_assets_json = JSON.parse(fs.readFileSync(admin_default_theme_path+'assets.json'));
148141

149-
var admin_assets_json = JSON.parse(fs.readFileSync('resources/assets/vendor/vaahcms/admin/default/assets.json'));
142+
//console.log(admin_assets_json);
150143

151-
console.log(admin_assets_json);
144+
var admin_copy_path = './resources/assets/vendor/vaahcms/admin/';
145+
var admin_copy_path_des = './packages/vaahcms/src/Resources/assets/admin/';
152146

153-
mix.combine(admin_assets_json['css'], 'public/css/vaahcms-admin.css')
154-
.combine(admin_assets_json['js'], 'public/js/vaahcms-admin.js')
147+
fs_extra.removeSync(admin_copy_path_des);
148+
149+
mix.combine(admin_assets_json['css'], admin_default_theme_path+'builds/vaahcms.css')
150+
.combine(admin_assets_json['js'], admin_default_theme_path+'builds/vaahcms.js')
151+
.js(admin_default_theme_path+'vue/app-setup.js', './builds')
152+
.js(admin_default_theme_path+'vue/app-dashboard.js', './builds')
153+
.js(admin_default_theme_path+'vue/app-modules.js', './builds')
154+
.copyDirectory(admin_copy_path, admin_copy_path_des, false)
155155
.version();
156156

157+
158+
//mix.copyDirectory(admin_copy_path, admin_copy_path_des, false);
159+
160+
161+
mix.webpackConfig({
162+
watchOptions: {
163+
aggregateTimeout: 2000,
164+
poll: 20,
165+
ignored: [
166+
'/app/',
167+
'/bootstrap/',
168+
'/config/',
169+
'/database/',
170+
'/packages/',
171+
'/public/',
172+
'/routes/',
173+
'/storage/',
174+
'/tests/',
175+
'/vaahcms/',
176+
'/node_modules/',
177+
'/vendor/',
178+
179+
]
180+
}
181+
});
182+
157183
```
158184

159185

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "webreinvent/vaahcms",
3-
"description": "Laravel Based Rapid Development CMS Framework",
3+
"description": "Laravel Based Rapid Application Development CMS Framework",
44
"keywords": ["laravel", "cms"],
55
"homepage": "https://www.webreinvent.com",
66
"license": "MIT",
7-
"version": "0.0.5",
7+
"version": "0.0.6",
88
"authors": [
99
{
1010
"name": "Pradeep",

src/Config/vaahcms.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
'modules_path' => 'vaahcms/Modules',
1313
'plugins_path' => 'vaahcms/Plugins',
1414
'per_page' => 20,
15-
'minified' => 1,
16-
'show_console_logs' => 1,
15+
'minified' => 0,
16+
'api_route' => 'https://cms.vaah.dev/api/modules',
17+
'debug' => 1,
1718
];
1819

1920
return $settings;
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?php
2+
3+
use Illuminate\Support\Facades\Schema;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Database\Migrations\Migration;
6+
7+
class CreateVhModulesTable extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*
12+
* @return void
13+
*/
14+
public function up()
15+
{
16+
Schema::create('vh_modules', function (Blueprint $table) {
17+
$table->increments('id');
18+
$table->string('name')->nullable();
19+
$table->string('title')->nullable();
20+
$table->string('slug')->nullable();
21+
$table->string('thumbnail')->nullable();
22+
$table->string('excerpt')->nullable();
23+
$table->string('description')->nullable();
24+
$table->string('github_url')->nullable();
25+
$table->string('author_name')->nullable();
26+
$table->string('author_website')->nullable();
27+
$table->string('version')->nullable();
28+
$table->integer('version_number')->nullable();
29+
$table->integer('db_table_prefix')->nullable();
30+
$table->boolean('is_sample_data_available')->nullable();
31+
$table->boolean('is_update_available')->nullable();
32+
$table->dateTime('update_checked_at')->nullable();
33+
34+
$table->boolean('is_active')->nullable();
35+
36+
$table->timestamps();
37+
$table->softDeletes();
38+
});
39+
}
40+
41+
/**
42+
* Reverse the migrations.
43+
*
44+
* @return void
45+
*/
46+
public function down()
47+
{
48+
Schema::dropIfExists('vh_modules');
49+
}
50+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?php
2+
3+
use Illuminate\Support\Facades\Schema;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Database\Migrations\Migration;
6+
7+
class CreateVhModuleSettingsTable extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*
12+
* @return void
13+
*/
14+
public function up()
15+
{
16+
Schema::create('vh_module_settings', function (Blueprint $table) {
17+
$table->increments('id');
18+
19+
$table->string('module_id')->nullable();
20+
$table->string('label')->nullable();
21+
$table->string('excerpt')->nullable();
22+
$table->string('type')->nullable();
23+
$table->string('key')->nullable();
24+
$table->text('value')->nullable();
25+
26+
27+
$table->timestamps();
28+
$table->softDeletes();
29+
});
30+
}
31+
32+
/**
33+
* Reverse the migrations.
34+
*
35+
* @return void
36+
*/
37+
public function down()
38+
{
39+
Schema::dropIfExists('vh_module_settings');
40+
}
41+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
3+
use Illuminate\Support\Facades\Schema;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Database\Migrations\Migration;
6+
7+
class CreateVhModulesMigrationsTable extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*
12+
* @return void
13+
*/
14+
public function up()
15+
{
16+
Schema::create('vh_modules_migrations', function (Blueprint $table) {
17+
$table->increments('id');
18+
$table->integer('migration_id')->nullable();
19+
$table->integer('module_id')->nullable();
20+
$table->string('module_slug')->nullable();
21+
$table->integer('batch')->nullable();
22+
$table->timestamps();
23+
});
24+
}
25+
26+
/**
27+
* Reverse the migrations.
28+
*
29+
* @return void
30+
*/
31+
public function down()
32+
{
33+
Schema::dropIfExists('vh_modules_migrations');
34+
}
35+
}

0 commit comments

Comments
 (0)