Questions tagged [adminjs]

43 questions
1
vote
2 answers

Error in getting referenced objects in admin-bro Nodejs (There are no resources with given id)

So the error I am getting is There are no resources with given id: "workshop.timelines"\nThis is the list of all registered resources you can use. This is the resource I am trying to visualize in adminbro const LearnerSchema = new mongoose.Schema( …
Manish
  • 21
  • 1
  • 9
1
vote
0 answers

Nodejs AdminBro show/edit JSONB field

I am trying to display and enable edit for one of my models that has a JSONB datatype. instructor model const Instructor = sequelize.define('Instructor', { id: { type: Sequelize.INTEGER, autoIncrement: true, primaryKey:…
Cyzanfar
  • 6,997
  • 9
  • 43
  • 81
0
votes
0 answers

Implement Admin Bro Import/Export Function using react

I have created a admin panel using admin Bro / now i want to add export and import function to page to export and import the data using csv file . How can we do it ?
KAMAL
  • 148
  • 7
0
votes
0 answers

Unable to Uplaod Image using AdminJS

your textI try to Upload Image on mongoDB using AdminJS having schema as ------------------- ifile.mjs ----------------------- import { mongoose } from 'mongoose'; export const ImageSchema = new mongoose.Schema({ mime: {type: String, required:…
0
votes
0 answers

Authentication issue when calling AdminBro API in Node.js app

I'm currently working on a Node.js application where I'm using AdminBro as the admin panel. I have encountered an authentication issue specifically when calling the AdminBro API to access data. Here's a simplified version of my code: const express =…
0
votes
0 answers

AdminJS:: Plugin: NestJS, Adapter: TypeORM => Facing file upload configuration issue

enter image description here enter image description here I'm using AdminJS with NestJS as Plugin & TypeORM as Adapter, now I want to add one field for uploading file and save it on local storage but facing issue of component loader of 'adminjs'…
K_D
  • 1
  • 2
0
votes
1 answer

adminJS buildAuthenticatedRouter login fails

What I'm trying to do I am trying to connect adminJS to a MongoDB database and implement an authenticated adminJS portal. I am using the authenticated example here to start, which is based off postgres, and then I have modified it based off code…
garson
  • 1,505
  • 3
  • 22
  • 56
0
votes
0 answers

How to set "availableValues" dynamically

In adminjs, you can set the choices of a field like this: { resource: Contract, options: { navigation: { name: 'Crypto', }, properties: { symbol: { availableValues:…
synic
  • 26,359
  • 20
  • 111
  • 149
0
votes
0 answers

How to use build authenticated router with feathersjs , adminjs and mongoose?

I am trying to use adminjs's build authenticated router with feathers express and mongoose but I just can't. import AdminJS from 'adminjs'; import {Mongoose} from 'mongoose'; import AdminJSMongoose from '@adminjs/mongoose'; import AdminJSExpress…
JalalMitali
  • 1
  • 1
  • 2
0
votes
0 answers

Can't add an array of numbers in AdminJS

In a resourse I have property that should be an array of numbers. properties: { firstDownAttempts: { type: 'number', isArray: true, }, }, In AdminJS when I create a new object I add two items like this: After this I can log these items in "before"…
0
votes
1 answer

Why cant I install @mikro-orm/mariadb

Trying to install mikroorm into adminjs. I am using:https://mikro-orm.io/docs/usage-with-adminjs I ran the command npm install @mikro-orm/mariadb as instructed in the guide and it returns npm ERR! @mikro-orm/mariadb@"*" from the root project npm…
0
votes
1 answer

Providing entire database with TypeOrm and NestJs

Anyone configured it successfully? For now, I'm just listing all entities manually (not as fun). I tried replicating the example given with Mongoose here. I tried passing a Connection (it's deprecated though) and a DataSource (should work the same…
0
votes
1 answer

NoResourceAdapterError: There are no adapters supporting one of the resource you provided (AdminJs, NestJs and Prisma)

I followed the AdminJS documentation, on how to setup AdminJS(^6.8.6) and Prisma(^4.9.0) on NestJS(9.0.0):https://docs.adminjs.co/installation/adapters/prisma#nest.js The getting the following…
0
votes
2 answers

Custom Dashboard for AdminJS not working in production

I have a Koa nodejs server which I added AdminJS to and it's working beautifully locally. My goal is to override the Dashboard component. I did so successfully when not running in production. However when I run in production mode…
JonathanC
  • 967
  • 11
  • 30
0
votes
0 answers

How to change default dropdown placeholder in adminjs

I created a drop down list. It works fine, but I'm having trouble translating the "Select..." and "No options" placeholders. The photos show what I mean. There is an example of creating this drop-down list: Student entity: @Column({ type:…