chirgjin / adminjs-adonis Goto Github PK
View Code? Open in Web Editor NEWAdonisJs plugin & adapter for AdminJS
License: MIT License
AdonisJs plugin & adapter for AdminJS
License: MIT License
Shows network error when downloading adminjs .
Hi. Both libraries have updated to ESM and I'm curious if they are compatible or if there are plans to update this adaptor?
I noticed that the readme was updated to install adminjs^6.0.0, because 7.x wasn't supported due to ESM.
Since AdonisJS also recently updated to a new version, what are the latest versions of each that should be compatable with this adaptor. Thanks
I just installed a fresh adonis js app and added adminjs as per the limited documentation. And i get this error when i run yarn dev.
I tried settings tsconfig to different settings like admin js suggests
{
"compilerOptions": {
"moduleResolution": "node16",
"module": "commonjs",
"target": "esnext",
// ...
}
}
However that combination is not allowed, so I tried different other options with no luck.
Error: require() of ES Module /node_modules/adminjs/index.js from
//adminjs-app/node_modules/adminjs-adonis/build/providers/AdminProvider.js not supported.
Instead change the require of index.js in /adminjs-app/node_modules/adminjs-adonis/build/providers/AdminProvider.js to a dynamic import() which is
available in all CommonJS modules.
Hey,
I tried to follow the README.md, but after I run node ace configure adminjs-adonis
, I'm not sure what to do next. When I serve the adonis backend, I cannot access the /admin url. Is there something I am missing?
Description:
I'm currently using AdonisJS alongside AdminJS. When I try to run the server, I'm faced with the following error:
Error: require() of ES Module /my-project-folder/node_modules/adminjs/index.js from my-project-folder/node_modules/adminjs-adonis/build/providers/AdminProvider.js not supported.
Instead change the require of index.js in my-project-folder/node_modules/adminjs-adonis/build/providers/AdminProvider.js to a dynamic import() which is available in all CommonJS modules.
I'm still getting familiar with the intricacies of CommonJS and ES modules, so I apologize if this issue is not directly related to the package itself. However, any guidance or clarification on this matter would be highly appreciated.
It would be really nice to have support for Arrays (if there already is, some documentation on how to use them would be nice). I have a couple of array fields in my objects which contain different things. It would be cool to have some kind of "New" button which adds a field (or fields in the case of a key/value type thing) and allows you to save/delete items.
Error message
[email protected] build
yarn ts build.ts
'yarn' is not recognized as an internal or external command,
operable program or batch file.
I noticed that computed columns are not registered on the models.
I see the regular properties are listed here:
adminjs-adonis/src/Adapter/BaseResource.ts
Lines 83 to 91 in da18a74
The computed definitions should be available as this.model.$computedDefinitions.keys()
Dear adminjs-adonis Maintainers,
I'm reaching out to address an issue encountered when attempting to integrate the attachment-lite
package with adminjs-adonis, as per the model customization options outlined in the readme.
The attachment-lite
package is my chosen library for handling attachments. Successfully integrating it within my controllers, I specified the type: "file"
within the @adminColumn
decorator to accommodate file attachments as illustrated in the following Product
model excerpt:
// ... [other model properties]
@adminColumn({
type: "file",
serialize: () => {
console.log("serialize");
},
})
@attachment()
public image: AttachmentContract;
// ... [other model relationships and properties]
While the files are being accepted as anticipated, persisting the model via save operations triggers a 500 Internal Server Error
, stemming from the Lucid ORM. Efforts to mitigate this via additional hooks and custom serialization functions have unfortunately not borne fruit.
In light of this, I would like to inquire if there's an existing workaround or configuration that supports attachment-lite
within adminjs-adonis. If such functionality is currently absent, could you guide me on how to extend the adapter to incorporate this feature? I am eager and willing to contribute to the development of this capability.
Your guidance and support would be greatly appreciated.
Thank you for your attention to this matter.
Best regards,
Adam
i CAN help in the development of this also
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.