@xuda.io/xuda-widget-plugin-xuda-drive 1.0.137 → 1.0.139
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 +48 -7
- package/package.json +1 -1
- package/src/runtime.mjs +53 -3
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.137", 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.137", 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.137", 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(
|
|
@@ -79431,7 +79431,9 @@ async function viewer(I, M) {
|
|
|
79431
79431
|
<div class="font-medium text-sm">
|
|
79432
79432
|
<template v-if="checkingFiles">Checking {{ checkingFilesCount }} file{{ checkingFilesCount > 1 ? 's' : '' }}</template>
|
|
79433
79433
|
<template v-else-if="uploadsInProgress > 0">Uploading {{ uploadsInProgress }} item{{ uploadsInProgress > 1 ? 's' : '' }}</template>
|
|
79434
|
-
<template v-else>
|
|
79434
|
+
<template v-else>
|
|
79435
|
+
{{ uploadsDone }} uploaded<template v-if="uploadsFailed">, {{ uploadsFailed }} failed</template>
|
|
79436
|
+
</template>
|
|
79435
79437
|
</div>
|
|
79436
79438
|
<div class="flex items-center gap-2">
|
|
79437
79439
|
<button @click.stop="jobWindowCollapsed = !jobWindowCollapsed" class="text-white/70 hover:text-white">
|
|
@@ -79442,8 +79444,28 @@ async function viewer(I, M) {
|
|
|
79442
79444
|
</button>
|
|
79443
79445
|
</div>
|
|
79444
79446
|
</div>
|
|
79447
|
+
<!-- Failed summary bar -->
|
|
79448
|
+
<div v-if="uploadsFailed > 0 && uploadsInProgress === 0 && !jobWindowCollapsed" class="flex items-center justify-between px-4 py-2 bg-red-50 border-b border-red-100">
|
|
79449
|
+
<div class="flex items-center gap-2 text-red-600 text-sm font-medium">
|
|
79450
|
+
<svg class="w-4 h-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zm-1.72 6.97a.75.75 0 10-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 101.06 1.06L12 13.06l1.72 1.72a.75.75 0 101.06-1.06L13.06 12l1.72-1.72a.75.75 0 10-1.06-1.06L12 10.94l-1.72-1.72z" clip-rule="evenodd" /></svg>
|
|
79451
|
+
{{ uploadsFailed }} failed
|
|
79452
|
+
</div>
|
|
79453
|
+
<div class="flex items-center gap-1.5">
|
|
79454
|
+
<!-- Navigate up/down between failed items -->
|
|
79455
|
+
<button @click.stop="navigateFailed(-1)" class="p-0.5 rounded hover:bg-red-100 text-red-500 transition-colors">
|
|
79456
|
+
<svg class="w-4 h-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M4.5 15.75l7.5-7.5 7.5 7.5" /></svg>
|
|
79457
|
+
</button>
|
|
79458
|
+
<button @click.stop="navigateFailed(1)" class="p-0.5 rounded hover:bg-red-100 text-red-500 transition-colors">
|
|
79459
|
+
<svg class="w-4 h-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5" /></svg>
|
|
79460
|
+
</button>
|
|
79461
|
+
<!-- Retry all failed -->
|
|
79462
|
+
<button @click.stop="retryAllFailed" class="text-xs text-red-600 hover:text-red-800 font-medium px-2 py-1 rounded hover:bg-red-100 transition-colors">
|
|
79463
|
+
Retry all
|
|
79464
|
+
</button>
|
|
79465
|
+
</div>
|
|
79466
|
+
</div>
|
|
79445
79467
|
<!-- File list -->
|
|
79446
|
-
<div v-show="!jobWindowCollapsed" class="max-h-64 overflow-y-auto divide-y divide-neutral-100">
|
|
79468
|
+
<div v-show="!jobWindowCollapsed" ref="jobListRef" class="max-h-64 overflow-y-auto divide-y divide-neutral-100">
|
|
79447
79469
|
<!-- Checking files row -->
|
|
79448
79470
|
<div v-if="checkingFiles" class="flex items-center gap-3 px-4 py-2.5">
|
|
79449
79471
|
<div class="shrink-0">
|
|
@@ -79454,7 +79476,7 @@ async function viewer(I, M) {
|
|
|
79454
79476
|
</div>
|
|
79455
79477
|
</div>
|
|
79456
79478
|
<!-- Upload jobs -->
|
|
79457
|
-
<div v-for="job in uploadJobs" :key="job.id" class="flex items-center gap-3 px-4 py-2.5">
|
|
79479
|
+
<div v-for="job in uploadJobs" :key="job.id" :ref="'job-' + job.id" class="flex items-center gap-3 px-4 py-2.5">
|
|
79458
79480
|
<div class="shrink-0">
|
|
79459
79481
|
<!-- Uploading spinner -->
|
|
79460
79482
|
<svg v-if="job.status === 'uploading'" class="w-5 h-5 text-neutral-400" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5m-13.5-9L12 3m0 0l4.5 4.5M12 3v13.5" /></svg>
|
|
@@ -79588,6 +79610,7 @@ async function viewer(I, M) {
|
|
|
79588
79610
|
pendingFiles: [],
|
|
79589
79611
|
checkingFiles: !1,
|
|
79590
79612
|
checkingFilesCount: 0,
|
|
79613
|
+
failedNavIndex: -1,
|
|
79591
79614
|
searchOptions: [
|
|
79592
79615
|
{
|
|
79593
79616
|
label: "Filename",
|
|
@@ -79703,12 +79726,24 @@ async function viewer(I, M) {
|
|
|
79703
79726
|
this.uploadsInProgress === 0 && this.refreshDirectory(!1, !0);
|
|
79704
79727
|
}, Ft.onerror = () => {
|
|
79705
79728
|
const Qt = this.uploadJobs.find((qt) => qt.id === We);
|
|
79706
|
-
Qt && (Qt.status = "error");
|
|
79729
|
+
Qt && (Qt.status = "error"), this.uploadsInProgress === 0 && this.refreshDirectory(!1, !0);
|
|
79707
79730
|
}, Ft.send(Qe);
|
|
79708
79731
|
},
|
|
79709
79732
|
retryUpload(ke) {
|
|
79710
79733
|
ke.status = "uploading", ke.progress = 0, this.uploadSingleFile(ke.file, ke.id, ke.isUpdate);
|
|
79711
79734
|
},
|
|
79735
|
+
retryAllFailed() {
|
|
79736
|
+
this.uploadJobs.filter((ke) => ke.status === "error").forEach((ke) => {
|
|
79737
|
+
this.retryUpload(ke);
|
|
79738
|
+
});
|
|
79739
|
+
},
|
|
79740
|
+
navigateFailed(ke) {
|
|
79741
|
+
const We = this.uploadJobs.filter((Ke) => Ke.status === "error");
|
|
79742
|
+
if (!We.length) return;
|
|
79743
|
+
this.failedNavIndex = (this.failedNavIndex + ke + We.length) % We.length;
|
|
79744
|
+
const Je = We[this.failedNavIndex], Qe = this.$refs["job-" + Je.id], $e = Array.isArray(Qe) ? Qe[0] : Qe;
|
|
79745
|
+
$e && this.$refs.jobListRef && ($e.scrollIntoView({ behavior: "smooth", block: "center" }), $e.classList.add("bg-red-50"), setTimeout(() => $e.classList.remove("bg-red-50"), 1500));
|
|
79746
|
+
},
|
|
79712
79747
|
removeLastSearch(ke) {
|
|
79713
79748
|
ke.target.value || (this.removeChipCount === 1 ? (this.opts.search_string = this.opts.search_string.replaceAll(
|
|
79714
79749
|
this.opts.search_string.split(" ").filter((We) => We.includes(":")).at(-1),
|
|
@@ -79738,6 +79773,12 @@ async function viewer(I, M) {
|
|
|
79738
79773
|
uploadsInProgress() {
|
|
79739
79774
|
return this.uploadJobs.filter((ke) => ke.status === "uploading").length;
|
|
79740
79775
|
},
|
|
79776
|
+
uploadsDone() {
|
|
79777
|
+
return this.uploadJobs.filter((ke) => ke.status === "done").length;
|
|
79778
|
+
},
|
|
79779
|
+
uploadsFailed() {
|
|
79780
|
+
return this.uploadJobs.filter((ke) => ke.status === "error").length;
|
|
79781
|
+
},
|
|
79741
79782
|
acceptTypes() {
|
|
79742
79783
|
if (I.file_upload_mime_type_preset)
|
|
79743
79784
|
switch (I.file_upload_mime_type_preset) {
|
package/package.json
CHANGED
package/src/runtime.mjs
CHANGED
|
@@ -802,7 +802,9 @@ export async function viewer(fields, e) {
|
|
|
802
802
|
<div class="font-medium text-sm">
|
|
803
803
|
<template v-if="checkingFiles">Checking {{ checkingFilesCount }} file{{ checkingFilesCount > 1 ? 's' : '' }}</template>
|
|
804
804
|
<template v-else-if="uploadsInProgress > 0">Uploading {{ uploadsInProgress }} item{{ uploadsInProgress > 1 ? 's' : '' }}</template>
|
|
805
|
-
<template v-else>
|
|
805
|
+
<template v-else>
|
|
806
|
+
{{ uploadsDone }} uploaded<template v-if="uploadsFailed">, {{ uploadsFailed }} failed</template>
|
|
807
|
+
</template>
|
|
806
808
|
</div>
|
|
807
809
|
<div class="flex items-center gap-2">
|
|
808
810
|
<button @click.stop="jobWindowCollapsed = !jobWindowCollapsed" class="text-white/70 hover:text-white">
|
|
@@ -813,8 +815,28 @@ export async function viewer(fields, e) {
|
|
|
813
815
|
</button>
|
|
814
816
|
</div>
|
|
815
817
|
</div>
|
|
818
|
+
<!-- Failed summary bar -->
|
|
819
|
+
<div v-if="uploadsFailed > 0 && uploadsInProgress === 0 && !jobWindowCollapsed" class="flex items-center justify-between px-4 py-2 bg-red-50 border-b border-red-100">
|
|
820
|
+
<div class="flex items-center gap-2 text-red-600 text-sm font-medium">
|
|
821
|
+
<svg class="w-4 h-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zm-1.72 6.97a.75.75 0 10-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 101.06 1.06L12 13.06l1.72 1.72a.75.75 0 101.06-1.06L13.06 12l1.72-1.72a.75.75 0 10-1.06-1.06L12 10.94l-1.72-1.72z" clip-rule="evenodd" /></svg>
|
|
822
|
+
{{ uploadsFailed }} failed
|
|
823
|
+
</div>
|
|
824
|
+
<div class="flex items-center gap-1.5">
|
|
825
|
+
<!-- Navigate up/down between failed items -->
|
|
826
|
+
<button @click.stop="navigateFailed(-1)" class="p-0.5 rounded hover:bg-red-100 text-red-500 transition-colors">
|
|
827
|
+
<svg class="w-4 h-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M4.5 15.75l7.5-7.5 7.5 7.5" /></svg>
|
|
828
|
+
</button>
|
|
829
|
+
<button @click.stop="navigateFailed(1)" class="p-0.5 rounded hover:bg-red-100 text-red-500 transition-colors">
|
|
830
|
+
<svg class="w-4 h-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5" /></svg>
|
|
831
|
+
</button>
|
|
832
|
+
<!-- Retry all failed -->
|
|
833
|
+
<button @click.stop="retryAllFailed" class="text-xs text-red-600 hover:text-red-800 font-medium px-2 py-1 rounded hover:bg-red-100 transition-colors">
|
|
834
|
+
Retry all
|
|
835
|
+
</button>
|
|
836
|
+
</div>
|
|
837
|
+
</div>
|
|
816
838
|
<!-- File list -->
|
|
817
|
-
<div v-show="!jobWindowCollapsed" class="max-h-64 overflow-y-auto divide-y divide-neutral-100">
|
|
839
|
+
<div v-show="!jobWindowCollapsed" ref="jobListRef" class="max-h-64 overflow-y-auto divide-y divide-neutral-100">
|
|
818
840
|
<!-- Checking files row -->
|
|
819
841
|
<div v-if="checkingFiles" class="flex items-center gap-3 px-4 py-2.5">
|
|
820
842
|
<div class="shrink-0">
|
|
@@ -825,7 +847,7 @@ export async function viewer(fields, e) {
|
|
|
825
847
|
</div>
|
|
826
848
|
</div>
|
|
827
849
|
<!-- Upload jobs -->
|
|
828
|
-
<div v-for="job in uploadJobs" :key="job.id" class="flex items-center gap-3 px-4 py-2.5">
|
|
850
|
+
<div v-for="job in uploadJobs" :key="job.id" :ref="'job-' + job.id" class="flex items-center gap-3 px-4 py-2.5">
|
|
829
851
|
<div class="shrink-0">
|
|
830
852
|
<!-- Uploading spinner -->
|
|
831
853
|
<svg v-if="job.status === 'uploading'" class="w-5 h-5 text-neutral-400" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5m-13.5-9L12 3m0 0l4.5 4.5M12 3v13.5" /></svg>
|
|
@@ -983,6 +1005,7 @@ export async function viewer(fields, e) {
|
|
|
983
1005
|
pendingFiles: [],
|
|
984
1006
|
checkingFiles: false,
|
|
985
1007
|
checkingFilesCount: 0,
|
|
1008
|
+
failedNavIndex: -1,
|
|
986
1009
|
searchOptions: [
|
|
987
1010
|
{
|
|
988
1011
|
label: 'Filename',
|
|
@@ -1199,6 +1222,9 @@ export async function viewer(fields, e) {
|
|
|
1199
1222
|
request.onerror = () => {
|
|
1200
1223
|
const job = this.uploadJobs.find((j) => j.id === jobId);
|
|
1201
1224
|
if (job) job.status = 'error';
|
|
1225
|
+
if (this.uploadsInProgress === 0) {
|
|
1226
|
+
this.refreshDirectory(false, true);
|
|
1227
|
+
}
|
|
1202
1228
|
};
|
|
1203
1229
|
|
|
1204
1230
|
request.send(formData);
|
|
@@ -1208,6 +1234,24 @@ export async function viewer(fields, e) {
|
|
|
1208
1234
|
job.progress = 0;
|
|
1209
1235
|
this.uploadSingleFile(job.file, job.id, job.isUpdate);
|
|
1210
1236
|
},
|
|
1237
|
+
retryAllFailed() {
|
|
1238
|
+
this.uploadJobs.filter(j => j.status === 'error').forEach(job => {
|
|
1239
|
+
this.retryUpload(job);
|
|
1240
|
+
});
|
|
1241
|
+
},
|
|
1242
|
+
navigateFailed(direction) {
|
|
1243
|
+
const failedJobs = this.uploadJobs.filter(j => j.status === 'error');
|
|
1244
|
+
if (!failedJobs.length) return;
|
|
1245
|
+
this.failedNavIndex = (this.failedNavIndex + direction + failedJobs.length) % failedJobs.length;
|
|
1246
|
+
const targetJob = failedJobs[this.failedNavIndex];
|
|
1247
|
+
const refEl = this.$refs['job-' + targetJob.id];
|
|
1248
|
+
const el = Array.isArray(refEl) ? refEl[0] : refEl;
|
|
1249
|
+
if (el && this.$refs.jobListRef) {
|
|
1250
|
+
el.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
1251
|
+
el.classList.add('bg-red-50');
|
|
1252
|
+
setTimeout(() => el.classList.remove('bg-red-50'), 1500);
|
|
1253
|
+
}
|
|
1254
|
+
},
|
|
1211
1255
|
|
|
1212
1256
|
removeLastSearch($event) {
|
|
1213
1257
|
if (!$event.target.value) {
|
|
@@ -1254,6 +1298,12 @@ export async function viewer(fields, e) {
|
|
|
1254
1298
|
uploadsInProgress() {
|
|
1255
1299
|
return this.uploadJobs.filter((j) => j.status === 'uploading').length;
|
|
1256
1300
|
},
|
|
1301
|
+
uploadsDone() {
|
|
1302
|
+
return this.uploadJobs.filter(j => j.status === 'done').length;
|
|
1303
|
+
},
|
|
1304
|
+
uploadsFailed() {
|
|
1305
|
+
return this.uploadJobs.filter(j => j.status === 'error').length;
|
|
1306
|
+
},
|
|
1257
1307
|
acceptTypes() {
|
|
1258
1308
|
if (fields.file_upload_mime_type_preset) {
|
|
1259
1309
|
switch (fields.file_upload_mime_type_preset) {
|