-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
feature/dev-tool-plugin-ui
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ yarn-error.log | |
/.vscode | ||
/.php-cs-fixer.cache | ||
/.deploy.yml | ||
/public/jw-styles/juzaweb/build |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
/** | ||
* JUZAWEB CMS - Laravel CMS for Your Project | ||
* | ||
* @package juzaweb/juzacms | ||
* @author The Anh Dang | ||
* @link https://juzaweb.com | ||
* @license GNU V2 | ||
*/ | ||
|
||
namespace Juzaweb\Backend\Commands\Publish; | ||
|
||
use Illuminate\Console\Command; | ||
use Illuminate\Support\Facades\File; | ||
use Symfony\Component\Console\Input\InputArgument; | ||
|
||
class CMSPublishCommand extends Command | ||
{ | ||
protected $name = 'cms:publish'; | ||
|
||
public function handle(): void | ||
{ | ||
$tag = match ($this->argument('type')) { | ||
'config' => 'cms_config', | ||
default => 'cms_assets', | ||
}; | ||
|
||
if ($tag == 'cms_assets') { | ||
File::deleteDirectory(base_path('public/jw-styles/juzaweb'), true); | ||
} | ||
|
||
$this->call( | ||
'vendor:publish', | ||
[ | ||
'--force' => true, | ||
'--tag' => [$tag], | ||
] | ||
); | ||
} | ||
|
||
protected function getArguments(): array | ||
{ | ||
return [ | ||
['type', InputArgument::OPTIONAL, 'Publish type.', 'assets'], | ||
]; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
import{j as r}from"./app-172eccbe.js";function t({content:e}){return r("div",{dangerouslySetInnerHTML:{__html:e}})}export{t as default}; | ||
import{j as r}from"./app-2d01f232.js";function t({content:e}){return r("div",{dangerouslySetInnerHTML:{__html:e}})}export{t as default}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.