Miodec
469bdfe32f
validation
2023-07-17 13:59:27 +02:00
Miodec
1a8f0b8f18
stricter validation
2023-07-17 13:54:24 +02:00
Miodec
4c079f2516
flagging user for name change if their name is nullish
2023-07-01 11:18:28 +02:00
Miodec
da289b96b1
escaping character
2023-07-01 00:25:32 +02:00
Miodec
555318d0bc
updated font family schema
2023-07-01 00:24:57 +02:00
Miodec
9881800175
fixed config schema
2023-06-29 14:21:26 +02:00
Miodec
df3e1d7df4
captcha schema
2023-06-29 14:20:55 +02:00
Miodec
d4c9fb4874
fixed captcha schema
2023-06-29 14:17:29 +02:00
Miodec
e375dee6fe
better schema
2023-06-29 14:05:31 +02:00
Miodec
08a96e634a
moved content limit check to the DAL
2023-06-29 14:05:31 +02:00
Miodec
7a9eb30cef
added content limit for tags
2023-06-29 14:05:31 +02:00
Miodec
ca38437153
stricter validation
2023-06-29 14:05:31 +02:00
Miodec
21eeae095e
stricter schema
2023-06-29 14:05:31 +02:00
Miodec
92a50a6cb7
stricter schema
2023-06-29 14:05:31 +02:00
Miodec
2d858bece4
stricter schema
2023-06-29 14:05:31 +02:00
Miodec
62ebee77b5
stricter schema
2023-06-29 14:05:31 +02:00
Miodec
1ea9650cce
updated language schema
...
closes #4422
2023-06-29 13:15:55 +02:00
Miodec
10159702ff
opened the tags endpoint to the apekey authentication
2023-06-29 13:11:40 +02:00
Miodec
3d2fc2913a
omitting note
2023-06-28 14:06:02 +02:00
Miodec
73a24af279
admin validation
2023-06-27 17:03:33 +02:00
Miodec
817b4e6805
more strict config schema
2023-06-26 15:23:57 +02:00
Miodec
9d6be7a4ea
fixed typo
2023-06-25 21:40:28 +02:00
Miodec
8597037845
added another check to make sure emails match
2023-06-23 16:44:05 +02:00
Miodec
242e017371
allowing change if undefined or null
2023-06-14 23:56:39 +02:00
Xea
850a14c584
split smoothCaret into several modes ( #4374 ) im-0xea
...
* split smoothCaret into several modes
* implemented requested changes of smoothCaret modes
* moved config migration code
* bring back caretFlash animation
* fixed error (weird how the build process didnt catch this)
---------
Co-authored-by: Miodec <jack@monkeytype.com>
Co-authored-by: Niki <n.topel@callassoftware.com>
2023-06-14 13:59:24 +02:00
Jack
27b1a7fedb
Streak hour offset ( #4357 )
...
* backend flow to set hour offset
* added frontend popup to set streak hour offset
* displaying a message that the user can change offset
displaying the actual offset if its already set
* applying offset when checking streaks
* added tests for the new offset
updated old streak tests
* defaulting to undefined
* removing content if offset is already set
* updated the way offset is displayed
* also updating in the local snapshot
2023-06-12 14:38:44 +02:00
Miodec
cca3f8090d
updated admin limit
2023-06-07 15:15:14 +02:00
Miodec
b2ac4e7197
moved to admin route
2023-06-07 15:00:13 +02:00
Miodec
0107530eae
added toggle banned endpoint
2023-06-07 14:53:53 +02:00
Miodec
45eb1e8a40
added rate limiter
2023-06-07 14:53:33 +02:00
Miodec
2e7179df8e
checking if result funboxes are unique
...
checking if result funboxes are compatible with each other
2023-06-05 13:11:16 +02:00
Miodec
f8f80fbeb0
making sure to only take unique funboxes
2023-06-05 12:27:38 +02:00
Miodec
bcc6445440
stricter result schema
2023-06-05 11:27:32 +02:00
Miodec
f51a64727e
stricted result schema
2023-06-05 11:27:32 +02:00
Evan
0f51c384f6
Force mode2 to always be string ( #4097 ) Ferotiq Miodec
...
* make a util type
* `StringNumber` in `leaderboards.ts`
* fix errors in`pb-tables.ts`
* remove string conversion
* update schemas
* refactor `checkAndUpdatePb`
* use string arrays
* parse the mode2 before comparing
* refactor types
* fallback to empty array
* complete the mode2 string conversion
* missed a few things
* assert
* fix tests
* those were meant to be arrays
* don't supply custom and zen by default
* update interfaces
* add `parseInt`
* rename
* apparently those weren't even needed
* updated type
* added types
* types
* added comment
* added comments, removed triple equals
* another comment and again removed type check
* making sure to include legacy results
* using template strings instead
* using template strings and triple equals
---------
Co-authored-by: Miodec <jack@monkeytype.com>
2023-05-24 15:53:37 +02:00
Miodec
5d2b07308b
removed console log
2023-05-22 14:32:07 +02:00
Miodec
014e20cf82
setting cached user banned property,
...
not checking again if user is already banned
2023-05-17 13:34:46 +02:00
Miodec
16b2b11caf
better log
2023-05-17 12:05:48 +02:00
Miodec
219ec63794
turns out date.now uses miliseconds instead of seconds... who knew?
2023-05-09 16:06:47 +02:00
Evan
9408322503
Update PersonalBests Interface ( #4158 ) Ferotiq
...
* update `PersonalBests` interface
* removed properties
* setting to skeleton if needed
* consistency and add skeleton by default
* consistency
* populate personalBests on user get
* simplification + consistency + small fixes
* protecting against partial object
* removed duplicate
* not optional property
* ensuring personal bests structure while creating user snapshot
* checking pb structure for tags
* missing skeleton
* required personal bests property
* simplify
---------
Co-authored-by: Miodec <jack@monkeytype.com>
2023-05-03 11:39:32 +02:00
Miodec
aecdd21474
allowing users to update the casing of their own name
2023-04-21 11:22:43 +02:00
Miodec
017ca95236
passing previous name as function parameter to avoid requesting the user multiple times
2023-04-21 10:44:40 +02:00
Miodec
7d4e1ffc03
moved last name change check to the controller
2023-04-21 10:43:32 +02:00
Miodec
ad664812be
missing styles in the config validation
2023-04-21 10:11:13 +02:00
Miodec
c6d0070dd3
moved firebase admin into its own module
...
not initialising if ther eis no service account
this allows the backend server to be ran without firebase (all though it will throw errors)
closes #4190
2023-04-18 15:50:54 +02:00
Miodec
f053ca2c96
stopped ab test, removed ab test tracking code
2023-04-17 16:47:39 +02:00
Miodec
d96eea2bca
Merge branch 'master' into newads
2023-04-12 16:26:59 +02:00
Miodec
26a876938e
i am stupid
2023-04-12 16:26:45 +02:00
Miodec
73c84b43c3
Merge branch 'master' into newads
2023-04-12 00:03:00 +02:00
Miodec
c36664c00c
passing lboptout into validation
2023-04-12 00:01:31 +02:00