Giter Site home page Giter Site logo

fzdwx / popup-translation Goto Github PK

View Code? Open in Web Editor NEW
152.0 3.0 12.0 11.2 MB

Recommended to use [openai-translator](https://github.com/openai-translator/openai-translator) A desktop popup translation tool.

License: MIT License

Rust 38.55% HTML 1.21% TypeScript 45.59% Just 0.79% JavaScript 8.28% CSS 5.58%
fanyi translation tauri rust webview

popup-translation's Issues

使用 tauri 实现一版

  1. 还是分为两种类型,一个 通过 api 调用,一个通过加载第三方网站
    2.加载第三方网站的形式
    • 如果用 iframe 实现,就不能操作 dom,来达到隐藏其他不需要的 dom 的操作
    • 点击按钮后,新开一个窗口来加载
  2. api 调用,点击按钮后通过 rust 发送请求?

image


  • api: deepl
  • lodding 效果
  • api: chatgpt
  • api: google

增加一个 配置 页面

新增一个配置页面:

  1. 配置快捷键
  2. chatgpt key(目前是使用的一个免费的 server 并不稳定)

[TODO] 待完善功能

TODO

  • add setting page (#16)
  • 完善模式二翻译逻辑
  • local save key (key.json) (c2b7e3e)
  • get local key (c2b7e3e)
  • 组件优化 (#18)
  • 模式2 显示时,输入框 focus
  • 模式2 快捷键翻译, 当处在模式2时,在输入框可以有快捷键响应并调用翻译
  • 添加翻译语言选项, 现在只能由 英文 到 中文

后台模式bug

bug: 后台模式,使用快捷键不能弹出翻译显示界面。
操作系统: win10

运行无弹窗,结束程序时报错

  1. 使用fanyi 命令运行,显示成功启动,但快捷键无法调出弹窗,功能无法使用
  2. 用fanyi hello测试运行,但没有弹窗,
    而后结束运行时出现如下报错:
    [0227/084219.306:ERROR:window_impl.cc(119)] Failed to unregister class Chrome_WidgetWin_0. Error = 0
    本地环境是WIN10,用的GNU的工具链打包

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.