Commit Graph

465 Commits (0a46979c519885465e586da009b70422382c84ac)

Author SHA1 Message Date
Noah Hsu 7903ed1f52 chore: change fs get and list resp 2022-06-27 21:34:13 +08:00
Noah Hsu db6b5f8950 chore: path standardize 2022-06-27 20:56:17 +08:00
Noah Hsu 74973bc5b5 fix: local relative path 2022-06-27 20:37:05 +08:00
Noah Hsu 7c0b86a9cd feat: obj list api 2022-06-27 19:51:23 +08:00
Noah Hsu c6007aa9e6 feat: sort obj list 2022-06-27 19:10:02 +08:00
Noah Hsu f01a81ee9c chore: settings util 2022-06-27 17:25:19 +08:00
Noah Hsu 005ded41c3 feat: settings manage api 2022-06-27 17:06:10 +08:00
Noah Hsu 1a148eee7c feat: initial setting items 2022-06-27 15:51:02 +08:00
Noah Hsu e4c3ef0262 feat: setting model 2022-06-27 14:51:48 +08:00
Noah Hsu 6bb2b76e25 chore: move item types 2022-06-27 14:32:21 +08:00
Noah Hsu e71aff9d94 chore: keep guest in memory 2022-06-27 14:29:36 +08:00
Noah Hsu 490df4f5fe fix: typo of environment variable (close #1280) 2022-06-27 14:01:15 +08:00
Noah Hsu 087fae1b15 chore: webdav policy of account 2022-06-27 13:58:21 +08:00
Noah Hsu b98cd915a4 feat: driver manage api 2022-06-26 20:25:02 +08:00
Noah Hsu 3349982312 fix(driver): additional items 2022-06-26 20:18:12 +08:00
Noah Hsu 5783aa99f1 feat: account manage api 2022-06-26 20:00:36 +08:00
Noah Hsu cab498e376 feat: user manage api 2022-06-26 19:36:27 +08:00
Noah Hsu c67f128f15 chore: move server package to root 2022-06-26 19:10:14 +08:00
Noah Hsu 4cef3adc90 feat: meta manage api 2022-06-26 19:09:28 +08:00
Noah Hsu acd4083399 chore: ignore password for get current user 2022-06-26 16:55:37 +08:00
Noah Hsu 7cbfe93a02 chore: set guest while token is empty 2022-06-26 16:39:02 +08:00
Noah Hsu 54ca68e4b3 chore: init users 2022-06-25 22:05:02 +08:00
Noah Hsu b474eefd87 chore: rename store to db 2022-06-25 21:36:35 +08:00
Noah Hsu c5295f4d72 feat: user jwt login 2022-06-25 21:34:44 +08:00
Noah Hsu 306b90399c chore: move conf package 2022-06-25 20:38:02 +08:00
Noah Hsu 7dadab95b2 fix: missed mimetype of stream in aria2 monitor 2022-06-25 15:15:54 +08:00
Noah Hsu 935416de45 chore: clear parent folder cache after upload 2022-06-24 14:24:39 +08:00
Noah Hsu 3f49271db6 feat(fs): add put return after finished 2022-06-24 14:21:28 +08:00
Noah Hsu 956a5ae906 perf: extract fs func and add error log 2022-06-23 23:03:11 +08:00
Noah Hsu 40b7ecc845 chore(aria2): export task manager 2022-06-23 21:24:23 +08:00
Noah Hsu 92983aa185 chore: get or remove by states 2022-06-23 21:19:01 +08:00
Noah Hsu 6c61f1d261 chore: add state for task 2022-06-23 21:09:54 +08:00
Noah Hsu aedcae840d test(aria2): download and transfer file 2022-06-23 17:06:17 +08:00
Noah Hsu 3a1fcbef1c chore: close stream after put 2022-06-23 17:05:03 +08:00
Noah Hsu ffa0bc294a chore: optimize standardize path 2022-06-23 17:04:37 +08:00
Noah Hsu b971b13362 feat: dir and file check 2022-06-23 16:09:22 +08:00
Noah Hsu d77dea733f chore: rename errors 2022-06-23 16:03:27 +08:00
Noah Hsu fd5c3e831d chore: change size of file to int64 2022-06-23 15:57:36 +08:00
Noah Hsu c3040fdfc3 chore: move errors 2022-06-23 15:57:10 +08:00
Noah Hsu 2612cd7f1c test(aria2): init aria2 client 2022-06-22 19:36:49 +08:00
Noah Hsu 3fe0a7bf6b refactor(task): remove `Data` field 2022-06-22 19:28:41 +08:00
Noah Hsu a6df492fff refactor(aria2): extract monitor 2022-06-22 15:16:13 +08:00
Noah Hsu 72208e052a chore(fs): rename some variable and param 2022-06-22 15:03:27 +08:00
Noah Hsu f6242d46b1 feat: add uri to aria2 2022-06-21 17:37:02 +08:00
Noah Hsu 55c4a925ba chore(fs): rename some param 2022-06-21 16:37:51 +08:00
Noah Hsu 9633af4e25 fix: typo and error handle 2022-06-21 16:25:45 +08:00
Noah Hsu 55d6434daa refactor(task): generic task manager 2022-06-21 16:14:37 +08:00
Noah Hsu 1b3387ca1a chore: aria2 notifier 2022-06-20 22:29:52 +08:00
Noah Hsu 6c552a9d62 chore: aria2 related function 2022-06-20 20:34:58 +08:00
Noah Hsu 4db25605e7 fix(fs): typo 2022-06-20 19:50:59 +08:00
Noah Hsu a61bb6ab1f chore: add is it support upload config for driver 2022-06-20 17:14:08 +08:00
Noah Hsu 31ff31d3dd chore: add callback for task 2022-06-20 17:13:19 +08:00
Noah Hsu d665cce739 feat: add task work limit 2022-06-18 20:38:14 +08:00
Noah Hsu dd46e99e66 chore: set addition type as text 2022-06-18 20:10:35 +08:00
Noah Hsu adf0178bb7 feat: add progress for task 2022-06-18 20:06:45 +08:00
Noah Hsu d73a9e4734 fix: format % is missing verb at end of string 2022-06-17 21:42:56 +08:00
Noah Hsu 73c0c0bf44 chore: export copy and upload task manager 2022-06-17 21:38:37 +08:00
Noah Hsu 72a76599e4 feat: add upload file to task manager 2022-06-17 21:35:46 +08:00
Noah Hsu b9f9e5853e fix: copy task name 2022-06-17 21:30:16 +08:00
Noah Hsu fa6e918fc7 feat: add copy to task manager 2022-06-17 21:23:44 +08:00
Noah Hsu 53e969e894 feat: task manager 2022-06-17 16:31:41 +08:00
Noah Hsu 52575f6ad6 feat: add meta model and test 2022-06-17 16:31:19 +08:00
Noah Hsu ca13678105 fix: add where for get user by name 2022-06-17 16:31:19 +08:00
Noah Hsu 355db3ab9b feat: standardization virtual path while create and update 2022-06-17 16:31:19 +08:00
Noah Hsu 04f43cb684 fix: comment typo 2022-06-17 16:31:19 +08:00
Noah Hsu 52ab1310be feat: set path as ID if it's empty 2022-06-17 16:31:19 +08:00
Noah Hsu 56c95eadea feat: add user model 2022-06-17 16:30:49 +08:00
Noah Hsu 9aa7074600 test: add get balanced account test 2022-06-15 21:52:31 +08:00
Noah Hsu 69647f73f0 chore: rename some symbols 2022-06-15 20:41:17 +08:00
Noah Hsu 09ef7c7106 refactor: change driver interface 2022-06-15 20:31:23 +08:00
Noah Hsu d9eb188b7a feat: check parent dir before upload 2022-06-15 19:20:36 +08:00
Noah Hsu 083395ee53 feat: recursive create folder 2022-06-15 19:10:11 +08:00
Noah Hsu 2d60dab13c feat: copy files between 2 accounts 2022-06-15 18:58:26 +08:00
Noah Hsu 4fa7846f00 feat(local): check root folder while init 2022-06-15 18:48:30 +08:00
Noah Hsu 9fcdbec5c9 feat: get file stream from link 2022-06-15 18:08:13 +08:00
Noah Hsu 979f8383d8 chore: move some types to model 2022-06-15 18:06:42 +08:00
Noah Hsu 066ddd3e09 chore: create temp file util 2022-06-15 14:56:43 +08:00
Noah Hsu 6cdd85283b chore: reduce cache shards 2022-06-14 22:37:41 +08:00
Noah Hsu 5780d9d834 test: add `GetAccountVirtualFilesByPath` test 2022-06-14 22:23:33 +08:00
Noah Hsu 097b516dc5 fix: wrong virtual file name 2022-06-14 22:23:10 +08:00
Noah Hsu b73dbee7e6 chore: don't export func `GetAccountsByPath` 2022-06-14 19:49:17 +08:00
Noah Hsu b8e4a2e7c0 test: add driver and account test 2022-06-14 19:44:25 +08:00
Noah Hsu 0d4542a3f1 fix: delete account driver after get 2022-06-14 19:16:27 +08:00
Noah Hsu 7c4d28d55a feat: replace with generic_sync.MapOf 2022-06-14 19:09:54 +08:00
Noah Hsu 1143331b4d chore: `task` and `message` package 2022-06-14 17:19:43 +08:00
Noah Hsu 6accc2eff6 feat: add `NoCache` config for driver 2022-06-13 21:15:58 +08:00
Noah Hsu c525406516 feat: add cache for list files 2022-06-13 21:14:01 +08:00
Noah Hsu 6056fdbddc feat: use singleflight to prevent cache breakdown 2022-06-13 20:24:13 +08:00
Noah Hsu 2f52b5d354 feat: link cache 2022-06-13 19:56:33 +08:00
Noah Hsu e16ab876aa feat: add expiration field for `Link` 2022-06-13 15:39:47 +08:00
Noah Hsu 3e8f36e9f3 feat: get root folder file 2022-06-13 14:53:44 +08:00
Xhofe 3135775250 fix: composite literal uses unkeyed fields 2022-06-11 19:01:20 +08:00
Noah Hsu 77b0c69112 feat: extract get function 2022-06-11 14:43:03 +08:00
Noah Hsu ec89bb70c7 feat: fs and operations 2022-06-10 21:00:51 +08:00
Noah Hsu cd7e9974df feat: add root prefix before operate 2022-06-10 20:20:45 +08:00
Noah Hsu 354dee67dc feat(fs): get file object 2022-06-10 17:26:43 +08:00
Noah Hsu 122b7baa73 feat(fs): list files 2022-06-10 17:18:27 +08:00
Noah Hsu c5e5666b64 feat: set account modified time 2022-06-10 16:51:20 +08:00
Noah Hsu 7b6f11fa52 feat: get account by path 2022-06-10 16:49:52 +08:00
Noah Hsu 2481676c46 feat: get account files by path 2022-06-09 23:05:52 +08:00
Noah Hsu 164dab49ac feat: get accounts by path 2022-06-09 23:05:27 +08:00
Noah Hsu e1a2ed0436 feat: driver and account operate 2022-06-09 17:11:46 +08:00
Noah Hsu cd21f14106 fix: additional field type 2022-06-08 17:01:36 +08:00
Noah Hsu 65fba7936c chore: replace string with const 2022-06-08 16:42:06 +08:00
Noah Hsu ba648fa10c feat: get type from field's type 2022-06-08 16:32:20 +08:00
Noah Hsu ae755db2d2 feat: driver additional items parse 2022-06-08 16:20:58 +08:00
Noah Hsu 677047c80b feat: improve driver 2022-06-07 22:02:41 +08:00
Noah Hsu 0d93a6aa41 feat: driver manage 2022-06-07 18:13:55 +08:00
Noah Hsu 84eb978731 feat: sort and proxy config 2022-06-07 16:38:31 +08:00
Noah Hsu ac0f984136 feat: driver config 2022-06-07 16:31:28 +08:00
Noah Hsu 79965ab4b3 feat(driver): add args to init and update func 2022-06-06 22:54:03 +08:00
Noah Hsu 492476dfe4 feat: additional info of account 2022-06-06 22:31:56 +08:00
Noah Hsu 62ac168226 chore: delete placeholder README 2022-06-06 22:08:39 +08:00
Noah Hsu 09616dbe25 feat: set gin log writer 2022-06-06 22:06:33 +08:00
Noah Hsu fced60c2b5 feat: basic structure 2022-06-06 21:48:53 +08:00