You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* ✨ 新增在编辑器对比页面自动隐藏未改变的代码
* 🐛 修复 Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
* 🐛 修复 Warning: validateDOMNesting(...): <div> cannot appear as a child of <table>.
* 🐛 fix: 修复 Error: Could not find source file: 'inmemory://model/1'.
* ✨ feat: 新增部分metadata的悬停提示
* Update src/pkg/utils/monaco-editor/index.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: wangyizhi <i@xloli.top>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: src/pkg/utils/monaco-editor/index.ts
+34-6Lines changed: 34 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -18,11 +18,37 @@ export default function registerEditor() {
18
18
// 悬停提示
19
19
constprompt: {[key: string]: any}={
20
20
name: "脚本名称",
21
-
description: "脚本描述",
22
-
namespace: "脚本命名空间",
21
+
copyright: "脚本的版权信息",
22
+
license: "脚本的开源协议",
23
23
version: "脚本版本",
24
+
description: "脚本描述",
25
+
icon: "脚本图标",
26
+
iconURL: "脚本图标",
27
+
defaulticon: "脚本图标",
28
+
icon64: "64x64 大小的脚本图标",
29
+
icon64URL: "64x64 大小的脚本图标",
30
+
grant: "脚本特殊Api权限申请",
24
31
author: "脚本作者",
32
+
"run-at":
33
+
"脚本的运行时间<br>`document-start`:在前端匹配到网址后,以最快的速度注入脚本到页面中<br>`document-end`:DOM 加载完成后注入脚本,此时页面脚本和图像等资源可能仍在加载<br>`document-idle`:所有内容加载完成后注入脚本<br>`document-body`:脚本只会在页面中有 body 元素时才会注入",
0 commit comments