0.1.2 • Published 6 years ago

@neoblog/plugin-control-panel v0.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

neoblog-plugin-control-panel

npm

Article/config management panel for neoblog, written in Elm .

Features

  • Article
    • list
    • create
    • modify
    • delete
    • group by tags
  • Config
    • read
    • write
    • lint

Usage

Install @neoblog/plugin-control-panel with npm, and see config example at config.js .

Once plugin was installed, you can login at /control/panel .

Plugin Options

new PluginControlPanel(options: IPluginOptions);

interface IPluginOptions {
    usr: string;        // login username
    pwd: string;        // login password
    jwtSecret: string;  // JSON Web Token secret
    jwtOptions?: any;   // jsonwebtoken sign options (see below)
}

jwtOptions default to { expiresIn: '2d' }. Learn more here for infomation about Jwt options.