@venizia/ardor-admin
v0.1.1
Published
ARDOR react-admin adapter - the REST data provider, auth provider and i18n provider wired through IGNIS inversion, the ArdorApplication root component, the translate and notify hooks, and the English and Vietnamese message bundles.
Readme
@venizia/ardor-admin
The react-admin adapter of
ARDOR: every place the framework touches ra-core.
bun add @venizia/ardor-admin @venizia/ardor-kernel @venizia/ardor-react ra-coreMost applications install @venizia/ardor instead,
which re-exports this package.
What is in it
| Area | Exports |
|---|---|
| Data | DefaultRestDataProvider, CountRestDataProvider, BaseCrudService |
| Auth | DefaultAuthProvider |
| i18n | DefaultI18nProvider, englishMessages, vietnameseMessages |
| Component | ArdorApplication - the CoreAdmin root, wired from the container |
| Hooks | useTranslate, useNotifyError, useRefreshToken, useRequestHeaderLocale |
| Types | IDataProvider, IAuthProvider, II18nProviderOptions, IApplication, TUseTranslateKeys |
The data provider speaks the @venizia/ignis-filter vocabulary - react-admin pagination, sort and
filter are mapped onto { where, order, limit, skip, fields, include }.
Typing your own message keys
IUseTranslateKeysOverrides is declared here, so augment this package:
declare module '@venizia/ardor-admin' {
interface IUseTranslateKeysOverrides extends Record<TFullPaths<typeof messages>, unknown> {}
}License
MIT - see LICENSE.md.
