Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 24 2015 13:51

    deiu on master

    Edited a bug Added look and feel for the app… Added look and feel for the app… and 84 more (compare)

  • Feb 04 2015 19:00

    deiu on master

    Fixed rdflib (compare)

  • Feb 04 2015 18:24

    deiu on master

    Merge pull request #5 from deiu… Fixed duplicate listing Removed io.js and added new min… (compare)

  • Feb 04 2015 17:56
    deiu closed #1
  • Feb 04 2015 17:54
    gitter-badger opened #1
mzereba
@mzereba
But we can unify between the apps we do, I don't mind, actually I believe when they look close is cooler since they belong to the same project/platform
Andrei
@deiu
agreed
mzereba
@mzereba
Couldn't be more creative on the name so far though :D
PaCoM sounded better, but it is taken for U.S. Pacific Command :D
mzereba
@mzereba
Andrei, I tried the map instead of array here, but the angular filtering on the page doesn't work with a map
I'll try that for todo since I have no filtering by there
mzereba
@mzereba
Actually I meant I do have filters but no search on it :)
mzereba
@mzereba
In fact it is the same thing in the todos as well :(
It makes the length calculation (which for arrays would simply be .length) so complicated since there is no equivalent for maps. Instead I will have to implement a function for it...but again the filters then become harder to manage, specially the todos page is all based on filtering and it would need more wok on the page side :(
mzereba
@mzereba
I will take it into consideration for the meeting scibe, since it shouldn't have much filtering :)
Andrei
@deiu
got a pointer to the code?
mzereba
@mzereba
What do you mean?
mzereba
@mzereba
Hi Andrei, I integrated the sessionStorage part you sent me, having $scope.userProfile as the profile (e.g. https://mzereba.rww.io/profile/card#me), calling $scope.saveCredential after login and $scope.clearlocalCredentials on logout. Even thought it does save the userProfile in the session, but:
  1. When I hit logout and then login again the login widget appears with my profile on it still
  1. How can I not loose current data with a refresh?
I pushed the changes up to the ripository if you want to give it run please it would be great, perhaps I am missing something :-o
Andrei
@deiu
Hi Maged, I just realized I forgot to reply to your email :(
I’m really sorry
Andrei
@deiu
I can’t find the code that does sessionStorage
mzereba
@mzereba
No worries, whenever you have the chance, it is in order to decide what we want to do now on :)
Of course you can't find it...I typed in the wrong chat...I added that in the todo app and not the contacts :-o
So check it out there :)
Andrei
@deiu
At a glance, I suspect the problem is here: https://github.com/mzereba/todo/blob/master/js/app.js#L386
The date you store is just the WebID, so you should now instantiate $scope.userProfile = {}; as an object
just remove these 3 lines:
if (!$scope.userProfile) {
    $scope.userProfile = {};
}
@mzereba I hope that helps
It should be:
var uri = ($scope.userProfile.indexOf('#') >= 0)?$scope.userProfile.slice(0, $scope.userProfile.indexOf('#’)):$scope.userProfile;
some people use #this or #i instead of #me
mzereba
@mzereba
Thanks Andrei, but unfortunately doesn't solve the issue, it seems to save the profile in the session properly though. Anyway I will get back to this later on and off so I don;t get stuck on it right now.
mzereba
@mzereba
Hi Andrei, so I have been fixing the bugs of the contacts app, I realized that the double call for the load fucntions is not wrong, but it is a call for each storage to load the vcards under it
I have been going crazy these days without success, do you mind taking a look at it, let see if you might have an idea
I fixed the workspace selector that you used to find empty to add multiple storages under "My Storage". This way you can test it to try to replicate the porblem
I am now working on adding the contacts file we agreed to be used by the contacts widget
Andrei
@deiu
I’ll take a look at it as soon as possible
Meanwhile, I found out why Warp was showing each resource twice…
You had an ldp#Resource triple that you were adding to the graph yourself. So when Warp listed the resources, it added the same resource twice
Andrei
@deiu
I’ve fixed warp so it should be fine now
mzereba
@mzereba
Oh ok... and I will make sure to remove that when building the RDF resources
mzereba
@mzereba
The widget file is now ready, it will be created on the first contact you add, and updated for every insert, update or remove. The file is called contacts.widget under the Preferences folder.
The file for now contains: name, worskpace and webid...we can add to it whatever is needed
I have pushed everything up to github
Andrei
@deiu
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<>
    a <http://www.w3.org/ns/pim/space#ConfigurationFile> ;
    <http://www.w3.org/ns/solid/app#configuration> <#conf> .

<#conf>
    a <http://www.w3.org/ns/solid/app#Configuration> ;
    <http://www.w3.org/ns/solid/app#dataSource> <../Private/contacts/>, <../Public/contacts/> ;
    <http://www.w3.org/ns/solid/app#description> "A personal address book manager" ;
    <http://www.w3.org/ns/solid/app#homepage> <https://linkeddata.github.io/contacts/> ;
    <http://www.w3.org/ns/solid/app#icon> <https://linkeddata.github.io/contacts/images/favicon.png> ;
    <http://www.w3.org/ns/solid/app#name> "Contacts" .
Andrei
@deiu
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<../Applications/>
    <http://purl.org/dc/terms/title> "App configuration workspace" ;
    a <http://www.w3.org/ns/pim/space#Workspace>, <http://www.w3.org/ns/solid/app#ConfigurationWorkspace> .

<.>
    <http://purl.org/dc/terms/title> "Private Workspace" ;
    a <http://www.w3.org/ns/pim/space#PrivateWorkspace>, <http://www.w3.org/ns/pim/space#Workspace> .

<>
    <http://purl.org/dc/terms/title> "Preferences file" ;
    a <http://www.w3.org/ns/pim/space#ConfigurationFile> .

<../Public/>
    <http://purl.org/dc/terms/title> "Public Workspace" ;
    a <http://www.w3.org/ns/pim/space#PublicWorkspace>, <http://www.w3.org/ns/pim/space#Workspace> .

<../Shared/>
    <http://purl.org/dc/terms/title> "Shared Workspace" ;
    a <http://www.w3.org/ns/pim/space#SharedWorkspace>, <http://www.w3.org/ns/pim/space#Workspace> .

<../profile#me>
    a <http://xmlns.com/foaf/0.1/Person> ;
    <http://www.w3.org/ns/pim/space#preferencesFile> <> ;
    <http://www.w3.org/ns/pim/space#workspace> <../Applications/>, <.>, <../Public/>, <../Shared/> .
mzereba
@mzereba
<../profile/card#me>
a https://example.com/prefs ;
http://www.w3.org/ns/pim/space#preferencesFile <> ;
http://www.w3.org/ns/pim/space#workspace <../Family/>, <../Friends/>, <.>, <../Private/>, <../Public/>, <../Work/> .
mzereba
@mzereba
<../Private/>, <../Public/>
http://www.w3.org/ns/pim/space#workspace <../Private/>, <../Public/> ;
Andrei
@deiu
<http://www.w3.org/ns/pim/space#workspace> <https://deiu.me/Private/*>, <https://deiu.me/Public/>