pake-cli 0.0.1-beta.9 → 0.0.1
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/.ecrc.json +3 -0
- package/.editorconfig +24 -0
- package/.github/FUNDING.yml +2 -2
- package/.github/ISSUE_TEMPLATE/bug.md +13 -0
- package/.github/workflows/editorconfig-check.yml +23 -0
- package/.github/workflows/main.yml +17 -0
- package/.github/workflows/rust-code-quality-check.yml +89 -0
- package/.prettierignore +4 -0
- package/.vscode/settings.json +1 -0
- package/CODE_OF_CONDUCT.md +128 -0
- package/CONTRIBUTING.md +26 -0
- package/LICENSE +21 -0
- package/README.md +175 -54
- package/README_EN.md +91 -53
- package/app.csv +9 -0
- package/bin/README.md +72 -0
- package/bin/builders/MacBuilder.ts +13 -14
- package/bin/builders/base.ts +10 -1
- package/bin/builders/common.ts +9 -4
- package/bin/cli.ts +12 -5
- package/bin/defaults.ts +1 -0
- package/bin/options/icon.ts +51 -53
- package/bin/options/index.ts +3 -5
- package/bin/types.ts +3 -3
- package/bin/utils/shell.ts +1 -0
- package/bin/utils/tlds.ts +1489 -0
- package/bin/utils/url.ts +26 -0
- package/dist/cli.js +1620 -101
- package/dist/twitter.css +176 -0
- package/icns2png.py +38 -0
- package/package.json +8 -7
- package/pake-default.icns +0 -0
- package/rollup.config.js +1 -1
- package/script/build.bat +80 -0
- package/script/build.sh +122 -0
- package/script/sd-apple-x64 +0 -0
- package/script/sd-linux-x64 +0 -0
- package/script/sd.exe +0 -0
- package/src-tauri/Cargo.lock +344 -65
- package/src-tauri/Cargo.toml +14 -6
- package/src-tauri/assets/com-tw93-weread.desktop +10 -0
- package/src-tauri/build.rs +1 -1
- package/src-tauri/icons/icon.icns +0 -0
- package/src-tauri/icons/reference.icns +0 -0
- package/src-tauri/icons/translate.icns +0 -0
- package/src-tauri/icons/twitter.icns +0 -0
- package/src-tauri/icons/{weRead.icns → weread.icns} +0 -0
- package/src-tauri/icons/youtube.icns +0 -0
- package/src-tauri/png/code_256.ico +0 -0
- package/src-tauri/png/code_32.ico +0 -0
- package/src-tauri/png/code_512.png +0 -0
- package/src-tauri/png/flomo_256.ico +0 -0
- package/src-tauri/png/flomo_32.ico +0 -0
- package/src-tauri/png/flomo_512.png +0 -0
- package/src-tauri/png/reference_256.ico +0 -0
- package/src-tauri/png/reference_32.ico +0 -0
- package/src-tauri/png/reference_512.png +0 -0
- package/src-tauri/png/tool_256.ico +0 -0
- package/src-tauri/png/tool_32.ico +0 -0
- package/src-tauri/png/tool_512.png +0 -0
- package/src-tauri/png/translate_256.ico +0 -0
- package/src-tauri/png/translate_32.ico +0 -0
- package/src-tauri/png/translate_512.png +0 -0
- package/src-tauri/png/twitter_256.ico +0 -0
- package/src-tauri/png/twitter_32.ico +0 -0
- package/src-tauri/png/twitter_512.png +0 -0
- package/src-tauri/png/weread_256.ico +0 -0
- package/src-tauri/png/weread_32.ico +0 -0
- package/src-tauri/png/weread_512.png +0 -0
- package/src-tauri/png/witeboard_256.ico +0 -0
- package/src-tauri/png/witeboard_32.ico +0 -0
- package/src-tauri/png/witeboard_512.png +0 -0
- package/src-tauri/png/youtube_256.ico +0 -0
- package/src-tauri/png/youtube_32.ico +0 -0
- package/src-tauri/png/youtube_512.png +0 -0
- package/src-tauri/png/yuque_256.ico +0 -0
- package/src-tauri/png/yuque_32.ico +0 -0
- package/src-tauri/png/yuque_512.png +0 -0
- package/src-tauri/src/main.rs +130 -25
- package/src-tauri/src/pake.js +140 -77
- package/src-tauri/tauri.conf.json +30 -13
- package/bin/options/title.ts +0 -14
- package/src-tauri/icons/anymind.icns +0 -0
- package/src-tauri/icons/fanfou.icns +0 -0
- package/src-tauri/icons/fone.icns +0 -0
- package/src-tauri/icons/jdread.icns +0 -0
- package/src-tauri/icons/jike.icns +0 -0
- package/src-tauri/icons/roam.icns +0 -0
- package/src-tauri/icons/vercel.icns +0 -0
- package/src-tauri/icons/whatsapp.icns +0 -0
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": {
|
|
3
|
-
"productName": "
|
|
3
|
+
"productName": "weread",
|
|
4
4
|
"version": "0.2.0"
|
|
5
5
|
},
|
|
6
6
|
"tauri": {
|
|
7
7
|
"windows": [
|
|
8
8
|
{
|
|
9
|
-
"url": "https://
|
|
10
|
-
"transparent":
|
|
9
|
+
"url": "https://weread.qq.com/",
|
|
10
|
+
"transparent": true,
|
|
11
11
|
"fullscreen": false,
|
|
12
|
-
"width":
|
|
13
|
-
"height":
|
|
14
|
-
"resizable": true
|
|
15
|
-
"title": "百度一下,你就知道"
|
|
12
|
+
"width": 1200,
|
|
13
|
+
"height": 728,
|
|
14
|
+
"resizable": true
|
|
16
15
|
}
|
|
17
16
|
],
|
|
18
17
|
"allowlist": {
|
|
@@ -20,16 +19,31 @@
|
|
|
20
19
|
},
|
|
21
20
|
"bundle": {
|
|
22
21
|
"icon": [
|
|
23
|
-
"/
|
|
22
|
+
"icons/weread.icns",
|
|
23
|
+
"png/weread_256.ico",
|
|
24
|
+
"png/weread_32.ico",
|
|
25
|
+
"png/weread_512.png"
|
|
24
26
|
],
|
|
27
|
+
"identifier": "com.tw93.weread",
|
|
25
28
|
"active": true,
|
|
26
29
|
"category": "DeveloperTool",
|
|
27
30
|
"copyright": "",
|
|
28
31
|
"deb": {
|
|
29
|
-
"depends": [
|
|
32
|
+
"depends": [
|
|
33
|
+
"libwebkit2gtk-4.0-dev",
|
|
34
|
+
"build-essential",
|
|
35
|
+
"curl",
|
|
36
|
+
"wget",
|
|
37
|
+
"libssl-dev",
|
|
38
|
+
"libgtk-3-dev",
|
|
39
|
+
"libayatana-appindicator3-dev",
|
|
40
|
+
"librsvg2-dev"
|
|
41
|
+
],
|
|
42
|
+
"files": {
|
|
43
|
+
"/usr/share/applications/com-tw93-weread.desktop": "assets/com-tw93-weread.desktop"
|
|
44
|
+
}
|
|
30
45
|
},
|
|
31
46
|
"externalBin": [],
|
|
32
|
-
"identifier": "pake-bb6e08",
|
|
33
47
|
"longDescription": "",
|
|
34
48
|
"macOS": {
|
|
35
49
|
"entitlements": null,
|
|
@@ -40,11 +54,14 @@
|
|
|
40
54
|
},
|
|
41
55
|
"resources": [],
|
|
42
56
|
"shortDescription": "",
|
|
43
|
-
"targets": "
|
|
57
|
+
"targets": ["deb", "msi", "dmg"],
|
|
44
58
|
"windows": {
|
|
45
59
|
"certificateThumbprint": null,
|
|
46
60
|
"digestAlgorithm": "sha256",
|
|
47
|
-
"timestampUrl": ""
|
|
61
|
+
"timestampUrl": "",
|
|
62
|
+
"wix": {
|
|
63
|
+
"language": ["en-US", "zh-CN"]
|
|
64
|
+
}
|
|
48
65
|
}
|
|
49
66
|
},
|
|
50
67
|
"security": {
|
|
@@ -60,4 +77,4 @@
|
|
|
60
77
|
"beforeBuildCommand": "",
|
|
61
78
|
"beforeDevCommand": ""
|
|
62
79
|
}
|
|
63
|
-
}
|
|
80
|
+
}
|
package/bin/options/title.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import axios from 'axios';
|
|
2
|
-
|
|
3
|
-
const USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36';
|
|
4
|
-
|
|
5
|
-
export async function getTitleByURL(url: string): Promise<string> {
|
|
6
|
-
const { data } = await axios.get<string>(url, {
|
|
7
|
-
headers: {
|
|
8
|
-
// Fake user agent for pages like http://messenger.com
|
|
9
|
-
'User-Agent': USER_AGENT,
|
|
10
|
-
},
|
|
11
|
-
});
|
|
12
|
-
const title = /<\s*title.*?>(?<title>.+?)<\s*\/title\s*?>/i.exec(data)?.groups?.title ?? 'Webapp';
|
|
13
|
-
return title;
|
|
14
|
-
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|