Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release: 0.10.0 #392

Merged
merged 610 commits into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
610 commits
Select commit Hold shift + click to select a range
de8fb41
fix: init avatarservice only once
nameisyui May 3, 2024
7eca5ed
feat(resources): get file md5& bunble module
nameisyui May 10, 2024
07c7de0
feat: add nix dev shell support (#188)
lunaticabs May 16, 2024
e537098
chore(deps-dev): bump supertest from 6.3.4 to 7.0.0 (#205)
dependabot[bot] May 16, 2024
2d1ff83
chore(deps-dev): bump @types/node from 20.12.7 to 20.12.11 (#204)
dependabot[bot] May 16, 2024
40c47da
chore(deps): bump pnpm/action-setup from 3 to 4 (#203)
dependabot[bot] May 16, 2024
5d49573
chore(deps): bump @prisma/client from 5.12.1 to 5.13.0 (#201)
dependabot[bot] May 16, 2024
9a1df90
chore(deps-dev): bump @typescript-eslint/eslint-plugin (#206)
dependabot[bot] May 16, 2024
4473162
chore(deps): bump node from 21-slim to 22-slim (#196)
dependabot[bot] May 16, 2024
00a5356
chore(deps): bump codecov/codecov-action from 4.3.0 to 4.3.1 (#197)
dependabot[bot] May 16, 2024
a0f18e5
chore(deps): bump ajv from 8.12.0 to 8.13.0 (#200)
dependabot[bot] May 16, 2024
69a621a
chore(deps): bump fluent-ffmpeg from 2.1.2 to 2.1.3 (#210)
dependabot[bot] May 22, 2024
78da706
chore(deps-dev): bump @typescript-eslint/parser from 7.7.1 to 7.9.0 (…
dependabot[bot] May 22, 2024
3b63e53
chore(deps): bump codecov/codecov-action from 4.3.1 to 4.4.0 (#207)
dependabot[bot] May 22, 2024
b0a9515
chore(deps): bump @prisma/client from 5.13.0 to 5.14.0 (#209)
dependabot[bot] May 22, 2024
1050684
chore(deps-dev): bump lint-staged from 15.2.2 to 15.2.5
dependabot[bot] May 27, 2024
a048ee0
feat(bundles): add pagination
nameisyui May 24, 2024
c79b560
refactor(avatar): use mutex.runExclusive
Nictheboy Jun 15, 2024
fa33e33
Merge branch 'dev' into fix-avatar-init
Nictheboy Jun 15, 2024
61b4392
fix(avatar): lock table when init, to avoid multiple initialization
Nictheboy Jun 15, 2024
1f30bfb
fix(avatar): ignore coverage for initialization
Nictheboy Jun 15, 2024
de914d3
Merge pull request #194 from SageSeekerSociety/fix-avatar-init
andylizf Jun 15, 2024
2e5f922
Merge pull request #214 from SageSeekerSociety/dependabot/npm_and_yar…
andylizf Jun 15, 2024
3355bc8
chore(deps-dev): bump @typescript-eslint/parser from 7.9.0 to 7.12.0 …
dependabot[bot] Jun 15, 2024
10fa119
chore(deps): bump codecov/codecov-action from 4.4.0 to 4.4.1 (#217)
dependabot[bot] Jun 15, 2024
779e2ab
chore(deps-dev): bump @types/node from 20.12.11 to 20.14.2 (#223)
dependabot[bot] Jun 15, 2024
b28aa32
chore(deps-dev): bump prisma from 5.13.0 to 5.15.0 (#224)
dependabot[bot] Jun 15, 2024
c633bb9
Merge branch 'dev' into deprecate-typeorm
Nictheboy Jun 16, 2024
eb1e6bb
refactor(auth): remove session.legacy.entity.ts completely
Nictheboy Jun 16, 2024
39536ce
refactor(question): remove questions.legacy.entity.ts completely
Nictheboy Jun 16, 2024
961b689
chore(deps-dev): bump @typescript-eslint/eslint-plugin (#225)
dependabot[bot] Jun 16, 2024
675e796
refactor(answer): remove answer.legacy.entity.ts completely
Nictheboy Jun 16, 2024
3b596b4
refactor(avatar): remove avatar.legacy.entity.ts completely
Nictheboy Jun 16, 2024
b2b653b
refactor(groups): remove groups.legacy.entity.ts completely
Nictheboy Jun 17, 2024
4205265
refactor: remove TypeORM completely
Nictheboy Jun 17, 2024
3cd6f74
Merge branch 'dev' into deprecate-typeorm
Nictheboy Jun 17, 2024
337bf5a
chore: create migration and update comments
Nictheboy Jun 17, 2024
8a029ff
chore(deps): bump codecov/codecov-action from 4.4.1 to 4.5.0 (#232)
dependabot[bot] Jun 17, 2024
b75dc33
chore(deps): bump pg from 8.11.5 to 8.12.0 (#227)
dependabot[bot] Jun 17, 2024
e03fd5f
chore(deps-dev): bump ts-json-schema-generator from 2.1.1 to 2.3.0 (#…
dependabot[bot] Jun 17, 2024
5b626f1
chore(deps-dev): bump prettier from 3.2.5 to 3.3.2 (#228)
dependabot[bot] Jun 17, 2024
e86b1e7
chore(deps-dev): bump @typescript-eslint/parser from 7.12.0 to 7.13.0…
dependabot[bot] Jun 17, 2024
a4022c7
chore(deps-dev): bump lint-staged from 15.2.5 to 15.2.7 (#230)
dependabot[bot] Jun 17, 2024
d87a714
refactor: use prisma extension to filter deleted record automatically…
Nictheboy Jun 18, 2024
0a5d090
Merge branch 'dev' into deprecate-typeorm
Nictheboy Jun 18, 2024
6a6397b
refactor: simplify code
Nictheboy Jun 20, 2024
15ce423
Merge pull request #226 from SageSeekerSociety/deprecate-typeorm
andylizf Jun 20, 2024
58a2b70
chore: add script to start docker dependencies
Nictheboy Jun 23, 2024
f60a033
fix: solve the problem of test caused by too much running cores but i…
CH3COOH-JYR Jul 10, 2024
87a0a8c
chore(deps-dev): bump @typescript-eslint/parser from 7.13.0 to 7.16.0…
dependabot[bot] Jul 19, 2024
e4b2912
chore(deps-dev): bump @types/node from 20.14.2 to 20.14.10 (#246)
dependabot[bot] Jul 19, 2024
e6f9e99
chore(deps): bump docker/build-push-action from 5 to 6 (#235)
dependabot[bot] Jul 19, 2024
53c2bb1
chore(deps): bump @prisma/client from 5.14.0 to 5.16.2 (#252)
dependabot[bot] Jul 19, 2024
356b9c0
chore(deps-dev): bump typescript from 5.4.5 to 5.5.3 (#247)
dependabot[bot] Jul 19, 2024
50b45c2
fix(github action): bugs in ci (#255)
Nictheboy Jul 21, 2024
8d15a8e
Merge branch 'dev' into feat-resources
Nictheboy Jul 19, 2024
dc9ac5e
chore(deps): bump uuid and @types/uuid (#260)
dependabot[bot] Jul 22, 2024
f59c123
chore(deps-dev): bump @nestjs/cli from 10.3.2 to 10.4.2 (#259)
dependabot[bot] Jul 22, 2024
a345a9a
chore(deps): bump @nestjs/config from 3.2.2 to 3.2.3 (#258)
dependabot[bot] Jul 22, 2024
15a8680
chore(deps): bump ajv from 8.16.0 to 8.17.1 (#257)
dependabot[bot] Jul 22, 2024
3201a75
Merge branch 'dev' into feat-resources
Nictheboy Jul 22, 2024
12e0568
test(bundles): improve coverage
Nictheboy Jul 22, 2024
84a8c74
refactor(bundles): create prisma migration
Nictheboy Jul 22, 2024
4fb9ee8
chore(ci): increase PostgreSQL max_connections in "Build and Test Dev…
Nictheboy Jul 22, 2024
a110415
docs(bundles): add header comments
Nictheboy Jul 23, 2024
f3f6791
Merge pull request #168 from SageSeekerSociety/feat-resources
Nictheboy Jul 23, 2024
4b97dd7
fix(docker): a bug caused by husky (#261)
Nictheboy Jul 23, 2024
a6f05e5
chore(deps-dev): bump @typescript-eslint/parser from 7.16.1 to 7.17.0…
dependabot[bot] Jul 31, 2024
b61931f
chore(deps-dev): bump husky from 9.1.1 to 9.1.3 (#262)
dependabot[bot] Jul 31, 2024
f8157d0
chore(deps-dev): bump @types/node from 20.14.11 to 22.0.0 (#264)
dependabot[bot] Jul 31, 2024
7a26bf5
chore(deps-dev): bump eslint from 9.7.0 to 9.8.0 (#265)
dependabot[bot] Aug 1, 2024
503cb2d
chore(deps-dev): bump typescript from 5.5.3 to 5.5.4 (#263)
dependabot[bot] Aug 1, 2024
b21a835
feat(auth): implement a decorator to substitude authService.audit()
Nictheboy Aug 1, 2024
60883b0
refactor(auth): move auth definitions to a separate file
Nictheboy Aug 1, 2024
2c8de27
refactor(auth): use @Guard instead of authService.audit()
Nictheboy Aug 2, 2024
52bb5c9
chore(deps-dev): bump @nestjs/schematics from 10.1.2 to 10.1.3 (#272)
dependabot[bot] Aug 6, 2024
de31dec
chore(deps-dev): bump @types/node from 22.0.0 to 22.1.0 (#271)
dependabot[bot] Aug 6, 2024
b0b0f3a
chore(deps-dev): bump lint-staged from 15.2.7 to 15.2.8 (#270)
dependabot[bot] Aug 6, 2024
817f860
chore(deps-dev): bump husky from 9.1.3 to 9.1.4 (#269)
dependabot[bot] Aug 6, 2024
051e0b0
chore(deps-dev): bump @typescript-eslint/parser from 7.17.0 to 8.0.0 …
dependabot[bot] Aug 6, 2024
bbbd517
feat(auth): add custom auth logic
Nictheboy Aug 6, 2024
0196158
docs: add cheese-start.sh
Nictheboy Aug 27, 2024
ad9e25e
chore(deps-dev): bump @types/fluent-ffmpeg from 2.1.24 to 2.1.26 (#286)
dependabot[bot] Sep 6, 2024
c5d5cb4
chore(deps-dev): bump @typescript-eslint/parser from 8.0.0 to 8.3.0 (…
dependabot[bot] Sep 6, 2024
50a94c3
chore(deps-dev): bump @commitlint/cli from 19.3.0 to 19.4.1 (#284)
dependabot[bot] Sep 6, 2024
49d9779
chore(deps): bump @prisma/client from 5.17.0 to 5.19.0 (#283)
dependabot[bot] Sep 6, 2024
8f19379
feat(auth): add customLogicData
Nictheboy Sep 6, 2024
e483eb9
chore(deps-dev): bump @typescript-eslint/eslint-plugin (#287)
dependabot[bot] Sep 6, 2024
7d5ec02
feat(auth): add auditWithoutToken() for AuthService
Nictheboy Sep 6, 2024
32a9c20
feat(auth): check existence before adding custom logic
Nictheboy Sep 6, 2024
a3f5dcb
feat(auth): allow authorizedActions to match every action
Nictheboy Sep 6, 2024
e24c530
feat(auth): add param userId for CustomAuthLogicHandler
Nictheboy Sep 6, 2024
ccdf0b1
feat(user): simplify token
Nictheboy Sep 6, 2024
87bfbc3
test: improve coverage
Nictheboy Sep 6, 2024
b0b31d7
test: improve coverage
Nictheboy Sep 6, 2024
6783e40
docs: update README and scripts
Nictheboy Sep 6, 2024
a0bf3cf
docs: update README
Nictheboy Sep 6, 2024
192342b
docs: update README
Nictheboy Sep 6, 2024
0ae6149
Merge pull request #233 from SageSeekerSociety/chore-add-docker-script
Nictheboy Sep 7, 2024
a1e040b
Merge pull request #267 from SageSeekerSociety/feat-permission
HuanCheng65 Sep 7, 2024
2f8667d
chore(deps-dev): bump @nestjs/cli from 10.4.2 to 10.4.5
dependabot[bot] Sep 9, 2024
00bd832
chore(deps): bump @elastic/elasticsearch from 8.14.0 to 8.15.0
dependabot[bot] Sep 9, 2024
91e45b9
chore(deps-dev): bump @typescript-eslint/parser from 8.3.0 to 8.6.0
dependabot[bot] Sep 23, 2024
893d5e7
chore(deps): bump @nestjs/platform-express from 10.3.10 to 10.4.3
dependabot[bot] Sep 23, 2024
c2d53bf
Merge pull request #292 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Sep 24, 2024
7378888
Merge pull request #289 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Sep 24, 2024
73fa1de
Merge pull request #295 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Sep 24, 2024
833353c
Merge pull request #294 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Sep 24, 2024
d9b0274
chore(deps): bump @nestjs/platform-express from 10.4.3 to 10.4.4
dependabot[bot] Sep 24, 2024
0d64481
Merge pull request #296 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Sep 24, 2024
1bcd7e5
chore(deps-dev): bump @nestjs/schematics from 10.1.3 to 10.1.4
dependabot[bot] Sep 24, 2024
a61132d
Merge pull request #288 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Sep 24, 2024
f0591d3
fix(avatar): get avatar returns 501 unauthorized before
Nictheboy Sep 24, 2024
9c6f7de
Merge pull request #297 from SageSeekerSociety/fix-file-permission
Nictheboy Sep 24, 2024
32ce6d9
Fix: authentication required to GET avatars' default image
andylizf Sep 24, 2024
7da3c12
fix(avatar): remove "query-default" permission on avatar
Nictheboy Sep 24, 2024
566ac60
Merge pull request #300 from SageSeekerSociety/andylizf/fix-avatar-auth
andylizf Sep 24, 2024
64b009e
fix(attachment): add test to detect the bug that image, video and aud…
Nictheboy Sep 25, 2024
759d79d
fix(attachment): fix the bug that image, video and audio can not be a…
Nictheboy Sep 25, 2024
93a4182
Merge pull request #301 from SageSeekerSociety/fix-allow-image-as-file
Nictheboy Sep 25, 2024
d9b2b34
chore(deps): bump pg from 8.12.0 to 8.13.0
dependabot[bot] Sep 30, 2024
a4053c4
chore(deps-dev): bump @nestjs/testing from 10.3.10 to 10.4.4
dependabot[bot] Sep 30, 2024
4736ccc
chore(deps): bump @prisma/client from 5.19.0 to 5.20.0
dependabot[bot] Sep 30, 2024
a9aab94
chore(deps-dev): bump @commitlint/cli from 19.4.1 to 19.5.0
dependabot[bot] Sep 30, 2024
fc44154
feat: add configuration COOKIE_BASE_URL
Nictheboy Oct 7, 2024
8b0c993
Merge pull request #306 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Oct 7, 2024
bcc96a1
Merge pull request #305 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Oct 7, 2024
9268e35
Merge pull request #304 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Oct 7, 2024
b353f43
Merge pull request #302 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Oct 7, 2024
7de8eca
chore(deps-dev): bump prisma from 5.17.0 to 5.20.0
dependabot[bot] Oct 7, 2024
bbace77
Merge pull request #303 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Oct 7, 2024
ca5ac8a
Merge pull request #307 from SageSeekerSociety/feat-configurable-url
Nictheboy Oct 7, 2024
886de4e
chore(deps): bump codecov/codecov-action from 4.5.0 to 4.6.0
dependabot[bot] Oct 7, 2024
9e2fbf7
chore(deps-dev): bump @typescript-eslint/parser from 8.6.0 to 8.8.0
dependabot[bot] Oct 7, 2024
2964bf3
chore(deps): bump @nestjs/common from 10.3.10 to 10.4.4
dependabot[bot] Oct 7, 2024
af0933c
chore(deps-dev): bump ts-jest from 29.2.3 to 29.2.5
dependabot[bot] Oct 7, 2024
e031de3
chore(deps-dev): bump @types/multer from 1.4.11 to 1.4.12
dependabot[bot] Oct 7, 2024
ee6259c
chore(deps-dev): bump husky from 9.1.4 to 9.1.6
dependabot[bot] Oct 7, 2024
593435e
fix(avatar): increase max avatar size to 10MB
Nictheboy Oct 13, 2024
b68c7ad
Merge pull request #314 from SageSeekerSociety/increase-avatar-size-t…
Nictheboy Oct 13, 2024
ac0c0e4
Merge pull request #313 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Oct 13, 2024
33598d4
Merge pull request #312 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Oct 13, 2024
eac5f71
Merge pull request #311 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Oct 13, 2024
0cf0388
Merge pull request #310 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Oct 13, 2024
85adcef
Merge pull request #309 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Oct 13, 2024
7a8201d
Merge pull request #308 from SageSeekerSociety/dependabot/github_acti…
Nictheboy Oct 13, 2024
c9fe350
chore(deps): bump express from 4.19.2 to 4.21.1
dependabot[bot] Oct 14, 2024
4500452
chore(deps): bump nodemailer from 6.9.14 to 6.9.15
dependabot[bot] Oct 14, 2024
fff048d
chore(deps-dev): bump @commitlint/config-conventional
dependabot[bot] Oct 14, 2024
7c1580d
chore(deps): bump node from 22-slim to 23-slim
dependabot[bot] Oct 21, 2024
7e7ac91
chore(deps-dev): bump @typescript-eslint/parser from 8.8.0 to 8.11.0
dependabot[bot] Oct 28, 2024
08caf97
Merge pull request #317 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Oct 28, 2024
dc4e221
Merge pull request #318 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Oct 28, 2024
7ff6ca2
Merge pull request #324 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Oct 28, 2024
dcfcdc5
Merge pull request #316 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Oct 28, 2024
6b37e06
Merge pull request #322 from SageSeekerSociety/dependabot/docker/node…
Nictheboy Oct 28, 2024
60d18af
chore(deps): bump @nestjs/core from 10.3.10 to 10.4.6
dependabot[bot] Oct 28, 2024
3a9b679
Merge pull request #323 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Oct 28, 2024
5fc9c0c
fix(login): refresh token cookie path (#325)
HuanCheng65 Oct 31, 2024
c1e9a23
chore: set test/resources/* as binary in .gitattributes
Nictheboy Nov 4, 2024
6a69836
feat: add configuration "TRUST_X_FORWARDED_FOR" to use X-Forwarded-For
Nictheboy Nov 4, 2024
3037386
Merge pull request #326 from SageSeekerSociety/feat-real-ip
Nictheboy Nov 4, 2024
a7b7d53
chore(deps): bump @elastic/elasticsearch from 8.15.0 to 8.15.1
dependabot[bot] Nov 4, 2024
197c7f5
chore(deps): bump @nestjs/config from 3.2.3 to 3.3.0
dependabot[bot] Nov 4, 2024
5aa30ef
chore(deps-dev): bump @types/fluent-ffmpeg from 2.1.26 to 2.1.27
dependabot[bot] Nov 4, 2024
7413c71
chore(deps-dev): bump prisma from 5.20.0 to 5.21.1
dependabot[bot] Nov 4, 2024
2953c3d
Merge pull request #328 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Nov 4, 2024
8f46a76
Merge pull request #330 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Nov 4, 2024
3024342
Merge pull request #329 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Nov 4, 2024
bc2437c
Merge pull request #327 from SageSeekerSociety/chore-test-resources
Nictheboy Nov 4, 2024
c58b0c9
chore(deps-dev): bump @types/express from 4.17.21 to 5.0.0
dependabot[bot] Nov 4, 2024
c4aeee0
Merge pull request #332 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Nov 4, 2024
d1c578a
Merge pull request #331 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Nov 4, 2024
30588d2
chore(deps-dev): bump @nestjs/cli from 10.4.5 to 10.4.7
dependabot[bot] Nov 11, 2024
0cd1d77
chore(deps-dev): bump @typescript-eslint/parser from 8.11.0 to 8.13.0
dependabot[bot] Nov 11, 2024
02c69ac
Merge pull request #333 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Nov 11, 2024
a4899af
Merge pull request #335 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Nov 11, 2024
fbed925
chore(deps): bump @nestjs/core from 10.4.6 to 10.4.7
dependabot[bot] Nov 11, 2024
c233915
Merge pull request #334 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Nov 11, 2024
e44f62a
chore(deps): bump @nestjs/common from 10.4.4 to 10.4.7
dependabot[bot] Nov 11, 2024
725c086
Merge pull request #336 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Nov 11, 2024
bc0eb73
chore(deps-dev): bump @types/node from 22.1.0 to 22.9.0
dependabot[bot] Nov 11, 2024
7ce4121
feat: change default avatar
Nictheboy Nov 14, 2024
a1fe79a
Merge pull request #338 from SageSeekerSociety/change-default-avatar
andylizf Nov 14, 2024
ace8fdc
Merge pull request #337 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Nov 14, 2024
2c8c084
feat: reset password email
Nictheboy Nov 14, 2024
6178098
Merge pull request #339 from SageSeekerSociety/feat-reset-password-email
Nictheboy Nov 14, 2024
865e203
chore(deps-dev): bump prisma from 5.21.1 to 5.22.0
dependabot[bot] Nov 18, 2024
aef20a4
chore(deps-dev): bump @nestjs/testing from 10.4.4 to 10.4.8
dependabot[bot] Nov 18, 2024
c2966d1
chore(deps): bump @nestjs/mapped-types from 2.0.5 to 2.0.6
dependabot[bot] Nov 18, 2024
6a59fbd
chore(deps): bump codecov/codecov-action from 4.6.0 to 5.0.2
dependabot[bot] Nov 18, 2024
b36e35f
Merge pull request #345 from SageSeekerSociety/dependabot/github_acti…
Nictheboy Nov 23, 2024
c7b1c4c
Merge pull request #344 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Nov 23, 2024
87a4fd1
Merge pull request #343 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Nov 23, 2024
899382d
Merge pull request #340 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Nov 23, 2024
a10d14e
chore(deps): bump @nestjs/platform-express from 10.4.4 to 10.4.8
dependabot[bot] Nov 23, 2024
24da993
Merge pull request #342 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Nov 23, 2024
6c4a1d0
chore(deps): bump codecov/codecov-action from 5.0.2 to 5.0.7
dependabot[bot] Nov 25, 2024
55bed67
chore(deps-dev): bump @types/jest from 29.5.12 to 29.5.14
dependabot[bot] Nov 25, 2024
6cd934e
chore(deps-dev): bump @commitlint/config-conventional
dependabot[bot] Nov 25, 2024
3177ed3
chore(deps-dev): bump typescript from 5.5.4 to 5.7.2
dependabot[bot] Nov 25, 2024
ec9d6be
Merge pull request #350 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Nov 30, 2024
9dfb301
Merge pull request #349 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Nov 30, 2024
fcbfd0c
Merge pull request #348 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Nov 30, 2024
33bcbb5
Merge pull request #346 from SageSeekerSociety/dependabot/github_acti…
Nictheboy Nov 30, 2024
9eac6cf
chore(deps): bump codecov/codecov-action from 5.0.7 to 5.1.1
dependabot[bot] Dec 9, 2024
498179b
chore(deps-dev): bump @types/node from 22.9.0 to 22.10.2
dependabot[bot] Dec 16, 2024
475968e
chore(deps-dev): bump lint-staged from 15.2.8 to 15.2.11
dependabot[bot] Dec 16, 2024
16651b8
chore(deps-dev): bump @typescript-eslint/parser from 8.13.0 to 8.18.0
dependabot[bot] Dec 16, 2024
902824d
Merge pull request #357 from SageSeekerSociety/dependabot/github_acti…
Nictheboy Dec 20, 2024
f44e97f
Merge pull request #365 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Dec 20, 2024
a083500
Merge pull request #363 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Dec 20, 2024
9802975
Merge pull request #361 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Dec 20, 2024
338e114
chore(deps-dev): bump @nestjs/testing from 10.4.8 to 10.4.15
dependabot[bot] Dec 20, 2024
8e27361
Merge pull request #364 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Dec 20, 2024
46d213c
chore(deps): bump @nestjs/common from 10.4.7 to 10.4.15
dependabot[bot] Dec 20, 2024
21a8e1a
Merge pull request #362 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Dec 20, 2024
4013af2
chore(deps): bump express from 4.21.1 to 4.21.2
dependabot[bot] Dec 23, 2024
851297e
chore(deps): bump @nestjs/platform-express from 10.4.8 to 10.4.15
dependabot[bot] Dec 23, 2024
56cb03d
chore(deps): bump codecov/codecov-action from 5.1.1 to 5.3.1
dependabot[bot] Jan 27, 2025
c6cb856
chore(deps-dev): bump @commitlint/cli from 19.5.0 to 19.7.1
dependabot[bot] Feb 3, 2025
1e0150a
Merge pull request #374 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Feb 6, 2025
6063996
Merge pull request #373 from SageSeekerSociety/dependabot/github_acti…
Nictheboy Feb 6, 2025
24f48c9
Merge pull request #370 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Feb 6, 2025
f377f64
Merge pull request #368 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Feb 6, 2025
c0859e6
chore(deps-dev): bump @nestjs/cli from 10.4.7 to 11.0.2
dependabot[bot] Feb 6, 2025
1474991
Merge pull request #372 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Feb 6, 2025
a966eca
chore(deps-dev): bump @commitlint/config-conventional
dependabot[bot] Feb 10, 2025
6adbc2f
chore(deps): bump @nestjs/elasticsearch from 10.0.1 to 11.0.0
dependabot[bot] Feb 10, 2025
c8dc279
chore(deps-dev): bump husky from 9.1.6 to 9.1.7
dependabot[bot] Feb 10, 2025
49e3ec3
chore(deps-dev): bump @typescript-eslint/eslint-plugin
dependabot[bot] Feb 17, 2025
be5300a
Merge pull request #381 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Feb 18, 2025
aab92e6
chore(deps-dev): bump prettier from 3.3.3 to 3.5.1
dependabot[bot] Feb 18, 2025
d2eafa4
Merge pull request #378 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Feb 18, 2025
a2d1d5e
Merge pull request #376 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Feb 18, 2025
0d4f4f4
Merge pull request #375 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Feb 18, 2025
9447a57
Merge pull request #380 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Feb 18, 2025
69d47a2
feat(auth): passkey, TOTP and sudo mode (#382)
HuanCheng65 Feb 19, 2025
b165992
chore(db): add passkey and two-factor authentication migration (#384)
HuanCheng65 Feb 19, 2025
5a2136b
feat(auth): implement Secure Remote Password (SRP) authentication (#386)
HuanCheng65 Feb 22, 2025
9337b06
chore(deps-dev): bump @typescript-eslint/eslint-plugin
dependabot[bot] Feb 24, 2025
3ecd306
chore(deps-dev): bump eslint-plugin-prettier from 5.2.1 to 5.2.3
dependabot[bot] Feb 24, 2025
159e355
chore(deps): bump nodemailer from 6.9.15 to 6.10.0
dependabot[bot] Feb 24, 2025
ab867c5
chore(deps): bump @prisma/client from 5.20.0 to 6.4.1
dependabot[bot] Feb 24, 2025
de05c80
Merge pull request #391 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Feb 27, 2025
890de64
Merge pull request #390 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Feb 27, 2025
4f3f21a
Merge pull request #389 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Feb 27, 2025
3b990f1
Merge pull request #387 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Feb 27, 2025
33bf637
chore(deps): bump rxjs from 7.8.1 to 7.8.2
dependabot[bot] Feb 27, 2025
69962eb
Merge pull request #388 from SageSeekerSociety/dependabot/npm_and_yar…
Nictheboy Feb 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"dockerComposeFile": ["../docker-compose.yml", "../docker-compose.dev.yml"],
"service": "backend",
"workspaceFolder": "/app",
"shutdownAction": "stopCompose",
"customizations": {
"vscode": {
"extensions": [
"ajmnz.prisma-import",
"donjayamanne.git-extension-pack",
"AndrewButson.vscode-openapi-viewer"
]
}
},
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"installZsh": true,
"configureZshAsDefaultShell": true,
"installOhMyZsh": true,
"installOhMyZshConfig": true
}
},
"postCreateCommand": "bash .devcontainer/setup.sh"
}
16 changes: 16 additions & 0 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash
set -e

pnpm prisma migrate deploy

# put customize content in customize.sh, which won't
# be tracked by git
# remember to grant execute permission to the script
customize_file=".devcontainer/customize.sh"
if [ -f "$customize_file" ]; then
echo "executing $customize_file"
bash "$customize_file"
echo "done"
else
echo "no customize file found, done"
fi
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* text eol=lf
src/materials/resources/* binary
src/avatars/resources/* binary
test/resources/* binary
21 changes: 21 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: 2
updates:
- package-ecosystem: 'docker'
directory: '/'
schedule:
interval: 'weekly'

- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'

- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'

- package-ecosystem: 'devcontainers'
directory: '/'
schedule:
interval: 'weekly'
49 changes: 49 additions & 0 deletions .github/workflows/build-docker-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build and Push Product Docker Image

on:
push:
branches:
- main
- dev
workflow_dispatch:

env:
REGISTRY: ghcr.io
IMAGE_NAME: SageSeekerSociety/cheese-backend

jobs:
build-and-push-image:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

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

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

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

- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
target: prod
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
111 changes: 111 additions & 0 deletions .github/workflows/build-test-docker-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
name: Build and Test Dev Docker

on:
push:
branches:
- dev
pull_request:
branches:
- dev
workflow_dispatch:

env:
REGISTRY: ghcr.io
IMAGE_NAME: SageSeekerSociety/cheese-backend-dev

jobs:
build-and-push-image:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

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

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

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

- name: Build
uses: docker/build-push-action@v6
with:
context: .
target: dev
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
load: true

- name: Create env file
run: cp sample.env .env

- name: set backend image tag
run: echo "BACKEND_DEV_VERSION=${{ steps.meta.outputs.version }}" >> "$GITHUB_ENV"

- name: Start compose
run: docker compose -f docker-compose.yml -f docker-compose.dev.yml up --no-build -d

# See: https://remarkablemark.org/blog/2022/05/12/github-actions-postgresql-increase-max-connections-and-shared-buffers/
# See: https://stackoverflow.com/questions/70673766/how-to-increase-max-connection-in-github-action-postgres
- name: Increase PostgreSQL max_connections
run: |
docker exec -i cheese-backend-database-1 bash << EOF
sed -i -e 's/max_connections = 100/max_connections = 1000/' /var/lib/postgresql/data/postgresql.conf
sed -i -e 's/shared_buffers = 128MB/shared_buffers = 2GB/' /var/lib/postgresql/data/postgresql.conf
EOF
docker restart --time 0 cheese-backend-database-1

- name: Check Schema up to Date
run: |
docker compose exec backend cp prisma/schema.prisma prisma/schema.prisma.origin
docker compose exec backend pnpm build-prisma
docker compose exec backend diff prisma/schema.prisma prisma/schema.prisma.origin

- name: Deploy migrations to Database
run: docker compose exec backend pnpm prisma migrate deploy

- name: Check Prisma Structures Sync With Database
run: |
docker compose exec backend pnpm prisma migrate diff \
--from-schema-datasource prisma/schema.prisma \
--to-schema-datamodel prisma/schema.prisma \
--exit-code

- name: Try to Start Application
run: |
docker compose exec backend bash -c "
pnpm start | tee output &
while true; do
sleep 1
if grep -q \"Nest application successfully started\" output; then
echo \"Detected 'Nest application successfully started'. Stopping pnpm...\"
pid=$(netstat -nlp | grep 3000 | awk '{print $7}' | awk -F'/' '{print $1}')
kill $pid
break
fi
if grep -q \"Command failed\" output; then
echo \"Nest application failed to start.\"
exit -1
fi
done
"

- name: Run Test
run: docker compose exec backend pnpm run test:cov
83 changes: 83 additions & 0 deletions .github/workflows/code-ql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
pull_request:
branches: [ "main", "dev" ]
schedule:
- cron: '0 0 * * *'

jobs:
analyze:
name: Analyze
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners
# Consider using larger runners for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
# required for all workflows
security-events: write

# only required for workflows in private repositories
actions: read
contents: read

strategy:
fail-fast: false
matrix:
language: [ 'javascript-typescript' ]
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
Loading