stable
Clone or download
Read-only
request #11178 Use vue-runtime only in labeled items widget
The minified file should go down from 139 kB to 116 kB. I took advantage of this refactoring to change a few other things: In index: - adds a gettext-provider file to match the established pattern in our Vue apps. - changes the way our props are passed. We don't need to use the data prefix in our code. In tests: - replaces regenerator-runtime with babel-polyfill (which is the correct dependency to import) - replaces "tlp-mock.spec.js" with an alias to tlp's built-in mocks - replaces custom spying (where practical) with tlp-mock's mockFetchSuccess and mockFetchError, which is easier to read Change-Id: Ia4e6c50ba24beacd42522bc43f1eee0ea1e9d0d0
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/label/templates/widgets/project-labeled-items.mustache | +5 | −7 | Go to diff View file |
M | plugins/label/www/scripts/karma.conf.js | +3 | −4 | Go to diff View file |
M | plugins/label/www/scripts/package-lock.json | +25 | −0 | Go to diff View file |
M | plugins/label/www/scripts/package.json | +2 | −1 | Go to diff View file |
M | plugins/label/www/scripts/project-labeled-items/src/LabeledItemsList.spec.js | +29 | −34 | Go to diff View file |
M | plugins/label/www/scripts/project-labeled-items/src/LabeledItemsList.vue | +102 | −89 | Go to diff View file |
M | plugins/label/www/scripts/project-labeled-items/src/app.spec.js | +3 | −2 | Go to diff View file |
A | plugins/label/www/scripts/project-labeled-items/src/gettext-provider.js | +27 | −0 | Go to diff View file |
M | plugins/label/www/scripts/project-labeled-items/src/index.js | +12 | −8 | Go to diff View file |
M | plugins/label/www/scripts/project-labeled-items/src/rest-querier.spec.js | +73 | −111 | Go to diff View file |
D | plugins/label/www/scripts/tlp-mock.spec.js | +0 | −1 | Go to diff View file |
M | plugins/label/www/scripts/webpack.config.js | +64 | −34 | Go to diff View file |