All checks were successful
Frontend CI / build (push) Successful in 1m26s
### Description #### Backend - String and interger can be pass as `id` to `GET` `/post/{id}` - For the posts existed, the default `semantic_id` for them will be `_id`. (e.g. `_1`, `_2`) - Semantic ID should follow the rules: 1. It shouldn't be an integer 1. It should match the pattern: `^[0-9a-zA-Z_\-]+$` <br> |Semantic ID|Result|Note| |-|-|-| |12|X|against with `i`| |-3|X|against with `i`| |3.14|X|against with `ii`| |hello world|X|against with `ii`| |*EMPTY*|X|against with `ii`| |12_34-56|O|| #### Frontend - The href of post preview card becomes the semantic ID. ### Package Changes ```toml regex = "1.12.1" ``` ### Screenshots  ### Reference Resolves #125. ### Checklist - [x] A milestone is set - [x] The related issuse has been linked to this branch Reviewed-on: #134 Co-authored-by: SquidSpirit <squid@squidspirit.com> Co-committed-by: SquidSpirit <squid@squidspirit.com>
57 lines
1.2 KiB
TOML
57 lines
1.2 KiB
TOML
[workspace]
|
|
members = [
|
|
"server",
|
|
"feature/auth",
|
|
"feature/common",
|
|
"feature/image",
|
|
"feature/post",
|
|
]
|
|
resolver = "2"
|
|
|
|
[workspace.package]
|
|
version = "0.3.1"
|
|
edition = "2024"
|
|
|
|
[profile.release]
|
|
debug = true
|
|
|
|
[workspace.dependencies]
|
|
actix-multipart = "0.7.2"
|
|
actix-session = { version = "0.10.1", features = ["redis-session"] }
|
|
actix-web = "4.10.2"
|
|
anyhow = "1.0.98"
|
|
async-trait = "0.1.88"
|
|
chrono = "0.4.41"
|
|
dotenv = "0.15.0"
|
|
env_logger = "0.11.8"
|
|
futures = "0.3.31"
|
|
hex = "0.4.3"
|
|
log = "0.4.27"
|
|
openidconnect = { version = "4.0.1", features = [
|
|
"reqwest",
|
|
"reqwest-blocking",
|
|
] }
|
|
percent-encoding = "2.3.1"
|
|
regex = "1.12.1"
|
|
sentry = { version = "0.42.0", features = ["actix", "anyhow"] }
|
|
serde = { version = "1.0.219", features = ["derive"] }
|
|
sqlx = { version = "0.8.5", features = [
|
|
"chrono",
|
|
"macros",
|
|
"postgres",
|
|
"runtime-tokio-rustls",
|
|
] }
|
|
tokio = { version = "1.45.0", features = ["full"] }
|
|
utoipa = { version = "5.4.0", features = [
|
|
"actix_extras",
|
|
"non_strict_integers",
|
|
"url",
|
|
] }
|
|
utoipa-redoc = { version = "6.0.0", features = ["actix-web"] }
|
|
|
|
server.path = "server"
|
|
auth.path = "feature/auth"
|
|
common.path = "feature/common"
|
|
image.path = "feature/image"
|
|
post.path = "feature/post"
|