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.
@@ -0,0 +1,4 @@
1
+ # AriaNg
2
+
3
+ User-agent: *
4
+ Disallow: /
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pake-cli",
3
- "version": "2.3.1",
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:all-unix": "chmod +x ./script/build.sh && ./script/build.sh",
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",
@@ -282,9 +282,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
282
282
 
283
283
  [[package]]
284
284
  name = "bitflags"
285
- version = "2.3.3"
285
+ version = "2.4.0"
286
286
  source = "registry+https://github.com/rust-lang/crates.io-index"
287
- checksum = "630be753d4e58660abd17930c71b647fe46c27ea6b63cc59e1e3851406972e42"
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#0863f800b81925884a6a37c042f3d92d433d4a37"
3497
+ source = "git+https://github.com/tauri-apps/plugins-workspace?branch=v1#5b814f56e6368fdec46c4ddb04a07e0923ff995a"
3498
3498
  dependencies = [
3499
3499
  "bincode",
3500
- "bitflags 2.3.3",
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
- "about" => {
100
- let _about_window = WindowBuilder::new(
101
- app,
102
- "about",
103
- WindowUrl::App(std::path::PathBuf::from("about_pake.html")),
104
- )
105
- .resizable(true)
106
- .title("About")
107
- .inner_size(600.0, 400.0)
108
- .build()
109
- .expect("can't open about!");
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 ['twitter.com', 'www.zhihu.com'].indexOf(location.hostname) > -1;
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 (!externalSelfLink()) {
173
+ } else if (isDownloadLink(url) || externalSelfLink()) {
174
174
  handleExternalLink(e, url);
175
175
  }
176
176
  }, true);