From 89db25fa852714b0c64be47d8f568fc18bd2e3ae Mon Sep 17 00:00:00 2001
From: Jean-Baptiste Pasquier <contact@jbpasquier.eu>
Date: Mon, 3 Jun 2019 16:04:15 +0200
Subject: [PATCH] update: Use federation sources

---
 src/menu-left.pug                             | 10 +++++-----
 src/page-circle-create.pug                    |  4 ++--
 src/page-job-offer-create.pug                 |  2 +-
 src/page-job-offers.pug                       |  2 +-
 src/page-members-directory.pug                |  2 +-
 src/page-project-create.pug                   |  4 ++--
 src/styles/layout/members/member-profile.scss |  8 ++++----
 src/styles/layout/members/members.scss        |  8 ++++----
 8 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/src/menu-left.pug b/src/menu-left.pug
index ede7bf5a..c5a82092 100644
--- a/src/menu-left.pug
+++ b/src/menu-left.pug
@@ -18,7 +18,7 @@ nav#main__menu
       sib-route(hidden,name='project', id-prefix=`${sdn}/projects/`, rdf-type='hd:project', use-id='')
       div.sub-menu
         sib-display(
-          data-src=`${sdn}/projects/`,
+          data-src=`${sdn}/sources/projects/`,
           data-fields='project',
           set-project='customer.name, dash, name',
           value-dash=' - ',
@@ -34,7 +34,7 @@ nav#main__menu
       //- sib-route(hidden, name='circle', id-prefix=`${sdn}/circles/`, rdf-type='hd:circle')
       //- div.sub-menu
       //-   sib-display(
-      //-     data-src=`${sdn}/circles/`,
+      //-     data-src=`${sdn}/sources/circles/`,
       //-     data-fields='name',
       //-     widget-name='sib-display-div',
       //-     next='circle'
@@ -46,11 +46,11 @@ nav#main__menu
           div.menu-icon.icon-arrow-up
         div.menu-label Chat
         div.menu-icon.icon-envelope-letter
-      sib-route(hidden, name='messages', id-prefix=`${sdn}/members/`, rdf-type='foaf:user', use-id='')
+      sib-route(hidden, name='messages', id-prefix=`${sdn}/users/`, rdf-type='foaf:user', use-id='')
       div.sub-menu
         sib-display(
-          data-src=`${sdn}/members/`,
-          data-fields='user.username',
+          data-src=`${sdn}/users/`,
+          data-fields='username',
           widget-user.username='sib-display-div',
           next='messages'
         )
diff --git a/src/page-circle-create.pug b/src/page-circle-create.pug
index e7eeb59b..e5378dbc 100644
--- a/src/page-circle-create.pug
+++ b/src/page-circle-create.pug
@@ -3,9 +3,9 @@
   p Here you can create a new group according to your interests, what you want to share, etc.
 
   sib-form(
-    data-src=`${sdn}/circles/`,
+    data-src=`${sdn}/sources/circles/`,
     range-owner=`${sdn}/users/`, 
-    range-team=`${sdn}/members/`
+    range-team=`${sdn}/users/`
     
     data-fields='name, description, description-text, owner, owner-text, team, team-text, jabberRoom, foaf:jabberID',
 
diff --git a/src/page-job-offer-create.pug b/src/page-job-offer-create.pug
index c05922a1..f7659105 100644
--- a/src/page-job-offer-create.pug
+++ b/src/page-job-offer-create.pug
@@ -11,7 +11,7 @@
       p Be specific and exhaustive to avoid answering too many questions later. Indicate what is the best way to fill the offer, the prerequisites...'
   
   sib-form.block(
-    data-src=`${sdn}/job-offers/`,
+    data-src=`${sdn}/sources/job-offers/`,
     range-skills=`${sdn}/skills/`,
 
     data-fields='title, title-text, description, description-text, skills',
diff --git a/src/page-job-offers.pug b/src/page-job-offers.pug
index f92929c6..15be1389 100644
--- a/src/page-job-offers.pug
+++ b/src/page-job-offers.pug
@@ -14,7 +14,7 @@ div.job-offers__main
     h1 New offers
       span Here you can find and post offers
     sib-display#offers-list(
-      data-src=`${sdn}/job-offers/`,
+      data-src=`${sdn}/sources/job-offers/`,
       data-fields='user-thumb, creationDate, title, description, skills, author',
       
       set-user-thumb='author.account.picture, author.first_name, author.groups',
diff --git a/src/page-members-directory.pug b/src/page-members-directory.pug
index aa6b537d..fd2fd522 100644
--- a/src/page-members-directory.pug
+++ b/src/page-members-directory.pug
@@ -1,5 +1,5 @@
 sib-directory(
-  data-src=`${sdn}/members/`,
+  data-src=`${sdn}/users/`,
   range-groups=`${sdn}/groups/`,
   range-skills=`${sdn}/skills/`
 )
diff --git a/src/page-project-create.pug b/src/page-project-create.pug
index e954c5ad..3368f2f0 100644
--- a/src/page-project-create.pug
+++ b/src/page-project-create.pug
@@ -3,8 +3,8 @@
   p Here you can create your project, add members and assign them a job.
   
   sib-form.block(
-    data-src=`${sdn}/projects/`,
-    range-members=`${sdn}/members/`,
+    data-src=`${sdn}/sources/projects/`,
+    range-members=`${sdn}/users/`,
     range-team=`${sdn}/users/`,
 
     data-fields='block-project__info, block-project__fee, block-project__customer',
diff --git a/src/styles/layout/members/member-profile.scss b/src/styles/layout/members/member-profile.scss
index 0cb4fef4..b0942b29 100644
--- a/src/styles/layout/members/member-profile.scss
+++ b/src/styles/layout/members/member-profile.scss
@@ -39,7 +39,7 @@
           display: flex;
           grid-area: name;
 
-          >sib-display-value[name^='user.'] {
+          >sib-display-value[name='name'] {
             color: $color-216-4-22;
             font-weight: bold;
             @extend h1;
@@ -51,7 +51,7 @@
           }
         }
 
-        sib-display-value[name='user.username'] {
+        sib-display-value[name='username'] {
           grid-area: pseudo;
 
           &::before {
@@ -59,7 +59,7 @@
           }
         }
 
-        sib-display-value[name='bio'] {
+        sib-display-value[name='profile.bio'] {
           grid-area: bio;
         }
 
@@ -69,7 +69,7 @@
           @extend %member-info;
         }
 
-        member-status[name$='available'] {
+        member-status[name$='profile.available'] {
           align-self: flex-end;
           color: $color-244-73-62;
           grid-area: status;
diff --git a/src/styles/layout/members/members.scss b/src/styles/layout/members/members.scss
index 72483914..ff411397 100644
--- a/src/styles/layout/members/members.scss
+++ b/src/styles/layout/members/members.scss
@@ -14,7 +14,7 @@
     }
   }
   
-  [name$='city'] * {
+  [name$='profile.city'] * {
     @include mdi('atom');
   }
 
@@ -22,11 +22,11 @@
     @include mdi('email-outline');
   }
 
-  [name$='phone'] * {
+  [name$='profile.phone'] * {
     @include mdi('cellphone-iphone');
   }
 
-  [name="foaf:homepage"]:not(:empty) {
+  [name="profile.website"]:not(:empty) {
     @include mdi('link-variant');
   }
 }
@@ -177,7 +177,7 @@ member-info-groups {
             }
           }
 
-          [name='user.name'] {
+          [name='name'] {
             font-weight: bold;
             @extend h1;
           }
-- 
GitLab