stable

Clone or download

Read-only

Use PrismJS to highlight syntax

Part of request #12394: Blob view is slow In blob and blame view, use PrismJS instead of GeSHi for syntax highlighting. This avoid parsing code on the server and sending a big DOM to the client. On Tuleap 10.6, Tracker.class.php blob display was taking approximatively 10s; now it takes 2s wich is much better. Change-Id: Iddca8d60e9f53efc0533095eb3129276c439e5cb

Modified Files

Name
M plugins/git/build-manifest.json +1 −0 Go to diff View file
M plugins/git/include/Git/Repository/GitRepositoryHeaderDisplayer.php +12 −10 Go to diff View file
R plugins/git/www/themes/BurningParrot/css/repository/gitphp/_blame.scss Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_Blame.php +37 −30 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_Blob.php +23 −19 Go to diff View file
M plugins/git/templates/gitphp/tuleap/blame.tpl +28 −47 Go to diff View file
M plugins/git/templates/gitphp/tuleap/blob.tpl +5 −20 Go to diff View file
M plugins/git/www/scripts/package-lock.json +51 −0 Go to diff View file
M plugins/git/www/scripts/package.json +2 −0 Go to diff View file
A plugins/git/www/scripts/repository/file-syntax-highlight/index.js +25 −0 Go to diff View file
M plugins/git/www/scripts/webpack.config.js +2 −1 Go to diff View file
M plugins/git/www/themes/BurningParrot/css/repository/_repository.scss +0 −1 Go to diff View file
M plugins/git/www/themes/BurningParrot/css/repository/gitphp/_blob.scss +48 −33 Go to diff View file
A plugins/git/www/themes/BurningParrot/css/syntax-highlight.scss +20 −0 Go to diff View file
M src/common/layout/CssAsset.php +2 −2 Go to diff View file
A src/common/layout/CssAssetWithoutVariantDeclinaisons.php +30 −0 Go to diff View file