Commit Graph

334 Commits

Author SHA1 Message Date
wukko
128db610e7
web/task-manager: move workers next to runners 2025-04-20 19:03:56 +06:00
wukko
e5d9521819
web/api-url: don't return officialApiURL 2025-04-20 16:31:04 +06:00
wukko
b0fba0dadb
web/api-url: rename defaultApiURL to officialApiURL 2025-04-20 16:18:14 +06:00
wukko
06bc51db54
merge: 10.9 from main
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run service tests / test service functionality (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
Run service tests / test service: ${{ matrix.service }} (push) Has been cancelled
2025-04-02 21:48:58 +06:00
wukko
0fb4cd7888
web: rename queen-bee to task-manager
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
less corny and less cryptic
2025-04-02 14:57:45 +06:00
wukko
f4f7032062
web/scheduler: break the queue loop when necessary 2025-04-02 14:06:48 +06:00
jj
75e1fb689a
web/queue: refactor removeItem() and clearPipelineCache()
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
2025-03-31 13:05:01 +00:00
jj
165fa65964
web/scheduler: rename function to schedule(), cleanup control flow 2025-03-31 13:05:00 +00:00
jj
a183265838
web/workers: split up args by type 2025-03-31 13:05:00 +00:00
jj
53ca7700a5
web/queue: make completedWorkers into set, require pipelineResults 2025-03-31 13:05:00 +00:00
jj
59665af44a
web/api: re-request session if server claims it's invalid 2025-03-30 17:41:28 +00:00
jj
d78ae8124f
web/queen-bee: a bunch of small cleanups 2025-03-29 14:21:04 +00:00
wukko
235f6c0a3e
web/queue: add support for video muting
Some checks failed
Run tests / api sanity check (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
also added a temporary stub for audio and gif processing
2025-03-29 17:55:40 +06:00
wukko
180bda5d49
web/types/api: add proper local processing types 2025-03-29 17:44:45 +06:00
wukko
1ad7c778e5
web: use metadata when processing media locally 2025-03-29 17:25:59 +06:00
wukko
6a13ca347d
api/request/local-processing: don't return an empty audio object
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run service tests / test service functionality (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
Run service tests / test service: ${{ matrix.service }} (push) Has been cancelled
& also throw errors whenever a response is invalid
2025-03-19 13:38:55 +06:00
wukko
9eb342e6d2
web/queue: use the updated local processing api response
& finally remove mime from the web build
2025-03-19 12:25:51 +06:00
wukko
95a5a8ae9b
web/haptics: fix disableHaptics setting path
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
bub fix
2025-03-07 21:50:02 +06:00
wukko
4a5f0aa52c
web/queue-visibility: don't auto open the queue if disabled in settings 2025-03-07 21:36:54 +06:00
wukko
1f0abf5169
web/lib/settings: add accessibility section, add dontAutoOpenQueue
moved `reduceMotion`, `reduceTransparency`, and `disableHaptics` to accessibility, migrated first two from old version of settings
2025-03-07 21:35:39 +06:00
wukko
1137ccfd3b
web/ProcessingQueue: open the queue popover when new item is added 2025-03-07 21:03:50 +06:00
wukko
a84b21a501
web/runners/remux: retry to run the worker 10 times awkwardly
this is absolutely foul and really needs fixing but i guess it works for now 😭
2025-03-06 22:50:42 +06:00
wukko
0bee4b1ade
web/queue/createSavePipeline: store original request & allow to retry 2025-03-06 17:04:47 +06:00
wukko
a3a273a4b1
web/queue: add canRetry and originalRequest to queue items 2025-03-06 17:03:55 +06:00
wukko
158ba6f28f
web/saving-handler: destructure params, reuse request if passed 2025-03-06 17:02:06 +06:00
wukko
d98cb4c2d7
web/util/formatFileSize: don't parseFloat, allow .00 to stick around
prevents rapid jiggle in the queue
2025-03-06 16:57:49 +06:00
wukko
f9c0decd4c
web/api: move api request creation to saving-handler & limit the type
prerequisites for reusing the requests 👀
2025-03-06 15:58:31 +06:00
wukko
9225b31986
web/workers/fetch: retry 5 more times before throwing an error
hopium

should probably add a timeout too
2025-03-06 14:30:52 +06:00
wukko
7e71701e10
web/SmallDialog: add error haptics to error popups 2025-03-05 22:19:08 +06:00
wukko
712318612d
web/haptics: don't use haptics if disabled in settings 2025-03-05 21:40:26 +06:00
wukko
8af4c69be3
web/settings: add disableHaptics 2025-03-05 21:38:47 +06:00
wukko
a3c9ccf5df
web/env: temporary ENABLE_WEBCODECS variable 2025-03-05 20:35:10 +06:00
wukko
0d3044c5e6
web: add haptics for all copy actions
& prevent spamming the copy action along with haptic feedback :3

should probably unify all of this cuz this is really messy
2025-03-05 18:07:46 +06:00
wukko
6b09bd4688
web: add haptics to toggles & switchers 2025-03-05 17:21:45 +06:00
wukko
5fa5a0e7cb
web/device: add browser type (just chrome for now) 2025-02-24 18:36:32 +06:00
wukko
89fccae33d
web/settings/migrate: migrate alwaysProxy 2025-02-24 15:49:07 +06:00
wukko
b463ec7a7d
web/settings: move alwaysProxy & localProcessing, add useWebCodecs 2025-02-24 15:48:52 +06:00
wukko
c0b671e45f
web/queen-bee: move runners to their own files
Some checks are pending
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
Run tests / check lockfile correctness (push) Waiting to run
Run tests / web sanity check (push) Waiting to run
Run tests / api sanity check (push) Waiting to run
2025-02-12 13:34:52 +06:00
wukko
564fc65297
web/workers/remux: init libav only once, terminate after usage 2025-02-12 13:19:13 +06:00
wukko
ff62a4c2e6
web/types/libav: replace "extension" with "format" in FileInfo 2025-02-12 13:17:56 +06:00
wukko
c31c484894
merge: 10.7.3 from main
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
Run tests / check lockfile correctness (push) Waiting to run
Run tests / web sanity check (push) Waiting to run
Run tests / api sanity check (push) Waiting to run
Run service tests / test service functionality (push) Has been cancelled
Run service tests / test service: ${{ matrix.service }} (push) Has been cancelled
2025-02-11 16:18:30 +06:00
Hk-Gosuto
20b1d9ab30
web/youtube-lang: add zh, zh-Hans, and zh-Hant language codes (#1076) 2025-02-11 14:44:06 +06:00
wukko
adaf502d66
web: remove the early prototype of cutout functionality
at the time of this commit, there are no models that are good enough and can run in a web browser. this feature might come back when web onnx gets support for beefier models.
2025-02-07 16:55:28 +06:00
wukko
dc33c07b39
web/storage: add clearCacheStorage function
Some checks are pending
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
Run tests / check lockfile correctness (push) Waiting to run
Run tests / web sanity check (push) Waiting to run
Run tests / api sanity check (push) Waiting to run
2025-02-06 23:45:03 +06:00
wukko
cff47da742
web/ProcessingQueue: add estimated storage usage 2025-02-06 22:56:05 +06:00
wukko
1716c1d2af
web/state/queue: check if pipeline exists before removing workers 2025-02-03 18:08:47 +06:00
wukko
12ea601e6d
web/state/queue: clean up result file when removing the task 2025-02-02 02:01:37 +06:00
wukko
945f87d93b
web/libav: allow passing options to init 2025-02-02 01:53:59 +06:00
wukko
19a342457b
web/storage: catch the missing dir error 2025-02-02 01:08:07 +06:00
wukko
61efa619a2
web/queue: fix filename on downloads, add mimetype, remove duplicates
filename is no longer passed to workers for no reason
2025-02-02 00:31:54 +06:00
wukko
50df95b212
web/queue: clear files from storage when needed 2025-02-02 00:15:44 +06:00
wukko
5464574a3e
web/workers: use opfs instead of blobs for better memory management
spent almost an entire day figuring this out but it's so worth it
2025-02-01 23:26:57 +06:00
wukko
00d376d4ac
web/scheduler: break the global loop if current task is not done
i forgot to put break here, just blinded out that break on line 55 is breaking only its own inner loop
2025-01-31 22:08:57 +06:00
wukko
6513ab38d0
web/state/queue: clear all current tasks on queue clear 2025-01-31 22:02:35 +06:00
wukko
a7c1317af7
web/state/queue: clear pipeline results on error 2025-01-31 22:02:18 +06:00
wukko
1590490db2
web/queue: add a remux worker to saving pipeline, use pipelineResults 2025-01-31 11:22:31 +06:00
wukko
f2325bdc24
web/workers/remux: accept several files, custom args and output 2025-01-31 11:16:04 +06:00
wukko
7caee22aee
web/scheduler: worker pipeline sequencing, file exchange between workers 2025-01-31 11:12:00 +06:00
wukko
d15f1ec8f2
web/workers/remux: differentiate remux worker file event
Some checks are pending
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
Run tests / check lockfile correctness (push) Waiting to run
Run tests / web sanity check (push) Waiting to run
Run tests / api sanity check (push) Waiting to run
2025-01-30 18:58:02 +06:00
wukko
00106e9379
web/libav: accept several inputs, refactor 2025-01-30 18:48:45 +06:00
wukko
5d7724762d
web: very early implementation of a fetch worker
Some checks are pending
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
Run service tests / test service functionality (push) Waiting to run
Run service tests / test service: ${{ matrix.service }} (push) Blocked by required conditions
Run tests / check lockfile correctness (push) Waiting to run
Run tests / web sanity check (push) Waiting to run
Run tests / api sanity check (push) Waiting to run
2025-01-30 01:04:33 +06:00
wukko
91f5d63b93
web/DownloadButton: extract api interaction logic into a lib
download button state is now stored, well, in a state
2025-01-29 16:35:43 +06:00
wukko
b6472d5406
web: update h265 & gif params, migrate old params to new names 2025-01-29 15:40:29 +06:00
wukko
a43e7a629b
web: add local processing setting & api type
response is not handled at all yet, this is a raw draft
2025-01-29 15:06:16 +06:00
jj
75cda47633
web/libav: accept canonical extension if blob is a file
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
2025-01-25 20:13:23 +00:00
wukko
c3cc6c09f4
web/ProcessingQueueItem: state icons, localized strings, fix line break 2025-01-26 01:34:56 +06:00
wukko
de66ac6b08
web/run-worker: subscribe to queue & kill worker when removed from store
& also clear the interval
2025-01-25 23:59:45 +06:00
wukko
1e6b1cb201
web/ProcessingQueueItem: format file size to be readable 2025-01-25 02:06:50 +06:00
wukko
44a99bdb3a
web/queue: add remuxing progress & general improvements
and a bunch of other stuff:
- size and percentage in queue
- indeterminate progress bar
- if libav wasm freezes, the worker kill itself
- cleaner states
- cleaner props
2025-01-25 01:25:53 +06:00
jj
c4c47bdc27
merge: 10.6 updates
Some checks failed
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run service tests / test service functionality (push) Has been cancelled
Run service tests / test service: ${{ matrix.service }} (push) Has been cancelled
2025-01-21 13:36:37 +00:00
wukko
39752b2c5f
web/Omnibox: improve pasting links from clipboard
- `text/uri-list` type is now accepted (such as clipboard data from bluesky)
- http links are now allowed (such as those from rednote)
- rednote share link is properly extracted
2025-01-20 21:26:55 +06:00
wukko
2279b5d845
web: core system for queue & queen bee, move remux to new system
it's 3 am and i think i had a divine intervention
2025-01-19 02:57:15 +06:00
wukko
8a5b25b4ce
web/removebg: fix the incorrect file condition 2025-01-17 01:51:10 +06:00
wukko
b85771dc1d
web/removebg: differentiate messaging even more, add temporary logging 2025-01-17 01:45:11 +06:00
wukko
28eb9ebe5d
web/remux: improve page <-> worker messaging 2025-01-17 01:16:51 +06:00
wukko
8e9347b4a0
web/removebg: fix functionality after build, improve pipeline
- no longer killing the worker if it has done its job correctly and is expected to shut itself down
- no longer reading messages not intended for the worker handler and also made the cobalt messaging distnict
2025-01-17 01:03:59 +06:00
wukko
f544768784
web/cutout: add a button to cancel the job
Some checks are pending
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
Run tests / check lockfile correctness (push) Waiting to run
Run tests / web sanity check (push) Waiting to run
Run tests / api sanity check (push) Waiting to run
2025-01-15 23:14:29 +06:00
wukko
0e26424355
web/libav: remove environment import to fix the worker 2025-01-15 22:25:59 +06:00
wukko
1ed2eef65a
web/remux: convert to a web worker (wip) 2025-01-15 22:11:08 +06:00
wukko
28d8927c08
web/removebg: convert to a proper web worker
Some checks are pending
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
Run tests / check lockfile correctness (push) Waiting to run
Run tests / web sanity check (push) Waiting to run
Run tests / api sanity check (push) Waiting to run
no more hanging ui :3
2025-01-15 17:22:34 +06:00
wukko
2f2d39dc4c
web/removebg: fix types (remove garbage)
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
Run tests / check lockfile correctness (push) Waiting to run
Run tests / web sanity check (push) Waiting to run
Run tests / api sanity check (push) Waiting to run
Run service tests / test service functionality (push) Has been cancelled
Run service tests / test service: ${{ matrix.service }} (push) Has been cancelled
2025-01-14 18:30:33 +06:00
wukko
e02e7f2260
web: very early proof-of-concept of on-device image background removal 2025-01-13 01:26:54 +06:00
wukko
50db4d342a
api & web: roll back the default hls change due to doubled CPU usage
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run service tests / test service functionality (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
Run service tests / test service: ${{ matrix.service }} (push) Has been cancelled
2025-01-08 11:22:05 +06:00
wukko
b47987754a
web/settings/defaults: enable youtubeHLS by default (again) 2025-01-08 10:56:59 +06:00
wukko
937fddf3e9
web/settings/defaults: roll back default hls
Some checks are pending
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
Run tests / check lockfile correctness (push) Waiting to run
Run tests / web sanity check (push) Waiting to run
Run tests / api sanity check (push) Waiting to run
it seems to be doing more bad than good, we need to scale or finish the duck project first
2025-01-07 13:16:58 +06:00
wukko
f07ebaa04c
web/settings/defaults: enable youtubeHLS by default
Some checks are pending
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
Run tests / check lockfile correctness (push) Waiting to run
Run tests / web sanity check (push) Waiting to run
Run tests / api sanity check (push) Waiting to run
yolo #testinprod
2025-01-06 15:38:58 +06:00
wukko
a9515d376a
web/settings: add duck to settings types 2024-12-22 23:04:20 +06:00
wukko
3f46395bd2
web/state/queue: add nukeEntireQueue() 2024-12-18 17:10:08 +06:00
wukko
13ec4f4faf
web/queue: add types & states 2024-12-18 16:59:08 +06:00
wukko
13c4438a57
web/DownloadManager: item component & type
Some checks are pending
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
Run tests / check lockfile correctness (push) Waiting to run
Run tests / web sanity check (push) Waiting to run
Run tests / api sanity check (push) Waiting to run
2024-12-17 01:25:02 +06:00
wukko
d8f3bbe0f3
web/lib/api: return errors from authorization function 2024-11-24 13:37:36 +06:00
wukko
57734822ea
web/settings/migrate: refactor, migrate to v4 schema
why the fuck was tab 2 spaces here
2024-11-24 00:23:06 +06:00
jj
326bc52f27
web: fix turnstile/server-info circular dependency 2024-11-23 14:37:23 +00:00
wukko
d4044e3350
web/server-info: remove turnstile in more cases 2024-11-23 19:14:14 +06:00
wukko
601597eb15
web: add support for custom api keys & improve turnstile states 2024-11-23 19:13:23 +06:00
wukko
baebeed488
web/settings/v4: add api key settings, remove override settings 2024-11-23 19:08:24 +06:00
wukko
9c8cb5611f
web/server-info: reload the page only if the sitekey actually changed 2024-11-20 14:26:45 +06:00
wukko
a3c807a993
web/turnstile: use own callback for refreshing the widget
or at least try to, idk man, im so tired of cf turnstile
2024-11-19 00:20:27 +06:00
wukko
b38cb77952
web/turnstile: refresh turnstile if it expires in background
also renamed `turnstileLoaded` to `turnstileSolved` for more clarity
2024-11-18 21:05:47 +06:00
wukko
d8348dfa1c
web: remove instance override warning, use custom api right away 2024-11-18 16:32:33 +06:00