stable

Clone or download

Read-only

Extract ckeditor image upload lib

Part of story #18336 add support of markdown How to test: - No functional change in "Image drag/drop" feature in the Artifact Modal, TestManagement or the Tracker Artifact view Notes: Since we are going to change the CKEditors in Trackers to add a new Markdown format, extracting this lib will get it out of our way. CKEditor with Markdown is likely to require a lib itself, dependencies will be clearer that way. As a bonus, it will also help us for request #18391 Migrate Tracker Artifact Modal out of AngularJS. The Artifact modal depends on this lib. regenerator/runtime is required to just import the files in Jest (otherwise there's an error), so whenever we need the Error classes and cannot mock the module completely, we had to add a dependency :/ that is to say: in core (for ckeditor) and in Trackers for the Artifact Modal. Change-Id: I5639d0f2a45a2fe21a4582fbea1d81826e3c12b8

Modified Files

Name
M plugins/agiledashboard/scripts/kanban/jest.config.js +5 −0 Go to diff View file
A plugins/agiledashboard/scripts/kanban/tests/ckeditor-image-upload-mock.js +22 −0 Go to diff View file
M plugins/testmanagement/jest.config.js +5 −1 Go to diff View file
M plugins/testmanagement/package.json +1 −0 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/execution-collection/execution-service.js +2 −2 Go to diff View file
A plugins/testmanagement/scripts/testmanagement/tests/ckeditor-image-upload-mock.js +24 −0 Go to diff View file
M plugins/tracker/jest.config.js +1 −0 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/package-lock.json +6 −0 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/package.json +4 −2 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/common/RichTextEditor.test.js +15 −8 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/common/RichTextEditor.vue +2 −2 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/file-field/file-field-validator.js +1 −1 Go to diff View file
A plugins/tracker/scripts/angular-artifact-modal/tests/jest.setup.js +21 −0 Go to diff View file
M src/jest.config.js +1 −0 Go to diff View file
M src/package-lock.json +2 −125 Go to diff View file
M src/package.json +2 −2 Go to diff View file
A src/scripts/lib/ckeditor-image-upload/.gitignore +1 −0 Go to diff View file
A src/scripts/lib/ckeditor-image-upload/jest.config.js +25 −0 Go to diff View file
A src/scripts/lib/ckeditor-image-upload/package-lock.json +137 −0 Go to diff View file
A src/scripts/lib/ckeditor-image-upload/package.json +23 −0 Go to diff View file
R src/scripts/tuleap/ckeditor/file-upload-handler-factory.js Go to diff View file
R src/scripts/tuleap/ckeditor/file-upload-handler-factory.test.js Go to diff View file
R src/scripts/tuleap/ckeditor/image-urls-finder.js Go to diff View file
R src/scripts/tuleap/ckeditor/image-urls-finder.test.js Go to diff View file
R src/scripts/tuleap/ckeditor/mocks/index.js Go to diff View file
A src/scripts/lib/ckeditor-image-upload/webpack.common.js +40 −0 Go to diff View file
A src/scripts/lib/ckeditor-image-upload/webpack.dev.js +23 −0 Go to diff View file
A src/scripts/lib/ckeditor-image-upload/webpack.prod.js +23 −0 Go to diff View file
A src/scripts/tests/jest.setup.js +21 −0 Go to diff View file
M src/scripts/tuleap/ckeditor/consistent-uploaded-files-before-submit-checker.js +1 −1 Go to diff View file
M src/scripts/tuleap/ckeditor/consistent-uploaded-files-before-submit-checker.test.js +8 −1 Go to diff View file
M src/scripts/tuleap/ckeditor/get-upload-image-options.js +2 −2 Go to diff View file
M src/scripts/tuleap/ckeditor/get-upload-image-options.test.js +29 −26 Go to diff View file