Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S
SiB Core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 110
    • Issues 110
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Packages
    • Packages
    • Container Registry
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Startin blox
  • framework
  • SiB Core
  • Issues
  • #470

Closed
Open
Opened Sep 06, 2019 by Matthieu Fesselier@matthieu
  • Report abuse
Report abuse

Structure of DOM when displaying sources

Now, when we create a sib-display to show a container, the listMixin only creates children with a data-src. Each sib-display child is now autonomous to create its own widgets. For example:

<sib-display data-src="http://server/users/">
    <sib-display data-src="http://server/users/1/"></sib-display>
    <sib-display data-src="http://server/users/2/"></sib-display>
</sib-display>

Also, we now get sources like this from our servers:

{
  "@id": "",
  "@type": "ldp:Container",
  "ldp:contains": [
    {
      "@id": "https://api.test-nantes.happy-dev.fr/users/",
      "@type": "ldp:Container",
    },
    {
      "@id": "https://api.test-paris.happy-dev.fr/users/",
      "@type": "ldp:Container",
    }
  ]
}

Does it seem fair to deal with the sources the same way? For example, to have a DOM like this:

<sib-display data-src="http://server/sources/users/">
    <sib-display data-src="http://server/users/">
        <sib-display data-src="http://server/users/1/"></sib-display>
        <sib-display data-src="http://server/users/2/"></sib-display>
    </sib-display>
</sib-display>

It works almost out of the box: no need for a FederationMixin, but the post-processing of the list is not working because it's handled at a top level

What do you think @balessan @sylvain @clement ?

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
1
Labels
research
Assign labels
  • View project labels
Reference: startinblox/framework/sib-core#470