1363 Commits

Author SHA1 Message Date
HichamELBSI
af369e9a54 Fix the modal list view in the Media Library
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-04-07 18:41:48 +02:00
soupette
ade27c830f Fix ref edit
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-07 18:40:53 +02:00
Ky
75a41061c1 apply PR review
Signed-off-by: Ky <virginie.ky@gmail.com>
2020-04-07 18:16:42 +02:00
Ky
2619bfd5f5 Merge branch 'features/media-lib' of github.com:strapi/strapi into media-lib/size-fix 2020-04-07 18:09:08 +02:00
Ky
8df209ac8b add size-fix dep
Signed-off-by: Ky <virginie.ky@gmail.com>
2020-04-07 17:56:55 +02:00
Ky
a50244afdd update unit tests
Signed-off-by: Ky <virginie.ky@gmail.com>
2020-04-07 17:49:47 +02:00
Ky
d65633d881 convert size format
Signed-off-by: Ky <virginie.ky@gmail.com>
2020-04-07 17:39:08 +02:00
HichamELBSI
fe8d4c88d7 Fix preview URL on selected asset
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-04-07 17:25:16 +02:00
cyril lopez
64d74c8707
Merge pull request #5734 from strapi/media-lib/ui-fix
Fix UI in the Media Library
2020-04-07 16:59:43 +02:00
HichamELBSI
ca0084ace6 Fix UI in the Media Library
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-04-07 16:48:59 +02:00
Jean-Sébastien Herbaux
a583d1b859
Fix/#3184/fix server crashs on database change (#5703)
* Don't set connection field on create/edit operation on content-types & components

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

* Make sure that every component has a valid connection attribute

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

* Remove connection check on components load

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

* Remove default connections from core & webhook stores but make sure it's defined in the application lifecycle

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

* Fix component's associations that can be undefined instead of empty in populateBareAssociations

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

* Remove "default" connection from plugins' models

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

* Remove connection attribute from generated models (cli)

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

* Mutate each component instead of reassign

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

* Build core_store and webhook model based on the current config

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

* Add connection to templates conditionally (based on args)

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

* Set default value for description to undefined instead of empty string

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

* Remove unnecessary complexity

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

* Update getStarted models

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

* Fix attributes parsing for generate:model

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

* Removed tpl option from generate:model/api

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

* Remove tpl option from cli

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-04-07 16:31:44 +02:00
soupette
c5441f1d61 Fix init request
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-07 15:47:35 +02:00
soupette
9532212e86 Update timeout
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-07 14:28:54 +02:00
soupette
e7f4f8bfa1 Fix edit file when lib not initialized
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-07 14:24:12 +02:00
soupette
19af1482af Fix errors
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-07 13:23:08 +02:00
soupette
ead77e08c4 Fix errors
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-07 11:18:26 +02:00
soupette
341bb9a209 Disable buttons when in uploading state
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-07 10:57:59 +02:00
ELABBASSI Hicham
1cbac7aa4d
Merge pull request #5721 from strapi/fix/button-state
Add disable state when uploading media
2020-04-06 17:57:24 +02:00
ELABBASSI Hicham
0576bbc2d1
Merge pull request #5720 from strapi/media-lib/last-ui-fixes
Media lib UI
2020-04-06 17:35:48 +02:00
Ky
d96ae81348 clean
Signed-off-by: Ky <virginie.ky@gmail.com>
2020-04-06 17:14:20 +02:00
soupette
e843c526c5 Add disable state when uploading
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-06 16:32:01 +02:00
Ky
de91f8c43c some ui fixes
Signed-off-by: Ky <virginie.ky@gmail.com>
2020-04-06 16:26:30 +02:00
soupette
e73e11971d Add emit event in back button in upload plugin
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-06 14:24:57 +02:00
soupette
bdbec4e3f0 Fix count endpoint with filters
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-06 14:22:50 +02:00
Ky
15c7beac0f pagination alignment
Signed-off-by: Ky <virginie.ky@gmail.com>
2020-04-06 14:06:27 +02:00
virginieky
a940bbc8c0
Merge pull request #5705 from strapi/media-lib/ui-fixes
Some ui fixes
2020-04-06 12:08:04 +02:00
Ky
64fbf03eeb apply code review
Signed-off-by: Ky <virginie.ky@gmail.com>
2020-04-06 11:24:19 +02:00
cyril lopez
2ab7d0de68
Merge pull request #5704 from strapi/media-lib/fix-ui
Fix some UI issues in the ML
2020-04-06 11:23:41 +02:00
HichamELBSI
8096746555 Fix PR review 2020-04-06 11:11:40 +02:00
Ky
5e184c2784 Merge branch 'features/media-lib' of github.com:strapi/strapi into media-lib/ui-fixes 2020-04-03 18:27:55 +02:00
Ky
6c0c0ae607 some ui fixes
Signed-off-by: Ky <virginie.ky@gmail.com>
2020-04-03 17:29:08 +02:00
HichamELBSI
c285c2a88e Fix some UI issues in the ML
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-04-03 17:15:09 +02:00
soupette
cb0eb350ee Merge branch 'features/media-lib' of github.com:strapi/strapi into media-lib/add-back-button 2020-04-03 16:45:07 +02:00
soupette
8cf7cc01a9 Merge branch 'features/media-lib' of github.com:strapi/strapi into media-lib/add-back-button 2020-04-03 16:32:35 +02:00
soupette
8ed4e7263e Fix conflicts
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-03 16:31:38 +02:00
Alexandre BODIN
8942456cd4
Merge pull request #5699 from strapi/media-lib/url-proxy
Add proxy to get url without cors issues
2020-04-03 16:21:28 +02:00
soupette
7260b02cbe Add back button in ctm modals
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-03 15:58:11 +02:00
Alexandre Bodin
71d7ecab6c Move proxy to controllers to protect it
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-04-03 15:34:05 +02:00
soupette
eb682a5912 Add backbutton in upload
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-03 15:31:00 +02:00
soupette
d4c7fe5c37 Add auth to request
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-03 15:17:10 +02:00
soupette
fdaf881bc5 Fix tests
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-03 15:12:15 +02:00
soupette
c69b6e8d4e Remove fileInfo.name when unchanged
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-03 14:38:44 +02:00
Alexandre Bodin
904b2b438b Use mime-types to set extension
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-04-03 14:02:26 +02:00
soupette
500c12f7c7 Remove last / from file name
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-03 11:39:02 +02:00
soupette
1953e5957a Fix date formats
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-03 11:28:11 +02:00
soupette
b5b140bb32 Use proxy endpoint to fetch external files
Signed-off-by: soupette <cyril.lpz@gmail.com>
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-04-03 11:24:59 +02:00
Ky
22d3c4d0ca remove useless headers
Signed-off-by: Ky <virginie.ky@gmail.com>
2020-04-03 10:34:01 +02:00
Ky
c567ab55eb Merge branch 'features/media-lib' of github.com:strapi/strapi into media-lib/edit-error-state 2020-04-03 10:30:39 +02:00
cyril lopez
81aa54f003
Merge pull request #5691 from strapi/media-lib/ui-fix-1
Fix some UI issue in the media library
2020-04-03 10:20:54 +02:00
HichamELBSI
92ff39d450 Fix PR review
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-04-03 10:18:19 +02:00