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.
@blackbox-vision/ra-layout
Advanced tools
Revamped React Admin UI.
You can install this library via NPM or YARN.
npm i @blackbox-vision/ra-layout
yarn add @blackbox-vision/ra-layout
You're tired of the defacto React Admin UI and want to renew the look and feel.
The usage is really simple:
// menu.ts
import {
LocalAtm,
PermContactCalendar,
} from '@material-ui/icons';
export const items = [{
type: 'group',
label: 'Architects',
items: [
{
type: 'resource',
name: 'architects',
label: 'Information',
icon: PermContactCalendar,
},
{
type: 'resource',
name: 'commissions',
label: 'Commissions',
icon: LocalAtm,
},
],
}]
Layout
pass props to it and you're ready:// App.tsx
import React from 'react';
import { Admin } from 'react-admin';
import jsonServerProvider from 'ra-data-json-server';
import { Layout } from '@blackbox-vision/ra-layout';
import { items } from './menu';
const dataProvider = jsonServerProvider('https://jsonplaceholder.typicode.com');
export const App = () => {
return (
<Admin
dataProvider={dataProvider}
layout={props => <Layout {...props} items={items} />}
>
<Resource name="users" list={ListGuesser} />
</Admin>
);
};
App.displayName = "App";
Layout
has the following props:
Properties | Types | Default Value | Description |
---|---|---|---|
items | Array | [] | The menu items to render |
Please, open an issue following one of the issues templates. We will do our best to fix them.
If you want to contribute to this project see contributing for more information.
Distributed under the MIT license. See LICENSE for more information.
FAQs
Custom layout for React Admin
We found that @blackbox-vision/ra-layout demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.