11712 Commits

Author SHA1 Message Date
Mark Kaylor
a6eb49b75d add template config file to root 2021-05-31 13:43:39 +02:00
Mark Kaylor
c2d438ba88 rename export => generate 2021-05-31 13:43:39 +02:00
Mark Kaylor
e652a53d79 add tests 2021-05-31 13:43:38 +02:00
Mark Kaylor
8beb4b821b add export-template command to cli 2021-05-31 13:43:38 +02:00
DMehaffy
5207606c6d
Update badges and copy README to main Strapi package for NPM (#10398)
* Update Readme to remove old badges

Removed the old Travis badge and swapped the Slack one for the Discord one

* Copy in main README per Victor

Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
2021-05-31 11:37:37 +02:00
Pierre Noël
c6b3ab7043
fix duplicate locale when creating without specifying the locale (#10378) 2021-05-26 09:00:56 +02:00
Fabien Del Carmen
631ac69686
Add CLI support for branch in direct GitHub URL (#10273)
* Add CLI support for branch in direct GitHub URL

* Change getRepoInfo to return branch

* Change variable name, add eslint 'one-var' rule

* Fix eslint 'one-var' error

* Move fetch GitHub logic in its own file

* Update code to avoid destructuring reassignment

* Update and add some JSDoc
2021-05-19 19:02:41 +02:00
soupette
bdfd531488 Fixes #10328
Signed-off-by: soupette <cyril.lpz@gmail.com>
2021-05-18 09:55:57 +02:00
DMehaffy
4c844a7f7f
Update webhook doc link (#10309)
Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
2021-05-17 14:17:16 -07:00
Hal Deadman
f46d1e2a67
Add support for login via cas - github.com/apereo/cas (#8058)
* Add CAS as authentication provider

* reorder provider cas after auth0 at end

* use strapi.log instead of console.log

Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
2021-05-17 17:52:40 +02:00
Jean-Sébastien Herbaux
15c04d0612
Fix RBAC permissions without subject ignoring conditions (#10291)
* Fix RBAC permissions without subject ignoring conditions

* Add unit test for nil subject in the permission engine
2021-05-17 08:14:58 +02:00
Alexandre Bodin
43b947b2ba v3.6.2 2021-05-11 11:43:35 +02:00
Kendaros
c46b6ccb5e
Keep metadata during resize images (#10161)
If the input file has EXIF, XMP, IPTC metadata (i.e user disabled "optimize size without quality loss" a.k.a "strip metadata" option in Admin UI), the resized images generated should keep metadata too.
If the user doesn't want to keep metadata, they would let the default option "Optimize size without quality loss" enabled, right? So the resized images wouldn't keep the metadata anyway.
2021-05-11 11:42:31 +02:00
Mike Robinson
ae927f5b1f
Removing positive requirement of integer validation (#10269)
Solves #10179

Co-authored-by: DMehaffy <derrickmehaffy@gmail.com>
2021-05-11 10:22:15 +02:00
Webnatural
a11c2364f0
Update strapi-admin Polish language translations (#10198) 2021-05-11 09:31:15 +02:00
DMehaffy
e547b11b9a
Fix date field being parsed with a timezone (#10033)
* Fix date field being parsed with a timezone

Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>

* send YYYY-MM-DD format instead or 2021-04-27T15:01:09.155Z

* Revert "Fix date field being parsed with a timezone"

This reverts commit 498180477bf1750aa177a27786cc9b4e873c4e95.

Co-authored-by: Pierre Noël <petersg83@gmail.com>
2021-05-11 09:26:35 +02:00
Ilya Artamonov
2d8d3fdc06
Added missing translations (#10202) 2021-05-11 09:24:30 +02:00
p_0g_8mm3_
0bb208db4b
Update German strapi-admin translations (#10207)
* Fix grammar

* update de translation

* use plural
2021-05-11 09:22:09 +02:00
Ilya Artamonov
807101f290
Added missing translations (#10205) 2021-05-11 09:20:29 +02:00
Ilya Artamonov
e780baddb5
Added missing translation (#10204) 2021-05-11 09:19:22 +02:00
Ilya Artamonov
e2c06e30a6
Removed extra space (#10203) 2021-05-11 09:18:42 +02:00
Kenneth Solberg
95b81cd237
Added norwegian translation. (#9846)
* Added norwegian translation.

* Update the index.js file so the Norwegian translation is available in the dropdown

* Update the index.js file so the Norwegian translation is available in the dropdown

Co-authored-by: Kenneth Solberg <kenneth@codewise.no>
2021-05-11 09:08:03 +02:00
Jean-Sébastien Herbaux
30ccad91c0
Fix compatibility issue for mongo < 4.2 (#10281) 2021-05-11 09:04:58 +02:00
cyril lopez
436d9fdab5
Upgrade @buffet.js (#10270)
Signed-off-by: soupette <cyril.lpz@gmail.com>
2021-05-10 11:25:35 +02:00
Jean-Sébastien Herbaux
934a47eb34
Add possibility to set "required" RBAC conditions (#10185)
* Add optional property 'required' to rbac conditions

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

* Fix tests, remove object handler support & fix bug (pm.queryFrom)

* Remove required property, handle required conditions at the engine level (raw)

* Update EE snapshots

* Add hasSuperAdminRole util
2021-05-10 11:24:45 +02:00
Ralph
81a9a63cad
GraphQL Plugin (bug): Content type's attributes marked as private are being exposed in the exported GraphQL schema (#9805)
* Fixes #9804

* Fixes isPrivateAttribute function in strapi utils to take into account the private property within an attribute

* removing comment

* removing isNotPrivate function + adding call to already existing isPrivateAttribute function instead of isNotPrivate

* isPrivateAttribute fixed based on coments from Alexandre and confirmed that the model does indeed contain all private fields in an array at startup time

* removing isNotPrivate function and fixing generateEnumDefinitions to use the already available isPrivateAttribute function

* checking if created_at and update_at are also marked as private and if this is the case then hiding them

* allowIds by default when generating the input model to see if the tests will pass

* moving allowIds back to false by default

* adding isTypeAttributeEnabled function to check if a type attribute has been disabled and remove it from the exported graphql schema

* removing unused var

* only using isTypeAttributeEnabled instead of isPrivateAttribute.

* adding isPrivateAttribute at association level

* Adding isNotPrivate back together with isTypeAttributeEnabled

* adding unit test for removing a disabled attribute from a graphql schema

* renaming person to player in the test model

* Deleting the file as it has been renamed in the strapi master branch

* fixing lint issues

* fixing some lint issues

* adding isTypeAttributeEnabled support

* adding enumeration field in graphql

* adding use strict; to test file

* fixing test checking that disabled attributes in graphql are removed from the graphql schema

* adding test for buidShadowCrud

* Update packages/strapi-plugin-graphql/services/type-builder.js

Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>

Co-authored-by: Rmaroun <rmaroun@outlook.com>
Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
2021-05-10 09:35:07 +02:00
cyril lopez
3198d19906
Fixes #10187 (#10193)
Signed-off-by: soupette <cyril.lpz@gmail.com>
2021-05-07 15:04:16 +02:00
Pierre Noël
0b31bc3f42
make listLocales route available (#10255) 2021-05-07 09:54:55 +02:00
HichamELBSI
8117d4786e Fix SSO success redirection
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2021-05-06 11:06:22 +02:00
dependabot[bot]
32e045377f
Bump @babel/core from 7.13.16 to 7.14.0 (#10231)
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.13.16 to 7.14.0.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.14.0/packages/babel-core)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-05 18:30:24 +11:00
dependabot[bot]
a7de8156b1
Bump ora from 5.3.0 to 5.4.0 (#10223)
Bumps [ora](https://github.com/sindresorhus/ora) from 5.3.0 to 5.4.0.
- [Release notes](https://github.com/sindresorhus/ora/releases)
- [Commits](https://github.com/sindresorhus/ora/compare/v5.3.0...v5.4.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-04 17:59:48 +11:00
dependabot[bot]
cfb1eb549f
Bump apollo-server-koa from 2.23.0 to 2.24.0 (#10214)
Bumps [apollo-server-koa](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-koa) from 2.23.0 to 2.24.0.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/apollo-server-koa@2.24.0/packages/apollo-server-koa)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-03 18:12:36 +11:00
dependabot[bot]
e5d10b4120
Bump @fingerprintjs/fingerprintjs from 3.0.7 to 3.1.1 (#10212)
Bumps [@fingerprintjs/fingerprintjs](https://github.com/fingerprintjs/fingerprintjs) from 3.0.7 to 3.1.1.
- [Release notes](https://github.com/fingerprintjs/fingerprintjs/releases)
- [Commits](https://github.com/fingerprintjs/fingerprintjs/compare/v3.0.7...v3.1.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-03 18:11:52 +11:00
dependabot[bot]
a683540105
Bump react-tooltip from 4.2.17 to 4.2.18 (#10192)
Bumps [react-tooltip](https://github.com/wwayne/react-tooltip) from 4.2.17 to 4.2.18.
- [Release notes](https://github.com/wwayne/react-tooltip/releases)
- [Changelog](https://github.com/wwayne/react-tooltip/blob/master/CHANGELOG.md)
- [Commits](https://github.com/wwayne/react-tooltip/compare/v4.2.17...v4.2.18)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-30 18:56:29 +11:00
dependabot[bot]
c6fec7393d
Bump nodemailer from 6.5.0 to 6.6.0 (#10191)
Bumps [nodemailer](https://github.com/nodemailer/nodemailer) from 6.5.0 to 6.6.0.
- [Release notes](https://github.com/nodemailer/nodemailer/releases)
- [Changelog](https://github.com/nodemailer/nodemailer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodemailer/nodemailer/compare/v6.5.0...v6.6.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-30 18:38:24 +11:00
Alexandre Bodin
2fd29041f8 v3.6.1 2021-04-29 14:34:38 +02:00
Guillaume Douceron
94d8dd0dbd
Update french translation to i18n plugin (#10152)
Fixed a typo and harmonized according to the other plugins.
2021-04-29 22:12:37 +11:00
dependabot[bot]
6970cabce6
Bump react-query from 3.8.3 to 3.13.12 (#10154)
Bumps [react-query](https://github.com/tannerlinsley/react-query) from 3.8.3 to 3.13.12.
- [Release notes](https://github.com/tannerlinsley/react-query/releases)
- [Commits](https://github.com/tannerlinsley/react-query/compare/v3.8.3...v3.13.12)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-29 22:12:23 +11:00
Guilherme Pacheco
3b499e34d2
Fix #10172 (#10173) 2021-04-29 18:52:48 +11:00
Mark Kaylor
1e0a849932 confirm superAdminRole exists when syncing permissions 2021-04-28 13:52:39 +02:00
dependabot[bot]
8b75a40fb3
Bump ioredis from 4.26.0 to 4.27.1 (#10165)
Bumps [ioredis](https://github.com/luin/ioredis) from 4.26.0 to 4.27.1.
- [Release notes](https://github.com/luin/ioredis/releases)
- [Changelog](https://github.com/luin/ioredis/blob/master/Changelog.md)
- [Commits](https://github.com/luin/ioredis/compare/v4.26.0...v4.27.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-28 09:00:38 +02:00
dependabot[bot]
63b285b763
Bump apollo-server-koa from 2.22.1 to 2.23.0 (#10155)
Bumps [apollo-server-koa](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-koa) from 2.22.1 to 2.23.0.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/apollo-server-koa@2.23.0/packages/apollo-server-koa)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-27 09:55:21 +02:00
Alexandre BODIN
e94173b38a
Remove cache key so the url is valid for cors policy (#10148) 2021-04-27 09:52:13 +02:00
TheSeally
90b9064c17
Fix issue with incorrect cli termination when using flags quickstart and no-run (#10111)
On Windows, an empty return from the createQuickStartProject function caused the process termination to hang.
Added explicit process termination for this platform
2021-04-27 08:54:11 +02:00
Jean-Sébastien Herbaux
b97fb68f5c
[RBAC] Ignore only non visible attributes instead of non configurable ones (#10139)
* Ignore only non visible attributes instead of non configurable ones

* Update snapshots

* Refacto buildDeepAttributesCollection
2021-04-26 17:35:52 +02:00
SorinGFS
9d0e26b354
Add DKIM config example (#9923) 2021-04-26 17:19:34 +02:00
Ilya Artamonov
859f2d93a7
Updated Russian translate (#10133) 2021-04-26 17:10:58 +02:00
Ilya Artamonov
6c9243dca1
Fixed typo (#10132) 2021-04-26 17:10:35 +02:00
Tom Dyson
5f08fa37e7
Fix typo in query error message (#10116)
The possessive `its` doesn't have an apostrophe.

https://www.dictionary.com/e/its-vs-its/
2021-04-26 17:08:09 +02:00
Alexandre BODIN
196b0895f3
Fix issue relation loosing extra options on ctb update Fixes #3409 (#10102) 2021-04-26 17:05:43 +02:00