stable

Clone or download

Read-only

Migrate TextField to VueJS

Part of story #13453: finish drag'n drop images in tracker text areas Another patch is needed for TestManagement. How to test: - rebuild kanban and scrum planning. - No functional changes expected. Text fields in the Artifact modal behave correctly with regards to: - HTML / Text mode - Required - Disabled (read-only permission) --- Why? Because the AngularJS integration lib we were using, ng.ckeditor, does not let us access the editor instance, which is needed to handle drag'n drop of images. Since we are going to eventually migrate the modal to Vue anyway, we did not try to fork, fix or rewrite ng.ckeditor. Instead, we wrote a lightweight integration for Vue. Change-Id: I6a93447e1c0e5a8aec989fecd519dcf78a034657

Modified Files

Name
M plugins/agiledashboard/www/js/kanban/karma.conf.js +25 −0 Go to diff View file
M plugins/agiledashboard/www/js/kanban/webpack.config.js +31 −2 Go to diff View file
M plugins/agiledashboard/www/js/planning-v2/karma.conf.js +25 −0 Go to diff View file
M plugins/agiledashboard/www/js/planning-v2/src/app/app.spec.js +21 −0 Go to diff View file
M plugins/agiledashboard/www/js/planning-v2/webpack.config.js +29 −3 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/karma.conf.js +7 −1 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/po/fr.po +1 −1 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/followups/new-followup.html +3 −3 Go to diff View file
R plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/text-field/text-field.js Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/index.spec.js +3 −1 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-controller.js +7 −1 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/fields.js +1 −3 Go to diff View file
A plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/text-field/TextField.spec.js +254 −0 Go to diff View file
A plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/text-field/TextField.vue +159 −0 Go to diff View file
D plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/text-field/text-field-controller.js +0 −59 Go to diff View file
D plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/text-field/text-field-controller.spec.js +0 −95 Go to diff View file
D plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/text-field/text-field.tpl.html +0 −62 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal.js +14 −6 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal.scss +25 −8 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal.tpl.html +7 −6 Go to diff View file
R plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/text-field/text-field-directive.js Go to diff View file
M plugins/tracker/www/scripts/package-lock.json +5 −0 Go to diff View file
M plugins/tracker/www/scripts/package.json +1 −0 Go to diff View file
M plugins/tracker/www/scripts/webpack.config.js +30 −2 Go to diff View file
A src/www/scripts/tuleap/ckeditor/mocks/index.js +25 −0 Go to diff View file
M tools/utils/scripts/webpack-aliases.js +9 −3 Go to diff View file
M tools/utils/scripts/webpack-rule-configs.js +18 −0 Go to diff View file