update: new endpoint added

This commit is contained in:
gaelle morin 2020-04-15 15:21:02 +02:00
parent 55c8b2019c
commit 546ce765f5
No known key found for this signature in database
GPG Key ID: 028426702B95CF9C
6 changed files with 19 additions and 60 deletions

View File

@ -9,18 +9,26 @@
"publicDirectory": false, "publicDirectory": false,
"endpoints": { "endpoints": {
"get": { "get": {
"dashboards": "http://localhost:8000/dashboards/",
"groups": "http://localhost:8000/groups/",
"circles": "http://localhost:8000/circles/", "circles": "http://localhost:8000/circles/",
"projects": "http://localhost:8000/projects/", "projects": "http://localhost:8000/projects/",
"customers": "http://localhost:8000/customers/", "customers": "http://localhost:8000/customers/",
"businessproviders": "http://localhost:8000/sources/businessproviders/",
"skills": "http://localhost:8000/sources/skills/",
"events": "http://localhost:8000/events/", "events": "http://localhost:8000/events/",
"typeevents": "http://localhost:8000/typeevents/", "typeevents": "http://localhost:8000/typeevents/",
"users": "http://localhost:8000/users/", "users": "http://localhost:8000/users/",
"uploads": "http://localhost:8000/upload/" "uploads": "http://localhost:8000/upload/"
}, },
"post": { "post": {
"dashboards": "http://localhost:8000/dashboards/",
"groups": "http://localhost:8000/groups/",
"circles": "http://localhost:8000/circles/", "circles": "http://localhost:8000/circles/",
"projects": "http://localhost:8000/projects/", "projects": "http://localhost:8000/projects/",
"customers": "http://localhost:8000/customers/", "customers": "http://localhost:8000/customers/",
"businessproviders": "http://localhost:8000/sources/businessproviders/",
"skills": "http://localhost:8000/sources/skills/",
"events": "http://localhost:8000/events/", "events": "http://localhost:8000/events/",
"typeevents": "http://localhost:8000/typeevents/", "typeevents": "http://localhost:8000/typeevents/",
"users": "http://localhost:8000/users/", "users": "http://localhost:8000/users/",

View File

@ -8,9 +8,13 @@
"authorityName": "djangoldp-server-name", "authorityName": "djangoldp-server-name",
"publicDirectory": false, "publicDirectory": false,
"endpoints": { "endpoints": {
"dashboards": "http://localhost:8000/dashboards/",
"groups": "http://localhost:8000/groups/",
"circles": "http://localhost:8000/circles/", "circles": "http://localhost:8000/circles/",
"projects": "http://localhost:8000/projects/", "projects": "http://localhost:8000/projects/",
"customers": "http://localhost:8000/customers/", "customers": "http://localhost:8000/customers/",
"businessproviders": "http://localhost:8000/sources/businessproviders/",
"skills": "http://localhost:8000/sources/skills/",
"events": "http://localhost:8000/events/", "events": "http://localhost:8000/events/",
"typeevents": "http://localhost:8000/typeevents/", "typeevents": "http://localhost:8000/typeevents/",
"users": "http://localhost:8000/users/", "users": "http://localhost:8000/users/",

View File

@ -1,54 +1,6 @@
script(src="/scripts/index.js") script(src="/scripts/index.js")
//- Scripts - use add `"libLocal" = true` on config.json to use your local `lib` folder //- Scripts - use add `"libLocal" = true` on config.json to use your local `lib` folder
//-if libLocal
script(type="module" src="/lib/sib-oidc/index.js")
script(type="module" src="/lib/sib-router/src/index.js")
script(type="module" src="/lib/sib-notifications/index.js")
if endpoints.users || (endpoints.get && endpoints.get.users)
script(type="module" src="/lib/sib-chat/sib-chat.js")
if endpoints.events || (endpoints.get && endpoints.get.events)
script(type="module" src="/lib/sib-event/sib-event.js")
if endpoints.joboffers || (endpoints.get && endpoints.get.joboffers)
script(type="module" src="/lib/sib-job-board/sib-job-board.js")
script(type="module" src="/lib/sib-conversation/sib-conversation.js")
if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users))
script(type="module" src="/lib/sib-directory/sib-directory.js")
<<<<<<< HEAD
if endpoints.dashboards || (endpoints.get && endpoints.get.dashboards)
=======
if endpoints.dashboard || (endpoints.get && endpoints.get.dashboard)
>>>>>>> 7e58f36... update: test in dependencies
script(type="module" src="/lib/sib-dashboard/sib-dashboard.js")
//-else
script(type="module" src="https://unpkg.com/@startinblox/oidc@0.8")
script(type="module" src="https://unpkg.com/@startinblox/core@0.9")
script(type="module" src="https://unpkg.com/@startinblox/router@0.7")
script(type="module" src="https://unpkg.com/@startinblox/component-notifications@0.3")
if endpoints.users || (endpoints.get && endpoints.get.users)
script(type="module" src="https://unpkg.com/@startinblox/component-chat@0.5")
if endpoints.events || (endpoints.get && endpoints.get.events)
script(type="module" src="https://unpkg.com/@startinblox/component-event@0.1")
if endpoints.joboffers || (endpoints.get && endpoints.get.joboffers)
script(type="module" src="https://unpkg.com/@startinblox/component-job-board@0.3")
script(type="module" src="https://unpkg.com/@startinblox/component-conversation@0.3")
if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users))
script(type="module" src="https://unpkg.com/@startinblox/component-directory@0.3")
<<<<<<< HEAD
if endpoints.dashboards || (endpoints.get && endpoints.get.dashboards)
script(type="module" src="https://unpkg.com/@startinblox/component-dashboard@0.1")
=======
if endpoints.dashboard || (endpoints.get && endpoints.get.dashboard)
script(type="module" src="https://unpkg.com/@startinblox/component-dashboard@0.1")
//- script(src="/scripts/index.js")
//- Scripts - use add `"libLocal" = true` on config.json to use your local `lib` folder
if libLocal if libLocal
script(type="module" src="/lib/sib-oidc/index.js") script(type="module" src="/lib/sib-oidc/index.js")
script(type="module" src="/lib/sib-router/src/index.js") script(type="module" src="/lib/sib-router/src/index.js")
@ -62,6 +14,8 @@ if libLocal
script(type="module" src="/lib/sib-conversation/sib-conversation.js") script(type="module" src="/lib/sib-conversation/sib-conversation.js")
if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users)) if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users))
script(type="module" src="/lib/sib-directory/sib-directory.js") script(type="module" src="/lib/sib-directory/sib-directory.js")
if endpoints.dashboards || (endpoints.get && endpoints.get.dashboards)
script(type="module" src="/lib/sib-dashboard/sib-dashboard.js")
else else
script(type="module" src="https://unpkg.com/@startinblox/oidc@0.8") script(type="module" src="https://unpkg.com/@startinblox/oidc@0.8")
script(type="module" src="https://unpkg.com/@startinblox/core@0.9") script(type="module" src="https://unpkg.com/@startinblox/core@0.9")
@ -76,15 +30,8 @@ else
script(type="module" src="https://unpkg.com/@startinblox/component-conversation@0.3") script(type="module" src="https://unpkg.com/@startinblox/component-conversation@0.3")
if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users)) if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users))
script(type="module" src="https://unpkg.com/@startinblox/component-directory@0.3") script(type="module" src="https://unpkg.com/@startinblox/component-directory@0.3")
if endpoints.dashboards || (endpoints.get && endpoints.get.dashboards)
script(type="module" src="/lib/sib-dashboard/sib-dashboard.js") script(type="module" src="https://unpkg.com/@startinblox/component-dashboard@0.1")
>>>>>>> 7e58f36... update: test in dependencies
//- Stylesheets //- Stylesheets
link(rel='stylesheet', href='/styles/index.css') link(rel='stylesheet', href='/styles/index.css')

View File

@ -18,7 +18,7 @@ html(lang="en")
include menu-left.pug include menu-left.pug
div#viewport div#viewport
if endpoints.dashboard || (endpoints.get && endpoints.get.dashboard) if endpoints.dashboards || (endpoints.get && endpoints.get.dashboards)
#dashboard(hidden).no-sidebar #dashboard(hidden).no-sidebar
include page-dashboard.pug include page-dashboard.pug

View File

@ -31,7 +31,7 @@ sib-widget(name='menu-fix-url-project')
nav#main__menu.jsLeftMenu nav#main__menu.jsLeftMenu
sib-router#navbar-router(default-route='dashboard') sib-router#navbar-router(default-route='dashboard')
if endpoints.dashboard || (endpoints.get && endpoints.get.dashboard) if endpoints.dashboards || (endpoints.get && endpoints.get.dashboards)
sib-route.menu(name='dashboard') sib-route.menu(name='dashboard')
div.menu-label Dashboard div.menu-label Dashboard
div.menu-icon.icon-dashboard div.menu-icon.icon-dashboard

View File

@ -1,5 +1,5 @@
.views-container .views-container
h2 Dashboard h2 Dashboard
sib-dashboard( sib-dashboard(
data-src=`${endpoints.dashboard || endpoints.get.dashboard}` data-src=`${endpoints.dashboards || endpoints.get.dashboards}`
) )