mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-13 01:16:57 +08:00
Sort
This commit is contained in:
@@ -13,6 +13,11 @@ class AssetManager
|
||||
*/
|
||||
protected array $alpineComponents = [];
|
||||
|
||||
/**
|
||||
* @var array<string, array<string, mixed>>
|
||||
*/
|
||||
protected array $cssVariables = [];
|
||||
|
||||
/**
|
||||
* @var array<string, array<string, mixed>>
|
||||
*/
|
||||
@@ -28,11 +33,6 @@ class AssetManager
|
||||
*/
|
||||
protected array $styles = [];
|
||||
|
||||
/**
|
||||
* @var array<string, array<string, mixed>>
|
||||
*/
|
||||
protected array $cssVariables = [];
|
||||
|
||||
/**
|
||||
* @var array<string, Theme>
|
||||
*/
|
||||
@@ -56,17 +56,6 @@ class AssetManager
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<string, mixed> $data
|
||||
*/
|
||||
public function registerScriptData(array $data, ?string $package = null): void
|
||||
{
|
||||
$this->scriptData[$package] = [
|
||||
...($this->scriptData[$package] ?? []),
|
||||
...$data,
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<string, mixed> $variables
|
||||
*/
|
||||
@@ -78,6 +67,17 @@ class AssetManager
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<string, mixed> $data
|
||||
*/
|
||||
public function registerScriptData(array $data, ?string $package = null): void
|
||||
{
|
||||
$this->scriptData[$package] = [
|
||||
...($this->scriptData[$package] ?? []),
|
||||
...$data,
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<string> | null $packages
|
||||
* @return array<Asset>
|
||||
|
||||
Reference in New Issue
Block a user