Merge branch 'clean-prod' into 'staging'
Remove all content for Alpha See merge request startinblox/applications/sib-app!59
This commit is contained in:
commit
8484786575
@ -3,7 +3,6 @@
|
|||||||
"cdn": "https://cdn.happy-dev.fr",
|
"cdn": "https://cdn.happy-dev.fr",
|
||||||
"xmpp": "https://jabber.happy-dev.fr/http-bind/",
|
"xmpp": "https://jabber.happy-dev.fr/http-bind/",
|
||||||
"authority": "http://127.0.0.1:8000/openid/",
|
"authority": "http://127.0.0.1:8000/openid/",
|
||||||
"client_id": "000000",
|
|
||||||
"endpoints": {
|
"endpoints": {
|
||||||
"businessproviders": "http://127.0.0.1:8000/businessproviders/",
|
"businessproviders": "http://127.0.0.1:8000/businessproviders/",
|
||||||
"circles": "http://127.0.0.1:8000/circles/",
|
"circles": "http://127.0.0.1:8000/circles/",
|
||||||
@ -19,7 +18,6 @@
|
|||||||
"cdn": "https://cdn.happy-dev.fr",
|
"cdn": "https://cdn.happy-dev.fr",
|
||||||
"xmpp": "https://jabber.happy-dev.fr/http-bind/",
|
"xmpp": "https://jabber.happy-dev.fr/http-bind/",
|
||||||
"authority": "https://api.alpha.happy-dev.fr/openid/",
|
"authority": "https://api.alpha.happy-dev.fr/openid/",
|
||||||
"client_id": "218707",
|
|
||||||
"endpoints": {
|
"endpoints": {
|
||||||
"businessproviders": "https://api.alpha.happy-dev.fr/businessproviders/",
|
"businessproviders": "https://api.alpha.happy-dev.fr/businessproviders/",
|
||||||
"circles": "https://api.alpha.happy-dev.fr/circles/",
|
"circles": "https://api.alpha.happy-dev.fr/circles/",
|
||||||
@ -36,13 +34,12 @@
|
|||||||
"cdn": "https://cdn.happy-dev.fr",
|
"cdn": "https://cdn.happy-dev.fr",
|
||||||
"xmpp": "https://jabber.happy-dev.fr/http-bind/",
|
"xmpp": "https://jabber.happy-dev.fr/http-bind/",
|
||||||
"authority": "https://api.test-paris.happy-dev.fr/openid/",
|
"authority": "https://api.test-paris.happy-dev.fr/openid/",
|
||||||
"client_id": "196656",
|
|
||||||
"endpoints": {
|
"endpoints": {
|
||||||
"businessproviders": "https://api.test-paris.happy-dev.fr/businessproviders/",
|
"businessproviders": "https://api.test-paris.happy-dev.fr/businessproviders/",
|
||||||
"circles": "https://api.test-paris.happy-dev.fr/sources/circles/",
|
"circles": "https://api.test-paris.happy-dev.fr/circles/",
|
||||||
"groups": "https://api.test-paris.happy-dev.fr/groups/",
|
"groups": "https://api.test-paris.happy-dev.fr/groups/",
|
||||||
"joboffers": "https://api.test-paris.happy-dev.fr/sources/job-offers/",
|
"joboffers": "https://api.test-paris.happy-dev.fr/job-offers/",
|
||||||
"projects": "https://api.test-paris.happy-dev.fr/sources/projects/",
|
"projects": "https://api.test-paris.happy-dev.fr/projects/",
|
||||||
"skills": "https://api.test-paris.happy-dev.fr/skills/",
|
"skills": "https://api.test-paris.happy-dev.fr/skills/",
|
||||||
"users": "https://api.test-paris.happy-dev.fr/users/"
|
"users": "https://api.test-paris.happy-dev.fr/users/"
|
||||||
}
|
}
|
||||||
@ -52,13 +49,12 @@
|
|||||||
"cdn": "https://cdn.happy-dev.fr",
|
"cdn": "https://cdn.happy-dev.fr",
|
||||||
"xmpp": "https://jabber.happy-dev.fr/http-bind/",
|
"xmpp": "https://jabber.happy-dev.fr/http-bind/",
|
||||||
"authority": "https://api.test-nantes.happy-dev.fr/openid/",
|
"authority": "https://api.test-nantes.happy-dev.fr/openid/",
|
||||||
"client_id": "621272",
|
|
||||||
"endpoints": {
|
"endpoints": {
|
||||||
"businessproviders": "https://api.test-nantes.happy-dev.fr/businessproviders/",
|
"businessproviders": "https://api.test-nantes.happy-dev.fr/businessproviders/",
|
||||||
"circles": "https://api.test-nantes.happy-dev.fr/sources/circles/",
|
"circles": "https://api.test-nantes.happy-dev.fr/circles/",
|
||||||
"groups": "https://api.test-nantes.happy-dev.fr/groups/",
|
"groups": "https://api.test-nantes.happy-dev.fr/groups/",
|
||||||
"joboffers": "https://api.test-nantes.happy-dev.fr/sources/job-offers/",
|
"joboffers": "https://api.test-nantes.happy-dev.fr/job-offers/",
|
||||||
"projects": "https://api.test-nantes.happy-dev.fr/sources/projects/",
|
"projects": "https://api.test-nantes.happy-dev.fr/projects/",
|
||||||
"skills": "https://api.test-nantes.happy-dev.fr/skills/",
|
"skills": "https://api.test-nantes.happy-dev.fr/skills/",
|
||||||
"users": "https://api.test-nantes.happy-dev.fr/users/"
|
"users": "https://api.test-nantes.happy-dev.fr/users/"
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,6 @@ script(type="module" src="https://unpkg.com/@startinblox/core@0.8")
|
|||||||
script(type="module" src="https://unpkg.com/@startinblox/router@0.7")
|
script(type="module" src="https://unpkg.com/@startinblox/router@0.7")
|
||||||
script(type="module" src="https://unpkg.com/@startinblox/component-chat@0.2")
|
script(type="module" src="https://unpkg.com/@startinblox/component-chat@0.2")
|
||||||
script(type="module" src="https://unpkg.com/@startinblox/component-notifications@0.2")
|
script(type="module" src="https://unpkg.com/@startinblox/component-notifications@0.2")
|
||||||
script(type="module" src="https://unpkg.com/@startinblox/component-conversation@0.3")
|
//- script(type="module" src="https://unpkg.com/@startinblox/component-conversation@0.3")
|
||||||
script(type="module" src="https://unpkg.com/@startinblox/component-directory@beta")
|
//- script(type="module" src="https://unpkg.com/@startinblox/component-directory@beta")
|
||||||
script(type="module" src="https://unpkg.com/@startinblox/component-job-board@beta")
|
//- script(type="module" src="https://unpkg.com/@startinblox/component-job-board@beta")
|
||||||
|
@ -28,13 +28,7 @@ button(role='log in' onclick="document.querySelector('sib-auth').login();") Logi
|
|||||||
|
|
||||||
sib-auth
|
sib-auth
|
||||||
sib-auth-provider(
|
sib-auth-provider(
|
||||||
class="sib-auth-provider"
|
|
||||||
data-authority=`${authority}`
|
data-authority=`${authority}`
|
||||||
data-client_id=`${client_id}`,
|
data-id=`${authorityName || "paris"}`
|
||||||
data-id="paris"
|
|
||||||
data-response_type='id_token token',
|
|
||||||
data-scope='openid profile email',
|
|
||||||
data-automaticSilentRenew='true',
|
|
||||||
data-loadUserInfo='true'
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -15,22 +15,22 @@ html(lang="en")
|
|||||||
include menu-left.pug
|
include menu-left.pug
|
||||||
div#viewport
|
div#viewport
|
||||||
|
|
||||||
#members(hidden).no-sidebar
|
//- #members(hidden).no-sidebar
|
||||||
include page-members-directory.pug
|
//- include page-members-directory.pug
|
||||||
|
|
||||||
#job-offers(hidden).no-sidebar
|
//- #job-offers(hidden).no-sidebar
|
||||||
include page-job-offers.pug
|
//- include page-job-offers.pug
|
||||||
|
|
||||||
#job-offer-create(hidden).no-sidebar
|
//- #job-offer-create(hidden).no-sidebar
|
||||||
sib-link(class="backlink", next="job-offers") Back
|
//- sib-link(class="backlink", next="job-offers") Back
|
||||||
include page-job-offer-create.pug
|
//- include page-job-offer-create.pug
|
||||||
|
|
||||||
#job-offer-edit(hidden).no-sidebar
|
//- #job-offer-edit(hidden).no-sidebar
|
||||||
sib-link(class="backlink", next="job-offers") Back
|
//- sib-link(class="backlink", next="job-offers") Back
|
||||||
include page-job-offer-edit.pug
|
//- include page-job-offer-edit.pug
|
||||||
|
|
||||||
#project(hidden).with-sidebar
|
//- #project(hidden).with-sidebar
|
||||||
include page-project.pug
|
//- include page-project.pug
|
||||||
|
|
||||||
#circle(hidden).with-sidebar
|
#circle(hidden).with-sidebar
|
||||||
include page-circle.pug
|
include page-circle.pug
|
||||||
@ -38,5 +38,5 @@ html(lang="en")
|
|||||||
#messages(hidden).with-sidebar
|
#messages(hidden).with-sidebar
|
||||||
include page-messages.pug
|
include page-messages.pug
|
||||||
|
|
||||||
#my-profile(hidden).no-sidebar
|
//- #my-profile(hidden).no-sidebar
|
||||||
include page-user-profile.pug
|
//- include page-user-profile.pug
|
||||||
|
@ -3,47 +3,49 @@ sib-widget(name='hd-counter')
|
|||||||
sib-badge(data-src="${src}")
|
sib-badge(data-src="${src}")
|
||||||
nav#main__menu
|
nav#main__menu
|
||||||
sib-router#navbar-router(default-route='members')
|
sib-router#navbar-router(default-route='members')
|
||||||
sib-route.menu(name='members')
|
//- sib-route.menu(name='members')
|
||||||
div.menu-label Members
|
//- div.menu-label Members
|
||||||
div.menu-icon.icon-people
|
//- div.menu-icon.icon-people
|
||||||
div.divider
|
//- div.divider
|
||||||
sib-route.menu(name='job-offers', rdf-type='hd:joboffer')
|
//- sib-route.menu(name='job-offers', rdf-type='hd:joboffer')
|
||||||
div.menu-label Job offers
|
//- div.menu-label Job offers
|
||||||
div.menu-icon.icon-briefcase
|
//- div.menu-icon.icon-briefcase
|
||||||
sib-route(hidden, name='job-offer-create')
|
//- sib-route(hidden, name='job-offer-create')
|
||||||
sib-route(hidden, name='job-offer-edit', use-id)
|
//- sib-route(hidden, name='job-offer-edit', use-id)
|
||||||
div.divider
|
|
||||||
div.menu-wrapper
|
|
||||||
div.menu
|
|
||||||
div.menu-chevron
|
|
||||||
div.menu-icon.icon-arrow-up
|
|
||||||
div.menu-label Projects
|
|
||||||
div.menu-icon.icon-folder-alt
|
|
||||||
sib-route(hidden,name='project', id-prefix=`${endpoints.projects}`, rdf-type='hd:project', use-id='')
|
|
||||||
div.sub-menu.menu-notification
|
|
||||||
sib-display(
|
|
||||||
data-src=`${endpoints.projects}`
|
|
||||||
fields='project(customer.name, dash, name), badge'
|
|
||||||
value-dash=' - '
|
|
||||||
widget-badge='hd-counter'
|
|
||||||
action-badge='badge'
|
|
||||||
next='project'
|
|
||||||
)
|
|
||||||
//- div.divider
|
//- div.divider
|
||||||
//- div.menu-wrapper
|
//- div.menu-wrapper
|
||||||
//- div.menu
|
//- div.menu
|
||||||
//- div.menu-chevron
|
//- div.menu-chevron
|
||||||
//- div.menu-icon.icon-arrow-up
|
//- div.menu-icon.icon-arrow-up
|
||||||
//- div.menu-label Cercles
|
//- div.menu-label Projects
|
||||||
//- div.menu-icon.icon-globe
|
//- div.menu-icon.icon-folder-alt
|
||||||
//- sib-route(hidden, name='circle', id-prefix=`${endpoints.circles}`, rdf-type='hd:circle')
|
//- sib-route(hidden,name='project', id-prefix=`${endpoints.projects}`, rdf-type='hd:project', use-id='')
|
||||||
//- div.sub-menu
|
//- div.sub-menu.menu-notification
|
||||||
//- sib-display(
|
//- sib-display(
|
||||||
//- data-src=`${endpoints.circles}`,
|
//- data-src=`${endpoints.projects}`
|
||||||
//- fields='name',
|
//- fields='project(customer.name, dash, name), badge'
|
||||||
//- widget-name='sib-display-div',
|
//- value-dash=' - '
|
||||||
//- next='circle'
|
//- widget-badge='hd-counter'
|
||||||
|
//- action-badge='badge'
|
||||||
|
//- next='project'
|
||||||
//- )
|
//- )
|
||||||
|
//- div.divider
|
||||||
|
div.menu-wrapper
|
||||||
|
div.menu
|
||||||
|
div.menu-chevron
|
||||||
|
div.menu-icon.icon-arrow-up
|
||||||
|
div.menu-label Circles
|
||||||
|
div.menu-icon.icon-folder-alt
|
||||||
|
sib-route(hidden,name='circle', id-prefix=`${endpoints.circles}`, rdf-type='hd:circle', use-id='')
|
||||||
|
div.sub-menu.menu-notification
|
||||||
|
sib-display(
|
||||||
|
data-src=`${endpoints.circles}`
|
||||||
|
fields='name, badge'
|
||||||
|
widget-name='sib-display-div',
|
||||||
|
widget-badge='hd-counter'
|
||||||
|
action-badge='badge'
|
||||||
|
next='circle'
|
||||||
|
)
|
||||||
div.divider
|
div.divider
|
||||||
div.menu-wrapper
|
div.menu-wrapper
|
||||||
div.menu
|
div.menu
|
||||||
@ -62,6 +64,6 @@ nav#main__menu
|
|||||||
next='messages'
|
next='messages'
|
||||||
)
|
)
|
||||||
|
|
||||||
div.divider
|
//- div.divider
|
||||||
sib-route.menu(hidden, name='my-profile', rdf-type='foaf:user', use-id='')
|
//- sib-route.menu(hidden, name='my-profile', rdf-type='foaf:user', use-id='')
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
sib-chat(
|
sib-chat(
|
||||||
data-authentication='login',
|
data-authentication='login',
|
||||||
data-auto-login='true',
|
data-auto-login='true',
|
||||||
data-bosh-service-url=xmpp,
|
data-bosh-service-url=`${xmpp}`,
|
||||||
data-debug='false',
|
data-debug='false',
|
||||||
data-locales-url='en',
|
data-locales-url='en',
|
||||||
bind-resources
|
bind-resources
|
||||||
|
@ -1,26 +1,26 @@
|
|||||||
.views-container
|
.views-container
|
||||||
#circle-chat
|
#circle-chat
|
||||||
include page-circle-chat.pug
|
include page-circle-chat.pug
|
||||||
#circle-profile
|
//- #circle-profile
|
||||||
include page-circle-profile.pug
|
//- include page-circle-profile.pug
|
||||||
#circle-edit
|
//- #circle-edit
|
||||||
include page-circle-edit.pug
|
//- include page-circle-edit.pug
|
||||||
#circle-create
|
//- #circle-create
|
||||||
include page-circle-create.pug
|
//- include page-circle-create.pug
|
||||||
nav.jsRightMenu(role='navigation')
|
//- nav.jsRightMenu(role='navigation')
|
||||||
sib-router(default-route='circle-chat')
|
//- sib-router(default-route='circle-chat')
|
||||||
ul
|
//- ul
|
||||||
li.jsOffsiteToggle
|
//- li.jsOffsiteToggle
|
||||||
a Fold menu
|
//- a Fold menu
|
||||||
sib-route(name='circle-chat')
|
//- sib-route(name='circle-chat')
|
||||||
li
|
|
||||||
a Chat
|
|
||||||
sib-route(name='circle-profile')
|
|
||||||
li
|
|
||||||
a Information
|
|
||||||
sib-route(name='circle-edit')
|
|
||||||
//- li
|
//- li
|
||||||
//- a Edit
|
//- a Chat
|
||||||
sib-route(name='circle-create')
|
//- sib-route(name='circle-profile')
|
||||||
//- li
|
//- li
|
||||||
//- a Add new
|
//- a Information
|
||||||
|
//- sib-route(name='circle-edit')
|
||||||
|
//- //- li
|
||||||
|
//- //- a Edit
|
||||||
|
//- sib-route(name='circle-create')
|
||||||
|
//- //- li
|
||||||
|
//- //- a Add new
|
@ -2,7 +2,7 @@
|
|||||||
sib-chat(
|
sib-chat(
|
||||||
data-authentication='login',
|
data-authentication='login',
|
||||||
data-auto-login='true',
|
data-auto-login='true',
|
||||||
data-bosh-service-url=xmpp,
|
data-bosh-service-url=`${xmpp}`,
|
||||||
data-debug='false',
|
data-debug='false',
|
||||||
data-locales-url='en',
|
data-locales-url='en',
|
||||||
bind-resources
|
bind-resources
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
sib-chat(
|
sib-chat(
|
||||||
data-authentication='login',
|
data-authentication='login',
|
||||||
data-auto-login='true',
|
data-auto-login='true',
|
||||||
data-bosh-service-url=xmpp,
|
data-bosh-service-url=`${xmpp}`,
|
||||||
data-debug='false',
|
data-debug='false',
|
||||||
data-locales-url='en',
|
data-locales-url='en',
|
||||||
bind-resources
|
bind-resources
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
nav(role="user's functionalities menu")
|
nav(role="user's functionalities menu")
|
||||||
ul
|
ul
|
||||||
li
|
//- li
|
||||||
sib-link(next='my-profile') My profile
|
//- sib-link(next='my-profile') My profile
|
||||||
//-li
|
//-li
|
||||||
sib-link(next='user-settings') Settings
|
sib-link(next='user-settings') Settings
|
||||||
//-li
|
//-li
|
||||||
sib-link(name='user-admin') Admin
|
sib-link(name='user-admin') Admin
|
||||||
//-button(role='log out' onclick="document.querySelector('sib-auth').logout();") Log out
|
button(role='log out' onclick="document.querySelector('sib-auth').logout();") Log out
|
||||||
|
@ -35,15 +35,16 @@ document.addEventListener('DOMContentLoaded', function (event) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
//- Header login hide/show
|
document.querySelector('sib-auth').getUser().then(user => {
|
||||||
// if(document.querySelector('sib-auth').getUser() !== null) {
|
if(user !== null) {
|
||||||
// document.querySelector('button[role="log in"]').style.display = 'none';
|
document.querySelector('button[role="log in"]').style.display = 'none';
|
||||||
// //- Token expired, hack for ask relogin
|
//- Token expired, hack for ask relogin
|
||||||
// if(new Date(document.querySelector('sib-auth').getUser().expires_at*1000) <= new Date()) {
|
if(new Date(document.querySelector('sib-auth').getUser().expires_at*1000) <= new Date()) {
|
||||||
// document.querySelector('button[role="log in"]').style.display = '';
|
document.querySelector('button[role="log in"]').style.display = '';
|
||||||
// document.querySelector('button[role="log in"]').style.color = 'red';
|
document.querySelector('button[role="log in"]').style.color = 'red';
|
||||||
// document.querySelector('button[role="log in"]').innerHTML = 'Re-login';
|
document.querySelector('button[role="log in"]').innerHTML = 'Re-login';
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
}).catch(error => console.log(error));
|
||||||
|
|
||||||
});
|
});
|
@ -103,7 +103,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
details#user-controls {
|
#user-controls {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
-webkit-touch-callout: none;
|
-webkit-touch-callout: none;
|
||||||
-webkit-user-select: none;
|
-webkit-user-select: none;
|
||||||
|
Loading…
Reference in New Issue
Block a user