Compare commits

..

451 Commits

Author SHA1 Message Date
Noah Hsu e3b213c398 feat: add ca-certificates for docker (fix: #1679) 2022-09-15 18:56:30 +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
foxxorcat f22232de5d chore: baidu_photo rename only duplicate folders 2022-09-15 09:25:20 +08:00
Noah Hsu 7ad3748a46 feat: update cache after remove instead of clear 2022-09-14 20:28:52 +08:00
Noah Hsu 66b2562d03 fix: allow force root while fetch dirs (close #1671) 2022-09-14 19:57:39 +08:00
Noah Hsu b197322cd8 fix: type of file with name uppercase 2022-09-14 15:14:04 +08:00
Noah Hsu 9e5ef974a7 fix: send on closed channel 2022-09-14 15:13:02 +08:00
联盟少侠 08a001fbd1 feat: add a start func for external calls (#1628) 2022-09-13 20:12:57 +08:00
Noah Hsu 54ae6dce0b fix(fs/get): rawURL if use proxy (close #1664) 2022-09-13 20:02:57 +08:00
foxxorcat a90ef201c7 fix(189pc,baidu_photo,thunder): single link limit multithreading 2022-09-13 18:44:07 +08:00
Noah Hsu 2de0da87fa fix: infinite loop if new multi-level folder (close #1661) 2022-09-13 18:34:04 +08:00
foxxorcat 53e08e75fe fix(189pc,baidu_photo): source file not closed 2022-09-12 22:45:30 +08:00
foxxorcat 6b5236f52e feat: add baidu_photo driver 2022-09-12 17:10:02 +08:00
Noah Hsu 78e34f0d9f fix: log error if err != nil (close #1651) 2022-09-12 17:01:06 +08:00
Noah Hsu 6aedd0f425 fix: trim slash suffix of sign 2022-09-11 19:39:24 +08:00
Noah Hsu 5ff0d850d7 feat(aliyundrive): add doc and video preview api 2022-09-11 19:12:54 +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 e6c2d22700 workflow: update docs address [skip ci] 2022-09-11 17:17:47 +08:00
Noah Hsu 889ddcef7e feat(baidu): update upload progress 2022-09-11 17:09:48 +08:00
Noah Hsu 68a6a0c40e fix(aliyundrive): upload empty file 2022-09-11 17:04:05 +08:00
Noah Hsu 969018db37 fix: is the root folder required (close #1633) 2022-09-11 16:23:46 +08:00
Noah Hsu fba1471ec4 docs: add thunder in storage list [skip ci] 2022-09-11 15:26:47 +08:00
Noah Hsu 8b72ac7f80 chore: rename xunlei to thunder 2022-09-11 14:30:17 +08:00
Noah Hsu 77a6aa487b chore: cancel sign if no password 2022-09-11 14:14:14 +08:00
Noah Hsu fd99c2197b fix: remove relative path check 2022-09-11 14:05:13 +08:00
foxxorcat 9c91f062b9 fix(189pc): some minor problems 2022-09-11 13:18:29 +08:00
foxxorcat 537ca030b2 chore: fix xunlei some minor problems 2022-09-11 13:09:36 +08:00
Noah Hsu b00dcdec0d docs: Create CODE_OF_CONDUCT.md [skip ci] 2022-09-10 22:23:05 +08:00
Noah Hsu 57bcd376b4 fix(webdav): incorrect href if base_path isn't root (close #1629) 2022-09-10 19:27:34 +08:00
Noah Hsu 8d4d8648c6 ci: fetch dev version of alist-web 2022-09-10 19:05:02 +08:00
foxxorcat 35d177b67b feat: add xunlei driver 2022-09-10 17:40:30 +08:00
Noah Hsu 40882443c2 feat: add show admin's username 2022-09-10 16:39:08 +08:00
Noah Hsu 05f19cad78 ci: add since-days for similarity-analysis [skip ci] 2022-09-10 16:18:10 +08:00
Noah Hsu 7249f277b2 ci: close issue that inactive more than 60 days [skip ci] 2022-09-10 16:10:39 +08:00
Noah Hsu 849124f177 fix(quark): default root folder id 2022-09-10 14:38:47 +08:00
Noah Hsu f5c7a11da5 chore: add client ip to key of link cache 2022-09-10 14:12:57 +08:00
Noah Hsu 043a79189d style: uniform use utils.CreateTempFile 2022-09-10 14:11:06 +08:00
Noah Hsu 5ed43fd17d fix(123): pass ip when getting download link 2022-09-10 13:54:10 +08:00
Noah Hsu 220cd4d6b8 fix: must update version if upgrade 2022-09-10 13:47:38 +08:00
Noah Hsu f692e6c011 fix(s3): copy or move folder (close #1336) 2022-09-10 13:42:03 +08:00
Noah Hsu f48365929e fix(pikpak): upload empty file (close #1452) 2022-09-10 13:25:52 +08:00
Noah Hsu 56219bf096 fix(google): folder judgment missed 2022-09-10 13:09:18 +08:00
Noah Hsu 5ad3849bb6 fix: if use down proxy url 2022-09-09 20:54:11 +08:00
Noah Hsu 4af9124162 fix: error if use abs temp path (close #1624) 2022-09-09 18:50:54 +08:00
Noah Hsu 92fba9a2bf ci: remove commit-hash in version 2022-09-09 16:48:12 +08:00
Noah Hsu 63569be41d fix: wrong columnName index 2022-09-09 16:44:54 +08:00
Noah Hsu 46325655e1 ci: fix compress filename [skip ci] 2022-09-09 16:31:43 +08:00
Noah Hsu 85d13c4c5a ci: static link while build musl 2022-09-09 15:51:20 +08:00
Noah Hsu af87131cc0 chore: fix release docker name typo [skip ci] 2022-09-09 14:42:55 +08:00
Noah Hsu 2505cb40ac docs: update readme 2022-09-09 14:35:05 +08:00
Noah Hsu 4ec42a55d6 ci: fix release files path 2022-09-09 14:15:06 +08:00
Noah Hsu 7d3c3df207 ci: fix web release url 2022-09-09 13:34:22 +08:00
Noah Hsu 362d48aa98 chore: replace main color 2022-09-08 22:21:52 +08:00
Noah Hsu dea87d098d build: fix Dockerfile CMD arguments 2022-09-08 21:40:37 +08:00
Noah Hsu 901a74e252 ci: auto release 2022-09-08 21:22:21 +08:00
Noah Hsu 8705e48e0a ci: auto build docker image 2022-09-08 20:27:13 +08:00
Noah Hsu ed5adc21c2 ci: ignore git commit error 2022-09-08 20:04:19 +08:00
Noah Hsu fbaebc020f fix(189pc): wrong time if location incorrect (close #1562) 2022-09-08 20:03:07 +08:00
foxxorcat 918ca28d2b feat: add 189cloudPC driver 2022-09-08 15:00:57 +08:00
Noah Hsu 7a12f1bddd chore: add audio_cover setting 2022-09-07 19:18:19 +08:00
Noah Hsu 4ea19ae078 chore: replace $version of cdn with webVersion 2022-09-07 18:39:04 +08:00
Noah Hsu 71d30b6819 chore: rename index to order of storage 2022-09-07 15:55:15 +08:00
Noah Hsu 53fc2f32d8 ci: ignore cp error [skip ci] 2022-09-06 22:45:17 +08:00
Noah Hsu e07654299b fix(quark): upload commit bind resp 2022-09-06 22:41:45 +08:00
Noah Hsu f127c959a1 feat: add MediaTrack driver 2022-09-06 17:24:05 +08:00
Noah Hsu a24dfddc2a feat: add 189cloud driver 2022-09-06 14:39:21 +08:00
Noah Hsu 534d8d30fc feat: skip generate lang if no changes 2022-09-05 16:40:51 +08:00
Noah Hsu 868a4fd49e fix(baidu): duplicate prefix of crack link request 2022-09-05 15:59:28 +08:00
Noah Hsu 900e71f78f feat: add 139yun driver 2022-09-05 13:35:01 +08:00
Noah Hsu 3416861cab style: use utils.SliceConvert uniformly 2022-09-05 00:26:04 +08:00
Noah Hsu 25ae1b8397 feat: add yandex disk driver 2022-09-05 00:24:16 +08:00
Noah Hsu 3dd4fbd76d feat: add webdav driver 2022-09-04 22:34:54 +08:00
Noah Hsu 778cee4cdf fix: download sign check 2022-09-04 18:29:41 +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 a4a8739748 feat: add upyun-uss driver 2022-09-04 13:03:10 +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 849de88e68 feat: add ftp driver 2022-09-03 22:07:08 +08:00
Noah Hsu c89a462d0c feat: add s3 driver 2022-09-03 21:38:43 +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 dcc99802ec fix: panic while create empty file 2022-09-03 19:32:44 +08:00
Noah Hsu 552aba997c fix: default root folder of baidu_netdisk 2022-09-03 10:12:28 +08:00
Noah Hsu 611457c0e7 feat: add baidu_netdisk driver 2022-09-02 22:46:31 +08:00
Noah Hsu decea4a739 feat: add quark driver 2022-09-02 21:36:47 +08:00
Noah Hsu 0f2425ce53 feat: add teambition driver 2022-09-02 18:24:14 +08:00
Noah Hsu bc155af255 chore: remove slash of cdn 2022-09-02 16:02:06 +08:00
Noah Hsu 2d2a4f5776 docs: add go report card [skip ci] 2022-09-01 22:49:47 +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 454f563bce fix: task id not update 2022-08-31 22:53:41 +08:00
Noah Hsu 755f4b83f6 feat: add progress for io copy 2022-08-31 22:41:27 +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 b73dce33aa fix(onedrive,ali): upload progress 2022-08-31 22:04:04 +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 817d63597e feat: add aliyundrive driver 2022-08-31 20:46:19 +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 615e5dd118 fix: put a placeholder file in dist [skip ci] 2022-08-30 15:53:40 +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 fec98e7f69 ci: auto build dev version 2022-08-29 22:49:20 +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 e5480b99be chore: decode filePath in header 2022-08-28 20:46:33 +08:00
Noah Hsu e72a557b96 ci: minimize the event that triggers the workflow 2022-08-28 15:39:51 +08:00
Noah Hsu a6f3094c9a chore: graceful restart or stop 2022-08-28 15:34:12 +08:00
Noah Hsu 5ab5cc327f feat: generate plist for ipa 2022-08-28 15:23:00 +08:00
Noah Hsu 74007a1d45 chore: add pagination settings 2022-08-27 23:07:48 +08:00
Noah Hsu 37eb3dd8f5 ci: push main branch directly 2022-08-27 18:51:10 +08:00
Noah Hsu fbcf082ca7 feat: auto generate settings lang 2022-08-27 18:35:05 +08:00
Noah Hsu cc9ccc4e9b ci: auto generate drivers lang file 2022-08-26 19:06:32 +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 e9927806d4 fix(local): return ObjectNotFound if can't find file 2022-08-19 11:02:00 +08:00
Noah Hsu 38db3508a5 chore: add external_previews setting 2022-08-18 11:34:02 +08:00
Noah Hsu d1b5c3e648 docs: fix preview dev change 2022-08-17 14:02:05 +08:00
Noah Hsu 02e2c809a8 chore: rename some request param 2022-08-14 23:52:14 +08:00
Noah Hsu 8cd05275f0 chore: change message type 2022-08-14 03:05:30 +08:00
Noah Hsu fe0dee1196 docs: fix typo 2022-08-13 15:38:03 +08:00
Noah Hsu 05d8c27918 chore: rename icon_color to main_color 2022-08-13 15:11:46 +08:00
Noah Hsu 06e15fc149 feat: encode path of url (close #1351) 2022-08-12 14:51:23 +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 fda4db71bf ci: new issue bot 2022-08-10 20:05:39 +08:00
Noah Hsu 669ccc40a1 chore: change related of fs get api 2022-08-10 10:48:14 +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 d6437a337f feat: add provider to obj get api 2022-08-08 00:58:32 +08:00
Noah Hsu 61fa6f38a8 feat: add type to fs read api 2022-08-08 00:51:05 +08:00
Noah Hsu ccce6a30bb ci: temporarily use self-modified issue-helper 2022-08-07 21:03:37 +08:00
Noah Hsu 1fd4ebe53e feat: add related objs while get obj 2022-08-07 21:01:29 +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 d01958a6bf chore: and otp to current user resp 2022-08-06 17:21:32 +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 2a68c3cc7b feat: add thumbnail to list resp 2022-08-03 13:03:45 +08:00
Noah Hsu 71a6ebaf43 chore: dev test 2022-08-02 22:16:58 +08:00
Noah Hsu c7128133d6 chore: rename remove to delete 2022-07-31 21:42:01 +08:00
Noah Hsu 829ef271e3 chore(deps): upgrade cache pkg 2022-07-31 21:23:19 +08:00
Noah Hsu cb06d3a19a feat: remove and clear task 2022-07-31 21:21:54 +08:00
Noah Hsu be452aafde chore: fix err nil pointer 2022-07-30 22:04:21 +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 8c27ca3e8b chore: import fmt 2022-07-29 18:22:42 +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 53fd09814a feat: user and meta get api 2022-07-27 17:41:25 +08:00
Noah Hsu b399c924b7 chore: slice convert util 2022-07-27 17:08:29 +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 826e4807dc chore: add current user log 2022-07-23 21:33:53 +08:00
Noah Hsu 4691142f80 fix: webdav_policy default value 2022-07-23 21:19:27 +08:00
Noah Hsu 9d92834ee3 chore: password can be empty when update me 2022-07-23 20:49:16 +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 90a5c175ed feat: virtual driver 2022-07-19 19:55:54 +08:00
Noah Hsu 872e7cf87b fix: virtual obj is a folder 2022-07-19 18:10:02 +08:00
Noah Hsu 638db77ca1 chore: rename local struct 2022-07-19 17:11:53 +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 303d245e0f docs: add sponsor 2022-07-18 00:48:55 +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 b1d563c874 chore: add uuid to token 2022-07-12 14:01:43 +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 dc38f21294 chore: rename controllers to handles 2022-07-11 17:12:50 +08:00
Noah Hsu 8971a924f1 fix: clear password while get current user 2022-07-10 17:09:03 +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 a25d76ef6e chore: fix typo 2022-07-10 16:20:13 +08:00
Noah Hsu 69d1287254 chore: remove wrapper of user 2022-07-10 15:47:09 +08:00
Noah Hsu f102b130db chore: public settings no auth required 2022-07-10 15:23:08 +08:00
Noah Hsu fc1204c914 chore: rename account to storage 2022-07-10 14:45:39 +08:00
Noah Hsu efa20cc7bd feat: dirs api 2022-07-10 14:09:31 +08:00
Noah Hsu e28c1e436d fix: only file have raw_url 2022-07-08 15:56:29 +08:00
Noah Hsu 90283ef29c chore: incorrect username retry count 2022-07-07 21:31:43 +08:00
Noah Hsu 156da2b794 fix: login don't need auth 2022-07-07 14:19:24 +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 8125fee3f9 feat: put directly api 2022-07-01 17:11:22 +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 4d0ae6b1ef fix: webdav move contains rename 2022-06-30 22:55:23 +08:00
Noah Hsu 53416172e7 feat: clear cache after change 2022-06-30 22:51:49 +08:00
Noah Hsu 2b1726614b feat: webdav handle 2022-06-30 22:41:55 +08:00
Noah Hsu dd013ac0b2 chore: add webdav package 2022-06-30 18:27:26 +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 e614faa99b chore: cancel task while wait for worker 2022-06-29 22:06:56 +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 f275f83de0 feat: fs manage api 2022-06-29 15:01:22 +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 c8f10703b7 feat: obj get api 2022-06-27 21:15:39 +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 2aff218356 fix: gin.Context nil pointer 2022-06-26 20:31:04 +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 6b9bca893b chore: change whether print log 2022-06-26 19:20:19 +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 ee2bc99e4c feat: cancel copy for upload 2022-06-25 15:14:03 +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 ffdb198247 feat(local): basic function of driver 2022-06-23 17:06:07 +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 a65dcb48b4 chore: use abs temp dir 2022-06-23 16:49: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 6ad2cf2003 test: add task manager test 2022-06-17 22:09:34 +08:00
Noah Hsu 68ca2abd0c chore: change task.ID to uint64 2022-06-17 21:52:31 +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 6d0e54d87e chore: add driver for issue template 2022-06-17 16:31:31 +08:00
Noah Hsu 626e878861 chore: update issue template 2022-06-17 16:31:25 +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 1df5472855 docs: add version explanation 2022-06-15 21:58:20 +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 2cddd3cf2b chore: add aria2 rpc package 2022-06-15 17:15:22 +08:00
Noah Hsu c65a9b3001 fix: typo 2022-06-15 14:57:13 +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 e4b956b091 chore: set log structure first 2022-06-14 17:18:58 +08:00
Noah Hsu e3d2e6dd64 fix(local): local storage should haven't cache 2022-06-14 17:18:11 +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 5b73b68eb5 feat: add log enable config 2022-06-09 15:12:34 +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
Noah Hsu b76060570e refactor: init v3 2022-06-06 16:28:37 +08:00
Noah Hsu eb15bce24b ci: auto generate changelog 2022-06-06 16:22:12 +08:00
Noah Hsu 52814266b8 chore: Merge pull request #1200 from alist-org/all-contributors/add-XZB-1248
docs: add XZB-1248 as a contributor for code
2022-06-06 16:16:11 +08:00
allcontributors[bot] f845ec05e0 docs: update .all-contributorsrc [skip ci] 2022-06-06 08:15:50 +00:00
allcontributors[bot] 29fb02c886 docs: update CONTRIBUTORS.md [skip ci] 2022-06-06 08:15:49 +00:00
Noah Hsu 072e854a71 chore: Merge pull request #1199 from alist-org/dev
Merge dev branch
2022-06-06 16:10:35 +08:00
Noah Hsu cae0a5f603 chore: Merge pull request #1191 from XZB-1248/dev
fix: filename is urlencoded when using Safari
2022-06-03 21:57:42 +08:00
XZB 7c6d8ca222 fix(proxy): filename is urlencoded when using Safari 2022-06-02 18:13:17 +08:00
Noah Hsu f6be50f15a fix(189): login and get link (close #1182) 2022-05-31 16:03:54 +08:00
Noah Hsu c35d54d092 chore: Merge pull request #1167 from Xhofe/dev 2022-05-28 21:01:47 +08:00
Noah Hsu 323dad2a1c fix(sftp): infinite loop while remove file (close #1094) 2022-05-28 21:01:04 +08:00
Noah Hsu 62aefc4f68 fix(189): new resty client 2022-05-28 20:43:13 +08:00
Xhofe 6a7eb8b3eb fix: don't save search files of balance account (close #1125) 2022-05-21 22:12:18 +08:00
Noah Hsu eb549f2631 feat: add pdf viewer url to settings (close #1109) 2022-05-19 15:31:47 +08:00
Noah Hsu 9207eb69ee feat: add m4v to default video types (close #1114) 2022-05-19 15:31:40 +08:00
Noah Hsu 866df0540b chore: Merge pull request #1110 from foxxorcat/dev
增加123流式上传选择
2022-05-17 12:49:22 +08:00
foxxorcat 04e04a1aa6 fix(189pc): delete user-agent for upload 2022-05-16 23:33:12 +08:00
foxxorcat 6a66e39d5b feat(123):add io stream upload 2022-05-16 21:03:00 +08:00
foxxorcat f2b2728be7 fix(123,189pc,alidriver,xunlei):tempfile remove 2022-05-16 09:48:33 +08:00
Xhofe 39b8f28fc4 fix: disable pprof while not debug 2022-05-15 16:17:52 +08:00
Noe Hsu e1ccc0b215 chore: Merge pull request #1093 from Xhofe/dev
2.5.2
2022-05-13 17:39:26 +08:00
Xhofe 87e339850d fix(ftp): remove dir (#1082) 2022-05-13 17:38:22 +08:00
Noe Hsu 79c9b6ac77 chore: Merge pull request #1090 from foxxorcat/dev (#1090) 2022-05-13 13:54:04 +08:00
foxxorcat aeb2297f1f perf(123):file thumbnail 2022-05-12 22:27:32 +08:00
foxxorcat 3b59bb5c09 perf(123):upload 2022-05-12 21:39:55 +08:00
Noe Hsu bc4bac921f chore: Merge pull request #1089 from foxxorcat/dev
修复迅雷一些已知问题
2022-05-12 20:42:49 +08:00
foxxorcat f917882a84 perf(xunlei):upload 2022-05-12 19:18:28 +08:00
foxxorcat 6a67d1cf69 fix(xunlei):check captchaToken 2022-05-12 19:15:39 +08:00
foxxorcat 041b3587bf fix(xunlei):turn page 2022-05-12 13:27:49 +08:00
foxxorcat 0eef7a129c fix(xunlei):the verification code cannot be obtained from the mobile phone number or email 2022-05-12 13:26:12 +08:00
Xhofe 4b635f06e3 fix(189pc): delete user-agent for upload 2022-05-11 20:01:15 +08:00
Noe Hsu 279111a8e2 chore: Merge pull request #1079 from foxxorcat/dev 2022-05-10 22:35:59 +08:00
foxxorcat 67674835da fix(alidriver):fast upload file is not close 2022-05-10 21:54:44 +08:00
foxxorcat 732e9eb1c3 feat:add pprof 2022-05-10 21:40:43 +08:00
foxxorcat b6af9aa587 fix(139,189,189pc,alidrive,onedrive,yandex):http response body is not close #1072 2022-05-10 21:37:48 +08:00
foxxorcat a9027c0f06 fix(baidu.photo):update download api 2022-05-10 20:35:19 +08:00
Xhofe d780fa18a5 fix(sftp): error while has no files(close #1078) 2022-05-10 18:18:06 +08:00
Xhofe d5626d6e2f fix: cancel QueryEscape Disposition (close #1074) 2022-05-10 18:16:32 +08:00
foxxorcat 52dcbfe1a4 fix(xunlei):missing x-client-id error in some user requests 2022-05-09 18:14:52 +08:00
foxxorcat bf0ee3d315 refactor(baidu.photo): add a file api of download 2022-05-09 12:43:51 +08:00
Xhofe 0237e78c1e chore: Merge branch 'dev' into v2 2022-05-08 14:30:01 +08:00
Xhofe 44b8c6abf7 fix(189): typo 2022-05-08 14:28:26 +08:00
Hafiz Hsu 33e1acd344 chore: Merge pull request #1060 from Xhofe/dev
Dev 2.5.1
2022-05-08 14:26:27 +08:00
Xhofe c54cb61f14 chore: add debug info 2022-05-08 14:25:37 +08:00
Xhofe 734b204709 chore: change ocr api 2022-05-08 14:22:07 +08:00
Hafiz Hsu b7d9c5e4ff chore: Merge pull request #1059 from foxxorcat/dev (close #1053)
fix baidu.photo and xunlei
2022-05-08 13:59:58 +08:00
foxxorcat e698b457b9 fix(baidu.photo):windows path error 2022-05-08 13:37:56 +08:00
foxxorcat 5258c21656 fix(xunlei):login error 2022-05-08 13:36:36 +08:00
Hafiz Hsu 1ca9a3d14e chore: Merge pull request #1052 from Xhofe/dev
docs: add baidu.photo
2022-05-07 16:47:22 +08:00
Xhofe f23bec9a35 docs: add baidu.photo [skip ci] 2022-05-07 16:43:02 +08:00
Hafiz Hsu 62a1acd1f4 chore: Merge pull request #1051 from Xhofe/all-contributors/add-WntFlm
docs: add WntFlm as a contributor for code
2022-05-07 16:38:33 +08:00
allcontributors[bot] fa6e3fe567 docs: update .all-contributorsrc [skip ci] 2022-05-07 08:38:10 +00:00
allcontributors[bot] b71b62ee35 docs: update CONTRIBUTORS.md [skip ci] 2022-05-07 08:38:09 +00:00
Hafiz Hsu 410b4939a4 chore: Merge pull request #1050 from Xhofe/all-contributors/add-ericarena
docs: add ericarena as a contributor for code
2022-05-07 16:37:24 +08:00
allcontributors[bot] 62c0071f29 docs: update .all-contributorsrc [skip ci] 2022-05-07 08:36:58 +00:00
allcontributors[bot] f043a41005 docs: update CONTRIBUTORS.md [skip ci] 2022-05-07 08:36:57 +00:00
Hafiz Hsu 2e9da57036 chore: Merge pull request #1048 from Xhofe/all-contributors/add-Windman1320
docs: add Windman1320 as a contributor for code
2022-05-07 16:36:17 +08:00
allcontributors[bot] d83cd37984 docs: update .all-contributorsrc [skip ci] 2022-05-07 08:35:50 +00:00
allcontributors[bot] bad8b0ebbb docs: update CONTRIBUTORS.md [skip ci] 2022-05-07 08:35:49 +00:00
Hafiz Hsu 4535e65948 chore: Merge pull request #1047 from Xhofe/dev
Dev 2.5.0
2022-05-07 16:29:10 +08:00
Xhofe 3b413c2ee2 chore: Merge pull request #1021 from WntFlm/mimefix
fix(webdav): empty mimeType
2022-05-01 19:13:29 +08:00
Xhofe 427ae56333 chore: Merge pull request #1020 from foxxorcat/dev
fix(xunlei):download link speed limit
2022-05-01 13:25:54 +08:00
WntFlm 658fd5ad6e fix(webdav): empty mimeType
Now mimeType will always be a non-empty string, by defaulting it to "application/octet-stream".
2022-05-01 09:42:25 +08:00
foxxorcat 11830bb51c fix(xunlei):download link speed limit 2022-04-30 21:41:15 +08:00
Xhofe 75c98429bf fix(webdav): wrong MIMEType (close #1007) 2022-04-29 14:09:51 +08:00
Xhofe f77ea1b3a5 chore: Merge pull request #1011 from foxxorcat/dev
增加一刻相册支持,优化迅雷代码
2022-04-29 14:08:04 +08:00
foxxorcat 0a8bd96d33 feat: support baidu.photo 2022-04-28 23:44:22 +08:00
foxxorcat 68f37fc11f refactor(xunlei): optimized code 2022-04-28 23:15:37 +08:00
Xhofe d6775cda69 fix(123): can't delete folder (close #1009) 2022-04-28 21:17:11 +08:00
Windman 43c6e07bac feat: add aria2 download settings(#1000)
* feat: add aria2 support

在右键菜单中增加了使用aria2下载的item,可以直接发送选中的文件链接到aria2,省略复制再粘贴到aria2的步骤

* feat: set default value for `Aria2 RPC url`

Co-authored-by: Xhofe <i@nn.ci>
2022-04-28 18:05:07 +08:00
Xhofe 4901e9080c fix(quark): file size over i32 (close #997) 2022-04-26 15:22:39 +08:00
Xhofe 48049a5ea3 docs: upgrade golang version [skip ci] 2022-04-25 16:05:49 +08:00
Xhofe bd7260f0ff chore: base for template 2022-04-24 21:22:24 +08:00
Xhofe 6c0d54394f chore: Merge pull request #992 from Xhofe/dev
Dev 2.4.3
2022-04-24 17:40:26 +08:00
Xhofe ce5dacbf3f build: build musl first 2022-04-24 17:39:25 +08:00
Xhofe 08aaa5e2c0 build: rm .git before xgo 2022-04-24 16:53:47 +08:00
Xhofe 42c0e438d5 fix(webdav): sharepoint upload 2022-04-24 15:38:17 +08:00
Xhofe e4df146043 fix(webdav): sharepoint repeat login 2022-04-24 15:37:59 +08:00
Xhofe 27b7dae113 feat(webdav): support range get 2022-04-23 22:43:02 +08:00
Xhofe 293d574ce7 build: specify xgo version 2022-04-23 16:53:26 +08:00
Xhofe 56b3b35556 chore: Merge pull request #984 from Xhofe/dev
2.4.2
2022-04-21 22:34:12 +08:00
Xhofe a7a0e85a46 docs: update qq group 2022-04-21 22:31:17 +08:00
Xhofe 95c0106fdd feat(onedrive): default redirect_uri(close #967) 2022-04-20 15:21:48 +08:00
Xhofe 6612338fc1 fix(189pc): InvalidSessionKey (fix #920) 2022-04-20 15:16:30 +08:00
Xhofe c276a1541f chore: delete useless comment 2022-04-18 18:32:29 +08:00
Xhofe cc96a5bbdb chore: add windows bin to gitignore 2022-04-18 18:31:10 +08:00
Xhofe 0810561a8a fix(xunlei): check err prevent stack overflow 2022-04-18 18:29:21 +08:00
385 changed files with 28224 additions and 17155 deletions
+37 -1
View File
@@ -51,11 +51,47 @@
"contributions": [
"doc"
]
},
{
"login": "Windman1320",
"name": "Windman",
"avatar_url": "https://avatars.githubusercontent.com/u/9999486?v=4",
"profile": "https://github.com/Windman1320",
"contributions": [
"code"
]
},
{
"login": "ericarena",
"name": "ericarena",
"avatar_url": "https://avatars.githubusercontent.com/u/4518927?v=4",
"profile": "https://github.com/ericarena",
"contributions": [
"code"
]
},
{
"login": "WntFlm",
"name": "WntFlm",
"avatar_url": "https://avatars.githubusercontent.com/u/34620278?v=4",
"profile": "https://github.com/WntFlm",
"contributions": [
"code"
]
},
{
"login": "XZB-1248",
"name": "XZB-1248",
"avatar_url": "https://avatars.githubusercontent.com/u/28593573?v=4",
"profile": "https://github.com/XZB-1248",
"contributions": [
"code"
]
}
],
"contributorsPerLine": 7,
"projectName": "alist",
"projectOwner": "Xhofe",
"projectOwner": "alist-org",
"repoType": "github",
"repoHost": "https://github.com",
"skipCi": true
+11 -2
View File
@@ -1,6 +1,6 @@
name: "Bug report"
description: Bug report
labels: [pending triage]
labels: [bug]
body:
- type: markdown
attributes:
@@ -12,9 +12,10 @@ body:
label: Please make sure of the following things
description: You may select more than one, even select all.
options:
- label: I have read the [documentation](https://alist-doc.nn.ci).
- label: I have read the [documentation](https://alist.nn.ci).
- label: I'm sure there are no duplicate issues or discussions.
- label: I'm sure it's due to `alist` and not something else(such as `Dependencies` or `Operational`).
- label: I'm sure I'm using the latest version
- type: input
id: version
attributes:
@@ -23,6 +24,14 @@ body:
placeholder: v2.0.0
validations:
required: true
- type: input
id: driver
attributes:
label: Driver used / 使用的存储驱动
description: What storage driver are you using?
placeholder: "for example: Onedrive"
validations:
required: true
- type: textarea
id: bug-description
attributes:
+2 -2
View File
@@ -1,13 +1,13 @@
name: "Feature request"
description: Feature request
labels: ["enhancement: pending triage"]
labels: [enhancement]
body:
- type: checkboxes
attributes:
label: Please make sure of the following things
description: You may select more than one, even select all.
options:
- label: I have read the [documentation](https://alist-doc.nn.ci).
- label: I have read the [documentation](https://alist.nn.ci).
- label: I'm sure there are no duplicate issues or discussions.
- label: I'm sure this feature is not implemented.
- label: I'm sure it's a reasonable and popular requirement.
+64
View File
@@ -0,0 +1,64 @@
name: auto_lang
on:
push:
branches:
- 'main'
paths:
- 'drivers/**'
- 'internal/bootstrap/data/setting.go'
workflow_dispatch:
jobs:
auto_lang:
strategy:
matrix:
platform: [ ubuntu-latest ]
go-version: [ 1.19 ]
name: auto generate lang.json
runs-on: ${{ matrix.platform }}
steps:
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout alist
uses: actions/checkout@v2
with:
path: alist
- name: Checkout alist-web
uses: actions/checkout@v3
with:
repository: 'alist-org/alist-web'
ref: main
persist-credentials: false
fetch-depth: 0
path: alist-web
- name: Generate lang
run: |
cd alist
go run ./main.go lang
cd ..
- name: Copy lang file
run: |
cp -f ./alist/lang/*.json ./alist-web/src/lang/en/ 2>/dev/null || :
- name: Commit git
run: |
cd alist-web
git add .
git config --local user.email "i@nn.ci"
git config --local user.name "Noah Hsu"
git commit -m "chore: auto update i18n file" -a 2>/dev/null || :
cd ..
- name: Push lang files
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.MY_TOKEN }}
branch: main
directory: alist-web
repository: alist-org/alist-web
+7 -17
View File
@@ -20,31 +20,21 @@ jobs:
with:
go-version: ${{ matrix.go-version }}
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Checkout
uses: actions/checkout@v2
with:
path: alist
uses: actions/checkout@v3
- name: Install upx
- name: Install dependencies
run: |
docker pull crazymax/xgo:latest
go install github.com/crazy-max/xgo@latest
docker pull techknowlogick/xgo:latest
go install src.techknowlogick.com/xgo@latest
sudo apt install upx
- name: Build
run: |
mv alist/build.sh .
bash build.sh web
mv dist/* alist/public
bash build.sh build
bash build.sh dev
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: artifact
path: alist/build
name: alist
path: dist
+4 -9
View File
@@ -2,7 +2,7 @@ name: build_docker
on:
push:
branches: [ v2 ]
branches: [ main ]
jobs:
build_docker:
@@ -16,14 +16,9 @@ jobs:
uses: docker/metadata-action@v3
with:
images: xhofe/alist
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Build web
- name: Replace release with dev
run: |
bash build.sh web
mv dist/* public
sed -i 's/release/dev/g' Dockerfile
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
@@ -41,4 +36,4 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/386,linux/arm/v6,linux/s390x
platforms: linux/amd64,linux/arm64
@@ -0,0 +1,17 @@
name: Check inactive
on:
schedule:
- cron: "0 0 1 * *"
jobs:
check-inactive:
runs-on: ubuntu-latest
steps:
- name: check-inactive
uses: actions-cool/issues-helper@v3
with:
actions: 'check-inactive'
token: ${{ secrets.GITHUB_TOKEN }}
inactive-day: 30
body: Hello, this issue has been inactive for more than 30 days and will be closed if inactive for another 30 days.
@@ -0,0 +1,20 @@
name: Close inactive
on:
schedule:
- cron: "0 0 */7 * *"
jobs:
close-inactive:
runs-on: ubuntu-latest
steps:
- name: close-issues
uses: actions-cool/issues-helper@v3
with:
actions: 'close-issues'
token: ${{ secrets.GITHUB_TOKEN }}
labels: 'inactive'
inactive-day: 30
close-reason: 'not_planned'
body: |
Hello @${{ github.event.issue.user.login }}, this issue was closed due to inactive more than 60 days. You can reopen or recreate it if you think it should continue.
@@ -1,20 +1,21 @@
name: Check need info
name: Close need info
on:
schedule:
- cron: "0 0 */7 * *"
jobs:
check-need-info:
close-need-info:
runs-on: ubuntu-latest
steps:
- name: close-issues
uses: actions-cool/issues-helper@v2
uses: actions-cool/issues-helper@v3
with:
actions: 'close-issues'
token: ${{ secrets.GITHUB_TOKEN }}
labels: 'question'
inactive-day: 7
close-reason: 'not_planned'
body: |
Hello @${{ github.event.issue.user.login }}, this issue was closed due to no activities in 7 days.
你好 @${{ github.event.issue.user.login }},此issue因超过7天未回复被关闭。
+1 -1
View File
@@ -19,7 +19,7 @@ jobs:
Hello @${{ github.event.issue.user.login }}, your issue is a duplicate and will be closed.
你好 @${{ github.event.issue.user.login }},你的issue是重复的,将被关闭。
- name: Close issue
uses: actions-cool/issues-helper@v2
uses: actions-cool/issues-helper@v3
with:
actions: 'close-issue'
token: ${{ secrets.GITHUB_TOKEN }}
+1 -1
View File
@@ -19,7 +19,7 @@ jobs:
Hello @${{ github.event.issue.user.login }}, your issue is invalid and will be closed.
你好 @${{ github.event.issue.user.login }},你的issue无效,将被关闭。
- name: Close issue
uses: actions-cool/issues-helper@v2
uses: actions-cool/issues-helper@v3
with:
actions: 'close-issue'
token: ${{ secrets.GITHUB_TOKEN }}
@@ -1,16 +0,0 @@
name: Issue Month Statistics
on:
schedule:
- cron: "0 1 1 * *"
jobs:
month-statistics:
runs-on: ubuntu-latest
steps:
- name: month-statistics
uses: actions-cool/issues-month-statistics@v1
with:
count-lables: true
count-comments: true
emoji: 'eyes'
+19
View File
@@ -0,0 +1,19 @@
name: Issues Similarity Analysis
on:
issues:
types: [opened, edited]
jobs:
similarity-analysis:
runs-on: ubuntu-latest
steps:
- name: analysis
uses: actions-cool/issues-similarity-analysis@v1
with:
filter-threshold: 0.5
comment-title: '### See'
comment-body: '${index}. ${similarity} #${number}'
show-footer: false
show-mentioned: true
since-days: 730
+13
View File
@@ -0,0 +1,13 @@
name: Translation Helper
on:
pull_request_target:
types: [opened]
issues:
types: [opened]
jobs:
translate:
runs-on: ubuntu-latest
steps:
- uses: actions-cool/translation-helper@v1.2.0
+1 -1
View File
@@ -19,7 +19,7 @@ jobs:
Hello @${{ github.event.issue.user.login }}, this issue will not be worked on and will be closed.
你好 @${{ github.event.issue.user.login }},这不会被处理,将被关闭。
- name: Close issue
uses: actions-cool/issues-helper@v2
uses: actions-cool/issues-helper@v3
with:
actions: 'close-issue'
token: ${{ secrets.GITHUB_TOKEN }}
+16 -10
View File
@@ -6,7 +6,19 @@ on:
- '*'
jobs:
changelog:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- run: npx changelogithub # or changelogithub@0.12 if ensure the stable result
env:
GITHUB_TOKEN: ${{secrets.MY_TOKEN}}
release:
needs: changelog
strategy:
matrix:
platform: [ubuntu-latest]
@@ -22,25 +34,19 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
with:
ref: v2
path: alist
persist-credentials: false
fetch-depth: 0
- name: Install upx
- name: Install dependencies
run: |
docker pull crazymax/xgo:latest
go install github.com/crazy-max/xgo@latest
docker pull techknowlogick/xgo:latest
go install src.techknowlogick.com/xgo@latest
sudo apt install upx
- name: Build
run: |
mv alist/build.sh .
bash build.sh cdn
mv dist/* alist/public
bash build.sh release
- name: Release
uses: softprops/action-gh-release@v1
with:
files: alist/build/compress/*
files: build/compress/*
+6 -9
View File
@@ -6,34 +6,31 @@ on:
- '*'
jobs:
docker_release:
release_docker:
name: Docker
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: xhofe/alist
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Build web
run: |
bash build.sh cdn
mv dist/* public
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: xhofe
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
+6 -6
View File
@@ -1,7 +1,7 @@
.idea/
.DS_Store
output/
dist/
/dist/
# Binaries for programs and plugins
*.exe
@@ -21,9 +21,9 @@ dist/
# Dependency directories (remove the comment below to include it)
# vendor/
bin/*
/alist
*.json
public/*.html
public/assets/
public/public/
data/
data/
log/
lang/
public/dist/*
!public/dist/README.md
+128
View File
@@ -0,0 +1,128 @@
# Contributor Covenant Code of Conduct
## Our Pledge
We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.
We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.
## Our Standards
Examples of behavior that contributes to a positive environment for our
community include:
* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
overall community
Examples of unacceptable behavior include:
* The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Enforcement Responsibilities
Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.
Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.
## Scope
This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
i@nn.ci.
All complaints will be reviewed and investigated promptly and fairly.
All community leaders are obligated to respect the privacy and security of the
reporter of any incident.
## Enforcement Guidelines
Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:
### 1. Correction
**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.
**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.
### 2. Warning
**Community Impact**: A violation through a single incident or series
of actions.
**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.
### 3. Temporary Ban
**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.
**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.
### 4. Permanent Ban
**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.
**Consequence**: A permanent ban from any sort of public interaction within
the community.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).
[homepage]: https://www.contributor-covenant.org
For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.
+10 -8
View File
@@ -7,28 +7,31 @@
Prerequisites:
- [git](https://nodejs.org/zh-cn/)
- [Go 1.17+](https://golang.org/doc/install)
- [Go 1.18+](https://golang.org/doc/install)
- [gcc](https://gcc.gnu.org/)
- [nodejs](https://nodejs.org/)
Clone `alist` and `alist-web` anywhere:
```shell
$ git clone https://github.com/Xhofe/alist.git
$ git clone https://github.com/Xhofe/alist-web.git
$ git clone https://github.com/alist-org/alist.git
$ git clone --recurse-submodules https://github.com/alist-org/alist-web.git
```
You should switch to the dev branch for development.
You should switch to the `main` branch for development.
## Preview your change
### backend
```shell
$ go run alist.go
$ go run main.go
```
### frontend
```shell
$ yarn dev
$ pnpm dev
```
## Add a new driver
Copy `drivers/template` folder and rename it, and follow the comments in it.
## Create a commit
Commit messages should be well formatted, and to make that "standardized".
@@ -73,7 +76,6 @@ Must be one of the following:
* **chore**: Changes to the build process or auxiliary tools and libraries such as documentation
generation
* **release**: Release a new version
* **workflow**: Workflow related file modification
### Scope
The scope could be anything specifying place of the commit change. For example `$location`,
@@ -102,4 +104,4 @@ The rest of the commit message is then used for this.
## Submit a pull request
Push your branch to your `alist` fork and open a pull request against the
`dev` branch.
`main` branch.

Some files were not shown because too many files have changed in this diff Show More