Commit Graph

66 Commits (bc77c993a9e16f70db0ce5c807694779d63a6d8a)

Author SHA1 Message Date
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
Tomáš Mládek 7420fd45d8 add /api/files endpoint, refactor retrieve_file() 2021-04-23 23:28:58 +02:00
Tomáš Mládek 54c1ea711d do not log requests to /api/jobs 2021-03-24 20:37:42 +01:00
Tomáš Mládek 2ffbd4934b refer to types via address, not identifier
also rework invariant entries, add addressable trait
2021-03-15 22:32:04 +01:00
Tomáš Mládek 6e7cdd9887 rename reimport_directory to rescan_vault 2021-03-06 22:14:17 +01:00
Tomáš Mládek 8751e57433 add latest_files endpoint 2021-02-21 19:51:23 +01:00
Tomáš Mládek ed5ea08335 add "jobs", endpoint to query vault update progress 2021-02-20 17:36:19 +01:00
Tomáš Mládek c0e1f42533 consolidate API routes, remove lookup_by_filename 2021-02-20 12:12:48 +01:00
Tomáš Mládek 3ad31a482d add an "insert entry" (PUT) endpoint 2021-02-19 21:58:35 +01:00
Tomáš Mládek f950e02113 add s-exp query language parsing
also rename t/k/v to e/a/v, misc. fixes
2021-02-07 20:18:55 +01:00
Tomáš Mládek f586b93af5 remove "|| true" from init update logic; add command-line opt for that 2020-09-30 01:31:59 +02:00
Tomáš Mládek 0e424c4e8c switch to Vue 3 in ui 2020-09-25 01:11:04 +02:00
Tomáš Mládek 967e3a3c7d lint 2020-09-20 19:32:28 +02:00
Tomáš Mládek 0e0afae089 parallelize hashing with rayon 2020-09-20 19:28:44 +02:00