Compare commits
5 Commits
a84391b583
...
3ded39f6fc
| Author | SHA1 | Date | |
|---|---|---|---|
| 3ded39f6fc | |||
| d8695d62b8 | |||
| 33f7d64e7e | |||
| d3983edf11 | |||
| f16bee5927 |
12
geneit_app/package-lock.json
generated
12
geneit_app/package-lock.json
generated
@@ -1186,9 +1186,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@mui/icons-material": {
|
"node_modules/@mui/icons-material": {
|
||||||
"version": "5.15.11",
|
"version": "5.15.12",
|
||||||
"resolved": "https://registry.npmjs.org/@mui/icons-material/-/icons-material-5.15.11.tgz",
|
"resolved": "https://registry.npmjs.org/@mui/icons-material/-/icons-material-5.15.12.tgz",
|
||||||
"integrity": "sha512-R5ZoQqnKpd+5Ew7mBygTFLxgYsQHPhgR3TDXSgIHYIjGzYuyPLmGLSdcPUoMdi6kxiYqHlpPj4NJxlbaFD0UHA==",
|
"integrity": "sha512-3BXiDlOd3AexZoEXa/VqpIpVIvosCzjLHsdMWzKMXbZdnBiJjmb9ECdqfjn5SpTClO49qvkKLhkTqdBH3fSFGw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.23.9"
|
"@babel/runtime": "^7.23.9"
|
||||||
},
|
},
|
||||||
@@ -4307,9 +4307,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/vite": {
|
"node_modules/vite": {
|
||||||
"version": "5.1.5",
|
"version": "5.1.6",
|
||||||
"resolved": "https://registry.npmjs.org/vite/-/vite-5.1.5.tgz",
|
"resolved": "https://registry.npmjs.org/vite/-/vite-5.1.6.tgz",
|
||||||
"integrity": "sha512-BdN1xh0Of/oQafhU+FvopafUp6WaYenLU/NFoL5WyJL++GxkNfieKzBhM24H3HVsPQrlAqB7iJYTHabzaRed5Q==",
|
"integrity": "sha512-yYIAZs9nVfRJ/AiOLCA91zzhjsHUgMjB+EigzFb6W2XTLO8JixBCKCjvhKZaye+NKYHCrkv3Oh50dH9EdLU2RA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"esbuild": "^0.19.3",
|
"esbuild": "^0.19.3",
|
||||||
"postcss": "^8.4.35",
|
"postcss": "^8.4.35",
|
||||||
|
|||||||
1232
geneit_backend/Cargo.lock
generated
1232
geneit_backend/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -6,32 +6,32 @@ 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]
|
||||||
log = "0.4.20"
|
log = "0.4.21"
|
||||||
env_logger = "0.10.1"
|
env_logger = "0.11.3"
|
||||||
clap = { version = "4.4.12", features = ["derive", "env"] }
|
clap = { version = "4.5.2", features = ["derive", "env"] }
|
||||||
lazy_static = "1.4.0"
|
lazy_static = "1.4.0"
|
||||||
anyhow = "1.0.75"
|
anyhow = "1.0.80"
|
||||||
actix-web = "4.5.1"
|
actix-web = "4.5.1"
|
||||||
actix-cors = "0.7.0"
|
actix-cors = "0.7.0"
|
||||||
actix-multipart = "0.6.1"
|
actix-multipart = "0.6.1"
|
||||||
actix-remote-ip = "0.1.0"
|
actix-remote-ip = "0.1.0"
|
||||||
futures-util = "0.3.29"
|
futures-util = "0.3.30"
|
||||||
diesel = { version = "2.1.4", features = ["postgres"] }
|
diesel = { version = "2.1.4", features = ["postgres"] }
|
||||||
serde = { version = "1.0.194", features = ["derive"] }
|
serde = { version = "1.0.197", features = ["derive"] }
|
||||||
serde_json = "1.0.110"
|
serde_json = "1.0.114"
|
||||||
mailchecker = "6.0.1"
|
mailchecker = "6.0.1"
|
||||||
redis = "0.24.0"
|
redis = "0.25.0"
|
||||||
lettre = "0.11.2"
|
lettre = "0.11.4"
|
||||||
rand = "0.8.5"
|
rand = "0.8.5"
|
||||||
bcrypt = "0.15.0"
|
bcrypt = "0.15.0"
|
||||||
light-openid = "1.0.1"
|
light-openid = "1.0.1"
|
||||||
thiserror = "1.0.57"
|
thiserror = "1.0.57"
|
||||||
serde_with = "3.4.0"
|
serde_with = "3.6.1"
|
||||||
rust_iso3166 = "0.1.11"
|
rust_iso3166 = "0.1.12"
|
||||||
rust-s3 = "0.33.0"
|
rust-s3 = "0.33.0"
|
||||||
sha2 = "0.10.8"
|
sha2 = "0.10.8"
|
||||||
image = "0.24.9"
|
image = "0.25.0"
|
||||||
uuid = { version = "1.6.1", features = ["v4"] }
|
uuid = { version = "1.7.0", features = ["v4"] }
|
||||||
httpdate = "1.0.3"
|
httpdate = "1.0.3"
|
||||||
zip = "0.6.6"
|
zip = "0.6.6"
|
||||||
mime_guess = "2.0.4"
|
mime_guess = "2.0.4"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ use crate::utils::time_utils::time;
|
|||||||
use actix_multipart::form::tempfile::TempFile;
|
use actix_multipart::form::tempfile::TempFile;
|
||||||
use diesel::prelude::*;
|
use diesel::prelude::*;
|
||||||
use image::imageops::FilterType;
|
use image::imageops::FilterType;
|
||||||
use image::ImageOutputFormat;
|
use image::ImageFormat;
|
||||||
use mime_guess::Mime;
|
use mime_guess::Mime;
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
use std::io::{Cursor, Read, Seek, Write};
|
use std::io::{Cursor, Read, Seek, Write};
|
||||||
@@ -80,7 +80,7 @@ pub async fn finalize_upload(mut file: UploadedFile) -> anyhow::Result<Photo> {
|
|||||||
);
|
);
|
||||||
|
|
||||||
let mut thumb_cursor = Cursor::new(vec![]);
|
let mut thumb_cursor = Cursor::new(vec![]);
|
||||||
thumbnail_image.write_to(&mut thumb_cursor, ImageOutputFormat::Png)?;
|
thumbnail_image.write_to(&mut thumb_cursor, ImageFormat::Png)?;
|
||||||
let thumb_img = thumb_cursor.into_inner();
|
let thumb_img = thumb_cursor.into_inner();
|
||||||
|
|
||||||
let photo = NewPhoto {
|
let photo = NewPhoto {
|
||||||
|
|||||||
Reference in New Issue
Block a user