pake-cli 2.3.1 → 2.3.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.
- package/README.md +18 -9
- package/dist/cli.js +1 -1
- package/package.json +1 -1
- package/src-tauri/src/inject/event.js +2 -2
package/README.md
CHANGED
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
<img alt="GitHub commit" src="https://img.shields.io/github/commit-activity/m/tw93/Pake?style=flat-square"></a>
|
|
16
16
|
<a href="https://github.com/tw93/Pake/issues?q=is%3Aissue+is%3Aclosed" target="_blank">
|
|
17
17
|
<img alt="GitHub closed issues" src="https://img.shields.io/github/issues-closed/tw93/Pake.svg?style=flat-square"></a>
|
|
18
|
+
<a href="https://colab.research.google.com/drive/1bX345znvDZ30848xjRtpgtU8eypWwXrp?usp=sharing" target="_blank">
|
|
19
|
+
<img alt="Open in Colab" src="https://colab.research.google.com/assets/colab-badge.svg"></a>
|
|
18
20
|
</div>
|
|
19
21
|
|
|
20
22
|
<div align="left">Pake supports Mac, Windows, and Linux. Check out README for <a href="#popular-packages">Popular Packages</a>, <a href="#command-line-packaging">Command-Line Packaging</a>, and <a href="#development">Customized Development</a> information. Feel free to share your suggestions in <a href=https://github.com/tw93/Pake/discussions>Discussions</a>.</div>
|
|
@@ -220,17 +222,17 @@ Pake's development can not be without these Hackers. They contributed a lot of c
|
|
|
220
222
|
</a>
|
|
221
223
|
</td>
|
|
222
224
|
<td align="center">
|
|
223
|
-
<a href="https://github.com/
|
|
224
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
225
|
+
<a href="https://github.com/jeasonnow">
|
|
226
|
+
<img src="https://avatars.githubusercontent.com/u/16950207?v=4" width="90;" alt="jeasonnow"/>
|
|
225
227
|
<br />
|
|
226
|
-
<sub><b>
|
|
228
|
+
<sub><b>Santree</b></sub>
|
|
227
229
|
</a>
|
|
228
230
|
</td>
|
|
229
231
|
<td align="center">
|
|
230
|
-
<a href="https://github.com/
|
|
231
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
232
|
+
<a href="https://github.com/pan93412">
|
|
233
|
+
<img src="https://avatars.githubusercontent.com/u/28441561?v=4" width="90;" alt="pan93412"/>
|
|
232
234
|
<br />
|
|
233
|
-
<sub><b>
|
|
235
|
+
<sub><b>Pan93412</b></sub>
|
|
234
236
|
</a>
|
|
235
237
|
</td>
|
|
236
238
|
<td align="center">
|
|
@@ -305,6 +307,13 @@ Pake's development can not be without these Hackers. They contributed a lot of c
|
|
|
305
307
|
</a>
|
|
306
308
|
</td></tr>
|
|
307
309
|
<tr>
|
|
310
|
+
<td align="center">
|
|
311
|
+
<a href="https://github.com/imabutahersiddik">
|
|
312
|
+
<img src="https://avatars.githubusercontent.com/u/138387257?v=4" width="90;" alt="imabutahersiddik"/>
|
|
313
|
+
<br />
|
|
314
|
+
<sub><b>Abu Taher Siddik</b></sub>
|
|
315
|
+
</a>
|
|
316
|
+
</td>
|
|
308
317
|
<td align="center">
|
|
309
318
|
<a href="https://github.com/nekomeowww">
|
|
310
319
|
<img src="https://avatars.githubusercontent.com/u/11081491?v=4" width="90;" alt="nekomeowww"/>
|
|
@@ -346,15 +355,15 @@ Pake's development can not be without these Hackers. They contributed a lot of c
|
|
|
346
355
|
<br />
|
|
347
356
|
<sub><b>Hyzhao</b></sub>
|
|
348
357
|
</a>
|
|
349
|
-
</td>
|
|
358
|
+
</td></tr>
|
|
359
|
+
<tr>
|
|
350
360
|
<td align="center">
|
|
351
361
|
<a href="https://github.com/lakca">
|
|
352
362
|
<img src="https://avatars.githubusercontent.com/u/16255922?v=4" width="90;" alt="lakca"/>
|
|
353
363
|
<br />
|
|
354
364
|
<sub><b>Null</b></sub>
|
|
355
365
|
</a>
|
|
356
|
-
</td
|
|
357
|
-
<tr>
|
|
366
|
+
</td>
|
|
358
367
|
<td align="center">
|
|
359
368
|
<a href="https://github.com/liusishan">
|
|
360
369
|
<img src="https://avatars.githubusercontent.com/u/33129823?v=4" width="90;" alt="liusishan"/>
|
package/dist/cli.js
CHANGED
|
@@ -20,7 +20,7 @@ import psl from 'psl';
|
|
|
20
20
|
import isUrl from 'is-url';
|
|
21
21
|
|
|
22
22
|
var name = "pake-cli";
|
|
23
|
-
var version = "2.3.
|
|
23
|
+
var version = "2.3.2";
|
|
24
24
|
var description = "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用。";
|
|
25
25
|
var engines = {
|
|
26
26
|
node: ">=16.0.0"
|
package/package.json
CHANGED
|
@@ -59,7 +59,7 @@ function externalTargetLink() {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
function externalSelfLink() {
|
|
62
|
-
return ['
|
|
62
|
+
return ['chat.openai.com'].indexOf(location.hostname) > -1;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
document.addEventListener('DOMContentLoaded', () => {
|
|
@@ -170,7 +170,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
|
170
170
|
// case: download from dataURL -> convert dataURL ->
|
|
171
171
|
} else if (url.startsWith('data:')) {
|
|
172
172
|
downloadFromDataUri(url, filename);
|
|
173
|
-
} else if (
|
|
173
|
+
} else if (isDownloadLink(url) || externalSelfLink()) {
|
|
174
174
|
handleExternalLink(e, url);
|
|
175
175
|
}
|
|
176
176
|
}, true);
|