Giter VIP home page Giter VIP logo

express-admin-examples's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

express-admin-examples's Issues

Could not find `sqlite3` module

Hi,

I'm trying to use this project in my app but having a hard time getting the basics set up.

I'm following the install guide on https://github.com/simov/express-admin-examples

  • git clone the repo
  • run npm install
  • updated the path for my db in config/sqlite/config.json
  • node fixtures/sqlite/import.js (i have a sqlite db)
  • running admin config/sqlite/ gives the error > Could not find sqlite3 module

I'm running Node v10.6.0

and I checked that I do have sqlite3 installed.

here's the package.json

{
    "name": "express-admin-examples",
    "version": "1.0.0",
    "description": "Examples for Express Admin.",
    "license": "MIT",
    "homepage": "https://github.com/simov/express-admin-examples",
    "author": {
        "name": "simo",
        "email": "[email protected]"
    },
    "repository": {
        "type": "git",
        "url": "git://github.com/simov/express-admin-examples.git"
    },
    "dependencies": {
        "cloudinary": "*",
        "express": "3.4.4",
        "moment": "*",
        "sqlite3": "^4.1.0"
    },
    "scripts": {
        "postinstall": "node path.js"
    }
}

I've tried searching online but nothing seems to solve it. Could you advise what I might have done wrong here?

Thanks and appreciate your help on this. Let me know if you need anything to debug this issue.

Empty schema!

Relatively new to Postgresql here, I did everything in the instructions regarding the Postgresql setup, however I am getting this error while running admin config/pg

Could this be that I created the database under the wrong user?

Error in fixtures/mysql/insert.sql file

Hi guys,

I tried to execute this command mysql -p --user=root 'express-admin-examples' < fixtures/mysql/insert.sql while I was following the steps from here.
Then MySQL returned the following error.
ERROR 1364 (HY000) at line 195: Field 'binary' doesn't have a default value

To fix this I had to edit the query at the INSERTS into the table controls_inline. I added the column binary and a default value that was a hex string.

It would be fine to fix this to the database creation works for MySQL.

Thanks.

How to override the default views/templates

HI @simov ,
Do we have any way to override the default layouts, templates or views? e.g. I need to customize the header of the site. I have to apply ACL (access control logic) and based on that show things and hide certain things.

Thanks

Add new item page

Hi,
When we pass to the next page in list page then we click to "add new item" button, we get page 404 !!!

update sqlite version.

the supportet sqlite version does not work with npm. When using the latest sqlite version I get this error:

Express Admin listening on port 5000
GET / 302 9.492 ms - 56
GET /login 200 13.817 ms - 8092
GET /express-admin.css 304 5.355 ms - -
GET /csslib/bootstrap.min.css 304 58.091 ms - -
GET /csslib/bootstrap-datetimepicker.min.css 304 57.336 ms - -
GET /csslib/chosen.min.css 304 55.270 ms - -
GET /jslib/jquery-1.9.1.min.js 304 53.856 ms - -
GET /jslib/bootstrap.min.js 304 256.042 ms - -
GET /express-admin.js 304 1.050 ms - -
GET /jslib/bootstrap-datetimepicker.min.js 304 7.610 ms - -
GET /jslib/chosen.jquery.min.js 304 4.954 ms - -
GET /jslib/cookie.js 304 4.627 ms - -
GET /bootswatch/default/bootstrap.min.css 304 70.514 ms - -
GET /favicon.ico 304 0.923 ms - -
POST /login 302 63.730 ms - 46
TypeError: Cannot read property 'length' of undefined
at Object.select (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express-admin\lib\qb\lst.js:43:31)
at _data (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express-admin\routes\listview.js:38:12)
at exports.get (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express-admin\routes\listview.js:26:5)
at Layer.handle [as handle_request] (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express\lib\router\layer.js:95:5)
at next (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express\lib\router\route.js:137:13)
at exports.restrict (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express-admin\routes\auth.js:20:34)
at Layer.handle [as handle_request] (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express\lib\router\layer.js:95:5)
at next (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express\lib\router\route.js:137:13)
at Route.dispatch (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express\lib\router\layer.js:95:5)
at C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express\lib\router\index.js:281:22
at Function.process_params (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express\lib\router\index.js:335:12)
at next (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express\lib\router\index.js:275:10)
at C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express-admin\app.js:249:9
at Layer.handle [as handle_request] (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express\lib\router\index.js:317:13)
GET / 500 2.774 ms - 2420

Disable delete button

Is there option to disable delete on some record, I saw that you I can disable edit mode that disable delete two, but I want to stop only delete.

One to many relation: string PK type

Hi,
In oneToMany relation, in case we have "pk" with a string type we get a prob in edit view.

I try this solution because this module don't provide the possibility to create static options in a select input .

Is there a way to use dynamic upload path?

Hello!
I would like to have dynamic file upload path, because if i will upload all the files into one directory, it will lead to problems, due to large amount of files.

How can i easily (or not) make express-admin to get upload path as a function result?

The example is - songs library, including mp3/wav/etc/etc for my radio
I would like to store all the files i upload in the directories like {artist_id}/{album_id}/{track_name}.{ext}

And when i would edit any existing entry in my database, i'd love to make express-admin to seek file in that dynamic directory path

Thanks foward :-)
I am relatively new to GitHub, but experienced programmer

Disable the display of "view4" in mainview

Hi,

I case i want to disable the display of "view4" in "mainview":

"view4": {
"app": {
"path" : "/var/www/myProjet/custom/app4/app",
"slug": "view4",
"verbose": "Breadcrumbs",
"mainview": {
"show": false // I change this
}
}
}

I got this problem:
Cannot set property 'header' of undefined at exports.admin

How can I get "admin" command?

Could you tell me how I can get "admin" command to start express-admin-examples?
Any reference document is also appreciated.

Add new item page

Hi,
they are a prob with the add new item button in case we navigate in a page list to the next page (nĀ° > 1)

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.