Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: kgtkr/anontown-server
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 92d15cdef603dc9a725e861b1bfd2ff0438de966
Choose a base ref
..
head repository: kgtkr/anontown-server
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0fffa5f5aa05547cf0b8818d444d41bef44e5a7b
Choose a head ref
Showing with 8,119 additions and 5,102 deletions.
  1. +1 −1 .eslintignore
  2. +1 −1 .prettierignore
  3. +2 −1 Dockerfile
  4. +5,958 −2,673 package-lock.json
  5. +4 −4 package.json
  6. +1 −1 packages/server/.gitignore
  7. +19 −0 packages/server/codegen.ts
  8. +0 −37 packages/server/codegen.yml
  9. +18 −13 packages/server/package.json
  10. +20 −0 packages/server/prisma/migrations/20240109024136_add_fkey/migration.sql
  11. +8 −0 packages/server/prisma/migrations/20240109042335_delete_msg_table/migration.sql
  12. +10 −0 ...s/server/prisma/migrations/20240127072617_push_subscriptions_endpoint_change_length/migration.sql
  13. +4 −18 packages/server/prisma/schema.prisma
  14. +0 −525 packages/server/schema.gql
  15. +6 −6 packages/server/src/adapters/NotificationQueueImpl.ts
  16. +0 −2 packages/server/src/adapters/index.ts
  17. +0 −1 packages/server/src/adapters/msg-loader/index.ts
  18. +0 −27 packages/server/src/adapters/msg-loader/msg-loader.ts
  19. +0 −35 packages/server/src/adapters/msg-repo/imsg-db.spec.ts
  20. +0 −32 packages/server/src/adapters/msg-repo/imsg-db.ts
  21. +0 −245 packages/server/src/adapters/msg-repo/imsg-repo.th.ts
  22. +0 −2 packages/server/src/adapters/msg-repo/index.ts
  23. +0 −9 packages/server/src/adapters/msg-repo/msg-repo-mock.spec.ts
  24. +0 −75 packages/server/src/adapters/msg-repo/msg-repo-mock.ts
  25. +0 −12 packages/server/src/adapters/msg-repo/msg-repo.spec.ts
  26. +0 −105 packages/server/src/adapters/msg-repo/msg-repo.ts
  27. +1 −1 packages/server/src/adapters/profile-repo/profile-repo.ts
  28. +1 −3 packages/server/src/adapters/res-repo/res-repo.ts
  29. +69 −8 packages/server/src/adapters/storage-repo/istorage-repo.th.ts
  30. +5 −1 packages/server/src/adapters/storage-repo/storage-repo-mock.ts
  31. +10 −0 packages/server/src/adapters/storage-repo/storage-repo.ts
  32. +1 −1 packages/server/src/adapters/user-repo/user-repo.ts
  33. +3 −3 packages/server/src/constant.ts
  34. +0 −6 packages/server/src/createPorts.ts
  35. +46 −0 packages/server/src/cron.ts
  36. +0 −1 packages/server/src/entities/index.ts
  37. +0 −1 packages/server/src/entities/msg/index.ts
  38. +0 −83 packages/server/src/entities/msg/msg.spec.ts
  39. +0 −62 packages/server/src/entities/msg/msg.ts
  40. +28 −24 packages/server/src/entities/res/res.ts
  41. +1 −1 packages/server/src/entities/storage/storage.spec.ts
  42. +14 −11 packages/server/src/entities/token/token.ts
  43. +20 −16 packages/server/src/entities/topic/topic.ts
  44. +7 −0 packages/server/src/jobs/CheckDeadTopicJob.ts
  45. +27 −0 packages/server/src/jobs/JobType.ts
  46. +0 −15 packages/server/src/jobs/SendPushNotification.ts
  47. +17 −0 packages/server/src/jobs/SendPushNotificationJob.ts
  48. +16 −0 packages/server/src/jobs/UserCountResetJob.ts
  49. +7 −0 packages/server/src/jobs/UserPointResetJob.ts
  50. +0 −2 packages/server/src/ports/index.ts
  51. +0 −1 packages/server/src/ports/msg-loader/index.ts
  52. +0 −6 packages/server/src/ports/msg-loader/msg-loader.ts
  53. +0 −24 packages/server/src/ports/msg-repo/imsg-repo.ts
  54. +0 −1 packages/server/src/ports/msg-repo/index.ts
  55. +0 −4 packages/server/src/ports/ports.ts
  56. +2 −0 packages/server/src/ports/storage-repo/istorage-repo.ts
  57. +2 −0 packages/server/src/prisma-client.ts
  58. +0 −37 packages/server/src/resolvers/index.ts
  59. +0 −544 packages/server/src/resolvers/mutation.ts
  60. +0 −134 packages/server/src/resolvers/query.ts
  61. +0 −73 packages/server/src/resolvers/res.ts
  62. +0 −17 packages/server/src/resolvers/subscription.ts
  63. +0 −19 packages/server/src/resolvers/token.ts
  64. +0 −57 packages/server/src/resolvers/topic.ts
  65. +17 −0 packages/server/src/schema/base/resolvers/Mutation/resisterPushSubscription.ts
  66. +9 −0 packages/server/src/schema/base/resolvers/Query/query.ts
  67. +4 −0 packages/server/src/schema/base/resolvers/ValidateData.ts
  68. +51 −0 packages/server/src/schema/base/schema.graphql
  69. +4 −0 packages/server/src/schema/client/resolvers/Client.ts
  70. +4 −0 packages/server/src/schema/client/resolvers/CreateClientResponseError.ts
  71. +21 −0 packages/server/src/schema/client/resolvers/Mutation/createClient.ts
  72. +21 −0 packages/server/src/schema/client/resolvers/Mutation/updateClient.ts
  73. +18 −0 packages/server/src/schema/client/resolvers/Query/clients.ts
  74. +35 −0 packages/server/src/schema/client/schema.graphql
  75. +1 −0 packages/server/src/schema/client/schema.mappers.ts
  76. +13 −0 packages/server/src/schema/convertDateQuery.ts
  77. +3 −3 packages/server/src/{resolvers/history.ts → schema/history/resolvers/History.ts}
  78. +21 −0 packages/server/src/schema/history/resolvers/Query/histories.ts
  79. +29 −0 packages/server/src/schema/history/schema.graphql
  80. +1 −0 packages/server/src/schema/history/schema.mappers.ts
  81. +22 −0 packages/server/src/schema/profile/resolvers/Mutation/createProfile.ts
  82. +22 −0 packages/server/src/schema/profile/resolvers/Mutation/updateProfile.ts
  83. +4 −0 packages/server/src/schema/profile/resolvers/Profile.ts
  84. +19 −0 packages/server/src/schema/profile/resolvers/Query/profiles.ts
  85. +31 −0 packages/server/src/schema/profile/schema.graphql
  86. +93 −0 packages/server/src/schema/res/resolvers/Mutation/createRes.ts
  87. +34 −0 packages/server/src/schema/res/resolvers/Mutation/delRes.ts
  88. +59 −0 packages/server/src/schema/res/resolvers/Mutation/voteRes.ts
  89. +27 −0 packages/server/src/schema/res/resolvers/Query/reses.ts
  90. +6 −0 packages/server/src/schema/res/resolvers/ResDelete.ts
  91. +14 −0 packages/server/src/schema/res/resolvers/ResFork.ts
  92. +11 −0 packages/server/src/schema/res/resolvers/ResHistory.ts
  93. +23 −0 packages/server/src/schema/res/resolvers/ResNormal.ts
  94. +8 −0 packages/server/src/schema/res/resolvers/ResSubscript.ts
  95. +6 −0 packages/server/src/schema/res/resolvers/ResTopic.ts
  96. +15 −0 packages/server/src/schema/res/resolvers/Subscription/resAdded.ts
  97. +9 −0 packages/server/src/schema/res/resolvers/base_Res.ts
  98. +212 −0 packages/server/src/schema/res/schema.graphql
  99. +9 −0 packages/server/src/schema/res/schema.mappers.ts
  100. +52 −0 packages/server/src/schema/resolveTypes.ts
  101. +14 −0 packages/server/src/schema/storage/resolvers/Mutation/delStorage.ts
  102. +20 −0 packages/server/src/schema/storage/resolvers/Mutation/setStorages.ts
  103. +17 −0 packages/server/src/schema/storage/resolvers/Query/storages.ts
  104. +4 −0 packages/server/src/schema/storage/resolvers/SetStoragesPayload.ts
  105. +4 −0 packages/server/src/schema/storage/resolvers/Storage.ts
  106. +31 −0 packages/server/src/schema/storage/schema.graphql
  107. +1 −0 packages/server/src/schema/storage/schema.mappers.ts
  108. +6 −0 packages/server/src/schema/stringToDate.ts
  109. +3 −0 packages/server/src/schema/token/resolvers/CreateTokenGeneralResponse.ts
  110. +13 −0 packages/server/src/schema/token/resolvers/Mutation/authTokenReq.ts
  111. +27 −0 packages/server/src/schema/token/resolvers/Mutation/createTokenGeneral.ts
  112. +21 −0 packages/server/src/schema/token/resolvers/Mutation/createTokenMaster.ts
  113. +20 −0 packages/server/src/schema/token/resolvers/Mutation/createTokenReq.ts
  114. +11 −0 packages/server/src/schema/token/resolvers/Mutation/delTokenClient.ts
  115. +12 −0 packages/server/src/schema/token/resolvers/Query/token.ts
  116. +12 −0 packages/server/src/schema/token/resolvers/Query/tokens.ts
  117. +7 −0 packages/server/src/schema/token/resolvers/TokenGeneral.ts
  118. +2 −0 packages/server/src/schema/token/resolvers/TokenMaster.ts
  119. +2 −0 packages/server/src/schema/token/resolvers/TokenReq.ts
  120. +42 −0 packages/server/src/schema/token/schema.graphql
  121. +7 −0 packages/server/src/schema/token/schema.mappers.ts
  122. +46 −0 packages/server/src/schema/topic/resolvers/Mutation/createTopicFork.ts
  123. +41 −0 packages/server/src/schema/topic/resolvers/Mutation/createTopicNormal.ts
  124. +35 −0 packages/server/src/schema/topic/resolvers/Mutation/createTopicOne.ts
  125. +10 −0 packages/server/src/schema/topic/resolvers/Mutation/subscribeTopic.ts
  126. +11 −0 packages/server/src/schema/topic/resolvers/Mutation/unsubscribeTopic.ts
  127. +43 −0 packages/server/src/schema/topic/resolvers/Mutation/updateTopic.ts
  128. +10 −0 packages/server/src/schema/topic/resolvers/Query/topicTags.ts
  129. +21 −0 packages/server/src/schema/topic/resolvers/Query/topics.ts
  130. +4 −0 packages/server/src/schema/topic/resolvers/Tags.ts
  131. +14 −0 packages/server/src/schema/topic/resolvers/TopicFork.ts
  132. +6 −0 packages/server/src/schema/topic/resolvers/TopicNormal.ts
  133. +6 −0 packages/server/src/schema/topic/resolvers/TopicOne.ts
  134. +16 −0 packages/server/src/schema/topic/resolvers/base_Topic.ts
  135. +96 −0 packages/server/src/schema/topic/schema.graphql
  136. +8 −0 packages/server/src/schema/topic/schema.mappers.ts
  137. +4 −0 packages/server/src/schema/user/resolvers/CreateUserResponse.ts
  138. +28 −0 packages/server/src/schema/user/resolvers/Mutation/createUser.ts
  139. +33 −0 packages/server/src/schema/user/resolvers/Mutation/updateUser.ts
  140. +14 −0 packages/server/src/schema/user/resolvers/Query/user.ts
  141. +9 −0 packages/server/src/schema/user/resolvers/Query/userID.ts
  142. +10 −0 packages/server/src/schema/user/resolvers/Query/userSN.ts
  143. +4 −0 packages/server/src/schema/user/resolvers/UpdateUserResponse.ts
  144. +4 −0 packages/server/src/schema/user/resolvers/User.ts
  145. +36 −0 packages/server/src/schema/user/schema.graphql
  146. +1 −0 packages/server/src/schema/user/schema.mappers.ts
  147. +5 −2 packages/server/src/server/auth-from-api-param.ts
  148. +9 −10 packages/server/src/server/context.ts
  149. +43 −43 packages/server/src/server/server.ts
  150. +19 −63 packages/server/src/worker.ts
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
*/**/generated/*
*/**/*.generated.ts
*.js
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
*/**/generated/*
*/**/*.generated.ts
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16.17.0-slim
FROM node:20.11.0-slim

WORKDIR /home

@@ -12,4 +12,5 @@ COPY package.json package-lock.json lerna.json tsconfig.base.json ./
RUN npm ci
RUN npx lerna run build

ENV NODE_ENV=production
CMD npx lerna run start --scope @anontown-backend/server --stream
Loading