mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-22 20:42:47 +08:00
af7ffaa279
* Server-side syntax hilighting for all code This PR does a few things: * Remove all traces of highlight.js * Use chroma library to provide fast syntax hilighting directly on the server * Provide syntax hilighting for diffs * Re-style both unified and split diffs views * Add custom syntax hilighting styling for both regular and arc-green Fixes #7729 Fixes #10157 Fixes #11825 Fixes #7728 Fixes #3872 Fixes #3682 And perhaps gets closer to #9553 * fix line marker * fix repo search * Fix single line select * properly load settings * npm uninstall highlight.js * review suggestion * code review * forgot to call function * fix test * Apply suggestions from code review suggestions from @silverwind thanks Co-authored-by: silverwind <me@silverwind.io> * code review * copy/paste error * Use const for highlight size limit * Update web_src/less/_repository.less Co-authored-by: Lauris BH <lauris@nix.lv> * update size limit to 1MB and other styling tweaks * fix highlighting for certain diff sections * fix test * add worker back as suggested Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Lauris BH <lauris@nix.lv>
66 lines
1.8 KiB
JSON
66 lines
1.8 KiB
JSON
{
|
|
"license": "MIT",
|
|
"private": true,
|
|
"engines": {
|
|
"node": ">= 10.13.0"
|
|
},
|
|
"dependencies": {
|
|
"@babel/core": "7.10.2",
|
|
"@babel/plugin-proposal-object-rest-spread": "7.10.1",
|
|
"@babel/plugin-transform-runtime": "7.10.1",
|
|
"@babel/preset-env": "7.10.2",
|
|
"@babel/runtime": "7.10.2",
|
|
"@primer/octicons": "9.6.0",
|
|
"babel-loader": "8.1.0",
|
|
"clipboard": "2.0.6",
|
|
"core-js": "3.6.5",
|
|
"css-loader": "3.5.3",
|
|
"cssnano-webpack-plugin": "1.0.3",
|
|
"dropzone": "5.7.1",
|
|
"fast-glob": "3.2.2",
|
|
"file-loader": "6.0.0",
|
|
"fomantic-ui": "2.8.6",
|
|
"jquery": "3.5.1",
|
|
"jquery.are-you-sure": "1.9.0",
|
|
"less-loader": "6.1.0",
|
|
"license-webpack-plugin": "2.2.0",
|
|
"mini-css-extract-plugin": "0.9.0",
|
|
"monaco-editor": "0.20.0",
|
|
"monaco-editor-webpack-plugin": "1.9.0",
|
|
"postcss-loader": "3.0.0",
|
|
"postcss-preset-env": "6.7.0",
|
|
"svg-sprite-loader": "5.0.0",
|
|
"svgo": "1.3.2",
|
|
"svgo-loader": "2.2.1",
|
|
"swagger-ui": "3.26.0",
|
|
"terser-webpack-plugin": "3.0.3",
|
|
"tributejs": "5.1.3",
|
|
"vue": "2.6.11",
|
|
"vue-bar-graph": "1.2.0",
|
|
"vue-calendar-heatmap": "0.8.4",
|
|
"vue-loader": "15.9.2",
|
|
"vue-template-compiler": "2.6.11",
|
|
"webpack": "4.43.0",
|
|
"webpack-cli": "3.3.11",
|
|
"webpack-fix-style-only-entries": "0.5.0",
|
|
"workbox-routing": "5.1.3",
|
|
"workbox-strategies": "5.1.3",
|
|
"worker-loader": "2.0.0",
|
|
"wrap-ansi": "7.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"eslint": "7.2.0",
|
|
"eslint-plugin-import": "2.21.2",
|
|
"eslint-plugin-sonarjs": "0.5.0",
|
|
"eslint-plugin-unicorn": "20.1.0",
|
|
"stylelint": "13.6.0",
|
|
"stylelint-config-standard": "20.0.0",
|
|
"updates": "10.2.13"
|
|
},
|
|
"browserslist": [
|
|
"defaults",
|
|
"not ie > 0",
|
|
"not ie_mob > 0"
|
|
]
|
|
}
|