17027 Commits

Author SHA1 Message Date
Convly
e70804099c Fix typo
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2021-03-26 16:43:15 +01:00
Convly
370887695f Fix permissions differences on resetSuperAdminPermissions
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2021-03-26 16:37:29 +01:00
Convly
57ad9bc663 Set default jest timeout to 60s for every suite 2021-03-26 16:36:09 +01:00
markkaylor
b7bd30b918
add cross env (#9845) 2021-03-26 15:41:13 +01:00
dependabot[bot]
3a298d3350
Bump @fortawesome/fontawesome-free from 5.15.2 to 5.15.3 (#9841)
Bumps [@fortawesome/fontawesome-free](https://github.com/FortAwesome/Font-Awesome) from 5.15.2 to 5.15.3.
- [Release notes](https://github.com/FortAwesome/Font-Awesome/releases)
- [Changelog](https://github.com/FortAwesome/Font-Awesome/blob/master/CHANGELOG.md)
- [Commits](https://github.com/FortAwesome/Font-Awesome/compare/5.15.2...5.15.3)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-26 09:55:13 +01:00
Convly
e1f1c14c13 Sync super admin permissions with locales list for localized subjects 2021-03-26 09:46:06 +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
cyril lopez
56cd7cad86
Merge pull request #9834 from strapi/i18n/front-fixes
I18n/front fixes
2021-03-25 14:51:21 +01:00
Alexandre Bodin
3065d72a4b v3.5.4 v3.5.4 2021-03-25 14:34:45 +01:00
Alexandre BODIN
cb44cd3f63
Merge pull request #9480 from strapi/features/starter-cli
[Starter CLI] Create CLI for Strapi starter project
2021-03-25 14:33:05 +01:00
soupette
0d897d31be Fix common fields
Signed-off-by: soupette <cyril.lpz@gmail.com>
2021-03-25 14:11:23 +01:00
Mark Kaylor
5505efd304 Create CLI for Strapi starter project
Create starter CLI

Add spaces option

Extract project basename

Add starter shortcut

Refactor git init commit

Replace concurrently with npm-run-all

Move fetch repo function to dedicated file

Allow shortcut to accept external org repo

Fix package config & readme

Fix versions

Add task prefixes

Update readme

[Starter CLI] error handling (#9600)

* Display error message + help for missing arguments

* Add cleaner error messages

* Bump commander from v6.1.0 to v7.1.0

* Capture and log errors from commander

* Simplify cli argument errors

* Provide more human readable error messages

* Replace throw with console log

* Add logger

Add starter tracking

Add wrapper for tracking keys

Update root config

Keep template in scope root

fix strapi config

Fix open frontend

Remove open-cli

Update for rename frontend->starter

update description

Update tracking

Fix tests

fix e2e tests

Make sure packageJsonStrapi does not override unwanted keys & make it optional to avoid errors

simplify metadata strapi

Allow stater or frontend folder for smooth migration of existing starters

Udpate dep

Handle error
2021-03-25 14:06:01 +01:00
soupette
791b0e0283 Add logic to update the menu links when the configurations have been changed
Signed-off-by: soupette <cyril.lpz@gmail.com>
2021-03-25 12:18:29 +01:00
soupette
84ab8f3b45 Add missing tests
Signed-off-by: soupette <cyril.lpz@gmail.com>
2021-03-25 11:48:46 +01:00
soupette
37830f725f Move links search logic into the main menu
Signed-off-by: soupette <cyril.lpz@gmail.com>
2021-03-25 11:09:15 +01:00
dependabot[bot]
e9127b7ca0
Bump @sentry/node from 6.2.0 to 6.2.3 (#9829)
Bumps [@sentry/node](https://github.com/getsentry/sentry-javascript) from 6.2.0 to 6.2.3.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/6.2.0...6.2.3)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-25 09:02:02 +01:00
Alexandre BODIN
83065dae7b
Merge pull request #9825 from strapi/i18n/migration-default-locale
Add migration when a CT becomes localized
2021-03-24 17:01:19 +01:00
soupette
9e4fcd9de6 Fix react select option style
Signed-off-by: soupette <cyril.lpz@gmail.com>
2021-03-24 16:04:00 +01:00
Pierre Noël
d0e90144e3 refacto 2021-03-24 14:32:16 +01:00
Alexandre BODIN
7cf58fb0da
Merge pull request #9816 from strapi/i18n/fill-empty-attributes-at-creation
[i18n] Fill non localized fields at CM locale creation
2021-03-24 12:59:17 +01:00
Pierre Noël
3e1a823f1b add migration when a CT becomes localized 2021-03-24 12:14:49 +01:00
Pierre Noël
6b55d3c6b9 fill non localized fields at CM locale creation 2021-03-24 10:56:51 +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
dependabot[bot]
a66b2530f8
Bump koa-passport from 4.1.3 to 4.1.4 (#9823)
Bumps [koa-passport](https://github.com/rkusa/koa-passport) from 4.1.3 to 4.1.4.
- [Release notes](https://github.com/rkusa/koa-passport/releases)
- [Changelog](https://github.com/rkusa/koa-passport/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rkusa/koa-passport/commits)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-24 08:58:12 +01:00
dependabot[bot]
86e0cf0f55
Bump snyk from 1.505.0 to 1.506.0 (#9813)
Bumps [snyk](https://github.com/snyk/snyk) from 1.505.0 to 1.506.0.
- [Release notes](https://github.com/snyk/snyk/releases)
- [Changelog](https://github.com/snyk/snyk/blob/master/.releaserc)
- [Commits](https://github.com/snyk/snyk/compare/v1.505.0...v1.506.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-23 14:09:41 +01:00
cyril lopez
fb45e0b5e8
Merge pull request #9568 from strapi/i18n/rbac-rework-front
[i18n] Front-end
2021-03-23 10:51:52 +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
dependabot[bot]
c1851c917a
Bump @babel/runtime from 7.13.7 to 7.13.10 (#9807)
Bumps [@babel/runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-runtime) from 7.13.7 to 7.13.10.
- [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.13.10/packages/babel-runtime)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-23 09:57:15 +01:00
dependabot[bot]
6c6cb52a45
Bump snyk from 1.500.0 to 1.505.0 (#9809)
Bumps [snyk](https://github.com/snyk/snyk) from 1.500.0 to 1.505.0.
- [Release notes](https://github.com/snyk/snyk/releases)
- [Changelog](https://github.com/snyk/snyk/blob/master/.releaserc)
- [Commits](https://github.com/snyk/snyk/compare/v1.500.0...v1.505.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-23 09:56:52 +01:00
dependabot[bot]
3a5d1d5a11
Bump eslint-config-airbnb from 18.2.0 to 18.2.1 (#9810)
Bumps [eslint-config-airbnb](https://github.com/airbnb/javascript) from 18.2.0 to 18.2.1.
- [Release notes](https://github.com/airbnb/javascript/releases)
- [Commits](https://github.com/airbnb/javascript/compare/eslint-config-airbnb-v18.2.0...eslint-config-airbnb-v18.2.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-23 09:56:29 +01:00
cyril lopez
8da399da80
Merge pull request #9812 from strapi/i18n/fix-ctb-menu-links
Fix menu links that were missing when updating a content type
2021-03-23 09:23:02 +01:00
soupette
009c995736 Fix menu links that were missing when updating a content type
Signed-off-by: soupette <cyril.lpz@gmail.com>
2021-03-23 09:05:49 +01:00
Daniel
eff298230f
Just a minor typo (#9784) 2021-03-22 16:49:54 +01:00
Alexandre Bodin
54c3cfde80 Merge branch 'master' into features/i18n 2021-03-22 16:30:14 +01:00
Alexandre BODIN
d7428b74c2
Merge pull request #9801 from strapi/fix/test-warning
Delete useless test
2021-03-22 16:29:10 +01:00
Pierre Noël
bf3545c7b7 delete useless test 2021-03-22 16:06:36 +01:00
cyril lopez
3b4254366f
Merge pull request #9799 from strapi/i18n/rbac-rework-front-utils-cm
Add utils to CM folder in helper plugin
2021-03-22 15:29:34 +01:00
mfrachet
7dfcf52e08 Add utils to CM folder in helper plugin 2021-03-22 15:14:49 +01:00
Marvin Frachet
e293243da9
[i18n] add filters from the start (#9796) 2021-03-22 10:59:03 +01:00
Marvin Frachet
932da387be
[I18n/rbac] add additional infos in delete modal (#9795) 2021-03-22 10:27:48 +01:00
Alexandre BODIN
c062e224be
Merge pull request #9497 from strapi/i18n/disable-i18n-field
I18n/disable i18n field
2021-03-22 10:12:58 +01:00
Pierre Noël
1536810c80
handle delete ST core-api (#9781) 2021-03-22 10:11:38 +01:00
dependabot[bot]
bb90b348ac
Bump sanitize-html from 2.3.2 to 2.3.3 (#9789)
Bumps [sanitize-html](https://github.com/apostrophecms/sanitize-html) from 2.3.2 to 2.3.3.
- [Release notes](https://github.com/apostrophecms/sanitize-html/releases)
- [Changelog](https://github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apostrophecms/sanitize-html/compare/2.3.2...2.3.3)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-22 09:24:26 +01:00
dependabot[bot]
83ea55eb84
Bump qs from 6.9.6 to 6.10.1 (#9791)
Bumps [qs](https://github.com/ljharb/qs) from 6.9.6 to 6.10.1.
- [Release notes](https://github.com/ljharb/qs/releases)
- [Changelog](https://github.com/ljharb/qs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.9.6...v6.10.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-22 09:24:12 +01:00
dependabot[bot]
5b1d49a553
Bump @fortawesome/free-solid-svg-icons from 5.15.2 to 5.15.3 (#9793)
Bumps [@fortawesome/free-solid-svg-icons](https://github.com/FortAwesome/Font-Awesome) from 5.15.2 to 5.15.3.
- [Release notes](https://github.com/FortAwesome/Font-Awesome/releases)
- [Changelog](https://github.com/FortAwesome/Font-Awesome/blob/master/CHANGELOG.md)
- [Commits](https://github.com/FortAwesome/Font-Awesome/compare/5.15.2...5.15.3)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-22 09:24:04 +01:00
dependabot[bot]
1694e0d827
Bump swagger-ui-dist from 3.45.0 to 3.45.1 (#9792)
Bumps [swagger-ui-dist](https://github.com/swagger-api/swagger-ui) from 3.45.0 to 3.45.1.
- [Release notes](https://github.com/swagger-api/swagger-ui/releases)
- [Commits](https://github.com/swagger-api/swagger-ui/compare/v3.45.0...v3.45.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-22 09:23:50 +01:00
cyril lopez
1e61e9aa81
Merge pull request #9790 from strapi/dependabot/npm_and_yarn/react-virtualized-9.22.3
Bump react-virtualized from 9.22.2 to 9.22.3
2021-03-22 08:09:21 +01:00
dependabot[bot]
7b3e7cff77
Bump react-virtualized from 9.22.2 to 9.22.3
Bumps [react-virtualized](https://github.com/bvaughn/react-virtualized) from 9.22.2 to 9.22.3.
- [Release notes](https://github.com/bvaughn/react-virtualized/releases)
- [Changelog](https://github.com/bvaughn/react-virtualized/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bvaughn/react-virtualized/compare/v9.22.2...v9.22.3)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-22 06:13:14 +00:00
Alexandre BODIN
2cdc8c7a82
Merge pull request #9768 from strapi/i18/st-core-api
[I18n] Single type core api update
2021-03-19 16:07:13 +01:00