Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
580 commits
Select commit Hold shift + click to select a range
e798a6d
feat: more tips
6512345 Jan 8, 2026
901764d
fix: inconsistent enter label
6512345 Jan 8, 2026
78182eb
feat: add a upright arrow icon to the new-paged link
small-lovely-cat Jan 8, 2026
90fa4b3
fix: copy button on home does not work
6512345 Jan 8, 2026
262a94c
fix: missing animation on receive.tsx
6512345 Jan 8, 2026
f1338e3
fix: docs animation on wrong trigger
6512345 Jan 8, 2026
0ce717c
feat: 拍一拍
6512345 Jan 8, 2026
1ce9555
fix: 拍一拍防抖
6512345 Jan 8, 2026
2fe6f35
fix: update community description
6512345 Jan 8, 2026
e5ffac6
feat: more vibrant 404 page
6512345 Jan 9, 2026
72b287d
Merge pull request #141 from Fengfeng2010/docs-date
chenyme Jan 9, 2026
3168309
Merge pull request #143 from Fengfeng2010/homepage-static
chenyme Jan 9, 2026
97e5dbd
Merge pull request #148 from 6512345/search-fix
chenyme Jan 9, 2026
bc28a26
Merge pull request #149 from small-lovely-cat/add-arrow-new-page
chenyme Jan 9, 2026
f6adc63
Merge pull request #151 from 6512345/copy-fix
chenyme Jan 9, 2026
98aa4f2
Merge pull request #152 from 6512345/anim-fix
chenyme Jan 9, 2026
2394959
fix: dispute error
chenyme Jan 9, 2026
8ba7af2
fix: remove the unused import
chenyme Jan 9, 2026
1b052ee
Merge pull request #153 from chenyme/master
yyg-max Jan 9, 2026
17acf8c
fix(theme): update theme toggle logic to use `resolvedTheme` instead …
Jan 9, 2026
4dfc908
feat: utilizing the service layer mechanism, a rate layer is establis…
chenyme Jan 9, 2026
3a02206
Merge pull request #155 from chenyme/master
yyg-max Jan 9, 2026
062e5a2
fix: redenvelope api error
chenyme Jan 9, 2026
a55ded7
Merge branch 'linux-do:master' into master
chenyme Jan 9, 2026
cc113ac
Merge pull request #156 from chenyme/master
yyg-max Jan 9, 2026
9f10e64
fix: rate release for API interception
chenyme Jan 10, 2026
aa55c29
Merge pull request #157 from chenyme/master
chenyme Jan 10, 2026
22204e0
feat: pinyin search
6512345 Jan 10, 2026
172a073
Revert "feat: more vibrant 404 page"
6512345 Jan 10, 2026
29bf5cc
feat: remove easter egg 65 reference in tip
6512345 Jan 10, 2026
c30046a
fix: eslint fix
6512345 Jan 10, 2026
31ae621
fix: ranking priorities
6512345 Jan 10, 2026
bcb3769
set fixed decimal place for red-envelope
Fengfeng2010 Jan 10, 2026
f96279d
FIX: Make Red Envelope list scrollable
small-lovely-cat Jan 10, 2026
97d2939
go fmt
Fengfeng2010 Jan 10, 2026
51fbd3a
FIX: minor UX misalign
small-lovely-cat Jan 10, 2026
244d27b
fix: reset filter not working properly
6512345 Jan 10, 2026
d87d5f9
fix:fix Chrome compatibility issues
youtobes Jan 10, 2026
f389e1a
FIX: Hide the record for wrongly displayed red_envelope_receive
small-lovely-cat Jan 10, 2026
c38cea4
feat: sync table behavior
6512345 Jan 10, 2026
7063326
Merge pull request #154 from z0ffy/fix/theme
chenyme Jan 12, 2026
a6c24c8
Merge pull request #158 from 6512345/pinyin-search
chenyme Jan 12, 2026
713f5b4
Merge pull request #159 from 6512345/no-65
chenyme Jan 12, 2026
11df96b
Merge pull request #161 from Fengfeng2010/decimal-place
chenyme Jan 12, 2026
84677cd
Merge pull request #162 from 6512345/table-filter-fix
chenyme Jan 12, 2026
6a44726
Merge pull request #167 from small-lovely-cat/fix-red-envelope-bugs
chenyme Jan 12, 2026
9f70e8e
fix: red envelope send issue
Fengfeng2010 Jan 13, 2026
e0609e1
Set default payee user value when sending envelope
Fengfeng2010 Jan 13, 2026
87a0651
Fengfeng2010 Jan 13, 2026
de1eeee
FIX: /trade page error when list contains red envelope refund records
small-lovely-cat Jan 13, 2026
d31d126
Set default tab to received red packet
Fengfeng2010 Jan 13, 2026
534b3b0
Fengfeng2010 Jan 13, 2026
3c05390
feat: support multiselect query in /trade table
small-lovely-cat Jan 13, 2026
f291987
Merge branch 'master' into feat-multiselect-transaction-query
small-lovely-cat Jan 13, 2026
67d3b3d
Fix: type error
small-lovely-cat Jan 13, 2026
8d0c44e
Fengfeng2010 Jan 14, 2026
38119fc
fmt
Fengfeng2010 Jan 14, 2026
9a903d1
Merge pull request #166 from youtobes/fix-merchant-ui
chenyme Jan 15, 2026
e35adc5
Merge pull request #169 from Fengfeng2010/fix-envelope-send
chenyme Jan 15, 2026
59e13c0
Merge pull request #170 from small-lovely-cat/fix-envelope-refund-error
chenyme Jan 15, 2026
923cd69
Merge pull request #171 from Fengfeng2010/set-default-red-envelope-payee
chenyme Jan 15, 2026
6f0ac66
fix: red envelope refund should not show credit transfer field
Fengfeng2010 Jan 15, 2026
b8a4da8
Merge pull request #172 from Fengfeng2010/set-default-to-recv
chenyme Jan 16, 2026
ba2654d
feat: new security setting ui
6512345 Jan 16, 2026
f26190c
Mod: Use "in" DB query for simplier code
small-lovely-cat Jan 19, 2026
c1ce2ce
fix(oauth): resolve primary key conflict
yyg-max Jan 21, 2026
8b4345d
Fix: dispute dialog
Fengfeng2010 Jan 24, 2026
8086ae0
small-lovely-cat Jan 24, 2026
bfb2173
refix based on Cattie's commit.
Fengfeng2010 Jan 24, 2026
3152c72
Merge pull request #179 from yyg-max/master
chenyme Jan 25, 2026
db381c9
feat: red envelope cover
small-lovely-cat Jan 27, 2026
3f12852
fix: eslint and codeql
small-lovely-cat Jan 27, 2026
e3bca6b
feat: add official payment
yyg-max Jan 28, 2026
192d484
Merge pull request #173 from small-lovely-cat/feat-multiselect-transa…
chenyme Feb 8, 2026
0d0c8dc
Merge pull request #177 from Fengfeng2010/fix-redpacket-refund
chenyme Feb 8, 2026
834b3e3
Merge pull request #178 from 6512345/security-setting-upd
chenyme Feb 8, 2026
ca0b058
feat: remove default dispute status configuration and return null whe…
chenyme Feb 8, 2026
2e6aa0b
fix: deduplicate orders using a Map before filtering them in the disp…
chenyme Feb 8, 2026
70ab70c
Merge branch 'master' into fix-dispute-dialog
chenyme Feb 8, 2026
8018650
fix: update transaction service calls to use array-based `types` and …
chenyme Feb 8, 2026
22329bb
Merge pull request #180 from Fengfeng2010/fix-dispute-dialog
chenyme Feb 8, 2026
bf85e75
fix: bugs preventing images from uploading, add middleware to prevent…
small-lovely-cat Feb 8, 2026
73e2370
Fix: new backend design for simplifier and consistent logic
small-lovely-cat Feb 8, 2026
beefe5c
feat: add openGraph metadata support for red envelope claim page (One…
small-lovely-cat Feb 8, 2026
0565b33
mod: SImplify image crop logic
small-lovely-cat Feb 9, 2026
453c7ae
fix: merchant distribution encounter 404 using web portal
small-lovely-cat Feb 9, 2026
889754a
mod: simplify and migrate code
small-lovely-cat Feb 9, 2026
9dbbe76
feat: Bell rings when toast
6512345 Feb 9, 2026
742546a
feat: notification settings
6512345 Feb 9, 2026
073f441
mod: revert admin/task/routers.go and add manual dispatch for cleanup…
small-lovely-cat Feb 9, 2026
f286ac9
fix: efficiency fix
6512345 Feb 9, 2026
09fca17
feat: bell click animation
6512345 Feb 9, 2026
3c9b2c4
mod: remove index for Status and CreatedAt
small-lovely-cat Feb 9, 2026
5114627
fix: prevent home infobox overflow
6512345 Feb 14, 2026
5fc6001
fix: incorrect spacing on desktop
6512345 Feb 14, 2026
631a905
fix: banner width adapt to the screen size
small-lovely-cat Feb 14, 2026
255bb3e
refactor: redesign the image cropper UI with a compact control panel …
chenyme Feb 16, 2026
5a1b661
feat: implement red envelope card component and enhance image upload …
chenyme Feb 16, 2026
3ffcbf5
fix: eslint error
chenyme Feb 16, 2026
79e4b66
feat: add `/api/v1/redenvelope/covers` endpoint to Swagger documentat…
chenyme Feb 16, 2026
d8ac434
fix: Add proper margin to red-envelope sending preview in mobile view
small-lovely-cat Feb 16, 2026
03d7e83
feat: change according to suggestions
small-lovely-cat Feb 16, 2026
acd59b9
fix: CodeQL problem
small-lovely-cat Feb 16, 2026
d5e622f
Merge pull request #182 from small-lovely-cat/feat-red-envelope-cover
chenyme Feb 16, 2026
853f3ac
Merge pull request #184 from small-lovely-cat/fix-merchant-distribute
chenyme Feb 16, 2026
7e41bd9
Merge pull request #185 from 6512345/notifications-frontend
chenyme Feb 16, 2026
24e39fc
Merge pull request #186 from 6512345/responsive-width-fix
chenyme Feb 16, 2026
0636df5
Merge pull request #187 from small-lovely-cat/fix-banner-width-adaption
chenyme Feb 16, 2026
2c48904
feat: Add distribution rate input field and display column to credit …
chenyme Feb 16, 2026
099a7de
Merge pull request #188 from chenyme/admin
chenyme Feb 16, 2026
88cdfdf
feat: improve red envelope claim list display with truncation, update…
chenyme Feb 16, 2026
2e2f3b5
Merge pull request #189 from chenyme/fixed
chenyme Feb 16, 2026
9fb88ab
fix: red envelope related bugs
small-lovely-cat Feb 18, 2026
5e63103
Merge pull request #190 from small-lovely-cat/fix-red-envelope-bugs
chenyme Feb 19, 2026
421e183
feat: minor UI changes to red envelope function
small-lovely-cat Feb 22, 2026
c1d9d25
Merge branch 'linux-do:master' into master
yyg-max Feb 24, 2026
efec047
feat: Add a joint index
yyg-max Feb 26, 2026
a38b04c
feat(payment): 支持订单级 notify/return 地址并回退应用默认配置
zhx47 Mar 6, 2026
4da0dd9
docs(payment): 更新 notify/return 地址覆盖逻辑说明
zhx47 Mar 6, 2026
0367662
Merge pull request #183 from yyg-max/master
chenyme Mar 9, 2026
c2976c7
Merge pull request #191 from small-lovely-cat/mod-red-envelope-UI
chenyme Mar 9, 2026
588ec12
Merge branch 'master' into feat-order-level-callback-urls
zhx47 Mar 9, 2026
0d1520c
fix(payment): 修复订单级通知与回跳地址透传
zhx47 Mar 9, 2026
f693f60
fix(doc): 接口文档添加订单级别的notify_url和return_url描述
zhx47 Mar 9, 2026
b0ac67d
fix(payment): 校验订单回调地址并统一回退逻辑
zhx47 Mar 9, 2026
39c6feb
refactor(payment/order): 统一订单回调地址的空值表示
zhx47 Mar 9, 2026
2e800fc
refactor(order): 与merchant_api_keys同步字段名
zhx47 Mar 9, 2026
2bbaee3
fix(order): 同步参数最大长度校验
zhx47 Mar 10, 2026
1642efc
Merge pull request #193 from zhx47/feat-order-level-callback-urls
yyg-max Mar 10, 2026
7db1ef4
feat: 校验回调地址并更新接口文档
yyg-max Mar 10, 2026
53eb971
Merge pull request #195 from yyg-max/master
yyg-max Mar 10, 2026
d622cd0
feat: leaderboard hide disabled users
yyg-max Mar 15, 2026
0fba4ca
feat: Distribute and transfer to join the limit
yyg-max Mar 17, 2026
92ef2b2
Merge remote-tracking branch 'origin/master'
yyg-max Mar 17, 2026
679f420
Merge pull request #197 from yyg-max/master
chenyme Mar 17, 2026
a27aa87
feat(docker): add Dockerfile for frontend image build and update CI w…
Noxiven Apr 7, 2026
c2804d0
chore(build): update condition for helm values update step
Noxiven Apr 7, 2026
7ac723b
Merge pull request #198 from OrenZhang/chore_build
chenyme Apr 7, 2026
0421dc6
feat(storage): implement S3-compatible storage interface and update f…
Noxiven Apr 8, 2026
b71f9c0
feat(s3): enhance error handling and add initialization check for S3 …
Noxiven Apr 8, 2026
b0425c0
feat(s3): improve tracing and error reporting for S3 operations
Noxiven Apr 8, 2026
24b9b3b
feat(storage): restore package declaration in errs.go
Noxiven Apr 8, 2026
5e4115b
feat(s3): remove cache control headers in file server response
Noxiven Apr 8, 2026
a3db082
feat(s3): refactor CDN request handling and remove unused HTTP client
Noxiven Apr 9, 2026
5667ccf
Merge pull request #201 from OrenZhang/feat_s3_v2
yyg-max Apr 9, 2026
ae01f50
feat(database): add custom GORM logger
Noxiven Apr 9, 2026
653597d
Merge pull request #202 from OrenZhang/feat_db_log
yyg-max Apr 9, 2026
46db24d
feat(s3): implement local caching for S3 object retrieval
Noxiven Apr 10, 2026
f1ecbe7
feat(cache): enhance local caching with concurrency control and error…
Noxiven Apr 10, 2026
f20c5a7
feat(cache): improve local caching with concurrency control and error…
Noxiven Apr 10, 2026
56632c6
feat(cache): add cacheObject struct and read object body into memory
Noxiven Apr 10, 2026
4bb137e
feat(cache): optimize context handling for cache saving operations
Noxiven Apr 10, 2026
21b1b27
feat(cache): refactor local cache handling and improve error management
Noxiven Apr 10, 2026
ea89875
feat(cache): enhance cache handling with improved file management and…
Noxiven Apr 10, 2026
63ea066
feat(cache): streamline local cache file handling and improve error m…
Noxiven Apr 10, 2026
bdf5713
feat(file_server): simplify file response handling and improve readab…
Noxiven Apr 10, 2026
af9e0e6
Merge pull request #203 from OrenZhang/feat_s3_cache
yyg-max Apr 10, 2026
dc6d0fd
feat(balance): add pending balance handling and update related compon…
Noxiven Apr 15, 2026
a44915e
feat(table-filter): update refused status color configuration
Noxiven Apr 16, 2026
fb1dc88
Merge pull request #204 from OrenZhang/feat_delay
chenyme Apr 16, 2026
520ad41
refactor: remove transfer functionality and update related components
chenyme Apr 16, 2026
4c113e7
feat: remove festive decorations
chenyme Apr 16, 2026
d550792
feat(transaction): add payee transfer status handling in transaction …
Noxiven Apr 16, 2026
63de1b4
Merge pull request #205 from chenyme/master
yyg-max Apr 16, 2026
2658208
feat(order_transfer): enhance indexing for order status and transfer …
Noxiven Apr 16, 2026
14fe0e6
feat(order_transfer): add order and payee transfer status definitions
Noxiven Apr 16, 2026
e596151
Merge pull request #206 from OrenZhang/feat_search_transfer_status
chenyme Apr 16, 2026
9573755
feat(trace_provider): add Kubernetes metadata to tracer resource
Noxiven Apr 16, 2026
8ea6d9a
refactor: remove minimum score validation and update table components
chenyme Apr 16, 2026
cd20d33
Merge pull request #207 from OrenZhang/feat_k8s
chenyme Apr 16, 2026
1e62f3a
feat: enhance transfer status display in table components
chenyme Apr 16, 2026
48d2a50
Merge pull request #208 from chenyme/master
yyg-max Apr 17, 2026
703e380
feat(order_transfer): add payee transfer timestamp to order details
Noxiven Apr 17, 2026
fc0a57b
Merge pull request #209 from OrenZhang/feat_transfer_at
chenyme Apr 17, 2026
3fb6dd1
fix: 争议自动退款补上 online 类型支持
yyg-max Apr 17, 2026
2b49420
fix: 指明队列类型防止走默认
yyg-max Apr 17, 2026
61f3bfe
Merge branch 'linux-do:master' into master
yyg-max Apr 17, 2026
49a88ef
Merge pull request #210 from yyg-max/master
chenyme Apr 17, 2026
cfe2316
feat: add search parameter for user listing and update components
chenyme Apr 17, 2026
e39074b
refactor: replace keyword search with user_id and username parameters…
chenyme Apr 17, 2026
6703335
fix: enhance dispute handling by adding viewer type and updating disp…
chenyme Apr 17, 2026
49e2777
fix: change CreateDisputeResponse from interface to type for improved…
chenyme Apr 17, 2026
433a331
fix: update user_id type from string to integer in API documentation …
chenyme Apr 17, 2026
c638848
Merge pull request #211 from chenyme/master
yyg-max Apr 17, 2026
b3223a4
fix(notify): prevent local callback in production environment
Noxiven Apr 17, 2026
beeaa78
fix(routers): update order query conditions for distribute type
Noxiven Apr 17, 2026
80c28ce
Merge pull request #212 from OrenZhang/fix_local_notify
yyg-max Apr 17, 2026
6952f60
style: update leaderboard podium styles for improved visual consistency
chenyme Apr 17, 2026
cb734df
Merge branch 'master' of https://github.com/chenyme/credit
chenyme Apr 17, 2026
33d4b44
chore: update axios and form-data versions, enhance login page sessio…
chenyme Apr 17, 2026
07656de
Merge pull request #213 from chenyme/master
chenyme Apr 17, 2026
32adc6b
feat(leaderboard): improve layout responsiveness and enhance percenta…
Noxiven Apr 17, 2026
084a1d3
Merge pull request #214 from OrenZhang/feat_leaderboard
chenyme Apr 17, 2026
62f1066
feat(proxy): enable rate limiting based on environment variable
Noxiven Apr 19, 2026
8eadd0b
Merge pull request #215 from OrenZhang/feat_rate_limit
chenyme Apr 20, 2026
2eff185
feat(api): add user balance statistics endpoint and update API paths
Noxiven Apr 20, 2026
e74be21
Merge pull request #216 from OrenZhang/docs_api
chenyme Apr 20, 2026
9a1dc54
fix(merchant-data): update default order types to undefined when none…
Noxiven Apr 21, 2026
f2343d2
fix(merchant-data): remove unused import of DEFAULT_ORDER_TYPES
Noxiven Apr 21, 2026
a913ae7
Merge pull request #217 from OrenZhang/fix_merchant_data
chenyme Apr 21, 2026
09aec31
chore(build_image): update image tag paths in credit.yaml
Noxiven Apr 22, 2026
1b41f2b
Merge pull request #219 from OrenZhang/chore_release
yyg-max Apr 22, 2026
fb9c780
chore(build): enhance Docker image build process with versioning and …
Noxiven Apr 22, 2026
26236ba
fix(middleware): exclude health check endpoint from logging
Noxiven Apr 22, 2026
051982b
Merge pull request #220 from OrenZhang/chore_staging_tag
yyg-max Apr 22, 2026
fda379d
chore: update package version to 1.3.9 and add build information to s…
chenyme Apr 22, 2026
d019780
chore(build_image): add build date generation for frontend Docker image
Noxiven Apr 22, 2026
b7e86ea
chore(build_image): update frontend build date format in CI configura…
Noxiven Apr 22, 2026
4c99846
Merge pull request #222 from OrenZhang/chore_build_date
chenyme Apr 22, 2026
5dfded7
chore: add frontend build date to Docker image and package.json
chenyme Apr 22, 2026
bc6f17e
Merge pull request #223 from chenyme/master
Noxiven Apr 22, 2026
bbba2a5
chore(build): pre-build Next.js to boost startup time
Noxiven Apr 29, 2026
a594124
chore(build_image): streamline build date handling in Dockerfile
Noxiven Apr 29, 2026
0ac6a44
chore(entrypoint): update file search logic to use .replace.files if …
Noxiven Apr 29, 2026
204b55b
Merge pull request #226 from OrenZhang/chore_build
chenyme Apr 29, 2026
d0041d5
chore(docker): update backend URL handling and package.json versioning
Noxiven Apr 29, 2026
d8a2b55
Merge pull request #227 from OrenZhang/fix_version
chenyme Apr 29, 2026
1f0236c
fix(backend): expand user login field lengths
yyg-max May 7, 2026
e0a182c
Merge pull request #229 from yyg-max/master
chenyme May 9, 2026
327d2cd
refactor(middlewares): enhance logging format in LoginRequired middle…
Noxiven May 13, 2026
0ebd89d
refactor(middlewares): improve audit logging in LoginRequired middleware
Noxiven May 13, 2026
9748796
Merge pull request #230 from OrenZhang/refactor_log
yyg-max May 13, 2026
cd8f0a0
feat(risk): add risk block dialog and related components
Noxiven May 17, 2026
4b38d11
Merge pull request #231 from OrenZhang/feat_audit
chenyme May 17, 2026
f40cac4
fix(risk-warning-toast): enable close button and dismissible option
Noxiven May 17, 2026
13db33e
feat(risk-warning-toast): add dismissible close button for risk warning
Noxiven May 17, 2026
c34d1ac
Merge pull request #232 from OrenZhang/style_audit
chenyme May 17, 2026
a3916dc
feat(risk): add risk items to risk response and update headers
Noxiven May 18, 2026
4cd6e43
Merge pull request #233 from OrenZhang/feat_risk_message
chenyme May 18, 2026
3a0393c
refactor(oauth): centralize audit logging with `LogForAudit` function
Noxiven May 25, 2026
3ec5b43
chore(oauth): add license header to audit.go
Noxiven May 25, 2026
95081af
Merge pull request #234 from OrenZhang/feat_oauth_log
yyg-max May 25, 2026
6df6012
fix(payment): preserve disputed quota and add csrf guard
yyg-max Jun 7, 2026
a4fd0af
refactor(router): scope csrf middleware to api routes
yyg-max Jun 7, 2026
e3e582a
Merge pull request #236 from yyg-max/master
chenyme Jun 8, 2026
72636d6
feat(table-data): link app names to their homepage if URL is available
Noxiven Jun 8, 2026
00621e9
feat(table-data): replace <a> with Next.js <Link> for app homepage links
Noxiven Jun 8, 2026
c077890
Merge pull request #237 from Noxiven/feat_app_view
chenyme Jun 8, 2026
26d21eb
feat: implement probe services for scheduler and worker
Noxiven Jun 10, 2026
55025d8
Merge pull request #238 from Noxiven/feat_readiness_probe
yyg-max Jun 10, 2026
77fa20b
fix(oauth): release conflicted username without disabling account
yyg-max Jun 25, 2026
5217200
Merge pull request #239 from yyg-max/master
chenyme Jun 25, 2026
55a0a8c
feat(admin): add order management and refund support
yyg-max Jun 26, 2026
058857a
Merge branch 'linux-do:master' into master
yyg-max Jun 26, 2026
58fcae7
fix(docs): regenerate swagger definitions
yyg-max Jun 26, 2026
8f90ecd
Merge remote-tracking branch 'origin/master'
yyg-max Jun 26, 2026
b0faf75
chore(frontend): remove pnpm workspace config
yyg-max Jul 1, 2026
437f782
chore(frontend): update order management components and add new data …
chenyme Jul 1, 2026
4bdfd32
Merge pull request #240 from yyg-max/master
chenyme Jul 1, 2026
c47333e
fix: require authentication on user-balance stats endpoint
Dextheking1 Jul 14, 2026
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
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ body:
value: |
感谢您花时间填写此 Bug 报告!

- **提交错误报告前**:请检查 [已有 Issues](https://github.com/linux-do/pay/issues)列表,了解是否有类似问题被报告。如果不确定,请进行搜索,这有助于我们高效地专注于改进项目。
- **提交错误报告前**:请检查 [已有 Issues](https://github.com/linux-do/credit/issues)列表,了解是否有类似问题被报告。如果不确定,请进行搜索,这有助于我们高效地专注于改进项目。
- type: checkboxes
id: issue-check
attributes:
Expand All @@ -18,7 +18,7 @@ body:
options:
- label: 我已经搜索了现有问题和讨论。
required: true
- label: 我正在使用最新版本或 cdk.linux.do 上的此应用。
- label: 我正在使用最新版本或 credit.linux.do 上的此应用。
required: true
- type: textarea
id: what-happened
Expand Down Expand Up @@ -68,7 +68,7 @@ body:
options:
- label: 我已阅读并遵循了 `README.md` 中的所有说明。
required: true
- label: 我正在使用 linux-do/cdk 的最新版本。
- label: 我正在使用 linux-do/credit 的最新版本。
required: true
- label: 我已提供我能够提供的尽可能多的相关日志,屏幕截图等。
required: true
Expand All @@ -87,4 +87,4 @@ body:
value: |
## 注意
如果 Bug 报告不完整或不遵循说明,则可能不会得到处理。请确保您已遵循所有 **README.md** 指南,并提供所有必要信息以便我们重现该问题。
感谢您为 linux-do/cdk 做出贡献!
感谢您为 linux-do/credit 做出贡献!
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ body:
value: |
感谢您花时间填写此功能请求!

- **提交功能请求前**:请检查 [已有 Issues](https://github.com/linux-do/pay/issues) 列表和讨论区,了解是否有类似功能已被讨论或请求。这有助于我们避免重复工作,并高效地专注于改进项目。
- **提交功能请求前**:请检查 [已有 Issues](https://github.com/linux-do/credit/issues) 列表和讨论区,了解是否有类似功能已被讨论或请求。这有助于我们避免重复工作,并高效地专注于改进项目。
- type: checkboxes
id: check-existing
attributes:
Expand All @@ -18,7 +18,7 @@ body:
options:
- label: 我已经搜索了现有问题和讨论。
required: true
- label: 我正在使用最新版本或 cdk.linux.do 上的此应用。
- label: 我正在使用最新版本或 credit.linux.do 上的此应用。
required: true
- type: textarea
id: feature-description
Expand Down Expand Up @@ -65,7 +65,7 @@ body:
options:
- label: 我已阅读并遵循了 `README.md` 中的所有说明。
required: true
- label: 我正在使用 linux-do/cdk 的最新版本。
- label: 我正在使用 linux-do/credit 的最新版本。
required: true
- label: 我已提供我能够提供的尽可能多的相关信息,包括用例和场景。
required: true
Expand All @@ -76,4 +76,4 @@ body:
value: |
## 注意
如果功能请求不完整或不遵循说明,则可能不会得到处理。请确保您已提供所有必要信息以便我们理解您的建议。
感谢您为 linux-do/cdk 做出贡献!
感谢您为 linux-do/credit 做出贡献!
6 changes: 3 additions & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

<!-- 请在下面的 [ ] 中删除空格并打 x ,表示已完成相关检查 -->

- [ ] 我已阅读并理解 [贡献者公约](https://github.com/linux-do/pay/blob/master/CODE_OF_CONDUCT.md)
- [ ] 我已阅读并同意 [贡献者许可协议 (CLA)](https://github.com/linux-do/pay/blob/master/CLA.md),确认我的贡献将根据项目的 MIT 许可证进行许可
- [ ] 我知晓如果此 PR 并不做出实质性更改,或可被认为是*为了PR被合并而提交PR*的,则可能不会被合并
- [ ] 我已阅读并理解 [贡献者公约](https://github.com/linux-do/credit/blob/master/CODE_OF_CONDUCT.md)
- [ ] 我已阅读并同意 [贡献者许可协议 (CLA)](https://github.com/linux-do/credit/blob/master/CLA.md),确认我的贡献将根据项目的 Apache2.0 许可证进行许可
- [ ] 我知晓如果此 PR 并不做出实质性更改,或可被认为是*为了PR被合并而提交PR*的,则可能不会被合并

**关联信息**

Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/build_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,21 @@ on:

jobs:
go_build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.25.4"
go-version: "1.26"
check-latest: true

- name: Install dependencies
run: |
go mod download
go install github.com/swaggo/swag/cmd/swag@latest
go install github.com/swaggo/swag/cmd/swag@v1.16.6

- name: Make Swagger
run: make swagger
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build_frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,27 @@ on:

jobs:
nextjs_build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4

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

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: 'pnpm'
cache-dependency-path: frontend/pnpm-lock.yaml

- name: Install dependencies
working-directory: frontend
run: pnpm install --frozen-lockfile

- name: Build
working-directory: frontend
run: pnpm build
132 changes: 128 additions & 4 deletions .github/workflows/build_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
FRONTEND_IMAGE_NAME: ${{ github.repository }}-web

# add permission for package publishing
permissions:
Expand All @@ -18,12 +19,19 @@ permissions:

jobs:
build_image:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
# checkout code
- name: Checkout repository
uses: actions/checkout@v4

# set up go
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.26"
check-latest: true

# download Go modules
- name: Download Go modules
run: go mod download
Expand All @@ -32,13 +40,13 @@ jobs:
- name: Build Go Binary (multi-arch)
run: |
# build amd64 binary
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o pay-server-amd64 main.go
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o credit-server-amd64 main.go

# build arm64 binary
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o pay-server-arm64 main.go
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o credit-server-arm64 main.go

# show binaries
ls -alh pay-server-*
ls -alh credit-server-*

# set up docker buildx
- name: Set up Docker Buildx
Expand Down Expand Up @@ -74,3 +82,119 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64

build_frontend_image:
runs-on: ubuntu-24.04
steps:
# checkout code
- name: Checkout repository
uses: actions/checkout@v4

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

# login to registry
- name: Log into registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# extract metadata for docker (frontend)
- name: Extract Docker metadata (frontend)
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.FRONTEND_IMAGE_NAME }}
tags: |
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=ref,event=tag
type=sha,format=short,prefix=

# generate frontend build date in utc
- name: Generate frontend build date
id: frontend_build_meta
run: echo "build_date=$(date -u +'%Y/%m/%d UTC')" >> "$GITHUB_OUTPUT"

# build and push frontend docker image with version argument
- name: Build Frontend Docker image
uses: docker/build-push-action@v5
with:
context: ./frontend
push: ${{ github.ref_type == 'tag' || (github.ref == 'refs/heads/master' && github.event_name == 'push') }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64
build-args: |
VERSION=${{ github.ref_type == 'tag' && github.ref_name || '' }}
BUILD_DATE=${{ steps.frontend_build_meta.outputs.build_date }}

update_helm_values:
runs-on: ubuntu-24.04
needs: [build_image, build_frontend_image]
if: github.ref_type == 'tag'
steps:
# configure SSH agent with deploy key
- name: Setup SSH agent
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.DEPLOY_KEY }}

# add github.com to known_hosts to avoid host verification prompt
- name: Add GitHub to known_hosts
run: ssh-keyscan github.com >> ~/.ssh/known_hosts

# clone the helm charts repository
- name: Clone Helm Charts repository
run: git clone ${{ vars.HELM_CHARTS_REPO }} helm-charts

# install yq for yaml editing
- name: Install yq
run: |
sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
sudo chmod +x /usr/local/bin/yq

# determine helm values file based on tag type (production or test)
- name: Determine Helm values file
id: helm_config
run: |
TAG="${{ github.ref_name }}"
if [[ $TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "values_file=values/credit/credit.yaml" >> "$GITHUB_OUTPUT"
echo "branch_prefix=update/credit" >> "$GITHUB_OUTPUT"
else
echo "values_file=values/credit_test/credit.yaml" >> "$GITHUB_OUTPUT"
echo "branch_prefix=update/credit_test" >> "$GITHUB_OUTPUT"
fi

# update image tags in helm values file
- name: Update image tags in helm values file
run: |
cd helm-charts
yq -i '.image.tag = "${{ github.ref_name }}"' ${{ steps.helm_config.outputs.values_file }}
yq -i '.image.webTag = "${{ github.ref_name }}"' ${{ steps.helm_config.outputs.values_file }}

# commit and push to a new branch, then open a PR for review
- name: Commit, push and create PR
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
cd helm-charts
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
BRANCH_NAME="${{ steps.helm_config.outputs.branch_prefix }}-${{ github.ref_name }}"
git checkout -b "$BRANCH_NAME"
git add ${{ steps.helm_config.outputs.values_file }}
git commit -m "chore: update credit image tag to ${{ github.ref_name }}"
git push origin "$BRANCH_NAME"
HELM_REPO=$(echo "${{ vars.HELM_CHARTS_REPO }}" | sed 's/git@github.com://;s/\.git$//')
gh pr create \
--repo "${HELM_REPO}" \
--title "chore: update credit image tag to ${{ github.ref_name }}" \
--body "Automated PR: update \`${{ steps.helm_config.outputs.values_file }}\` image tags to \`${{ github.ref_name }}\` after Docker image build." \
--base main \
--head "$BRANCH_NAME"
2 changes: 1 addition & 1 deletion .github/workflows/check_license.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
check_license:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: checkout code
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/close_ticket.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
close_ticket:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
issues: write
pull-requests: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
security-events: write
packages: read
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
copilot-setup-steps:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

permissions:
contents: read
Expand Down Expand Up @@ -39,9 +39,10 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.24"
go-version: "1.26"
check-latest: true

- name: Install dependencies
run: |
go mod download
go install github.com/swaggo/swag/cmd/swag@latest
go install github.com/swaggo/swag/cmd/swag@v1.16.6
2 changes: 1 addition & 1 deletion .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
lint:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-template-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
check-pr-template:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: check all checklist items are checked
uses: actions/github-script@v7
Expand Down
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# IDE
.idea/*
.idea
!.idea/icon.png
.vscode
.pnpm-store/

# logs
logs
Expand Down Expand Up @@ -34,5 +36,12 @@ Thumbs.db
# go workspace
go.work
go.work.sum
cdk
/credit
main

# upload
uploads/*

s3_cache

.gocache
Loading