update: Make resource component compatible with core@0.15

This commit is contained in:
Fabien Quatravaux 2021-03-01 12:49:26 +01:00
parent 4af3dcdd07
commit 55d3267556
3 changed files with 6 additions and 7 deletions

View File

@ -38,10 +38,9 @@ if componentSet.has("notification")
//- 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)
//- Disabled - Not in core@0.15
//- if componentSet.has("resources")
//- script(type="module" src="https://cdn.skypack.dev/@startinblox/component-resource@1.2" defer)
//- //- script(type="module" src="/lib/sib-resource/sib-resource.js" defer)
if componentSet.has("resources")
script(type="module", src="https://cdn.skypack.dev/@startinblox/component-resource@2.0", defer)
//- script(type="module" src="/lib/solid-resource/solid-resource.js" defer)
if componentSet.has("themeChecker")
script(src="https://cdn.jsdelivr.net/npm/@simonwep/pickr/dist/pickr.min.js" defer)

View File

@ -149,7 +149,7 @@ html(lang="en")
include views/page-project.pug
if component.type == "resources"
#resources(hidden, data-view="resources")
.scrollbar-content.bg-color-white
include views/page-resources.pug
if component.type == "profileDirectory"

View File

@ -1,4 +1,4 @@
.views-container
div.whitespace-normal
solid-resource(data-src=`${component.endpoints.resources}`
range-resource-type=`${component.endpoints.resourcestypes}`
range-resource-keyword=`${component.endpoints.resourceskeywords}`