Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
radmin-free
Advanced tools
RedwoodJS Admin Panel Generator
Standing in the Redwood app you want to generate an admin panel for you just
run npx -y radmin-free@latest <path-to-admin-panel>
cd ./existing-rw-project
npx -y radmin-free@latest ../project-admin
@radmin-skip
- Don't include this model in the generated admin panel@radmin-no-edit
- Disable editing records in this model@radmin-no-delete
- Disable deleting records in this model@radmin-skip
- Don't include this field in the generated admin panel@radmin-search
- Set this as the field to use in the search input@radmin-multiline
- Force multiline text input for this field@radmin-singleline
- Force single-line text input for this field@radmin-html
- Store data as html in your DB (for use with multiline inputs)@radmin-markdown
- Store data as markdown in your DB (for use with multiline inputs)@radmin-date
– Format how dates are displayed. relative
or a date-fns string like yyyy-MM-dd HH:mm
.Needs Node 16.7 (released 18-Aug-2021) or later because of use of fs.cpSync
.
If your Node version is too new you can still use Radmin, but you'll have to
manually create a admin panel project. Just run npx -y radmin-free@latest
and
it'll guide you through this
Radmin doesn't support compound IDs yet. Models with compound IDs will be skipped and a warning will be printed to your console. Fields referencing models with compound IDs will also be skipped.
This will not work
model CategoryToProduct {
product Product @relation(fields: [productId], references: [id])
productId String @db.Uuid
category Category @relation(fields: [categoryId], references: [id])
categoryId Int
@@id([productId, categoryId])
}
You'll have to add an id
key, and make the compound id a compound unique
constraint instead
model CategoryToProduct {
id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
product Product @relation(fields: [productId], references: [id])
productId String @db.Uuid
category Category @relation(fields: [categoryId], references: [id])
categoryId Int
@@unique([productId, categoryId])
}
If you do it exactly like that you should be able to migrate your DB without losing any data
If you have additional prisma generators defined in your schema, radmin will error out when you run it. The solution is to manually install the generators in the admin project, and then rerun radmin.
FAQs
RedwoodJS Admin Panel Generator
The npm package radmin-free receives a total of 10 weekly downloads. As such, radmin-free popularity was classified as not popular.
We found that radmin-free demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.