0.1.1 • Published 21 days ago
adminjs-feathers v0.1.1
adminjs-feathers
An adapter to connect AdminJS to FeathersJS
Usage
Register the adapter
AdminJS.registerAdapter({ Database, Resource })
Create a resource
export const CompanyResource: ResourceWithOptions = {
resource: {
service: app.service('company'),
schema: companySchema,
options: {
//Resource level options
applyDefaults: true,
databaseName: 'FeathersJS',
treatNullableAsOptional: true,
provider: 'adminJS',
},
},
options: {},
}
Load your resource into AdminJS
const admin = new AdminJS({
resources: [CompanyResource],
rootPath: '/admin',
})
Options
Since v0.1.0 the following options are available as both global and resource level options
Property | Default | Version |
---|---|---|
applyDefaults | true | 0.10.0 |
treatNullableAsOptional | true | 0.10.0 |
provider | 'adminJS' | 0.10.0 |
databaseName | 'FeathersJS' | 0.10.0 |
Global options example
globalOptions.set({
applyDefaults: true,
databaseName: 'FeathersJS',
treatNullableAsOptional: true,
provider: 'adminJS',
})
Example
0.1.1
21 days ago
0.1.0
27 days ago
0.0.18
1 month ago
0.0.19
1 month ago
0.0.17
2 months ago
0.0.16
3 months ago
0.0.15
4 months ago
0.0.11
10 months ago
0.0.12
9 months ago
0.0.13
9 months ago
0.0.14
8 months ago
0.0.10
1 year ago
0.0.9
1 year ago
0.0.8
1 year ago
0.0.7
1 year ago
0.0.6
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago