Commit Graph

9275 Commits

Author SHA1 Message Date
Georges-Antoine Assi
3e9f59c546 Upload dialog hotfixed + clear button 2024-08-26 12:58:38 -04:00
SaraVieira
f6c5dec9cc feat(UX) - Allow links to open in a new tab 2024-08-25 12:00:25 +01:00
Georges-Antoine Assi
c8b8bcabc8 Replace illegal fs chars in filenames 2024-08-21 22:26:56 -04:00
Georges-Antoine Assi
e55401fa95 Merge pull request #1108 from rommapp/open-collectibe
Switch funding to open collective
2024-08-21 19:07:38 -04:00
Georges-Antoine Assi
5126ab18e7 Switch funding to open collective 2024-08-21 22:48:42 +00:00
Michael Manganiello
84f3a2ca26 Merge pull request #1105 from rommapp/misc/use-single-sqlalchemy-engine
misc: Use single SQLAlchemy engine and session maker
3.5.0-alpha.1
2024-08-21 10:49:36 -03:00
Michael Manganiello
a85c84a7d4 misc: Use single SQLAlchemy engine and session maker
As recommended by SQLAlchemy [1], this change makes a single
instantiation of the database engine and session maker, instead of one
entity per handler.

It also uses the provided `URL` constructor to better define the
database URL structure.

[1] https://docs.sqlalchemy.org/en/20/core/connections.html#basic-usage
2024-08-21 09:56:28 -03:00
Michael Manganiello
419f3baf4b Merge pull request #1102 from rommapp/feat/use-nginx-mod-zip
feat: Use nginx mod_zip to generate multi-file zip downloads
2024-08-21 00:20:23 -03:00
Michael Manganiello
0680063ebc misc: Add comments to Dockerfile about mod_zip 2024-08-21 00:08:25 -03:00
Michael Manganiello
0fad8ac282 feat: Use nginx mod_zip to generate multi-file zip downloads
This change installs and configures the `mod_zip` nginx module [1],
which allows nginx to stream ZIP files directly.

It includes a workaround needed to correctly calculate CRC-32 values for
included files, by including a new `server` section listening at port
8081, only used for the file requests to be upstream subrequests that
correctly trigger the CRC-32 calculation logic.

Also, to be able to provide a `m3u` file generated on the fly, we add a
`/decode` endpoint fully implemented in nginx using NJS, which receives
a `value` URL param, and decodes it using base64. The decoded value is
returned as the response.

That way, the contents of the `m3u` file is base64-encoded, and set as
part of the response, for `mod_zip` to include it in the ZIP file.

[1] https://github.com/evanmiller/mod_zip
2024-08-20 22:39:33 -03:00
Georges-Antoine Assi
a6e2b8b330 Merge pull request #1100 from rommapp/emulatorjs-4.1.1
Bump emulatorjs to 4.1.1
2024-08-19 23:47:00 -04:00
Georges-Antoine Assi
bb53b6eb56 actually lock the package json 2024-08-19 23:42:16 -04:00
Georges-Antoine Assi
2ec349d096 Bump emulatorjs to 4.1.1 2024-08-19 23:23:45 -04:00
Georges-Antoine Assi
794a45498c Merge pull request #1097 from rommapp/hotifix-fake-compressed-files
Skip compressed files if theyre invalid
2024-08-18 15:11:04 -04:00
Georges-Antoine Assi
49e493802f Skip compressed files if theyre invalid 2024-08-18 14:14:38 -04:00
Georges-Antoine Assi
608ada6084 Merge pull request #1096 from rommapp/upload-progress-bars
Upload progress bars
2024-08-18 09:58:01 -04:00
Georges-Antoine Assi
d384195c7f fixup trunk 2024-08-17 22:47:50 -04:00
Georges-Antoine Assi
faba97da5a changes from self reivew 2024-08-17 13:20:17 -04:00
Georges-Antoine Assi
716114e394 parallel upload 2024-08-17 12:35:45 -04:00
Georges-Antoine Assi
83b4f32a56 mult progress by 100 2024-08-17 12:08:00 -04:00
Georges-Antoine Assi
a071c0a487 actual real upload streaming 2024-08-17 11:50:14 -04:00
Georges-Antoine Assi
2d727699f8 speed improvements 2024-08-16 23:59:58 -04:00
Georges-Antoine Assi
625bfcc71e Merge branch 'master' into upload-progress-bars 2024-08-16 21:01:56 -04:00
Georges-Antoine Assi
65ffa44b8a tweaks 2024-08-16 21:01:11 -04:00
Georges-Antoine Assi
6c2f221b52 better progress up with speeds 2024-08-16 20:49:12 -04:00
Georges-Antoine Assi
4fb19b3b59 fix uploading dups 2024-08-16 20:11:26 -04:00
Georges-Antoine Assi
e9c09b46aa better upload progress state 2024-08-16 20:07:04 -04:00
Georges-Antoine Assi
8743b03488 add rudimentary upload progress bars 2024-08-16 18:52:28 -04:00
Georges-Antoine Assi
3c12c77034 Merge pull request #1093 from rommapp/romm-1091
Add icon to gallery header for current platform
2024-08-16 11:56:33 -04:00
Zurdi
bdc5b37b2c Merge branch 'master' into romm-1091 2024-08-16 17:53:06 +02:00
Georges-Antoine Assi
d1c7d5cd50 move filter bar into sidebar on mobile 2024-08-16 11:28:51 -04:00
Michael Manganiello
bc0ad2e784 Merge pull request #1095 from rommapp/misc/pin-node-20
misc: Pin Node version to v20
2024-08-16 11:35:53 -03:00
Michael Manganiello
0c3afc0ebc misc: Pin Node version to v20
Avoid the stack being automatically upgraded to a new Node version, when
a different LTS is released.
2024-08-16 10:18:03 -03:00
Georges-Antoine Assi
0b77c70a93 Merge pull request #1084 from rommapp/feat/implement-x-accel-redirect
feat: Use X-Accel-Redirect to improve file download speed
2024-08-16 09:01:32 -04:00
Michael Manganiello
4f5029f78e fix: Do not set Content-Length when X-Accel-Redirect is used 2024-08-16 09:13:51 -03:00
Georges-Antoine Assi
e8e5a878c5 Merge branch 'master' into feat/implement-x-accel-redirect 2024-08-15 23:55:02 -04:00
Georges-Antoine Assi
fed465a64d use functions directly on file response 2024-08-15 23:49:57 -04:00
Michael Manganiello
822ef7630a Merge pull request #1092 from rommapp/misc/upgrade-python-3.12
misc: Upgrade Python to v3.12 and Alpine to v3.20
2024-08-15 20:52:30 -03:00
Georges-Antoine Assi
1779872cb0 Add icon to gallery header for current platform 2024-08-15 19:42:57 -04:00
Michael Manganiello
0fdbbe4625 misc: Upgrade Python to v3.12 and Alpine to v3.20
Included upgrades:
* Python: v3.12
* Alpine: v3.20 (which uses Python 3.12)
* nginx: v1.27.1
2024-08-15 20:14:32 -03:00
Georges-Antoine Assi
ea8c3b622a Merge pull request #1088 from rommapp/romm-1087
Fix home icon size on safari/ios
2024-08-15 10:14:10 -04:00
Georges-Antoine Assi
6e5d4dc90f Fix home icon size on safari/ios 2024-08-15 09:17:18 -04:00
Georges-Antoine Assi
0eb5bbad6d add some missing headers 2024-08-15 03:58:32 +00:00
Georges-Antoine Assi
9c3cd2436b Merge pull request #1086 from rommapp/fix-ejs-ruffle
Fix playing emulatorjs + better platform icon loading
2024-08-13 11:49:22 -04:00
Georges-Antoine Assi
3d96382780 Fix playing emulatorjs + better platform icon loading 2024-08-13 11:18:22 -04:00
Georges-Antoine Assi
9281760975 merge gzip changes into branch 2024-08-13 00:31:48 -04:00
Michael Manganiello
d20f4ad935 feat: Use X-Accel-Redirect to improve file download speed
Instead of making FastAPI handle file download, which has serious
performance issues on big files [1], this change uses nginx's `X-Accel`
feature to delegate single-file downloads to nginx.

Partial fix for #1079, as it solves the CPU usage issue for single-file
downloads.

[1] https://github.com/fastapi/fastapi/discussions/6050
2024-08-12 20:01:00 -03:00
Georges-Antoine Assi
dff554b53b Merge pull request #1081 from rommapp/hotfix-hash-calc-scans
Hotfix scans when running HASH_SCAN
2024-08-12 12:12:11 -04:00
Georges-Antoine Assi
b3a50021b7 run quick before hash scan 2024-08-12 11:57:47 -04:00
Georges-Antoine Assi
e24a3b86bd Hotfix scans when running HASH_SCAN 2024-08-12 11:37:49 -04:00