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
Noah Hsu
bc6baf1be0
fix(ci): sort lang json file
2022-12-05 14:40:46 +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
efe0e6af22
feat: silent start, stop and restart
2022-11-11 18:42:06 +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
dcaaae366b
feat: add support for mega.nz (close 1553)
2022-10-08 22:16:41 +08:00
联盟少侠
08a001fbd1
feat: add a start func for external calls ( #1628 )
2022-09-13 20:12:57 +08:00
Noah Hsu
40882443c2
feat: add show admin's username
2022-09-10 16:39:08 +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
7ac1d14eeb
style: shorten name operations
to op
2022-08-31 21:01:15 +08:00
Noah Hsu
41edac5826
fix: convert driver name while generate lang
2022-08-30 22:11:58 +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
a6f3094c9a
chore: graceful restart or stop
2022-08-28 15:34:12 +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
0fdfd1f2c2
feat: load storages while starting
2022-08-11 21:32:33 +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
8c27ca3e8b
chore: import fmt
2022-07-29 18:22:42 +08:00
Noah Hsu
3c7a2f78cf
chore: init db and aria2
2022-06-29 17:37:40 +08:00
Noah Hsu
1a148eee7c
feat: initial setting items
2022-06-27 15:51:02 +08:00
Noah Hsu
c67f128f15
chore: move server package to root
2022-06-26 19:10:14 +08:00
Noah Hsu
54ca68e4b3
chore: init users
2022-06-25 22:05:02 +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
e4b956b091
chore: set log structure first
2022-06-14 17:18:58 +08:00
Noah Hsu
0d93a6aa41
feat: driver manage
2022-06-07 18:13:55 +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