Pake icon indicating copy to clipboard operation
Pake copied to clipboard

支持多窗口 Tab 及自定义菜单

Open normal-coder opened this issue 2 years ago • 1 comments

Search before asking

  • [X] 我在 issues 列表中搜索,没有找到类似的内容。 I searched in the issues and found nothing similar.

Motivation

目前打包出来的应用是一个单窗口应用。对功能复杂的网站而言,场景上略微薄弱。希望支持支持多窗口 Tab 及自定义菜单,以便于更加灵活的使用。

Solution

  • 多窗口 Tab 支持:参考石墨一类 Electron 应用模式。
  • 自定义菜单:考虑开放一个 config.json 用于支持自定义菜单结构。支持如下能力:
    • 自定义菜单结构
    • 支持绑定绑定快捷键
    • 快速打开指定 URL 页面(可选开关:当前窗口 Tab 或新窗口 Tab)
    • 提供可供页面 JS 调用的方法,用于扩展菜单选项

Alternatives

No response

Anything else?

No response

Are you willing to submit a PR?

  • [X] I'm willing to submit a PR!

normal-coder avatar May 07 '23 22:05 normal-coder

自定义菜单,这个特性得要做插件系统了,要做的话得好好设计

tk103331 avatar May 08 '23 02:05 tk103331

转移到讨论,这个功能需要想想怎么支持更好

tw93 avatar Jun 19 '23 11:06 tw93