Compare commits
3 commits
780e7ee69b
...
3be1ca9e48
Author | SHA1 | Date | |
---|---|---|---|
![]() |
3be1ca9e48 | ||
![]() |
91e6546a47 | ||
![]() |
65a1e73f40 |
7 changed files with 501 additions and 460 deletions
|
@ -28,7 +28,9 @@ export function PostSegment(props: { post: Post }): JSXElement {
|
||||||
return (
|
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 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">
|
<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">
|
<div class="card-actions justify-end">
|
||||||
<button
|
<button
|
||||||
onClick={(): void => nav("/post/" + props.post?.id)}
|
onClick={(): void => nav("/post/" + props.post?.id)}
|
||||||
|
|
|
@ -2,7 +2,7 @@ import { JSXElement } from "solid-js";
|
||||||
|
|
||||||
export function Footer(): JSXElement {
|
export function Footer(): JSXElement {
|
||||||
return (
|
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">
|
<nav class="grid grid-flow-col gap-4">
|
||||||
<a class="link-hover link">About us</a>
|
<a class="link-hover link">About us</a>
|
||||||
<a class="link-hover link">Contact</a>
|
<a class="link-hover link">Contact</a>
|
||||||
|
|
|
@ -3,8 +3,6 @@ import { JSXElement } from "solid-js";
|
||||||
// MainContainer is the main container for the page.
|
// MainContainer is the main container for the page.
|
||||||
export function PageContainer(props: { children: JSXElement }): JSXElement {
|
export function PageContainer(props: { children: JSXElement }): JSXElement {
|
||||||
return (
|
return (
|
||||||
<div class="flex min-h-screen flex-col items-center">
|
<div class="flex min-h-screen flex-col items-center">{props.children}</div>
|
||||||
{props.children}
|
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
918
server/Cargo.lock
generated
918
server/Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -6,24 +6,24 @@ edition = "2021"
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-cors = "0.6.4"
|
actix-cors = "0.7.0"
|
||||||
actix-files = "0.6.2"
|
actix-files = "0.6.6"
|
||||||
actix-web = "4.4.0"
|
actix-web = "4.9.0"
|
||||||
argon2 = { version = "0.5.2", features = ["zeroize"] }
|
argon2 = { version = "0.5.3", features = ["zeroize"] }
|
||||||
biosvg = "0.1.3"
|
biosvg = "0.1.5"
|
||||||
chrono = { version = "0.4.31", features = ["serde"] }
|
chrono = { version = "0.4.38", features = ["serde"] }
|
||||||
clap = { version = "4.4.5", features = ["derive"] }
|
clap = { version = "4.5.16", features = ["derive"] }
|
||||||
dotenvy = "0.15.7"
|
dotenvy = "0.15.7"
|
||||||
env_logger = "0.10.0"
|
env_logger = "0.11.5"
|
||||||
jsonwebtoken = "9.2.0"
|
jsonwebtoken = "9.3.0"
|
||||||
lipsum = "0.9.0"
|
lipsum = "0.9.1"
|
||||||
log = "0.4.20"
|
log = "0.4.22"
|
||||||
rand = "0.8.5"
|
rand = "0.8.5"
|
||||||
serde = { version = "1.0.188", features = ["derive"] }
|
serde = { version = "1.0.208", features = ["derive"] }
|
||||||
serde_json = "1.0.107"
|
serde_json = "1.0.125"
|
||||||
sled = { version = "0.34.7" }
|
sled = { version = "0.34.7" }
|
||||||
sqlx = { version = "0.7.2", features = ["runtime-tokio", "chrono", "uuid", "postgres", "tls-rustls"] }
|
sqlx = { version = "0.8.0", features = ["runtime-tokio", "chrono", "uuid", "postgres", "tls-rustls"] }
|
||||||
uuid = { version = "1.4.1", features = ["serde", "v4"] }
|
uuid = { version = "1.10.0", features = ["serde", "v4"] }
|
||||||
|
|
||||||
[profile.dev.package.sqlx-macros]
|
[profile.dev.package.sqlx-macros]
|
||||||
opt-level = 3
|
opt-level = 3
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#[allow(dead_code)]
|
||||||
use rand::Rng;
|
use rand::Rng;
|
||||||
|
|
||||||
// This will do for now
|
// This will do for now
|
||||||
|
|
Loading…
Add table
Reference in a new issue