Skip to content

Releases: simov/express-admin

Blob data types + translations + fixes

12 Apr 11:48
Compare
Choose a tag to compare

Blob data types

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

Translations

Bugfixes

  • Reconnect mysql server on connection lost error - #43
  • Session key for better embedding - #42
  • Bugfix showing error/success message in listview when redirecting from editview (this was introduced in v1.1.8)

SQLite Support

08 Feb 23:39
Compare
Choose a tag to compare

Install the SQLite bindings

Like with PostgreSQL you need to install the SQLite bindings separately

# SQLite only: run this inside the express-admin folder
$ npm install sqlite3@2.2.0

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

Creating new project

  • When prompted for Database type: type sqlite
  • When prompted for Database name: type the /absolute/path/to/your/database.sqlite

Auto incrementing primary keys

Since SQLite has its own build in auto incrementing id field called rowid you can configure your project to use them like this:

  • add this id column definition inside your table's columns array
"columns": [
    {
        "verbose": "id",
        "name": "rowid",
        "control": {
            "text": true
        },
        "type": "int(11)",
        "allowNull": false,
        "defaultValue": null,
        "listview": {
            "show": false
        },
        "editview": {
            "show": false
        }
    },
    ...
]
  • Inside the table key set the primary key to be the rowid of the table
"table": {
    "name": "...",
    "pk": "rowid",
    "verbose": "..."
}

Pull the latest examples from https://github.com/simov/express-admin-examples/ and see how it's done there

Event Hooks

20 Jan 12:39
Compare
Choose a tag to compare

Listview Search Filter

05 Jan 19:48
Compare
Choose a tag to compare
  • Listview search filter
  • Custom column ordering
  • Fixed redirect to last active page in Listview after certain actions taken inside the Editview

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.

New control types

14 Dec 15:02
Compare
Choose a tag to compare

Show many to many columns inside the listview

09 Dec 00:31
Compare
Choose a tag to compare
"listview": {
    "show": true
}
  • add new record button for each column inside the mainview
  • bugfix for many to many with allow null when inserting

File Uploads

05 Dec 13:15
Compare
Choose a tag to compare
  • the default location for file uploads is public/upload make sure you have rights to write there
  • the upload folder location can be configured from the config.json file http://simov.github.io/express-admin-site/#configjson
  • any regular text field can be configured to have a file control inside settings.json
"control": {
    "file": true
}
  • fixed urls path bug in listview

PostgreSQL Support

03 Dec 01:48
Compare
Choose a tag to compare
$ [sudo] npm install [-g] express-admin
# PostgreSQL only: run this inside the express-admin folder
$ npm install pg@2.8.2

http://simov.github.io/express-admin-site/#install

Express Admin Embedding

08 Nov 20:36
Compare
Choose a tag to compare
  • Updated to the latest version of express (3.4.4)
  • Express Admin now can be embedded into existing expressjs application
  • Breaking changes into the custom.json object structure

Migrated to Bootstrap 3

31 Oct 23:45
Compare
Choose a tag to compare
  • Migrated to Bootstrap/Bootswatch 3
  • Overall better support for mobile devices
  • Updated to the latest version of chosen