BoYanZh
4568af9542
feat: better static file Cache-Control ( #2751 )
2022-12-19 13:32:00 +08:00
Noah Hsu
b50d486a63
fix: sub path check if subPath = `/`
2022-12-18 21:28:38 +08:00
BoYanZh
0ae3fc608b
feat: export all cmd ( #2746 )
2022-12-18 19:53:39 +08:00
foxxorcat
6024e8d832
refactor: split the db package hook and cache to the op package ( #2747 )
...
* refactor:separate the setting method from the db package to the op package and add the cache
* refactor:separate the meta method from the db package to the op package
* fix:setting not load database data
* refactor:separate the user method from the db package to the op package
* refactor:remove user JoinPath error
* fix:op package user cache
* refactor:fs package list method
* fix:tile virtual paths (close #2743 )
* Revert "refactor:remove user JoinPath error"
This reverts commit 4e20daaf9e
.
* clean path directly may lead to unknown behavior
* fix: The path of the meta passed in must be prefix of reqPath
* chore: rename all virtualPath to mountPath
* fix: `getStoragesByPath` and `GetStorageVirtualFilesByPath`
is_sub_path:
/a/b isn't subpath of /a/bc
* fix: don't save setting if hook error
Co-authored-by: Noah Hsu <i@nn.ci>
2022-12-18 19:51:20 +08:00
EthanZhu
f38f4f401b
fix(139): modify chunk size to avoid large file upload failure ( close #2744 close #2682 pr #2745 )
2022-12-18 17:48:09 +08:00
BoYanZh
3b2ae85009
chore: only ignore root dirs ( #2741 )
2022-12-18 16:48:32 +08:00
baysonfox
faf4150d1e
docs: fix badges on `README.md` and `README_cn.md` [skip ci] ( #2749 )
2022-12-18 16:48:03 +08:00
foxxorcat
fb64f00640
refactor: obj name mapping and internal path processing ( #2733 )
...
* refactor:Prepare to remove the get interface
* feat:add obj Unwarp interface
* refactor:obj name mapping and program internal path processing
* chore: fix typo
* feat: unwrap get
* fix: no use op.Get to get parent id
* fix: set the path uniformly
Co-authored-by: Noah Hsu <i@nn.ci>
2022-12-17 19:49:05 +08:00
AkashiCoin
3d336b328a
feat: add pikpak share driver ( close #2728 pr #2731 )
2022-12-16 19:10:19 +08:00
renovate[bot]
f9cf29e0b6
fix(deps): update module golang.org/x/crypto to v0.4.0 ( #2638 ) [skip ci]
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-16 19:08:52 +08:00
renovate[bot]
cbd038f30f
fix(deps): update module golang.org/x/net to v0.4.0 ( #2608 ) [skip ci]
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-16 19:05:20 +08:00
renovate[bot]
2aeb75a779
fix(deps): update module github.com/blevesearch/bleve/v2 to v2.3.6 ( #2727 ) [skip ci]
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-16 19:05:06 +08:00
renovate[bot]
2f8eaf6bea
fix(deps): update module github.com/pquerna/otp to v1.4.0 ( #2708 ) [skip ci]
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-16 18:15:59 +08:00
renovate[bot]
fb7a5dec1b
fix(deps): update module golang.org/x/image to v0.2.0 ( #2601 ) [skip ci]
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-16 18:15:19 +08:00
renovate[bot]
e61bac039a
fix(deps): update module github.com/aws/aws-sdk-go to v1.44.161 ( #2595 ) [skip ci]
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-16 18:14:56 +08:00
BoYanZh
b3be9ef428
feat(search): use `FULLTEXT` index ( close #2716 pr #2726 )
2022-12-16 16:51:36 +08:00
BoYanZh
5a6b600ace
feat: show gorm log on debug/dev mode ( #2720 )
2022-12-15 17:48:52 +08:00
BoYanZh
e58ca686e3
feat: cache static files ( #2715 )
2022-12-15 17:48:29 +08:00
BoYanZh
6f4b1ba4b3
feat: log to stdout & file ( #2709 )
2022-12-14 13:19:08 +08:00
BoYanZh
cdc45630ae
fix: `whereInParent` when parent = "/" ( #2706 )
2022-12-14 10:37:09 +08:00
BoYanZh
7947ff1ae4
feat: limit max connection count ( #2701 )
2022-12-14 10:33:58 +08:00
foxxorcat
33bae52fa1
refactor: optimize driver initialization need to manually deserialize and assign values, and remove redundant driver registration parameters ( #2691 )
...
* refactor: optimize driver initialization need to manually deserialize and assign values, and remove redundant driver registration parameters
* fix typo
Co-authored-by: Noah Hsu <i@nn.ci>
2022-12-13 18:03:30 +08:00
Noah Hsu
3ee45c69a7
fix(baidu_netdisk): encode path for create ( close #2690 )
2022-12-13 17:57:41 +08:00
BoYanZh
179d285564
feat: optimize database search ( #2687 )
...
* feat: remove index on `SearchNode.Name`
As we do not use s% on name column, index there does not work
* fix: init index after init data
Or on the first run, it will log 'init index error: readObjectStart: expect { or n, but found , error found in #0 byte of ...||..., bigger context ...||...'
* fix: match parent more precisely
It will match `/a/bc` if we search in `/a/b` originally.
But it is not backward compatible by adding a suffix `/`
to all the data in parent field
2022-12-12 20:20:01 +08:00
BoYanZh
a2e8e96c71
feat: respond static file on loading storages ( #2686 )
2022-12-12 20:17:58 +08:00
Noah Hsu
5043815d48
fix(search): don't delete virtual folder while update indexes ( close #2677 )
2022-12-11 14:59:58 +08:00
BoYanZh
1640f06e13
feat(search): multiple keywords split by space ( #2669 )
2022-12-10 19:28:34 +08:00
BoYanZh
62ea93837c
feat: alist v3 index permission ( #2653 )
...
* feat: alist v3 index permission
* fix allowIndexed check
Co-authored-by: Noah Hsu <i@nn.ci>
2022-12-10 19:03:09 +08:00
Noah Hsu
446f82888c
fix(local): add sign to thumbnail ( close #2536 close #2650 )
2022-12-09 10:08:31 +08:00
BoYanZh
6f1aeb47fd
feat: index enhancement ( close #2632 pr #2636 )
...
* feat: index paths as setting
* feat: clear index (#2632 )
* feat: check indexMQ more frequently
2022-12-09 10:02:13 +08:00
Noah Hsu
1f7c1b4f43
fix(cors): allow all methods ( close #2640 )
2022-12-08 11:35:21 +08:00
BoYanZh
3fa0217c4b
feat(alist-v3): support write ( close #2626 pr #2635 )
2022-12-07 19:02:28 +08:00
Noah Hsu
2dd30f2b77
feat(search): support with password
2022-12-07 10:45:02 +08:00
BoYanZh
6e23c8b4c0
feat: partial update index ( close #2593 close #2621 pr #2624 )
2022-12-07 10:41:52 +08:00
BoYanZh
72aa63adce
fix: skip virtual driver on building index ( close #2604 pr #2617 )
2022-12-06 20:43:32 +08:00
Noah Hsu
e65e8be59e
fix(search): missed base_path of user for parent ( close #2611 )
2022-12-06 17:28:39 +08:00
BoYanZh
7aa4dfb240
feat: use natural sort in `SortFiles` ( #2612 )
2022-12-06 17:28:18 +08:00
CN-traveler
bd324233a0
fix: can't paste image while report bug ( #2597 ) [skip ci]
2022-12-06 09:19:49 +08:00
Noah Hsu
f1a9b68022
fix(index): update indexes in database
2022-12-05 20:23:37 +08:00
Noah Hsu
dda1da4576
fix(index): nil pointer call
2022-12-05 20:22:35 +08:00
Noah Hsu
5b7aa9c1cf
feat: allow all cors headers ( close #2571 )
2022-12-05 20:05:20 +08:00
Noah Hsu
a28aaceaad
chore(ci): only build on main branch
2022-12-05 19:52:02 +08:00
renovate[bot]
2bb200af87
fix(deps): update modules by renovate[bot]
...
fix(deps): update module github.com/sheltonzhu/115driver to v1.0.13 (#2413 ) [skip ci]
fix(deps): update module github.com/golang-jwt/jwt/v4 to v4.4.3 (#2526 ) [skip ci]
fix(deps): update module golang.org/x/image to v0.1.0 (#2587 ) [skip ci]
chore: go mod tidy
Co-Authored-By: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-05 19:50:49 +08:00
Noah Hsu
97f1efbb72
feat!: disable `--force-bin-dir` if `--data` is abs
...
related issues: #2580 #2542
after this commit, the `--force-bin-dir` would take no effect if `--data` is absolute path
2022-12-05 18:32:48 +08:00
Noah Hsu
bf8b6f4c2c
feat: customize ignore paths of indexes
2022-12-05 16:45:11 +08:00
Noah Hsu
bd33c200dc
feat: optimize index build
2022-12-05 16:07:36 +08:00
Noah Hsu
bc6baf1be0
fix(ci): sort lang json file
2022-12-05 14:40:46 +08:00
BoYanZh
dc8d5106f9
feat: auto fix address in alist & smb storages ( #2582 )
2022-12-05 13:31:34 +08:00
BoYanZh
8c0dfe2f3d
feat: Search enhancement ( #2562 )
...
* feat: ignore AList storage on indexing
* fix: remove unused err in `walkFn`
* chore(ci): fix auto_lang trigger and run it
* feat: batch index
* feat: quit index & init index
* feat: set DocType for bleve data
* fix: build index cleanup check origin err
2022-12-05 13:28:39 +08:00
Noah Hsu
4e1be9bee6
fix: async init aria2 to optimize start duration
2022-12-04 00:00:40 +08:00