update: Make resource component compatible with core@0.15
This commit is contained in:
parent
4af3dcdd07
commit
55d3267556
@ -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)
|
||||
|
@ -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"
|
||||
|
@ -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}`
|
||||
|
Loading…
Reference in New Issue
Block a user