mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-08-18 03:57:06 +08:00
33 lines
1.2 KiB
Go
33 lines
1.2 KiB
Go
package bridge
|
|
|
|
import "github.com/pkg/browser"
|
|
|
|
const footerAuthorHomeURL = "https://space.bilibili.com/311706663/upload/video"
|
|
|
|
var footerAuthorInfo = FooterAuthorInfo{
|
|
ButtonText: "作者 leookun",
|
|
DialogTitle: "作者寄语",
|
|
DialogContent: "本软件是纯免费软件,如果你被收费,那大概率就是被骗了。\n欢迎点击访问作者主页 https://space.bilibili.com/311706663/upload/video\n查看更多更新动态、使用分享和后续内容。",
|
|
DialogConfirmText: "访问主页",
|
|
DialogCancelText: "关闭",
|
|
}
|
|
|
|
// FooterAuthorInfo 定义首页底部作者入口的展示信息。
|
|
type FooterAuthorInfo struct {
|
|
ButtonText string `json:"buttonText"`
|
|
DialogTitle string `json:"dialogTitle"`
|
|
DialogContent string `json:"dialogContent"`
|
|
DialogConfirmText string `json:"dialogConfirmText"`
|
|
DialogCancelText string `json:"dialogCancelText"`
|
|
}
|
|
|
|
// GetFooterAuthorInfo 返回首页底部作者入口的展示信息。
|
|
func (s *WindowService) GetFooterAuthorInfo() FooterAuthorInfo {
|
|
return footerAuthorInfo
|
|
}
|
|
|
|
// OpenFooterAuthorHome 打开作者主页。
|
|
func (s *WindowService) OpenFooterAuthorHome() error {
|
|
return browser.OpenURL(footerAuthorHomeURL)
|
|
}
|