Skip to content

Commit

Permalink
👍 Change build folder
Browse files Browse the repository at this point in the history
  • Loading branch information
juzaweb committed Aug 13, 2023
1 parent 2d4bff2 commit cd80e83
Show file tree
Hide file tree
Showing 171 changed files with 1,283 additions and 23,929 deletions.
2 changes: 1 addition & 1 deletion modules/Backend/Commands/Post/GeneratePostUUIDCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

class GeneratePostUUIDCommand extends Command
{
protected $name = 'juzacms:generate-posts-uuid-missing';
protected $name = 'posts:generate-uuid-missing';

protected $description = 'Generate post uuid missing command.';

Expand Down
47 changes: 47 additions & 0 deletions modules/Backend/Commands/Publish/CMSPublishCommand.php
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'],
];
}
}
2 changes: 2 additions & 0 deletions modules/Backend/Providers/BackendServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
use Juzaweb\Backend\Commands\PermissionGenerateCommand;
use Juzaweb\Backend\Commands\PingFeedCommand;
use Juzaweb\Backend\Commands\Post\GeneratePostUUIDCommand;
use Juzaweb\Backend\Commands\Publish\CMSPublishCommand;
use Juzaweb\Backend\Commands\ThemePublishCommand;
use Juzaweb\Backend\Commands\TransFromEnglish;
use Juzaweb\Backend\Models\Comment;
Expand Down Expand Up @@ -108,6 +109,7 @@ public function boot(): void
OptimizeTagCommand::class,
PingFeedCommand::class,
GeneratePostUUIDCommand::class,
CMSPublishCommand::class,
]
);
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

121 changes: 121 additions & 0 deletions modules/Backend/resources/assets/public/build/assets/app-2d01f232.js

Large diffs are not rendered by default.

File renamed without changes.
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.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cd80e83

Please sign in to comment.