dev-family / admiral Goto Github PK
View Code? Open in Web Editor NEWAdmiral is a frontend framework for creating back office in React. It provides out-of-the-box components and tools that make developing an admin interface easy and fast.
Admiral is a frontend framework for creating back office in React. It provides out-of-the-box components and tools that make developing an admin interface easy and fast.
Я могу создать страницу на подобии визитки, которая будет доступна всем? То есть отключить авторизацию на определенных маршрутах или наоборот сделать саму админ панель только на руте /admin и включить авторизацию только туда?
It looks like Admiral is hard-coded to expect an id
attribute to be the primary key for data.
admiral/admiral/dataTable/DataTable.tsx
Line 281 in e58118b
admiral/admiral/crud/index.tsx
Line 55 in e58118b
admiral/admiral/crud/index.tsx
Line 63 in e58118b
This is an issue if using an API with a different name for the primary key! (For example, I'm trying to work with objects that have sessionID
as their primary key.)
It would be useful to be able to specify this as part of a CRUD definition.
and move it to other location like "/adminLogin/"
Hi. Could you please advise me on how to customize components that are not passed as an attribute to the Admin component? I figured out how to do it with menuPopupExtraComponents, but what if I need to reconfigure the entire footer (sidebar bottom), or the entire sidebar, or all page layout? I couldn't figure it out.
I see that the question of customization has been asked more than once, and it would be great to have a more detailed explanation.
Thanks in advance!
Just wondered if there was an idiomatic way to configure one Admiral frontend instance to talk to multiple backend APIs?
In my case, I have a bunch of different microservices all sharing an authentication method (JWT).
The best way I've found is to do something like the following:
const multiDataProvider = (resourceMap: { [key: string]: DataProvider }) : DataProvider => {
return {
getList: (resource: string, params: object) => resourceMap[resource].getList(resource, params),
getOne: (resource: string, params: GetOneParams) => resourceMap[resource].getOne(resource, params),
getCreateFormData: (resource: string) => resourceMap[resource].getCreateFormData(resource),
getFiltersFormData: (resource: string) => resourceMap[resource].getFiltersFormData(resource),
create: (resource: string, params: CreateParams) => resourceMap[resource].create(resource, params),
getUpdateFormData: (resource: string, params: GetOneParams) => resourceMap[resource].getUpdateFormData(resource, params),
update: (resource: string, params: UpdateParams) => resourceMap[resource].update(resource, params),
deleteOne: (resource: string, params: DeleteParams) => resourceMap[resource].deleteOne(resource, params),
reorderList: (resource: string, params: ReorderParams) => resourceMap[resource].reorderList(resource, params)
}
}
const usersDataProvider = dataProvider(usersUrl);
const replaysDataProvider = dataProvider(replaysUrl);
const mdp = multiDataProvider({
'users': usersDataProvider,
'replays': replaysDataProvider,
'errors': replaysDataProvider
})
then supplying mdp
to <Admin>
as its dataProvider
prop.
Is there a better/easier/more Admiral-ish way?
Hello.
How I can use form with custom rules?
Can I use other UI kit with yours dataProvider
?
Thank you for for your time.
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.