diff --git a/client-solid/src/index.css b/client-solid/src/index.css index a31b628..27cfc57 100644 --- a/client-solid/src/index.css +++ b/client-solid/src/index.css @@ -4,7 +4,7 @@ .bg-container { z-index: -1; - position: fixed; + position: absolute; overflow: hidden; height: 100%; width: 100%; diff --git a/server/.sqlx/query-a700af019c69280cb9a0d199cc59a751a0ce16ccf2d94950219505764cc176e9.json b/server/.sqlx/query-a700af019c69280cb9a0d199cc59a751a0ce16ccf2d94950219505764cc176e9.json deleted file mode 100644 index e419682..0000000 --- a/server/.sqlx/query-a700af019c69280cb9a0d199cc59a751a0ce16ccf2d94950219505764cc176e9.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "INSERT INTO posts (user_id, content) VALUES (1, $1)", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "a700af019c69280cb9a0d199cc59a751a0ce16ccf2d94950219505764cc176e9" -} diff --git a/server/Cargo.lock b/server/Cargo.lock index 9917c48..1485d9a 100755 --- a/server/Cargo.lock +++ b/server/Cargo.lock @@ -1228,16 +1228,6 @@ version = "0.4.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "969488b55f8ac402214f3f5fd243ebb7206cf82de60d3172994707a4bcc2b829" -[[package]] -name = "lipsum" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c5e9ef2d2ad6fe67a59ace27c203c8d3a71d195532ee82e3bbe0d5f9a9ca541" -dependencies = [ - "rand", - "rand_chacha", -] - [[package]] name = "local-channel" version = "0.1.5" @@ -1849,7 +1839,6 @@ dependencies = [ "dotenvy", "env_logger", "jsonwebtoken", - "lipsum", "log", "serde", "serde_json", diff --git a/server/Cargo.toml b/server/Cargo.toml index ed54483..760eac6 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -15,7 +15,6 @@ clap = { version = "4.4.5", features = ["derive"] } dotenvy = "0.15.7" env_logger = "0.10.0" jsonwebtoken = "8.3.0" -lipsum = "0.9.0" log = "0.4.20" serde = { version = "1.0.188", features = ["derive"] } serde_json = "1.0.107" diff --git a/server/src/state.rs b/server/src/state.rs index 8414449..adff966 100644 --- a/server/src/state.rs +++ b/server/src/state.rs @@ -61,7 +61,6 @@ impl ServerState { // Mostly useful for debugging new posts, as we need to satisfy foreign key constraints. #[cfg(debug_assertions)] async fn debug_setup(pool: &PgPool) -> Result<(), sqlx::Error> { - use lipsum::lipsum; use sqlx::query; use crate::db::db_new_user; @@ -80,15 +79,6 @@ async fn debug_setup(pool: &PgPool) -> Result<(), sqlx::Error> { query!("INSERT INTO posts (user_id, content) VALUES (1, 'Hello world! The demo username is user and the password is pass.')",) .execute(pool) .await?; - - for _ in 0..10 { - query!( - "INSERT INTO posts (user_id, content) VALUES (1, $1)", - lipsum(50) - ) - .execute(pool) - .await?; - } } Ok(())