
Product
Socket Now Supports pylock.toml Files
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
kumu-widgets
Advanced tools
The official Kumu markdown widget collection.
We've extended the marked markdown library to support custom widgets
through a simple [[widget]]
syntax. Widgets are ridiculously easy to write
and we'd love to accept pull requests for new ones! (See the contributing
guide at the bottom.)
Widgets are handled through a simple uri-based router. Required parameters are handled through named parameters, with optional parameters handled through the query string.
[[vimeo/86389108?aspect=hd]]
All you need is a function to render the widget and a route to attach it to.
Here's the full vimeo widget as an example:
// lib/widgets/vimeo/vimeo.js
function render(id, options) {
return this.template("vimeo/vimeo", {
src: "//player.vimeo.com/video/" + id + "?title=0&byline=0&portrait=0",
aspect: options.aspect
});
}
module.exports = function(widgets) {
widgets.add("vimeo/:id", render, {aspect: "hd"});
};
<!-- lib/widgets/vimeo/vimeo.jst -->
<div class="widget-container" data-aspect-ratio="<%- aspect %>">
<div class="widget-content">
<iframe src="<%- src %>" frameborder="0" width="100%" height="100%"
webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</div>
</div>
(Note: Templates are rendered using underscore templates.)
We'd love for you to add your own custom widgets. It's easy to get started.
// Step 1. Make sure node / npm installed
node --version
npm --version
// Step 2. Install mocha globally (for testing, may require sudo)
npm install -g mocha
Basic process for adding new widgets:
git checkout -b add-mywidget
make install
test/widgets/vimeo
for example)Please limit each pull request to a single widget.
Run make test
to run the test suite.
FAQs
Widgets =======
The npm package kumu-widgets receives a total of 0 weekly downloads. As such, kumu-widgets popularity was classified as not popular.
We found that kumu-widgets demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.