Documentation

内存与隐私

扩展如何在浏览器中本地存储和管理同步状态。

Where your data lives

All sync data is stored locally in your browser. Your calendar and Jira credentials stay on your device.

离线支持

Events are cached locally. When you return online, the extension resumes sync. No data is lost during disconnects.

Privacy

Your calendar events and credentials never leave your computer. The extension runs in the browser and talks directly to your calendar and Jira.

For developers

Vremya.io 扩展使用 IndexedDB 和 Chrome Storage API 在浏览器中本地存储所有同步数据。日历数据或凭据不会发送到外部服务器。

IndexedDB 存储

扩展使用 IndexedDB(数据库 OWAJiraSync)存储结构化数据:

  • 日历事件 — 包含元数据、同步状态、worklog ID 的已捕获事件
  • 状态重算队列 — 等待重算的事件
  • Jira issue 缓存 — 用于映射的已缓存 Jira issue
  • 连接状态 — 提供者和写入器的最后检查结果
  • 请求 — 同步请求(活跃和已完成)
  • 同步中事件 — 当前正在同步的事件

Chrome Storage (chrome.storage.local)

用于设置、性能指标和键值数据:

  • 设置 — 同步通道、已启用提供者、映射规则、认证状态
  • 性能指标 — 处理器时间、内存使用历史

同步流中的内存单元

每个同步通道都有一个中央内存节点:源 → 内存 → 目标。内存单元在导入和导出之间保存事件。

内存监控

在弹出窗口和设置页面中,扩展监控 JavaScript 堆使用量(performance.memory)并记录指标。高使用率(>80%)会触发警告。