patch: add new version of event (minor 4.1)

This commit is contained in:
Marjolaine Le Bon 2021-05-27 18:38:42 +02:00 committed by Jean-Baptiste Pasquier
parent bf8905d4a4
commit 5f38b938b0
3 changed files with 8 additions and 2 deletions

View File

@ -29,7 +29,7 @@ if componentSet.has("dashboard")
//- script(type="module" src="/lib/solid-dashboard/dist/index.js" defer)
if componentSet.has("events")
script(type="module", src="https://cdn.skypack.dev/@startinblox/component-event@4.0", defer)
script(type="module", src="https://cdn.skypack.dev/@startinblox/component-event@4.1", defer)
//- script(type="module", src="/lib/solid-event/solid-event.js", defer)
if componentSet.has("events") || componentSet.has("polls") || componentSet.has("resources")

View File

@ -1,5 +1,10 @@
div.whitespace-normal
solid-event(data-src=`${component.endpoints.events}`
solid-event(
data-src=`${component.endpoints.events}`
past-events=`${component.parameters.pastevents}`
visiblecheckbox=`${component.parameters.visiblecheckbox}`
visibilityregions=`${component.parameters.visibilityregions}`
range-event-region=`${component.endpoints.regionevents}`
range-event-type=`${component.endpoints.typeevents}`
range-event-circle=`${getComponent('circles').endpoints.get}/`
upload-dir=`${component.endpoints.uploads}`

View File

@ -1,6 +1,7 @@
solid-event(
bind-resources
nested-field="events"
past-events=`${extension.parameters.pastevents}`
range-event-type=`${extension.endpoints.typeevents}`
range-event-circle=`${getComponent('circles').endpoints.get}/`
upload-dir=`${extension.endpoints.uploads}`