Rotonde / rotonde-client

Rotonde Base Client
https://client-neauoire.hashbase.io/
MIT License
227 stars 49 forks source link

Add very basic "event" handling in Portal.js; Build sameAs on it #157

Closed 0x0ade closed 6 years ago

0x0ade commented 6 years ago

Additionally replaces a few indexOfs with has_hash, fixes zombie posts hanging around and removes $rotonde from the Portals tab (those fixes could be separated and applied to master, but aren't critical).

Portal now has got a basic onparse handler array, which should contain functions in the format of (json) => {...; return true / false;}, true meaning that the portal will be registered, false meaning that the portal will be ignored. this is the portal the handler's running against at the moment.

The connection queue now accepts objects with url and optional oncreate and onparse handlers. oncreate allows setting is_remote = true; early enough.