pake-cli 2.3.1 → 2.3.3
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 +25 -9
- package/dist/LICENSE +21 -0
- package/dist/cli.js +5 -4
- package/dist/css/aria-ng-4a38f3a4ab.min.css +4 -0
- package/dist/css/bootstrap-3.4.1.min.css +5 -0
- package/dist/css/plugins-ccac6fc3fc.min.css +19 -0
- package/dist/favicon.ico +0 -0
- package/dist/favicon.png +0 -0
- package/dist/fonts/fontawesome-webfont.eot +0 -0
- package/dist/fonts/fontawesome-webfont.svg +2671 -0
- package/dist/fonts/fontawesome-webfont.ttf +0 -0
- package/dist/fonts/fontawesome-webfont.woff +0 -0
- package/dist/fonts/fontawesome-webfont.woff2 +0 -0
- package/dist/index.html +1 -0
- package/dist/js/angular-packages-1.6.10.min.js +472 -0
- package/dist/js/aria-ng-a0b72e89e6.min.js +5 -0
- package/dist/js/bootstrap-3.4.1.min.js +6 -0
- package/dist/js/echarts-common-3.8.5.min.js +1 -0
- package/dist/js/jquery-3.3.1.min.js +2 -0
- package/dist/js/moment-with-locales-2.29.4.min.js +1 -0
- package/dist/js/plugins-b3cb190423.min.js +49 -0
- package/dist/langs/zh_Hans.txt +714 -0
- package/dist/langs/zh_Hant.txt +714 -0
- package/dist/robots.txt +4 -0
- package/dist/tileicon.png +0 -0
- package/dist/touchicon.png +0 -0
- package/package.json +2 -3
- package/src-tauri/Cargo.lock +4 -4
- package/src-tauri/src/app/menu.rs +13 -12
- package/src-tauri/src/inject/event.js +2 -2
- package/dist/dev.js +0 -873
- package/dist/dev.js.map +0 -1
- package/src-tauri/.pake/pake.json +0 -29
- package/src-tauri/.pake/tauri.conf.json +0 -75
- package/src-tauri/.pake/tauri.macos.conf.json +0 -29
package/dist/robots.txt
ADDED
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pake-cli",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.3",
|
|
4
4
|
"description": "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用。",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=16.0.0"
|
|
@@ -35,8 +35,7 @@
|
|
|
35
35
|
"build": "npm run tauri build --release",
|
|
36
36
|
"build:debug": "npm run tauri build -- --debug",
|
|
37
37
|
"build:mac": "npm run tauri build -- --target universal-apple-darwin",
|
|
38
|
-
"build:
|
|
39
|
-
"build:all-windows": "pwsh ./script/build.ps1",
|
|
38
|
+
"build:config": "chmod +x script/app_config.mjs && node script/app_config.mjs",
|
|
40
39
|
"analyze": "cd src-tauri && cargo bloat --release --crates",
|
|
41
40
|
"tauri": "tauri",
|
|
42
41
|
"cli": "rollup -c rollup.config.js --watch",
|
package/src-tauri/Cargo.lock
CHANGED
|
@@ -282,9 +282,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
|
|
282
282
|
|
|
283
283
|
[[package]]
|
|
284
284
|
name = "bitflags"
|
|
285
|
-
version = "2.
|
|
285
|
+
version = "2.4.0"
|
|
286
286
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
287
|
-
checksum = "
|
|
287
|
+
checksum = "b4682ae6287fcf752ecaabbfcc7b6f9b72aa33933dc23a554d853aea8eea8635"
|
|
288
288
|
|
|
289
289
|
[[package]]
|
|
290
290
|
name = "block"
|
|
@@ -3494,10 +3494,10 @@ dependencies = [
|
|
|
3494
3494
|
[[package]]
|
|
3495
3495
|
name = "tauri-plugin-window-state"
|
|
3496
3496
|
version = "0.1.0"
|
|
3497
|
-
source = "git+https://github.com/tauri-apps/plugins-workspace?branch=v1#
|
|
3497
|
+
source = "git+https://github.com/tauri-apps/plugins-workspace?branch=v1#5b814f56e6368fdec46c4ddb04a07e0923ff995a"
|
|
3498
3498
|
dependencies = [
|
|
3499
3499
|
"bincode",
|
|
3500
|
-
"bitflags 2.
|
|
3500
|
+
"bitflags 2.4.0",
|
|
3501
3501
|
"log",
|
|
3502
3502
|
"serde",
|
|
3503
3503
|
"serde_json",
|
|
@@ -96,18 +96,19 @@ pub fn system_tray_handle(app: &tauri::AppHandle, event: SystemTrayEvent) {
|
|
|
96
96
|
let _res = app.save_window_state(StateFlags::all());
|
|
97
97
|
std::process::exit(0);
|
|
98
98
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
99
|
+
// ignore about for now, because about_pake.html have be erased.
|
|
100
|
+
// "about" => {
|
|
101
|
+
// let _about_window = WindowBuilder::new(
|
|
102
|
+
// app,
|
|
103
|
+
// "about",
|
|
104
|
+
// WindowUrl::App(std::path::PathBuf::from("about_pake.html")),
|
|
105
|
+
// )
|
|
106
|
+
// .resizable(true)
|
|
107
|
+
// .title("About")
|
|
108
|
+
// .inner_size(600.0, 400.0)
|
|
109
|
+
// .build()
|
|
110
|
+
// .expect("can't open about!");
|
|
111
|
+
// }
|
|
111
112
|
_ => {}
|
|
112
113
|
}
|
|
113
114
|
};
|
|
@@ -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);
|