stable

Clone or download

Read-only

Have babel-polyfill loaded by FlamingParrot

This is part of story #10678 define a query for title and description semantics How to test: Build tuleap. In FlamingParrot pages, the following functionality should work: - Navbar search - Navbar history - Sidebar - Keyboard shortcuts - MOTD - There should not be errors in PullRequest plugin pages (with LabelsBox) FlamingParrot code is now entirely managed by webpack. In order to not repeat ourselves for CodeMirror-related code in Tracker and Cross-tracker plugins, we want to extract common code as ES modules. We need to load polyfills and babel-polyfill (rightly) disallows including it more than once per page. Thus, Flaming Parrot code will include babel-polyfill, will be built once and loaded on all Flaming Parrot pages. This way, like Burning Parrot pages, we can rely on the fact that runtime polyfills are already there. Change-Id: Ibb327fcc058a89c2a604482832c4b8fdaa6d07e3

Modified Files

Name
M gulpfile.js +0 −9 Go to diff View file
M src/common/layout/Layout.class.php +6 −1 Go to diff View file
A src/www/scripts/FlamingParrot/index.js +24 −0 Go to diff View file
A src/www/scripts/FlamingParrot/keyboard-navigation.js +152 −0 Go to diff View file
R src/www/themes/FlamingParrot/js/keymaster-sequence/MIT-LICENSE Go to diff View file
R src/www/themes/FlamingParrot/js/keymaster-sequence/README.markdown Go to diff View file
R src/www/themes/FlamingParrot/js/keymaster-sequence/bower.json Go to diff View file
R src/www/themes/FlamingParrot/js/keymaster-sequence/example.html Go to diff View file
R src/www/themes/FlamingParrot/js/keymaster-sequence/keymaster.sequence.js Go to diff View file
R src/www/themes/FlamingParrot/js/keymaster-sequence/keymaster.sequence.min.js Go to diff View file
R src/www/themes/FlamingParrot/js/motd.js Go to diff View file
A src/www/scripts/FlamingParrot/navbar.js +49 −0 Go to diff View file
A src/www/scripts/FlamingParrot/sidebar.js +180 −0 Go to diff View file
M src/www/scripts/labels/labels-box.js +2 −3 Go to diff View file
M src/www/scripts/navbar-history/index-flamingparrot.js +1 −2 Go to diff View file
M src/www/scripts/package-lock.json +49 −7 Go to diff View file
M src/www/scripts/package.json +4 −2 Go to diff View file
D src/www/scripts/polyphills/promise-polyfill.js +0 −5 Go to diff View file
M src/www/scripts/webpack.config.js +35 −28 Go to diff View file
M src/www/themes/FlamingParrot/FlamingParrot_Theme.class.php +5 −3 Go to diff View file
D src/www/themes/FlamingParrot/js/keyboard-navigation.js +0 −151 Go to diff View file
D src/www/themes/FlamingParrot/js/keymaster/.gitignore +0 −2 Go to diff View file
D src/www/themes/FlamingParrot/js/keymaster/MIT-LICENSE +0 −20 Go to diff View file
D src/www/themes/FlamingParrot/js/keymaster/Makefile +0 −4 Go to diff View file
D src/www/themes/FlamingParrot/js/keymaster/README.markdown +0 −212 Go to diff View file
D src/www/themes/FlamingParrot/js/keymaster/keymaster.js +0 −296 Go to diff View file
D src/www/themes/FlamingParrot/js/keymaster/package.json +0 −11 Go to diff View file
D src/www/themes/FlamingParrot/js/keymaster/test.html +0 −93 Go to diff View file
D src/www/themes/FlamingParrot/js/keymaster/test/evidence.js +0 −1059 Go to diff View file
D src/www/themes/FlamingParrot/js/keymaster/test/keymaster.html +0 −457 Go to diff View file
D src/www/themes/FlamingParrot/js/navbar.js +0 −48 Go to diff View file
D src/www/themes/FlamingParrot/js/sidebar.js +0 −180 Go to diff View file
M src/www/themes/common/tlp/package.json +2 −2 Go to diff View file
M src/www/themes/common/tlp/webpack.config.js +30 −24 Go to diff View file
A tools/utils/ie11-polyfill-names.js +27 −0 Go to diff View file