pake-cli 1.3.0 โ 1.3.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/README.md +6 -6
- package/dist/cli.js +2 -2
- package/dist/index.html +22 -0
- package/dist/script.js +7 -0
- package/package.json +1 -1
- package/src-tauri/icons/loop.icns +0 -0
- package/src-tauri/png/loop_256.ico +0 -0
- package/src-tauri/png/loop_32.ico +0 -0
- package/src-tauri/png/loop_512.png +0 -0
- package/src-tauri/src/main.rs +6 -5
- package/src-tauri/src/pake.js +4 -0
package/README.md
CHANGED
|
@@ -99,20 +99,20 @@
|
|
|
99
99
|
<a href="https://github.com/tw93/Pake/releases/latest/download/Flomo_x64.msi">Windows</a>
|
|
100
100
|
<a href="https://github.com/tw93/Pake/releases/latest/download/Flomo_x86_64.deb">Linux</a>
|
|
101
101
|
</td>
|
|
102
|
-
<td>
|
|
103
|
-
<a href="https://github.com/tw93/Pake/releases/latest/download/
|
|
104
|
-
<a href="https://github.com/tw93/Pake/releases/latest/download/
|
|
105
|
-
<a href="https://github.com/tw93/Pake/releases/latest/download/
|
|
102
|
+
<td>Loop
|
|
103
|
+
<a href="https://github.com/tw93/Pake/releases/latest/download/Loop.dmg">Mac</a>
|
|
104
|
+
<a href="https://github.com/tw93/Pake/releases/latest/download/Loop_x64.msi">Windows</a>
|
|
105
|
+
<a href="https://github.com/tw93/Pake/releases/latest/download/Loop_x86_64.deb">Linux</a>
|
|
106
106
|
</td>
|
|
107
107
|
</tr>
|
|
108
108
|
<tr>
|
|
109
109
|
<td><img src=https://gw.alipayobjects.com/zos/k/30/RoUSUf.png width=600/></td>
|
|
110
|
-
<td><img src=https://cdn.fliggy.com/upic/
|
|
110
|
+
<td><img src=https://cdn.fliggy.com/upic/ajRw5F.png width=600/></td>
|
|
111
111
|
</tr>
|
|
112
112
|
</table>
|
|
113
113
|
|
|
114
114
|
<details>
|
|
115
|
-
<summary>๐ You can download more applications (such as YuQue / Reference) from <a href="https://github.com/tw93/Pake/releases">Releases</a>. <b>Click here to expand the shortcuts reference!</b></summary>
|
|
115
|
+
<summary>๐ You can download more applications (such as YuQue / Reference / Qwerty) from <a href="https://github.com/tw93/Pake/releases">Releases</a>. <b>Click here to expand the shortcuts reference!</b></summary>
|
|
116
116
|
|
|
117
117
|
<br/>
|
|
118
118
|
|
package/dist/cli.js
CHANGED
|
@@ -2198,7 +2198,7 @@ class BuilderFactory {
|
|
|
2198
2198
|
}
|
|
2199
2199
|
|
|
2200
2200
|
var name = "pake-cli";
|
|
2201
|
-
var version = "1.3.
|
|
2201
|
+
var version = "1.3.1";
|
|
2202
2202
|
var description = "๐คฑ๐ป Turn any webpage into a desktop app with Rust. ๐คฑ๐ป ๅพ็ฎๅ็็จ Rust ๆๅ
็ฝ้กต็ๆๅพๅฐ็ๆก้ข Appใ";
|
|
2203
2203
|
var engines = {
|
|
2204
2204
|
node: ">=16.0.0"
|
|
@@ -2297,7 +2297,7 @@ var packageJson = {
|
|
|
2297
2297
|
|
|
2298
2298
|
function checkUpdateTips() {
|
|
2299
2299
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2300
|
-
updateNotifier({ pkg: packageJson }).notify();
|
|
2300
|
+
updateNotifier({ pkg: packageJson }).notify({ isGlobal: true });
|
|
2301
2301
|
});
|
|
2302
2302
|
}
|
|
2303
2303
|
|
package/dist/index.html
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<style>
|
|
4
|
+
html,
|
|
5
|
+
body {
|
|
6
|
+
margin: 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: 100%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
body {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
}
|
|
17
|
+
</style>
|
|
18
|
+
<body>
|
|
19
|
+
<h1>Loading...</h1>
|
|
20
|
+
<script type="text/javascript" src="script.js"></script>
|
|
21
|
+
</body>
|
|
22
|
+
</html>
|
package/dist/script.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Copyright (c) 2022 Eray Erdin
|
|
2
|
+
//
|
|
3
|
+
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
+
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
+
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
+
|
|
7
|
+
location.replace('https://web.whatsapp.com');
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src-tauri/src/main.rs
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// at the top of main.rs - that will prevent the console from showing
|
|
2
2
|
#![windows_subsystem = "windows"]
|
|
3
3
|
extern crate image;
|
|
4
|
+
|
|
5
|
+
use dirs::download_dir;
|
|
6
|
+
use std::path::PathBuf;
|
|
4
7
|
use tauri_utils::config::{Config, WindowConfig};
|
|
5
8
|
use wry::{
|
|
6
9
|
application::{
|
|
@@ -26,9 +29,6 @@ use wry::application::window::Icon;
|
|
|
26
29
|
#[cfg(any(target_os = "linux", target_os = "windows"))]
|
|
27
30
|
use wry::webview::WebContext;
|
|
28
31
|
|
|
29
|
-
use dirs::desktop_dir;
|
|
30
|
-
use std::path::PathBuf;
|
|
31
|
-
|
|
32
32
|
enum UserEvent {
|
|
33
33
|
DownloadStarted(String, String),
|
|
34
34
|
DownloadComplete(Option<PathBuf>, bool),
|
|
@@ -147,7 +147,7 @@ fn main() -> wry::Result<()> {
|
|
|
147
147
|
let download_started = {
|
|
148
148
|
let proxy = proxy.clone();
|
|
149
149
|
move |uri: String, default_path: &mut PathBuf| {
|
|
150
|
-
let path =
|
|
150
|
+
let path = download_dir()
|
|
151
151
|
.unwrap()
|
|
152
152
|
.join(default_path.display().to_string())
|
|
153
153
|
.as_path()
|
|
@@ -243,7 +243,8 @@ fn main() -> wry::Result<()> {
|
|
|
243
243
|
Event::UserEvent(UserEvent::DownloadComplete(_, success)) => {
|
|
244
244
|
println!("Succeeded: {success}");
|
|
245
245
|
if success {
|
|
246
|
-
let _ = webview
|
|
246
|
+
let _ = webview
|
|
247
|
+
.evaluate_script("window.pakeToast('Downloaded to download folder~')");
|
|
247
248
|
} else {
|
|
248
249
|
println!("No output path")
|
|
249
250
|
}
|
package/src-tauri/src/pake.js
CHANGED
|
@@ -67,6 +67,10 @@ window.addEventListener("DOMContentLoaded", (_event) => {
|
|
|
67
67
|
padding-top: 20px;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
+
.fui-FluentProvider .fui-Button[data-testid="HomeButton"]{
|
|
71
|
+
padding-top: 20px;
|
|
72
|
+
}
|
|
73
|
+
|
|
70
74
|
.chakra-ui-light #app .chakra-heading,
|
|
71
75
|
.chakra-ui-dark #app .chakra-heading,
|
|
72
76
|
.chakra-ui-light #app .chakra-stack,
|