Name: scuttle-tag
Owner: Secure Scuttlebutt Consortium
Description: null
Created: 2018-05-21 21:29:48.0
Updated: 2018-05-21 21:29:50.0
Pushed: 2018-05-16 23:51:23.0
Homepage: null
Size: 34
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Tags depject plugin for secure scuttlebutt which uses patchcore.
gives
observables and async methods for getting and publishing tags on secure scuttlebutt.
rts.needs = nest({
bot.async.publish': 'first',
bot.pull.stream': 'first',
rts.gives = nest({
ag.async': [
'apply',
'create',
'name'
ag.html': [
'edit',
'tag'
ag.obs': [
'tag',
'taggedMessages',
'messageTags',
'messageTagsFrom',
'allTagsFrom',
'allTags'
pe: 'tag',
gged: true | false,
ssage: %msg_id, //the message being tagged
ot: %tag_id, //unless this message is the first message in this tag
anch: %tag_id //ditto
Creates a new tag message and calls cb when done.
Creates a new tag message which applies the tag tag
to the message message
if tagged
is true
. (TODO: default tagged to true)
tag
(required) - id of tag being appliedmessage
(required) - id of message being taggedtagged
(required) - true
if tag is being added, false
if tag is being removedSets the name of a tag and calls cb when done.
tag
(required) - id of tag being namedname
(required) - name being applied to the tagRenders html which allows the tags applied to a message msgId
to be edited.
Renders a tag. If the handleRemove
function is specified then a remove button will be rendered.
Returns a Mutant observable Struct which represents a tag. This struct holds the tagId
and tagName
.
Returns a Mutant observable array of ids of messages. This array is messages that have had the tag tagId
applied by author
.
Returns a Mutant observable list of tagIds which have been applied to the message msgId
.
Returns a Mutant observable list of tagIds which have been applied to the message msgId
by the specified author
.
Returns a Mutant observable array of all tag messages published by an user.