Commit Graph

110 Commits (a7b0a5c00ae2ee5fbeaa796ab06b37ab610c88c0)

Author SHA1 Message Date
Tomáš Mládek a7b0a5c00a feat!: multiple vaults
incomplete, but passes tests
2022-09-14 22:48:59 +02:00
Tomáš Mládek afbd3b97ef fix: update project url, fix tests
:)
2022-07-31 22:53:12 +02:00
Tomáš Mládek 8c60a617a2
query lang - addresses are denoted by @, values need not match db deserialization format
e.g.` (matches @address ? ?)`, and `(matches ? ? "foo")` instead of "Sfoo"
2022-03-30 12:29:52 +02:00
Tomáš Mládek fd72034571
code cosmetics, lints
useless format! in tests
use raw strings where appropriate
2022-03-30 12:29:51 +02:00
Tomáš Mládek 5bb36e9ec6 rudimentary optional authentication for mutating operations 2022-03-24 11:12:59 +01:00
Tomáš Mládek 376d929232
return attribute labels in /all/attributes endpoint 2022-03-02 22:39:05 +01:00
Tomáš Mládek ef3a130855
refactor Jobs and their handling, really fix infinitely hanging jobs 2022-03-02 22:27:51 +01:00
Tomáš Mládek 1c316427ab
extract all metadata on vault rescan 2022-03-02 22:27:07 +01:00
Tomáš Mládek 82c7bfcb64
run (all) extractors for manually added blobs and addresses 2022-02-28 22:43:23 +01:00
Tomáš Mládek 920e67a283
add an "is_needed" check for extractors; add tests for web extractor 2022-02-28 22:34:38 +01:00
Tomáš Mládek 27cc6eb31c
refactor - remove unnecessary async fns, add helper fn for running blocking tasks in background
also impl Error for JobInProgressError
2022-02-28 22:34:31 +01:00
Tomáš Mládek d03998915c
add web::block to all db actions in route handlers 2022-02-27 15:03:15 +01:00
Tomáš Mládek 9541c397e3 better handling of invalid paths in store view 2022-02-21 22:25:48 +01:00
Tomáš Mládek 583fea153c add store info display // all blob listing 2022-02-21 22:01:31 +01:00
Tomáš Mládek 6820e9a174
create extractor trait 2022-02-15 13:32:46 +01:00
Tomáš Mládek add8371776
send cache-control (immutable, 31) for /raw/{hash} 2022-02-15 01:21:04 +01:00
Tomáš Mládek b417dad0ec
impl From<AsRef<str>> for EntryValue, replace where appropriate 2022-02-13 12:56:29 +01:00
Tomáš Mládek 75f9282ea2
don't label newly created uuids 2022-02-12 22:22:08 +01:00
Tomáš Mládek a74e86e70d
allow uuid generation by server 2022-02-12 21:48:29 +01:00
Tomáš Mládek ebf48c0e5f
allow inserting multiple entries (in transaction) in /api/obj 2022-02-12 14:55:54 +01:00
Tomáš Mládek 038e4fd7d2
move InEntry/InAddress to routes 2022-02-12 14:51:28 +01:00
Tomáš Mládek 471c60c19e
fix entry PUTting 2022-02-12 13:56:41 +01:00
Tomáš Mládek 689350aed5
only return in progress jobs by default on /api/jobs 2022-02-10 15:20:15 +01:00
Tomáš Mládek 7c38406b16
thumbnail creation as jobs 2022-02-10 15:11:38 +01:00
Tomáš Mládek 0dd5616e9c
allow overriding mime for thumbs 2022-02-10 14:58:00 +01:00
Tomáš Mládek 423e039d0a
forgotten debug prints 2022-02-10 11:39:04 +01:00
Tomáš Mládek 674663028d
add metadata to urls on insert 2022-02-10 11:38:45 +01:00
Tomáš Mládek 5ad64a6591
make a PUT to /api/obj also insert bare addresses and prepare metadata; bunch of tidying up
/api/obj returns [entry_addr, entity_addr]
ADDED_ATTR is a const
impl TryInto<Address > for InAddress
2022-02-09 20:37:20 +01:00
Tomáš Mládek b5a90ce57c
support denoting entry entities in decomposed format (adding URLs) 2022-02-07 21:59:30 +01:00
Tomáš Mládek 686020e579
include decoded address in /api/obj 2022-02-07 20:54:14 +01:00
Tomáš Mládek 2c36373d85
fix redirect to "/" in /api/thumb 2022-02-07 10:25:38 +01:00
Tomáš Mládek a83149e746
switch from GET /api/obj?query endpoint to POST /api/query endpoint
also switch from useSWR shim taking `() => SWRKey` as param
2022-02-06 22:25:33 +01:00
Tomáš Mládek 8d51529f38
retireve_file takes reference 2022-02-04 20:33:07 +01:00
Tomáš Mládek f8a0410282
hide desktop features when desktop is disabled 2022-02-04 12:11:00 +01:00
Tomáš Mládek b215cf8e0d
cosmetics 2022-02-04 12:11:00 +01:00
Tomáš Mládek faed70fe03
content disposition tweaks (attachment by default, ui target=_blank) 2022-02-03 16:54:37 +01:00
Tomáš Mládek a5912ae3d2
move preview generation off the route thread 2022-02-03 00:11:35 +01:00
Tomáš Mládek cb22756a47
separate endpoint for attr overwrites, implement AttributeUpdate 2022-02-02 00:45:05 +01:00
Tomáš Mládek 9c940e7c23 add explicit quick_check/disable_synchronous flags, ?full param to rescan endpoint 2022-01-31 17:26:31 +01:00
Tomáš Mládek 768a608b02 add "built" crate 2022-01-31 15:19:48 +01:00
Tomáš Mládek 19b25666c6
show PDFs in BlobPreview, add ?inline query param to /raw/ 2022-01-27 15:55:48 +01:00
Tomáš Mládek fa957794e5
encode/decode -> b58_encode/decode 2022-01-26 16:55:23 +01:00
Tomáš Mládek 4a02921bbd send a http 303 if thumbnail isn't applicable 2022-01-24 18:26:53 +01:00
Tomáš Mládek 1f058670f8
don't duplicate file if it already exists 2022-01-23 15:01:14 +01:00
Tomáš Mládek 3cc0dcff45
also LBL uploaded file 2022-01-23 14:55:49 +01:00
Tomáš Mládek 893a87a094
unify adding files via rescans and ui 2022-01-23 14:50:37 +01:00
Tomáš Mládek a91711adc8 only disable sqlite synchronous mode on initial update 2022-01-21 17:57:51 +01:00
Tomáš Mládek b4b41e45e3
desktop enables are actually disabled 2022-01-19 20:42:36 +01:00
Tomáš Mládek 7def06e153 copy & remove instead of persist/rename 2022-01-18 22:43:55 +01:00
Tomáš Mládek d46f449e4b
file upload
todo:
  - don't return file hash in ListingResult, solve this marking problem in general?
  - work around persisterror across filesystems
  - add proper BLOB metadata
2022-01-18 17:05:45 +01:00