Skip to content

TrayClip v0.2.12

Choose a tag to compare

@github-actions github-actions released this 26 Oct 15:05
  • Added getClipText to retrieve the full text of a clip, improving the accuracy of text operations.
  • Added allowImagePreview to determine whether previewing an image at a specified path is permitted.
  • Removed unused interfaces, including getSettings, getHotkeys, and loadImageDataUrl.
  • Updated the ClipCard component to use getClipText for fetching full text, ensuring the integrity of link opening and JSON copying operations.
  • Added logic to ClipCard to detect truncated preview text and trigger the loading of the full text when necessary.
  • Changed the ClipList type from ClipRecord to ClipListItem to align with structural adjustments.
  • Standardized the use of clip preview text throughout the codebase to minimize data transfer and enhance performance.
  • Removed the Badge UI component and its associated styles to reduce redundant code.
  • Implemented database initialization, snapshotting, and data truncation controls on the Rust side to ensure data integrity.
  • Enforced limits on image size and dimensions to prevent memory overflows and the loading of malformed data.
  • Refined clipboard image processing logic to ensure proper resource release and data reliability.
  • Removed dependencies on base64 and tauri-plugin-fs to streamline project dependencies.
  • Reorganized the database Clip data model by adding fields for clip previews and URL markers, optimizing list query efficiency.
  • Implemented various interaction improvements for ClipCard, including enhancements to features like translation and AI-generated summaries.
  • Refactored window-closing logic into a separate hook to improve code clarity and reusability.
  • 新增 getClipText 接口,用于获取剪贴板内容的完整文本,提升文本操作的准确性。
  • 新增 allowImagePreview 接口,用于判断是否允许预览指定路径下的图片。
  • 移除不再使用的接口,包括 getSettings、getHotkeys 和 loadImageDataUrl。
  • 更新 ClipCard 组件,改用 getClipText 获取完整文本,确保链接打开及 JSON 复制操作的数据完整性。
  • 在 ClipCard 中加入逻辑,用于检测预览文本是否被截断,并在必要时触发完整文本的加载。
  • 将 ClipList 的类型从 ClipRecord 更改为 ClipListItem,以适配结构调整。
  • 统一了代码库中剪贴板预览文本的使用方式,旨在减少数据传输并提升性能。
  • 移除 Badge UI 组件及其相关样式,以精简冗余代码。
  • 在 Rust 端实​​现数据库初始化、快照生成及数据截断控制,确保数据完整性。
  • 对图片大小和尺寸设置限制,防止内存溢出及加载异常数据。
  • 优化剪贴板图片处理逻辑,确保资源得到妥善释放,并保障数据可靠性。
  • 移除对 base64 和 tauri-plugin-fs 的依赖,精简项目依赖项。
  • 调整数据库 Clip 数据模型,新增剪贴板预览及 URL 标记字段,优化列表查询效率。
  • 改进 ClipCard 的交互体验,增强了翻译及 AI 生成摘要等功能。
  • 将窗口关闭逻辑重构为独立的 Hook,以提升代码清晰度与可复用性。