stable

Clone or download

Read-only

Add a content hash on the ressources of the TLP UI framework

Resources of the framework are now built exclusively with Webpack and each generated asset has a content hash. This make sure the assets retrieved by the browsers will be up to date and can be cached aggressively. nginx configuration has been updated to leverage that. The stylesheets of the FlamingParrot theme are also built with Webpack due to a direct dependency to the TLP font. The build with the proposed approach also make sure that all resources linked by the stylesheets exist (the build crashing otherwise). The FP theme was referencing non existing resources until this contribution. The assets built in dev/watch mode now have an inlined source map and are not minified to ease debug sessions. No functionnal change is expected. Part of story #13237: Prevent restricted to be added to private projects Change-Id: Id62c07ab193a46c8693ecbcaec05e9eab8463233

Modified Files

Name
M .eslintrc.js +4 −1 Go to diff View file
M build-manifest.json +1 −14 Go to diff View file
M gulpfile.js +1 −3 Go to diff View file
M package-lock.json +3972 −356 Go to diff View file
M package.json +10 −1 Go to diff View file
M plugins/textualreport/include/TextualReport/SinglePagePresenterBuilder.php +20 −9 Go to diff View file
M src/etc/nginx/tuleap.d/03-locations.conf +2 −2 Go to diff View file
M src/www/themes/BurningParrot/BurningParrotTheme.php +2 −2 Go to diff View file
M src/www/themes/BurningParrot/HeaderPresenterBuilder.php +12 −3 Go to diff View file
M src/www/themes/FlamingParrot/css/print.scss +4 −1 Go to diff View file
M src/www/themes/FlamingParrot/css/utils/_footer.scss +1 −1 Go to diff View file
M src/www/themes/FlamingParrot/css/utils/_navbar-dropdown-history.scss +1 −1 Go to diff View file
M src/www/themes/FlamingParrot/css/utils/_pre-definitions.scss +11 −8 Go to diff View file
A src/www/themes/FlamingParrot/package-lock.json +4 −0 Go to diff View file
A src/www/themes/FlamingParrot/package.json +16 −0 Go to diff View file
A src/www/themes/FlamingParrot/webpack.common.js +46 −0 Go to diff View file
A src/www/themes/FlamingParrot/webpack.dev.js +23 −0 Go to diff View file
A src/www/themes/FlamingParrot/webpack.prod.js +23 −0 Go to diff View file
M src/www/themes/common/css/utils/_admin.scss +1 −1 Go to diff View file
M src/www/themes/common/css/utils/_datepicker.scss +2 −2 Go to diff View file
M src/www/themes/common/css/utils/_lab.scss +1 −1 Go to diff View file
M src/www/themes/common/css/utils/_lightwindow.scss +8 −8 Go to diff View file
M src/www/themes/common/css/utils/_lytebox.scss +28 −28 Go to diff View file
M src/www/themes/common/css/utils/_project-confirmation.scss +1 −1 Go to diff View file
M src/www/themes/common/css/utils/_project-privacy.scss +2 −2 Go to diff View file
M src/www/themes/common/css/utils/_protocheck.scss +0 −32 Go to diff View file
M src/www/themes/common/css/utils/_rte.scss +1 −1 Go to diff View file
M src/www/themes/common/css/utils/_search.scss +1 −1 Go to diff View file
M src/www/themes/common/css/utils/_sortable.scss +2 −2 Go to diff View file
M src/www/themes/common/css/utils/_textbox.scss +1 −1 Go to diff View file
M src/www/themes/common/css/utils/_toggler.scss +2 −2 Go to diff View file
M src/www/themes/common/css/utils/_tree-node.scss +1 −1 Go to diff View file
M src/www/themes/common/css/utils/_tuleap-modal.scss +1 −1 Go to diff View file
M src/www/themes/common/css/utils/_utils.scss +4 −1 Go to diff View file
M src/www/themes/common/css/utils/_widget.scss +1 −1 Go to diff View file
D src/www/themes/common/tlp/README.md +0 −43 Go to diff View file
M src/www/themes/common/tlp/doc/index.php +16 −7 Go to diff View file
M src/www/themes/common/tlp/doc/js/main.js +4 −2 Go to diff View file
D src/www/themes/common/tlp/gulpfile.js +0 −144 Go to diff View file
M src/www/themes/common/tlp/package-lock.json +0 −475 Go to diff View file
M src/www/themes/common/tlp/package.json +3 −6 Go to diff View file
M src/www/themes/common/tlp/src/fonts/tlp-font/tlp-font.scss +1 −1 Go to diff View file
M src/www/themes/common/tlp/src/scss/components/_avatars.scss +6 −6 Go to diff View file
M src/www/themes/common/tlp/src/scss/components/_fonts.scss +9 −9 Go to diff View file
M src/www/themes/common/tlp/src/scss/components/_forms.scss +6 −6 Go to diff View file
M src/www/themes/common/tlp/src/scss/components/_tables.scss +1 −1 Go to diff View file
A src/www/themes/common/tlp/webpack.common.js +79 −0 Go to diff View file
D src/www/themes/common/tlp/webpack.config.js +0 −41 Go to diff View file
A src/www/themes/common/tlp/webpack.dev.js +23 −0 Go to diff View file
A src/www/themes/common/tlp/webpack.prod.js +23 −0 Go to diff View file
M tools/utils/scripts/webpack-configurator.js +60 −2 Go to diff View file
M tools/utils/scripts/webpack-rule-configs.js +23 −3 Go to diff View file