New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

patchapp-vote

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

patchapp-vote

adds a little button for saying for "yup" "like" "dig" "+1" or however you want to express acknowledgement/approval.

latest
Source
npmnpm
Version
2.0.2
Version published
Weekly downloads
18
1700%
Maintainers
1
Weekly downloads
 
Created
Source

patchapp-vote

adds a little button for saying for "yup" "like" "dig" "+1" or however you want to express acknowledgement/approval.

"vote" message type allows you to express an acknowledgement or approval for another ssb message. ssb-clients choose how they want to lable this button and most disagree.

This is also a good example of how patchless plugins work.

Firstly this adds a "vote" action on messages (a small button, by giving a message.action) and also vote app.view which gives a screen showing all votes, or more interestingly, all the votes by a given identity. This is accessed via a avatar.action which adds a votes button on their profile page.

This enables you somewhat to be able to use votes as bookmarks.

structure of plugin

gives: message.render, message.action, avatar.action, app.view

needs: sbot.links, sbot.names.getSignifier, confirm.show, sbot.createUserStream, sbot.createLogStream, sbot.get, message.layout

TODO

the name of the button is currently hard wired into the code... but this should at least be pulled from translations or a settings module.

License

MIT

FAQs

Package last updated on 15 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts