Giter Club home page Giter Club logo

editor-node's Introduction

Editor Node.JS libraries - Editing for DataTables

Editor is a Create, Read, Update and Delete (CRUD) plug-in for DataTables that provides the ability to easily add, edit and delete rows on a database that is displayed by a DataTable.

The software available in this repo / package, acts as server-side libraries for Editor in Node.JS environments, enabling full CRUD actions with a database. Knex.JS is used as the database abstraction providing support for a wide range of databases.

Full details on how to get started with Editor for Node.JS are available here. You might also wish to download the demo package which includes a wide range of examples showing how Editor can be used, both on the client-side and server-side.

Also available for Editor is Generator, a web-based interface which allows you to enter information about a table and its fields that you wish to be editable, and Generator will create all of the code required for you.

Finally, if you require any help with Editor and its Node.JS libraries, professional support is available.

Enjoy using Editor!

editor-node's People

Contributors

allanjard avatar aschuett avatar dependabot[bot] avatar hannesoberreiter avatar jarrettj avatar sandydatatables avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

editor-node's Issues

Numeric primary key column can't handle zeroes.

Hi, first off, thanks for the great plugin! The documentation's great, and I got set up with a working webpage for trying out Editor couple days into my trial. There's been some issues, but mostly nothing I couldn't work around.

One thing that kept recurring though was that if I have an SQL table with a primary key column of Decimal type, Editor can't seem to handle it. The change goes through to the back-end, but then Editor throws an error, row 342 in editor.js, 'Primary key element is not available in the data set'. The table is unusable by Editors front-end after this, it fails to load every time until I go remove the offending value.

Looking at the code, there's this null check which seems to discard the valid zero values a few rows above that previously mentioned row:

            if (flat) {
                val = row[column] ?
                    row[column] :
                    null;
            }

I can probably make quick fixes for my own setup here, but the handling here needs improvement. Maybe add another branch for extended handling if the primary key column is any number-type?

Vulnerability knex <2.4.0

GHSA-4jv9-3563-23j3

node_modules/datatables.net-editor-server/node_modules/knex
node_modules/knex
  datatables.net-editor-server  *
  Depends on vulnerable versions of knex
  node_modules/datatables.net-editor-server

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.