139 Commits

Author SHA1 Message Date
Josh
cc1043c512
feat: update to react-router-dom@6 (#19184) 2024-01-15 11:13:36 +00:00
Josh
d402c40cae Merge branch 'develop' into v5/main 2024-01-11 15:52:47 +00:00
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
Josh
f324494fe9 Merge branch 'develop' into v5/main 2024-01-10 15:58:45 +00:00
Josh
09b9d36b22 Merge branch 'main' into develop 2024-01-10 14:37:01 +00:00
Josh
170799d29c
fix(helper-plugin): memoize GenericInput for performance issues (#19177)
Co-authored-by: Madhuri Sandbhor <madhurisandbhor@gmail.com>
Co-authored-by: Rémi de Juvigny <8087692+remidej@users.noreply.github.com>
2024-01-09 10:59:30 +00:00
Josh
4cd75b2523 Merge branch 'develop' into v5/main 2024-01-04 08:32:19 +00:00
Josh
22f3123e94
refactor(admin): add auth provider & move to use redux-toolkit-query (#19062)
* feat(admin): add Auth feature

* refactor: authentication to use redux-toolkit

* chore(admin): convert admin data-fetching to use redux-toolkit-query

* chore: add docs

* fix: default logo would not show on login page

* fix: app flashes on logout

* fix: logout should work across browsers
2024-01-02 17:01:58 +00:00
Josh
ddbb55f2eb Merge branch 'main' into releases/4.17.0 2024-01-02 13:41:57 +00:00
markkaylor
62eeed5e50
Merge branch 'main' into feature/content-releases 2023-12-14 17:13:48 +01:00
Josh
240feaeb04
refactor(admin): remove some contexts and use redux instead (#19040)
* refactor(admin): move to use slice over reducer

* refactor(admin): theme into redux

* refactor(admin): remove Admin context

* chore: move api tokens context to its edit view

* chore: move injection zones up to appropriate folders

we never use shared anyway.

* chore: move Configuration to single feature file

* refactor(admin): move language to redux

* chore: add tests for redux slice
2023-12-13 10:04:43 +00:00
Josh
d23325640d
chore(cm): convert list-view to TS (#19016)
* chore(cm): convert list-view to TS

* chore: fix broken tests

* chore: remove separate recursive paths and unify
2023-12-11 18:51:25 +00:00
Jamie Howard
1f94748146
fix: wrapAxiosInstance.test (#18382) 2023-12-11 12:23:15 +00:00
Josh
626dc81cda Merge branch 'develop' into v5/main 2023-12-08 16:31:21 +00:00
HichamELBSI
31c6013e13 chore(admin): convert review workflows page to TS 2023-12-06 22:41:51 +01:00
Josh
f1dd5cc8ee
chore(content-manager): convert the editview to typescript (#18948) 2023-12-04 16:00:50 +00:00
markkaylor
4f6722c6d4
feat(content-releases): add create release action to cm edit view (#18905) 2023-12-01 09:27:16 +01:00
Alexandre Bodin
e0de993d4a Merge branch 'develop' into v5/main 2023-11-30 16:42:36 +01:00
Gustav Hansen
daf387268b chore(admin): convert transfer tokens to TS
Co-authored-by: Josh Ellis <josh.ellis@strapi.io>
2023-11-24 13:18:11 +01:00
Alexandre Bodin
27aa897cbb Merge branch 'develop' into v5/main 2023-11-23 11:52:10 +01:00
Gustav Hansen
03cf61f09a
chore(admin): convert API Token settings page to TS (#18680)
* chore(admin): convert API Token settings page to TS

Co-Authored-By: Gustav Hansen <gu@stav.dev>

* chore(admin): cleanup api token contracts (#18862)

---------

Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
2023-11-21 17:12:49 +00:00
Josh
86f98b66fe
chore(admin): convert settings pages (#18820)
* chore(wip): convert settings pages

* chore: add api-tokens contract

* fix: types

* chore: convert webhooks page (#18682)

* chore: convert webhooks

* fix: configurations provider

* chore: add all contracts

* chore(admin): add workflow contracts (#18707)

* chore(admin): add audit-logs contracts (#18708)

* chore: convert users page to TS (#18710)

* chore(admin): convert Roles Settings (#18774)

* chore(admin): fix types from merge

* chore(admin): convert Single Sign On settings page to TS and refactoring

* chore: pretty

---------

Co-authored-by: HichamELBSI <elabbassih@gmail.com>
2023-11-21 11:40:51 +00:00
Josh
288794489a
chore(i18n): convert CMEditView components to TS (#18831) 2023-11-20 08:41:17 +00: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
Josh
e04af2df77
chore(i18n): convert settings as associated components to TS (#18809)
* chore(i18n): rename getTrads to getTranslations

* chore(i18n): convert settings as associated components to TS

* chore: remove utils index file

* chore(admin): remove unused directive
2023-11-16 14:11:34 +00:00
Alexandre Bodin
5a804de414 chore(plugins/i18n): migrate to basic ts 2023-11-10 18:27:09 +01:00
Marc-Roig
8aca4eae6a
Merge branch 'main' into v5/main 2023-11-09 12:13:13 +01:00
Josh
d482633e77
refactor(admin): auth pages to TS (#18635)
* refactor(admin): auth pages to TS

* fix: fix error message displays

* chore: remove generic

* chore: remove unnecessary test files

* chore: add tests

* fix: reset-password errors
2023-11-02 14:31:43 +00:00
Josh
14ef2b7c24
chore(admin): convert ProfilePage and re-use server driven types (#18593)
* chore(admin): convert ProfilePage and re-use server driven types

* chore: fix tests

* chore: fix double export from types

* fix: type isSSOLocked endpoint
2023-10-30 12:17:27 +00:00
Josh
dffc31a9b2
chore(admin): convert HomePage, Admin & InstalledPluginPage to TS (#18568)
* chore(admin): convert HomePage to TS

* chore(admin): convert pages/Admin to TS

* chore(admin): convert InstalledPluginsPage to TS
2023-10-25 17:08:16 +01:00
Josh
579dcdb39b Merge branch 'main' into v5/main 2023-10-25 16:46:47 +01:00
Josh
8735d4f8a9
chore(admin): convert useInjectReducer, core/apis & StrapiApp to TS (#18554)
* chore(admin): convert useInjectReducer to TS

* chore(admin): convert core apis

* chore(admin): convert StrapiApp

* chore: fix test
2023-10-25 14:49:22 +01:00
Josh
48867929ad
chore(admin): convert marketplace (#18548) 2023-10-25 08:45:09 +01:00
Alexandre BODIN
5ae0dc40cd feat!(content-manager): remove the ability to disable draft&publish (#18488)
* feat!: remove draft and publish triggering

* chore: update snapshots and tests

* test: adapt tests
2023-10-24 17:18:59 +01:00
Gustav Hansen
5dc153dcb7 chore(admin): convert utils to TS
Co-authored-by: Josh Ellis <josh.ellis@strapi.io>
2023-10-19 13:58:54 +01:00
Josh
d4dddebe84
refactor(admin): convert rest of components to TS (#18473)
* refactor(admin): convert rest of components to TS

* chore(admin): integrate redux types to admin components

* chore: type network requests

* test: fix unit tests based on changes

* chore: use smaller batch of permissions for RBACProvider test
2023-10-18 11:22:34 +01:00
Josh
4fcaf0f227
chore(admin): convert GuidedTour to TS (#18461) 2023-10-17 09:05:10 +01:00
Josh
054cea409d
chore(admin): convert more admin components (#18433)
* chore(admin): convert LanguageProvider to ts

* chore(admin): convert more contexts

* chore(helper-plugin): produce declaration maps

* fix(admin): LANGUAGE_LOCAL_STORAGE_KEY export

* chore(admin): convert useMenu

* chore(admin): convert LeftMenu to TS

* test(helper-plugin): fix utils

* chore: fix tests
2023-10-16 11:05:12 +01:00
Josh
976b90dd92
chore(deps): update design-system to 1.12.2 (#18438) 2023-10-13 17:24:06 +01:00
Jamie Howard
a9552a70bf
[Email] Migrate to typescript (#18136)
Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
2023-10-12 17:10:45 +01:00
Josh
293219f39f
chore(admin): convert more components to TS (#18420)
* chore(admin): convert ConfigurationProvider

* chore: convert PluginsInitializer

* fix(admin): imports with ConfigurationsProvider

* chore: convert NpsSurvey to TS

* chore: PR fixes
2023-10-12 14:28:25 +01:00
Josh
b571158eef
fix(helper-plugin): notifications should not have a default for "success" (#18372)
Co-authored-by: Boegie19 <34578426+Boegie19@users.noreply.github.com>
2023-10-11 10:26:47 +01:00
Josh
66d7c1ce9b
chore: convert helper-plugin to pack-up (#18329) 2023-10-06 12:21:26 +01:00
Gustav Hansen
cae79e0ab3
Merge pull request #18291 from strapi/chore/useRegenerate-ts
chore(admin): convert useRegenerate to TS
2023-10-06 09:11:06 +02:00
Josh
82035f18c9
chore: build strapi permissions with pack-up (#18309) 2023-10-05 18:13:45 +01:00
Gustav Hansen
e9ee4789b7 chore(admin): convert useRegenerate to TS 2023-10-05 16:04:46 +02:00
Josh
160ac2f527
chore: build strapi utils with pack-up (#18308)
* chore: build strapi utils with pack-up

* chore: remove build:ts from workflow

Update UploadAssetDialog.test.js
2023-10-05 14:47:35 +01:00
Josh
7016a1b045
chore: initialise ts admin (#18282)
* chore: initialise ts admin

* chore: set JSX to automatic

finally found it

* chore: set DTS true for the whole workflow to produce types for the helper-plugin

* chore(helper-plugin): fix the circular dependencies and calls for react
2023-10-05 08:39:49 +01:00
Josh
ee5c626501
chore: use yarn resolution for design-system (#18238)
* chore: use yarn resolution for design-system

* fix: helper-plugin types

* fix: color picker types
2023-10-04 09:01:56 +01:00