Commit Graph

514 Commits

Author SHA1 Message Date
Noah Hsu
76f37373e0 fix: settings map read and write concurrently 2022-11-28 16:54:03 +08:00
Simon
61a06992c3
fix(aria2): directory missing (close #1856 pr #2504) 2022-11-28 14:05:28 +08:00
Noah Hsu
ddcba93eea
feat: multiple search indexes (#2514)
* refactor: abstract search interface

* wip: ~

* fix cycle import

* objs update hook

* wip: ~

* Delete search/none

* auto update index while cache changed

* db searcher

TODO: bleve init issue

cannot open index, metadata missing

* fix size type

why float64??

* fix typo

* fix nil pointer using

* api adapt ui

* bleve: fix clear & change struct
2022-11-28 13:45:25 +08:00
BoYanZh
2383e851e2
fix: reset index before build new one (#2471) 2022-11-24 14:47:49 +08:00
BoYanZh
330a767fd7
feat: build index & search with bleve (close #1740 pr #2386)
* feat: build index & search with bleve (#1740)

* delete unused struct

Co-authored-by: Noah Hsu <i@nn.ci>
2022-11-24 11:46:47 +08:00
Noah Hsu
c09800790b feat: custom filename char mapping
fixes #2447 #2446 #2440 #2409 #2006 #1979 #1507 #324 #691 #518 #430
2022-11-22 15:54:18 +08:00
Noah Hsu
4dcaa24758 fix: cache is modified while sorting (close #2340) 2022-11-15 14:38:23 +08:00
Noah Hsu
3b6d8987db chore: add id to resp of create storage 2022-11-13 20:17:10 +08:00
小傅Fox
46701a176d
feat(aria2): mark aria2 seeding as complete (#2223)
Currently if using aria2 to download a torrent file, it does not
consider seeding + active as completed, so the torrent download task
only completes as aria2 stops seeding.

This commit uses seeder property of TaskInfo, and mark tasks with active
status and true seeder as complete.
2022-11-06 16:20:09 +08:00
Noah Hsu
1c212f6c30 feat!: force to use the bin dir as the data dir (close #2108)
- move default log path to `data/log/log.log`
- replace `--conf` with `--data`
2022-11-01 19:16:23 +08:00
Noah Hsu
0019959eec fix: delete cache if files is empty 2022-10-25 16:42:06 +08:00
Noah Hsu
a2c808c8ce fix: incorrect root path of initial storage for dev mode 2022-10-23 16:26:14 +08:00
缘生
4fef500795
feat(user): set default password of init user from env (#2058)
add init user default password

Signed-off-by: ysicing <i@ysicing.me>

Signed-off-by: ysicing <i@ysicing.me>
2022-10-19 20:06:06 +08:00
Noah Hsu
b8cf02ca68 fix(aria2): retry 5 times for get status (close #1857) 2022-10-18 15:27:19 +08:00
Noah Hsu
baebc2fbe9 fix: can't delete disabled storage (close #1942) 2022-10-09 22:20:48 +08:00
Noah Hsu
8c69260972 fix(webdav): set mime by ext if it's empty 2022-10-09 19:29:55 +08:00
Noah Hsu
451e418b18 perf: return cache before check obj to reduce recursion 2022-09-28 21:19:36 +08:00
Noah Hsu
9d9c79179b feat: custom token expires in 2022-09-27 14:05:00 +08:00
Noah Hsu
2fc0ccbfe0 fix: don't init aria2 in new goroutine (close #1752) 2022-09-26 15:11:08 +08:00
Noah Hsu
f86ad1dce4 fix: create temp dir perm with 777 (close #1813) 2022-09-26 14:48:59 +08:00
Noah Hsu
f0181d92cd fix: keep type of setting item is correct 2022-09-25 21:20:32 +08:00
Noah Hsu
7c32af4649 refactor!: move api_url and base_path to config file 2022-09-25 17:57:54 +08:00
Noah Hsu
03dbb3a403 chore: fix typo of env name 2022-09-25 17:41:04 +08:00
Noah Hsu
a570e4c7a0 fix: some settings don't take effect at startup 2022-09-23 20:37:49 +08:00
Noah Hsu
539c47bd3b chore: change log if aria2 not ready 2022-09-23 20:04:47 +08:00
Noah Hsu
b6d9018ebd fix: sorting by modified doesn't work (close #1756) 2022-09-23 12:30:32 +08:00
Noah Hsu
b71ecc8e89 chore: add a default polyfill to head 2022-09-22 11:29:39 +08:00
Noah Hsu
d8dc8d8623 fix: dir duplicate creation (close #1687) 2022-09-19 13:43:23 +08:00
Noah Hsu
24d58f278a fix: don't use cache if no objs 2022-09-18 18:38:47 +08:00
Noah Hsu
6c89c6c8ae fix: aria2 download magnet link (close #1665) 2022-09-18 16:07:32 +08:00
Noah Hsu
bec3a327a7 fix: hide objs if only virtual files 2022-09-17 15:31:30 +08:00
Noah Hsu
d329df70f3 fix: failed create record if use mysql (close #1690) 2022-09-16 22:21:43 +08:00
Noah Hsu
d9f0603271 fix: copy folder between two storage (fix #1670) 2022-09-15 17:58:32 +08:00
Noah Hsu
86a625cb40 fix: set CHARSET to utf8mb4 if use mysql 2022-09-15 17:14:03 +08:00
Noah Hsu
7ad3748a46 feat: update cache after remove instead of clear 2022-09-14 20:28:52 +08:00
Noah Hsu
9e5ef974a7 fix: send on closed channel 2022-09-14 15:13:02 +08:00
Noah Hsu
2de0da87fa fix: infinite loop if new multi-level folder (close #1661) 2022-09-13 18:34:04 +08:00
Noah Hsu
78e34f0d9f fix: log error if err != nil (close #1651) 2022-09-12 17:01:06 +08:00
Noah Hsu
cd73e34ccc chore: optional other interface 2022-09-11 18:40:19 +08:00
Noah Hsu
107462e42e chore: change default pdf viewer address 2022-09-11 18:27:28 +08:00
Noah Hsu
969018db37 fix: is the root folder required (close #1633) 2022-09-11 16:23:46 +08:00
Noah Hsu
fd99c2197b fix: remove relative path check 2022-09-11 14:05:13 +08:00
Noah Hsu
f5c7a11da5 chore: add client ip to key of link cache 2022-09-10 14:12:57 +08:00
Noah Hsu
220cd4d6b8 fix: must update version if upgrade 2022-09-10 13:47:38 +08:00
Noah Hsu
4af9124162 fix: error if use abs temp path (close #1624) 2022-09-09 18:50:54 +08:00
Noah Hsu
63569be41d fix: wrong columnName index 2022-09-09 16:44:54 +08:00
Noah Hsu
7d3c3df207 ci: fix web release url 2022-09-09 13:34:22 +08:00
Noah Hsu
7a12f1bddd chore: add audio_cover setting 2022-09-07 19:18:19 +08:00
Noah Hsu
71d30b6819 chore: rename index to order of storage 2022-09-07 15:55:15 +08:00
Noah Hsu
a24dfddc2a feat: add 189cloud driver 2022-09-06 14:39:21 +08:00
Noah Hsu
3dd4fbd76d feat: add webdav driver 2022-09-04 22:34:54 +08:00
Noah Hsu
9d20c887df fix: webdav_policy options 2022-09-04 14:48:21 +08:00
Noah Hsu
a1c86b3350 chore!: change root folder 2022-09-04 13:22:42 +08:00
Noah Hsu
ffba5e0aec feat: add sftp driver (close #1466) 2022-09-04 12:43:52 +08:00
Noah Hsu
8fd56ef9dd feat: check status before storage call 2022-09-03 22:32:09 +08:00
Noah Hsu
5d0668b00b feat: add google_drive driver 2022-09-03 20:34:06 +08:00
Noah Hsu
7da9e33c4d fix: hide access_token in error message of baidu_netdisk 2022-09-03 19:48:11 +08:00
Noah Hsu
611457c0e7 feat: add baidu_netdisk driver 2022-09-02 22:46:31 +08:00
Noah Hsu
0f2425ce53 feat: add teambition driver 2022-09-02 18:24:14 +08:00
Noah Hsu
284274b37e feat: add 123pan driver 2022-09-01 22:13:37 +08:00
Noah Hsu
7290f9b301 chore: remove global_readme setting 2022-09-01 14:17:58 +08:00
Noah Hsu
8e1ed4015b fix: store storage in map whether error or not 2022-08-31 22:27:04 +08:00
Noah Hsu
d31faabc24 chore: fix typo 2022-08-31 22:08:12 +08:00
Noah Hsu
7ac1d14eeb style: shorten name operations to op 2022-08-31 21:01:15 +08:00
Noah Hsu
9ec6d5be7a chore: just use std errors in drivers 2022-08-31 20:58:57 +08:00
Noah Hsu
102384e170 feat: add pikpak driver 2022-08-31 17:32:57 +08:00
Noah Hsu
7d407de22e feat: add a driver template 2022-08-31 16:37:00 +08:00
Noah Hsu
41edac5826 fix: convert driver name while generate lang 2022-08-30 22:11:58 +08:00
Noah Hsu
f551dc76d0 feat: add onedrive driver 2022-08-30 21:52:06 +08:00
Noah Hsu
c95a7c2a04 chore: add home_container setting 2022-08-30 19:34:11 +08:00
Noah Hsu
a6b9dbfbe4 fix: use utils.Log in some places 2022-08-30 16:13:01 +08:00
Noah Hsu
046bbb3a48 feat: use lumberjack for log rotate 2022-08-30 15:22:54 +08:00
Noah Hsu
59ec17a353 feat: add driver config in driver info 2022-08-30 14:39:10 +08:00
Noah Hsu
68a125491b chore: add refresh arg in list func 2022-08-29 19:15:52 +08:00
Noah Hsu
97d4114e38 fix: check err before check upload 2022-08-29 14:18:43 +08:00
Noah Hsu
d267c43556 feat: static file router 2022-08-28 23:13:03 +08:00
Noah Hsu
74007a1d45 chore: add pagination settings 2022-08-27 23:07:48 +08:00
Noah Hsu
fbcf082ca7 feat: auto generate settings lang 2022-08-27 18:35:05 +08:00
Noah Hsu
7425e001db feat: auto generate drivers language json 2022-08-26 15:08:31 +08:00
Noah Hsu
d9ee174dd3 feat!: unity iframe preview 2022-08-23 16:50:54 +08:00
Noah Hsu
38db3508a5 chore: add external_previews setting 2022-08-18 11:34:02 +08:00
Noah Hsu
8cd05275f0 chore: change message type 2022-08-14 03:05:30 +08:00
Noah Hsu
05d8c27918 chore: rename icon_color to main_color 2022-08-13 15:11:46 +08:00
Noah Hsu
0f853c86da fix: do not operate storage in memory if disabled 2022-08-11 21:46:03 +08:00
Noah Hsu
0fdfd1f2c2 feat: load storages while starting 2022-08-11 21:32:33 +08:00
Noah Hsu
74f1154e5e feat: add disable option for storage (close #1476) 2022-08-11 21:08:50 +08:00
Noah Hsu
af884010d1 feat: local storage image thumbnail 2022-08-11 20:32:17 +08:00
Noah Hsu
358212749b chore: add home_icon setting 2022-08-09 18:06:04 +08:00
Noah Hsu
d8b56042c3 chore: ignore opt_secret while marshal 2022-08-08 16:29:56 +08:00
Noah Hsu
6f48a0a82a chore: add custom office viewer 2022-08-08 13:03:34 +08:00
Noah Hsu
2b04cf4ac3 feat: custom hide error message by regexp (close #1468) 2022-08-08 12:53:53 +08:00
Noah Hsu
61fa6f38a8 feat: add type to fs read api 2022-08-08 00:51:05 +08:00
Noah Hsu
2e8322e99b feat: set cache_expiration for each storage (close #1455) 2022-08-07 13:33:53 +08:00
Noah Hsu
5b40254e3b chore: fix drivers not import 2022-08-07 13:23:15 +08:00
Noah Hsu
0df3473337 feat: use cobra and add some command 2022-08-07 13:09:59 +08:00
Noah Hsu
2b5da3ef34 feat: cancel 2fa api 2022-08-07 11:59:33 +08:00
Noah Hsu
a6ed4afdae feat: 2fa/otp support 2022-08-06 01:22:13 +08:00
Noah Hsu
b51e664543 chore: go fmt 2022-08-03 14:26:59 +08:00
Noah Hsu
721f18a7f4 feat: fs other api 2022-08-03 14:14:37 +08:00
Noah Hsu
c7128133d6 chore: rename remove to delete 2022-07-31 21:42:01 +08:00
Noah Hsu
33b7d75d8a chore: if file exist and size = 0, delete it while upload 2022-07-30 20:04:21 +08:00
Noah Hsu
eface83716 chore: set initial guest permission 0 2022-07-27 21:53:21 +08:00
Noah Hsu
212dbb277e fix: empty storage virtual file 2022-07-27 20:57:12 +08:00
Noah Hsu
e707d6b26e chore: change select values case 2022-07-27 15:49:18 +08:00
Noah Hsu
4ba04fa7db chore: rename main items 2022-07-27 11:43:49 +08:00
Noah Hsu
5166d73b4d chore: unified function name 2022-07-23 21:49:09 +08:00
Noah Hsu
4691142f80 fix: webdav_policy default value 2022-07-23 21:19:27 +08:00
Noah Hsu
4f3129ec28 feat: change current user's profile 2022-07-23 20:42:12 +08:00
Noah Hsu
fb65e98fa3 chore: add fuse package 2022-07-20 00:39:20 +08:00
Noah Hsu
872e7cf87b fix: virtual obj is a folder 2022-07-19 18:10:02 +08:00
Noah Hsu
fe94016289 chore: set default root folder in driver config 2022-07-19 17:07:12 +08:00
Noah Hsu
184b9d1e6c feat: get storage by id api 2022-07-18 23:02:14 +08:00
Noah Hsu
e08810a12f chore: fix test typo 2022-07-18 14:52:34 +08:00
Noah Hsu
a16da3b45e chore: fix typo 2022-07-12 18:41:16 +08:00
Noah Hsu
2bff656f00 chore: rename VirtualPath to MountPath 2022-07-12 14:11:37 +08:00
Noah Hsu
fbc858b43c chore: optimize get settings 2022-07-12 14:03:03 +08:00
Noah Hsu
4ac312fd07 chore: add version to aria handle 2022-07-12 14:02:29 +08:00
Noah Hsu
6ebb36b2eb chore: deprecated settings test data 2022-07-11 22:36:30 +08:00
Noah Hsu
3691ee5861 chore: use variable 2022-07-11 22:22:30 +08:00
Noah Hsu
18b218c6c9 fix: the variable has the same name as the package 2022-07-10 16:39:55 +08:00
Noah Hsu
fc1204c914 chore: rename account to storage 2022-07-10 14:45:39 +08:00
Noah Hsu
9ba7cf0835 chore: add base path setting 2022-07-02 16:43:07 +08:00
Noah Hsu
fb23758d12 fix: empty public settings 2022-07-02 16:12:30 +08:00
Noah Hsu
e3891246b9 feat: post messenger 2022-07-01 16:53:01 +08:00
Noah Hsu
a6e5edcf53 chore: fix typo 2022-07-01 16:08:08 +08:00
Noah Hsu
4340a48633 fix: put as task from web 2022-07-01 15:11:18 +08:00
Noah Hsu
53416172e7 feat: clear cache after change 2022-06-30 22:51:49 +08:00
Noah Hsu
3934d9029e feat: hide objects 2022-06-30 16:09:06 +08:00
Noah Hsu
fba96d024f feat: add write field to list resp 2022-06-30 15:53:57 +08:00
Noah Hsu
35b04ffa9c feat: add readme field to list resp 2022-06-30 15:41:58 +08:00
Noah Hsu
fd55f2cbfa chore: reduce query aria2 status interval 2022-06-29 20:32:45 +08:00
Noah Hsu
f54418bdae fix: serialize task info 2022-06-29 20:28:02 +08:00
Noah Hsu
786e44d1d2 fix: init aria2 client 2022-06-29 20:07:33 +08:00
Noah Hsu
58d153e5ff fix: task list method 2022-06-29 18:56:31 +08:00
Noah Hsu
0bf724f447 feat: task manage api 2022-06-29 18:36:14 +08:00
Noah Hsu
c88680b495 chore: aria2 task wait for transfer 2022-06-29 18:12:31 +08:00
Noah Hsu
d24e51bc86 chore: user permissions 2022-06-29 18:03:12 +08:00
Noah Hsu
3c7a2f78cf chore: init db and aria2 2022-06-29 17:37:40 +08:00
Noah Hsu
8abee6504f feat: set aria2 client and add url to aria2 api 2022-06-29 17:31:37 +08:00
Noah Hsu
a09a1b814b chore: change permission check 2022-06-29 17:08:31 +08:00
Noah Hsu
bf950ee6e1 feat: set raw url in get resp 2022-06-29 16:23:31 +08:00
Noah Hsu
40548926e6 feat: fs link api 2022-06-29 16:08:55 +08:00
Noah Hsu
8a0915ffb1 chore: don't and slash prefix just for windows abs path 2022-06-28 22:22:02 +08:00
Noah Hsu
505b126888 chore: optional get func for driver 2022-06-28 22:13:47 +08:00
Noah Hsu
96380a50da feat: file proxy handle 2022-06-28 21:58:46 +08:00
Noah Hsu
d1efec4539 chore: common err resp log 2022-06-28 18:12:53 +08:00
Noah Hsu
67bc66fedf feat: file down handle 2022-06-28 18:00:11 +08:00
Noah Hsu
d89ec89d51 feat: sign of file 2022-06-28 15:12:40 +08:00
Noah Hsu
5dbf5db4ff feat: token and reset 2022-06-28 14:18:10 +08:00
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