linked-data-browser 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/.eslintrc.js +13 -0
  2. package/.ldo/profile.context.ts +459 -0
  3. package/.ldo/profile.schema.ts +751 -0
  4. package/.ldo/profile.shapeTypes.ts +71 -0
  5. package/.ldo/profile.typings.ts +295 -0
  6. package/.prettierignore +6 -0
  7. package/.prettierrc +10 -0
  8. package/.shapes/profile.shex +121 -0
  9. package/README.md +3 -0
  10. package/app/index.tsx +25 -0
  11. package/app.json +37 -0
  12. package/assets/images/adaptive-icon.png +0 -0
  13. package/assets/images/favicon.png +0 -0
  14. package/assets/images/icon.png +0 -0
  15. package/assets/images/splash.png +0 -0
  16. package/babel.config.js +6 -0
  17. package/components/DataBrowser.tsx +57 -0
  18. package/components/ResourceView.tsx +14 -0
  19. package/components/TargetResourceProvider.tsx +128 -0
  20. package/components/ThemeProvider.tsx +123 -0
  21. package/components/nav/DialogProvider.tsx +140 -0
  22. package/components/nav/Layout.tsx +118 -0
  23. package/components/nav/header/AddressBox.tsx +126 -0
  24. package/components/nav/header/AvatarMenu.tsx +62 -0
  25. package/components/nav/header/Header.tsx +28 -0
  26. package/components/nav/header/SignInMenu.tsx +126 -0
  27. package/components/nav/header/ThemeToggleMenu.tsx +34 -0
  28. package/components/nav/header/ViewMenu.tsx +88 -0
  29. package/components/nav/useValidView.tsx +51 -0
  30. package/components/nav/utilityResourceViews/ErrorMessageResourceView.tsx +26 -0
  31. package/components/ui/avatar.tsx +53 -0
  32. package/components/ui/button.tsx +88 -0
  33. package/components/ui/card.tsx +101 -0
  34. package/components/ui/dialog.tsx +159 -0
  35. package/components/ui/dropdown-menu.tsx +275 -0
  36. package/components/ui/input.tsx +25 -0
  37. package/components/ui/label.tsx +34 -0
  38. package/components/ui/navigation-menu.tsx +200 -0
  39. package/components/ui/popover.tsx +45 -0
  40. package/components/ui/progress.tsx +79 -0
  41. package/components/ui/radio-group.tsx +59 -0
  42. package/components/ui/separator.tsx +27 -0
  43. package/components/ui/switch.tsx +105 -0
  44. package/components/ui/text.tsx +30 -0
  45. package/components/ui/tooltip.tsx +46 -0
  46. package/components.json +7 -0
  47. package/global.css +61 -0
  48. package/index.js +12 -0
  49. package/lib/android-navigation-bar.ts +11 -0
  50. package/lib/constants.ts +18 -0
  51. package/lib/icons/ArrowRight.tsx +4 -0
  52. package/lib/icons/Check.tsx +4 -0
  53. package/lib/icons/ChevronDown.tsx +4 -0
  54. package/lib/icons/ChevronRight.tsx +4 -0
  55. package/lib/icons/ChevronUp.tsx +4 -0
  56. package/lib/icons/ChevronsRight.tsx +4 -0
  57. package/lib/icons/CircleSlash.tsx +4 -0
  58. package/lib/icons/CircleX.tsx +4 -0
  59. package/lib/icons/Code.tsx +4 -0
  60. package/lib/icons/EllipsisVertical.tsx +4 -0
  61. package/lib/icons/EyeOff.tsx +4 -0
  62. package/lib/icons/File.tsx +4 -0
  63. package/lib/icons/Folder.tsx +4 -0
  64. package/lib/icons/Folders.tsx +4 -0
  65. package/lib/icons/Info.tsx +4 -0
  66. package/lib/icons/MonitorSmartphone.tsx +4 -0
  67. package/lib/icons/MoonStar.tsx +4 -0
  68. package/lib/icons/OctagonX.tsx +4 -0
  69. package/lib/icons/RefreshCw.tsx +4 -0
  70. package/lib/icons/ShieldX.tsx +4 -0
  71. package/lib/icons/Sun.tsx +4 -0
  72. package/lib/icons/TextCursorInput.tsx +4 -0
  73. package/lib/icons/Trash.tsx +4 -0
  74. package/lib/icons/ViewIcon.tsx +4 -0
  75. package/lib/icons/X.tsx +4 -0
  76. package/lib/icons/iconWithClassName.ts +14 -0
  77. package/lib/utils.ts +6 -0
  78. package/metro.config.js +6 -0
  79. package/nativewind-env.d.ts +1 -0
  80. package/package.json +89 -0
  81. package/resourceViews/Container/ContainerConfig.tsx +13 -0
  82. package/resourceViews/Container/ContainerView.tsx +148 -0
  83. package/resourceViews/RawCode/RawCodeConfig.tsx +11 -0
  84. package/resourceViews/RawCode/RawCodeEditor.tsx +37 -0
  85. package/resourceViews/RawCode/RawCodeView.tsx +67 -0
  86. package/scripts/adjust-server-paths.js +37 -0
  87. package/scripts/adjust-standalone-paths.js +28 -0
  88. package/tailwind.config.js +69 -0
  89. package/test-server/server-config.json +75 -0
  90. package/test-server/solid-css-seed.json +11 -0
  91. package/tsconfig.json +19 -0
package/.eslintrc.js ADDED
@@ -0,0 +1,13 @@
1
+ module.exports = {
2
+ root: true,
3
+ extends: [
4
+ '@react-native-community',
5
+ 'plugin:prettier/recommended', // Enables eslint-plugin-prettier and eslint-config-prettier
6
+ ],
7
+ plugins: ['prettier'],
8
+ rules: {
9
+ 'prettier/prettier': ['error'],
10
+ 'react/no-unstable-nested-components': 0,
11
+ '@typescript-eslint/no-unused-vars': 1,
12
+ },
13
+ };
@@ -0,0 +1,459 @@
1
+ import { LdoJsonldContext } from "@ldo/ldo";
2
+
3
+ /**
4
+ * =============================================================================
5
+ * profileContext: JSONLD Context for profile
6
+ * =============================================================================
7
+ */
8
+ export const profileContext: LdoJsonldContext = {
9
+ type: {
10
+ "@id": "@type",
11
+ },
12
+ Person: {
13
+ "@id": "http://schema.org/Person",
14
+ "@context": {
15
+ type: {
16
+ "@id": "@type",
17
+ },
18
+ fn: {
19
+ "@id": "http://www.w3.org/2006/vcard/ns#fn",
20
+ "@type": "http://www.w3.org/2001/XMLSchema#string",
21
+ },
22
+ name: {
23
+ "@id": "http://xmlns.com/foaf/0.1/name",
24
+ "@type": "http://www.w3.org/2001/XMLSchema#string",
25
+ },
26
+ hasAddress: {
27
+ "@id": "http://www.w3.org/2006/vcard/ns#hasAddress",
28
+ "@type": "@id",
29
+ "@isCollection": true,
30
+ },
31
+ hasEmail: {
32
+ "@id": "http://www.w3.org/2006/vcard/ns#hasEmail",
33
+ "@type": "@id",
34
+ "@isCollection": true,
35
+ },
36
+ hasPhoto: {
37
+ "@id": "http://www.w3.org/2006/vcard/ns#hasPhoto",
38
+ "@type": "@id",
39
+ },
40
+ img: {
41
+ "@id": "http://xmlns.com/foaf/0.1/img",
42
+ "@type": "http://www.w3.org/2001/XMLSchema#string",
43
+ },
44
+ hasTelephone: {
45
+ "@id": "http://www.w3.org/2006/vcard/ns#hasTelephone",
46
+ "@type": "@id",
47
+ "@isCollection": true,
48
+ },
49
+ phone: {
50
+ "@id": "http://www.w3.org/2006/vcard/ns#phone",
51
+ "@type": "http://www.w3.org/2001/XMLSchema#string",
52
+ },
53
+ organizationName: {
54
+ "@id": "http://www.w3.org/2006/vcard/ns#organization-name",
55
+ "@type": "http://www.w3.org/2001/XMLSchema#string",
56
+ },
57
+ role: {
58
+ "@id": "http://www.w3.org/2006/vcard/ns#role",
59
+ "@type": "http://www.w3.org/2001/XMLSchema#string",
60
+ },
61
+ trustedApp: {
62
+ "@id": "http://www.w3.org/ns/auth/acl#trustedApp",
63
+ "@type": "@id",
64
+ "@isCollection": true,
65
+ },
66
+ key: {
67
+ "@id": "http://www.w3.org/ns/auth/cert#key",
68
+ "@type": "@id",
69
+ "@isCollection": true,
70
+ },
71
+ inbox: {
72
+ "@id": "http://www.w3.org/ns/ldp#inbox",
73
+ "@type": "@id",
74
+ },
75
+ preferencesFile: {
76
+ "@id": "http://www.w3.org/ns/pim/space#preferencesFile",
77
+ "@type": "@id",
78
+ },
79
+ storage: {
80
+ "@id": "http://www.w3.org/ns/pim/space#storage",
81
+ "@type": "@id",
82
+ "@isCollection": true,
83
+ },
84
+ account: {
85
+ "@id": "http://www.w3.org/ns/solid/terms#account",
86
+ "@type": "@id",
87
+ },
88
+ privateTypeIndex: {
89
+ "@id": "http://www.w3.org/ns/solid/terms#privateTypeIndex",
90
+ "@type": "@id",
91
+ "@isCollection": true,
92
+ },
93
+ publicTypeIndex: {
94
+ "@id": "http://www.w3.org/ns/solid/terms#publicTypeIndex",
95
+ "@type": "@id",
96
+ "@isCollection": true,
97
+ },
98
+ knows: {
99
+ "@id": "http://xmlns.com/foaf/0.1/knows",
100
+ "@type": "@id",
101
+ "@isCollection": true,
102
+ },
103
+ },
104
+ },
105
+ Person2: {
106
+ "@id": "http://xmlns.com/foaf/0.1/Person",
107
+ "@context": {
108
+ type: {
109
+ "@id": "@type",
110
+ },
111
+ fn: {
112
+ "@id": "http://www.w3.org/2006/vcard/ns#fn",
113
+ "@type": "http://www.w3.org/2001/XMLSchema#string",
114
+ },
115
+ name: {
116
+ "@id": "http://xmlns.com/foaf/0.1/name",
117
+ "@type": "http://www.w3.org/2001/XMLSchema#string",
118
+ },
119
+ hasAddress: {
120
+ "@id": "http://www.w3.org/2006/vcard/ns#hasAddress",
121
+ "@type": "@id",
122
+ "@isCollection": true,
123
+ },
124
+ hasEmail: {
125
+ "@id": "http://www.w3.org/2006/vcard/ns#hasEmail",
126
+ "@type": "@id",
127
+ "@isCollection": true,
128
+ },
129
+ hasPhoto: {
130
+ "@id": "http://www.w3.org/2006/vcard/ns#hasPhoto",
131
+ "@type": "@id",
132
+ },
133
+ img: {
134
+ "@id": "http://xmlns.com/foaf/0.1/img",
135
+ "@type": "http://www.w3.org/2001/XMLSchema#string",
136
+ },
137
+ hasTelephone: {
138
+ "@id": "http://www.w3.org/2006/vcard/ns#hasTelephone",
139
+ "@type": "@id",
140
+ "@isCollection": true,
141
+ },
142
+ phone: {
143
+ "@id": "http://www.w3.org/2006/vcard/ns#phone",
144
+ "@type": "http://www.w3.org/2001/XMLSchema#string",
145
+ },
146
+ organizationName: {
147
+ "@id": "http://www.w3.org/2006/vcard/ns#organization-name",
148
+ "@type": "http://www.w3.org/2001/XMLSchema#string",
149
+ },
150
+ role: {
151
+ "@id": "http://www.w3.org/2006/vcard/ns#role",
152
+ "@type": "http://www.w3.org/2001/XMLSchema#string",
153
+ },
154
+ trustedApp: {
155
+ "@id": "http://www.w3.org/ns/auth/acl#trustedApp",
156
+ "@type": "@id",
157
+ "@isCollection": true,
158
+ },
159
+ key: {
160
+ "@id": "http://www.w3.org/ns/auth/cert#key",
161
+ "@type": "@id",
162
+ "@isCollection": true,
163
+ },
164
+ inbox: {
165
+ "@id": "http://www.w3.org/ns/ldp#inbox",
166
+ "@type": "@id",
167
+ },
168
+ preferencesFile: {
169
+ "@id": "http://www.w3.org/ns/pim/space#preferencesFile",
170
+ "@type": "@id",
171
+ },
172
+ storage: {
173
+ "@id": "http://www.w3.org/ns/pim/space#storage",
174
+ "@type": "@id",
175
+ "@isCollection": true,
176
+ },
177
+ account: {
178
+ "@id": "http://www.w3.org/ns/solid/terms#account",
179
+ "@type": "@id",
180
+ },
181
+ privateTypeIndex: {
182
+ "@id": "http://www.w3.org/ns/solid/terms#privateTypeIndex",
183
+ "@type": "@id",
184
+ "@isCollection": true,
185
+ },
186
+ publicTypeIndex: {
187
+ "@id": "http://www.w3.org/ns/solid/terms#publicTypeIndex",
188
+ "@type": "@id",
189
+ "@isCollection": true,
190
+ },
191
+ knows: {
192
+ "@id": "http://xmlns.com/foaf/0.1/knows",
193
+ "@type": "@id",
194
+ "@isCollection": true,
195
+ },
196
+ },
197
+ },
198
+ fn: {
199
+ "@id": "http://www.w3.org/2006/vcard/ns#fn",
200
+ "@type": "http://www.w3.org/2001/XMLSchema#string",
201
+ },
202
+ name: {
203
+ "@id": "http://xmlns.com/foaf/0.1/name",
204
+ "@type": "http://www.w3.org/2001/XMLSchema#string",
205
+ },
206
+ hasAddress: {
207
+ "@id": "http://www.w3.org/2006/vcard/ns#hasAddress",
208
+ "@type": "@id",
209
+ "@isCollection": true,
210
+ },
211
+ countryName: {
212
+ "@id": "http://www.w3.org/2006/vcard/ns#country-name",
213
+ "@type": "http://www.w3.org/2001/XMLSchema#string",
214
+ },
215
+ locality: {
216
+ "@id": "http://www.w3.org/2006/vcard/ns#locality",
217
+ "@type": "http://www.w3.org/2001/XMLSchema#string",
218
+ },
219
+ postalCode: {
220
+ "@id": "http://www.w3.org/2006/vcard/ns#postal-code",
221
+ "@type": "http://www.w3.org/2001/XMLSchema#string",
222
+ },
223
+ region: {
224
+ "@id": "http://www.w3.org/2006/vcard/ns#region",
225
+ "@type": "http://www.w3.org/2001/XMLSchema#string",
226
+ },
227
+ streetAddress: {
228
+ "@id": "http://www.w3.org/2006/vcard/ns#street-address",
229
+ "@type": "http://www.w3.org/2001/XMLSchema#string",
230
+ },
231
+ hasEmail: {
232
+ "@id": "http://www.w3.org/2006/vcard/ns#hasEmail",
233
+ "@type": "@id",
234
+ "@isCollection": true,
235
+ },
236
+ Dom: {
237
+ "@id": "http://www.w3.org/2006/vcard/ns#Dom",
238
+ "@context": {
239
+ type: {
240
+ "@id": "@type",
241
+ },
242
+ value: {
243
+ "@id": "http://www.w3.org/2006/vcard/ns#value",
244
+ "@type": "@id",
245
+ },
246
+ },
247
+ },
248
+ Home: {
249
+ "@id": "http://www.w3.org/2006/vcard/ns#Home",
250
+ "@context": {
251
+ type: {
252
+ "@id": "@type",
253
+ },
254
+ value: {
255
+ "@id": "http://www.w3.org/2006/vcard/ns#value",
256
+ "@type": "@id",
257
+ },
258
+ },
259
+ },
260
+ ISDN: {
261
+ "@id": "http://www.w3.org/2006/vcard/ns#ISDN",
262
+ "@context": {
263
+ type: {
264
+ "@id": "@type",
265
+ },
266
+ value: {
267
+ "@id": "http://www.w3.org/2006/vcard/ns#value",
268
+ "@type": "@id",
269
+ },
270
+ },
271
+ },
272
+ Internet: {
273
+ "@id": "http://www.w3.org/2006/vcard/ns#Internet",
274
+ "@context": {
275
+ type: {
276
+ "@id": "@type",
277
+ },
278
+ value: {
279
+ "@id": "http://www.w3.org/2006/vcard/ns#value",
280
+ "@type": "@id",
281
+ },
282
+ },
283
+ },
284
+ Intl: {
285
+ "@id": "http://www.w3.org/2006/vcard/ns#Intl",
286
+ "@context": {
287
+ type: {
288
+ "@id": "@type",
289
+ },
290
+ value: {
291
+ "@id": "http://www.w3.org/2006/vcard/ns#value",
292
+ "@type": "@id",
293
+ },
294
+ },
295
+ },
296
+ Label: {
297
+ "@id": "http://www.w3.org/2006/vcard/ns#Label",
298
+ "@context": {
299
+ type: {
300
+ "@id": "@type",
301
+ },
302
+ value: {
303
+ "@id": "http://www.w3.org/2006/vcard/ns#value",
304
+ "@type": "@id",
305
+ },
306
+ },
307
+ },
308
+ Parcel: {
309
+ "@id": "http://www.w3.org/2006/vcard/ns#Parcel",
310
+ "@context": {
311
+ type: {
312
+ "@id": "@type",
313
+ },
314
+ value: {
315
+ "@id": "http://www.w3.org/2006/vcard/ns#value",
316
+ "@type": "@id",
317
+ },
318
+ },
319
+ },
320
+ Postal: {
321
+ "@id": "http://www.w3.org/2006/vcard/ns#Postal",
322
+ "@context": {
323
+ type: {
324
+ "@id": "@type",
325
+ },
326
+ value: {
327
+ "@id": "http://www.w3.org/2006/vcard/ns#value",
328
+ "@type": "@id",
329
+ },
330
+ },
331
+ },
332
+ Pref: {
333
+ "@id": "http://www.w3.org/2006/vcard/ns#Pref",
334
+ "@context": {
335
+ type: {
336
+ "@id": "@type",
337
+ },
338
+ value: {
339
+ "@id": "http://www.w3.org/2006/vcard/ns#value",
340
+ "@type": "@id",
341
+ },
342
+ },
343
+ },
344
+ Work: {
345
+ "@id": "http://www.w3.org/2006/vcard/ns#Work",
346
+ "@context": {
347
+ type: {
348
+ "@id": "@type",
349
+ },
350
+ value: {
351
+ "@id": "http://www.w3.org/2006/vcard/ns#value",
352
+ "@type": "@id",
353
+ },
354
+ },
355
+ },
356
+ X400: {
357
+ "@id": "http://www.w3.org/2006/vcard/ns#X400",
358
+ "@context": {
359
+ type: {
360
+ "@id": "@type",
361
+ },
362
+ value: {
363
+ "@id": "http://www.w3.org/2006/vcard/ns#value",
364
+ "@type": "@id",
365
+ },
366
+ },
367
+ },
368
+ value: {
369
+ "@id": "http://www.w3.org/2006/vcard/ns#value",
370
+ "@type": "@id",
371
+ },
372
+ hasPhoto: {
373
+ "@id": "http://www.w3.org/2006/vcard/ns#hasPhoto",
374
+ "@type": "@id",
375
+ },
376
+ img: {
377
+ "@id": "http://xmlns.com/foaf/0.1/img",
378
+ "@type": "http://www.w3.org/2001/XMLSchema#string",
379
+ },
380
+ hasTelephone: {
381
+ "@id": "http://www.w3.org/2006/vcard/ns#hasTelephone",
382
+ "@type": "@id",
383
+ "@isCollection": true,
384
+ },
385
+ phone: {
386
+ "@id": "http://www.w3.org/2006/vcard/ns#phone",
387
+ "@type": "http://www.w3.org/2001/XMLSchema#string",
388
+ },
389
+ organizationName: {
390
+ "@id": "http://www.w3.org/2006/vcard/ns#organization-name",
391
+ "@type": "http://www.w3.org/2001/XMLSchema#string",
392
+ },
393
+ role: {
394
+ "@id": "http://www.w3.org/2006/vcard/ns#role",
395
+ "@type": "http://www.w3.org/2001/XMLSchema#string",
396
+ },
397
+ trustedApp: {
398
+ "@id": "http://www.w3.org/ns/auth/acl#trustedApp",
399
+ "@type": "@id",
400
+ "@isCollection": true,
401
+ },
402
+ mode: {
403
+ "@id": "http://www.w3.org/ns/auth/acl#mode",
404
+ "@isCollection": true,
405
+ },
406
+ Append: "http://www.w3.org/ns/auth/acl#Append",
407
+ Control: "http://www.w3.org/ns/auth/acl#Control",
408
+ Read: "http://www.w3.org/ns/auth/acl#Read",
409
+ Write: "http://www.w3.org/ns/auth/acl#Write",
410
+ origin: {
411
+ "@id": "http://www.w3.org/ns/auth/acl#origin",
412
+ "@type": "@id",
413
+ },
414
+ key: {
415
+ "@id": "http://www.w3.org/ns/auth/cert#key",
416
+ "@type": "@id",
417
+ "@isCollection": true,
418
+ },
419
+ modulus: {
420
+ "@id": "http://www.w3.org/ns/auth/cert#modulus",
421
+ "@type": "http://www.w3.org/2001/XMLSchema#string",
422
+ },
423
+ exponent: {
424
+ "@id": "http://www.w3.org/ns/auth/cert#exponent",
425
+ "@type": "http://www.w3.org/2001/XMLSchema#integer",
426
+ },
427
+ inbox: {
428
+ "@id": "http://www.w3.org/ns/ldp#inbox",
429
+ "@type": "@id",
430
+ },
431
+ preferencesFile: {
432
+ "@id": "http://www.w3.org/ns/pim/space#preferencesFile",
433
+ "@type": "@id",
434
+ },
435
+ storage: {
436
+ "@id": "http://www.w3.org/ns/pim/space#storage",
437
+ "@type": "@id",
438
+ "@isCollection": true,
439
+ },
440
+ account: {
441
+ "@id": "http://www.w3.org/ns/solid/terms#account",
442
+ "@type": "@id",
443
+ },
444
+ privateTypeIndex: {
445
+ "@id": "http://www.w3.org/ns/solid/terms#privateTypeIndex",
446
+ "@type": "@id",
447
+ "@isCollection": true,
448
+ },
449
+ publicTypeIndex: {
450
+ "@id": "http://www.w3.org/ns/solid/terms#publicTypeIndex",
451
+ "@type": "@id",
452
+ "@isCollection": true,
453
+ },
454
+ knows: {
455
+ "@id": "http://xmlns.com/foaf/0.1/knows",
456
+ "@type": "@id",
457
+ "@isCollection": true,
458
+ },
459
+ };