pake-cli 3.2.12 → 3.2.14
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/dist/cli.js
CHANGED
|
@@ -22,7 +22,7 @@ import sharp from 'sharp';
|
|
|
22
22
|
import * as psl from 'psl';
|
|
23
23
|
|
|
24
24
|
var name = "pake-cli";
|
|
25
|
-
var version = "3.2.
|
|
25
|
+
var version = "3.2.14";
|
|
26
26
|
var description = "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用。";
|
|
27
27
|
var engines = {
|
|
28
28
|
node: ">=16.0.0"
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"windows": [
|
|
3
3
|
{
|
|
4
|
-
"url": "https://
|
|
4
|
+
"url": "https://weekly.tw93.fun",
|
|
5
5
|
"url_type": "web",
|
|
6
|
-
"hide_title_bar":
|
|
6
|
+
"hide_title_bar": false,
|
|
7
7
|
"fullscreen": false,
|
|
8
8
|
"width": 1200,
|
|
9
|
-
"height":
|
|
9
|
+
"height": 780,
|
|
10
10
|
"resizable": true,
|
|
11
11
|
"always_on_top": false,
|
|
12
12
|
"dark_mode": false,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"productName": "
|
|
3
|
-
"identifier": "com.pake.
|
|
2
|
+
"productName": "TestWindowPosition",
|
|
3
|
+
"identifier": "com.pake.33f03a",
|
|
4
4
|
"version": "1.0.0",
|
|
5
5
|
"app": {
|
|
6
6
|
"withGlobalTauri": true
|
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
},
|
|
11
11
|
"bundle": {
|
|
12
12
|
"icon": [
|
|
13
|
-
"/private/var/folders/v3/4mpcxc0564j9qhpf8jpf6r_r0000gp/T/tmp-
|
|
13
|
+
"/private/var/folders/v3/4mpcxc0564j9qhpf8jpf6r_r0000gp/T/tmp-42188-mH4TwtV55OLm/converted-icons/testwindowposition.icns"
|
|
14
14
|
],
|
|
15
15
|
"active": true,
|
|
16
16
|
"macOS": {},
|
|
17
17
|
"targets": [
|
|
18
|
-
"
|
|
18
|
+
"dmg"
|
|
19
19
|
],
|
|
20
20
|
"resources": [
|
|
21
|
-
"icons/
|
|
21
|
+
"icons/testwindowposition.icns"
|
|
22
22
|
]
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"bundle": {
|
|
3
3
|
"icon": [
|
|
4
|
-
"/private/var/folders/v3/4mpcxc0564j9qhpf8jpf6r_r0000gp/T/tmp-
|
|
4
|
+
"/private/var/folders/v3/4mpcxc0564j9qhpf8jpf6r_r0000gp/T/tmp-42188-mH4TwtV55OLm/converted-icons/testwindowposition.icns"
|
|
5
5
|
],
|
|
6
6
|
"active": true,
|
|
7
7
|
"macOS": {},
|
|
8
8
|
"targets": [
|
|
9
|
-
"
|
|
9
|
+
"dmg"
|
|
10
10
|
],
|
|
11
11
|
"resources": [
|
|
12
|
-
"icons/
|
|
12
|
+
"icons/testwindowposition.icns"
|
|
13
13
|
]
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -292,6 +292,13 @@ window.addEventListener("DOMContentLoaded", (_event) => {
|
|
|
292
292
|
.header-overlay .header-logged-out {
|
|
293
293
|
margin-top: 15px;
|
|
294
294
|
}
|
|
295
|
+
|
|
296
|
+
.w-full #stage-slideover-sidebar {
|
|
297
|
+
padding-top: 16px;
|
|
298
|
+
}
|
|
299
|
+
.w-full #thread #page-header {
|
|
300
|
+
padding-top: 36px;
|
|
301
|
+
}
|
|
295
302
|
`;
|
|
296
303
|
const contentStyleElement = document.createElement("style");
|
|
297
304
|
contentStyleElement.innerHTML = contentCSS;
|
package/src-tauri/src/lib.rs
CHANGED
|
@@ -51,8 +51,14 @@ pub fn run_app() {
|
|
|
51
51
|
let window = set_window(app, &pake_config, &tauri_config);
|
|
52
52
|
set_system_tray(app.app_handle(), show_system_tray).unwrap();
|
|
53
53
|
set_global_shortcut(app.app_handle(), activation_shortcut).unwrap();
|
|
54
|
-
|
|
55
|
-
window
|
|
54
|
+
|
|
55
|
+
// Show window after state restoration to prevent position flashing
|
|
56
|
+
let window_clone = window.clone();
|
|
57
|
+
tauri::async_runtime::spawn(async move {
|
|
58
|
+
tokio::time::sleep(tokio::time::Duration::from_millis(50)).await;
|
|
59
|
+
window_clone.show().unwrap();
|
|
60
|
+
});
|
|
61
|
+
|
|
56
62
|
Ok(())
|
|
57
63
|
})
|
|
58
64
|
.on_window_event(move |_window, _event| {
|