Skip to content
Closed
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
605 commits
Select commit Hold shift + click to select a range
d1392b0
fix: server add internal token
Yuuki-Sakura Oct 24, 2025
1c8b5c1
feat: 邮件服务
niuwenzheng Oct 24, 2025
bb83215
feat: 邮件服务
niuwenzheng Oct 24, 2025
4b13b18
Merge branch 'merge' of github.com:yikart/aitoearn-monorepo into merge
niuwenzheng Oct 24, 2025
142275c
Merge branch 'merge' of github.com:yikart/aitoearn-monorepo into merge
niuwenzheng Oct 24, 2025
1846595
style: lint code
Yuuki-Sakura Oct 24, 2025
652365a
style: lint code
Yuuki-Sakura Oct 24, 2025
5ed0f68
fix statistics user task posts db
bingyunsky Oct 24, 2025
091901c
fix statistics user task posts db
bingyunsky Oct 24, 2025
5bbe0c8
feat: 迁入发布记录
niuwenzheng Oct 24, 2025
d868b1e
feat: 迁入发布记录
niuwenzheng Oct 24, 2025
b475ae1
style: 1
niuwenzheng Oct 24, 2025
226dbf3
style: 1
niuwenzheng Oct 24, 2025
17a06e9
Merge branches 'merge' and 'merge' of github.com:yikart/aitoearn-mono…
niuwenzheng Oct 24, 2025
7d1a87a
Merge branches 'merge' and 'merge' of github.com:yikart/aitoearn-mono…
niuwenzheng Oct 24, 2025
5f03997
fix router bug
bingyunsky Oct 24, 2025
f568e0a
fix router bug
bingyunsky Oct 24, 2025
1db30b6
Merge branch 'merge' of https://github.com/yikart/aitoearn-monorepo i…
bingyunsky Oct 24, 2025
c911a9e
Merge branch 'merge' of https://github.com/yikart/aitoearn-monorepo i…
bingyunsky Oct 24, 2025
e6d4f63
fix: 解决邮件发送失败
niuwenzheng Oct 24, 2025
b9dd9d6
fix: 解决邮件发送失败
niuwenzheng Oct 24, 2025
d19026c
Merge branch 'merge' of github.com:yikart/aitoearn-monorepo into merge
niuwenzheng Oct 24, 2025
ad08a36
Merge branch 'merge' of github.com:yikart/aitoearn-monorepo into merge
niuwenzheng Oct 24, 2025
7515dd9
fix: 修复更新密码
niuwenzheng Oct 24, 2025
0ee7f20
fix: 修复更新密码
niuwenzheng Oct 24, 2025
5fe41f9
fix: axios request
Yuuki-Sakura Oct 24, 2025
5810c9d
fix: axios request
Yuuki-Sakura Oct 24, 2025
dba73ca
style: 1
niuwenzheng Oct 24, 2025
b7e1daf
style: 1
niuwenzheng Oct 24, 2025
6a53d97
Merge branch 'merge' of github.com:yikart/aitoearn-monorepo into merge
niuwenzheng Oct 24, 2025
bbb602f
Merge branch 'merge' of github.com:yikart/aitoearn-monorepo into merge
niuwenzheng Oct 24, 2025
979f800
fix statistics api
bingyunsky Oct 24, 2025
2a53b71
fix statistics api
bingyunsky Oct 24, 2025
567314d
fix statistics api
bingyunsky Oct 24, 2025
2535375
fix statistics api
bingyunsky Oct 24, 2025
69c98b3
fix: internal auth
Yuuki-Sakura Oct 24, 2025
f52cf15
feat(apps): add channel app
wheatliu Oct 24, 2025
77d7b1f
feat(apps): add channel app
wheatliu Oct 24, 2025
6c2f4bb
feat(internal api): add account internal api
wheatliu Oct 24, 2025
a1bf91f
feat(internal api): add account internal api
wheatliu Oct 24, 2025
4115b2f
fix(format): eslint autofix
wheatliu Oct 24, 2025
3d6510b
fix(format): eslint autofix
wheatliu Oct 24, 2025
415825b
fix: admin payment
Yuuki-Sakura Oct 24, 2025
b73821c
feat: 账号和草稿
niuwenzheng Oct 24, 2025
21ea864
feat: 账号和草稿
niuwenzheng Oct 24, 2025
40ba064
Merge branch 'merge' of github.com:yikart/aitoearn-monorepo into merge
niuwenzheng Oct 24, 2025
87dbd7e
Merge branch 'merge' of github.com:yikart/aitoearn-monorepo into merge
niuwenzheng Oct 24, 2025
529fe2e
feat: add log for cloud watch logger
Yuuki-Sakura Oct 24, 2025
7966450
feat: add log for cloud watch logger
Yuuki-Sakura Oct 24, 2025
4f48f45
style: 1
niuwenzheng Oct 24, 2025
b93deab
style: 1
niuwenzheng Oct 24, 2025
d6f6e07
Merge branch 'merge' of github.com:yikart/aitoearn-monorepo into merge
niuwenzheng Oct 24, 2025
29e6749
Merge branch 'merge' of github.com:yikart/aitoearn-monorepo into merge
niuwenzheng Oct 24, 2025
d34c9db
fix: 1
niuwenzheng Oct 24, 2025
6f5c804
fix: 1
niuwenzheng Oct 24, 2025
cdc1b6a
fix: 1
niuwenzheng Oct 24, 2025
7ddfde3
fix: 1
niuwenzheng Oct 24, 2025
b944b17
feat: update log for cloud watch logger
Yuuki-Sakura Oct 24, 2025
a1e375a
feat: update log for cloud watch logger
Yuuki-Sakura Oct 24, 2025
4021830
feat(internal api): add publishing internal api
wheatliu Oct 24, 2025
9d02f38
feat(internal api): add publishing internal api
wheatliu Oct 24, 2025
76f67d1
fix(pnpm): revert pnpm-local.yaml
wheatliu Oct 24, 2025
a674c0e
fix(pnpm): revert pnpm-local.yaml
wheatliu Oct 24, 2025
f3c18cc
fix(channel): fix syntax error
wheatliu Oct 24, 2025
9db79e7
fix(channel): fix syntax error
wheatliu Oct 24, 2025
5e27677
fix(mongodb): upgrade mongodb version
wheatliu Oct 24, 2025
5b0a458
fix(mongodb): upgrade mongodb version
wheatliu Oct 24, 2025
a0525f6
feat: task接口改动
niuwenzheng Oct 24, 2025
117e71d
feat: task接口改动
niuwenzheng Oct 24, 2025
39ea53b
Merge branches 'merge' and 'merge' of github.com:yikart/aitoearn-mono…
niuwenzheng Oct 24, 2025
2100ac5
Merge branches 'merge' and 'merge' of github.com:yikart/aitoearn-mono…
niuwenzheng Oct 24, 2025
b9c363e
feat: s3 pre signed url upload
Yuuki-Sakura Oct 24, 2025
1dccf4d
feat: s3 pre signed url upload
Yuuki-Sakura Oct 24, 2025
df937c7
fix statistics controller
bingyunsky Oct 24, 2025
6816816
fix statistics controller
bingyunsky Oct 24, 2025
86c602c
chore(channel): add internal api auth
wheatliu Oct 24, 2025
6cd72b9
chore(channel): add internal api auth
wheatliu Oct 24, 2025
5a30db7
chore(channel): enable internal api
wheatliu Oct 24, 2025
b64c206
chore(channel): enable internal api
wheatliu Oct 24, 2025
9f12925
fix: 修复素材组列表
niuwenzheng Oct 24, 2025
fdb8ab7
fix: 修复素材组列表
niuwenzheng Oct 24, 2025
f3fc24c
Merge branch 'merge' of github.com:yikart/aitoearn-monorepo into merge
niuwenzheng Oct 24, 2025
72a730d
Merge branch 'merge' of github.com:yikart/aitoearn-monorepo into merge
niuwenzheng Oct 24, 2025
a590620
fix bug
bingyunsky Oct 24, 2025
8883633
fix bug
bingyunsky Oct 24, 2025
e6ca050
feat: ai image async
Yuuki-Sakura Oct 24, 2025
59242a2
feat: ai image async
Yuuki-Sakura Oct 24, 2025
6f83fb1
style: 1
niuwenzheng Oct 24, 2025
f6389bf
fix: 1
niuwenzheng Oct 24, 2025
31757cd
fix: 1
niuwenzheng Oct 24, 2025
61e0ec3
feat: ai image async
Yuuki-Sakura Oct 24, 2025
9d74329
feat: ai image async
Yuuki-Sakura Oct 24, 2025
1bf8987
style: 1
niuwenzheng Oct 24, 2025
a8d9311
Merge branch 'merge' of github.com:yikart/aitoearn-monorepo into merge
niuwenzheng Oct 24, 2025
bf66ebd
Merge branch 'merge' of github.com:yikart/aitoearn-monorepo into merge
niuwenzheng Oct 24, 2025
fec2f3f
chore(channel): debug publishing
wheatliu Oct 24, 2025
214495f
chore(channel): debug publishing
wheatliu Oct 24, 2025
6e6c372
chore(channel api): list user all posts
wheatliu Oct 24, 2025
a943a6c
chore(channel api): list user all posts
wheatliu Oct 24, 2025
ae91bc2
style: 1
niuwenzheng Oct 25, 2025
ae43678
style: 1
niuwenzheng Oct 25, 2025
e64e3fd
feat: 管理端草稿组
niuwenzheng Oct 25, 2025
ef64bfe
feat: 管理端草稿组
niuwenzheng Oct 25, 2025
c1e121a
feat: 部分内容接口改为直接调用数据库
niuwenzheng Oct 25, 2025
ce8f5a5
feat: 部分内容接口改为直接调用数据库
niuwenzheng Oct 25, 2025
76390de
feat: 任务数据更改到调用数据库
niuwenzheng Oct 25, 2025
c72b070
style: 1
niuwenzheng Oct 25, 2025
8dca197
fix: 管理端设置会员信息
niuwenzheng Oct 26, 2025
5e548b7
fix: 管理端设置会员信息
niuwenzheng Oct 26, 2025
34c14f8
style: 更改参数验证
niuwenzheng Oct 26, 2025
b959e3d
style: 更改参数验证
niuwenzheng Oct 26, 2025
7e917fa
style: 更换参数验证器
niuwenzheng Oct 26, 2025
3353902
style: 更换参数验证器
niuwenzheng Oct 26, 2025
d59611c
feat: 内容部分逻辑漏洞补充
niuwenzheng Oct 26, 2025
7da6e18
feat: 内容部分逻辑漏洞补充
niuwenzheng Oct 26, 2025
003174a
refactor: channel redis support redis cluster
Yuuki-Sakura Oct 27, 2025
0404c45
refactor: channel redis support redis cluster
Yuuki-Sakura Oct 27, 2025
a3e9f2a
chore: update config and deps
Yuuki-Sakura Oct 27, 2025
8fcd3de
chore: update config and deps
Yuuki-Sakura Oct 27, 2025
9ecd903
fix: remove nodejs-base64
Yuuki-Sakura Oct 27, 2025
7716ec4
fix: remove nodejs-base64
Yuuki-Sakura Oct 27, 2025
0fc9aca
chang add history posts to draft.
bingyunsky Oct 27, 2025
ec10517
chang add history posts to draft.
bingyunsky Oct 27, 2025
cc474df
feat: 草稿批量生成接口去掉类型参数
niuwenzheng Oct 27, 2025
d13a122
feat: 草稿批量生成接口去掉类型参数
niuwenzheng Oct 27, 2025
ca00487
feat: 提现接口限制
niuwenzheng Oct 27, 2025
865c5b2
feat: 提现接口限制
niuwenzheng Oct 27, 2025
0766227
fix: 修复积分列表返回值
niuwenzheng Oct 27, 2025
e200161
fix: 修复积分列表返回值
niuwenzheng Oct 27, 2025
b6d403a
fix(post history api): fix incompatibility issue with unionWith aggre…
wheatliu Oct 27, 2025
8df0af5
fix(post history api): fix incompatibility issue with unionWith aggre…
wheatliu Oct 27, 2025
f44bcc6
fix: ai vo
Yuuki-Sakura Oct 27, 2025
66e39a7
fix: ai vo
Yuuki-Sakura Oct 27, 2025
fc77860
fix(daily posts api): use internal service to fetch daily posts inste…
wheatliu Oct 27, 2025
2d68677
fix(daily posts api): use internal service to fetch daily posts inste…
wheatliu Oct 27, 2025
ac6b253
feat: Update .gitignore rules
niuwenzheng Oct 27, 2025
16cd795
feat: init
niuwenzheng Oct 27, 2025
4489297
feat(internal api): add ai chat internal api
wheatliu Oct 27, 2025
7918c23
feat(internal api): add ai chat internal api
wheatliu Oct 27, 2025
840d01a
feat(engagement): migrate transport to api request for ai chat
wheatliu Oct 27, 2025
8ea583b
feat(engagement): migrate transport to api request for ai chat
wheatliu Oct 27, 2025
be74a7c
fix(internal api): resolve dependencies of the ChatService
wheatliu Oct 27, 2025
9c1f98a
fix(internal api): resolve dependencies of the ChatService
wheatliu Oct 27, 2025
c9423ac
feat(engagement): resolve dependencies of the EngagementService
wheatliu Oct 27, 2025
fc2df41
feat(engagement): resolve dependencies of the EngagementService
wheatliu Oct 27, 2025
a561545
add internal api get account by types
bingyunsky Oct 27, 2025
537f4da
add internal api get account by types
bingyunsky Oct 27, 2025
68358ea
fix: 修复获取任务消息总数接口
niuwenzheng Oct 27, 2025
756b7bc
Merge branch 'merge' of github.com:yikart/aitoearn-monorepo into merge
niuwenzheng Oct 27, 2025
74298a4
Merge branch 'merge' of github.com:yikart/aitoearn-monorepo into merge
niuwenzheng Oct 27, 2025
25a2d22
Merge branch 'merge' into pub
niuwenzheng Oct 27, 2025
67a9e76
fix: 修复用户创建新账号没有素材组
niuwenzheng Oct 27, 2025
2ed5bff
fix: 修复用户创建新账号没有素材组
niuwenzheng Oct 27, 2025
154a0e4
Merge branch 'merge' of github.com:yikart/aitoearn-monorepo into merge
niuwenzheng Oct 27, 2025
34431b3
Merge branch 'merge' of github.com:yikart/aitoearn-monorepo into merge
niuwenzheng Oct 27, 2025
96e23d4
refactor: auth module
Yuuki-Sakura Oct 27, 2025
f55a374
refactor: auth module
Yuuki-Sakura Oct 27, 2025
4d4c0e7
fix: 1
niuwenzheng Oct 27, 2025
a9ab8a7
fix: 1
niuwenzheng Oct 27, 2025
dd20636
refactor: 删除无用模块
Yuuki-Sakura Oct 27, 2025
1ea55aa
refactor: 删除无用模块
Yuuki-Sakura Oct 27, 2025
e0238ef
style: 更换参数验证
niuwenzheng Oct 27, 2025
7b3149c
style: 更换参数验证
niuwenzheng Oct 27, 2025
0ed065d
Merge branches 'merge' and 'merge' of github.com:yikart/aitoearn-mono…
niuwenzheng Oct 27, 2025
281acb4
Merge branches 'merge' and 'merge' of github.com:yikart/aitoearn-mono…
niuwenzheng Oct 27, 2025
cba052e
fix: 1
niuwenzheng Oct 27, 2025
c968766
fix: 1
niuwenzheng Oct 27, 2025
b0651b6
google login
bulaienaofutuojiesenzhang Oct 27, 2025
300cafe
fix(server account): resolve account creation failure
wheatliu Oct 27, 2025
6e52fa1
fix(server account): resolve account creation failure
wheatliu Oct 27, 2025
d9bd3eb
fix(server posts): add missing id field to post object
wheatliu Oct 27, 2025
ea3f219
fix(server posts): add missing id field to post object
wheatliu Oct 27, 2025
e05e5c9
style: 更换参数验证器
niuwenzheng Oct 27, 2025
6c47a23
style: 更换参数验证器
niuwenzheng Oct 27, 2025
8be71f2
Merge branch 'merge' of github.com:yikart/aitoearn-monorepo into merge
niuwenzheng Oct 27, 2025
712a286
Merge branch 'merge' of github.com:yikart/aitoearn-monorepo into merge
niuwenzheng Oct 27, 2025
12c9cde
chore: update lockfile
Yuuki-Sakura Oct 27, 2025
e213595
chore: update lockfile
Yuuki-Sakura Oct 27, 2025
0007198
fix get account list by param
bingyunsky Oct 27, 2025
ba3f493
fix get account list by param
bingyunsky Oct 27, 2025
b269575
fix(user profile report): correct api path
wheatliu Oct 27, 2025
3d7e5a2
fix(user profile report): correct api path
wheatliu Oct 27, 2025
6c50186
fix: auth guard reflector
Yuuki-Sakura Oct 27, 2025
8ced060
fix: auth guard reflector
Yuuki-Sakura Oct 27, 2025
82e7569
style: 更换参数验证
niuwenzheng Oct 27, 2025
9828a85
style: 更换参数验证
niuwenzheng Oct 27, 2025
bcc67cd
Merge branch 'merge' of github.com:yikart/aitoearn-monorepo into merge
niuwenzheng Oct 27, 2025
0ce92a3
Merge branch 'merge' of github.com:yikart/aitoearn-monorepo into merge
niuwenzheng Oct 27, 2025
9842b67
fix(user statistics): correct api path
wheatliu Oct 27, 2025
47f5596
fix(user statistics): correct api path
wheatliu Oct 27, 2025
caa1e74
Merge branch 'merge' of github.com:yikart/aitoearn-monorepo into merge
niuwenzheng Oct 27, 2025
4c581ef
Merge branch 'merge' of github.com:yikart/aitoearn-monorepo into merge
niuwenzheng Oct 27, 2025
18486cf
Merge branch 'merge' into pub
niuwenzheng Oct 27, 2025
be5d74e
fix(channel api): correct api path
wheatliu Oct 27, 2025
805cde3
fix: sora2 支持文本到视频生成
Yuuki-Sakura Oct 27, 2025
10fc690
fix: bug fixes
wheatliu Oct 27, 2025
42bdfe9
style: 1
niuwenzheng Oct 28, 2025
bc4e7cc
Merge branch 'merge' of github.com:yikart/aitoearn-monorepo into merge
niuwenzheng Oct 28, 2025
7c7da12
Merge origin/merge into pub, excluding apps/aitoearn-admin-server, ap…
niuwenzheng Oct 28, 2025
eedf883
fix statistics posts list router
bingyunsky Oct 28, 2025
a5ce421
fix: 1
niuwenzheng Oct 28, 2025
6ef038d
Force commit ignoring ESLint errors
niuwenzheng Oct 28, 2025
8e1fbb9
ai视频
bulaienaofutuojiesenzhang Oct 28, 2025
621ff93
feat: add internal decorator and server client
Yuuki-Sakura Oct 28, 2025
890b3f8
erroes
bulaienaofutuojiesenzhang Oct 28, 2025
b7fbb9d
chore(gitignore): add prettier config
wheatliu Oct 28, 2025
cdeecde
chore(debug): add channel && server launch config
wheatliu Oct 28, 2025
8598168
fix(channel): fix CROSSSLOT Keys issue
wheatliu Oct 28, 2025
6d0eb79
fix statistics get posts list collection
bingyunsky Oct 28, 2025
cbf94f6
Merge branch 'merge' of https://github.com/yikart/aitoearn-monorepo i…
bingyunsky Oct 28, 2025
e345239
ai video
bulaienaofutuojiesenzhang Oct 28, 2025
2740a89
refactor: 迁移 api 调用到 client
Yuuki-Sakura Oct 28, 2025
2b685a2
fix: ai controller
Yuuki-Sakura Oct 28, 2025
873e12c
fix linkedin account type
bingyunsky Oct 28, 2025
287dec6
fix(aitoearn-server-client): correct api path
wheatliu Oct 28, 2025
d41aa53
fix(server): correct publishing api url
wheatliu Oct 28, 2025
a0c728c
fix: 修复支付接口
niuwenzheng Oct 28, 2025
5c136a0
Merge branch 'merge' of github.com:yikart/aitoearn-monorepo into merge
niuwenzheng Oct 28, 2025
0ead4b5
fix: 修复会员设置
niuwenzheng Oct 28, 2025
11efa26
all
bulaienaofutuojiesenzhang Oct 28, 2025
d9e22f7
fix statistics query data router
bingyunsky Oct 28, 2025
668661d
fix(server): correct engagement api path && service method
wheatliu Oct 28, 2025
8ca3143
feat: 内部请求标识
niuwenzheng Oct 28, 2025
debdd3b
feat: 更改AI模块服务交互接口
niuwenzheng Oct 28, 2025
26a55e8
feat: 更改云空间内部接口
niuwenzheng Oct 28, 2025
d0c2852
feat: 整理管理端调用接口
niuwenzheng Oct 28, 2025
3c873a5
sent
bulaienaofutuojiesenzhang Oct 28, 2025
a88f847
Merge branch 'merge' into pub excluding specified folders
niuwenzheng Oct 28, 2025
b52ebef
Add rules to ignore all config.js files
niuwenzheng Oct 28, 2025
0c1180f
WIP changes
niuwenzheng Oct 28, 2025
4b9d8ff
jilu
bulaienaofutuojiesenzhang Oct 28, 2025
199695b
zh lang
bulaienaofutuojiesenzhang Oct 28, 2025
21a6b56
zy
bulaienaofutuojiesenzhang Oct 28, 2025
3efb9ab
page
bulaienaofutuojiesenzhang Oct 28, 2025
6a5daf5
style: 1
niuwenzheng Oct 28, 2025
ec9cb20
Remove .npmrc from tracking as it contains sensitive information
niuwenzheng Oct 28, 2025
50e021a
Add 'project/aitoearn-monorepo/' from commit 'ec9cb20346300bc08a622d4…
niuwenzheng Oct 28, 2025
ece3fc3
feat: 更新文档
niuwenzheng Oct 28, 2025
6b6c3ba
Merge commit '3efb9ab52ac1b276d2025344f0a143eefe222a09'
niuwenzheng Oct 28, 2025
9e75e40
Add 'project/aitoearn-wxplat/' from commit '6b6c3ba22819e433ef9b4d33f…
niuwenzheng Oct 30, 2025
c23a219
move .npmrc
niuwenzheng Oct 31, 2025
ef5c907
Update README.md
whh2333 Nov 1, 2025
4555cb1
Update README.md
whh2333 Nov 1, 2025
8b38ef7
Create pr-to-feishu.yml (#145)
whh2333 Nov 9, 2025
734b03a
Update README.md
whh2333 Nov 9, 2025
2bb4ad3
Update README_CN.md
whh2333 Nov 9, 2025
58e97e7
fix typo: LinkedIn
wheatliu Nov 9, 2025
96bc439
fix typo: LinkedIn
wheatliu Nov 9, 2025
17fc050
Update README.md
whh2333 Nov 19, 2025
2a9a5b0
Update README.md
whh2333 Nov 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
17 changes: 17 additions & 0 deletions .github/workflows/pr-to-feishu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Feishu Notify (Org-wide, No Relay)
on:
pull_request:
types: [opened, ready_for_review, closed]
issues:
types: [opened, closed, reopened]

jobs:
notify:
uses: <your-org>/.github/.github/workflows/feishu-notify-template.yml@main
secrets: inherit
with:
important_labels: "urgent,security,release-blocker"
important_paths_regex: "^(apps/web/|infra/|payment/|security/)"
pr_min_changed_files: "30"
title_keywords_regex: "(hotfix|rollback|security|incident)"
notify_issue_on_open_close_without_labels: "false"
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ release
# 忽略所有.db文件
*.db

# 忽略所有.exe文件(太)
# 忽略所有.exe文件
*.exe

# 忽略/public/bin目录下的非.md文件
public/bin/*
!public/bin/webkit
!public/bin/*.md

sh/*
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ AiToEarn helps creators, brands, and businesses build, distribute, and monetize

Supported Channels:
Douyin, Xiaohongshu (Rednote), WeChat Channels, Kuaishou, Bilibili, WeChat Official Accounts,
TikTok, YouTube, Facebook, Instagram, Threads, Twitter (X), Pinterest
TikTok, YouTube, Facebook, Instagram, Threads, Twitter (X), Pinterest, LinkedIn

<details>
<summary><h2 style="display:inline;margin:0">Table of Contents</h2></summary>
Expand All @@ -41,9 +41,9 @@ TikTok, YouTube, Facebook, Instagram, Threads, Twitter (X), Pinterest

OS | Download
-- | --
Android | [![Download Android](https://img.shields.io/badge/APK-Android1.1.0-green?logo=android&logoColor=white)](https://github.com/yikart/AiToEarn/releases/download/v1.1.0/aitoearn-1.1.0.apk)
Windows | [![Download Windows](https://img.shields.io/badge/Setup-Windows1.1.0-blue?logo=windows&logoColor=white)](https://github.com/yikart/AiToEarn/releases/download/v1.1.0/AiToEarnSetup-1.1.0.exe)
macOS | [![Download macOS](https://img.shields.io/badge/DMG-macOS1.1.0-black?logo=apple&logoColor=white)](https://github.com/yikart/AiToEarn/releases/download/v1.1.0/AiToEarn.1.1.0.dmg)
Android | [![Download Android](https://img.shields.io/badge/APK-Android1.3.0-green?logo=android&logoColor=white)](https://aitoearn-download.s3.ap-southeast-1.amazonaws.com/aitoearn-download/1.3.0/Aitoearn-1.3.0.apk)
Windows | [![Download Windows](https://img.shields.io/badge/Setup-Windows1.3.0-blue?logo=windows&logoColor=white)](https://aitoearn-download.s3.ap-southeast-1.amazonaws.com/aitoearn-download/1.3.0/AiToEarnSetup-1.3.0.exe)
macOS | [![Download macOS](https://img.shields.io/badge/DMG-macOS1.3.0-black?logo=apple&logoColor=white)](https://aitoearn-download.s3.ap-southeast-1.amazonaws.com/aitoearn-download/1.3.0/AiToEarn+1.3.0.dmg)
iOS | **Coming soon!**
Web | [Use on Web](https://aitoearn.ai/en/accounts)

Expand All @@ -55,12 +55,10 @@ Web | [Use on Web](https://aitoearn.ai/en/accounts)
## Start Web Project
### 1. Start the backend service

For local setup:
Create a `local.config.js` file under the `config` directory (copy from `./aitoearn_web/server/aitoearn-user/config/dev.config.js` and adjust configs).

```bash
cd project/aitoearn-monorepo
pnpm install
pnpm run dev:local
npx nx serve aitoearn-channel && npx nx serve aitoearn-server
```

### 2. Start the frontend `aitoearn-web`
Expand Down
41 changes: 10 additions & 31 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
AiToEarn 通过**AI 自动化**,帮助创作者、品牌与企业在全球主流平台上构建、分发并变现内容。

支持渠道:
抖音(Douyin)、小红书(Rednote)、视频号(WeChat Channels)、快手(Kuaishou)、哔哩哔哩(Bilibili)、微信公众号(WeChat Official Accounts)、TikTok、YouTube、Facebook、Instagram、Threads、Twitter(X)、Pinterest
抖音(Douyin)、小红书(Rednote)、视频号(WeChat Channels)、快手(Kuaishou)、哔哩哔哩(Bilibili)、微信公众号(WeChat Official Accounts)、TikTok、YouTube、Facebook、Instagram、Threads、Twitter(X)、Pinterest、LinkedIn

<details>
<summary><h2 style="display:inline;margin:0">目录</h2></summary>
Expand All @@ -36,53 +36,32 @@ AiToEarn 通过**AI 自动化**,帮助创作者、品牌与企业在全球主

操作系统 | 下载
-- | --
Android | [![Download Android](https://img.shields.io/badge/APK-Android1.1.0-green?logo=android&logoColor=white)]((https://github.com/yikart/AiToEarn/releases/download/v1.1.0/aitoearn-1.1.0.apk))
Windows | [![Download Windows](https://img.shields.io/badge/Setup-Windows1.1.0-blue?logo=windows&logoColor=white)](https://github.com/yikart/AiToEarn/releases/download/v1.1.0/AiToEarnSetup-1.1.0.exe)
macOS | [![Download macOS](https://img.shields.io/badge/DMG-macOS1.1.0-black?logo=apple&logoColor=white)](https://github.com/yikart/AiToEarn/releases/download/v1.1.0/AiToEarn.1.1.0.dmg)
Android | [![Download Android](https://img.shields.io/badge/APK-Android1.2.2-green?logo=android&logoColor=white)](https://aitoearn-download.s3.ap-southeast-1.amazonaws.com/aitoearn-download/1.2.2/Aitoearn-1.2.2.apk)
Windows | [![Download Windows](https://img.shields.io/badge/Setup-Windows1.2.2-blue?logo=windows&logoColor=white)](https://aitoearn-download.s3.ap-southeast-1.amazonaws.com/aitoearn-download/1.2.2/AiToEarnSetup-1.2.2.exe)
macOS | [![Download macOS](https://img.shields.io/badge/DMG-macOS1.2.2-black?logo=apple&logoColor=white)](https://aitoearn-download.s3.ap-southeast-1.amazonaws.com/aitoearn-download/1.2.2/AiToEarn+1.2.2.dmg)
iOS | **Coming soon!**
Web | [Use on Web](https://aitoearn.ai/en/accounts)

[Google Play 下载](https://play.google.com/store/apps/details?id=com.yika.aitoearn.aitoearn_app)
[Google Play Download](https://play.google.com/store/apps/details?id=com.yika.aitoearn.aitoearn_app)


<h2 id="start-web-project">启动 Web 项目</h2>
<h2 id="start-web-project">启动 Aitoearn 项目</h2>

### 1. 启动后端服务

用于本地开发:
在 `config` 目录下创建 `local.config.js`(可从 `./aitoearn_web/server/aitoearn-user/config/dev.config.js` 复制并按需修改)。

```bash
cd project/aitoearn-monorepo
pnpm install
pnpm run dev:local
````
npx nx serve aitoearn-channel && npx nx serve aitoearn-server
```

### 2. 启动前端 `aitoearn-web`

```bash
cd project/aitoearn-web
pnpm install
pnpm run dev
```

<h2 id="start-electron-project">启动 Electron 项目</h2>

```sh
# 克隆仓库
git clone https://github.com/yikart/AttAiToEarn.git

# 进入目录
cd AttAiToEarn

# 安装依赖
npm i

# 编译 sqlite(better-sqlite3 依赖 node-gyp,本地需安装 Python)
npm run rebuild

# 启动开发
npm run dev
```

<h2 id="key-features">核心功能</h2>

🚀 **AiToEarn 是一个全链条的 AI 驱动内容增长与变现平台。**
Expand Down
13 changes: 13 additions & 0 deletions project/aitoearn-monorepo/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Editor configuration, see http://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
222 changes: 222 additions & 0 deletions project/aitoearn-monorepo/.github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
name: Deploy Service

on:
workflow_dispatch:
inputs:
environment:
description: 选择目标环境
required: true
type: choice
options:
- dev
- staging
- prod
version:
description: 镜像版本 (留空使用默认生成规则)
required: false
type: string
architectures:
description: 目标平台 (逗号分隔,如 linux/amd64,linux/arm64)
required: false
type: string
default: linux/amd64
app_name:
description: 要构建的 Nx 应用名 (apps/<name>)
required: true
type: choice
options:
- aitoearn-ai
- aitoearn-cloud-space
- aitoearn-user
- aitoearn-other
- aitoearn-payment
- aitoearn-server

permissions:
id-token: write
contents: read

env:
AWS_REGION: ap-southeast-1
ECR_REGISTRY: 339388639667.dkr.ecr.ap-southeast-1.amazonaws.com
ROLE_TO_ASSUME: arn:aws:iam::339388639667:role/GithubActions
IMAGE_REPO: aitoearn
APP_NAME: ${{ github.event.inputs.app_name }}
HELM_REPO: yikart/k8s-apps
HELM_REPO_URL: https://github.com/yikart/k8s-apps.git

jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment: ${{ github.event.inputs.environment }}

steps:
- name: Checkout source code
uses: actions/checkout@v5

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build application
run: pnpm nx run ${{ env.APP_NAME }}:build

- name: Prepare Docker context
run: pnpm nx run ${{ env.APP_NAME }}:docker-context

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ env.ROLE_TO_ASSUME }}
aws-region: ${{ env.AWS_REGION }}

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2

- name: Generate version
id: version
run: |
if [ -n "${{ github.event.inputs.version }}" ]; then
VERSION="${{ github.event.inputs.version }}"
else
VERSION=$(date +%Y%m%d)-$(git rev-parse --short HEAD)
fi
echo "version=$VERSION" >> $GITHUB_OUTPUT

- name: Build and push application
uses: docker/build-push-action@v5
with:
context: ./tmp/docker-context
file: ./tmp/docker-context/Dockerfile
push: true
tags: ${{ env.ECR_REGISTRY }}/${{ env.IMAGE_REPO }}/${{ env.APP_NAME }}:${{ steps.version.outputs.version }}
platforms: ${{ github.event.inputs.architectures }}
build-args: |
APP_NAME=${{ env.APP_NAME }}
cache-from: type=gha
cache-to: type=gha,mode=max

- uses: actions/create-github-app-token@v2
id: generate-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
owner: yikart
repositories: k8s-apps

- name: Clone Helm repository
uses: actions/checkout@v5
with:
repository: ${{ env.HELM_REPO }}
token: ${{ steps.generate-token.outputs.token }}
path: k8s-apps

- name: Update Helm values
run: |
cd k8s-apps
ENV="${{ github.event.inputs.environment }}"
VERSION="${{ steps.version.outputs.version }}"
APP="${{ env.APP_NAME }}"
VALUES_FILE="${ENV}/values-${APP}.yaml"

if [ -f "$VALUES_FILE" ]; then
sed -i "s|tag: .*|tag: ${VERSION}|g" "$VALUES_FILE"
echo "Updated ${APP} tag to ${VERSION}"
else
echo "Warning: Values file not found: $VALUES_FILE"
fi

- name: Update config files
run: |
ENV="${{ github.event.inputs.environment }}"
CONFIG_FILE="apps/${{ env.APP_NAME }}/config/${ENV}.config.js"
if [ -f "$CONFIG_FILE" ]; then
CONFIG_DIR="k8s-apps/${ENV}/configmaps/${{ env.APP_NAME }}"
mkdir -p "$CONFIG_DIR"
cp "$CONFIG_FILE" "${CONFIG_DIR}/config.js"
echo "Updated ${{ env.APP_NAME }} config for ${ENV} environment"
else
echo "Warning: Config file not found: $CONFIG_FILE"
fi

- name: Get source repository changes
id: source-changes
run: |
COMMIT_HISTORY=$(git log --oneline -10 --pretty=format:"- [%h](${{ github.server_url }}/${{ github.repository }}/commit/%H) %s")
echo 'commit_history<<EOF' >> $GITHUB_OUTPUT
echo "$COMMIT_HISTORY" >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT

- name: Create Pull Request in Helm Repo
id: create-pr
uses: peter-evans/create-pull-request@v7
with:
token: ${{ steps.generate-token.outputs.token }}
path: ./k8s-apps
branch: deploy/${{ env.APP_NAME }}-${{ github.event.inputs.environment }}-${{ steps.version.outputs.version }}
title: 'deploy(${{ github.event.inputs.environment }}): update ${{ env.APP_NAME }} to ${{ steps.version.outputs.version }}'
body: |
## 🚀 部署请求

**应用**: ${{ env.APP_NAME }}
**环境**: ${{ github.event.inputs.environment }}
**版本**: ${{ steps.version.outputs.version }}

### 📋 变更详情

- 更新镜像标签: `${{ env.APP_NAME }}:${{ steps.version.outputs.version }}`
- 目标环境: `${{ github.event.inputs.environment }}`

### 📝 源代码变更历史

最近的提交记录:
${{ steps.source-changes.outputs.commit_history }}

### 🔗 相关信息

- **源仓库**: ${{ github.repository }}
- **源提交**: [`${{ github.sha }}`](${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }})
- **镜像地址**: `${{ env.ECR_REGISTRY }}/${{ env.IMAGE_REPO }}/${{ env.APP_NAME }}:${{ steps.version.outputs.version }}`
- **构建日志**: [GitHub Actions Run ${{ github.run_id }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
commit-message: |
deploy(${{ github.event.inputs.environment }}): update ${{ env.APP_NAME }} to ${{ steps.version.outputs.version }}

Update image tag for ${{ env.APP_NAME }} in ${{ github.event.inputs.environment }} environment
Source-Commit: ${{ github.sha }}
Triggered-By: GitHub Actions
base: main

- name: Summary
if: always()
run: |
echo "## 📦部署摘要" >> $GITHUB_STEP_SUMMARY
echo "- **应用**: ${{ env.APP_NAME }}" >> $GITHUB_STEP_SUMMARY
echo "- **环境**: ${{ github.event.inputs.environment }}" >> $GITHUB_STEP_SUMMARY
echo "- **版本**: ${{ steps.version.outputs.version }}" >> $GITHUB_STEP_SUMMARY
echo "- **镜像**: \`${{ env.ECR_REGISTRY }}/${{ env.IMAGE_REPO }}/${{ env.APP_NAME }}:${{ steps.version.outputs.version }}\`" >> $GITHUB_STEP_SUMMARY

if [ "${{ steps.create-pr.outputs.pull-request-number }}" != "" ]; then
echo "- **状态**: ✅ Pull Request 已创建到 Helm 仓库" >> $GITHUB_STEP_SUMMARY
echo "- **PR链接**: ${{ steps.create-pr.outputs.pull-request-url }}" >> $GITHUB_STEP_SUMMARY
else
echo "- **状态**: ⚠️ 无变更,未创建 Pull Request" >> $GITHUB_STEP_SUMMARY
fi

echo "" >> $GITHUB_STEP_SUMMARY
echo "### 🔗 快速链接" >> $GITHUB_STEP_SUMMARY
echo "- [Helm 仓库](${{ env.HELM_REPO_URL }})" >> $GITHUB_STEP_SUMMARY
echo "- [源代码提交](${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }})" >> $GITHUB_STEP_SUMMARY
Loading