Skip to content

Commit 6d47f6b

Browse files
authored
Merge pull request #73 from solid/jz4
chore(viewer): adjust for langString
2 parents cb2d540 + 7703512 commit 6d47f6b

File tree

15 files changed

+428
-10
lines changed

15 files changed

+428
-10
lines changed

catalog-data.ttl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1710,11 +1710,13 @@ cdata:Naman_Goel a ex:Person ;
17101710
cdata:NextFM a ex:Software ;
17111711
ex:contactEmail <mailto:product@inrupt.com> ;
17121712
ex:description "A file manager for Solid pods with support for multiple visual themes, inspired by Tim Berners-Lee." ;
1713-
ex:modified "2025-06-09T15:50:49.306Z"^^xsd:dateTime ;
1713+
ex:logo <https://solidfm.app/favicon.ico> ;
1714+
ex:modified "2025-07-31T13:43:12.617Z"^^xsd:dateTime ;
17141715
ex:name "NextFM" ;
17151716
ex:provider cdata:Inrupt ;
17161717
ex:repository <https://github.com/inrupt/nextfm> ;
1717-
ex:status con:Exploration ;
1718+
ex:showcase <https://solidfm.app/> ;
1719+
ex:status con:Production ;
17181720
ex:subType con:PodApp ;
17191721
ex:technicalKeyword "file manager" .
17201722

@@ -3087,7 +3089,7 @@ cdata:SolidPractitioners-WeeklyCall a ex:Event ;
30873089
ex:name "Solid Practitioners Video Call" ;
30883090
ex:provider cdata:SolidPractitioners ;
30893091
ex:repository <https://github.com/solid-contrib/practitioners> ;
3090-
ex:schedule "The first and third Monday of every month at 15:00 UTC" ;
3092+
ex:schedule "The first and third Thursday of every month at 15:00 UTC" ;
30913093
ex:videoCallPage <https://meet.jit.si/solid-practitioners> .
30923094

30933095
cdata:SolidProject a ex:Organization ;

index.html

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Solid Resources Catalog</title>
7+
<script type="module" src='https://cdn.jsdelivr.net/npm/mashlib@latest/dist/mashlib.min.js'></script>
8+
<!-- <script type="module" src='./node_modules/mashlib/dist/mashlib.min.js'></script> -->
9+
<link rel="stylesheet" type="text/css" href="./viewer/viewer.css">
10+
<link rel="stylesheet" type="text/css" href="./viewer/forms.css">
11+
<link rel="icon" href="https://solidproject.org/assets/img/solid-emblem.svg" type="image/svg+xml">
12+
<meta name="thumbnail" content="https://solidproject.org/assets/img/solid-emblem.svg">
13+
</head>
14+
<body>
15+
<div id="main-content">
16+
<div class="sol-header">
17+
<img src="./assets/logo.svg" class="logo">
18+
<span class="sol-header-content">
19+
<b style="display:inline-block;padding-left:1rem;padding-right:1rem;"> Solid Resources Catalog </b>
20+
<sol-catalog-search class="search-input"><input type="text">
21+
<button class="search-button">search</button></sol-catalog-search>
22+
<button class="keyword-index-button">keyword index</button>
23+
<button class="new-record-button">new record</button>
24+
<button class="about-button" source="./catalog-about.html">about</button>
25+
</span>
26+
</div>
27+
28+
<div id="main">
29+
<div id="left-column"> </div>
30+
<div id="right-column">
31+
<div id="right-top"></div>
32+
<div id="right-bottom"></div>
33+
</div>
34+
</div>
35+
</div>
36+
37+
<div id="forms-area" style="display:none">
38+
<div id="menubar"></div>
39+
<form id="forms-record" class="record"></form>
40+
</div>
41+
42+
<div id="help" style="display:none">
43+
<button style="text-align:right" onclick="document.body.classList.remove('showHelp')"><<</button>
44+
<h1 style="font-size:1.4em !important">Solid Resources Catalog</h1>
45+
46+
<p>This catalog is a work in progress and not all data has been recently updated. Please help by updataing records for yourself, your organization, and your projects.</p>
47+
48+
<p>There are three main ways to navigate the catalog:</p>
49+
50+
<ul>
51+
<li> Use the list of resource types at the left of the screenb
52+
<li> Use the full text searchbar at the top of the screen
53+
<li> Use the keyword index at the top of the screen
54+
<li> Navigate to a record and jump to related records
55+
</ul>
56+
57+
<p>If you do not find a record for yourself or your projects, use the *new record* button at the top of the screen to create one.</p>
58+
59+
<p>To read more about the catalog and other viewers for it, see <a href="https://github.com/solid/catalog">the gitihub repository</a> and/or catch me (@jeff-zucker) on matrix.</p>
60+
</div>
61+
62+
<script>
63+
var sh;
64+
</script>
65+
<script type="module">
66+
import {viewer,showSubtypes} from './viewer/viewer.js';
67+
document.addEventListener('DOMContentLoaded', async () => {
68+
sh = showSubtypes;
69+
await viewer();
70+
});
71+
</script>
72+
73+
</body>
74+
</html>
75+
76+

local2pod.js

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import { SolidNodeClient } from "solid-node-client";
2+
const client = new SolidNodeClient;
3+
4+
async function local2pod(){
5+
try {
6+
await client.login();
7+
}
8+
catch(e){ console.log(e); }
9+
for(let file of files){
10+
const from = `file:///`+process.cwd()+ '/' + file;
11+
const to = `https://solidproject.solidcommunity.net/catalog/${file}`;
12+
try {
13+
const getResponse = await client.fetch(from);
14+
const content = await getResponse.text();
15+
const contentType = getResponse.headers.get('Content-type');
16+
const putResponse = await client.fetch( to, {
17+
method:"PUT",
18+
body:content,
19+
headers:{"content-type":contentType}
20+
});
21+
console.log(putResponse.status,to)
22+
}
23+
catch(e){ console.log(e); }
24+
}
25+
}
26+
27+
const files = [
28+
'index.html',
29+
'catalog-data.ttl',
30+
'catalog-skos.ttl',
31+
'catalog-shacl.ttl',
32+
'assets/logo.svg',
33+
'viewer/form.js',
34+
'viewer/forms.css',
35+
'viewer/makeTOC.js',
36+
'viewer/page-content.js',
37+
'viewer/pages.js',
38+
'viewer/showRecord.js',
39+
'viewer/utils.js',
40+
'viewer/viewer.css',
41+
'viewer/viewer.html',
42+
'viewer/viewer.js',
43+
];
44+
45+
local2pod();
46+

0 commit comments

Comments
 (0)