170 Commits

Author SHA1 Message Date
Josh
a3690b16a3
feat: add vite (#18697)
* feat: add vite

* fix: CheckPagePermissions was buggy

* fix: vite CJS warning & double print of experimental message

* chore: move to use plugins-workspace folder

* chore: update deps

---------

Co-authored-by: Paul <45032974+hide-me@users.noreply.github.com>
2024-01-11 14:14:25 +00:00
Rémi de Juvigny
25d2a8ffa1
fix: display nested components in edit view (#19160)
* add nested component in getstarted dz

* fix: display nested components in edit view

* chore: add comment
2024-01-05 13:50:10 +00:00
Alexandre Bodin
6b35da10af Merge branch 'main' into develop 2023-11-30 16:32:56 +01:00
Josh
a549feb253
chore: pretty codebase (#18835) 2023-11-17 14:48:05 +00:00
Ben Irvin
a96121ddeb
chore: Migrate CTB to typescript (#18155)
Co-authored-by: Bassel Kanso <basselkanso82@gmail.com>
Co-authored-by: Christian <christiancp100@gmail.com>
Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>
Co-authored-by: Christian <christian.capeans.perez@strapi.io>
Co-authored-by: Convly <jean-sebastien.herbaux@epitech.eu>
2023-11-17 10:27:09 +01:00
Alexandre Bodin
8ac0ef5c42 fix(admin): load app custom with jsx and allow more extensions 2023-11-13 19:21:11 +01:00
Josh
2f026ea9b3
fix(admin): admin build errors (#18764) (#18770)
* fix(admin): import & pass user customisations for admin panel

* fix(admin): modules should be resolved with module paths not system paths

* fix(admin): ensure webpack config is a type of function before calling, warn otherwise

* fix: convert the pluginPath to a system path before trying to resolve relative

* chore: update documentation
2023-11-13 12:07:27 +00:00
Josh
175b72af9d
fix(admin): admin build errors (#18764)
* fix(admin): import & pass user customisations for admin panel

* fix(admin): modules should be resolved with module paths not system paths

* fix(admin): ensure webpack config is a type of function before calling, warn otherwise

* fix: convert the pluginPath to a system path before trying to resolve relative

* chore: update documentation
2023-11-13 10:21:24 +00:00
Josh
116339ad86
refactor: admin build pipeline (#18539)
* chore(admin): refactor admin develop/build pipeline

chore: remove `webpackChunkName` comments

chore: reuse admin tsconfig where possible

chore: add .strapi to gitignore

chore(admin): pack-up

feat(admin): inject commands into strapi from admin for building

feat(admin): move watch command to admin

chore: keep backward compat API available

Update packages/core/admin/_internal/cli/index.ts

docs(admin): document the build & develop process and pipeline

test(admin): fix StrapiApp tests

chore: fix build

* Update skipped_tests.yml

* test(e2e): fix e2e setup

feat: add dependency installation

fix: mjs webpack resolution

* chore: fix server exports

* fix: typescript project type generation

* fix: development watch mode

* fix: connect to hot middleware – anywhere

* Update packages/core/admin/_internal/node/core/monorepo.ts

Co-authored-by: Marc Roig <marc12info@gmail.com>

* fix(admin): theme toggle type export

* chore: fixes

* chore: pr amends

Co-Authored-By: Ben Irvin <ben@innerdvations.com>

---------

Co-authored-by: Marc Roig <marc12info@gmail.com>
Co-authored-by: Ben Irvin <ben@innerdvations.com>
2023-10-30 11:36:16 +00:00
Simone
24fa848ba3
Add new Blocks rich text editor (alpha) (#18166)
Co-authored-by: Madhuri Sandbhor <madhurisandbhor@gmail.com>
Co-authored-by: markkaylor <mark.kaylor@strapi.io>
Co-authored-by: Rémi de Juvigny <remi.dejuvigny@strapi.io>
Co-authored-by: Madhuri Sandbhor <madhuri.sandbhor@strapi.io>
2023-09-26 17:21:44 +02:00
Gustav Hansen
fc86e60e00 Merge branch 'main' into feature/rw-stage-rbac 2023-09-25 12:16:34 +02:00
Alexandre Bodin
efc1c40f22 Apply review comments 2023-09-15 11:09:37 +02:00
Alexandre Bodin
5da4345568 Fix type only pkg being required as js 2023-09-08 08:08:21 +02:00
Alexandre Bodin
e1658b575c init 2023-08-23 12:34:08 +02:00
Alexandre Bodin
34c2a41843 Do not try to add API endpoint for content type plugins using i18N 2023-07-11 13:46:54 +02:00
Marc-Roig
2154952a3b chore: activate RW in getstarted category and address schemas 2023-04-24 11:58:56 +02:00
Jamie Howard
05cee5cbd7 Merge remote-tracking branch 'origin/main' into feature/review-workflow 2023-04-11 14:15:43 +01:00
Alexandre BODIN
8363a89ca2
Fix core router not working within plugin context (#14456) 2023-03-23 18:59:25 +01:00
Josh
e19c0f92cb fix: do not populate a single component if it doesn't exist in initialdata 2023-03-21 10:08:54 +00:00
Gustav Hansen
0a008881ef Merge branch 'main' into feature/review-workflow 2023-03-16 15:49:45 +01:00
Ben Irvin
801e3db415 add traverse query
fix single type

fix query

sanitize pagination count params

add comments

Cleanup the params/filters sanitize helpers

sanitize association resolver

Sanitize sort

fix graphql single type

fix graphql types

fix addFindQuery

Sanitize fields

Update sanitize sort to handle all the different formats

Update fields sanitize to handle regular strings & wildcard

Fix non scalar recursion

Add a traverse factory

Add visitor to remove dz & morph relations

Replace the old traverse utils (sort, filters) by one created using the traverse factory

add sanitize populate

await args

fix async and duplicate sanitization

sanitize u&p params

Add traverse fields

Fix traverse & sanitize fields

add traverse fields to nested populate

sanitize admin api filter queries

Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>

sanitize sort params in admin API

todo

make token fields unsearchable with _q

sanitize delete mutation

Update packages/core/admin/server/services/permission/permissions-manager/sanitize.js

Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>

fix errors on queries without ctx

rename findParams to sanitizedParams

Sanitize queries everywhere in the content manager admin controllers

sanitize single type update and delete

Ignore non attribute keys in the sanitize sort

Fix the sanitize query sort for nested string sort

Fix permission check for the admin

typo

sanitize upload

sanitize admin media library

sanitize admin users

Add missing await

Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>

set U&P users fields to searchable:false

add token support to createContentAPIRequest

add searchable:false to getstarted U&P schema

remove comment

sanitize component resolver

remove await

add searchable false to the file's folder path

Fix admin query when the permission query is set to null

add basic tests for filtering private params

add tests for fields

add pagination tests

Fix admin user fields not being sanitized

Fix convert query params for the morph fragment on undefined value

Traverse dynamic zone on nested populate

Handle nested sort, filters & fields in populate queries + handle populate fragment for morphTo relations

Sanitize 'on' subpopulate

Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>

don't throw error on invalid attributes

check models for snake case column name instead of assuming they are operators

Add first batch of api tests for params sanitize

Fix sort traversal: handle object arrays

Put back removePassword for fields,sort,filters

Add schemas and fixtures for sanitize api tests

Add tests for relations (sanitize api tests)

Move constant to domain scope

Rename sanitize params to sanitize query

Fix typo

Cleanup fixtures file

Fix variable name conflict

Update packages/core/admin/server/services/permission/permissions-manager/sanitize.js

Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>

Update comment for array filters

Rename sanitize test

Test implicit & explicit array operator for filter

Remove unused code
2023-03-15 14:59:19 +01:00
Josh
687df3b785 chore: rename relation to capital 2023-03-03 14:22:54 +00:00
Josh
fee48616bc Update examples/getstarted/src/api/relation-locale/content-types/relation-locale/schema.json
Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
2023-03-03 14:17:23 +00:00
Josh
f4f2b5ab2e fix: dont merge the state if the ID changes
fix: dont merge the state if the ID changes

fix: pass id to querykey & add cleanup method to useRelation hook

fix: pass defaultParams as part of the cache key

Revert "fix: reset cache for `relation` keys in i18n plugin"

This reverts commit 34b2fd9fabfcb93fb9f416616802e10b79133112.

fix: pass defaultParams as part of the cache key

chore: spread cachekey in search query

fix: move logic to useRelations hook that handles removing from the store.

fix: broken test

refactor: rename method to onUnmount
2023-03-03 14:17:23 +00:00
nathan-pichon
f121209c9b
chore(example): get previous state on content-type address 2023-03-03 11:17:02 +01:00
nathan-pichon
a0d89b6884
feat(review-workflows): add migration when activating rw on content-type (wip) 2023-03-01 12:00:47 +01:00
Josh
6b17f8ad12 chore: convert all files to single imports of the DS & icons
chore: remove eslint rule

chore: update snapshots

chore: update snapshots

chore: add eslint rule to stop direct imports apart from v2
2023-02-15 17:23:59 +00:00
Pierre Noël
2a18a3fa76 Merge branch 'main' into feature/audit-logs 2023-01-18 11:11:54 +01:00
Josh
8d6a247b14 fix: tidy-up name solving function and handle refetching and removing 2023-01-10 13:58:55 +00:00
Gustav Hansen
7f37735a5a Merge branch 'main' into feature/relations-reordering 2022-12-21 16:40:34 +01:00
Rémi de Juvigny
d8ae7ad98b Merge remote-tracking branch 'origin/main' into feature/audit-logs 2022-12-19 18:40:43 +01:00
Rémi de Juvigny
fb73cb6df5 Process audit log events
Co-authored-by: markkaylor <mark.kaylor@strapi.io>
Co-authored-by: Fernando Chávez <fc9chavez@gmail.com>
2022-12-14 17:42:24 +01:00
Barış Can Daylık
226a462b7a Add Turkish translation 2022-12-13 00:44:27 +03:00
Josh
c51cde28a8 Merge branch 'main' into feature/relations-reordering 2022-12-09 17:10:00 +00:00
Julie Plantey
bdf778d2db (chore): remove unnecessary media field to category CT 2022-12-07 17:43:24 +01:00
Julie Plantey
2d64474728 labelAction for MediaLibrabryInput component & CarousselAssets tests 2022-12-07 17:37:46 +01:00
Josh
f0b851a7b9 feat(wip): add dnd to dynamic zones 2022-12-05 10:00:16 +00:00
Mark Kaylor
57959047e2 Remove required true from kitchen_sink 2022-10-12 14:12:08 +02:00
Mark Kaylor
a0fa85166f Upcase custom field test types 2022-10-12 14:07:32 +02:00
Mark Kaylor
e3e72a1b8a Add default value to options 2022-10-10 16:55:10 +02:00
Mark Kaylor
6d8140ae75 Fix number and add defaults 2022-10-07 16:17:50 +02:00
Alexandre Bodin
5681c1e38f Merge branch 'main' into features/custom-fields 2022-09-21 14:27:56 +02:00
Alexandre Bodin
ac1294410e Expose with the strpai global 2022-09-16 09:57:12 +02:00
Alexandre Bodin
621259f5b0 Proof of Concept for request context 2022-09-16 09:57:12 +02:00
Alexandre Bodin
de2ed2bfa4 Wip 2022-09-16 09:57:12 +02:00
Rémi de Juvigny
778f30cb6c Remove mycustomfields plugin 2022-09-07 18:34:29 +02:00
Mark Kaylor
2bf73e4fdc Merge branch 'features/custom-fields' of github.com:strapi/strapi into custom-fields/color-picker 2022-09-01 18:01:46 +02:00
Mark Kaylor
76e01be4cd Add custom fields plugin and color-picker custom field 2022-08-25 12:01:13 +02:00
Mark Kaylor
a5d56169de Remove all traces of map custom field 2022-08-25 09:16:07 +02:00
Mark Kaylor
c5985450de Remove unused component 2022-08-24 10:07:06 +02:00