Update JS dependencies and misc tweaks (#13741)

* Update JS dependencies and misc tweaks

- Update all JS dependencies minus webpack
- Adapt CodeMirrors styling to new CSS parent introduced by EasyMDE
- Set eslint parser to latest and add new eslint 7.14 rule
- Speed up npm install by disabling audit and fund checks
- Move fomantic-ui to optional dependencies to further speed up npm
- Enable syntax highlighting on GH for .eslintrc and .stylelintrc
- Makefile cleanups

* disable audit in npmrc

* add missing dash

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
silverwind 2020-11-29 22:39:36 +01:00 committed by GitHub
parent c4deb97ed1
commit e81edc02b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 843 additions and 1055 deletions

View file

@ -1,6 +1,13 @@
.CodeMirror {
.EasyMDEContainer .CodeMirror {
color: var(--color-input-text);
background-color: var(--color-input-background);
border-color: var(--color-secondary);
font: 14px var(--fonts-monospace);
.CodeMirror-cursor {
border-left: 1px solid var(--color-input-text);
}
&.cm-s-default {
border-radius: 3px;
padding: 0 !important;
@ -27,6 +34,7 @@
.editor-toolbar {
opacity: 1 !important;
border-color: var(--color-secondary);
}
.editor-toolbar button:not(:hover) {

View file

@ -1267,19 +1267,6 @@ a.blob-excerpt:hover {
/* code mirror dark theme */
.CodeMirror {
color: #9daccc;
background-color: #2e323e;
border-color: var(--color-secondary);
border-top: 0;
div.CodeMirror-cursor {
border-left: 1px solid var(--color-secondary-dark-6);
}
.CodeMirror-gutters {
background-color: #2e323e;
}
&.cm-s-default,
&.cm-s-paper {
.cm-property {