added web link class

pull/37/head
Niko PLP 5 months ago
parent 947afbdceb
commit 01816d000b
  1. 8
      ng-app/src/classes.ts
  2. 5
      ng-app/src/lib/FullLayout.svelte
  3. 1
      ng-app/src/lib/icons/DataClassIcon.svelte

@ -387,6 +387,12 @@ export const official_classes = {
}, },
"ng:compat": ["file:iana:message:rfc822","file:iana:multipart:related"], "ng:compat": ["file:iana:message:rfc822","file:iana:multipart:related"],
}, },
"e:link": {
"ng:crdt": "Graph",
"ng:n": "Web Link",
"ng:a": "HTTP link to a page on the Web",
"ng:compat": [],
},
"e:web": { "e:web": {
"ng:crdt": "Graph", "ng:crdt": "Graph",
//https://www.npmjs.com/package/warcio https://github.com/N0taN3rd/node-warc //https://www.npmjs.com/package/warcio https://github.com/N0taN3rd/node-warc
@ -408,7 +414,7 @@ export const official_classes = {
"mc:link": { "mc:link": {
"ng:crdt": "Graph", "ng:crdt": "Graph",
"ng:n": "Link", "ng:n": "Link",
"ng:a": "Link to a document kept in Magic Carpet", "ng:a": "Link to a document. kept in Magic Carpet",
}, },
"plato/card": { "plato/card": {
"ng:crdt": "Graph", "ng:crdt": "Graph",

@ -1116,6 +1116,11 @@
{/each} {/each}
{/if} {/if}
<MenuItem title={get_class("e:link")["ng:a"]} clickable={ ()=> new_document("e:link") }>
<DataClassIcon dataClass="e:link" {config}/>
<span class="ml-3">{get_class("e:link")["ng:n"]}</span>
</MenuItem>
</ul> </ul>
</div> </div>
</aside> </aside>

@ -109,6 +109,7 @@
"data:grid": Squares2x2, "data:grid": Squares2x2,
"data:geomap": MapPin, "data:geomap": MapPin,
"e:email": Envelope, "e:email": Envelope,
"e:link": Link,
"mc:text": Bars3BottomLeft, "mc:text": Bars3BottomLeft,
"mc:link": Link, "mc:link": Link,
"plato/card": Clipboard, "plato/card": Clipboard,

Loading…
Cancel
Save