Skip to content

Commit 78a1caf

Browse files
committed
rdf manager, modals, rss
1 parent 6c165fe commit 78a1caf

29 files changed

Lines changed: 975 additions & 577 deletions

documentation/dashboard.html

Lines changed: 79 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,80 @@
1-
<body style="display:grid;grid-template-columns:572px auto;">
2-
<div style="width:572px">
1+
<body style="display:grid;grid-template-columns:472px auto;">
2+
<div>
33
<div style="display:grid;grid-template-columns:160px auto;">
44
<sol-time></sol-time>
5-
<sol-rdf source="./data/links.ttl" template="links" viewIn="popup"></sol-rdf>
5+
<sol-markdown class="button-links" source="./data/links.md" template="links"></sol-markdown>
66
</div>
77
<p>
8-
<sol-rdf source="./data/search.ttl" template="searchbar"></sol-rdf>
8+
<sol-rdf
9+
source="./data/search.ttl" template="searchbar"
10+
form="./data/sample-form.ttl"
11+
wanted="* a Bookmark"
12+
></sol-rdf>
13+
</p>
14+
<p>
15+
<sol-rdf
16+
source="./data/news.ttl"
17+
wanted="* a Bookmark"
18+
template="rss"
19+
proxy="/proxy?uri="
20+
></sol-rdf>
921
</p>
10-
<sol-markdown source="./data/links.md" template="links"></sol-markdown>
22+
23+
<sol-manage-button
24+
title = "manage page"
25+
label = "&#9881"
26+
></sol-manage-button>
27+
28+
<sol-rdf source="./data/links.ttl" template="links" viewIn="popup"></sol-rdf>
29+
1130
</div>
12-
<div>
31+
<div id="display">
32+
<!--
33+
<sol-rdf
34+
source="./data/news.ttl"
35+
form="./data/dashboard-forms.ttl#NewsForm"
36+
wanted="* a Bookmark"
37+
template="form"
38+
></sol-rdf>
39+
-->
40+
<sol-rdf
41+
source="./data/search.ttl"
42+
form="./data/dashboard-forms.ttl#SearchForm"
43+
wanted="* a Bookmark"
44+
template="form"
45+
></sol-rdf>
46+
<!--
47+
<iframe src="https://shacl.org/playground/"></iframe>
48+
-->
1349
</div>
1450
<style>
15-
.sol-links {
16-
// margin-left:1rem;
51+
#display iframe {
52+
width:100%;
53+
height:640px;
54+
border-radius:0.3rem;
55+
background:white;
56+
}
57+
body {
58+
background:#0f0a0a;
59+
padding:1rem;
60+
color:#B7B6B6;
61+
}
62+
#display {
63+
margin-left:1rem;
64+
}
65+
* {
66+
font-size : 18px;
67+
}
68+
.sol-manager-button {
69+
color:white;
70+
font-size:300%;
71+
}
72+
.sol-searchbar {
73+
background:#ddaaaa !important;
74+
color:black !important;
75+
}
76+
.sol-selector-wrapper {
77+
background:darkblue;
1778
}
1879
.sol-links h1 {
1980
font-size:1rem;
@@ -24,6 +85,14 @@
2485
margin:0;
2586
margin-bottom:0.3rem;
2687
}
88+
.sol-time * {
89+
color:black !important;
90+
}
91+
.sol-links li a {
92+
background:#aaddaa !important;
93+
display:inline-block;
94+
margin-bottom:0.1rem;
95+
}
2796
.sol-links li {
2897
margin:0;
2998
display:inline-block;
@@ -34,21 +103,15 @@
34103
list-style:none;
35104
display:inline-block;
36105
}
37-
.sol-links a {
38-
display:inline-block;
39-
margin-bottom:0.3rem;
40-
}
41106
</style>
42107

43108
<link href="../sol-core.css" rel="stylesheet" />
44109
<script src="https://cdn.jsdelivr.net/npm/solid-ui@2.4.33-alpha/dist/solid-ui.min.js" type="module">
45110
</script>
46111
<script src="https://cdn.jsdelivr.net/npm/dompurify@3.0.9/dist/purify.min.js" type="module">
47112
</script>
48-
<script src="../sol-core.js" type="module">
49-
</script>
50-
<script src="../src/time.js" type="module">
51-
</script>
113+
<script src="../sol-core.js" type="module"></script>
52114
<!--
115+
<script src="../sol-full.js" type="module"></script>
53116
<sol-rdf source="./data/links.ttl" template="links" viewIn="popup"></sol-rdf>
54117
-->
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
@prefix : <#> .
2+
@prefix solid: <http://www.w3.org/ns/solid/terms#> .
3+
@prefix bk: <http://www.w3.org/2002/01/bookmark#> .
4+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
5+
@prefix ui: <http://www.w3.org/ns/ui#> .
6+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
7+
8+
###
9+
# FORMS
10+
###
11+
:NewsForm
12+
a ui:Form ;
13+
ui:defaultForNew :BookmarkType ;
14+
ui:parts( :BookmarkLabel :BookmarkUrl :BookmarkTopic ) .
15+
16+
:SearchForm
17+
a ui:Form ;
18+
ui:defaultForNew :BookmarkType, :SearchTopic ;
19+
ui:parts( :BookmarkLabel :BookmarkUrl ) .
20+
21+
22+
###
23+
# FIELDS
24+
###
25+
:BookmarkType
26+
a ui:NamedNodeURIField ;
27+
ui:property rdf:type ;
28+
ui:default "http://www.w3.org/2002/01/bookmark#Bookmark" .
29+
30+
:SearchTopic
31+
a ui:SingleLineTextField ;
32+
ui:property bk:hasTopic ;
33+
ui:default "Search Engine" .
34+
35+
:BookmarkLabel
36+
a ui:SingleLineTextField ;
37+
ui:property rdfs:label ;
38+
ui:label "Label"@en .
39+
40+
:BookmarkUrl
41+
a ui:NamedNodeURIField ;
42+
ui:property bk:recalls ;
43+
ui:label "URL"@en .
44+
45+
:BookmarkTopic
46+
a ui:SingleLineTextField ;
47+
ui:property bk:hasTopic ;
48+
ui:label "Topic"@en .
49+
50+
:BookmarkDescription
51+
a ui:MultiLineTextField ;
52+
ui:property rdfs:comment ;
53+
ui:label "Description"@en .
54+
55+
56+
57+

documentation/data/form-help.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<h3>Form-editor Help</h3>
2+
<div style="width:40ch;margin:auto;text-align:left;padding:1rem;border-radius:0.3rem;border:1px solid black;">
3+
<ul style="list-style:none">
4+
<li><b>&lt;</b> previous thing</li>
5+
<li><b>&gt;</b> next thing</li>
6+
<li><b>+</b> add thing</li>
7+
<li><b>-</b> remove thing</li>
8+
<li><b>?</b> help</li>
9+
<li><b>x</b> close editor</li>
10+
</ul>
11+
</div>
12+
<p>
13+
Edits are saved as soon as you change a field and then click outside it.
14+
</p>

documentation/data/links-all.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Video Calls
2+
* [Team](https://meet.jit.si/solid-team)
3+
* [SolidOS](https://meet.jit.si/solid-operating-system)
4+
* [CG](https://meet.jit.si/solid-cg)
5+
* [Practitioners](https://meet.jit.si/solid-practitioners)
6+
* [Sparks](https://meet.jit.si/sparkcentral2024)
7+
8+
# Repos
9+
* [Team](https://github.com/solid/team)
10+
* [SolidOS](https://github.com/solidos)
11+
* [Practitioners](https://github.com/solid-contrib/practitioners)
12+
* [Solid Contrib](https://github.com/solid-contrib)
13+
* [WebID](https://github.com/solid/webid-profile)
14+
* [Type Indexes](https://github.com/solid/type-indexes)
15+
* [Organizations](https://github.com/solid/organizations)
16+
17+
# Projects
18+
* [SWC documentation](/public/solid/solid-web-components/documentation/index.html)
19+
* [SWC Login/Forms](/public/s/solid-web-components/documentation/login.html)
20+
21+
# Pages
22+
* [Solid Symposium](https://events.vito.be/sosy2024)
23+
* [Confused by Solid](https://blog.ldodds.com/2024/03/12/baffled-by-solid/)

documentation/data/links.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
1-
# Video Calls
21
* [Team](https://meet.jit.si/solid-team)
32
* [SolidOS](https://meet.jit.si/solid-operating-system)
43
* [CG](https://meet.jit.si/solid-cg)
54
* [Practitioners](https://meet.jit.si/solid-practitioners)
65
* [Sparks](https://meet.jit.si/sparkcentral2024)
7-
8-
# Repos
9-
* [Team](https://github.com/solid/team)
10-
* [SolidOS](https://github.com/solidos)
11-
* [Practitioners](https://github.com/solid-contrib/practitioners)
12-
* [Solid Contrib](https://github.com/solid-contrib)
13-
* [WebID](https://github.com/solid/webid-profile)
14-
* [Type Indexes](https://github.com/solid/type-indexes)
15-
* [Organizations](https://github.com/solid/organizations)
16-
17-
# Projects
18-
* [SWC documentation](/public/solid/solid-web-components/documentation/index.html)
19-
* [SWC Login/Forms](/public/s/solid-web-components/documentation/login.html)
20-
21-
# Pages
22-
* [Solid Symposium](https://events.vito.be/sosy2024)
23-
* [Confused by Solid](https://blog.ldodds.com/2024/03/12/baffled-by-solid/)

0 commit comments

Comments
 (0)