Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Bootstraped Admin Forms for MongoDB via Mongoose, originally forked from mongoose-admin.
var express = require('express'),
app = express();
require('formage').init(app, express [, models, options]);
Look at \example
directory.
// Site-wide options, and their default values
require('formage').init(app, express, models, {
title: 'Admin',
root: '/admin',
default_section: 'main',
username: 'admin',
password: 'admin'
);
var model = new mongoose.model('songs', schema);
model.label = 'My Songs';
model.singular = 'Song';
// external files specific to this model
model.static = {
js: [ '/js/songs.js' ],
css: ['/css/songs.css' ]
};
// one-document models
model.single = true;
model.formage = {
filters: ['artist', 'year'],
// additional actions on this model
actions: [
{
value: 'release',
label: 'Release',
func: function (user, ids, callback) {
console.log('You just released songs ' + ids);
callback();
}
}
],
// list of fields to be displayed by formage for this model
list: ['number', 'title', 'album', 'artist', 'year'],
// list of order fields
order_by: ['-year', 'album', 'number'],
// list of fields that must be populated
// (see http://mongoosejs.com/docs/api.html#document_Document-populate)
list_populate: ['album'],
// list of fields on which full-text search is available
search: ['title', 'album', 'artist']
};
var schema = new mongoose.Schema({
artist: { type: String, label: 'Who made it?' },
// lang is a two letter ISO 639-1 code as recognized by google
location: { type: Schema.Types.GeoPoint, widget_options: {lang: 'nl'}}
});
MIT
FAQs
Admin GUI addon for mongoose, jugglingdb, or just as a form generator
The npm package formage receives a total of 23 weekly downloads. As such, formage popularity was classified as not popular.
We found that formage demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.