forked from strapi/strapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/groups
- Loading branch information
Showing
235 changed files
with
11,258 additions
and
2,387 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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
**/build/** | ||
**/dist/** | ||
testApp/** | ||
.eslintrc.js |
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,3 +1,7 @@ | ||
# getstarted | ||
|
||
A quick description of getstarted. | ||
|
||
Start the app with mongo | ||
|
||
`DB=mongo yarn develop` |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
'use strict'; | ||
|
||
/** | ||
* Read the documentation (https://strapi.io/documentation/3.0.0-beta.x/guides/controllers.html#core-controllers) | ||
* to customize this controller | ||
*/ | ||
|
||
module.exports = {}; |
37 changes: 19 additions & 18 deletions
37
examples/getstarted/api/post/models/Post.js → .../getstarted/api/article/models/Article.js
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,54 +1,55 @@ | ||
'use strict'; | ||
|
||
/** | ||
* Lifecycle callbacks for the `Post` model. | ||
* Lifecycle callbacks for the `Article` model. | ||
*/ | ||
|
||
module.exports = { | ||
// Before saving a value. | ||
// Fired before an `insert` or `update` query. | ||
// beforeSave: async (model) => {}, | ||
// beforeSave: async (model, attrs, options) => {}, | ||
|
||
// After saving a value. | ||
// Fired after an `insert` or `update` query. | ||
// afterSave: async (model, result) => {}, | ||
// afterSave: async (model, response, options) => {}, | ||
|
||
// Before fetching a value. | ||
// Fired before a `fetch` operation. | ||
// beforeFetch: async (model, columns, options) => {}, | ||
|
||
// After fetching a value. | ||
// Fired after a `fetch` operation. | ||
// afterFetch: async (model, response, options) => {}, | ||
|
||
// Before fetching all values. | ||
// Fired before a `fetchAll` operation. | ||
// beforeFetchAll: async (model) => {}, | ||
// beforeFetchAll: async (model, columns, options) => {}, | ||
|
||
// After fetching all values. | ||
// Fired after a `fetchAll` operation. | ||
// afterFetchAll: async (model, results) => {}, | ||
|
||
// Fired before a `fetch` operation. | ||
// beforeFetch: async (model) => {}, | ||
|
||
// After fetching a value. | ||
// Fired after a `fetch` operation. | ||
// afterFetch: async (model, result) => {}, | ||
// afterFetchAll: async (model, response, options) => {}, | ||
|
||
// Before creating a value. | ||
// Fired before an `insert` query. | ||
// beforeCreate: async (model) => {}, | ||
// beforeCreate: async (model, attrs, options) => {}, | ||
|
||
// After creating a value. | ||
// Fired after an `insert` query. | ||
// afterCreate: async (model, result) => {}, | ||
// afterCreate: async (model, attrs, options) => {}, | ||
|
||
// Before updating a value. | ||
// Fired before an `update` query. | ||
// beforeUpdate: async (model) => {}, | ||
// beforeUpdate: async (model, attrs, options) => {}, | ||
|
||
// After updating a value. | ||
// Fired after an `update` query. | ||
// afterUpdate: async (model, result) => {}, | ||
// afterUpdate: async (model, attrs, options) => {}, | ||
|
||
// Before destroying a value. | ||
// Fired before a `delete` query. | ||
// beforeDestroy: async (model) => {}, | ||
// beforeDestroy: async (model, attrs, options) => {}, | ||
|
||
// After destroying a value. | ||
// Fired after a `delete` query. | ||
// afterDestroy: async (model, result) => {} | ||
// afterDestroy: async (model, attrs, options) => {} | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
'use strict'; | ||
|
||
/** | ||
* Read the documentation (https://strapi.io/documentation/3.0.0-beta.x/guides/services.html#core-services) | ||
* to customize this service | ||
*/ | ||
|
||
module.exports = {}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,8 @@ | ||
'use strict'; | ||
|
||
/** | ||
* Read the documentation (https://strapi.io/documentation/3.0.0-beta.x/guides/controllers.html#core-controllers) | ||
* to customize this controller | ||
*/ | ||
|
||
module.exports = {}; |
2 changes: 1 addition & 1 deletion
2
...etstarted/api/articles/models/Articles.js → examples/getstarted/api/tag/models/Tag.js
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
'use strict'; | ||
|
||
/** | ||
* Read the documentation (https://strapi.io/documentation/3.0.0-beta.x/guides/services.html#core-services) | ||
* to customize this service | ||
*/ | ||
|
||
module.exports = {}; |
Oops, something went wrong.