Express Admin Versions Save

MySQL, MariaDB, PostgreSQL, SQLite admin for Node.js

1.2.1

10 years ago

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

1.2.0

10 years ago

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 [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

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

1.1.9

10 years ago

1.1.8

10 years ago
  • 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.

1.1.7

10 years ago

1.1.6

10 years ago
"listview": {
    "show": true
}
  • add new record button for each column inside the mainview
  • bugfix for many to many with allow null when inserting

1.1.5

10 years ago
  • 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

1.1.4

10 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

1.1.2

10 years ago
  • 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

1.1.0

10 years ago
  • Migrated to Bootstrap/Bootswatch 3
  • Overall better support for mobile devices
  • Updated to the latest version of chosen