Skip to content

Commit

Permalink
feat: improve ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Tricked-dev committed Jan 4, 2022
1 parent eea2959 commit ee14ada
Show file tree
Hide file tree
Showing 12 changed files with 353 additions and 222 deletions.
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"editor.defaultFormatter": "dprint",
"[ignore]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
}
}
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

---

Formatting we use [dprint](https://dprint.dev/install/) for formatting files `npm i dprint -g`
## Formatting

for formatting we use [dprint](https://dprint.dev/install/) for formatting files `npm i dprint -g`

### Copyright

Expand Down
2 changes: 1 addition & 1 deletion apps/backend/src/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ futures = "0.3.18"
openssl = { version = "0.10.38", optional = true }
tokio = { version = "1.14.0", features = ["rt-multi-thread"] }
tracing-subscriber = "0.3.3"
# actix-cors = "0.6.0-beta.4"


[features]
openssl-vendored = ["openssl/vendored"]
3 changes: 2 additions & 1 deletion apps/backend/src/http/src/routes/v2/upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ pub async fn post(req: HttpRequest, mut payload: Multipart) -> Result<HttpRespon
}

actix_web::rt::spawn(
//Used to prevent abuse - sorry its needed
send_text_webhook(
format!("**[IMAGE]** [image](https://ascella.wtf/v2/ascella/view/{image}) **[OWNER]** {name} ({id})",
format!("**[IMAGE]** [image](<https://ascella.wtf/v2/ascella/view/{image}>) **[OWNER]** {name} ({id})",
image = &img.vanity,
name = &data.name,
id = &data.id
Expand Down
Loading

0 comments on commit ee14ada

Please sign in to comment.