Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

迁移到 Tauri 2, 并进行相关重构 #83

Draft
wants to merge 21 commits into
base: next
Choose a base branch
from
Draft

Conversation

Goodjooy
Copy link
Contributor

@Goodjooy Goodjooy commented Oct 19, 2024

迁移任务

  • 迁移到Tauri2
    • 前端界面相关导入包和接口调整
      • PhysicalPos , PhysicalSize 移动到 @tauri-app\api\dpi
      • @tauri-app\api\tauri 移动到 @tauri-app\api\core
      • @tauri-app\api\webviewWindowgetAll 更名为 getAllWebviewWindow
    • 后端部分相关包版本升级
      • windows crate 的接口内部值由usize 替换为 const * ffi_void 带来了新的跨线程移动问题
      • time 无法解决依赖,使用cargo update
    • 后端部分,基于tauri2 独立的扩展部分替换
      • 内置的OS 模块替换为 plugin-os
      • 内置的FS模块替换为 plugin-fs
      • 将原有的CLI替换为使用 plugin-cli 实现
      • 暂时移除日志初始化相关代码,将使用基于plugin的实现
    • 权限初步配置

重构任务

  • 单例模式替换为使用 plugin 的实现
  • http 请求替换为使用 plugin 的实现
  • 带图片的消息推送使用plugin的实现
  • 使用 mutliwebview 来实现窗口嵌入
  • 调整后端代码组织样式,根据功能模块划分
  • 调整前端代码组织模式,减少单个文件长度

@Goodjooy Goodjooy marked this pull request as draft October 19, 2024 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants