fix: sib-profile

This commit is contained in:
Jean-Baptiste Pasquier 2020-05-26 12:29:08 +02:00
parent 28fd228d29
commit b8d7badae4
No known key found for this signature in database
GPG Key ID: F2702E6D22ED4D62
6 changed files with 18 additions and 19 deletions

View File

@ -78,7 +78,9 @@ On `config.json`:
"xmpp": "https://jabber.happy-dev.fr/http-bind/",
"authority": "http://localhost:8000/",
"endpoints": {
"users": "http://server.url/users/"
"skills": "http://server.url/skills/",
"users": "http://server.url/users/",
"uploads": "http://server.url/upload/"
}
}
```
@ -155,6 +157,8 @@ On `config.json`:
}
```
A [sample fixture](https://git.startinblox.com/djangoldp-packages/djangoldp-dashboard/blob/master/djangoldp_dashboard/fixtures/sample.json) can be loaded with `./manage.py loaddata path/to/djangoldp_dashboard/fixtures/sample.json`.
### Events
Events allow to create and manage instance-level evenement. To activate them, you need:

View File

@ -23,9 +23,9 @@ if endpoints.joboffers || (endpoints.get && endpoints.get.joboffers)
//- script(type="module" src="/lib/sib-job-board/sib-job-board.js" defer)
//- script(type="module" src="/lib/sib-conversation/sib-conversation.js" defer)
if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users))
script(type="module" src="/lib/sib-directory/index.js" defer)
//- script(type="module" src="https://unpkg.com/@startinblox/component-directory@0.3" defer)
if (endpoints.uploads || (endpoints.get && endpoints.get.uploads)) && (endpoints.skills || (endpoints.get && endpoints.get.skills)) && (endpoints.users || (endpoints.get && endpoints.get.users))
script(type="module" src="https://unpkg.com/@startinblox/component-directory@0.3" defer)
//- script(type="module" src="/lib/sib-directory/index.js" defer)
if endpoints.dashboards || (endpoints.get && endpoints.get.dashboards)
script(type="module" src="https://unpkg.com/@startinblox/component-dashboard@0.1" defer)

View File

@ -24,11 +24,9 @@ details#user-controls.notLoggedIn
#user-controls__panel
nav(role="user's functionalities menu")
ul
if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users))
if (endpoints.uploads || (endpoints.get && endpoints.get.uploads)) && (endpoints.skills || (endpoints.get && endpoints.get.skills)) && (endpoints.users || (endpoints.get && endpoints.get.users))
li
sib-link(next='profile') Mon profil
//-li
sib-link(next='user-settings') Settings
li
sib-link(next='admin') Administration
button(role='log out' onclick="document.querySelector('sib-auth').logout();") Se déconnecter

View File

@ -52,7 +52,7 @@ html(lang="en")
#admin(hidden).with-sidebar
include page-admin.pug
if (endpoints.skills || (endpoints.get && endpoints.get.skills)) && (endpoints.uploads || (endpoints.post && endpoints.post.uploads))
if (endpoints.skills || (endpoints.get && endpoints.get.skills)) && (endpoints.uploads || (endpoints.post && endpoints.post.uploads)) && (endpoints.users || (endpoints.post && endpoints.post.users))
#profile(hidden).no-sidebar
include page-profile.pug

View File

@ -84,7 +84,7 @@ nav#main__menu.jsLeftMenu
nested-field='projects'
fields='project'
empty-widget='hubl-create'
empty-value='project'
empty-value='projet'
widget-project='hubl-menu-fix-url-project'
order-by='project.customer.name'
next='project'
@ -105,7 +105,7 @@ nav#main__menu.jsLeftMenu
nested-field='circles'
fields='circle'
empty-widget='hubl-create'
empty-value='circle'
empty-value='cercle'
widget-circle='hubl-menu-fix-url-circle'
order-by='circle.name'
next='circle'
@ -138,6 +138,3 @@ nav#main__menu.jsLeftMenu
sib-route(name='admin', hidden)
sib-route.menu(name='profile', hidden)
//- div.divider
//- sib-route.menu(hidden, name='my-profile', rdf-type='foaf:user', use-id='')