1439 Commits

Author SHA1 Message Date
Alexandre Bodin
6f7e0c27e7 v3.6.5 2021-06-23 15:44:38 +02:00
Alexandre Bodin
37de70c4f9 v3.6.4 2021-06-23 15:19:11 +02:00
Jean-Sébastien Herbaux
c7c549aee6
Fix RBAC upload permissions (#10484)
* Fix fetch of created_by.roles for the upload permissions' check

* Remove console.log

* Add default value for the set roles

* Fetch the author (user) instead of their roles only

* Only populate roles for the author
2021-06-17 12:00:02 +02:00
Alexandre Bodin
0ab3503e3c v3.6.3 2021-06-02 16:24:59 +02:00
Andrii Chernenko
5bb76c1918
Issue #8020: Disabled autoPopulate for File model (upload plugin) (#10370)
* Issue 8020: Disabled autoPopulate for File model (upload plugin)

* Issue #8020: Removed default File model populate

* Issue #8020: Reverted api controller methods
2021-06-02 16:07:00 +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
cyril lopez
436d9fdab5
Upgrade @buffet.js (#10270)
Signed-off-by: soupette <cyril.lpz@gmail.com>
2021-05-10 11:25:35 +02:00
Alexandre Bodin
2fd29041f8 v3.6.1 2021-04-29 14:34:38 +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
Alexandre Bodin
4ab210eec6 v3.6.0 2021-04-21 17:00:57 +02:00
Alexandre Bodin
4a0448e5bf Merge branch 'master' into features/i18n 2021-04-21 13:02:12 +02:00
Mark Kaylor
77f87cbfe2 add plugins and providers to send event 2021-04-20 17:17:23 +02:00
Alexandre Bodin
e54d83ef5a Merge branch 'master' into features/i18n 2021-04-19 19:16:02 +02:00
soupette
25fb15e30d Upgrade buffet.js to 3.3.5
Signed-off-by: soupette <cyril.lpz@gmail.com>
2021-04-19 08:41:30 +02:00
dependabot[bot]
793ee6a86c
Bump sharp from 0.28.0 to 0.28.1 (#10013)
Bumps [sharp](https://github.com/lovell/sharp) from 0.28.0 to 0.28.1.
- [Release notes](https://github.com/lovell/sharp/releases)
- [Changelog](https://github.com/lovell/sharp/blob/master/docs/changelog.md)
- [Commits](https://github.com/lovell/sharp/compare/v0.28.0...v0.28.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-12 10:45:06 +02:00
Alexandre Bodin
614ce35d37 Merge branch 'master' into features/i18n 2021-04-09 17:43:59 +02:00
dependabot[bot]
ca237cffdf
Bump lodash from 4.17.20 to 4.17.21 (#9990)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-08 14:06:59 +02:00
soupette
1a510ae790 Upgrade react-redux
Signed-off-by: soupette <cyril.lpz@gmail.com>
2021-04-06 10:10:08 +02:00
Alexandre Bodin
fd18d2a67a Merge branch 'master' into features/i18n 2021-04-02 17:33:24 +02:00
dependabot[bot]
d60a6a6522
Bump sharp from 0.27.2 to 0.28.0 (#9927)
Bumps [sharp](https://github.com/lovell/sharp) from 0.27.2 to 0.28.0.
- [Release notes](https://github.com/lovell/sharp/releases)
- [Changelog](https://github.com/lovell/sharp/blob/master/docs/changelog.md)
- [Commits](https://github.com/lovell/sharp/compare/v0.27.2...v0.28.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-01 09:53:51 +02:00
cyril lopez
1db87e19ad
Revert react-redux upgrade (#9930)
Signed-off-by: soupette <cyril.lpz@gmail.com>
2021-04-01 09:53:16 +02:00
dependabot[bot]
b0c932cb87
Bump react-redux from 7.2.2 to 7.2.3 (#9902)
Bumps [react-redux](https://github.com/reduxjs/react-redux) from 7.2.2 to 7.2.3.
- [Release notes](https://github.com/reduxjs/react-redux/releases)
- [Changelog](https://github.com/reduxjs/react-redux/blob/master/CHANGELOG.md)
- [Commits](https://github.com/reduxjs/react-redux/compare/v7.2.2...v7.2.3)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-31 14:36:58 +02:00
Marvin Frachet
a7f4bcbcfe
Bumping buffet and fixing list radius (#9911) 2021-03-31 12:25:47 +02:00
soupette
36dc390190 Fix media label css
Signed-off-by: soupette <cyril.lpz@gmail.com>
2021-03-30 18:13:06 +02:00
soupette
9c8bd81dfc Upgrade Buffet.js
Signed-off-by: soupette <cyril.lpz@gmail.com>
2021-03-30 10:24:17 +02:00
dependabot[bot]
4030106720
Bump react from 16.13.1 to 16.14.0 (#9853)
Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react) from 16.13.1 to 16.14.0.
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/v16.14.0/packages/react)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-29 14:07:37 +02:00
Convly
4c21bea64b Use a global timeout instead of redefining it everytime 2021-03-26 20:15:38 +01:00
Alexandre Bodin
a66e0269da Merge branch 'master' into features/i18n 2021-03-25 15:07:41 +01:00
Jean-Sébastien Herbaux
1e5b1c99f6
I18n/ permissions rework (#9535)
* Add a domain layer for the permission, rework the engine handling of the permissions

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

* Add permissions-fields-to-properties migration for the admin

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

* Removes useless console.log

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

* Remove debug logLevel from provider-login.test.e2e.js

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

* Adds the new layout for the GET permissions, allow to subscribe to actionRegistered events, adds i18n handlers

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

* Fix typo

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

* Update permissions validators

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

* Update unit tests

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

* Update integrations test + fix some validation issues

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

* Change plugins & settings section format for the permissions layout

* only return locales property to localized subjects for the permission's layout

* Do not send the locales property to the permission's layout when there is no locales created

* Add the 'locales' property to publish & delete routes

* Fix unwanted mutation of the sections builder states on multiple builds

* Fix units tests with (new engine)

* Fix admin-role e2e test - Add locales property to the update payload

* fix e2e testsé

* Update e2e snapshots

* Fix unit test for i18n bootstrap

* Add mocks for i18n/bootstrap test

* Fix has-locale condition & updatePermission validator

* Avoid mutation in migration, always authorize super admin for has-locales condition

* Rework rbac domain objects, add a hook module and a provider factory

* Remove old providers

* Update the admin services & tests for the new rbac domain & providers

* Fix tests, bootstrap functions & services following rbac domain rework

* Update migration runner

* PR comments

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

* Remove useless console.log

* Fix sanitizeCondition bug

* Section builder rework

* Add test for the section-builder section & add jsdoc for the permission domain

* pr comments (without the migrations)

* fix fields-to-properties migration

* Add jsdoc for the sections-builder

* Moves createBoundAbstractDomain from permission domain to the engine service

* Remove debug logLevel for admin role test (e2e)

* Fix core-store

* Fix hooks & move business logic from i18n bootstrap to dedicated services

* add route get-non-localized-fields

* use write and read permission

* refacto

* add input validator

* add route doc

* handle ST

Co-authored-by: Pierre Noël <petersg83@gmail.com>
Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
2021-03-25 14:59:44 +01:00
Alexandre Bodin
3065d72a4b v3.5.4 2021-03-25 14:34:45 +01:00
dependabot[bot]
2c5224a437
Bump sharp from 0.27.1 to 0.27.2 (#9819)
Bumps [sharp](https://github.com/lovell/sharp) from 0.27.1 to 0.27.2.
- [Release notes](https://github.com/lovell/sharp/releases)
- [Changelog](https://github.com/lovell/sharp/blob/master/docs/changelog.md)
- [Commits](https://github.com/lovell/sharp/compare/v0.27.1...v0.27.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-24 09:03:32 +01:00
soupette
cdf8850c96 Merge branch 'features/i18n' of github.com:strapi/strapi into i18n/rbac-rework-front 2021-03-23 10:17:50 +01:00
Alexandre Bodin
54c3cfde80 Merge branch 'master' into features/i18n 2021-03-22 16:30:14 +01:00
soupette
9a510f4e1f Merge branch 'i18n/rbac-cm-manager-attempt-fix' of github.com:strapi/strapi into i18n/cm-edit-layout 2021-03-12 10:06:19 +01:00
Alexandre Bodin
c57b3be1eb Merge branch 'master' into features/i18n 2021-03-12 09:45:51 +01:00
dependabot[bot]
6d4d74e8fd
Bump byte-size from 7.0.0 to 7.0.1
Bumps [byte-size](https://github.com/75lb/byte-size) from 7.0.0 to 7.0.1.
- [Release notes](https://github.com/75lb/byte-size/releases)
- [Commits](https://github.com/75lb/byte-size/compare/v7.0.0...v7.0.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-12 05:50:14 +00:00
soupette
fd3dda166f Add translation to labelIcon
Signed-off-by: soupette <cyril.lpz@gmail.com>
2021-03-11 17:02:33 +01:00
Alexandre Bodin
33552e43b8 v3.5.3 2021-03-11 14:25:37 +01:00
cyril lopez
068a31c3e5
Merge pull request #9597 from strapi/i18n/cm-layout-enhancement
[I18n] CM add icons indicator
2021-03-08 10:58:15 +01:00
Alexandre Bodin
e9b4bf5616 Merge branch 'master' into features/i18n 2021-03-05 12:22:18 +01:00
soupette
cf2bd304cf Upgrade buffet.js. Add icon to inputs label
Signed-off-by: soupette <cyril.lpz@gmail.com>
2021-03-04 11:59:26 +01:00
dependabot[bot]
bda0c89aaa
Bump react-router from 5.1.2 to 5.2.0
Bumps [react-router](https://github.com/ReactTraining/react-router) from 5.1.2 to 5.2.0.
- [Release notes](https://github.com/ReactTraining/react-router/releases)
- [Changelog](https://github.com/ReactTraining/react-router/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ReactTraining/react-router/compare/v5.1.2...v5.2.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-04 08:11:47 +00:00
dependabot[bot]
a2437c0b5d
Bump cropperjs from 1.5.9 to 1.5.11 (#9594)
Bumps [cropperjs](https://github.com/fengyuanchen/cropperjs) from 1.5.9 to 1.5.11.
- [Release notes](https://github.com/fengyuanchen/cropperjs/releases)
- [Changelog](https://github.com/fengyuanchen/cropperjs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/fengyuanchen/cropperjs/compare/v1.5.9...v1.5.11)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-04 08:44:21 +01:00
Alexandre Bodin
1a472c98a7 v3.5.2 2021-03-01 11:24:44 +01:00
Alexandre Bodin
df76149931 Fix test 2021-03-01 11:16:51 +01:00
Sebastian Górski
6fb96362e4
Polish translation for Strapi Plugin Upload (#9495) 2021-03-01 10:48:35 +01:00
Brett Willis
c79334afc4
Media plugin: Fix parsing model timestamp config (#9474)
* Fix parsing model timestamp config

* Update getFileModelTimestamps tests

* Update getFileModelTimestamps tests

* Fix test for error
2021-03-01 10:48:20 +01:00
dependabot[bot]
0903d5b04d
Bump react-redux from 7.2.0 to 7.2.2 (#9528)
Bumps [react-redux](https://github.com/reduxjs/react-redux) from 7.2.0 to 7.2.2.
- [Release notes](https://github.com/reduxjs/react-redux/releases)
- [Changelog](https://github.com/reduxjs/react-redux/blob/master/CHANGELOG.md)
- [Commits](https://github.com/reduxjs/react-redux/compare/v7.2.0...v7.2.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-26 09:28:10 +01:00
dependabot[bot]
dd98ae8d85
Bump react-copy-to-clipboard from 5.0.2 to 5.0.3
Bumps [react-copy-to-clipboard](https://github.com/nkbt/react-copy-to-clipboard) from 5.0.2 to 5.0.3.
- [Release notes](https://github.com/nkbt/react-copy-to-clipboard/releases)
- [Commits](https://github.com/nkbt/react-copy-to-clipboard/compare/v5.0.2...v5.0.3)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-25 05:37:53 +00:00