send-to-pi 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -36,22 +36,24 @@ async function getBridgeUrl() {
|
|
|
36
36
|
|
|
37
37
|
// 注册右键菜单
|
|
38
38
|
chrome.runtime.onInstalled.addListener(() => {
|
|
39
|
-
chrome.contextMenus.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
chrome.contextMenus.removeAll(() => {
|
|
40
|
+
chrome.contextMenus.create({
|
|
41
|
+
id: "send_selection",
|
|
42
|
+
title: i18n.menuSelection,
|
|
43
|
+
contexts: ["selection"],
|
|
44
|
+
});
|
|
44
45
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
chrome.contextMenus.create({
|
|
47
|
+
id: "send_page",
|
|
48
|
+
title: i18n.menuPage,
|
|
49
|
+
contexts: ["page"],
|
|
50
|
+
});
|
|
50
51
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
chrome.contextMenus.create({
|
|
53
|
+
id: "send_link",
|
|
54
|
+
title: i18n.menuLink,
|
|
55
|
+
contexts: ["link"],
|
|
56
|
+
});
|
|
55
57
|
});
|
|
56
58
|
});
|
|
57
59
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest_version": 3,
|
|
3
|
-
"name": "Send to Pi",
|
|
4
|
-
"version": "1.0.
|
|
3
|
+
"name": "Send to Pi (发送给 Pi)",
|
|
4
|
+
"version": "1.0.2",
|
|
5
5
|
"description": "Send webpage snippets, URLs, or articles directly to your local Pi coding agent terminal.",
|
|
6
6
|
"permissions": [
|
|
7
7
|
"contextMenus",
|
package/package.json
CHANGED
package/scripts/start-win.vbs
CHANGED
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
Set WshShell = CreateObject("WScript.Shell")
|
|
3
3
|
Set fso = CreateObject("Scripting.FileSystemObject")
|
|
4
4
|
|
|
5
|
-
' 获取项目根目录
|
|
6
5
|
scriptDir = fso.GetParentFolderName(WScript.ScriptFullName)
|
|
7
6
|
rootDir = fso.GetParentFolderName(scriptDir)
|
|
8
7
|
targetScript = rootDir & "\server\src\index.js"
|
|
9
8
|
|
|
10
9
|
' 0 = 隐藏黑框静默运行
|
|
11
|
-
WshShell.Run "node """ & targetScript & """", 0, False
|
|
10
|
+
WshShell.Run "cmd.exe /c node """ & targetScript & """", 0, False
|