Skip to content
Snippets Groups Projects
Verified Commit a71fbf1b authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier
Browse files

Merge branch 'staging' into gm-missing-edit-circle

parents b18fb237 61be5d78
No related branches found
No related tags found
1 merge request!71Resolve "Missing edit circle"
This diff is collapsed.
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
"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/",
"clientName": "SIB App",
"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/",
...@@ -11,13 +12,14 @@ ...@@ -11,13 +12,14 @@
"projects": "http://127.0.0.1:8000/projects/", "projects": "http://127.0.0.1:8000/projects/",
"skills": "http://127.0.0.1:8000/skills/", "skills": "http://127.0.0.1:8000/skills/",
"users": "http://127.0.0.1:8000/users/" "users": "http://127.0.0.1:8000/users/"
} }
}, },
"alpha": { "alpha": {
"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/",
"clientName": "SIB App",
"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/",
...@@ -26,7 +28,7 @@ ...@@ -26,7 +28,7 @@
"projects": "https://api.alpha.happy-dev.fr/projects/", "projects": "https://api.alpha.happy-dev.fr/projects/",
"skills": "https://api.alpha.happy-dev.fr/skills/", "skills": "https://api.alpha.happy-dev.fr/skills/",
"users": "https://api.alpha.happy-dev.fr/users/" "users": "https://api.alpha.happy-dev.fr/users/"
} }
}, },
"paris": { "paris": {
...@@ -34,6 +36,7 @@ ...@@ -34,6 +36,7 @@
"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/",
"clientName": "SIB App",
"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/circles/", "circles": "https://api.test-paris.happy-dev.fr/circles/",
...@@ -42,13 +45,14 @@ ...@@ -42,13 +45,14 @@
"projects": "https://api.test-paris.happy-dev.fr/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/"
} }
}, },
"nantes": { "nantes": {
"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/",
"clientName": "SIB App",
"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/circles/", "circles": "https://api.test-nantes.happy-dev.fr/circles/",
......
{
"inbox": "http://happy-dev.fr/owl/#inbox",
"object": "http://happy-dev.fr/owl/#object",
"author": "http://happy-dev.fr/owl/#author"
}
...@@ -18,7 +18,11 @@ link(rel='stylesheet', href='https://fonts.googleapis.com/css?family=Open+Sans:3 ...@@ -18,7 +18,11 @@ link(rel='stylesheet', href='https://fonts.googleapis.com/css?family=Open+Sans:3
script(type="module" src="https://unpkg.com/@startinblox/core@0.9") 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/router@0.7")
script(type="module" src="https://unpkg.com/@startinblox/component-chat@0.4") script(type="module" src="https://unpkg.com/@startinblox/component-chat@0.4")
//- script(type="module" src="https://unpkg.com/@startinblox/component-notifications@0.2") script(type="module" src="https://unpkg.com/@startinblox/component-notifications@0.3")
//- 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@0.3") //- script(type="module" src="https://unpkg.com/@startinblox/component-directory@0.3")
//- script(type="module" src="https://unpkg.com/@startinblox/component-job-board@0.3") //- script(type="module" src="https://unpkg.com/@startinblox/component-job-board@0.3")
//- Context - Fix for LDFlex
script(data-default-context, type="application/ld+json")
include context.jsonld
...@@ -17,7 +17,8 @@ include templates/hd-user-avatar.pug ...@@ -17,7 +17,8 @@ include templates/hd-user-avatar.pug
details#user-controls details#user-controls
summary(tabindex='0' role='button') summary(tabindex='0' role='button')
sib-display#user-controls__profile( sib-display#user-controls__profile(
fields='first_name, account.picture' fields='firstName, account.picture'
extra-context='{firstName:"first_name"}'
widget-account.picture='hd-user-avatar' widget-account.picture='hd-user-avatar'
bind-user bind-user
) )
...@@ -30,5 +31,6 @@ sib-auth ...@@ -30,5 +31,6 @@ sib-auth
sib-auth-provider( sib-auth-provider(
data-authority=`${authority}` data-authority=`${authority}`
data-id=`${authorityName || "paris"}` data-id=`${authorityName || "paris"}`
data-client-name=`${clientName || "SIB App"}`
) )
...@@ -32,6 +32,10 @@ nav#main__menu ...@@ -32,6 +32,10 @@ nav#main__menu
//- empty-widget='hd-create' //- empty-widget='hd-create'
//- empty-value='project' //- empty-value='project'
//- value-dash=' - ' //- value-dash=' - '
//- search-fields='team'
//- search-widget-team='sib-form-hidden'
//- search-value-team='-'
//- set-user-id='search-value-team'
//- widget-badge='hd-counter' //- widget-badge='hd-counter'
//- action-badge='badge' //- action-badge='badge'
//- ) //- )
...@@ -54,7 +58,7 @@ nav#main__menu ...@@ -54,7 +58,7 @@ nav#main__menu
action-badge='badge' action-badge='badge'
search-fields='team' search-fields='team'
search-widget-team='sib-form-hidden' search-widget-team='sib-form-hidden'
search-value-team='' search-value-team='-'
set-user-id='search-value-team' set-user-id='search-value-team'
order-by='name' order-by='name'
next='circle' next='circle'
......
...@@ -3,9 +3,10 @@ ...@@ -3,9 +3,10 @@
include templates/template-business-provider.pug include templates/template-business-provider.pug
include templates/template-customer.pug include templates/template-customer.pug
include templates/template-team.pug include templates/template-team.pug
include templates/template-captain.pug
sib-display( sib-display(
fields='block-title(const-title1, number, customer.name, const-title2, name, entitled, creationDate), infos(block-description(label-description, description), block-logo(customer.logo)), block-lead, block-fee(label-fee, businessProvider), block-customer(label-customer, customer), block-team(label-team, members)', fields='block-title(const-title1, number, customer.name, const-title2, name, entitled, creationDate), infos(block-description(label-description, description), block-logo(customer.logo)), block-lead, block-fee(label-fee, businessProvider), block-customer(label-customer, customer), block-captain(label-captain, captain), block-team(label-team, members)',
value-const-title1='N°', value-const-title1='N°',
value-const-title2='-', value-const-title2='-',
...@@ -19,11 +20,13 @@ ...@@ -19,11 +20,13 @@
value-label-customer='CUSTOMER INFORMATIONS:', value-label-customer='CUSTOMER INFORMATIONS:',
widget-customer='customer-template', widget-customer='customer-template',
value-label-captain='CAPTAIN:',
widget-captain='captain-template',
value-label-team='TEAM:', value-label-team='TEAM:',
widget-members='team-template', widget-members='team-template',
multiple-members='', multiple-members,
bind-resources bind-resources
) )
...@@ -156,7 +156,7 @@ ...@@ -156,7 +156,7 @@
width: 45%; width: 45%;
} }
sib-display-value[name='first_name'] { sib-display-value[name='firstName'] {
@include icon('arrow-down'); @include icon('arrow-down');
align-items: center; align-items: center;
display: flex; display: flex;
...@@ -224,7 +224,7 @@ ...@@ -224,7 +224,7 @@
div { div {
sib-display-value[name='first_name'] { sib-display-value[name='firstName'] {
@include icon('close'); @include icon('close');
&::before { &::before {
......
...@@ -75,7 +75,7 @@ sib-job-board { ...@@ -75,7 +75,7 @@ sib-job-board {
margin: 0.25em; margin: 0.25em;
} }
[name='author.first_name'] { [name='author.firstName'] {
color: $color-0-0-29; color: $color-0-0-29;
font-weight: 600; font-weight: 600;
} }
......
...@@ -98,9 +98,7 @@ ...@@ -98,9 +98,7 @@
#clientBox { #clientBox {
display: flex; display: flex;
margin-left: auto; margin: 1.7rem auto;
margin-right: auto;
margin-top: 1.7rem;
max-width: 100%; max-width: 100%;
>* { >* {
...@@ -166,75 +164,80 @@ ...@@ -166,75 +164,80 @@
} }
} }
[name='block-team'] { [name='block-team'], [name='block-captain'] {
label {
>sib-multiple { display: none;
}
label { sib-display.project-profile-user-avatar {
display: none; align-self: center;
grid-column: 1 / span 1;
grid-row: 1 / span 2;
div {
background-color: $color-0-0-100;
border-radius: 50%;
height: 7vh;
overflow: hidden;
position: relative;
width: 7vh;
img {
height: 100%;
left: 0;
object-fit: cover;
position: absolute;
top: 0;
width: 100%;
}
} }
}
>team-template[name='members'] { team-template[name='members'], captain-template[name='captain'] {
display: grid; display: grid;
grid-column-gap: 1.6rem; grid-column-gap: 1.6rem;
grid-template-columns: 7vh auto; grid-template-columns: 7vh auto;
grid-template-rows: repeat(2, 5.2vh); grid-template-rows: repeat(2, 5.2vh);
>sib-display:first-child {
align-self: center;
grid-column: 1 / span 1;
grid-row: 1 / span 2;
div {
background-color: $color-0-0-100;
border-radius: 50%;
height: 7vh;
overflow: hidden;
position: relative;
width: 7vh;
img {
height: 100%;
left: 0;
object-fit: cover;
position: absolute;
top: 0;
width: 100%;
}
}
}
>div:nth-child(2) { > div:nth-child(2) {
align-self: end; align-self: end;
display: flex; display: flex;
grid-column: 2 / span 1; grid-column: 2 / span 1;
grid-row: 1 / span 1; grid-row: 1 / span 1;
span { span {
align-self: center; align-self: center;
font-weight: 600; font-weight: 600;
} }
span~sib-display { span ~ sib-display {
>div { > div {
display: flex; display: flex;
margin-left: 1rem; margin-left: 1rem;
sib-multiple [name='name'] { sib-multiple [name='name'] {
@extend %user-role; @extend %user-role;
}
} }
} }
} }
}
>span:nth-child(3) { > span:nth-child(3) {
align-self: start; align-self: start;
grid-column: 2 / span 1; grid-column: 2 / span 1;
grid-row: 2 / span 1; grid-row: 2 / span 1;
}
} }
} }
} }
.project-profile-user-avatar {
display: inline;
* {
height: 100%;
width: 100%;
}
}
} }
\ No newline at end of file
include hd-user-avatar.pug
sib-widget(name='captain-template')
template
sib-display.project-profile-user-avatar(
data-src="${value ? value['@id'] : ''}"
fields='account.picture',
widget-account.picture='hd-user-avatar'
)
div(name='user.thumb')
sib-display(
data-src="${value ? value['@id'] : ''}"
fields='name'
)
sib-display(
data-src="${value ? value['@id'] : ''}",
fields='name'
nested-field="groups"
)
sib-display(
data-src="${value ? value['@id'] : ''}"
fields='username'
)
...@@ -2,16 +2,22 @@ include hd-user-avatar.pug ...@@ -2,16 +2,22 @@ include hd-user-avatar.pug
sib-widget(name='team-template') sib-widget(name='team-template')
template template
sib-display( sib-display.project-profile-user-avatar(
data-src="${value.user['@id']}" data-src="${value.user ? value.user['@id'] : ''}"
fields='account.picture', fields='account.picture',
widget-account.picture='hd-user-avatar' widget-account.picture='hd-user-avatar'
) )
div(name='user.thumb') div(name='user.thumb')
span ${value.user.name}
sib-display( sib-display(
data-src="${value.user.groups['@id']}", data-src="${value.user ? value.user['@id'] : ''}"
fields='name', fields='name'
multiple-name )
sib-display(
data-src="${value.user ? value.user['@id'] : ''}",
fields='name'
nested-field="groups"
) )
span ${value.name} sib-display(
data-src="${value.user ? value.user['@id'] : ''}"
fields='username'
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment