Questions tagged [admin-on-rest]

Use it for questions about the admin-on-rest admin framework for React.js

Usage questions about the admin-on-rest framework.

501 questions
0
votes
1 answer

How can you make your own authenticated REST requests?

I'm using admin-on-rest behind a login screen. I'm writing a custom form component. When I do a fetch call to the same server AOR is using, I get a 401. How can I use the same auth data that AOR is using with its requests?
Loren
  • 13,903
  • 8
  • 48
  • 79
0
votes
1 answer

How to react to changes in SimpleForm Inputs?

I'm making a custom input component that needs to change when other input values are changed in the form. {this.setState({ newValue })}…
Loren
  • 13,903
  • 8
  • 48
  • 79
0
votes
1 answer

aor-simple-graphql-client : Error when loading data

I'm trying to use aor-simple-graphql-client with my apollo server. I have an array with few elements and admin on rest show only the last element many times. When I do the same request with graphiql I can see all elements. Here is my repo :…
0
votes
1 answer

admin-on-rest: How use component with custom API end points

I'm using the Loopback REST Client for admin-on-rest successfully with no issues. It's easy to use and works very well for the standard CRUD operations, however I quickly found myself in the need of using non-conventional REST calls like the…
0
votes
2 answers

How can I pass a dynamic filter to the List component with Admin On Rest?

I am using Show to show a student page. On the student page, I want to show a list of many courses and the list must be paginated. export const StudentShow = (props) => (
mcranston18
  • 4,680
  • 3
  • 36
  • 37
0
votes
2 answers

How to richly style AOR Edit page

Have to create an edit Page editing a number of parameters on an instance of a'tale' resource. However adding any element such as an MUI Card or even a div, is causing the app to freeze in various ways. These are the approaches I have tried. 1)…
kunal pareek
  • 1,285
  • 10
  • 21
0
votes
1 answer

Show view fails silently when its prop actions is populated with a class defined component

The following code makes the Show view to appear empty (completely white), with no errors in the browser's console nor in the webpack development server console: const actionStyle = { zIndex: 2, display: 'inline-block', float:…
0
votes
1 answer

How to set up admin-on-rest with couchDB?

Edit to the makers of AoR : Your framework suffers from horrid documentation. You should really focus on that, people would really adopt it then. I cant for the life of me decipher how admin-on-rest does the 'rest' part. If there is a better…
jason
  • 4,721
  • 8
  • 37
  • 45
0
votes
1 answer

How do you add a custom component in admin-on-rest that doesn't require login

How would I able to add a custom page(component) to admin-on-rest that is public? Note, I would like to use the admin component so the layout is there.
0
votes
2 answers

Admin-on-rest - how to sync other components with query filtered from List?

I want to implement this structure in the page: 1. Cards with summary (revenue, users, etc.) 2. Map from google maps 3. List element Inside List element there is filtering. I am stuck how to user filter options when filtering list to represent…
hitchnsmile
  • 61
  • 2
  • 12
0
votes
1 answer

Admin-on-rest- How to Mix components in Resource and Show/Edit modes?

Now I am purely following example of Admin-on-rest (https://marmelab.com/admin-on-rest/Resource.html). When it opens List (with DataGrid) or Show/Edit, I want to add additional components to that page. Some analytics (using Cards), Google Maps…
hitchnsmile
  • 61
  • 2
  • 12
0
votes
1 answer

Specify width (flex) of Sidebar component

I am using admin-on-rest in another app. Here I use the Sidebar component for my toolbar. However, Sidebar does not have an overwrite style property. How can I inject my custom styles into the Sidebar component and more specificaly how can I change…
nauti
  • 1,396
  • 3
  • 16
  • 37
0
votes
0 answers

How to get file upload progress?

I am new to AOR and redux-sagas and I am currently working on a list view drag-and-drop and upload capability. I want the user to be able to drag and drop files and see current upload progress and status from the List view. The prototype of the…
futurecat
  • 858
  • 7
  • 14
0
votes
1 answer

Admin on Rest onClick being called on render and not on click

The issue I am having is I have a button: const LogActions = ({ resource, filters, displayedFilters, filterValues, basePath, showFilter, refresh, record }) => (
Stebermon
  • 71
  • 1
  • 8
0
votes
1 answer

admin-on-rest Show component with specified id on custom page

I am using admin-on-rest in my React app and wonder how is possible to make a custom page containing Show (or another detail component) with specified resource Id (for example: I want my app to fetch only resource with id = 1)
svfat
  • 3,273
  • 1
  • 15
  • 34