pake-cli 1.0.0-beta.1 → 1.0.0
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.
- package/README.md +112 -95
- package/dist/cli.js +112 -90
- package/package.json +16 -5
- package/src-tauri/Cargo.lock +59 -188
- package/src-tauri/Cargo.toml +5 -4
- package/src-tauri/assets/main.wxs +310 -0
- package/src-tauri/icons/chatgpt.icns +0 -0
- package/src-tauri/icons/lizhi.icns +0 -0
- package/src-tauri/png/chatgpt_256.ico +0 -0
- package/src-tauri/png/chatgpt_32.ico +0 -0
- package/src-tauri/png/chatgpt_512.png +0 -0
- package/src-tauri/png/lizhi_256.ico +0 -0
- package/src-tauri/png/lizhi_32.ico +0 -0
- package/src-tauri/png/lizhi_512.png +0 -0
- package/src-tauri/src/main.rs +108 -136
- package/src-tauri/src/pake.js +19 -9
- package/src-tauri/tauri.conf.json +1 -1
- package/src-tauri/tauri.linux.conf.json +4 -2
- package/src-tauri/tauri.windows.conf.json +2 -1
- package/pake-default.icns +0 -0
- package/src-tauri/tauri.conf.json.bak +0 -30
package/src-tauri/src/pake.js
CHANGED
|
@@ -55,6 +55,18 @@ window.addEventListener("DOMContentLoaded", (_event) => {
|
|
|
55
55
|
padding-top: 20px;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
#__next .overflow-hidden .flex.flex-1.flex-col {
|
|
59
|
+
padding-left: 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
#__next .overflow-hidden>.hidden.bg-gray-900 {
|
|
63
|
+
display: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
#__next .overflow-hidden main .absolute .text-xs{
|
|
67
|
+
visibility: hidden;
|
|
68
|
+
}
|
|
69
|
+
|
|
58
70
|
.lark > .dashboard-sidebar, .lark > .dashboard-sidebar > .sidebar-user-info , .lark > .dashboard-sidebar .index-module_wrapper_F-Wbq{
|
|
59
71
|
padding-top:15px;
|
|
60
72
|
}
|
|
@@ -200,10 +212,8 @@ window.addEventListener("DOMContentLoaded", (_event) => {
|
|
|
200
212
|
left: 1px !important;
|
|
201
213
|
}
|
|
202
214
|
|
|
203
|
-
#react-root [data-testid="SideNav_NewTweet_Button"] {
|
|
204
|
-
|
|
205
|
-
right: 16px !important;
|
|
206
|
-
bottom: 24px !important;
|
|
215
|
+
#react-root [data-testid="SideNav_NewTweet_Button"], #react-root [aria-label="Twitter Blue"]{
|
|
216
|
+
display: none;
|
|
207
217
|
}
|
|
208
218
|
}
|
|
209
219
|
|
|
@@ -306,16 +316,16 @@ window.addEventListener("DOMContentLoaded", (_event) => {
|
|
|
306
316
|
document.addEventListener("click", (e) => {
|
|
307
317
|
const origin = e.target.closest("a");
|
|
308
318
|
if (origin && origin.href) {
|
|
319
|
+
const target = origin.target
|
|
309
320
|
origin.target = "_self";
|
|
321
|
+
const hrefUrl = new URL(origin.href)
|
|
310
322
|
|
|
311
|
-
//额外处理下 twitter 的外跳,对于其他需要外跳的可以改这里成对应域名
|
|
312
|
-
const href = origin.href;
|
|
313
323
|
if (
|
|
314
|
-
location.host
|
|
315
|
-
|
|
324
|
+
window.location.host !== hrefUrl.host && // 如果 a 标签内链接的域名和当前页面的域名不一致 且
|
|
325
|
+
target === '_blank' // a 标签内链接的 target 属性为 _blank 时
|
|
316
326
|
) {
|
|
317
327
|
e.preventDefault();
|
|
318
|
-
window.ipc.postMessage(`open_browser:${href}`);
|
|
328
|
+
window.ipc.postMessage(`open_browser:${origin.href}`);
|
|
319
329
|
}
|
|
320
330
|
}
|
|
321
331
|
});
|
|
@@ -18,7 +18,9 @@
|
|
|
18
18
|
"libssl-dev",
|
|
19
19
|
"libgtk-3-dev",
|
|
20
20
|
"libayatana-appindicator3-dev",
|
|
21
|
-
"librsvg2-dev"
|
|
21
|
+
"librsvg2-dev",
|
|
22
|
+
"gnome-video-effects",
|
|
23
|
+
"gnome-video-effects-extra"
|
|
22
24
|
],
|
|
23
25
|
"files": {
|
|
24
26
|
"/usr/share/applications/com-tw93-weread.desktop": "assets/com-tw93-weread.desktop"
|
|
@@ -28,7 +30,7 @@
|
|
|
28
30
|
"longDescription": "",
|
|
29
31
|
"resources": [],
|
|
30
32
|
"shortDescription": "",
|
|
31
|
-
"targets": ["deb"]
|
|
33
|
+
"targets": ["deb", "appimage"]
|
|
32
34
|
}
|
|
33
35
|
}
|
|
34
36
|
}
|
package/pake-default.icns
DELETED
|
Binary file
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"package": {
|
|
3
|
-
"productName": "WeRead",
|
|
4
|
-
"version": "1.0.0"
|
|
5
|
-
},
|
|
6
|
-
"tauri": {
|
|
7
|
-
"windows": [
|
|
8
|
-
{
|
|
9
|
-
"url": "https://weread.qq.com/",
|
|
10
|
-
"transparent": true,
|
|
11
|
-
"fullscreen": false,
|
|
12
|
-
"width": 1200,
|
|
13
|
-
"height": 728,
|
|
14
|
-
"resizable": true
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"security": {
|
|
18
|
-
"csp": null
|
|
19
|
-
},
|
|
20
|
-
"updater": {
|
|
21
|
-
"active": false
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"build": {
|
|
25
|
-
"devPath": "../dist",
|
|
26
|
-
"distDir": "../dist",
|
|
27
|
-
"beforeBuildCommand": "",
|
|
28
|
-
"beforeDevCommand": ""
|
|
29
|
-
}
|
|
30
|
-
}
|