mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Custom Maps: geo map and color background tabs blade component geo-map blade component and related script enhancements * Update css/js * style fixes * update db_schema.yaml * fix db_schema hand edit * ignore phpstan being wrong * Handle null * another possible null spot * Use standard file cache for custom map background images * Create map->image as jpeg so we can compress it * whitespace fix * Fix background cancel button when other type is selected than the saved type * Save and restore layer * Map must exist before creating static image * Don't show set as image button for Google and Bing. Bing gives an odd error, but Google won't work.
17 lines
369 B
PHP
17 lines
369 B
PHP
@props(['name', 'value' => null])
|
|
|
|
<div x-data="{
|
|
id: '',
|
|
name: {{ Js::from($name) }},
|
|
value: {{ Js::from($value ?: $name) }}
|
|
}"
|
|
x-show="value === activeTab"
|
|
role="tabpanel"
|
|
:aria-labelledby="`tab-${id}`"
|
|
:id="`tab-panel-${id}`"
|
|
x-init="id = registerTab(name, value)"
|
|
{{ $attributes }}
|
|
>
|
|
{{ $slot }}
|
|
</div>
|