jungles-panel

Admin panel for Jungles

npm install jungles-panel
14 downloads in the last week
59 downloads in the last month

Jungles Panel

Control panel for Jungles. It's a single page app for that uses Angular.js.

API

var panel = require('jungles-panel')({ url: /* string: url to jungles-rest */, });

Setup

var panel = require('jungles-panel')({ url: '/jungles/api', });

Url

This is the url pointing to the API where it should get the data. In most cases this will be Jungles Rest.

Mount

app.use('/jungles', panel)

Icons

If you like to set a custom icon on your type you can use the following code:

var type = {
  name: 'picture',
  icon: {
    name: 'icon-picture',
    color: '#000000',
  }
};

For icons we use the awesome font fontawesome (3.2.0). The color is a css color value. Icon, name and color are all optional and will default to a gray icon-file icon.

Forms

Angular.js supports html5 input attributes so you can add required, type='email', ... If a form isn't valid on the client you wont be able to click the save button.

npm loves you