|
@@ -31,7 +31,7 @@ class MinifyCommand extends Command
|
|
|
/**
|
|
|
* @var array
|
|
|
*/
|
|
|
- protected $themes = [
|
|
|
+ protected $colors = [
|
|
|
self::DEFAULT => '',
|
|
|
'blue' => '#6d8be6',
|
|
|
'blue-light' => '#62a8ea',
|
|
@@ -60,7 +60,7 @@ class MinifyCommand extends Command
|
|
|
|
|
|
if ($name === static::ALL) {
|
|
|
// 编译所有内置主题色
|
|
|
- return $this->compileAllDefaultThemes();
|
|
|
+ return $this->compileAllColors();
|
|
|
}
|
|
|
|
|
|
$publish = $this->option('publish');
|
|
@@ -89,9 +89,9 @@ class MinifyCommand extends Command
|
|
|
/**
|
|
|
* 编译所有内置主题.
|
|
|
*/
|
|
|
- protected function compileAllDefaultThemes()
|
|
|
+ protected function compileAllColors()
|
|
|
{
|
|
|
- foreach ($this->themes as $name => $_) {
|
|
|
+ foreach ($this->colors as $name => $_) {
|
|
|
$this->call('admin:minify', ['name' => $name]);
|
|
|
}
|
|
|
}
|
|
@@ -230,8 +230,8 @@ class MinifyCommand extends Command
|
|
|
|
|
|
$color = $this->option('color');
|
|
|
|
|
|
- if (! $color && isset($this->themes[$name])) {
|
|
|
- return $this->themes[$name];
|
|
|
+ if (! $color && isset($this->colors[$name])) {
|
|
|
+ return $this->colors[$name];
|
|
|
}
|
|
|
|
|
|
if (! $color) {
|