web/admin: fix codemirror not working on safari (#5943)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L 2023-06-13 13:45:38 +02:00 committed by GitHub
parent 8b4d149328
commit cb0e776cc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

6
web/package-lock.json generated
View File

@ -34,6 +34,7 @@
"lit": "^2.7.5",
"mermaid": "^10.2.3",
"rapidoc": "^9.3.4",
"style-mod": "^4.0.3",
"webcomponent-qr-code": "^1.1.1",
"yaml": "^2.3.1"
},
@ -20825,8 +20826,9 @@
}
},
"node_modules/style-mod": {
"version": "4.0.0",
"license": "MIT"
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/style-mod/-/style-mod-4.0.3.tgz",
"integrity": "sha512-78Jv8kYJdjbvRwwijtCevYADfsI0lGzYJe4mMFdceO8l75DFFDoqBhR1jVDicDRRaX4//g1u9wKeo+ztc2h1Rw=="
},
"node_modules/stylis": {
"version": "4.2.0",

View File

@ -50,6 +50,7 @@
"lit": "^2.7.5",
"mermaid": "^10.2.3",
"rapidoc": "^9.3.4",
"style-mod": "^4.0.3",
"webcomponent-qr-code": "^1.1.1",
"yaml": "^2.3.1"
},

View File

@ -9,7 +9,7 @@ import cssimport from "rollup-plugin-cssimport";
import { terser } from "rollup-plugin-terser";
// https://github.com/d3/d3-interpolate/issues/58
const D3_WARNING = /Circular dependency.*d3-[interpolate|selection]/;
const IGNORED_WARNINGS = /Circular dependency(.*d3-[interpolate|selection])|(.*@lit\/localize.*)/;
const extensions = [".js", ".jsx", ".ts", ".tsx"];
@ -81,7 +81,7 @@ export const defaultOptions = {
cache: true,
context: "window",
onwarn: function (warning, warn) {
if (D3_WARNING.test(warning)) {
if (IGNORED_WARNINGS.test(warning)) {
return;
}
if (warning.code === "UNRESOLVED_IMPORT") {