Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
shenek committed Mar 8, 2024
1 parent 386961e commit 8a61116
Show file tree
Hide file tree
Showing 8 changed files with 307 additions and 950 deletions.
1,206 changes: 281 additions & 925 deletions Cargo.lock

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions ucelofka/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@ categories = ["command-line-utilities"]
include = ["default", "resources", "src"]

[dependencies]
actix-web = "3.3"
anyhow = "~1.0.26"
clap = { version = "4.1.8", features = ["cargo", "env"] }
clap_complete = "4.1.4"
fluent = "~0.15.0"
fluent-bundle = "~0.15.0"
fluent-langneg = "~0.13.0"
git2 = "~0.13.6"
lazy_static = "~1.4.0"
actix-web = "4.5"
anyhow = "1"
clap = { version = "4.5", features = ["cargo", "env"] }
clap_complete = "4.5"
fluent = "0.15"
fluent-bundle = "0.15"
fluent-langneg = "0.13"
git2 = "~0.18"
lazy_static = "1.4"
include_dir = { version = "~0.6.0" }
intl-memoizer = "~0.5.1"
intl-memoizer = "0.5"
minijinja = { version = "~1.0.12", features = ["loader"] }
serde = { version = "~1.0.104", features = ["derive"]}
serde_yaml = "~0.8.11"
serde = { version = "1", features = ["derive"]}
serde_yaml = "0.9"
tokio = { version = "1", features = ["rt", "rt-multi-thread"]}
unic-langid = { version = "~0.9.0", features = ["macros"]}
unic-langid = { version = "0.9", features = ["macros"]}
ucelofka-data = { path="../ucelofka-data/" }
dioxus = "0.4"
dioxus-tui = "0.4"
Expand Down
4 changes: 2 additions & 2 deletions ucelofka/src/web/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ async fn get_accounts(
async fn get_account(
data: web::Data<Mutex<UcelofkaData>>,
req: HttpRequest,
web::Path((id,)): web::Path<(String,)>,
path: web::Path<(String,)>,
) -> Result<web::Json<Account>> {
println!("{:?}", req);
let data_guard = data.lock().unwrap();

let account_object =
account::get(&data_guard.data_dir_path, &id).map_err(error::ErrorNotFound)?;
account::get(&data_guard.data_dir_path, &path.0).map_err(error::ErrorNotFound)?;

Ok(web::Json(account_object))
}
Expand Down
4 changes: 2 additions & 2 deletions ucelofka/src/web/customer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ async fn get_customers(
async fn get_customer(
data: web::Data<Mutex<UcelofkaData>>,
req: HttpRequest,
web::Path((id,)): web::Path<(String,)>,
path: web::Path<(String,)>,
) -> Result<web::Json<Customer>> {
println!("{:?}", req);
let data_guard = data.lock().unwrap();

let customer_object =
customer::get(&data_guard.data_dir_path, &id).map_err(error::ErrorNotFound)?;
customer::get(&data_guard.data_dir_path, &path.0).map_err(error::ErrorNotFound)?;

Ok(web::Json(customer_object))
}
Expand Down
5 changes: 3 additions & 2 deletions ucelofka/src/web/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ async fn get_entries(
async fn get_entry(
data: web::Data<Mutex<UcelofkaData>>,
req: HttpRequest,
web::Path((id,)): web::Path<(String,)>,
path: web::Path<(String,)>,
) -> Result<web::Json<Entry>> {
println!("{:?}", req);
let data_guard = data.lock().unwrap();

let entry_object = entry::get(&data_guard.data_dir_path, &id).map_err(error::ErrorNotFound)?;
let entry_object =
entry::get(&data_guard.data_dir_path, &path.0).map_err(error::ErrorNotFound)?;

Ok(web::Json(entry_object))
}
Expand Down
4 changes: 2 additions & 2 deletions ucelofka/src/web/identity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ async fn get_identities(
async fn get_identity(
data: web::Data<Mutex<UcelofkaData>>,
req: HttpRequest,
web::Path((id,)): web::Path<(String,)>,
path: web::Path<(String,)>,
) -> Result<web::Json<Identity>> {
println!("{:?}", req);
let data_guard = data.lock().unwrap();

let identity_object =
identity::get(&data_guard.data_dir_path, &id).map_err(error::ErrorNotFound)?;
identity::get(&data_guard.data_dir_path, &path.0).map_err(error::ErrorNotFound)?;

Ok(web::Json(identity_object))
}
Expand Down
4 changes: 2 additions & 2 deletions ucelofka/src/web/invoice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ async fn get_invoices(
async fn get_invoice(
data: web::Data<Mutex<UcelofkaData>>,
req: HttpRequest,
web::Path((id,)): web::Path<(String,)>,
path: web::Path<(String,)>,
) -> Result<web::Json<Invoice>> {
println!("{:?}", req);
let data_guard = data.lock().unwrap();

let invoice_object =
invoice::get(&data_guard.data_dir_path, &id).map_err(error::ErrorNotFound)?;
invoice::get(&data_guard.data_dir_path, &path.0).map_err(error::ErrorNotFound)?;

Ok(web::Json(invoice_object))
}
Expand Down
4 changes: 2 additions & 2 deletions ucelofka/src/web/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ async fn get_templates(
async fn get_template(
data: web::Data<Mutex<UcelofkaData>>,
req: HttpRequest,
web::Path((id,)): web::Path<(String,)>,
path: web::Path<(String,)>,
) -> Result<web::Json<Template>> {
println!("{:?}", req);
let data_guard = data.lock().unwrap();

let template_object =
template::get(&data_guard.data_dir_path, &id).map_err(error::ErrorNotFound)?;
template::get(&data_guard.data_dir_path, &path.0).map_err(error::ErrorNotFound)?;

Ok(web::Json(template_object))
}
Expand Down

0 comments on commit 8a61116

Please sign in to comment.