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