update : migrate solid polls to V2
This commit is contained in:
parent
6ac303cd8a
commit
ecf8ad81d2
@ -478,7 +478,10 @@ On `config.json`:
|
|||||||
"type": "polls",
|
"type": "polls",
|
||||||
"endpoints": {
|
"endpoints": {
|
||||||
"get": "http://server.url/polls/",
|
"get": "http://server.url/polls/",
|
||||||
"post": "http://server.url/polls/"
|
"post": "http://server.url/polls/",
|
||||||
|
"pollRangeTags": "http://server.url/tags/",
|
||||||
|
"pollRangeCircles": "http://server.url/circles/",
|
||||||
|
"uploads": "http://server.url/upload/"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -23,8 +23,8 @@ if componentSet.has("events")
|
|||||||
//- script(type="module", src="/lib/solid-event/solid-event.js", defer)
|
//- script(type="module", src="/lib/solid-event/solid-event.js", defer)
|
||||||
|
|
||||||
//- Disabled - Not in core@0.16
|
//- Disabled - Not in core@0.16
|
||||||
//- if componentSet.has("events") || componentSet.has("polls") || componentSet.has("resources")
|
if componentSet.has("events") || componentSet.has("polls") || componentSet.has("resources")
|
||||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-conversation@0.9" defer)
|
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-conversation@0.10" defer)
|
||||||
|
|
||||||
if componentSet.has("jobBoard")
|
if componentSet.has("jobBoard")
|
||||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-job-board@5.0" defer)
|
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-job-board@5.0" defer)
|
||||||
@ -34,10 +34,9 @@ if componentSet.has("notification")
|
|||||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-notifications@0.12" defer)
|
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-notifications@0.12" defer)
|
||||||
//- script(type="module" src="/lib/sib-notifications/index.js" defer)
|
//- script(type="module" src="/lib/sib-notifications/index.js" defer)
|
||||||
|
|
||||||
//- Disabled - Not in core@0.16
|
if componentSet.has("polls")
|
||||||
//- if componentSet.has("polls")
|
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-poll@2.1" defer)
|
||||||
//- script(type="module" src="https://cdn.skypack.dev/@startinblox/component-poll@1.2" defer)
|
//script(type="module" src="/lib/solid-poll/index.js" defer)
|
||||||
//- //- script(type="module" src="/lib/sib-polls-component/index.js" defer)
|
|
||||||
|
|
||||||
if componentSet.has("profileDirectory")
|
if componentSet.has("profileDirectory")
|
||||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-directory@5.1" defer)
|
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-directory@5.1" defer)
|
||||||
|
@ -133,7 +133,7 @@ html(lang="en")
|
|||||||
include views/page-job-board.pug
|
include views/page-job-board.pug
|
||||||
|
|
||||||
if component.type == "polls"
|
if component.type == "polls"
|
||||||
.with-sidebar
|
.scrollbar-content
|
||||||
include views/page-polls.pug
|
include views/page-polls.pug
|
||||||
|
|
||||||
if component.type == "projects"
|
if component.type == "projects"
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
.views-container
|
solid-poll(
|
||||||
solid-poll(
|
data-src=component.endpoints.get
|
||||||
data-src=`${component.endpoints.get}`
|
data-dest=component.endpoints.post
|
||||||
range-base-polls=`${component.endpoints.pollRangeBase}`
|
range-tags=component.endpoints.pollRangeTags
|
||||||
upload-dir=`${component.endpoints.uploads}`
|
range-circles=component.endpoints.pollRangeCircles
|
||||||
id-prefix='default'
|
upload-dir=component.endpoints.uploads
|
||||||
uniq=component.uniq
|
uniq=component.uniq
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user