Commit Graph

79 Commits (74d35e40654c51112eac83a3af7b673578c6cd1f)

Author SHA1 Message Date
Tomáš Mládek 5c5d9d0f04 feat: add --allow-hosts CLI option 2022-10-23 13:30:58 +02:00
Tomáš Mládek 2f74c15553 chore: 32 max port retries 2022-10-22 12:51:21 +02:00
Tomáš Mládek f200ea824f chore: --ui-enabled actually does something 2022-10-22 12:50:52 +02:00
Tomáš Mládek 833fd8903a chore: switch from `built` to `shadow_rs` 2022-10-21 14:02:16 +02:00
Tomáš Mládek c87304602d feat: add cli option to open executable files 2022-10-18 18:19:01 +02:00
Tomáš Mládek 5950685bdf chore: put config into its own struct 2022-10-18 18:10:17 +02:00
Tomáš Mládek ac0b4d4a9d fix: don't run an initial full-hash update every start 2022-09-19 22:21:01 +02:00
Tomáš Mládek 0bb4639859 fix: limit previews to NUM_CPU/2 at a time, avoid brown lock-ups 2022-09-16 17:18:15 +02:00
Tomáš Mládek d671640c04 chore: fix vault/db path semantics, previews in db path, `--clean` param 2022-09-16 16:49:25 +02:00
Tomáš Mládek 0b0c6f2ec3 fix: reenable initial quick vault scan 2022-09-15 20:22:06 +02:00
Tomáš Mládek 5152675bad refactor: use trait objects instead of FsStore directly
also fix most clippy hints
2022-09-15 19:25:08 +02:00
Tomáš Mládek 7c9d0717c2 feat!: multiple vaults
incomplete, but passes tests
2022-09-15 19:24:19 +02:00
Tomáš Mládek 5f9eb24c76 chore: allow CORS from localhost 2022-09-08 21:41:18 +02:00
Tomáš Mládek 3f6d239686 chore: switch from log to tracing 2022-08-07 12:13:12 +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 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 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 674663028d
add metadata to urls on insert 2022-02-10 11:38:45 +01:00
Tomáš Mládek 2337cd54c1
only run full rescan on new db, not init scan 2022-02-04 20:32:10 +01:00
Tomáš Mládek b80d547689
static dirs are handled for both debug and release 2022-02-03 17:48:24 +01:00
Tomáš Mládek 2173ca5b51
add a --clean param 2022-02-03 16:54:36 +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 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 e489fd7b5a
--no-desktop implies --no-browser 2022-01-19 20:36:02 +01:00
Tomáš Mládek b3b6c2d2a8
raise global payload limit 2022-01-18 16:59:46 +01:00
Tomáš Mládek 368eb90d5b
fix compile with no default features 2022-01-07 00:52:09 +01:00
Tomáš Mládek 091a02d530
add endpoint to list all attributes 2022-01-06 23:23:35 +01:00
Tomáš Mládek a43a9d6caf
thumbnails -> previews 2021-12-27 13:13:53 +01:00
Tomáš Mládek 6b95e59acf
try next port if taken 2021-12-27 11:58:01 +01:00
Tomáš Mládek a608659baa
thumbnails module, "text thumbnails" on backend 2021-12-23 23:45:46 +01:00
Tomáš Mládek ce9e552844
rewrite database module as a struct instead of bare fns 2021-12-23 11:10:16 +01:00
Tomáš Mládek 7a1d0a5024 add native/default file open 2021-12-19 22:38:41 +01:00
Tomáš Mládek ac1e110b02 optional "desktop" feature 2021-12-19 20:09:44 +01:00
Tomáš Mládek c44afd0376 default vault name is dirname 2021-12-19 18:53:10 +01:00
Tomáš Mládek 64906a1049 separate hier_roots endpoint, resolve via redirects 2021-12-17 23:42:58 +01:00
Tomáš Mládek 43d7b06c2b Revert "update dependencies"
This reverts commit 58d74d985c.
2021-12-10 14:57:46 +01:00
Tomáš Mládek 58d74d985c update dependencies 2021-12-09 22:03:55 +01:00
Tomáš Mládek 636da63c76 disable browser/ui serving if folder not found 2021-12-04 22:43:37 +01:00
Tomáš Mládek d07c9fd339 [db] add --no-ui param 2021-10-19 22:23:46 +02:00
Tomáš Mládek 2b6886645b more cleanup and refactoring and moving
move models.rs and schema.rs into database::inner
create util module (with hash and jobs)
2021-07-26 21:14:51 +02:00
Tomáš Mládek b78e38162e forgotten takes_value for --db-path 2021-06-19 13:11:27 +02:00
Tomáš Mládek 06d30433e5 allow specifying path to db on cli 2021-06-19 12:32:05 +02:00
Tomáš Mládek 8044137531 add vault --name option, /api/info endpoint 2021-05-06 20:23:20 +02:00
Tomáš Mládek 7f358932f6 fix /latest endpoint 2021-05-06 20:10:40 +02:00