-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add select fields, add toObject #45
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,5 +117,4 @@ dist | |
|
||
.DS_store | ||
|
||
# build files | ||
/lib | ||
# build files |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Database from './src/database'; | ||
import Resource from './src/resource'; | ||
export { Database, Resource }; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { BaseDatabase } from 'admin-bro'; | ||
declare class Database extends BaseDatabase { | ||
private readonly connection; | ||
constructor(connection: any); | ||
static isAdapterFor(connection: any): boolean; | ||
resources(): any; | ||
} | ||
export default Database; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* @module @admin-bro/mongoose | ||
* @subcategory Adapters | ||
* @section modules | ||
* @load ./index.doc.md | ||
*/ | ||
export { default as Resource } from './resource'; | ||
export { default as Database } from './database'; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import { BaseProperty } from 'admin-bro'; | ||
declare class Property extends BaseProperty { | ||
mongoosePath: any; | ||
/** | ||
* Crates an object from mongoose schema path | ||
* | ||
* @param {SchemaString} path | ||
* @param {String[]} path.enumValues | ||
* @param {String} path.regExp | ||
* @param {String} path.path | ||
* @param {String} path.instance | ||
* @param {Object[]} path.validators | ||
* @param {Object[]} path.setters | ||
* @param {Object[]} path.getters | ||
* @param {Object} path.options | ||
* @param {Object} path._index | ||
* @param {number} position | ||
* | ||
* @private | ||
* | ||
* @example | ||
* | ||
* const schema = new mongoose.Schema({ | ||
* email: String, | ||
* }) | ||
* | ||
* property = new Property(schema.paths.email)) | ||
*/ | ||
constructor(path: any, position?: number); | ||
instanceToType(mongooseInstance: any): "string" | "number" | "boolean" | "datetime" | "mixed" | "reference" | "float"; | ||
name(): any; | ||
isEditable(): boolean; | ||
reference(): any; | ||
isVisible(): boolean; | ||
isId(): boolean; | ||
availableValues(): any; | ||
isArray(): boolean; | ||
subProperties(): Property[]; | ||
type(): "string" | "number" | "boolean" | "datetime" | "mixed" | "reference" | "float"; | ||
isSortable(): boolean; | ||
isRequired(): boolean; | ||
} | ||
export default Property; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't want to commit
lib
folder