mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
fix: Unit test fails due to missing document (no-changelog) (#14660)
This commit is contained in:
@@ -103,7 +103,8 @@
|
||||
"@types/ws@8.5.4": "patches/@types__ws@8.5.4.patch",
|
||||
"@types/uuencode@0.0.3": "patches/@types__uuencode@0.0.3.patch",
|
||||
"vue-tsc@2.2.8": "patches/vue-tsc@2.2.8.patch",
|
||||
"eslint-plugin-n8n-local-rules": "patches/eslint-plugin-n8n-local-rules.patch"
|
||||
"eslint-plugin-n8n-local-rules": "patches/eslint-plugin-n8n-local-rules.patch",
|
||||
"element-plus@2.4.3": "patches/element-plus@2.4.3.patch"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
26
patches/element-plus@2.4.3.patch
Normal file
26
patches/element-plus@2.4.3.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
diff --git a/es/hooks/use-lockscreen/index.mjs b/es/hooks/use-lockscreen/index.mjs
|
||||
index 482516a6c59f8dcf0caba62b7482f63f126c2280..ad3a62f956fe5672c318273aa69dfcf2576b3783 100644
|
||||
--- a/es/hooks/use-lockscreen/index.mjs
|
||||
+++ b/es/hooks/use-lockscreen/index.mjs
|
||||
@@ -20,6 +20,8 @@ const useLockscreen = (trigger, options = {}) => {
|
||||
let withoutHiddenClass = false;
|
||||
let bodyWidth = "0";
|
||||
const cleanup = () => {
|
||||
+ // Cherry-pick from https://github.com/element-plus/element-plus/pull/18445
|
||||
+ if (typeof document === 'undefined') return
|
||||
setTimeout(() => {
|
||||
removeClass(document == null ? void 0 : document.body, hiddenCls.value);
|
||||
if (withoutHiddenClass && document) {
|
||||
diff --git a/lib/hooks/use-lockscreen/index.js b/lib/hooks/use-lockscreen/index.js
|
||||
index ce7bd581a57cd0d7e834c42a954b48d148578ef5..42fcc50bc15a12ab8466a1294c5af2e65384d5ac 100644
|
||||
--- a/lib/hooks/use-lockscreen/index.js
|
||||
+++ b/lib/hooks/use-lockscreen/index.js
|
||||
@@ -24,6 +24,8 @@ const useLockscreen = (trigger, options = {}) => {
|
||||
let withoutHiddenClass = false;
|
||||
let bodyWidth = "0";
|
||||
const cleanup = () => {
|
||||
+ // Cherry-pick from https://github.com/element-plus/element-plus/pull/18445
|
||||
+ if (typeof document === 'undefined') return
|
||||
setTimeout(() => {
|
||||
style.removeClass(document == null ? void 0 : document.body, hiddenCls.value);
|
||||
if (withoutHiddenClass && document) {
|
||||
9
pnpm-lock.yaml
generated
9
pnpm-lock.yaml
generated
@@ -173,6 +173,9 @@ patchedDependencies:
|
||||
bull@4.12.1:
|
||||
hash: 4b8aae78debc54697a9106a44b1a949089d4facfeee057883e32116ab8c80f68
|
||||
path: patches/bull@4.12.1.patch
|
||||
element-plus@2.4.3:
|
||||
hash: fe650d17e32d13a07f54411f2ee552a8faeae20d92ef5e5a23424d590ba4a382
|
||||
path: patches/element-plus@2.4.3.patch
|
||||
eslint-plugin-n8n-local-rules:
|
||||
hash: e0fd59254ab02473c6940fa25fcc8102ebc7d371c015ec53333a43f48af33cc2
|
||||
path: patches/eslint-plugin-n8n-local-rules.patch
|
||||
@@ -1547,7 +1550,7 @@ importers:
|
||||
version: 10.11.0(vue@3.5.13(typescript@5.8.2))
|
||||
element-plus:
|
||||
specifier: catalog:frontend
|
||||
version: 2.4.3(vue@3.5.13(typescript@5.8.2))
|
||||
version: 2.4.3(patch_hash=fe650d17e32d13a07f54411f2ee552a8faeae20d92ef5e5a23424d590ba4a382)(vue@3.5.13(typescript@5.8.2))
|
||||
is-emoji-supported:
|
||||
specifier: ^0.0.5
|
||||
version: 0.0.5
|
||||
@@ -1791,7 +1794,7 @@ importers:
|
||||
version: 3.0.3
|
||||
element-plus:
|
||||
specifier: catalog:frontend
|
||||
version: 2.4.3(vue@3.5.13(typescript@5.8.2))
|
||||
version: 2.4.3(patch_hash=fe650d17e32d13a07f54411f2ee552a8faeae20d92ef5e5a23424d590ba4a382)(vue@3.5.13(typescript@5.8.2))
|
||||
email-providers:
|
||||
specifier: ^2.0.1
|
||||
version: 2.0.1
|
||||
@@ -21404,7 +21407,7 @@ snapshots:
|
||||
|
||||
electron-to-chromium@1.5.114: {}
|
||||
|
||||
element-plus@2.4.3(vue@3.5.13(typescript@5.8.2)):
|
||||
element-plus@2.4.3(patch_hash=fe650d17e32d13a07f54411f2ee552a8faeae20d92ef5e5a23424d590ba4a382)(vue@3.5.13(typescript@5.8.2)):
|
||||
dependencies:
|
||||
'@ctrl/tinycolor': 3.6.0
|
||||
'@element-plus/icons-vue': 2.3.1(vue@3.5.13(typescript@5.8.2))
|
||||
|
||||
Reference in New Issue
Block a user