Merge branch 'master' of https://git.startinblox.com/applications/hubl into feature/resource-component
This commit is contained in:
commit
ebc0455855
@ -553,15 +553,15 @@ apidays:
|
|||||||
tags:
|
tags:
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
georgetownuni:
|
ejp:
|
||||||
stage: deployment
|
stage: deployment
|
||||||
environment:
|
environment:
|
||||||
name: georgetownuni
|
name: ejp
|
||||||
url: https://georgetown-uni.hubl.world
|
url: https://ejp.hubl.world
|
||||||
before_script:
|
before_script:
|
||||||
- npm ci --cache .npm --prefer-offline --only=production
|
- npm ci --cache .npm --prefer-offline --only=production
|
||||||
script:
|
script:
|
||||||
- echo "$APP_CONFIG_GEORGETOWNUNI" > config.json
|
- echo "$APP_CONFIG_EJP" > config.json
|
||||||
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
||||||
- npm run build
|
- npm run build
|
||||||
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* georgetown-uni@astral.startinblox.com:~/front/
|
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* georgetown-uni@astral.startinblox.com:~/front/
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
@include breakpoint(lg) {
|
@include breakpoint(lg) {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
margin-bottom: 0;
|
||||||
transition: all .3s ease;
|
transition: all .3s ease;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -31,7 +32,7 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-top: 109px;
|
margin-top: 32px;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
|
@ -266,6 +266,111 @@ h5 {
|
|||||||
width: 15vw;
|
width: 15vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.project-edit-logo {
|
||||||
|
display: flex;
|
||||||
|
height: 8.5vh;
|
||||||
|
margin-top: 20px;
|
||||||
|
margin-bottom: 30px;
|
||||||
|
|
||||||
|
form {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
hubl-user-avatar {
|
||||||
|
width: 104px;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type='submit'] {
|
||||||
|
@extend .button,
|
||||||
|
.text-bold,
|
||||||
|
.text-uppercase,
|
||||||
|
.button-primary,
|
||||||
|
.bordered;
|
||||||
|
align-self: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-picture {
|
||||||
|
|
||||||
|
form {
|
||||||
|
display: block;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 2.6rem;
|
||||||
|
padding-top: 1.8rem;
|
||||||
|
|
||||||
|
@include breakpoint(lg) {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
hubl-user-avatar {
|
||||||
|
display: inline-block;
|
||||||
|
max-width: 100%;
|
||||||
|
max-height: 16.5vh;
|
||||||
|
|
||||||
|
@include breakpoint(lg) {
|
||||||
|
margin-left: 20px;
|
||||||
|
max-height: 8.5vh;
|
||||||
|
max-width: none;
|
||||||
|
width: calc(35vw - 20px);
|
||||||
|
}
|
||||||
|
|
||||||
|
>object,
|
||||||
|
>img {
|
||||||
|
display: block;
|
||||||
|
max-height: 16.5vh !important;
|
||||||
|
|
||||||
|
@include breakpoint(lg) {
|
||||||
|
max-height: 8.5vh !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
input {
|
||||||
|
@extend .button,
|
||||||
|
.text-bold,
|
||||||
|
.text-uppercase,
|
||||||
|
.button-primary,
|
||||||
|
.bordered;
|
||||||
|
margin: 10px 0;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
@include breakpoint(lg) {
|
||||||
|
margin: auto 0 auto 2.2rem;
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.p_relative {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex_column {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex_vertical-center {
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.w90 {
|
||||||
|
|
||||||
|
@include breakpoint(sm) {
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.w100 {
|
||||||
|
|
||||||
|
@include breakpoint(sm) {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.content-box {
|
.content-box {
|
||||||
@include window-style-modal();
|
@include window-style-modal();
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.user-thumb__admin:not(:empty) {
|
.user-thumb__admin:not(:empty) {
|
||||||
|
display: block !important;
|
||||||
@extend %tag-admin;
|
@extend %tag-admin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,3 +4,4 @@
|
|||||||
@import 'sidebar';
|
@import 'sidebar';
|
||||||
@import 'skills';
|
@import 'skills';
|
||||||
@import 'tags';
|
@import 'tags';
|
||||||
|
@import 'project-edit-picture';
|
||||||
|
39
src/styles/components/project-edit-picture.scss
Normal file
39
src/styles/components/project-edit-picture.scss
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
.project-edit-picture {
|
||||||
|
|
||||||
|
>div>*:not(:last-child) {
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
hubl-user-avatar {
|
||||||
|
background: transparent;
|
||||||
|
border-radius: 0;
|
||||||
|
display: inline-block;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
object, img {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
solid-ac-checker:first-of-type {
|
||||||
|
display: block;
|
||||||
|
|
||||||
|
@include breakpoint(lg) {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
#solid-picture-remove {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-top: 2rem;
|
||||||
|
|
||||||
|
@include breakpoint(lg) {
|
||||||
|
margin-left: 2rem;
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
solid-ac-checker:last-of-type {
|
||||||
|
align-self: flex-end;
|
||||||
|
}
|
||||||
|
}
|
@ -25,7 +25,7 @@ div.content-box__info.flex
|
|||||||
|
|
||||||
widget-status='hubl-status'
|
widget-status='hubl-status'
|
||||||
|
|
||||||
next='admin-circle-list'
|
next='circle'
|
||||||
|
|
||||||
submit-button='Enregistrer'
|
submit-button='Enregistrer'
|
||||||
)
|
)
|
||||||
|
@ -23,16 +23,13 @@ div.content-box__info.flex
|
|||||||
solid-form.form.button-register(
|
solid-form.form.button-register(
|
||||||
data-src=`${endpoints.projects || endpoints.post.projects}`
|
data-src=`${endpoints.projects || endpoints.post.projects}`
|
||||||
|
|
||||||
fields='status, line-1(customer.name, name), description, line-2(captain), logo'
|
fields='status, line-1(customer.name, name), line-2(captain)'
|
||||||
loader-id='loader-projects-create'
|
loader-id='loader-projects-create'
|
||||||
|
|
||||||
label-status='Statut du cercle*'
|
label-status='Statut du cercle*'
|
||||||
widget-status='hubl-status'
|
widget-status='solid-form-hidden'
|
||||||
class-status='form-label is-light is-full-width'
|
class-status='form-label is-light is-full-width'
|
||||||
|
value-status="Private"
|
||||||
label-description='Description du projet'
|
|
||||||
class-description='form-label is-light is-full-width input-text-like'
|
|
||||||
widget-description='solid-form-textarea'
|
|
||||||
|
|
||||||
label-customer.name='Nom du client*'
|
label-customer.name='Nom du client*'
|
||||||
class-customer.name='form-label is-light is-half-width input-text-like'
|
class-customer.name='form-label is-light is-half-width input-text-like'
|
||||||
@ -46,12 +43,8 @@ div.content-box__info.flex
|
|||||||
widget-captain='solid-form-auto-completion'
|
widget-captain='solid-form-auto-completion'
|
||||||
|
|
||||||
class='input-text-like'
|
class='input-text-like'
|
||||||
widget-logo="solid-form-file"
|
|
||||||
label-logo="Télécharger un logo"
|
|
||||||
class-logo='select-add'
|
|
||||||
upload-url-logo=`${endpoints.uploads || endpoints.post.uploads}`
|
|
||||||
|
|
||||||
next='admin-project-list'
|
next='project'
|
||||||
|
|
||||||
submit-button='Enregistrer et ajouter des membres'
|
submit-button='Enregistrer'
|
||||||
)
|
)
|
||||||
|
@ -26,7 +26,10 @@ solid-router(default-route='circle-profile', hidden)
|
|||||||
widget-creationDate='solid-display-date'
|
widget-creationDate='solid-display-date'
|
||||||
)
|
)
|
||||||
solid-ac-checker(permission='acl:Append', bind-resources, nested-field='members')
|
solid-ac-checker(permission='acl:Append', bind-resources, nested-field='members')
|
||||||
|
solid-ac-checker(permission='acl:Delete', bind-resources)
|
||||||
solid-link(class='button mobile-full-width text-bold text-uppercase reversed button-primary bordered with-icon icon-pencil' next='circle-edit' bind-resources) Modifier et ajouter un membre
|
solid-link(class='button mobile-full-width text-bold text-uppercase reversed button-primary bordered with-icon icon-pencil' next='circle-edit' bind-resources) Modifier et ajouter un membre
|
||||||
|
solid-ac-checker(no-permission='acl:Delete', bind-resources)
|
||||||
|
solid-link(class='button mobile-full-width text-bold text-uppercase reversed button-primary bordered with-icon icon-pencil' next='circle-edit' bind-resources) Ajouter un membre
|
||||||
|
|
||||||
|
|
||||||
div.flex.desktop-button__end
|
div.flex.desktop-button__end
|
||||||
@ -39,10 +42,12 @@ solid-router(default-route='circle-profile', hidden)
|
|||||||
|
|
||||||
solid-widget(name='hubl-circle-leave-button')
|
solid-widget(name='hubl-circle-leave-button')
|
||||||
template
|
template
|
||||||
|
solid-ac-checker(no-permission='acl:Delete', data-src="${src}", nested-field="circle")
|
||||||
solid-delete(
|
solid-delete(
|
||||||
class='button mobile-full-width desktop-btn-margin__left text-bold text-uppercase reversed button-secondary bordered with-icon icon-close'
|
class='button mobile-full-width desktop-btn-margin__left text-bold text-uppercase reversed button-secondary bordered with-icon icon-close'
|
||||||
data-src="${src}"
|
data-src="${src}"
|
||||||
data-label='Quitter le cercle'
|
data-label='Quitter le cercle'
|
||||||
|
next='circle-left'
|
||||||
)
|
)
|
||||||
|
|
||||||
solid-widget(name='hubl-circle-join-button')
|
solid-widget(name='hubl-circle-join-button')
|
||||||
@ -52,12 +57,9 @@ solid-router(default-route='circle-profile', hidden)
|
|||||||
data-src=''
|
data-src=''
|
||||||
nested-field='members'
|
nested-field='members'
|
||||||
|
|
||||||
fields='user.@id'
|
fields='user.username'
|
||||||
label-user.@id=''
|
value-user.username='hubl-workaround-493'
|
||||||
value-user.@id=''
|
widget-user.username='solid-form-hidden'
|
||||||
widget-user.@id='solid-form-hidden'
|
|
||||||
|
|
||||||
hubl-inherit-bind-user2input="input[name='user.@id']"
|
|
||||||
|
|
||||||
submit-button='Rejoindre le cercle'
|
submit-button='Rejoindre le cercle'
|
||||||
)
|
)
|
||||||
@ -87,7 +89,5 @@ solid-router(default-route='circle-profile', hidden)
|
|||||||
widget-members='hubl-circle-team-template'
|
widget-members='hubl-circle-team-template'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#circle-edit.content-box__height(hidden)
|
#circle-edit.content-box__height(hidden)
|
||||||
include page-circle-edit.pug
|
include page-circle-edit.pug
|
||||||
|
@ -4,16 +4,20 @@ div.content-box__info
|
|||||||
|
|
||||||
solid-link(class='backlink right', bind-resources, next='project-profile') Retour
|
solid-link(class='backlink right', bind-resources, next='project-profile') Retour
|
||||||
|
|
||||||
|
solid-ac-checker(permission='acl:Write', bind-resources)
|
||||||
h1 Modifie ton projet
|
h1 Modifie ton projet
|
||||||
|
|
||||||
|
div#loader-project-edit.loader.loader-top
|
||||||
|
div
|
||||||
|
div
|
||||||
|
div
|
||||||
|
div
|
||||||
|
|
||||||
solid-form.form.button-register(
|
solid-form.form.button-register(
|
||||||
bind-resources
|
bind-resources
|
||||||
|
|
||||||
fields='status, line-1(customer.name, name), description'
|
fields='line-1(customer.name, name)'
|
||||||
|
|
||||||
label-status='Statut du cercle*'
|
|
||||||
widget-status='hubl-status'
|
|
||||||
class-status='form-label is-light is-full-width member-select color'
|
|
||||||
|
|
||||||
label-name='Nom du projet*'
|
label-name='Nom du projet*'
|
||||||
class-name='form-label is-light is-half-width input-text-like'
|
class-name='form-label is-light is-half-width input-text-like'
|
||||||
@ -21,28 +25,15 @@ div.content-box__info
|
|||||||
label-customer.name='Nom du client*'
|
label-customer.name='Nom du client*'
|
||||||
class-customer.name='form-label is-light is-half-width input-text-like'
|
class-customer.name='form-label is-light is-half-width input-text-like'
|
||||||
|
|
||||||
label-description='Description du projet'
|
|
||||||
class-description='form-label is-light is-full-width input-text-like'
|
|
||||||
widget-description='solid-form-textarea'
|
|
||||||
|
|
||||||
partial=""
|
partial=""
|
||||||
|
|
||||||
submit-button='Enregistrer'
|
submit-button='Enregistrer'
|
||||||
next='project-information'
|
next='project-information'
|
||||||
)
|
)
|
||||||
|
|
||||||
h2 Photo du projet
|
|
||||||
|
|
||||||
solid-form.form-picture(
|
|
||||||
bind-resources
|
|
||||||
fields='customer.logo'
|
|
||||||
widget-customer.logo="hubl-user-avatar"
|
|
||||||
submit-button='Edit'
|
|
||||||
next='project-picture'
|
|
||||||
)
|
|
||||||
|
|
||||||
h2 Liste des membres :
|
h2 Liste des membres :
|
||||||
|
|
||||||
|
solid-ac-checker(permission='acl:Append', bind-resources, nested-field='members')
|
||||||
solid-form.block.select-add(
|
solid-form.block.select-add(
|
||||||
bind-resources
|
bind-resources
|
||||||
nested-field='members'
|
nested-field='members'
|
||||||
@ -67,6 +58,7 @@ div.content-box__info
|
|||||||
class='table-body'
|
class='table-body'
|
||||||
bind-resources
|
bind-resources
|
||||||
fields='members'
|
fields='members'
|
||||||
|
loader-id='loader-project-edit'
|
||||||
|
|
||||||
multiple-members=''
|
multiple-members=''
|
||||||
widget-members='hubl-team-template-edit'
|
widget-members='hubl-team-template-edit'
|
||||||
|
@ -2,4 +2,4 @@
|
|||||||
div.content-box__info.flex(style="padding: 15px")
|
div.content-box__info.flex(style="padding: 15px")
|
||||||
|
|
||||||
p Tu as quitté ce projet.
|
p Tu as quitté ce projet.
|
||||||
p Ceci est un groupe privé. Pour le rejoindre, rends-toi dans le panneau <solid-link next="admin-project-list">administration</solid-link> et demande une invitation.
|
p Ceci est un projet privé. Pour le rejoindre, rends-toi dans le panneau <solid-link next="admin-project-list">administration</solid-link> et demande une invitation.
|
||||||
|
@ -4,7 +4,7 @@ div.content-box__info
|
|||||||
|
|
||||||
h1 Modifier l'image du projet
|
h1 Modifier l'image du projet
|
||||||
|
|
||||||
solid-picture(
|
solid-picture.project-edit-picture(
|
||||||
bind-resources
|
bind-resources
|
||||||
upload-src=`${endpoints.uploads || endpoints.post.uploads}`
|
upload-src=`${endpoints.uploads || endpoints.post.uploads}`
|
||||||
upload-id="solid-project-edit-picture"
|
upload-id="solid-project-edit-picture"
|
||||||
|
@ -4,15 +4,21 @@ solid-router(default-route='project-profile', hidden)
|
|||||||
|
|
||||||
#project-profile(hidden)
|
#project-profile(hidden)
|
||||||
include ../../templates/hubl-captain.pug
|
include ../../templates/hubl-captain.pug
|
||||||
include ../../templates/hubl-circle-team.pug
|
|
||||||
include ../../templates/hubl-project-team.pug
|
include ../../templates/hubl-project-team.pug
|
||||||
|
|
||||||
.content-box__info.flex
|
.content-box__info.flex
|
||||||
|
|
||||||
|
div#loader-project-profile.loader
|
||||||
|
div
|
||||||
|
div
|
||||||
|
div
|
||||||
|
div
|
||||||
|
|
||||||
.flex.space-between.with-padding.mobile-vertical-align
|
.flex.space-between.with-padding.mobile-vertical-align
|
||||||
solid-display.mobile-margin__bottom(
|
solid-display.mobile-margin__bottom(
|
||||||
bind-resources
|
bind-resources
|
||||||
fields='creationDateSet(title, creationDate)'
|
fields='creationDateSet(title, creationDate)'
|
||||||
|
loader-id='loader-project-profile'
|
||||||
|
|
||||||
class-title='word-spacing-right'
|
class-title='word-spacing-right'
|
||||||
|
|
||||||
@ -21,10 +27,30 @@ solid-router(default-route='project-profile', hidden)
|
|||||||
widget-creationDate='solid-display-date'
|
widget-creationDate='solid-display-date'
|
||||||
)
|
)
|
||||||
solid-ac-checker(permission='acl:Append', bind-resources, nested-field='members')
|
solid-ac-checker(permission='acl:Append', bind-resources, nested-field='members')
|
||||||
|
solid-ac-checker(permission='acl:Delete', bind-resources)
|
||||||
solid-link(class='button mobile-full-width text-bold text-uppercase reversed button-primary bordered with-icon icon-pencil' next='project-edit' bind-resources) Modifier et ajouter un membre
|
solid-link(class='button mobile-full-width text-bold text-uppercase reversed button-primary bordered with-icon icon-pencil' next='project-edit' bind-resources) Modifier et ajouter un membre
|
||||||
|
solid-ac-checker(no-permission='acl:Delete', bind-resources)
|
||||||
|
solid-link(class='button mobile-full-width text-bold text-uppercase reversed button-primary bordered with-icon icon-pencil' next='project-edit' bind-resources) Ajouter un membre
|
||||||
|
|
||||||
|
div.flex.desktop-button__end
|
||||||
|
solid-ac-checker(permission='acl:Delete', bind-resources)
|
||||||
|
solid-delete(
|
||||||
|
class='button mobile-full-width text-bold text-uppercase button-primary bordered with-icon icon-trash'
|
||||||
|
bind-resources
|
||||||
|
data-label='Supprimer le projet'
|
||||||
|
)
|
||||||
|
|
||||||
|
solid-widget(name='hubl-project-leave-button')
|
||||||
|
template
|
||||||
|
solid-delete(
|
||||||
|
class='button mobile-full-width desktop-btn-margin__left text-bold text-uppercase reversed button-secondary bordered with-icon icon-close'
|
||||||
|
data-src="${src}"
|
||||||
|
data-label='Quitter le projet'
|
||||||
|
next='project-left'
|
||||||
|
)
|
||||||
|
|
||||||
|
solid-ac-checker(no-permission='acl:Delete', bind-resources)
|
||||||
solid-display(
|
solid-display(
|
||||||
class='flex desktop-button__end'
|
|
||||||
bind-resources
|
bind-resources
|
||||||
nested-field='members'
|
nested-field='members'
|
||||||
fields='relation'
|
fields='relation'
|
||||||
@ -48,13 +74,8 @@ solid-router(default-route='project-profile', hidden)
|
|||||||
class-label-captain='h2-like'
|
class-label-captain='h2-like'
|
||||||
widget-captain='hubl-captain'
|
widget-captain='hubl-captain'
|
||||||
)
|
)
|
||||||
solid-display(
|
|
||||||
class='customer-logo'
|
|
||||||
bind-resources
|
|
||||||
fields='customer.logo'
|
|
||||||
|
|
||||||
widget-customer.logo='solid-display-img'
|
br
|
||||||
)
|
|
||||||
|
|
||||||
h2 Equipe :
|
h2 Equipe :
|
||||||
|
|
||||||
@ -66,14 +87,5 @@ solid-router(default-route='project-profile', hidden)
|
|||||||
widget-members='hubl-project-team'
|
widget-members='hubl-project-team'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
solid-widget(name='hubl-project-leave-button')
|
|
||||||
template
|
|
||||||
solid-delete(
|
|
||||||
class='button desktop-btn-margin__left text-bold text-uppercase reversed button-secondary bordered with-icon icon-close'
|
|
||||||
data-src="${src}"
|
|
||||||
data-label='Quitter le groupe'
|
|
||||||
)
|
|
||||||
|
|
||||||
#project-edit.content-box__height(hidden)
|
#project-edit.content-box__height(hidden)
|
||||||
include page-project-edit.pug
|
include page-project-edit.pug
|
||||||
|
Loading…
Reference in New Issue
Block a user