added client assets

pull/44/head
A1Gard 4 months ago
parent e24fa89717
commit 56e7c39248

@ -0,0 +1,30 @@
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class clientAssetGenerator extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'client';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Command description';
/**
* Execute the console command.
*/
public function handle()
{
//
}
}

@ -51,12 +51,12 @@ class makePart extends Command
} }
$folderPath = __DIR__ . '/../../../resources/views/theme/' . $section . '/' . $part; $folderPath = __DIR__ . '/../../../resources/views/segments/' . $section . '/' . $part;
// check is exists // check is exists
if (File::exists($folderPath)) { if (File::exists($folderPath)) {
$this->warn(__('Command ignored, theme part exists!')); $this->warn(__('Command ignored, segment part exists!'));
return -1; return -1;
} }
@ -85,6 +85,7 @@ DOC;
$this->info(__("Theme part created successfully: [blade, js, json, scss, php, assets, screenshot]")); $this->info(__("Theme part created successfully: [blade, js, json, scss, php, assets, screenshot]"));
return 0; return 0;
} }

@ -0,0 +1 @@
console.log('client run');

@ -0,0 +1,5 @@
*{
padding: 0;
margin: 0;
}

@ -6,6 +6,7 @@
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title> <title>Document</title>
@vite(['resources/sass/client.scss', 'resources/js/client.js'])
</head> </head>
<body> <body>
<h1> <h1>

@ -8,6 +8,8 @@ export default defineConfig({
input: [ input: [
'resources/sass/app.scss', 'resources/sass/app.scss',
'resources/js/app.js', 'resources/js/app.js',
'resources/sass/client.scss',
'resources/js/client.js',
], ],
refresh: true, refresh: true,
}), }),

Loading…
Cancel
Save