Commit Graph

110 Commits (a7b0a5c00ae2ee5fbeaa796ab06b37ab610c88c0)

Author SHA1 Message Date
Tomáš Mládek 338be4be10
/raw/ queries of entries 2022-01-14 22:04:53 +01:00
Tomáš Mládek 8ceb310d9e
preparations for a separate attr update endpoint 2022-01-09 21:18:19 +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 aa67b93e4e
improve mime & content-disposition for thumbnails 2021-12-26 17:40:47 +01:00
Tomáš Mládek a608659baa
thumbnails module, "text thumbnails" on backend 2021-12-23 23:45:46 +01:00
Tomáš Mládek 0f3dd88193
clippy fixes, no default feature compile fix 2021-12-23 11:18:04 +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 b2768cbad9
add warning on parent native open 2021-12-22 11:56:06 +01:00
Tomáš Mládek 2ccfce6058
remove some file-centric language 2021-12-21 23:16:10 +01:00
Tomáš Mládek 057ac8e35f
open dir instead of 403 on native executable 2021-12-21 17:43:29 +01:00
Tomáš Mládek b52d664cd4
error logging in native open 2021-12-21 16:05:27 +01:00
Tomáš Mládek 7d0b23e955
impl fromstr for query 2021-12-21 12:01:40 +01:00
Tomáš Mládek 7a1d0a5024 add native/default file open 2021-12-19 22:38:41 +01:00
Tomáš Mládek 64906a1049 separate hier_roots endpoint, resolve via redirects 2021-12-17 23:42:58 +01:00
Tomáš Mládek e0a603d154 remove list_hier, retrieve_object retrieves attrs of attrs, rework /api/hier 2021-12-17 23:04:35 +01:00
Tomáš Mládek a33943bdb7 handle root /hier/ query 2021-12-17 14:15:56 +01:00
Tomáš Mládek 2944ce3d81 fix missing hier_label_attr, add trace to list_hier 2021-08-18 11:06:38 +02:00
Tomáš Mládek 816f04fc86 upend hierarchies - first step
separate hierarchies.rs module from filesystem.rs, simplify and fix path handling
2021-08-18 11:06:36 +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 754c315cd2 refactor database.rs into separate files 2021-07-26 21:00:05 +02:00
Tomáš Mládek 682eca3e5a allow insertion of invariants via api 2021-06-20 14:07:15 +02:00
Tomáš Mládek 9c71eea8e1 return version info in /api/info 2021-06-18 18:28:18 +02:00
Tomáš Mládek 8044137531 add vault --name option, /api/info endpoint 2021-05-06 20:23:20 +02:00
Tomáš Mládek 7420fd45d8 add /api/files endpoint, refactor retrieve_file() 2021-04-23 23:28:58 +02: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 105a9c7e0b fix http error code for PUT /obj 2021-02-21 17:49:34 +01:00
Tomáš Mládek e462801823 fix entry addresses for /api/obj 2021-02-21 17:08:33 +01:00
Tomáš Mládek 302f435c5d /query returns map with hashes 2021-02-21 12:30:17 +01:00
Tomáš Mládek 550e8d5c0f fix http error code for /query 2021-02-21 10:38:31 +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 5096e1eece refactoring: remove query_entries(), from_sexp into TryFrom, query_to_sqlite is a method 2021-02-20 12:39: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 3fb436708b attempt (?) to return hash from insert_entry, improve error logging 2021-02-19 22:18:31 +01:00
Tomáš Mládek 3ad31a482d add an "insert entry" (PUT) endpoint 2021-02-19 21:58:35 +01:00
Tomáš Mládek dc71bec67a implement Serialize/Deserialize for Entry, Address, remove as_json
+ cosmetics (to_str -> to_string)
2021-02-19 21:56:25 +01:00
Tomáš Mládek 99f6c6c052 remove InnerEntry, consolidate into Entry 2021-02-19 20:27:30 +01:00
Tomáš Mládek 98a9c88173 add upend query lang -> sqlite conversion; first working prototype 2021-02-12 02:06:39 +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 7fd537a948 add DELETE endpoint for objects, update URLs (/get/ -> /obj/) 2020-09-29 00:55:09 +02:00
Tomáš Mládek 2307c7bd57 expand query_entries for fuzzier queries; fix filename lookup 2020-09-29 00:30:00 +02:00
Tomáš Mládek 9a5a7383a4 add bulk_retrieve_objects, add base inspect view, upgrade typescript, add swrv...
fix type issues, better http errors on mangled addresses
2020-09-25 02:45:17 +02:00
Tomáš Mládek 80541fe978 non-duplicate updates (without updating virtual fs structure yet) 2020-09-22 00:41:59 +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
Tomáš Mládek 00e0dc288c remove DbExecutor, store plain pool in state; refactor into functions
also put loggersink in util.rs
2020-09-15 19:26:47 +02:00
Tomáš Mládek c9c005eff0 strip and relativize paths on fs import 2020-09-13 20:43:45 +02:00
Tomáš Mládek ff457faca3 hierarchy listing endpoint, fix trailing slash upath parsing 2020-09-13 20:10:18 +02:00
Tomáš Mládek 267bca92bf /raw/ endpoint does not take plain hash but an encode, add Entry.as_json() 2020-09-13 14:28:58 +02:00
Tomáš Mládek 0464d2712e remove encode() where unnecessary, add /get/{object} route 2020-09-13 13:22:18 +02:00
Tomáš Mládek 1d952b34dd various fixes, fleshing out, directory retrieval / creation 2020-09-12 14:31:53 +02:00
Tomáš Mládek e49d4c9ff5 implement entity system, first step 2020-09-07 21:21:54 +02:00
Tomáš Mládek 7faa12a44f fix according to cargo clippy 2020-08-30 22:14:24 +02:00
Tomáš Mládek 6b32235896 fix "new" db detection, add initial update 2020-08-30 22:11:32 +02:00
Tomáš Mládek a67b970cd1 add lookup endpoint, index on path and valid 2020-08-27 01:30:53 +02:00
Tomáš Mládek 96b666ab41 put routes into routes.rs 2020-08-27 01:07:25 +02:00
Tomáš Mládek 48cf5889e7 initial commit 2020-08-27 00:11:50 +02:00