Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist / 检查清单
Description / 描述
close #1296 fix #1261
问题
cloud_sync.enable等设备相关配置存储在chrome.storage.sync,会被 Chrome 同步到所有设备。但 OAuth token 存在localStorage(不同步),导致:cloud_sync.enable=true的配置后,每个脚本同步都触发 OAuth,弹出 100+ 登录窗口修改内容
SystemConfig 支持双 storage + 懒迁移(
src/pkg/config/config.ts)将设备相关的配置项从
chrome.storage.sync迁移到chrome.storage.local:cloud_sync、backup、cat_file_storage— 云存储/备份配置(含设备相关的 filesystem params)vscode_url、vscode_reconnect— VSCode 连接(设备相关)language— 语言偏好script_list_column_width— UI 列宽(取决于屏幕尺寸)check_update— 扩展更新通知及已读状态(各设备已读状态独立)enable_script、enable_script_incognito— 脚本开关(设备独立)懒迁移策略:读取时先查 local,没有则回退 sync(兼容旧版本数据),读到后自动迁移到 local 并从 sync 删除。
另外删除了
changetime死代码(无任何引用)。Screenshots / 截图
N/A