pake-cli 3.2.0-beta1 → 3.2.0-beta15

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.
@@ -1826,6 +1826,12 @@
1826
1826
  "const": "core:window:allow-set-focus",
1827
1827
  "markdownDescription": "Enables the set_focus command without any pre-configured scope."
1828
1828
  },
1829
+ {
1830
+ "description": "Enables the set_focusable command without any pre-configured scope.",
1831
+ "type": "string",
1832
+ "const": "core:window:allow-set-focusable",
1833
+ "markdownDescription": "Enables the set_focusable command without any pre-configured scope."
1834
+ },
1829
1835
  {
1830
1836
  "description": "Enables the set_fullscreen command without any pre-configured scope.",
1831
1837
  "type": "string",
@@ -1898,6 +1904,12 @@
1898
1904
  "const": "core:window:allow-set-shadow",
1899
1905
  "markdownDescription": "Enables the set_shadow command without any pre-configured scope."
1900
1906
  },
1907
+ {
1908
+ "description": "Enables the set_simple_fullscreen command without any pre-configured scope.",
1909
+ "type": "string",
1910
+ "const": "core:window:allow-set-simple-fullscreen",
1911
+ "markdownDescription": "Enables the set_simple_fullscreen command without any pre-configured scope."
1912
+ },
1901
1913
  {
1902
1914
  "description": "Enables the set_size command without any pre-configured scope.",
1903
1915
  "type": "string",
@@ -2270,6 +2282,12 @@
2270
2282
  "const": "core:window:deny-set-focus",
2271
2283
  "markdownDescription": "Denies the set_focus command without any pre-configured scope."
2272
2284
  },
2285
+ {
2286
+ "description": "Denies the set_focusable command without any pre-configured scope.",
2287
+ "type": "string",
2288
+ "const": "core:window:deny-set-focusable",
2289
+ "markdownDescription": "Denies the set_focusable command without any pre-configured scope."
2290
+ },
2273
2291
  {
2274
2292
  "description": "Denies the set_fullscreen command without any pre-configured scope.",
2275
2293
  "type": "string",
@@ -2342,6 +2360,12 @@
2342
2360
  "const": "core:window:deny-set-shadow",
2343
2361
  "markdownDescription": "Denies the set_shadow command without any pre-configured scope."
2344
2362
  },
2363
+ {
2364
+ "description": "Denies the set_simple_fullscreen command without any pre-configured scope.",
2365
+ "type": "string",
2366
+ "const": "core:window:deny-set-simple-fullscreen",
2367
+ "markdownDescription": "Denies the set_simple_fullscreen command without any pre-configured scope."
2368
+ },
2345
2369
  {
2346
2370
  "description": "Denies the set_size command without any pre-configured scope.",
2347
2371
  "type": "string",
@@ -1826,6 +1826,12 @@
1826
1826
  "const": "core:window:allow-set-focus",
1827
1827
  "markdownDescription": "Enables the set_focus command without any pre-configured scope."
1828
1828
  },
1829
+ {
1830
+ "description": "Enables the set_focusable command without any pre-configured scope.",
1831
+ "type": "string",
1832
+ "const": "core:window:allow-set-focusable",
1833
+ "markdownDescription": "Enables the set_focusable command without any pre-configured scope."
1834
+ },
1829
1835
  {
1830
1836
  "description": "Enables the set_fullscreen command without any pre-configured scope.",
1831
1837
  "type": "string",
@@ -1898,6 +1904,12 @@
1898
1904
  "const": "core:window:allow-set-shadow",
1899
1905
  "markdownDescription": "Enables the set_shadow command without any pre-configured scope."
1900
1906
  },
1907
+ {
1908
+ "description": "Enables the set_simple_fullscreen command without any pre-configured scope.",
1909
+ "type": "string",
1910
+ "const": "core:window:allow-set-simple-fullscreen",
1911
+ "markdownDescription": "Enables the set_simple_fullscreen command without any pre-configured scope."
1912
+ },
1901
1913
  {
1902
1914
  "description": "Enables the set_size command without any pre-configured scope.",
1903
1915
  "type": "string",
@@ -2270,6 +2282,12 @@
2270
2282
  "const": "core:window:deny-set-focus",
2271
2283
  "markdownDescription": "Denies the set_focus command without any pre-configured scope."
2272
2284
  },
2285
+ {
2286
+ "description": "Denies the set_focusable command without any pre-configured scope.",
2287
+ "type": "string",
2288
+ "const": "core:window:deny-set-focusable",
2289
+ "markdownDescription": "Denies the set_focusable command without any pre-configured scope."
2290
+ },
2273
2291
  {
2274
2292
  "description": "Denies the set_fullscreen command without any pre-configured scope.",
2275
2293
  "type": "string",
@@ -2342,6 +2360,12 @@
2342
2360
  "const": "core:window:deny-set-shadow",
2343
2361
  "markdownDescription": "Denies the set_shadow command without any pre-configured scope."
2344
2362
  },
2363
+ {
2364
+ "description": "Denies the set_simple_fullscreen command without any pre-configured scope.",
2365
+ "type": "string",
2366
+ "const": "core:window:deny-set-simple-fullscreen",
2367
+ "markdownDescription": "Denies the set_simple_fullscreen command without any pre-configured scope."
2368
+ },
2345
2369
  {
2346
2370
  "description": "Denies the set_size command without any pre-configured scope.",
2347
2371
  "type": "string",
@@ -12,7 +12,8 @@
12
12
  "dark_mode": false,
13
13
  "activation_shortcut": "",
14
14
  "disabled_web_shortcuts": false,
15
- "hide_on_close": true
15
+ "hide_on_close": true,
16
+ "incognito": false
16
17
  }
17
18
  ],
18
19
  "user_agent": {
@@ -14,6 +14,8 @@ pub struct WindowConfig {
14
14
  pub disabled_web_shortcuts: bool,
15
15
  pub activation_shortcut: String,
16
16
  pub hide_on_close: bool,
17
+ pub incognito: bool,
18
+ pub title: Option<String>,
17
19
  }
18
20
 
19
21
  #[derive(Debug, Serialize, Deserialize)]
@@ -6,9 +6,6 @@ use tauri::{App, Config, Url, WebviewUrl, WebviewWindow, WebviewWindowBuilder};
6
6
  #[cfg(target_os = "macos")]
7
7
  use tauri::{Theme, TitleBarStyle};
8
8
 
9
- #[cfg(target_os = "windows")]
10
- use tauri::Theme;
11
-
12
9
  pub fn set_window(app: &mut App, config: &PakeConfig, tauri_config: &Config) -> WebviewWindow {
13
10
  let package_name = tauri_config.clone().product_name.unwrap();
14
11
  let _data_dir = get_data_dir(app.handle(), package_name);
@@ -31,8 +28,14 @@ pub fn set_window(app: &mut App, config: &PakeConfig, tauri_config: &Config) ->
31
28
  serde_json::to_string(&window_config).unwrap()
32
29
  );
33
30
 
31
+ let window_title = window_config
32
+ .title
33
+ .as_ref()
34
+ .map(|t| t.as_str())
35
+ .unwrap_or("");
36
+
34
37
  let mut window_builder = WebviewWindowBuilder::new(app, "pake", url)
35
- .title("")
38
+ .title(window_title)
36
39
  .visible(false)
37
40
  .user_agent(user_agent)
38
41
  .resizable(window_config.resizable)
@@ -40,6 +43,7 @@ pub fn set_window(app: &mut App, config: &PakeConfig, tauri_config: &Config) ->
40
43
  .inner_size(window_config.width, window_config.height)
41
44
  .always_on_top(window_config.always_on_top)
42
45
  .disable_drag_drop_handler()
46
+ .incognito(window_config.incognito)
43
47
  .initialization_script(&config_script)
44
48
  .initialization_script(include_str!("../inject/component.js"))
45
49
  .initialization_script(include_str!("../inject/event.js"))
@@ -74,7 +78,7 @@ pub fn set_window(app: &mut App, config: &PakeConfig, tauri_config: &Config) ->
74
78
  window_builder = window_builder
75
79
  .data_directory(_data_dir)
76
80
  .title(app.package_info().name.clone());
77
-
81
+
78
82
  // Set theme to None for automatic system theme detection on Windows
79
83
  // This allows the window to respond to system theme changes automatically
80
84
  window_builder = window_builder.theme(None);
@@ -85,8 +89,8 @@ pub fn set_window(app: &mut App, config: &PakeConfig, tauri_config: &Config) ->
85
89
  window_builder = window_builder
86
90
  .data_directory(_data_dir)
87
91
  .title(app.package_info().name.clone());
88
-
89
- // Set theme to None for automatic system theme detection on Linux
92
+
93
+ // Set theme to None for automatic system theme detection on Linux
90
94
  // This allows the window to respond to system theme changes automatically
91
95
  window_builder = window_builder.theme(None);
92
96
  }
@@ -1,7 +1,7 @@
1
1
  {
2
- "productName": "we-read",
2
+ "productName": "weekly",
3
3
  "bundle": {
4
- "icon": ["png/weekly.png"],
4
+ "icon": ["png/weekly_512.png"],
5
5
  "active": true,
6
6
  "linux": {
7
7
  "deb": {
package/cli.js DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- import './dist/cli.js';