MySQL, MariaDB, PostgreSQL, SQLite admin for Node.js
MIT License
Bot releases are visible (Hide)
server
key is no longer neededapp
was renamed to admin
admin.settings
config should be set the absolute path to your settings.json
fileadmin.readonly
flag replacing the -v
cli argumentadmin.debug
flag replacing the -l
cli argumentadmin.favicon
key to specify a path to a custom favicon.ico file to useadmin.footer
text and URL to use for the admin's footeradmin.locale
path to a custom locale file to useadmin.session
object to configure the underlying session middlewarename
and pass
fields as clear textPublished by simov about 6 years ago
Resolves the security issues.
Published by simov over 7 years ago
Published by simov over 7 years ago
Published by simov over 8 years ago
Fixed
Express Admin static files not being loaded correctly when the admin is embedded and NPM3 is usedPublished by simov almost 9 years ago
See the session
key in the Embedding Example.
fix
missing join on filter by excluded mtm column in listviewfix
show only non empty mtm values in listviewfix
break cell text and fit table in viewport on many columnt in listviewfix
internationalize the dates in listviewfix
internationalize the dates in datetime pickerfix
AM/PM time bug https://github.com/simov/express-admin/pull/61
feature
add table filter in mainview https://github.com/simov/express-admin/pull/73
feature
try to use pg.js if pg is not found https://github.com/simov/express-admin/pull/65
feature
static sql views support https://github.com/simov/express-admin/issues/77
migrate
moment 2.8.3
Published by simov about 10 years ago
Feature
Logical OR checkbox in listview filterFeature
add pre list view event https://github.com/simov/express-admin/issues/58
Features
static select options as objects https://github.com/simov/express-admin/issues/60
Feature
Support multiple schemas for pg. Define schema per table to override the default one. https://github.com/simov/express-admin/issues/48
Migrate
bootstrap 3.2.0, bootswatch 3.2.0, chosen 1.1.0, datetimepicker 2.3.0Migrate
Express4.4.4 https://github.com/simov/express-admin/pull/55
Migrate
Hogan 3.0.2Fix
pg filter by boolean typeFix
always use aliases when joining tables in listview https://github.com/simov/express-admin/issues/59
Fix
chosen select controls are hidden by default to improve performanceFix
filter columns have default value set to nullFix
sqlite string concat on null valuesTranslation
Korean translation https://github.com/simov/express-admin/pull/63
Docs
greatly improved events documentation
Published by simov over 10 years ago
Published by simov over 10 years ago
Inside settings.json
the control type for blob/bytea fields can be configured like this
{
"file": true,
"binary": true
}
This will add an input type=file
control to the editview, but instead uploading the file to the upload folder, it will store it directly into the database.
Currently the support for blob fields is very basic, if you have any comments leave them in the issue tracker
Published by simov over 10 years ago
Like with PostgreSQL you need to install the SQLite bindings separately
# SQLite only: run this inside the express-admin folder
$ npm install [email protected]
The module used is https://github.com/mapbox/node-sqlite3 and it's outlined inside the documentation as well http://simov.github.io/express-admin-site/#install
sqlite
/absolute/path/to/your/database.sqlite
Since SQLite has its own build in auto incrementing id field called rowid
you can configure your project to use them like this:
"columns": [
{
"verbose": "id",
"name": "rowid",
"control": {
"text": true
},
"type": "int(11)",
"allowNull": false,
"defaultValue": null,
"listview": {
"show": false
},
"editview": {
"show": false
}
},
...
]
"table": {
"name": "...",
"pk": "rowid",
"verbose": "..."
}
Pull the latest examples from https://github.com/simov/express-admin-examples/ and see how it's done there
Published by simov over 10 years ago
Published by simov almost 11 years ago
There is a new option available for each table's listview
key inside settings.json
http://simov.github.io/express-admin-site/#settingsjson
"table_name": {
...
"listview": {
"order": { ... },
"page": 25,
"filter": ["column_name1", "column_name2" ...]
}
}
Add any table's column including oneToMany
and manyToMany
columns. Pull the latest examples from https://github.com/simov/express-admin-examples/ and take a look at the controls
table to see how all currently available control types look like inside the Filter panel.
To expand the Filter panel click on the small icon next to the Listview's title.
All filtering options set inside the Filter panel are perceived through the entire user's session. Click on the Clear
button at any time to clear the filtering options.
Published by simov almost 11 years ago
date
, time
, datetime
, year
, radio
and static select
- http://simov.github.io/express-admin-site/#example-column
Published by simov almost 11 years ago
"listview": {
"show": true
}
Published by simov almost 11 years ago
public/upload
make sure you have rights to write thereconfig.json
file http://simov.github.io/express-admin-site/#configjson
settings.json
"control": {
"file": true
}
Published by simov almost 11 years ago
$ [sudo] npm install [-g] express-admin
# PostgreSQL only: run this inside the express-admin folder
$ npm install [email protected]
http://simov.github.io/express-admin-site/#install
pg
key http://simov.github.io/express-admin-site/#configjson
Published by simov almost 11 years ago
custom.json
object structure
Published by simov almost 11 years ago