summaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2021-10-19 09:23:58 +0200
committerGitHub <noreply@github.com>2021-10-19 15:23:58 +0800
commiteaf493be5d01332966f983f6d83ad515cfdec7bf (patch)
tree5aea624ec91246bf83cb167a41ed7c522f0db26f /web_src
parente2a59c57fc1dcaecddc8d8dbf27d551c92dda101 (diff)
downloadgitea-eaf493be5d01332966f983f6d83ad515cfdec7bf.tar.gz
gitea-eaf493be5d01332966f983f6d83ad515cfdec7bf.zip
Update JS dependencies (#17357)
* Update JS dependencies - Upgrade to eslint 8 and add new plugin rules - Adapt to various API changes - Rebuild SVGs * fix webpack warning on license * order options alphabetically Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'web_src')
-rw-r--r--web_src/js/features/codeeditor.js2
-rw-r--r--web_src/js/markup/mermaid.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/web_src/js/features/codeeditor.js b/web_src/js/features/codeeditor.js
index f6a50dc8b8..f533ea9d8f 100644
--- a/web_src/js/features/codeeditor.js
+++ b/web_src/js/features/codeeditor.js
@@ -6,11 +6,11 @@ const languagesByExt = {};
const baseOptions = {
fontFamily: 'var(--fonts-monospace)',
fontSize: 14, // https://github.com/microsoft/monaco-editor/issues/2242
+ guides: {bracketPairs: false, indentation: false},
links: false,
minimap: {enabled: false},
occurrencesHighlight: false,
overviewRulerLanes: 0,
- renderIndentGuides: false,
renderLineHighlight: 'all',
renderLineHighlightOnlyWhenFocus: true,
renderWhitespace: 'none',
diff --git a/web_src/js/markup/mermaid.js b/web_src/js/markup/mermaid.js
index a5bd0e235c..0319cbb6f0 100644
--- a/web_src/js/markup/mermaid.js
+++ b/web_src/js/markup/mermaid.js
@@ -11,7 +11,7 @@ function displayError(el, err) {
export async function renderMermaid(els) {
if (!els || !els.length) return;
- const mermaid = await import(/* webpackChunkName: "mermaid" */'mermaid');
+ const {default: mermaid} = await import(/* webpackChunkName: "mermaid" */'mermaid');
mermaid.initialize({
mermaid: {