
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
sails-adminpanel
Advanced tools
modules install
npm install --save connect-flash
npm install consolidate --save
npm install jade --save
config/views.js
extension: 'jade',
getRenderFn: function() {
// Import `consolidate`.
var cons = require('consolidate');
// Return the rendering function for Swig.
return cons.jade;
},
config/http.js
flash: require('connect-flash')(),
order: [
'cookieParser',
'session',
'flash',
'bodyParser',
'compress',
'poweredBy',
'router',
'www',
'favicon',
],
config/security.js for fileUploader
csrf: false
Admin panel generator for Sails.js applications v0.11+
This hook is under active development. Please be careful lot of functionality will be added. And some configs could change from version to version
To install this hook you will need to run:
npm install --save sails-adminpanel
Then you will need to create a config file for admin panel generator into config/adminpanel.js
This is example of this file:
'use strict';
module.exports.adminpanel = {
instances: {
users: {
title: 'Users',
model: 'User',
list: {
fields: {
id: 'ID',
email: 'Email',
active: 'Active',
admin: 'Admin',
createdAt: 'Created'
}
},
edit: {
fields: {
email: 'Email',
active: {
title: 'Active'
},
admin: {
title: 'Admin',
disabled: true
}
}
}
}
}
};
And your admin panel will be accesible under: http://yoururl.com/admin/users
Take a look into docs
folder. There are lot of docs about configuration and usage.
This repo contains a hook, one of the building blocks Sails is made out of.
The versioning of a hook closely mirrors that of the Sails version it depends on. While the "patch" version (i.e. the "Z" in "X.Y.Z") will normally differ from that of Sails core, the "minor" version number (i.e. the "Y" in "X.Y.Z") of this hook is also the minor version of Sails for which it is designed. For instance, if a hook is version 0.11.9
, it is designed for Sails ^0.11.0
(that means it'll work from 0.11.0 all the way up until 0.12.0).
Yes. For now only Jade.
Yes, see the v0.11 migration guide. You probably won't need to change anything unless you were extensively using the old Socket.io v0.9 configuration.
for build styles - sass --watch clarity/src:assets/styles/
Clarity docs https://vmware.github.io/clarity/documentation/v0.13/
MIT
FAQs
Basic adminpanel for Sails 1x
The npm package sails-adminpanel receives a total of 17 weekly downloads. As such, sails-adminpanel popularity was classified as not popular.
We found that sails-adminpanel demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.