Skip to content
This repository was archived by the owner on Nov 19, 2023. It is now read-only.

Commit 9e8b16c

Browse files
authored
dev #168
2 parents 3392c2b + e36b48a commit 9e8b16c

File tree

86 files changed

+1434
-1147
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+1434
-1147
lines changed

package.json

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "nodium-launcher",
33
"private": true,
4-
"version": "0.0.1",
4+
"version": "0.1.0",
55
"moduleDirectories": [
66
"node_modules",
77
"src"
@@ -25,21 +25,19 @@
2525
"@tauri-apps/api": "1.2.0",
2626
"@types/stack-trace": "0.0.30",
2727
"@types/styled-components": "5.1.26",
28-
"ansi-to-html": "0.7.2",
2928
"axios": "^1.1.2",
3029
"class-transformer": "0.5.1",
3130
"country-flag-icons": "1.5.5",
3231
"dotenv-cli": "6.0.0",
3332
"eventemitter3": "4.0.7",
3433
"flinject": "1.2.0",
35-
"html-react-parser": "3.0.4",
36-
"json5": "2.2.1",
34+
"framer-motion": "^7.6.12",
35+
"localforage": "^1.10.0",
3736
"lodash": "4.17.21",
3837
"mobmarch": "^1.0.4",
3938
"mobx": "6.7.0",
4039
"mobx-react": "7.6.0",
4140
"nanoid": "4.0.0",
42-
"path-browserify": "1.0.1",
4341
"polished": "4.2.2",
4442
"pretty-ms": "8.0.0",
4543
"react": "18.2.0",
@@ -49,17 +47,13 @@
4947
"react-dom": "18.2.0",
5048
"react-router-dom": "6.4.3",
5149
"react-select": "5.6.1",
52-
"react-spring": "9.5.5",
5350
"reflect-metadata": "0.1.13",
5451
"rxjs": "7.5.7",
5552
"stack-trace": "https://github.com/LIMPIX31/node-stack-trace",
5653
"styled-components": "5.3.6",
5754
"swr": "1.3.0",
5855
"tauri-plugin-fs-watch-api": "github:tauri-apps/tauri-plugin-fs-watch",
59-
"throttle-debounce": "5.0.0",
60-
"tsyringe": "4.7.0",
61-
"typed-emitter": "2.1.0",
62-
"webfontloader": "1.6.28"
56+
"tsyringe": "4.7.0"
6357
},
6458
"devDependencies": {
6559
"@tauri-apps/cli": "1.2.1",

src-tauri/Cargo.lock

Lines changed: 37 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ tauri-build = { version = "1.2.1", features = [] }
1717
[dependencies]
1818
serde_json = "1.0"
1919
serde = { version = "1.0", features = ["derive"] }
20-
tauri = { version = "1.2.1", features = ["devtools", "fs-all", "http-all", "os-all", "path-all", "protocol-all", "shell-all", "updater", "window-all"] }
20+
tauri = { version = "1.2.1", features = ["devtools", "dialog-open", "fs-all", "http-all", "os-all", "path-all", "protocol-all", "shell-all", "updater", "window-all"] }
2121
zip = "0.6.3"
22+
url = { version = "2.3.1", features = ["serde"] }
2223
reqwest = { version = "0.11.13", features = [ "stream" ] }
2324
tokio = { version = "1", features = ["full"] }
2425
futures-util = "0.3.25"

src-tauri/rustfmt.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
max_width = 120
2+
tab_spaces = 2
3+
newline_style = "Unix"
4+
remove_nested_parens = true
5+
merge_derives = true
6+
normalize_doc_attributes = true

src-tauri/src/download/hash.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use arrayvec::ArrayString;
22
use blake3::{Hash, HexError};
3-
use std::path::Path;
3+
use std::path::PathBuf;
44
use thiserror::Error;
55

66
pub trait BlakeHash {
@@ -28,15 +28,15 @@ pub enum BlakeError {
2828
HashMismatch { expected: String, found: String },
2929
}
3030

31-
pub fn create_hash_for_file(path: &Path) -> Result<Hash, BlakeError> {
31+
pub fn create_hash_for_file(path: &PathBuf) -> Result<Hash, BlakeError> {
3232
let mut file = std::fs::File::open(path)?;
3333
let mut hasher = blake3::Hasher::new();
3434
std::io::copy(&mut file, &mut hasher)?;
3535
let found_hash = hasher.finalize();
3636
Ok(found_hash)
3737
}
3838

39-
pub fn check_file_integrity(path: &Path, expected: &str) -> Result<(), BlakeError> {
39+
pub fn check_file_integrity(path: &PathBuf, expected: &str) -> Result<(), BlakeError> {
4040
let found = create_hash_for_file(path)?.as_string();
4141
if expected == found {
4242
Ok(())

0 commit comments

Comments
 (0)