connection_groups supported

This commit is contained in:
Gabriel 2022-05-02 22:02:15 -04:00
parent 3462efda21
commit c6baec68cd
2 changed files with 42 additions and 13 deletions

View file

@ -3,12 +3,21 @@
"name": "My website", "name": "My website",
"image": "", "image": "",
"location": "https://my.website", "location": "https://my.website",
"resources": [{ "resource_groups": {
"Links": [{
"label": "RSS Feed", "label": "RSS Feed",
"icon": "", "icon": "",
"location": "https://my.website.com/rss.xml", "location": "https://my.website.com/rss.xml",
"description": "<img src='example.com'>" "description": ""
}], }],
"Website content": [{
"label": "Articles",
"icon": "https://libresolutions.network/logo.png",
"location": "https:libresolutions.network/articles/",
"description": ""
}]
},
"resources": [],
"connection_groups": { "connection_groups": {
"Group1": [ "Group1": [
"https://libresolutions.network" "https://libresolutions.network"

View file

@ -23,6 +23,26 @@
</template> </template>
</div> </div>
</div> </div>
<section id="interverse-resource-groups">
<template x-for="(group,name) in Alpine.store('data')['resource_groups']">
<div>
<h1 x-text="name"></h1>
<section class="interverse-group">
<template x-for="resource in group">
<a x-bind:href="resource['location']">
<div class="interverse-resource">
<template x-if="resource['icon'] !=''">
<img class="interverse-resource-icon" x-bind:src="resource['icon']">
</template>
<h2 x-text="resource['label']"></h2>
<p x-text="resource['description']"></p>
</div>
</a>
</template>
</section>
</div>
</template>
</section>
<div id="interverse-resources"> <div id="interverse-resources">
<template x-for="resource in Alpine.store('data')['resources']"> <template x-for="resource in Alpine.store('data')['resources']">
<a x-bind:href="resource['location']"> <a x-bind:href="resource['location']">