First integration to Hubl of the resource component

This commit is contained in:
Benoit Alessandroni 2020-06-16 12:01:29 +02:00
parent 70de29a517
commit 67ab0a68a3
4 changed files with 20 additions and 1 deletions

View File

@ -15,7 +15,11 @@ script(type="module" src="https://unpkg.com/@startinblox/component-notifications
if endpoints.events || (endpoints.get && endpoints.get.events) if endpoints.events || (endpoints.get && endpoints.get.events)
script(type="module" src="https://unpkg.com/@startinblox/component-event@0.1" defer) script(type="module" src="https://unpkg.com/@startinblox/component-event@0.1" defer)
//- script(type="module" src="/lib/sib-event/sib-event.js" defer) //- script(type="module" src="/lib/sib-event-component/sib-event.js" defer)
if endpoints.resources || (endpoints.get && endpoints.get.resources)
script(type="module" src="https://unpkg.com/@startinblox/component-resource" defer)
//- script(type="module" src="/lib/sib-resource/sib-resource.js" defer)
if endpoints.joboffers || (endpoints.get && endpoints.get.joboffers) if endpoints.joboffers || (endpoints.get && endpoints.get.joboffers)
script(type="module" src="https://unpkg.com/@startinblox/component-job-board@0.3" defer) script(type="module" src="https://unpkg.com/@startinblox/component-job-board@0.3" defer)

View File

@ -53,6 +53,10 @@ html(lang="en")
#events(hidden) #events(hidden)
include page-events.pug include page-events.pug
if endpoints.resources || (endpoints.get && endpoints.get.resources)
#resources(hidden)
include page-resources.pug
#admin(hidden).with-sidebar #admin(hidden).with-sidebar
include page-admin.pug include page-admin.pug

View File

@ -69,6 +69,11 @@ sib-router#navbar-router(default-route='dashboard')
div.menu-label Evènements div.menu-label Evènements
div.menu-icon.icon-calendar div.menu-icon.icon-calendar
div.divider div.divider
if endpoints.resources || (endpoints.get && endpoints.get.resources)
sib-route.menu(name='resources')
div.menu-label Ressources
div.menu-icon.icon-text-box-multiple-outline
div.divider
if endpoints.projects || (endpoints.get && endpoints.get.projects) if endpoints.projects || (endpoints.get && endpoints.get.projects)
div div
sib-link(next='admin-project-list') sib-link(next='admin-project-list')

6
src/page-resources.pug Normal file
View File

@ -0,0 +1,6 @@
.views-container
sib-resource(data-src=`${endpoints.resources || (endpoints.get && endpoints.get.resources)}`
range-resource-type=`${endpoints.resourcestypes || (endpoints.get && endpoints.get.resourcestypes)}`
range-resource-keyword=`${endpoints.resourceskeywords || (endpoints.get && endpoints.get.resourceskeywords)}`
upload-dir=`${endpoints.uploads || (endpoints.get && endpoints.get.uploads)}`
)