Socket
Socket
Sign inDemoInstall

sails-adminpanel

Package Overview
Dependencies
Maintainers
1
Versions
171
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sails-adminpanel

Basic adminpanel for Sails 1x


Version published
Weekly downloads
406
increased by158.6%
Maintainers
1
Weekly downloads
 
Created
Source

NodeJS AdminPanel

Autogeniration adminpanel | internationalization | User & Group access rights | Policies | Modern UI

In nearest future: Customization dashboard | Custom widgets | Wizards

sails-adminpanel readme for sails v1.x

sails v0.x is not supported

TODO:

  1. Check csrf to fileUpload
  2. Docs finish

for fileUploader

csrf: false

Installation

To install this hook you will need to run:

npm install sails-adminpanel

Currently, we have to patch sails framework, so you install our patches for using all functionality. Without these patches i18n will not work. Read how to install patch

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: {

        pages: {

            title: 'Pages',
            model: 'Page',

            list: {
                fields: {
                    id: 'ID',
                    name: 'Article name'
                }
            },

            edit: {
                fields: {
                    name: 'Article name',
                    content: {
                        type: 'wysiwyg',
                        title: 'Article body'
                    }
                }
            }
        }
    }
};

And your admin panel will be accessible under: http://127.0.0.1:port/admin

Documentation

Take a look into docs folder. There are a lot of docs about configuration and usage.

UI reference

We use VmWare Clarity framework as UI framework

Clarity docs https://vmware.github.io/clarity/documentation/v0.13/

for build styles - sass --watch clarity/src:assets/styles/

License

MIT

Keywords

FAQs

Package last updated on 29 Jun 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc