MCPcopy Create free account

hub / github.com/ZToolsCenter/ZTools / functions

Functions1,419 in github.com/ZToolsCenter/ZTools

FunctioncheckDownloadedUpdate
()
src/renderer/src/stores/windowStore.ts:480
Methodcleanup
* 应用退出时清理
src/main/core/floatingBallManager.ts:404
MethodcleanupPlugin
* 清理插件数据(当插件卸载时调用)
src/main/api/plugin/http.ts:202
MethodclearCookies
* 清除 Cookie * * 页面已加载时使用当前 URL(忽略参数),否则 url 参数必传。
src/main/core/zbrowser/zbrowserExecutor.ts:1020
FunctionclearPinned
()
src/renderer/src/stores/commandDataStore.ts:1590
Methodclick
* 鼠标点击 * * 支持两种调用方式: * 1. click(selector, mouseButton?) - 点击元素 * 2. click(x, y, mouseButton?) - 在坐标位置点击(物理鼠标事件) * * @returns {ZBrows
resources/zbrowser/client.js:269
Methodclose
* 关闭数据库
src/main/core/lmdb/index.ts:191
MethodcloseAll
* 关闭所有分离窗口
src/main/core/detachedWindowManager.ts:544
MethodcloseAll
* 关闭所有窗口
src/main/core/pluginWindowManager.ts:423
MethodcloseAll
* 关闭所有 toast(供主进程使用)
src/main/api/plugin/toast.ts:484
FunctioncloseMatchCommandDetail
()
internal-plugins/setting/src/components/common/MatchCommandDetailDialog/MatchCommandDetailDialog.ts:111
FunctioncmdKey
(cmd: MatchCommandDetailCommand | string)
internal-plugins/setting/src/components/common/MatchCommandDetailDialog/MatchCommandDetailDialog.ts:54
FunctioncompareVersions
(v1: string, v2: string)
internal-plugins/setting/src/utils/pluginUpgrade.ts:15
Functionconfirm
(options: ConfirmOptions)
internal-plugins/setting/src/components/common/ConfirmDialog/useConfirmDialog.ts:40
Methodconstructor
()
resources/zbrowser/client.js:75
Methodconstructor
()
src/main/utils/download.ts:16
Methodconstructor
( public readonly code: number, message: string, public readonly data?: unknown )
src/main/core/mcpServer.ts:44
Methodconstructor
* 构造函数 * @param config LMDB 配置对象
src/main/core/lmdb/index.ts:42
Methodconstructor
( private env: LmdbEnv, private mainDb: LmdbDb, private metaDb: LmdbDb, private attachmentDb:
src/main/core/lmdb/syncApi.ts:26
Methodconstructor
(private syncApi: SyncApi)
src/main/core/lmdb/promiseApi.ts:9
Methodconstructor
(db: LmdbDatabase)
src/main/core/sync/syncEngine.ts:22
Methodconstructor
()
src/main/managers/clipboardManager.ts:104
Methodconstructor
(apiName: string)
src/main/api/plugin/internal.ts:34
Methodconstructor
(private deps: PluginInstallerDeps)
src/main/api/renderer/pluginInstaller.ts:74
Methodconstructor
(private deps: DevProjectDeps)
src/main/api/renderer/pluginDevProjects.ts:86
Methodconstructor
(pluginEnterParams: PluginEnterEvent, router: Router)
internal-plugins/setting/src/events/codeEvent/ZtoolsCodeEvent.ts:17
Methodcookies
* 获取 Cookie * * 与 uTools 签名一致:cookies(name?) → 不传参返回全部,传 name 返回单个。
src/main/core/zbrowser/zbrowserExecutor.ts:958
MethodcreateWindow
* 创建插件独立窗口 * @returns win.id(数字)
src/main/core/pluginWindowManager.ts:209
Methodcss
* 注入 CSS 样式
src/main/core/zbrowser/zbrowserExecutor.ts:304
Methoddblclick
* 鼠标双击 * * 支持两种调用方式: * 1. dblclick(selector, mouseButton?) - 双击元素 * 2. dblclick(x, y, mouseButton?) - 在坐标位置双击(物理鼠标事件) * * @returns {
resources/zbrowser/client.js:344
MethoddeleteAttachment
* 删除云端附件
src/main/core/sync/webdavClient.ts:281
MethoddeleteDoc
* 删除云端文档
src/main/core/sync/webdavClient.ts:201
Functiondetach
()
resources/preload.js:90
MethoddevProjects
()
src/main/api/renderer/plugins.ts:76
MethoddevTools
* 打开开发者工具 * * @param mode 打开模式,默认 detach
src/main/core/zbrowser/zbrowserExecutor.ts:274
Methoddevice
* 设备模拟 * * @param typeOrConfig 设备名称(字符串)或自定义配置对象
src/main/core/zbrowser/zbrowserExecutor.ts:900
Methoddone
(value: string)
src/main/api/renderer/webSearch.ts:433
Methoddownload
* 下载文件 * * 支持两种调用方式: * 1. download(url, savePath?) - 直接下载 URL * 2. download(func, savePath, ...params) - 在页面中执行函数获取下载 URL,再下载 * * @r
resources/zbrowser/client.js:548
Methoddownload
* 下载文件 * * 支持两种调用方式: * 1. download(url, savePath?) - 直接下载 URL * 2. download(jsCode, savePath, true) - 先在页面中执行代码获取 URL,再下载 * * @param
src/main/core/zbrowser/zbrowserExecutor.ts:810
Methoddrop
* 拖放文件到元素或坐标位置 * * 支持两种调用方式: * 1. drop(selector, payload) - 拖放到元素 * 2. drop(x, y, payload) - 拖放到坐标位置 * * @param {string|number} sele
resources/zbrowser/client.js:417
Methoddrop
* 拖放文件到页面中的指定位置 * * 使用 CDP Input.dispatchDragEvent 模拟文件拖放。 * 支持两种定位方式: * 1. drop(selector, files) - 拖放到元素中心 * 2. drop(x, y, files) - 拖放
src/main/core/zbrowser/zbrowserExecutor.ts:498
FunctionexecWithElevation
( command: string, args: string[], wait: boolean = false )
src/main/utils/elevation.ts:32
FunctionexistsInZpx
(zpxPath: string, filePath: string)
src/main/utils/zpxArchive.ts:219
Methodfail
(err: Error)
src/main/core/ffmpeg.ts:234
Methodfail
(error: Error)
src/main/api/renderer/webSearch.ts:426
Methodfile
* 设置文件输入 * * @param {string} selector - 文件 input 元素的 CSS 选择器 * @param {string|Uint8Array|string[]} fileData - 文件路径 / Base64 / 二进制数据 / 路径数组
resources/zbrowser/client.js:533
Methodfile
* 设置文件输入框的文件列表 * * 使用 Chrome DevTools Protocol(CDP)的 DOM.setFileInputFiles 命令。 * * @param selector CSS 选择器 * @param files 文件路径数组
src/main/core/zbrowser/zbrowserExecutor.ts:621
MethodfilterDbArray
(key: string, pred: (item: any) => boolean, event?: string)
src/main/api/renderer/pluginDevProjects.ts:236
Methodfinish
()
src/main/managers/pluginAssemblyCoordinator.ts:354
FunctionformatDate
(dateStr?: string)
internal-plugins/setting/src/components/common/PluginDetail/usePluginDetail.ts:404
FunctionformatJsonData
(data: any)
internal-plugins/setting/src/components/common/PluginDetail/usePluginDetail.ts:395
FunctionformatSize
(bytes?: number)
internal-plugins/setting/src/components/common/PluginDetail/usePluginDetail.ts:421
Functionget
(obj, prop)
src/main/utils/lanzou.ts:312
Methodget
* 根据 ID 获取文档(同步) * @param id 文档 ID * @returns 文档对象,不存在返回 null
src/main/core/lmdb/index.ts:110
Methodget
* 根据 ID 获取文档(异步) * @param id 文档 ID * @returns Promise<文档对象>,不存在返回 null
src/main/core/lmdb/promiseApi.ts:36
MethodgetAttachment
* 获取附件(异步) * @param id 附件文档 ID * @returns Promise<附件数据(Uint8Array)>,不存在返回 null
src/main/core/lmdb/promiseApi.ts:134
MethodgetAttachmentType
* 获取附件元数据(异步) * @param id 附件文档 ID * @returns Promise<附件元数据对象>,不存在返回 null
src/main/core/lmdb/promiseApi.ts:152
FunctiongetAutoPasteTimeLimit
()
src/renderer/src/stores/windowStore.ts:411
MethodgetCachedResult
()
src/main/api/renderer/pluginMarket.ts:153
FunctiongetCommandId
(cmd: Command)
src/renderer/src/stores/commandDataStore.ts:251
MethodgetConfig
()
src/main/core/httpServer.ts:62
MethodgetCurrentSession
* 获取当前会话(可能为空)
src/main/managers/pluginAssemblyCoordinator.ts:123
MethodgetCurrentShortcut
* 获取当前快捷键
src/main/managers/windowManager.ts:1108
MethodgetFinderPath
* 获取访达(Finder)当前打开的路径 * @returns 访达当前路径,如果访达未激活或没有打开窗口则返回 null
src/main/utils/appleScriptHelper.ts:32
MethodgetFrontmostApp
* 获取当前激活的应用程序信息 * @returns 当前激活应用的信息对象
src/main/utils/appleScriptHelper.ts:63
MethodgetFrontmostAppName
* 获取当前激活应用的名称(简化版) * @returns 应用名称
src/main/utils/appleScriptHelper.ts:103
FunctiongetGlobalAcwCookie
()
src/main/utils/lanzou.ts:224
FunctiongetLanzouDownloadLink
(url: string)
src/main/utils/lanzou.ts:5
FunctiongetLanzouFolderFileList
(url: string, password?: string)
src/main/utils/lanzou.ts:119
MethodgetLastCopiedImage
(timeLimit: number)
src/main/managers/clipboardManager.ts:868
MethodgetLastCopiedText
(timeLimit: number)
src/main/managers/clipboardManager.ts:862
MethodgetLaunchParam
()
src/main/api/renderer/commands.ts:67
FunctiongetLinuxApplicationPaths
()
src/main/utils/systemPaths.ts:50
FunctiongetMarketCategoryIcon
(key: string)
internal-plugins/setting/src/views/PluginMarketSetting/marketAssets.ts:24
FunctiongetMatchingMainPushFeatures
* 获取与搜索查询匹配的 mainPush 功能列表 * 根据每个 mainPush feature 的 cmds 定义检查匹配
src/renderer/src/stores/commandDataStore.ts:1601
FunctiongetPinnedCommands
()
src/renderer/src/stores/commandDataStore.ts:1553
MethodgetPluginDefaultHeight
* 获取插件默认高度
src/main/managers/pluginManager.ts:330
MethodgetPluginNameByWebContents
(webContents: any)
src/main/managers/pluginManager.ts:1032
MethodgetPluginNameByWindowId
* 根据 win.id 获取窗口所属的插件名称(用于所有权校验)
src/main/core/pluginWindowManager.ts:318
MethodgetProxyConfig
* 获取当前代理配置
src/main/managers/proxyManager.ts:34
FunctiongetRecentCommands
(limit?: number)
src/renderer/src/stores/commandDataStore.ts:1452
MethodgetRunningApps
* 获取所有运行中的应用程序列表 * @returns 运行中的应用程序名称数组
src/main/utils/appleScriptHelper.ts:227
MethodgetRunningPlugins
()
src/main/managers/pluginManager.ts:1006
MethodgetRunningPluginsInfo
()
src/main/managers/pluginManager.ts:1013
MethodgetStats
* 获取数据库统计信息
src/main/core/lmdb/index.ts:202
MethodgetStatus
()
src/main/managers/clipboardManager.ts:927
MethodgetSyncMeta
* 获取文档的同步元数据(异步) * @param id 文档 ID * @returns Promise<同步元数据对象>,不存在返回 null
src/main/core/lmdb/promiseApi.ts:170
MethodgetWindowMaterial
* 获取当前窗口材质
src/main/managers/windowManager.ts:1252
Methodgoto
* 页面导航 * * @param args [url, headersOrTimeout?, timeout?] * - url: 目标 URL(必须是 http/https/file 协议) * - 第二个参数可以是 headers 对象或超时毫秒数 *
src/main/core/zbrowser/zbrowserExecutor.ts:200
FunctionhandleAbort
()
src/main/utils/download.ts:63
FunctionhandleCancel
()
internal-plugins/setting/src/components/common/Toast/Toast.ts:152
FunctionhandleCancel
()
internal-plugins/setting/src/components/common/ConfirmDialog/useConfirmDialog.ts:59
MethodhandleChange
(changedPath: string)
src/main/core/sync/pluginSyncWatcher.ts:49
FunctionhandleClearAllData
()
internal-plugins/setting/src/components/common/PluginDetail/usePluginDetail.ts:293
FunctionhandleClickOutside
()
internal-plugins/setting/src/components/common/PluginDetail/usePluginDetail.ts:52
FunctionhandleConfirm
()
internal-plugins/setting/src/components/common/Toast/Toast.ts:144
FunctionhandleConfirm
()
internal-plugins/setting/src/components/common/ConfirmDialog/useConfirmDialog.ts:54
FunctionhandleKeyDown
(e: KeyboardEvent)
internal-plugins/setting/src/composables/useZtoolsSubInput.ts:75
FunctionhandleKeydown
(event: KeyboardEvent, onSelect: (item: any) => void)
src/renderer/src/composables/useNavigation.ts:187
FunctionhandleListKeydown
(e)
resources/preload.js:1613
← previousnext →1,101–1,200 of 1,419, ranked by callers