Skip to content

Commit 0c44085

Browse files
committed
chore(viewer): adjust for langString
1 parent cb2d540 commit 0c44085

File tree

7 files changed

+7611
-3
lines changed

7 files changed

+7611
-3
lines changed

catalog-data.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3087,7 +3087,7 @@ cdata:SolidPractitioners-WeeklyCall a ex:Event ;
30873087
ex:name "Solid Practitioners Video Call" ;
30883088
ex:provider cdata:SolidPractitioners ;
30893089
ex:repository <https://github.com/solid-contrib/practitioners> ;
3090-
ex:schedule "The first and third Monday of every month at 15:00 UTC" ;
3090+
ex:schedule "The first and third Thursday of every month at 15:00 UTC" ;
30913091
ex:videoCallPage <https://meet.jit.si/solid-practitioners> .
30923092

30933093
cdata:SolidProject a ex:Organization ;

new-08-07/cat

Lines changed: 3766 additions & 0 deletions
Large diffs are not rendered by default.

new-08-07/catalog-data.ttl

Lines changed: 3763 additions & 0 deletions
Large diffs are not rendered by default.

new-08-07/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="./pages/viewer.css">
10+
<link rel="stylesheet" type="text/css" href="./pages/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 './scripts/viewer.js';
67+
document.addEventListener('DOMContentLoaded', async () => {
68+
sh = showSubtypes;
69+
await viewer();
70+
});
71+
</script>
72+
73+
</body>
74+
</html>
75+
76+

pages/viewer.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
<!-- <script type="module" src='../node_modules/mashlib/dist/mashlib.min.js'></script> -->
99
<link rel="stylesheet" type="text/css" href="./viewer.css">
1010
<link rel="stylesheet" type="text/css" href="./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">
1113
</head>
1214
<body>
1315
<div id="main-content">

scripts/form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ mainArea.style.display="none";
170170
else object = `<${object}>`;
171171
}
172172
else {
173-
object = `"""${object.trim()}"""@en`;
173+
object = `"""${object.trim()}"""`;
174174
}
175175
all += ` ${predicate} ${object} ;\n`;
176176
}

scripts/utils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ const pathNode = $rdf.sym('http://www.w3.org/ns/shacl#path') ;
1717
/* source - returns data locations and nodes
1818
*/
1919
export function source(){
20-
window.currentFolder = window.location.href.replace(/\/pages\/[^\/]+$/,'/');
20+
// window.currentFolder = window.location.href.replace(/\/pages\/[^\/]+$/,'/');
21+
window.currentFolder = window.location.href.replace(/\/pages\//,'/').replace(/\?.*/,'').replace(/\#.*/,'').replace(/viewer\.html/,'');
2122
let vocURL= 'http://example.org';
2223
// let shaclURL = 'urn:x-base:default' ;
2324
// let shaclURL = currentFolder + 'catalog-shacl.ttl';

0 commit comments

Comments
 (0)