generated from SoftwareBrothers/adminjs-feature-template
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/feat/v3' into beta
- Loading branch information
Showing
14 changed files
with
3,796 additions
and
4,129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: '3.7' | ||
|
||
services: | ||
adminjs-import-export: | ||
container_name: adminjs-import-export | ||
image: mongo | ||
ports: | ||
- "27017:27017" | ||
volumes: | ||
- adminjs-import-export:/data/db | ||
|
||
volumes: | ||
adminjs-import-export: |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,31 @@ | ||
{ | ||
"name": "adminjs-import-export-example", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"type": "module", | ||
"license": "MIT", | ||
"scripts": { | ||
"dev": "nodemon", | ||
"lint": "eslint src --ext ts" | ||
"start": "node dist/example-app/src/server", | ||
"build": "tsc -p './tsconfig.json'" | ||
}, | ||
"dependencies": { | ||
"@adminjs/design-system": "^2.0.4", | ||
"@adminjs/express": "^4.0.1", | ||
"adminjs": "^5.5.1", | ||
"express": "^4.17.1", | ||
"@adminjs/express": "^6.0.0-beta.3", | ||
"@adminjs/mongoose": "^4.0.0-beta.4", | ||
"express": "^4.18.2", | ||
"express-formidable": "^1.2.0", | ||
"nodemon": "^2.0.6", | ||
"ts-node": "^9.0.0" | ||
"express-session": "^1.17.3", | ||
"mongoose": "^7.0.3", | ||
"ts-node": "^10.9.1", | ||
"tslib": "^2.5.0" | ||
}, | ||
"devDependencies": { | ||
"@types/express": "^4.17.8" | ||
"@types/express": "^4.17.17", | ||
"@types/node": "^18.15.11", | ||
"typescript": "^5.0.2" | ||
}, | ||
"resolutions": { | ||
"@adminjs/design-system": "^4.0.0-beta-v4.8", | ||
"@adminjs/express": "6.0.0-beta.3", | ||
"@adminjs/mongoose": "4.0.0-beta.4", | ||
"adminjs": "7.0.0-beta-v7.4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
import { ResourceWithOptions } from 'adminjs'; | ||
import { User } from './user.entity'; | ||
import importExportFeature from '../../../../../src/index'; | ||
import type { ComponentLoader, ResourceWithOptions } from 'adminjs'; | ||
|
||
export const createUserResource = (): ResourceWithOptions => ({ | ||
import importExportFeature from '../../../../../src/index.js'; | ||
|
||
import { User } from './user.entity.js'; | ||
|
||
export const createUserResource = ( | ||
componentLoader: ComponentLoader | ||
): ResourceWithOptions => ({ | ||
resource: User, | ||
options: { | ||
navigation: { | ||
icon: 'User', | ||
name: 'Users', | ||
}, | ||
}, | ||
features: [importExportFeature()], | ||
features: [ | ||
importExportFeature({ | ||
componentLoader, | ||
}), | ||
], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "./built", | ||
"target": "ES2016", | ||
"module": "CommonJS", | ||
"jsx": "preserve", | ||
"baseUrl": "./", | ||
"outDir": "./dist", | ||
"target": "esnext", | ||
"module": "nodenext", | ||
"moduleResolution": "nodenext", | ||
"esModuleInterop": true, | ||
"strictNullChecks": true, | ||
"strictPropertyInitialization": false, | ||
"strictFunctionTypes": true, | ||
"strictBindCallApply": true, | ||
"noImplicitThis": true, | ||
"moduleResolution": "node", | ||
"experimentalDecorators": true, | ||
"emitDecoratorMetadata": true | ||
"emitDecoratorMetadata": true, | ||
"skipLibCheck": true | ||
}, | ||
"include": ["./src/**/*", "./spec/**/*"] | ||
"include": ["./src/**/*.ts", "../src/**/*"] | ||
} |
Oops, something went wrong.