Skip to content

Commit 10d793d

Browse files
committed
add strava, tumblt, orcid
1 parent 406974b commit 10d793d

File tree

4 files changed

+51
-5
lines changed

4 files changed

+51
-5
lines changed

src/baseStyles.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
export const responsiveGrid = () => ({
6-
"--auto-grid-min-size": "20rem",
6+
"--auto-grid-min-size": "30rem", // was 20rem but allowed 2 cols on phone
77
display: "grid",
88
"grid-template-columns":
99
"repeat(auto-fill, minmax(var(--auto-grid-min-size), 1fr))",

src/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ const Pane = {
6868
})
6969
}
7070
*/
71+
/*
7172
const editButtons = Array.from(target.getElementsByClassName('ProfilePaneCVEditButton'))
7273
if (editButtons.length) {
7374
const editButton = editButtons[0]
@@ -76,7 +77,7 @@ const Pane = {
7677
console.log('Profile pane: subject: ', subject, ', logged in as: ', authn.currentUser())
7778
// alert('No edit button')
7879
}
79-
80+
*/
8081
const QRCodeEles = Array.from(target.getElementsByClassName('QRCode')) // was context.dom
8182
if (!QRCodeEles.length) return console.error("QRCode Ele missing")
8283
for (const QRCodeElement of QRCodeEles as HTMLElement[]) {

src/ontology/profileForm.ttl

+28-1
Original file line numberDiff line numberDiff line change
@@ -422,14 +422,17 @@ WHERE
422422
[ ui:for soc:GithubAccount; ui:use :GithubIdField ],
423423
[ ui:for soc:InstagramAccount; ui:use :InstagramIdField ],
424424
[ ui:for soc:LinkedInAccount; ui:use :LinkedInIdField ],
425-
[ ui:for soc:NostrAccount; ui:use :NostrIdField ],
426425
[ ui:for soc:MastodonAccount; ui:use :MastodonIdField ],
427426
[ ui:for soc:MatrixAccount; ui:use :MatrixIdField ],
428427
[ ui:for soc:MediumAccount; ui:use :MediumIdField ],
428+
[ ui:for soc:NostrAccount; ui:use :NostrIdField ],
429+
[ ui:for soc:OrcidAccount; ui:use :OrcidIdField ],
429430
[ ui:for soc:PinterestAccount; ui:use :PinterestIdField ],
430431
[ ui:for soc:RedditAccount; ui:use :RedditIdField ],
432+
[ ui:for soc:StravaAccount; ui:use :StravaIdField ],
431433
[ ui:for soc:SnapchatAccount; ui:use :SnapchatIdField ],
432434
[ ui:for soc:TiktokAccount; ui:use :TiktokIdField ],
435+
[ ui:for soc:TumblrAccount; ui:use :TumblrIdField ],
433436
[ ui:for soc:TwitterAccount; ui:use :TwitterIdField ],
434437
[ ui:for soc:OtherAccount; ui:use :OtherIdForm ] .
435438

@@ -505,6 +508,14 @@ WHERE
505508
ui:pattern "[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*"; # @@
506509
ui:size 70 .
507510

511+
:OrcidIdField
512+
a ui:SingleLineTextField ;
513+
ui:label "ORCiD id";
514+
ui:maxLength "200" ;
515+
ui:property foaf:accountName ;
516+
ui:pattern "[a-z0-9A-Z_-]*"; # @@
517+
ui:size 40 .
518+
508519
:PinterestIdField
509520
a ui:SingleLineTextField ;
510521
ui:label "Pinterest id";
@@ -521,6 +532,14 @@ WHERE
521532
ui:pattern "[a-z0-9A-Z_-]*"; # @@
522533
ui:size 40 .
523534

535+
:StravaIdField
536+
a ui:SingleLineTextField ;
537+
ui:label "Strava Id";
538+
ui:maxLength "200" ;
539+
ui:property foaf:accountName ;
540+
ui:pattern "[a-z0-9A-Z_-]*"; # @@
541+
ui:size 40 .
542+
524543
:SnapchatIdField
525544
a ui:SingleLineTextField ;
526545
ui:label "Snapchat Id";
@@ -537,6 +556,14 @@ WHERE
537556
ui:pattern "@[a-z0-9A-Z_-]*"; # @@
538557
ui:size 40 .
539558

559+
:TumblIdField
560+
a ui:SingleLineTextField ;
561+
ui:label "Tumblr user name";
562+
ui:maxLength "200" ;
563+
ui:property foaf:accountName ;
564+
ui:pattern "@[a-z0-9A-Z_-]*"; # @@
565+
ui:size 40 .
566+
540567
:TwitterIdField
541568
a ui:SingleLineTextField ;
542569
ui:label "Twitter Id";

src/ontology/socialMedia.ttl

+20-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
foaf:Account a rdfs:Class;
2727
rdfs:label "Online Account Provider";
2828
owl:disjointUnionOf ( :BlueSkyAccount :FacebookAccount :GithubAccount :InstagramAccount
29-
:LinkedInAccount :MastodonAccount :MatrixAccount :MediumAccount :NostrAccount :PinterestAccount
30-
:RedditAccount :SnapchatAccount :TiktokAccount :TwitterAccount :OtherAccount) .
29+
:LinkedInAccount :MastodonAccount :MatrixAccount :MediumAccount :NostrAccount :OrcidAccount :PinterestAccount
30+
:RedditAccount :SnapchatAccount :StravaAccount :TiktokAccount :TumblrAccount :TwitterAccount :OtherAccount) .
3131

3232
:BlueSkyAccount rdfs:subClassOf foaf:Account ;
3333
rdfs:label "Bluesky";
@@ -87,6 +87,12 @@ foaf:Account a rdfs:Class;
8787
foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/nostr-icon-purple-on-white.svg>;
8888
foaf:homepage <https://nostr.net/> .
8989

90+
:OrcidAccount rdfs:subClassOf foaf:Account ;
91+
rdfs:label "ORCiD";
92+
foaf:userProfilePrefix "https://orcid.org/";
93+
foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/ORCID-1.svg>;
94+
foaf:homepage <https://orcid.org/> .
95+
9096
:PinterestAccount rdfs:subClassOf foaf:Account ;
9197
rdfs:label "Pinterest";
9298
foaf:userProfilePrefix "https://pin.it/";
@@ -105,12 +111,24 @@ foaf:Account a rdfs:Class;
105111
foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/snapchat-1.svg>;
106112
foaf:homepage <https://www.snapchat.com/> .
107113

114+
:StravaAccount rdfs:subClassOf foaf:Account ;
115+
rdfs:label "Strava";
116+
foaf:userProfilePrefix "https://www.strava.com/";
117+
foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/strava-2.svg>;
118+
foaf:homepage <https://strava.com/> .
119+
108120
:TiktokAccount rdfs:subClassOf foaf:Account ;
109121
rdfs:label "TikTok";
110122
foaf:userProfilePrefix "https://www.tiktok.com/@";
111123
foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/tiktok-icon-2.svg>;
112124
foaf:homepage <https://www.tiktok.com/> .
113125

126+
:TumblrAccount rdfs:subClassOf foaf:Account ;
127+
rdfs:label "Tumblr";
128+
foaf:userProfilePrefix "https://www.tumblr.com/";
129+
foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/tumblr-icon.svg>;
130+
foaf:homepage <https://www.tumblr.com/> .
131+
114132

115133
:TwitterAccount rdfs:subClassOf foaf:Account ;
116134
rdfs:label "X (formerly Twitter)";

0 commit comments

Comments
 (0)