Skip to content

MySQL, MariaDB, SQLite, PostgreSQL admin for NodeJS

License

Notifications You must be signed in to change notification settings

osricwong/express-admin

 
 

Repository files navigation

[What's new updates]

[2019-05-05] add preListData and preEditView for events

preListData is called before getting data

preEditView is called after getting data and before render to screen

[2019-04-22] support external upload file adapter (e.g. custom AWS S3 adapter)

settings.json


"control": {
    "file": true,
    "useUploadAdapter": true
}

custom.json

"adapters": {
  "uploadAdapter": "/src/uploadAdapter.js"
}

/src/uploadAdapter.js


exports.upload = function ({args, file, type, target, data, fname, cb}) {
    console.log('args.name: ', args.name)
    console.log('data: ', data)
    console.log('fname: ', fname)
    cb(null, fname);
}

For cb function, 1st argument is error object, 2nd argument is value will store into database. (you may put a image link if you use third party file server)

[2019-01-22] Multiple users login with different tables access right

users.json

{
  "user1": {
      "name": "user1",
      "admin": true,
      "salt": "...",
      "hash": "...",
      "dir": "userA"
  },
  "user2": {
      "name": "user2",
      "admin": true,
      "salt": "...",
      "hash": "...",
      "dir": "userB"
  },
}
  • Create userA and userB folder in users.json directory level.
  • Create settings.json file into userA and userB folders.

Express Admin with better defaults. Don't edit your IDs or TimeStamps!

img-screenshot


img-npm-version img-travis

License

The MIT License (MIT)

Copyright (c) 2012-present Simeon Velichkov simeonvelichkov@gmail.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

MySQL, MariaDB, SQLite, PostgreSQL admin for NodeJS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 84.1%
  • HTML 12.5%
  • CSS 3.2%
  • Makefile 0.2%