Compare commits

..

3 commits

Author SHA1 Message Date
Imbus
3be1ca9e48 Allow some dead code for now 2024-08-22 03:38:44 +02:00
Imbus
91e6546a47 Version bumps, builds with rustc 1.82.0-nightly (506052d49 2024-08-16) 2024-08-22 03:25:07 +02:00
Imbus
65a1e73f40 Formatting 2024-08-21 23:28:19 +02:00
7 changed files with 501 additions and 460 deletions

View file

@ -28,7 +28,9 @@ export function PostSegment(props: { post: Post }): JSXElement {
return (
<div class="card compact w-full flex-grow border-b-2 border-b-base-300 bg-base-200 text-base-content transition-all hover:bg-base-300">
<div class="card-body">
<p class="break-words text-base-content md:px-6 md:pt-2">{props.post?.content}</p>
<p class="break-words text-base-content md:px-6 md:pt-2">
{props.post?.content}
</p>
<div class="card-actions justify-end">
<button
onClick={(): void => nav("/post/" + props.post?.id)}

View file

@ -2,7 +2,7 @@ import { JSXElement } from "solid-js";
export function Footer(): JSXElement {
return (
<footer class="footer footer-center rounded mt-auto bg-base-200 p-10 text-base-content">
<footer class="footer footer-center mt-auto rounded bg-base-200 p-10 text-base-content">
<nav class="grid grid-flow-col gap-4">
<a class="link-hover link">About us</a>
<a class="link-hover link">Contact</a>

View file

@ -3,8 +3,6 @@ import { JSXElement } from "solid-js";
// MainContainer is the main container for the page.
export function PageContainer(props: { children: JSXElement }): JSXElement {
return (
<div class="flex min-h-screen flex-col items-center">
{props.children}
</div>
<div class="flex min-h-screen flex-col items-center">{props.children}</div>
);
}

918
server/Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -6,24 +6,24 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
actix-cors = "0.6.4"
actix-files = "0.6.2"
actix-web = "4.4.0"
argon2 = { version = "0.5.2", features = ["zeroize"] }
biosvg = "0.1.3"
chrono = { version = "0.4.31", features = ["serde"] }
clap = { version = "4.4.5", features = ["derive"] }
actix-cors = "0.7.0"
actix-files = "0.6.6"
actix-web = "4.9.0"
argon2 = { version = "0.5.3", features = ["zeroize"] }
biosvg = "0.1.5"
chrono = { version = "0.4.38", features = ["serde"] }
clap = { version = "4.5.16", features = ["derive"] }
dotenvy = "0.15.7"
env_logger = "0.10.0"
jsonwebtoken = "9.2.0"
lipsum = "0.9.0"
log = "0.4.20"
env_logger = "0.11.5"
jsonwebtoken = "9.3.0"
lipsum = "0.9.1"
log = "0.4.22"
rand = "0.8.5"
serde = { version = "1.0.188", features = ["derive"] }
serde_json = "1.0.107"
serde = { version = "1.0.208", features = ["derive"] }
serde_json = "1.0.125"
sled = { version = "0.34.7" }
sqlx = { version = "0.7.2", features = ["runtime-tokio", "chrono", "uuid", "postgres", "tls-rustls"] }
uuid = { version = "1.4.1", features = ["serde", "v4"] }
sqlx = { version = "0.8.0", features = ["runtime-tokio", "chrono", "uuid", "postgres", "tls-rustls"] }
uuid = { version = "1.10.0", features = ["serde", "v4"] }
[profile.dev.package.sqlx-macros]
opt-level = 3

View file

@ -1,3 +1,4 @@
#[allow(dead_code)]
use rand::Rng;
// This will do for now