17 Commits

Author SHA1 Message Date
DMehaffy
aad1c2fa03
Cleaning up codebase for doc repo move (#8892)
* [WIP] Cleaning up codebase for doc repo move

WIP

* Fix deleted files, add links to doc repo issues

* Add repo note to readme
2020-12-18 15:50:37 +01:00
Abdón Rodríguez Davila
d38b9d35b9
Fix multiple doc links (#6375) 2020-05-27 12:29:53 +02:00
Alexandre Bodin
c364fcd0e2 Move lifecycles to sub field and added documentation
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-05-04 10:55:08 +02:00
Jean-Sébastien Herbaux
a583d1b859
Fix/#3184/fix server crashs on database change (#5703)
* Don't set connection field on create/edit operation on content-types & components

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Make sure that every component has a valid connection attribute

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Remove connection check on components load

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Remove default connections from core & webhook stores but make sure it's defined in the application lifecycle

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Fix component's associations that can be undefined instead of empty in populateBareAssociations

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Remove "default" connection from plugins' models

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Remove connection attribute from generated models (cli)

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Mutate each component instead of reassign

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Build core_store and webhook model based on the current config

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Add connection to templates conditionally (based on args)

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Set default value for description to undefined instead of empty string

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Remove unnecessary complexity

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Update getStarted models

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Fix attributes parsing for generate:model

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Removed tpl option from generate:model/api

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Remove tpl option from cli

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-04-07 16:31:44 +02:00
Pierre Noël
74625b0ec7 remove strapi-utils from front + remove use of idPluralized
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
2020-03-23 11:28:07 +01:00
Pierre Noël
be6517c02d refacto strapi-generate-* + move nameToSlug to strapi-utils
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
2020-03-23 10:42:34 +01:00
Nevermoi
87f8f91b52
Update model.template
Wrong description of beforeSave and afterSave for model, since updating will not trigger these two hooks
2019-12-05 10:48:30 +08:00
Ivo Bathke
5877ff93d0 fixed typo in de.json and removed unneccesary whitespace in model generator 2019-10-04 17:48:45 +02:00
Amir Reza Dalir
4c92cfc4ee
update template for lifecycle callback
add beforeFetchCollection & afterFetchCollection in template file for bookshelf models
2018-11-13 20:11:19 +03:30
Alberto Maturano
154fc28a57 Normalize to standar file permissions
As a result of taking a look on PR #1967 I realized there is 819
executable files in this repository. It is obvious this is an error.
2018-09-24 12:33:09 -05:00
Jim Laurie
8cd33563ae Harmonize model templates 2018-05-14 12:05:09 +02:00
Jim Laurie
f6b97addfd Fix generate model bookshelf collectionName 2017-10-31 14:58:28 +01:00
cyril lopez
7532670f93 Created empty view for homepage 2017-08-16 18:47:02 +02:00
Pierre Burgy
17135196a5 Improve arguments handling for generators 2017-02-14 01:10:37 +01:00
Aurélien Georget
55d65ccde8 Fix #90: Update global model naming convention 2016-08-12 12:04:00 +02:00
Aurélien Georget
8c88e076a9 Handle template on CLI 2016-08-10 11:00:56 +02:00
loicsaintroch
54287792ed Add default model generator 2016-04-21 14:59:00 +02:00