Commit Graph

34 Commits

Author SHA1 Message Date
Innei
96263782d0 fix: lint and fix cache service
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-06 22:18:48 +08:00
Teror Fox
400d217aac feat: 添加推送到Bing支持 (#2379)
* feat(core): 添加 Bing 搜索推送功能

- 在 errorCode.constant.ts 中添加 Bing 相关的错误代码
- 在 configs.dto.ts 中添加 BingSearchOptionDto 类用于配置 Bing 推送选项
- 在 helper.cron.service.ts 中实现 pushToBingSearch 方法进行 Bing 搜索推送

* feat(core): 添加必应搜索推送配置并优化相关功能

- 在默认配置中添加 bingSearchOptions 项
- 更新 BingSearchOptionDto 类,统一字段命名
- 在 IConfig 接口中添加 bingSearchOptions 字段
- 修改 CronService 中的 pushToBingSearch 方法,适配新配置

* build: 更新下载资源链接

- 将 CDN 下载 URL 从 `https://mirror.ghproxy.com/` 更改为 `https://ghfast.top/`

* feat(api-client): 添加 Bing 搜索配置模型

- 新增 BingSearchOptionsModel 类,用于 Bing 搜索的配置选项
- 该模型包括 enable 和 token 两个属性,与 BaiduSearchOptionsModel 类似

* refactor(configs): 统一配置类命名规则

- 将 BingSearchOptionDto 重命名为 BingSearchOptionsDto,与 BaiduSearchOptionsDto 保持一致
- 更新相关引用和配置字段类型

* feat(core): 添加每日凌晨1点执行的 Bing 搜索推送任务

- 在 CronService 类中添加了 pushToBingSearch 方法
- 使用 @CronOnce 装饰器设置任务执行时间为每天凌晨1点
- 任务名称为 'pushToBingSearch'
- 方法描述为 '推送到Bing'

* chore: 添加.eslintcache到.gitignore

- 在.gitignore文件中添加.eslintcache,避免eslint缓存文件被版本控制

* feat(docs): 更新readme

* refactor(core): 优化 Bing 站长提交日志输出

- 修改了 Bing 站长提交结果的日志输出格式
- 当提交成功时,输出简短的成功日志
- 当提交失败时,仍输出详细的错误信息

* Update apps/core/src/processors/helper/helper.cron.service.ts

Co-authored-by: Innei <tukon479@gmail.com>
Signed-off-by: Teror Fox <i@trfox.top>

* chore: 删除废弃的服务器部署脚本

* feat(core): 添加 Bing API 域名无效错误码

- 在 ErrorCodeEnum 枚举中添加 BingDomainInvalid 错误码
- 在 ErrorCode 对象中添加对应的错误信息和状态码

* refactor(core): 修复 Bing 推送异常时返回值问题

---------

Signed-off-by: Teror Fox <i@trfox.top>
Co-authored-by: Innei <tukon479@gmail.com>
2025-03-17 23:46:05 +08:00
Innei
2f1a973e5e feat: add comment editedAt
Signed-off-by: Innei <i@innei.in>
2024-09-17 15:53:11 +08:00
Innei
26b2b4f134 feat: reader for comment and like action (#2122)
* init

Signed-off-by: Innei <i@innei.in>

* update

Signed-off-by: Innei <i@innei.in>

* feat: reader like activity

Signed-off-by: Innei <i@innei.in>

* feat: add comment

Signed-off-by: Innei <i@innei.in>

* feat: comment reader

Signed-off-by: Innei <i@innei.in>

---------

Signed-off-by: Innei <i@innei.in>
2024-09-14 20:26:18 +08:00
Innei
02c213a176 fix: add handle for reader query
Signed-off-by: Innei <i@innei.in>
2024-09-02 17:26:36 +08:00
Innei
58917f673e fix: add missing field
Signed-off-by: Innei <i@innei.in>
2024-09-02 17:03:20 +08:00
Innei
f7bce0279a fix: transform case and export client type
Signed-off-by: Innei <i@innei.in>
2024-09-02 16:52:52 +08:00
Innei
c27ee8c28d feat: image blur hash (#2010)
* feat: image blur hash

Signed-off-by: Innei <i@innei.in>

* fix: split util

Signed-off-by: Innei <i@innei.in>

* feat: refresh image

Signed-off-by: Innei <i@innei.in>

* fix: add logger

Signed-off-by: Innei <i@innei.in>

* chore: cleanup

Signed-off-by: Innei <i@innei.in>

* fix: update

Signed-off-by: Innei <i@innei.in>

---------

Signed-off-by: Innei <i@innei.in>
2024-08-16 15:20:22 +08:00
Innei
817b81a983 chore: format
Signed-off-by: Innei <i@innei.in>
2024-08-16 12:30:06 +08:00
Innei
e5ac04a650 chore: lint with sxzz config
Signed-off-by: Innei <i@innei.in>
2024-04-29 16:00:20 +08:00
Innei
5a028c82e3 feat: add getLastYearPublication api
Signed-off-by: Innei <i@innei.in>
2024-04-26 23:24:47 +08:00
Innei
c989a2a7b0 feat: ai module (#1649)
* fix: pass `truncate`

Signed-off-by: Innei <i@innei.in>

* feat: add openai summary

Signed-off-by: Innei <i@innei.in>

* feat: ai list api

Signed-off-by: Innei <i@innei.in>

---------

Signed-off-by: Innei <i@innei.in>
2024-04-26 19:52:11 +08:00
Innei
903aa30122 fix: add some field
Signed-off-by: Innei <i@innei.in>
2024-04-13 19:37:42 +08:00
Innei
b4726adfd8 feat: add recent activity api
Signed-off-by: Innei <i@innei.in>
2024-04-12 21:08:03 +08:00
Innei
04c749de8a chore!: remove note music deprecated field
Signed-off-by: Innei <i@innei.in>
2024-04-06 18:11:08 +08:00
Innei
8bfa464615 fix: update model
Signed-off-by: Innei <i@innei.in>
2024-02-16 12:36:04 +08:00
Innei
6745194197 refactor!: rename note model field and fix exposure of hidden data
Signed-off-by: Innei <i@innei.in>
2024-02-15 22:29:51 +08:00
Innei
4683b697ce feat: add api sdk for this
Signed-off-by: Innei <i@innei.in>
2024-02-14 22:04:24 +08:00
Innei
db8745485f fix: post model type
Signed-off-by: Innei <i@innei.in>
2024-02-12 15:47:40 +08:00
Innei
267632be94 feat: support socket room and add activity presence (#1445)
* feat: room init

Signed-off-by: Innei <i@innei.in>

* feat: web gateway hooks

Signed-off-by: Innei <i@innei.in>

* perf: debounce update event

Signed-off-by: Innei <i@innei.in>

* fix: socket online more accurate

* fix: singleton

* feat: add more hooks

* fix: set metadata on socket

* feat: api-client update

Signed-off-by: Innei <i@innei.in>

* update

Signed-off-by: Innei <i@innei.in>

* feat: add ip

Signed-off-by: Innei <i@innei.in>

* refactor: event

Signed-off-by: Innei <i@innei.in>

* fix: test

Signed-off-by: Innei <i@innei.in>

---------

Signed-off-by: Innei <i@innei.in>
2024-02-11 19:01:08 +08:00
Innei
5ec2c29842 fix: should export a enum value
Signed-off-by: Innei <i@innei.in>
2023-12-27 17:42:24 +08:00
Innei
3e8ee3ee29 chore(api-client): add export for CollectionRefTypes
Signed-off-by: Innei <i@innei.in>
2023-12-27 17:39:44 +08:00
Innei
e2accf4865 fix(sdk): ref type 2023-12-27 17:34:36 +08:00
Innei
34d8d3f41b fix: add types in comment
Signed-off-by: Innei <i@innei.in>
2023-06-28 14:43:52 +08:00
Innei
fbcf2cc53f fix: test case
Signed-off-by: Innei <tukon479@gmail.com>
2023-06-17 09:38:52 +08:00
Innei
b22666694a chore: lint
Signed-off-by: Innei <tukon479@gmail.com>
2023-06-10 16:36:14 +08:00
Innei
fb69652b91 chore: update api-client 2023-04-29 22:47:35 +08:00
Innei
e6fd545c3b fix(api-client): add missing property location
Signed-off-by: Innei <tukon479@gmail.com>
2023-03-09 20:37:09 +08:00
Innei
1b80adb02c feat(subscribe): add feature list toggle
Signed-off-by: Innei <tukon479@gmail.com>
2023-02-13 22:50:00 +08:00
c8667ec5e2 feat: newsletter subscribe (#968)
* feat: subscribe newsletter

Signed-off-by: Innei <tukon479@gmail.com>

* feat(subscribe): send email

Signed-off-by: Innei <tukon479@gmail.com>

* fix(template): email template override

Signed-off-by: Innei <tukon479@gmail.com>

* fix: newsletter template props

Signed-off-by: Innei <tukon479@gmail.com>

* fix: get master inside

Signed-off-by: Innei <tukon479@gmail.com>

* feat: add sort

Signed-off-by: Innei <tukon479@gmail.com>

* feat(api-client): add subscribe controller

Signed-off-by: Innei <tukon479@gmail.com>

---------

Signed-off-by: Innei <tukon479@gmail.com>
2023-02-13 15:15:13 +08:00
a2e3fc327e chore(api-client): bundler to tsup (#944) 2023-01-27 22:40:16 +08:00
Innei
d25ba45853 feat: recently response add comments
Signed-off-by: Innei <tukon479@gmail.com>
2022-12-23 11:17:06 +08:00
Innei
1073c67646 feat: add liked for post and note model
Signed-off-by: Innei <tukon479@gmail.com>
2022-12-22 18:07:40 +08:00
Innei
a281f45ab4 feat: move api-client as core's monorepo
Signed-off-by: Innei <tukon479@gmail.com>
2022-12-20 21:26:21 +08:00