@xuda.io/xuda-widget-plugin-xuda-drive 1.0.132 → 1.0.133
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/runtime.mjs +19 -67
- package/package.json +1 -1
- package/src/runtime.mjs +47 -58
package/dist/runtime.mjs
CHANGED
|
@@ -39630,7 +39630,7 @@ const isRef$1 = (I) => !!(I && I.__v_isRef === !0), toDisplayString = (I) => isS
|
|
|
39630
39630
|
isSymbol(I) ? `Symbol(${(N = I.description) != null ? N : M})` : I
|
|
39631
39631
|
);
|
|
39632
39632
|
};
|
|
39633
|
-
var define_process_env_default$2 = { NVM_INC: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/include/node", MANPATH: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/share/man:/opt/homebrew/share/man:/usr/share/man:/usr/local/share/man:/Applications/Wireshark.app/Contents/Resources/share/man:/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/share/man:/opt/homebrew/share/man::", TERM_PROGRAM: "vscode", NODE: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/bin/node", INIT_CWD: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive", NVM_CD_FLAGS: "-q", TERM: "xterm-256color", SHELL: "/bin/zsh", HOMEBREW_REPOSITORY: "/opt/homebrew", TMPDIR: "/var/folders/c7/0ld7263s5xzb2vvz12m3gplc0000gn/T/", npm_config_global_prefix: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1", VSCODE_PYTHON_AUTOACTIVATE_GUARD: "1", TERM_PROGRAM_VERSION: "1.110.0", ZDOTDIR: "/Users/ishaiavrahami", MallocNanoZone: "0", COLOR: "1", npm_config_noproxy: "", npm_config_local_prefix: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive", NVM_DIR: "/Users/ishaiavrahami/.nvm", USER: "ishaiavrahami", COMMAND_MODE: "unix2003", npm_config_globalconfig: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/etc/npmrc", CLAUDE_CODE_SSE_PORT: "42728", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.UlFWkFbCdR/Listeners", VSCODE_PROFILE_INITIALIZED: "1", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_execpath: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/lib/node_modules/npm/bin/npm-cli.js", PATH: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive/node_modules/.bin:/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/node_modules/.bin:/Users/ishaiavrahami/Downloads/xuda/plugins/node_modules/.bin:/Users/ishaiavrahami/Downloads/xuda/node_modules/.bin:/Users/ishaiavrahami/Downloads/node_modules/.bin:/Users/ishaiavrahami/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/bin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin", npm_package_json: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive/package.json", _: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive/node_modules/.bin/vite", npm_config_userconfig: "/Users/ishaiavrahami/.npmrc", npm_config_init_module: "/Users/ishaiavrahami/.npm-init.js", USER_ZDOTDIR: "/Users/ishaiavrahami", __CFBundleIdentifier: "com.microsoft.VSCode", npm_command: "run-script", PWD: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive", npm_lifecycle_event: "build", EDITOR: "vi", npm_package_name: "@xuda.io/xuda-widget-plugin-xuda-drive", LANG: "C.UTF-8", PYTHONSTARTUP: "/Users/ishaiavrahami/Library/Application Support/Code/User/workspaceStorage/eed9b9879fe5c937b8d79ff0746d5d6f/ms-python.python/pythonrc.py", npm_config_npm_version: "10.8.2", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "", XPC_FLAGS: "0x0", npm_config_node_gyp: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js", npm_package_version: "1.0.
|
|
39633
|
+
var define_process_env_default$2 = { NVM_INC: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/include/node", MANPATH: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/share/man:/opt/homebrew/share/man:/usr/share/man:/usr/local/share/man:/Applications/Wireshark.app/Contents/Resources/share/man:/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/share/man:/opt/homebrew/share/man::", TERM_PROGRAM: "vscode", NODE: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/bin/node", INIT_CWD: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive", NVM_CD_FLAGS: "-q", TERM: "xterm-256color", SHELL: "/bin/zsh", HOMEBREW_REPOSITORY: "/opt/homebrew", TMPDIR: "/var/folders/c7/0ld7263s5xzb2vvz12m3gplc0000gn/T/", npm_config_global_prefix: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1", VSCODE_PYTHON_AUTOACTIVATE_GUARD: "1", TERM_PROGRAM_VERSION: "1.110.0", ZDOTDIR: "/Users/ishaiavrahami", MallocNanoZone: "0", COLOR: "1", npm_config_noproxy: "", npm_config_local_prefix: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive", NVM_DIR: "/Users/ishaiavrahami/.nvm", USER: "ishaiavrahami", COMMAND_MODE: "unix2003", npm_config_globalconfig: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/etc/npmrc", CLAUDE_CODE_SSE_PORT: "42728", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.UlFWkFbCdR/Listeners", VSCODE_PROFILE_INITIALIZED: "1", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_execpath: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/lib/node_modules/npm/bin/npm-cli.js", PATH: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive/node_modules/.bin:/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/node_modules/.bin:/Users/ishaiavrahami/Downloads/xuda/plugins/node_modules/.bin:/Users/ishaiavrahami/Downloads/xuda/node_modules/.bin:/Users/ishaiavrahami/Downloads/node_modules/.bin:/Users/ishaiavrahami/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/bin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin", npm_package_json: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive/package.json", _: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive/node_modules/.bin/vite", npm_config_userconfig: "/Users/ishaiavrahami/.npmrc", npm_config_init_module: "/Users/ishaiavrahami/.npm-init.js", USER_ZDOTDIR: "/Users/ishaiavrahami", __CFBundleIdentifier: "com.microsoft.VSCode", npm_command: "run-script", PWD: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive", npm_lifecycle_event: "build", EDITOR: "vi", npm_package_name: "@xuda.io/xuda-widget-plugin-xuda-drive", LANG: "C.UTF-8", PYTHONSTARTUP: "/Users/ishaiavrahami/Library/Application Support/Code/User/workspaceStorage/eed9b9879fe5c937b8d79ff0746d5d6f/ms-python.python/pythonrc.py", npm_config_npm_version: "10.8.2", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "", XPC_FLAGS: "0x0", npm_config_node_gyp: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js", npm_package_version: "1.0.132", XPC_SERVICE_NAME: "0", VSCODE_INJECTION: "1", SHLVL: "2", HOME: "/Users/ishaiavrahami", VSCODE_GIT_ASKPASS_MAIN: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js", PYTHON_BASIC_REPL: "1", HOMEBREW_PREFIX: "/opt/homebrew", npm_config_cache: "/Users/ishaiavrahami/.npm", LOGNAME: "ishaiavrahami", npm_lifecycle_script: "vite build", VSCODE_GIT_IPC_HANDLE: "/var/folders/c7/0ld7263s5xzb2vvz12m3gplc0000gn/T/vscode-git-c14de325ff.sock", NVM_BIN: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/bin", npm_config_user_agent: "npm/10.8.2 node/v22.5.1 darwin arm64 workspaces/false", VSCODE_GIT_ASKPASS_NODE: "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)", GIT_ASKPASS: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh", INFOPATH: "/opt/homebrew/share/info:/opt/homebrew/share/info:", HOMEBREW_CELLAR: "/opt/homebrew/Cellar", OSLogRateLimit: "64", npm_node_execpath: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/bin/node", npm_config_prefix: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1", COLORTERM: "truecolor", NODE_ENV: "production" };
|
|
39634
39634
|
let activeEffectScope;
|
|
39635
39635
|
class EffectScope {
|
|
39636
39636
|
constructor(M = !1) {
|
|
@@ -40668,7 +40668,7 @@ function traverse(I, M = 1 / 0, N) {
|
|
|
40668
40668
|
}
|
|
40669
40669
|
return I;
|
|
40670
40670
|
}
|
|
40671
|
-
var define_process_env_default$1 = { NVM_INC: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/include/node", MANPATH: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/share/man:/opt/homebrew/share/man:/usr/share/man:/usr/local/share/man:/Applications/Wireshark.app/Contents/Resources/share/man:/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/share/man:/opt/homebrew/share/man::", TERM_PROGRAM: "vscode", NODE: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/bin/node", INIT_CWD: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive", NVM_CD_FLAGS: "-q", TERM: "xterm-256color", SHELL: "/bin/zsh", HOMEBREW_REPOSITORY: "/opt/homebrew", TMPDIR: "/var/folders/c7/0ld7263s5xzb2vvz12m3gplc0000gn/T/", npm_config_global_prefix: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1", VSCODE_PYTHON_AUTOACTIVATE_GUARD: "1", TERM_PROGRAM_VERSION: "1.110.0", ZDOTDIR: "/Users/ishaiavrahami", MallocNanoZone: "0", COLOR: "1", npm_config_noproxy: "", npm_config_local_prefix: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive", NVM_DIR: "/Users/ishaiavrahami/.nvm", USER: "ishaiavrahami", COMMAND_MODE: "unix2003", npm_config_globalconfig: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/etc/npmrc", CLAUDE_CODE_SSE_PORT: "42728", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.UlFWkFbCdR/Listeners", VSCODE_PROFILE_INITIALIZED: "1", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_execpath: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/lib/node_modules/npm/bin/npm-cli.js", PATH: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive/node_modules/.bin:/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/node_modules/.bin:/Users/ishaiavrahami/Downloads/xuda/plugins/node_modules/.bin:/Users/ishaiavrahami/Downloads/xuda/node_modules/.bin:/Users/ishaiavrahami/Downloads/node_modules/.bin:/Users/ishaiavrahami/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/bin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin", npm_package_json: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive/package.json", _: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive/node_modules/.bin/vite", npm_config_userconfig: "/Users/ishaiavrahami/.npmrc", npm_config_init_module: "/Users/ishaiavrahami/.npm-init.js", USER_ZDOTDIR: "/Users/ishaiavrahami", __CFBundleIdentifier: "com.microsoft.VSCode", npm_command: "run-script", PWD: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive", npm_lifecycle_event: "build", EDITOR: "vi", npm_package_name: "@xuda.io/xuda-widget-plugin-xuda-drive", LANG: "C.UTF-8", PYTHONSTARTUP: "/Users/ishaiavrahami/Library/Application Support/Code/User/workspaceStorage/eed9b9879fe5c937b8d79ff0746d5d6f/ms-python.python/pythonrc.py", npm_config_npm_version: "10.8.2", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "", XPC_FLAGS: "0x0", npm_config_node_gyp: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js", npm_package_version: "1.0.
|
|
40671
|
+
var define_process_env_default$1 = { NVM_INC: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/include/node", MANPATH: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/share/man:/opt/homebrew/share/man:/usr/share/man:/usr/local/share/man:/Applications/Wireshark.app/Contents/Resources/share/man:/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/share/man:/opt/homebrew/share/man::", TERM_PROGRAM: "vscode", NODE: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/bin/node", INIT_CWD: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive", NVM_CD_FLAGS: "-q", TERM: "xterm-256color", SHELL: "/bin/zsh", HOMEBREW_REPOSITORY: "/opt/homebrew", TMPDIR: "/var/folders/c7/0ld7263s5xzb2vvz12m3gplc0000gn/T/", npm_config_global_prefix: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1", VSCODE_PYTHON_AUTOACTIVATE_GUARD: "1", TERM_PROGRAM_VERSION: "1.110.0", ZDOTDIR: "/Users/ishaiavrahami", MallocNanoZone: "0", COLOR: "1", npm_config_noproxy: "", npm_config_local_prefix: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive", NVM_DIR: "/Users/ishaiavrahami/.nvm", USER: "ishaiavrahami", COMMAND_MODE: "unix2003", npm_config_globalconfig: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/etc/npmrc", CLAUDE_CODE_SSE_PORT: "42728", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.UlFWkFbCdR/Listeners", VSCODE_PROFILE_INITIALIZED: "1", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_execpath: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/lib/node_modules/npm/bin/npm-cli.js", PATH: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive/node_modules/.bin:/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/node_modules/.bin:/Users/ishaiavrahami/Downloads/xuda/plugins/node_modules/.bin:/Users/ishaiavrahami/Downloads/xuda/node_modules/.bin:/Users/ishaiavrahami/Downloads/node_modules/.bin:/Users/ishaiavrahami/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/bin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin", npm_package_json: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive/package.json", _: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive/node_modules/.bin/vite", npm_config_userconfig: "/Users/ishaiavrahami/.npmrc", npm_config_init_module: "/Users/ishaiavrahami/.npm-init.js", USER_ZDOTDIR: "/Users/ishaiavrahami", __CFBundleIdentifier: "com.microsoft.VSCode", npm_command: "run-script", PWD: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive", npm_lifecycle_event: "build", EDITOR: "vi", npm_package_name: "@xuda.io/xuda-widget-plugin-xuda-drive", LANG: "C.UTF-8", PYTHONSTARTUP: "/Users/ishaiavrahami/Library/Application Support/Code/User/workspaceStorage/eed9b9879fe5c937b8d79ff0746d5d6f/ms-python.python/pythonrc.py", npm_config_npm_version: "10.8.2", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "", XPC_FLAGS: "0x0", npm_config_node_gyp: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js", npm_package_version: "1.0.132", XPC_SERVICE_NAME: "0", VSCODE_INJECTION: "1", SHLVL: "2", HOME: "/Users/ishaiavrahami", VSCODE_GIT_ASKPASS_MAIN: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js", PYTHON_BASIC_REPL: "1", HOMEBREW_PREFIX: "/opt/homebrew", npm_config_cache: "/Users/ishaiavrahami/.npm", LOGNAME: "ishaiavrahami", npm_lifecycle_script: "vite build", VSCODE_GIT_IPC_HANDLE: "/var/folders/c7/0ld7263s5xzb2vvz12m3gplc0000gn/T/vscode-git-c14de325ff.sock", NVM_BIN: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/bin", npm_config_user_agent: "npm/10.8.2 node/v22.5.1 darwin arm64 workspaces/false", VSCODE_GIT_ASKPASS_NODE: "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)", GIT_ASKPASS: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh", INFOPATH: "/opt/homebrew/share/info:/opt/homebrew/share/info:", HOMEBREW_CELLAR: "/opt/homebrew/Cellar", OSLogRateLimit: "64", npm_node_execpath: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/bin/node", npm_config_prefix: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1", COLORTERM: "truecolor", NODE_ENV: "production" };
|
|
40672
40672
|
const stack$1 = [];
|
|
40673
40673
|
function pushWarningContext(I) {
|
|
40674
40674
|
stack$1.push(I);
|
|
@@ -46348,7 +46348,7 @@ const initDirectivesForSSR = () => {
|
|
|
46348
46348
|
withModifiers,
|
|
46349
46349
|
withScopeId
|
|
46350
46350
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
46351
|
-
var define_process_env_default = { NVM_INC: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/include/node", MANPATH: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/share/man:/opt/homebrew/share/man:/usr/share/man:/usr/local/share/man:/Applications/Wireshark.app/Contents/Resources/share/man:/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/share/man:/opt/homebrew/share/man::", TERM_PROGRAM: "vscode", NODE: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/bin/node", INIT_CWD: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive", NVM_CD_FLAGS: "-q", TERM: "xterm-256color", SHELL: "/bin/zsh", HOMEBREW_REPOSITORY: "/opt/homebrew", TMPDIR: "/var/folders/c7/0ld7263s5xzb2vvz12m3gplc0000gn/T/", npm_config_global_prefix: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1", VSCODE_PYTHON_AUTOACTIVATE_GUARD: "1", TERM_PROGRAM_VERSION: "1.110.0", ZDOTDIR: "/Users/ishaiavrahami", MallocNanoZone: "0", COLOR: "1", npm_config_noproxy: "", npm_config_local_prefix: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive", NVM_DIR: "/Users/ishaiavrahami/.nvm", USER: "ishaiavrahami", COMMAND_MODE: "unix2003", npm_config_globalconfig: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/etc/npmrc", CLAUDE_CODE_SSE_PORT: "42728", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.UlFWkFbCdR/Listeners", VSCODE_PROFILE_INITIALIZED: "1", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_execpath: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/lib/node_modules/npm/bin/npm-cli.js", PATH: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive/node_modules/.bin:/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/node_modules/.bin:/Users/ishaiavrahami/Downloads/xuda/plugins/node_modules/.bin:/Users/ishaiavrahami/Downloads/xuda/node_modules/.bin:/Users/ishaiavrahami/Downloads/node_modules/.bin:/Users/ishaiavrahami/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/bin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin", npm_package_json: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive/package.json", _: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive/node_modules/.bin/vite", npm_config_userconfig: "/Users/ishaiavrahami/.npmrc", npm_config_init_module: "/Users/ishaiavrahami/.npm-init.js", USER_ZDOTDIR: "/Users/ishaiavrahami", __CFBundleIdentifier: "com.microsoft.VSCode", npm_command: "run-script", PWD: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive", npm_lifecycle_event: "build", EDITOR: "vi", npm_package_name: "@xuda.io/xuda-widget-plugin-xuda-drive", LANG: "C.UTF-8", PYTHONSTARTUP: "/Users/ishaiavrahami/Library/Application Support/Code/User/workspaceStorage/eed9b9879fe5c937b8d79ff0746d5d6f/ms-python.python/pythonrc.py", npm_config_npm_version: "10.8.2", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "", XPC_FLAGS: "0x0", npm_config_node_gyp: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js", npm_package_version: "1.0.
|
|
46351
|
+
var define_process_env_default = { NVM_INC: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/include/node", MANPATH: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/share/man:/opt/homebrew/share/man:/usr/share/man:/usr/local/share/man:/Applications/Wireshark.app/Contents/Resources/share/man:/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/share/man:/opt/homebrew/share/man::", TERM_PROGRAM: "vscode", NODE: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/bin/node", INIT_CWD: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive", NVM_CD_FLAGS: "-q", TERM: "xterm-256color", SHELL: "/bin/zsh", HOMEBREW_REPOSITORY: "/opt/homebrew", TMPDIR: "/var/folders/c7/0ld7263s5xzb2vvz12m3gplc0000gn/T/", npm_config_global_prefix: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1", VSCODE_PYTHON_AUTOACTIVATE_GUARD: "1", TERM_PROGRAM_VERSION: "1.110.0", ZDOTDIR: "/Users/ishaiavrahami", MallocNanoZone: "0", COLOR: "1", npm_config_noproxy: "", npm_config_local_prefix: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive", NVM_DIR: "/Users/ishaiavrahami/.nvm", USER: "ishaiavrahami", COMMAND_MODE: "unix2003", npm_config_globalconfig: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/etc/npmrc", CLAUDE_CODE_SSE_PORT: "42728", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.UlFWkFbCdR/Listeners", VSCODE_PROFILE_INITIALIZED: "1", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_execpath: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/lib/node_modules/npm/bin/npm-cli.js", PATH: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive/node_modules/.bin:/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/node_modules/.bin:/Users/ishaiavrahami/Downloads/xuda/plugins/node_modules/.bin:/Users/ishaiavrahami/Downloads/xuda/node_modules/.bin:/Users/ishaiavrahami/Downloads/node_modules/.bin:/Users/ishaiavrahami/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/bin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin", npm_package_json: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive/package.json", _: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive/node_modules/.bin/vite", npm_config_userconfig: "/Users/ishaiavrahami/.npmrc", npm_config_init_module: "/Users/ishaiavrahami/.npm-init.js", USER_ZDOTDIR: "/Users/ishaiavrahami", __CFBundleIdentifier: "com.microsoft.VSCode", npm_command: "run-script", PWD: "/Users/ishaiavrahami/Downloads/xuda/plugins/@xuda.io/xuda-widget-plugin-xuda-drive", npm_lifecycle_event: "build", EDITOR: "vi", npm_package_name: "@xuda.io/xuda-widget-plugin-xuda-drive", LANG: "C.UTF-8", PYTHONSTARTUP: "/Users/ishaiavrahami/Library/Application Support/Code/User/workspaceStorage/eed9b9879fe5c937b8d79ff0746d5d6f/ms-python.python/pythonrc.py", npm_config_npm_version: "10.8.2", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "", XPC_FLAGS: "0x0", npm_config_node_gyp: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js", npm_package_version: "1.0.132", XPC_SERVICE_NAME: "0", VSCODE_INJECTION: "1", SHLVL: "2", HOME: "/Users/ishaiavrahami", VSCODE_GIT_ASKPASS_MAIN: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js", PYTHON_BASIC_REPL: "1", HOMEBREW_PREFIX: "/opt/homebrew", npm_config_cache: "/Users/ishaiavrahami/.npm", LOGNAME: "ishaiavrahami", npm_lifecycle_script: "vite build", VSCODE_GIT_IPC_HANDLE: "/var/folders/c7/0ld7263s5xzb2vvz12m3gplc0000gn/T/vscode-git-c14de325ff.sock", NVM_BIN: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/bin", npm_config_user_agent: "npm/10.8.2 node/v22.5.1 darwin arm64 workspaces/false", VSCODE_GIT_ASKPASS_NODE: "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)", GIT_ASKPASS: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh", INFOPATH: "/opt/homebrew/share/info:/opt/homebrew/share/info:", HOMEBREW_CELLAR: "/opt/homebrew/Cellar", OSLogRateLimit: "64", npm_node_execpath: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1/bin/node", npm_config_prefix: "/Users/ishaiavrahami/.nvm/versions/node/v22.5.1", COLORTERM: "truecolor", NODE_ENV: "production" };
|
|
46352
46352
|
const FRAGMENT = Symbol(""), TELEPORT = Symbol(""), SUSPENSE = Symbol(""), KEEP_ALIVE = Symbol(""), BASE_TRANSITION = Symbol(
|
|
46353
46353
|
""
|
|
46354
46354
|
), OPEN_BLOCK = Symbol(""), CREATE_BLOCK = Symbol(""), CREATE_ELEMENT_BLOCK = Symbol(
|
|
@@ -78813,38 +78813,7 @@ function toValue(I) {
|
|
|
78813
78813
|
const isClient = typeof window < "u" && typeof document < "u";
|
|
78814
78814
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
78815
78815
|
const toString = Object.prototype.toString, isObject = (I) => toString.call(I) === "[object Object]", noop = () => {
|
|
78816
|
-
};
|
|
78817
|
-
function createFilterWrapper(I, M) {
|
|
78818
|
-
function N(...V) {
|
|
78819
|
-
return new Promise((U, j) => {
|
|
78820
|
-
Promise.resolve(I(() => M.apply(this, V), { fn: M, thisArg: this, args: V })).then(U).catch(j);
|
|
78821
|
-
});
|
|
78822
|
-
}
|
|
78823
|
-
return N;
|
|
78824
|
-
}
|
|
78825
|
-
function debounceFilter(I, M = {}) {
|
|
78826
|
-
let N, V, U = noop;
|
|
78827
|
-
const j = (ne) => {
|
|
78828
|
-
clearTimeout(ne), U(), U = noop;
|
|
78829
|
-
};
|
|
78830
|
-
return (ne) => {
|
|
78831
|
-
const se = toValue(I), ve = toValue(M.maxWait);
|
|
78832
|
-
return N && j(N), se <= 0 || ve !== void 0 && ve <= 0 ? (V && (j(V), V = null), Promise.resolve(ne())) : new Promise((Ee, xe) => {
|
|
78833
|
-
U = M.rejectOnCancel ? xe : Ee, ve && !V && (V = setTimeout(() => {
|
|
78834
|
-
N && j(N), V = null, Ee(ne());
|
|
78835
|
-
}, ve)), N = setTimeout(() => {
|
|
78836
|
-
V && j(V), V = null, Ee(ne());
|
|
78837
|
-
}, se);
|
|
78838
|
-
});
|
|
78839
|
-
};
|
|
78840
|
-
}
|
|
78841
|
-
function useDebounceFn(I, M = 200, N = {}) {
|
|
78842
|
-
return createFilterWrapper(
|
|
78843
|
-
debounceFilter(M, N),
|
|
78844
|
-
I
|
|
78845
|
-
);
|
|
78846
|
-
}
|
|
78847
|
-
const defaultWindow = isClient ? window : void 0;
|
|
78816
|
+
}, defaultWindow = isClient ? window : void 0;
|
|
78848
78817
|
function unrefElement(I) {
|
|
78849
78818
|
var M;
|
|
78850
78819
|
const N = toValue(I);
|
|
@@ -79702,33 +79671,21 @@ async function viewer(I, M) {
|
|
|
79702
79671
|
existingFiles: this.existingFiles
|
|
79703
79672
|
});
|
|
79704
79673
|
else {
|
|
79705
|
-
let Je = [];
|
|
79706
79674
|
this.existingFiles = {}, this.checkingFiles = !0;
|
|
79707
|
-
var We = this.pond.getFiles().map((Qe) => ({ id: Qe.id, filename: Qe.file.name }));
|
|
79708
|
-
|
|
79709
|
-
Je
|
|
79710
|
-
|
|
79711
|
-
|
|
79712
|
-
|
|
79713
|
-
|
|
79714
|
-
type: "file"
|
|
79715
|
-
}).then((It) => {
|
|
79716
|
-
$e(It);
|
|
79717
|
-
}).catch((It) => {
|
|
79718
|
-
if (this.uploaderLoading = !1, It.code === -764) {
|
|
79719
|
-
this.existingFiles[Qe] = It.duplicates, $e(It);
|
|
79720
|
-
return;
|
|
79721
|
-
}
|
|
79722
|
-
Ke(It);
|
|
79723
|
-
});
|
|
79724
|
-
})
|
|
79725
|
-
);
|
|
79726
|
-
}), Promise.all(Je).then((Qe) => {
|
|
79727
|
-
this.checkingFiles = !1, Object.keys(this.existingFiles).length && (this.showExistModal = !0), We.filter(($e) => !Object.keys(this.existingFiles).includes($e.filename)).forEach(($e) => {
|
|
79728
|
-
this.processFiles($e.id);
|
|
79675
|
+
var We = this.pond.getFiles().map((Qe) => ({ id: Qe.id, filename: Qe.file.name })), Je = We.map(({ filename: Qe }) => "/" + Qe);
|
|
79676
|
+
this.fetcher("check_drive_files_workspace", {
|
|
79677
|
+
file_paths: Je,
|
|
79678
|
+
type: "file"
|
|
79679
|
+
}).then(() => {
|
|
79680
|
+
this.checkingFiles = !1, We.forEach((Qe) => {
|
|
79681
|
+
this.processFiles(Qe.id);
|
|
79729
79682
|
});
|
|
79730
79683
|
}).catch((Qe) => {
|
|
79731
|
-
this.checkingFiles = !1,
|
|
79684
|
+
this.checkingFiles = !1, Qe.code === -764 ? ((Qe.files || []).forEach(($e, Ke) => {
|
|
79685
|
+
$e.code === -764 && (this.existingFiles[We[Ke].filename] = $e.duplicates);
|
|
79686
|
+
}), Object.keys(this.existingFiles).length && (this.showExistModal = !0), We.filter(($e) => !Object.keys(this.existingFiles).includes($e.filename)).forEach(($e) => {
|
|
79687
|
+
this.processFiles($e.id);
|
|
79688
|
+
})) : this.checkerFailedModal = !0;
|
|
79732
79689
|
});
|
|
79733
79690
|
}
|
|
79734
79691
|
},
|
|
@@ -79808,14 +79765,9 @@ async function viewer(I, M) {
|
|
|
79808
79765
|
async created() {
|
|
79809
79766
|
this.refreshDirectory(), this.$nextTick(async () => {
|
|
79810
79767
|
var { pond: Re, processFiles: We } = await this.initUploader({ ...I, instant_file_upload: "N" }, { ...M, $containerP: $("#imageUploaderComponent") });
|
|
79811
|
-
this.pond = Re, this.processFiles = We
|
|
79812
|
-
|
|
79813
|
-
this.refreshDirectory(!1, !0);
|
|
79814
|
-
}, 2500);
|
|
79815
|
-
this.pond.on("processfile", (Qe, { id: $e }) => {
|
|
79816
|
-
!(Qe != null && Qe.type) !== "error" && this.pond.removeFiles($e), this.pond.getFiles().length || (this.uploaderLoading = !1, this.uploadModal = !1, this.pond.removeFiles()), Je();
|
|
79817
|
-
}), this.pond.on("processfiles", (Qe, $e) => {
|
|
79818
|
-
console.log("Finished all");
|
|
79768
|
+
this.pond = Re, this.processFiles = We, this.pond.on("processfile", (Je, { id: Qe }) => {
|
|
79769
|
+
}), this.pond.on("processfiles", () => {
|
|
79770
|
+
this.uploaderLoading = !1, this.uploadModal = !1, this.pond.removeFiles(), this.refreshDirectory(!1, !0);
|
|
79819
79771
|
});
|
|
79820
79772
|
}), this.$watch("opts", (Re) => {
|
|
79821
79773
|
this.refreshDirectory();
|
package/package.json
CHANGED
package/src/runtime.mjs
CHANGED
|
@@ -24,7 +24,7 @@ import FloatingVue from 'floating-vue';
|
|
|
24
24
|
import 'floating-vue/dist/style.css';
|
|
25
25
|
import * as fs from './vendors/fs-lightbox.js';
|
|
26
26
|
|
|
27
|
-
import { useDropZone
|
|
27
|
+
import { useDropZone } from '@vueuse/core';
|
|
28
28
|
|
|
29
29
|
export async function upload(fields, e) {
|
|
30
30
|
return new Promise(async (resolve, reject) => {
|
|
@@ -1105,56 +1105,47 @@ export async function viewer(fields, e) {
|
|
|
1105
1105
|
// this.refreshDirectory();
|
|
1106
1106
|
// });
|
|
1107
1107
|
} else {
|
|
1108
|
-
let promises = [];
|
|
1109
1108
|
this.existingFiles = {};
|
|
1110
1109
|
this.checkingFiles = true;
|
|
1111
1110
|
|
|
1112
1111
|
var filesMapped = this.pond.getFiles().map((e) => ({ id: e.id, filename: e.file.name }));
|
|
1112
|
+
var file_paths = filesMapped.map(({ filename }) => '/' + filename);
|
|
1113
1113
|
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
file_name: filename,
|
|
1120
|
-
type: 'file',
|
|
1121
|
-
})
|
|
1122
|
-
.then((e) => {
|
|
1123
|
-
resolve(e);
|
|
1124
|
-
})
|
|
1125
|
-
.catch((err) => {
|
|
1126
|
-
this.uploaderLoading = false;
|
|
1127
|
-
|
|
1128
|
-
if (err.code === -764) {
|
|
1129
|
-
this.existingFiles[filename] = err.duplicates;
|
|
1130
|
-
resolve(err);
|
|
1131
|
-
return;
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
|
-
reject(err);
|
|
1135
|
-
});
|
|
1136
|
-
}),
|
|
1137
|
-
);
|
|
1138
|
-
});
|
|
1139
|
-
|
|
1140
|
-
Promise.all(promises)
|
|
1141
|
-
.then((e) => {
|
|
1114
|
+
this.fetcher(`check_drive_files_workspace`, {
|
|
1115
|
+
file_paths,
|
|
1116
|
+
type: 'file',
|
|
1117
|
+
})
|
|
1118
|
+
.then(() => {
|
|
1142
1119
|
this.checkingFiles = false;
|
|
1143
1120
|
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
// Proccess non exsisting files
|
|
1149
|
-
filesMapped
|
|
1150
|
-
.filter((e) => !Object.keys(this.existingFiles).includes(e.filename))
|
|
1151
|
-
.forEach((e) => {
|
|
1152
|
-
this.processFiles(e.id);
|
|
1153
|
-
});
|
|
1121
|
+
// No conflicts — process all files
|
|
1122
|
+
filesMapped.forEach((e) => {
|
|
1123
|
+
this.processFiles(e.id);
|
|
1124
|
+
});
|
|
1154
1125
|
})
|
|
1155
|
-
.catch((
|
|
1126
|
+
.catch((err) => {
|
|
1156
1127
|
this.checkingFiles = false;
|
|
1157
|
-
|
|
1128
|
+
|
|
1129
|
+
if (err.code === -764) {
|
|
1130
|
+
(err.files || []).forEach((file, index) => {
|
|
1131
|
+
if (file.code === -764) {
|
|
1132
|
+
this.existingFiles[filesMapped[index].filename] = file.duplicates;
|
|
1133
|
+
}
|
|
1134
|
+
});
|
|
1135
|
+
|
|
1136
|
+
if (Object.keys(this.existingFiles).length) {
|
|
1137
|
+
this.showExistModal = true;
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
// Process non-conflicting files
|
|
1141
|
+
filesMapped
|
|
1142
|
+
.filter((e) => !Object.keys(this.existingFiles).includes(e.filename))
|
|
1143
|
+
.forEach((e) => {
|
|
1144
|
+
this.processFiles(e.id);
|
|
1145
|
+
});
|
|
1146
|
+
} else {
|
|
1147
|
+
this.checkerFailedModal = true;
|
|
1148
|
+
}
|
|
1158
1149
|
});
|
|
1159
1150
|
}
|
|
1160
1151
|
},
|
|
@@ -1286,26 +1277,24 @@ export async function viewer(fields, e) {
|
|
|
1286
1277
|
this.pond = pond;
|
|
1287
1278
|
this.processFiles = processFiles;
|
|
1288
1279
|
|
|
1289
|
-
|
|
1290
|
-
this.refreshDirectory(false, true);
|
|
1291
|
-
}, 2500);
|
|
1292
|
-
|
|
1280
|
+
// Avoid per-file DOM removal — let processfiles handle cleanup in bulk
|
|
1293
1281
|
this.pond.on('processfile', (e, { id }) => {
|
|
1294
|
-
if (!e?.type !== 'error') {
|
|
1295
|
-
|
|
1296
|
-
}
|
|
1297
|
-
|
|
1298
|
-
if (!this.pond.getFiles().length) {
|
|
1299
|
-
this.uploaderLoading = false;
|
|
1300
|
-
this.uploadModal = false;
|
|
1301
|
-
this.pond.removeFiles();
|
|
1302
|
-
}
|
|
1282
|
+
// if (!e?.type !== 'error') {
|
|
1283
|
+
// this.pond.removeFiles(id);
|
|
1284
|
+
// }
|
|
1303
1285
|
|
|
1304
|
-
|
|
1286
|
+
// if (!this.pond.getFiles().length) {
|
|
1287
|
+
// this.uploaderLoading = false;
|
|
1288
|
+
// this.uploadModal = false;
|
|
1289
|
+
// this.pond.removeFiles();
|
|
1290
|
+
// }
|
|
1305
1291
|
});
|
|
1306
1292
|
|
|
1307
|
-
this.pond.on('processfiles', (
|
|
1308
|
-
|
|
1293
|
+
this.pond.on('processfiles', () => {
|
|
1294
|
+
this.uploaderLoading = false;
|
|
1295
|
+
this.uploadModal = false;
|
|
1296
|
+
this.pond.removeFiles();
|
|
1297
|
+
this.refreshDirectory(false, true);
|
|
1309
1298
|
});
|
|
1310
1299
|
});
|
|
1311
1300
|
|