Compare commits
116 Commits
20251204
...
renovate/t
| Author | SHA1 | Date | |
|---|---|---|---|
| 0c2815a3e1 | |||
| 054940716a | |||
| 0f374f7125 | |||
| 9e35af3341 | |||
| e864925f63 | |||
| f544946d06 | |||
| 0671911d20 | |||
| e5f5fe6e90 | |||
| 37d31b42b3 | |||
| 474bacfd23 | |||
| 893ff2cbbe | |||
| a738ab5525 | |||
| 78c35524d0 | |||
| f566847809 | |||
| d8e6090717 | |||
| 6a26d9a4c0 | |||
| c2bed332da | |||
| 7d2aedef97 | |||
| f12a2ca1ba | |||
| f0d7fbf82c | |||
| 5220f3e873 | |||
| 7e6f9bd648 | |||
| e3e53abe34 | |||
| 65ee2ac6dc | |||
| 8faa3592c4 | |||
| 690c305207 | |||
| 5c8b7a2082 | |||
| 9f9fd28b6a | |||
| 3d98c276b0 | |||
| aec1594a98 | |||
| 366238e9b8 | |||
| 888f629e8a | |||
| 924433ca40 | |||
| 99b4f67275 | |||
| a6ff89e80d | |||
| 6d3ba0ccae | |||
| ec3377692d | |||
| 574761d39b | |||
| 09c5b9f187 | |||
| 11f03f88c6 | |||
| 2ebf17f065 | |||
| b9bfe17314 | |||
| f56c646596 | |||
| 697fcc481e | |||
| 2fbca2c411 | |||
| 399b13fdbc | |||
| 166b860c1a | |||
| 96b02dd73a | |||
| 5dd4aa6c0e | |||
| 8f4480e555 | |||
| 06e1f60314 | |||
| a7432a4014 | |||
| be5e7eb328 | |||
| c1e703c4b4 | |||
| 071aad8147 | |||
| f4b3c0aa16 | |||
| daca7410d7 | |||
| 23074ac354 | |||
| 36bd8d0672 | |||
| 6162555702 | |||
| 951d0db0b7 | |||
| ef90aba489 | |||
| 6b39fd11bd | |||
| bf6561fa87 | |||
| e5feecc703 | |||
| 153ad14a51 | |||
| e5494e51a3 | |||
| f04ab4591b | |||
| ca2cdb2f79 | |||
| 795a12c8d0 | |||
| 79e78006fa | |||
| 18c0fbef3c | |||
| 0ac6fc4ac3 | |||
| 2aaced17d8 | |||
| 9da2a9e9b3 | |||
| 9595ff2e71 | |||
| 5bd62d7683 | |||
| 7e747b50f3 | |||
| a9a5d60edd | |||
| 89dbc252e8 | |||
| 3a6b2c6cf2 | |||
| 98c813b220 | |||
| ceb7859169 | |||
| 96e597ca59 | |||
| d9630fbc4c | |||
| 4d7db2de2a | |||
| 4c0be88570 | |||
| 2f933a247f | |||
| f6a7132d43 | |||
| 1089b5a6a6 | |||
| 28a1b5f4f0 | |||
| acf91c3f0e | |||
| fadb9e6d46 | |||
| 17bad4fcfd | |||
| b3dfc35103 | |||
| 602f663217 | |||
| 5ebfbf6aec | |||
| aad0a74ad5 | |||
| 382e24e17b | |||
| 1876c7b43d | |||
| 73af601a16 | |||
| 6247463c70 | |||
| 9425ed9a12 | |||
| 430ad85c37 | |||
| 29e50bd70c | |||
| 0e83e804d8 | |||
| bd674bfb67 | |||
| fec81ac92e | |||
| d3e25eed9e | |||
| ba5f5f2557 | |||
| 7e548ad5d1 | |||
| 7b63bb0d05 | |||
| 788018451a | |||
| 7b3a2d6a3f | |||
| 0d462f848d | |||
| 9c6c338919 |
@@ -6,7 +6,7 @@ name: default
|
|||||||
steps:
|
steps:
|
||||||
# Frontend
|
# Frontend
|
||||||
- name: web_build
|
- name: web_build
|
||||||
image: node:23
|
image: node:25
|
||||||
volumes:
|
volumes:
|
||||||
- name: web_app
|
- name: web_app
|
||||||
path: /tmp/web_build
|
path: /tmp/web_build
|
||||||
|
|||||||
1240
matrixgw_backend/Cargo.lock
generated
1240
matrixgw_backend/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -6,34 +6,34 @@ edition = "2024"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
env_logger = "0.11.8"
|
env_logger = "0.11.8"
|
||||||
log = "0.4.29"
|
log = "0.4.29"
|
||||||
clap = { version = "4.5.53", features = ["derive", "env"] }
|
clap = { version = "4.5.56", features = ["derive", "env"] }
|
||||||
lazy_static = "1.5.0"
|
lazy_static = "1.5.0"
|
||||||
anyhow = "1.0.100"
|
anyhow = "1.0.100"
|
||||||
serde = { version = "1.0.228", features = ["derive"] }
|
serde = { version = "1.0.228", features = ["derive"] }
|
||||||
tokio = { version = "1.48.0", features = ["full"] }
|
tokio = { version = "1.49.0", features = ["full"] }
|
||||||
actix-web = "4.12.1"
|
actix-web = "4.12.1"
|
||||||
actix-session = { version = "0.11.0", features = ["redis-session"] }
|
actix-session = { version = "0.11.0", features = ["redis-session"] }
|
||||||
actix-remote-ip = "0.1.0"
|
actix-remote-ip = "0.1.0"
|
||||||
actix-cors = "0.7.1"
|
actix-cors = "0.7.1"
|
||||||
light-openid = "1.0.4"
|
light-openid = "1.1.0"
|
||||||
bytes = "1.11.0"
|
bytes = "1.11.1"
|
||||||
sha2 = "0.10.9"
|
sha2 = "0.10.9"
|
||||||
base16ct = { version = "0.3.0", features = ["alloc"] }
|
base16ct = { version = "0.3.0", features = ["alloc"] }
|
||||||
futures-util = "0.3.31"
|
futures-util = "0.3.31"
|
||||||
jwt-simple = { version = "0.12.13", default-features = false, features = ["pure-rust"] }
|
jwt-simple = { version = "0.12.14", default-features = false, features = ["pure-rust"] }
|
||||||
thiserror = "2.0.17"
|
thiserror = "2.0.18"
|
||||||
uuid = { version = "1.19.0", features = ["v4", "serde"] }
|
uuid = { version = "1.19.0", features = ["v4", "serde"] }
|
||||||
ipnet = { version = "2.11.0", features = ["serde"] }
|
ipnet = { version = "2.11.0", features = ["serde"] }
|
||||||
rand = "0.9.2"
|
rand = "0.9.2"
|
||||||
hex = "0.4.3"
|
hex = "0.4.3"
|
||||||
mailchecker = "6.0.19"
|
mailchecker = "6.0.19"
|
||||||
matrix-sdk = { version = "0.14.0" }
|
matrix-sdk = { version = "0.16.0", features = ["e2e-encryption"] }
|
||||||
matrix-sdk-ui = "0.14.0"
|
matrix-sdk-ui = "0.16.0"
|
||||||
url = "2.5.7"
|
url = "2.5.8"
|
||||||
ractor = "0.15.9"
|
ractor = "0.15.10"
|
||||||
serde_json = "1.0.145"
|
serde_json = "1.0.149"
|
||||||
lazy-regex = "3.4.2"
|
lazy-regex = "3.5.1"
|
||||||
actix-ws = "0.3.0"
|
actix-ws = "0.3.1"
|
||||||
infer = "0.19.0"
|
infer = "0.19.0"
|
||||||
rust-embed = "8.9.0"
|
rust-embed = "8.11.0"
|
||||||
mime_guess = "2.0.5"
|
mime_guess = "2.0.5"
|
||||||
@@ -4,11 +4,9 @@ use crate::utils::crypt_utils::sha512;
|
|||||||
use actix_web::dev::Payload;
|
use actix_web::dev::Payload;
|
||||||
use actix_web::http::header;
|
use actix_web::http::header;
|
||||||
use actix_web::{FromRequest, HttpRequest, HttpResponse, web};
|
use actix_web::{FromRequest, HttpRequest, HttpResponse, web};
|
||||||
use matrix_sdk::crypto::{AttachmentDecryptor, MediaEncryptionInfo};
|
|
||||||
use matrix_sdk::media::{MediaFormat, MediaRequestParameters, MediaThumbnailSettings};
|
use matrix_sdk::media::{MediaFormat, MediaRequestParameters, MediaThumbnailSettings};
|
||||||
use matrix_sdk::ruma::events::room::MediaSource;
|
use matrix_sdk::ruma::events::room::MediaSource;
|
||||||
use matrix_sdk::ruma::{OwnedMxcUri, UInt};
|
use matrix_sdk::ruma::{OwnedMxcUri, UInt};
|
||||||
use std::io::{Cursor, Read};
|
|
||||||
|
|
||||||
#[derive(serde::Deserialize)]
|
#[derive(serde::Deserialize)]
|
||||||
pub struct MediaMXCInPath {
|
pub struct MediaMXCInPath {
|
||||||
@@ -54,21 +52,6 @@ pub async fn serve_media(req: HttpRequest, source: MediaSource, thumbnail: bool)
|
|||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
// Decrypt file if needed
|
|
||||||
let media = if let MediaSource::Encrypted(file) = source {
|
|
||||||
let mut cursor = Cursor::new(media);
|
|
||||||
let mut decryptor =
|
|
||||||
AttachmentDecryptor::new(&mut cursor, MediaEncryptionInfo::from(*file))?;
|
|
||||||
|
|
||||||
let mut decrypted_data = Vec::new();
|
|
||||||
|
|
||||||
decryptor.read_to_end(&mut decrypted_data)?;
|
|
||||||
|
|
||||||
decrypted_data
|
|
||||||
} else {
|
|
||||||
media
|
|
||||||
};
|
|
||||||
|
|
||||||
let digest = sha512(&media);
|
let digest = sha512(&media);
|
||||||
|
|
||||||
let mime_type = infer::get(&media).map(|x| x.mime_type());
|
let mime_type = infer::get(&media).map(|x| x.mime_type());
|
||||||
|
|||||||
@@ -11,7 +11,9 @@ pub async fn hierarchy(client: MatrixClientExtractor) -> HttpResult {
|
|||||||
let space_service = SpaceService::new(client.client.client);
|
let space_service = SpaceService::new(client.client.client);
|
||||||
let mut hierarchy = HashMap::new();
|
let mut hierarchy = HashMap::new();
|
||||||
for space in spaces {
|
for space in spaces {
|
||||||
let rooms = space_service.space_room_list(space.room_id().to_owned());
|
let rooms = space_service
|
||||||
|
.space_room_list(space.room_id().to_owned())
|
||||||
|
.await;
|
||||||
while !matches!(
|
while !matches!(
|
||||||
rooms.pagination_state(),
|
rooms.pagination_state(),
|
||||||
SpaceRoomListPaginationState::Idle { end_reached: true }
|
SpaceRoomListPaginationState::Idle { end_reached: true }
|
||||||
|
|||||||
622
matrixgw_frontend/package-lock.json
generated
622
matrixgw_frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -13,36 +13,36 @@
|
|||||||
"@emotion/react": "^11.14.0",
|
"@emotion/react": "^11.14.0",
|
||||||
"@emotion/styled": "^11.14.1",
|
"@emotion/styled": "^11.14.1",
|
||||||
"@fontsource/roboto": "^5.2.9",
|
"@fontsource/roboto": "^5.2.9",
|
||||||
"@mui/icons-material": "^7.3.6",
|
"@mui/icons-material": "^7.3.7",
|
||||||
"@mui/material": "^7.3.6",
|
"@mui/material": "^7.3.7",
|
||||||
"@mui/x-data-grid": "^8.20.0",
|
"@mui/x-data-grid": "^8.26.0",
|
||||||
"@mui/x-date-pickers": "^8.19.0",
|
"@mui/x-date-pickers": "^8.26.0",
|
||||||
"date-and-time": "^4.1.1",
|
"date-and-time": "^4.2.0",
|
||||||
"dayjs": "^1.11.19",
|
"dayjs": "^1.11.19",
|
||||||
"emoji-picker-react": "^4.16.1",
|
"emoji-picker-react": "^4.17.4",
|
||||||
"is-cidr": "^6.0.1",
|
"is-cidr": "^6.0.2",
|
||||||
"qrcode.react": "^4.2.0",
|
"qrcode.react": "^4.2.0",
|
||||||
"react": "^19.1.1",
|
"react": "^19.2.4",
|
||||||
"react-dom": "^19.1.1",
|
"react-dom": "^19.2.4",
|
||||||
"react-favicon": "^2.0.7",
|
"react-favicon": "^2.0.7",
|
||||||
"react-json-view-lite": "^2.5.0",
|
"react-json-view-lite": "^2.5.0",
|
||||||
"react-router": "^7.10.0"
|
"react-router": "^7.13.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/js": "^9.39.1",
|
"@eslint/js": "^9.39.2",
|
||||||
"@types/node": "^24.10.1",
|
"@types/node": "^25.1.0",
|
||||||
"@types/react": "^19.2.7",
|
"@types/react": "^19.2.10",
|
||||||
"@types/react-dom": "^19.2.3",
|
"@types/react-dom": "^19.2.3",
|
||||||
"@vitejs/plugin-react": "^5.1.1",
|
"@vitejs/plugin-react": "^5.1.3",
|
||||||
"eslint": "^9.39.1",
|
"eslint": "^9.39.2",
|
||||||
"eslint-plugin-react-hooks": "^7.0.1",
|
"eslint-plugin-react-hooks": "^7.0.1",
|
||||||
"eslint-plugin-react-refresh": "^0.4.22",
|
"eslint-plugin-react-refresh": "^0.4.26",
|
||||||
"globals": "^16.5.0",
|
"globals": "^16.5.0",
|
||||||
"typescript": "~5.9.3",
|
"typescript": "~5.9.3",
|
||||||
"typescript-eslint": "^8.48.1",
|
"typescript-eslint": "^8.54.0",
|
||||||
"vite": "npm:rolldown-vite@7.2.10"
|
"vite": "npm:rolldown-vite@7.3.1"
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"vite": "npm:rolldown-vite@7.2.10"
|
"vite": "npm:rolldown-vite@7.3.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user