Compare commits

..

No commits in common. "425dbf6b3fac9278c9fe1190e32d1c1fc8fc2d6f" and "ec704d8d83aba9d003619713b79f86a966d6e145" have entirely different histories.

2 changed files with 6 additions and 6 deletions

View file

@ -236,7 +236,7 @@ class Plugin extends Model
// This handles: {% for item in collection | filter: "key", "value" %} // This handles: {% for item in collection | filter: "key", "value" %}
// Converts to: {% assign temp_filtered = collection | filter: "key", "value" %}{% for item in temp_filtered %} // Converts to: {% assign temp_filtered = collection | filter: "key", "value" %}{% for item in temp_filtered %}
$template = preg_replace_callback( $template = preg_replace_callback(
'/{%\s*for\s+(\w+)\s+in\s+([^|%}]+)\s*\|\s*([^%}]+)%}/', '/{%\s*for\s+(\w+)\s+in\s+([^|]+)\s*\|\s*([^}]+)%}/',
function ($matches) { function ($matches) {
$variableName = mb_trim($matches[1]); $variableName = mb_trim($matches[1]);
$collection = mb_trim($matches[2]); $collection = mb_trim($matches[2]);

View file

@ -104,11 +104,11 @@ new class extends Component {
'markup_code' => 'nullable|string', 'markup_code' => 'nullable|string',
'markup_language' => 'nullable|string|in:blade,liquid', 'markup_language' => 'nullable|string|in:blade,liquid',
'checked_devices' => 'array', 'checked_devices' => 'array',
'device_playlist_names' => 'array', 'playlist_name' => 'required_if:selected_playlist,new|string|max:255',
'device_playlists' => 'array', 'selected_weekdays' => 'nullable|array',
'device_weekdays' => 'array', 'active_from' => 'nullable|date_format:H:i',
'device_active_from' => 'array', 'active_until' => 'nullable|date_format:H:i',
'device_active_until' => 'array', 'selected_playlist' => 'nullable|string',
]; ];
public function editSettings() public function editSettings()