Compare commits
1 Commits
renovate/r
...
7dedbc7125
Author | SHA1 | Date | |
---|---|---|---|
7dedbc7125 |
@ -24,7 +24,7 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
# Build website
|
# Build website
|
||||||
- cd geneit_app
|
- cd geneit_app
|
||||||
- npm install
|
- npm install --legacy-peer-deps # TODO : remove when mui-color-input is updated
|
||||||
- GENERATE_SOURCEMAP=false npm run build
|
- GENERATE_SOURCEMAP=false npm run build
|
||||||
# Install AWS
|
# Install AWS
|
||||||
- curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
|
- curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
|
||||||
|
2603
geneit_app/package-lock.json
generated
2603
geneit_app/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -10,46 +10,46 @@
|
|||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@emotion/react": "^11.14.0",
|
"@emotion/react": "^11.13.3",
|
||||||
"@emotion/styled": "^11.14.0",
|
"@emotion/styled": "^11.13.0",
|
||||||
"@fontsource/roboto": "^5.2.6",
|
"@fontsource/roboto": "^5.2.5",
|
||||||
"@fullcalendar/core": "^6.1.17",
|
"@fullcalendar/core": "^6.1.15",
|
||||||
"@fullcalendar/daygrid": "^6.1.17",
|
"@fullcalendar/daygrid": "^6.1.15",
|
||||||
"@fullcalendar/interaction": "^6.1.17",
|
"@fullcalendar/interaction": "^6.1.15",
|
||||||
"@fullcalendar/list": "^6.1.17",
|
"@fullcalendar/list": "^6.1.15",
|
||||||
"@fullcalendar/react": "^6.1.17",
|
"@fullcalendar/react": "^6.1.15",
|
||||||
"@mdi/js": "^7.4.47",
|
"@mdi/js": "^7.2.96",
|
||||||
"@mdi/react": "^1.6.1",
|
"@mdi/react": "^1.6.1",
|
||||||
"@mui/icons-material": "^7.0.2",
|
"@mui/icons-material": "^7.0.0",
|
||||||
"@mui/lab": "^7.0.0-beta.14",
|
"@mui/lab": "^7.0.0-beta.9",
|
||||||
"@mui/material": "^7.0.2",
|
"@mui/material": "^7.0.0",
|
||||||
"@mui/x-data-grid": "^7.29.6",
|
"@mui/x-data-grid": "^7.28.2",
|
||||||
"@mui/x-date-pickers": "^7.29.4",
|
"@mui/x-date-pickers": "^7.28.2",
|
||||||
"@mui/x-tree-view": "^7.29.1",
|
"@mui/x-tree-view": "^7.28.1",
|
||||||
"date-and-time": "^3.6.0",
|
"date-and-time": "^3.6.0",
|
||||||
"dayjs": "^1.11.13",
|
"dayjs": "^1.11.13",
|
||||||
"email-validator": "^2.0.4",
|
"email-validator": "^2.0.4",
|
||||||
"filesize": "^10.1.6",
|
"filesize": "^10.1.6",
|
||||||
"jspdf": "^3.0.1",
|
"jspdf": "^3.0.1",
|
||||||
"mui-color-input": "^7.0.0",
|
"mui-color-input": "^6.0.0",
|
||||||
"react": "^19.0.0",
|
"react": "^19.0.0",
|
||||||
"react-dom": "^19.0.0",
|
"react-dom": "^19.0.0",
|
||||||
"react-easy-crop": "^5.4.2",
|
"react-easy-crop": "^5.4.1",
|
||||||
"react-qr-code": "^2.0.16",
|
"react-qr-code": "^2.0.14",
|
||||||
"react-router-dom": "^7.6.2",
|
"react-router-dom": "^7.4.0",
|
||||||
"react-zoom-pan-pinch": "^3.7.0",
|
"react-zoom-pan-pinch": "^3.7.0",
|
||||||
"svg2pdf.js": "^2.5.0"
|
"svg2pdf.js": "^2.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/js": "^9.28.0",
|
"@eslint/js": "^9.21.0",
|
||||||
"@types/react": "^19.0.12",
|
"@types/react": "^19.0.12",
|
||||||
"@types/react-dom": "^19.0.4",
|
"@types/react-dom": "^19.0.4",
|
||||||
"@vitejs/plugin-react": "^4.4.1",
|
"@vitejs/plugin-react": "^4.3.4",
|
||||||
"eslint": "^9.28.0",
|
"eslint": "^9.21.0",
|
||||||
"eslint-plugin-react-hooks": "^5.2.0",
|
"eslint-plugin-react-hooks": "^5.1.0",
|
||||||
"eslint-plugin-react-refresh": "^0.4.20",
|
"eslint-plugin-react-refresh": "^0.4.19",
|
||||||
"globals": "^16.0.0",
|
"globals": "^15.15.0",
|
||||||
"typescript": "^5.8.3",
|
"typescript": "^5.8.2",
|
||||||
"typescript-eslint": "^8.24.1",
|
"typescript-eslint": "^8.24.1",
|
||||||
"vite": "^6.2.3"
|
"vite": "^6.2.3"
|
||||||
}
|
}
|
||||||
|
@ -43,13 +43,9 @@ export function BaseAuthenticatedPage(): React.ReactElement {
|
|||||||
setAnchorEl(null);
|
setAnchorEl(null);
|
||||||
};
|
};
|
||||||
|
|
||||||
const signOut = async () => {
|
const signOut = () => {
|
||||||
handleCloseMenu();
|
handleCloseMenu();
|
||||||
try {
|
AuthApi.SignOut();
|
||||||
await AuthApi.SignOut();
|
|
||||||
} catch (e) {
|
|
||||||
console.error(e);
|
|
||||||
}
|
|
||||||
navigate("/");
|
navigate("/");
|
||||||
auth.setSignedIn(false);
|
auth.setSignedIn(false);
|
||||||
};
|
};
|
||||||
|
49
geneit_backend/Cargo.lock
generated
49
geneit_backend/Cargo.lock
generated
@ -64,7 +64,7 @@ dependencies = [
|
|||||||
"mime",
|
"mime",
|
||||||
"percent-encoding",
|
"percent-encoding",
|
||||||
"pin-project-lite",
|
"pin-project-lite",
|
||||||
"rand 0.9.1",
|
"rand 0.9.0",
|
||||||
"sha1",
|
"sha1",
|
||||||
"smallvec",
|
"smallvec",
|
||||||
"tokio",
|
"tokio",
|
||||||
@ -390,9 +390,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "anyhow"
|
name = "anyhow"
|
||||||
version = "1.0.98"
|
version = "1.0.97"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "e16d2d3311acee920a9eb8d33b8cbc1787ce4a264e85f964c2404b969bdcd487"
|
checksum = "dcfed56ad506cb2c684a14971b8861fdc3baaaae314b9e5f9bb532cbe3ba7a4f"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "arbitrary"
|
name = "arbitrary"
|
||||||
@ -709,9 +709,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "chrono"
|
name = "chrono"
|
||||||
version = "0.4.41"
|
version = "0.4.40"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "c469d952047f47f91b68d1cba3f10d63c11d73e4636f24f08daf0278abf01c4d"
|
checksum = "1a7964611d71df112cb1730f2ee67324fcf4d0fc6606acbbe9bfe06df124637c"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"android-tzdata",
|
"android-tzdata",
|
||||||
"iana-time-zone",
|
"iana-time-zone",
|
||||||
@ -744,9 +744,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "clap"
|
name = "clap"
|
||||||
version = "4.5.40"
|
version = "4.5.34"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "40b6887a1d8685cebccf115538db5c0efe625ccac9696ad45c409d96566e910f"
|
checksum = "e958897981290da2a852763fe9cdb89cd36977a5d729023127095fa94d95e2ff"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap_builder",
|
"clap_builder",
|
||||||
"clap_derive",
|
"clap_derive",
|
||||||
@ -754,9 +754,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "clap_builder"
|
name = "clap_builder"
|
||||||
version = "4.5.40"
|
version = "4.5.34"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "e0c66c08ce9f0c698cbce5c0279d0bb6ac936d8674174fe48f736533b964f59e"
|
checksum = "83b0f35019843db2160b5bb19ae09b4e6411ac33fc6a712003c33e03090e2489"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anstream",
|
"anstream",
|
||||||
"anstyle",
|
"anstyle",
|
||||||
@ -766,9 +766,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "clap_derive"
|
name = "clap_derive"
|
||||||
version = "4.5.40"
|
version = "4.5.32"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "d2c7947ae4cc3d851207c1adb5b5e260ff0cca11446b1d6d1423788e442257ce"
|
checksum = "09176aae279615badda0765c0c0b3f6ed53f4709118af73cf4655d85d1530cd7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"heck",
|
"heck",
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
@ -1056,9 +1056,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "diesel"
|
name = "diesel"
|
||||||
version = "2.2.11"
|
version = "2.2.8"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "a917a9209950404d5be011c81d081a2692a822f73c3d6af586f0cab5ff50f614"
|
checksum = "470eb10efc8646313634c99bb1593f402a6434cbd86e266770c6e39219adb86a"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 2.9.0",
|
"bitflags 2.9.0",
|
||||||
"byteorder",
|
"byteorder",
|
||||||
@ -1215,9 +1215,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "env_logger"
|
name = "env_logger"
|
||||||
version = "0.11.8"
|
version = "0.11.7"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "13c863f0904021b108aa8b2f55046443e6b1ebde8fd4a15c399893aae4fa069f"
|
checksum = "c3716d7a920fb4fac5d84e9d4bce8ceb321e9414b4409da61b07b75c1e3d0697"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anstream",
|
"anstream",
|
||||||
"anstyle",
|
"anstyle",
|
||||||
@ -1443,7 +1443,7 @@ dependencies = [
|
|||||||
"log",
|
"log",
|
||||||
"mailchecker",
|
"mailchecker",
|
||||||
"mime_guess",
|
"mime_guess",
|
||||||
"rand 0.9.1",
|
"rand 0.9.0",
|
||||||
"redis",
|
"redis",
|
||||||
"rust-s3",
|
"rust-s3",
|
||||||
"rust_iso3166",
|
"rust_iso3166",
|
||||||
@ -2196,9 +2196,9 @@ checksum = "03087c2bad5e1034e8cace5926dec053fb3790248370865f5117a7d0213354c8"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lettre"
|
name = "lettre"
|
||||||
version = "0.11.17"
|
version = "0.11.15"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "cb2a0354e9ece2fcdcf9fa53417f6de587230c0c248068eb058fa26c4a753179"
|
checksum = "759bc2b8eabb6a30b235d6f716f7f36479f4b38cbe65b8747aefee51f89e8437"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64",
|
"base64",
|
||||||
"chumsky",
|
"chumsky",
|
||||||
@ -2904,12 +2904,13 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rand"
|
name = "rand"
|
||||||
version = "0.9.1"
|
version = "0.9.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "9fbfd9d094a40bf3ae768db9361049ace4c0e04a4fd6b359518bd7b73a73dd97"
|
checksum = "3779b94aeb87e8bd4e834cee3650289ee9e0d5677f976ecdb6d219e5f4f6cd94"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"rand_chacha 0.9.0",
|
"rand_chacha 0.9.0",
|
||||||
"rand_core 0.9.3",
|
"rand_core 0.9.3",
|
||||||
|
"zerocopy 0.8.24",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@ -3022,9 +3023,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "redis"
|
name = "redis"
|
||||||
version = "0.29.5"
|
version = "0.29.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "1bc42f3a12fd4408ce64d8efef67048a924e543bd35c6591c0447fda9054695f"
|
checksum = "b110459d6e323b7cda23980c46c77157601199c9da6241552b284cd565a7a133"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"arc-swap",
|
"arc-swap",
|
||||||
"combine",
|
"combine",
|
||||||
@ -3467,9 +3468,9 @@ checksum = "bbfa15b3dddfee50a0fff136974b3e1bde555604ba463834a7eb7deb6417705d"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "sha2"
|
name = "sha2"
|
||||||
version = "0.10.9"
|
version = "0.10.8"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
|
checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if",
|
||||||
"cpufeatures",
|
"cpufeatures",
|
||||||
|
@ -7,31 +7,31 @@ edition = "2024"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4.27"
|
log = "0.4.27"
|
||||||
env_logger = "0.11.8"
|
env_logger = "0.11.7"
|
||||||
clap = { version = "4.5.40", features = ["derive", "env"] }
|
clap = { version = "4.5.32", features = ["derive", "env"] }
|
||||||
lazy_static = "1.5.0"
|
lazy_static = "1.5.0"
|
||||||
lazy-regex = "3.4.1"
|
lazy-regex = "3.3.0"
|
||||||
anyhow = "1.0.98"
|
anyhow = "1.0.87"
|
||||||
actix-web = "4.10.2"
|
actix-web = "4.10.2"
|
||||||
actix-cors = "0.7.1"
|
actix-cors = "0.7.0"
|
||||||
actix-multipart = "0.7.2"
|
actix-multipart = "0.7.0"
|
||||||
actix-remote-ip = "0.1.0"
|
actix-remote-ip = "0.1.0"
|
||||||
futures-util = "0.3.31"
|
futures-util = "0.3.30"
|
||||||
diesel = { version = "2.2.11", features = ["postgres"] }
|
diesel = { version = "2.2.8", features = ["postgres"] }
|
||||||
diesel_migrations = "2.2.0"
|
diesel_migrations = "2.1.0"
|
||||||
serde = { version = "1.0.219", features = ["derive"] }
|
serde = { version = "1.0.219", features = ["derive"] }
|
||||||
serde_json = "1.0.140"
|
serde_json = "1.0.140"
|
||||||
mailchecker = "6.0.17"
|
mailchecker = "6.0.17"
|
||||||
redis = "0.29.5"
|
redis = "0.29.2"
|
||||||
lettre = "0.11.17"
|
lettre = "0.11.15"
|
||||||
rand = "0.9.1"
|
rand = "0.9.0"
|
||||||
bcrypt = "0.17.0"
|
bcrypt = "0.17.0"
|
||||||
light-openid = "1.0.4"
|
light-openid = "1.0.4"
|
||||||
thiserror = "2.0.12"
|
thiserror = "2.0.12"
|
||||||
serde_with = "3.12.0"
|
serde_with = "3.8.1"
|
||||||
rust_iso3166 = "0.1.14"
|
rust_iso3166 = "0.1.12"
|
||||||
rust-s3 = "0.35.1"
|
rust-s3 = "0.35.1"
|
||||||
sha2 = "0.10.9"
|
sha2 = "0.10.8"
|
||||||
image = "0.25.6"
|
image = "0.25.6"
|
||||||
uuid = { version = "1.16.0", features = ["v4"] }
|
uuid = { version = "1.16.0", features = ["v4"] }
|
||||||
httpdate = "1.0.3"
|
httpdate = "1.0.3"
|
||||||
@ -40,4 +40,4 @@ mime_guess = "2.0.5"
|
|||||||
tempfile = "3.19.1"
|
tempfile = "3.19.1"
|
||||||
base64 = "0.22.1"
|
base64 = "0.22.1"
|
||||||
ical = { version = "0.11.0", features = ["generator", "ical", "vcard"] }
|
ical = { version = "0.11.0", features = ["generator", "ical", "vcard"] }
|
||||||
chrono = "0.4.41"
|
chrono = "0.4.40"
|
||||||
|
@ -10,6 +10,7 @@ use crate::utils::string_utils::rand_str;
|
|||||||
use crate::utils::time_utils::time;
|
use crate::utils::time_utils::time;
|
||||||
use bcrypt::DEFAULT_COST;
|
use bcrypt::DEFAULT_COST;
|
||||||
use diesel::prelude::*;
|
use diesel::prelude::*;
|
||||||
|
use std::io::ErrorKind;
|
||||||
|
|
||||||
/// Get the information of a user, by its id
|
/// Get the information of a user, by its id
|
||||||
pub async fn get_by_id(id: UserID) -> anyhow::Result<User> {
|
pub async fn get_by_id(id: UserID) -> anyhow::Result<User> {
|
||||||
@ -24,7 +25,8 @@ pub async fn get_by_mail(mail: &str) -> anyhow::Result<User> {
|
|||||||
/// Get the information of a user, by its password reset token
|
/// Get the information of a user, by its password reset token
|
||||||
pub async fn get_by_pwd_reset_token(token: &str) -> anyhow::Result<User> {
|
pub async fn get_by_pwd_reset_token(token: &str) -> anyhow::Result<User> {
|
||||||
if token.is_empty() {
|
if token.is_empty() {
|
||||||
return Err(anyhow::Error::from(std::io::Error::other(
|
return Err(anyhow::Error::from(std::io::Error::new(
|
||||||
|
ErrorKind::Other,
|
||||||
"Token is empty!",
|
"Token is empty!",
|
||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
@ -44,7 +46,8 @@ pub async fn get_by_pwd_reset_token(token: &str) -> anyhow::Result<User> {
|
|||||||
/// Get the information of a user, by its account deletion token
|
/// Get the information of a user, by its account deletion token
|
||||||
pub async fn get_by_account_delete_token(token: &str) -> anyhow::Result<User> {
|
pub async fn get_by_account_delete_token(token: &str) -> anyhow::Result<User> {
|
||||||
if token.is_empty() {
|
if token.is_empty() {
|
||||||
return Err(anyhow::Error::from(std::io::Error::other(
|
return Err(anyhow::Error::from(std::io::Error::new(
|
||||||
|
ErrorKind::Other,
|
||||||
"Token is empty!",
|
"Token is empty!",
|
||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
{
|
{
|
||||||
"extends": ["local>renovate/presets"]
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
}
|
"packageRules": [
|
||||||
|
{
|
||||||
|
"matchUpdateTypes": ["minor", "patch"],
|
||||||
|
"automerge": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user