Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
ddboline committed Dec 17, 2023
1 parent ab3f7ac commit ce8abfc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "security_log_analysis_rust"
version = "0.11.3"
version = "0.11.4"
authors = ["Daniel Boline <[email protected]>"]
edition = "2018"

Expand All @@ -14,7 +14,7 @@ Analyze Auth Logs."""

[dependencies]
anyhow = "1.0"
authorized_users = { git = "https://github.com/ddboline/auth_server_rust.git", tag="0.11.3"}
authorized_users = { git = "https://github.com/ddboline/auth_server_rust.git", tag="0.11.5"}
aws-config = {version="1.0", features=["behavior-version-latest"]}
aws-sdk-s3 = "1.1"
aws-sdk-ses = "1.1"
Expand All @@ -23,7 +23,7 @@ cached = {version="0.46", features=["async", "async_tokio_rt_multi_thread"]}
chrono = "0.4"
clap = {version="4.0", features=["derive"]}
deadpool = {version = "0.10", features=["serde", "rt_tokio_1"]}
deadpool-postgres = {version="0.11", features=["serde"]}
deadpool-postgres = {version="0.12", features=["serde"]}
deadqueue = "0.2"
derive_more = "0.99"
dioxus = "0.4"
Expand All @@ -40,7 +40,7 @@ log = "0.4"
maplit = "1.0"
parking_lot = "0.12"
polars = {version="0.35", features=["temporal", "parquet", "lazy"]}
postgres_query = {git = "https://github.com/ddboline/rust-postgres-query", tag = "0.3.5", features=["deadpool"]}
postgres_query = {git = "https://github.com/ddboline/rust-postgres-query", tag = "0.3.6", features=["deadpool"]}
postgres-types = {version="0.2", features=["with-time-0_3", "with-uuid-1", "with-serde_json-1"]}
rand = "0.8"
rayon = "1.5"
Expand Down
11 changes: 5 additions & 6 deletions src/security_log_element.rs
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
use dioxus::prelude::{
dioxus_elements, format_args_f, inline_props, rsx, Element, GlobalAttributes, LazyNodes, Props,
Scope, VNode, VirtualDom,
dioxus_elements, format_args_f, component, rsx, Element, GlobalAttributes, LazyNodes, Props,
Scope, VNode, VirtualDom, IntoDynNode,
};
use stack_string::StackString;
use std::fmt::Write;

use security_log_analysis_rust::{config::Config, CountryCount};

pub fn index_body(data: StackString, config: Config) -> String {
let mut app = VirtualDom::new_with_props(index_element, index_elementProps { data, config });
let mut app = VirtualDom::new_with_props(IndexElement, IndexElementProps { data, config });
drop(app.rebuild());
dioxus_ssr::render(&app)
}

#[allow(clippy::ignored_unit_patterns)]
#[inline_props]
fn index_element(cx: Scope, data: StackString, config: Config) -> Element {
#[component]
fn IndexElement(cx: Scope, data: StackString, config: Config) -> Element {
let maps_script = config.maps_api_key.as_ref().map(|map_api_key| {
rsx! {
script {
Expand Down

0 comments on commit ce8abfc

Please sign in to comment.