Skip to content

Commit

Permalink
Fix Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
DeveloperOnCall committed Apr 17, 2022
1 parent f830156 commit b688985
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 18 deletions.
4 changes: 3 additions & 1 deletion Resources/views/backend/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@
<div class="btn-group" role="group" aria-label="Basic example">
<button type="button" data-id="{{ $theme->id }}" class="btn @if($theme->active)btn-success @else btn-primary @endif btn-sm @if($theme->active) disabled @endif activate_theme"><i class="fas fa-check-double"></i></button>
<a href="{{ route('backend.thememanager.edit', [ 'thememanager'=> $settings->slug ]) }}"><button type="button" class="btn btn-primary btn-sm" title="Theme Settings"><i class="fas fa-cogs"></i></button></a>
<a @if( theme_has_menus($theme->id) == false) disabled="disabled" @endif href="/admin/menumaker"><button type="button" class="btn btn-primary btn-sm" title="Menus" @if( theme_has_menus($theme->id) == false) disabled @endif><i class="fas fa-sitemap"></i></button></a>
@if(\Module::has('Menumaker'))
<a @if( theme_has_menus($theme->id) == false) disabled="disabled" @endif href="/admin/menumaker"><button type="button" class="btn btn-primary btn-sm" title="Menus" @if( theme_has_menus($theme->id) == false) disabled @endif><i class="fas fa-sitemap"></i></button></a>
@endif
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion Routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/

// Route::group( [ 'namespace' => '\Modules\Thememanager\Http\Controllers\Backend','middleware' => [ 'auth',/*'permission:manage plans'*/ ], ], function (){
Route::group(['namespace' => '\Modules\Thememanager\Http\Controllers\Backend', 'as' => 'backend.', 'middleware' => ['web', 'auth', 'can:view_backend'], 'prefix' => 'site-manager'], function () {
Route::group(['namespace' => '\Modules\Thememanager\Http\Controllers\Backend', 'as' => 'backend.', 'middleware' => ['web', 'auth', 'can:view_backend'], 'prefix' => 'app'], function () {

$module_name = 'thememanager';
$controller_name = 'ThememanagerController';
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Used to manage site themes for front and back end Laravel",
"type": "laravel-module",
"keywords":[ "laravel","laravel-cms","laravel-themes","laravel-theme-maker","laravel-dashboard","laravel-theme"],
"version": "v1.2",
"version": "v1.5",
"license": ["GPL-3.0-or-later"],
"authors": [
{
Expand Down
34 changes: 19 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
{
"private": true,
"scripts": {
"dev": "npm run development",
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch-poll": "npm run watch -- --watch-poll",
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
"prod": "npm run production",
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
},
"devDependencies": {
"cross-env": "^7.0",
"laravel-mix": "^5.0.1",
"laravel-mix-merge-manifest": "^0.1.2"
}
"private": true,
"scripts": {
"dev": "npm run development",
"development": "mix",
"watch": "mix watch",
"watch-poll": "mix watch -- --watch-options-poll=1000",
"hot": "mix watch --hot",
"prod": "npm run production",
"production": "mix --production"
},
"devDependencies": {
"axios": "^0.21.4",
"dotenv": "^10.0.0",
"dotenv-expand": "^5.1.0",
"laravel-mix": "^6.0.31",
"laravel-mix-merge-manifest": "^2.0.0",
"lodash": "^4.17.21",
"postcss": "^8.3.7"
}
}

0 comments on commit b688985

Please sign in to comment.