Commit graph

440 commits

Author SHA1 Message Date
Brian Evans 86d7207c39
Update privacy-policy to reflect mongodb (#2552)
Data is now stored in MongoDB, so I updated the privacy policy to reflect this change. Also updated the "last updated" date.
2022-02-21 13:57:02 +01:00
Miodec 6cf1f06d0d temporairly accepting both strings and numbers 2022-02-21 13:56:25 +01:00
Miodec 251b7234a4 fixed showavg duplication 2022-02-21 13:46:00 +01:00
Miodec 725e51e9a5 added -2 to the list of allowed quotelengths 2022-02-21 13:36:15 +01:00
Miodec 0668a8cfdc fixed challenge schema 2022-02-21 13:26:55 +01:00
Miodec 6c307f0d78 sending nosave 2022-02-21 03:14:22 +01:00
Miodec b59392cf1c moved average 2022-02-21 02:52:54 +01:00
Octahedron a0f911961f
added "show average" setting (#2551) by octahedronv2
* added "show average" setting

hopefully this doesn't break everything :)

* Delete config-schema.js

* Delete commandline-lists.ts

* Delete config.ts

* Delete db.ts

* Delete index.html

* Delete modes-notice.ts

* Delete settings.ts

* Delete types.d.ts

* added show average setting

* changed the capitalization of ONE character

* Rounded the wpm calculation when mode is PB or AVG

* Only display average if user is logged in

* Only display average if wpm > 0

and by extension, only when the user is logged in.

* changed look of average display

Co-authored-by: Jack <jack@monkeytype.com>
2022-02-21 02:49:33 +01:00
Miodec 96bb69f765 parsing to int 2022-02-21 02:48:06 +01:00
Miodec 8e6af5b6d2 converted to ts 2022-02-21 02:18:09 +01:00
Miodec bfb869ddc9 incorrect type 2022-02-21 02:13:48 +01:00
Miodec 684e3cb456 converted to ts 2022-02-21 01:28:42 +01:00
Miodec e65f514a45 using challenge type 2022-02-21 01:24:45 +01:00
Miodec d6ef4b5f9d more consistent schema 2022-02-21 01:24:33 +01:00
Miodec 1bca0a3734 moved challenge type to MonkeyTypes, fixed challenge type 2022-02-21 01:24:18 +01:00
Miodec 99b92ea947 fixed average pace not displaying correctly 2022-02-21 01:01:00 +01:00
Miodec b03209ce0d removed console log 2022-02-21 01:00:40 +01:00
Miodec f698158dea unnecessary function call 2022-02-21 00:57:18 +01:00
Ferotiq 4ea967d677
Add Config Validation to Every Config Value (#2542)
* add what I got so far

* add validation for the rest of the config settings

* some changes

* fix font size, tested all config settings

* add arrow function back

* change font size type

* change font size type

* Revert "change font size type"

This reverts commit fc6f0e78a4.

* merge
2022-02-20 19:30:15 +01:00
Miodec 9242b6e1a8 increased gap 2022-02-20 17:15:07 +01:00
Miodec e93fe5aa9d removed unnecessary property 2022-02-20 17:13:08 +01:00
Miodec 90b50ff4ca hiding background filters when custom background is not set 2022-02-20 17:10:36 +01:00
Miodec 775fe34851 added auto switch theme
allows auto switching between light and dark theme based on system theme
closes #2088 and #1629
2022-02-20 17:07:02 +01:00
Miodec 2c9125124c increased margin 2022-02-20 16:13:54 +01:00
Miodec 840ae262c2 changed the styling of active settings in select2 2022-02-20 15:41:10 +01:00
Miodec baf276dae3 added small gap for readability 2022-02-20 15:36:05 +01:00
Miodec 52b426957b wider slider thumbs 2022-02-20 15:35:22 +01:00
Miodec d6ce31161a fixed quote lengths 2022-02-20 15:03:15 +01:00
Miodec 2cd87df040 fixed length fields 2022-02-20 14:49:53 +01:00
Miodec 07d9901967 fixed length fields 2022-02-20 14:48:48 +01:00
Miodec a4ff6cbaab added quote length validation 2022-02-20 14:45:00 +01:00
Miodec 65f2f369bf Merge branch 'master' of https://github.com/Miodec/monkeytype 2022-02-20 14:31:30 +01:00
Miodec 4ef34817ae added 'export csv' button to the account page
(only exports filtered results)
closes #919
2022-02-20 14:30:41 +01:00
arda-a b1098c553e
layout update : whorfmax fine-tuning on index finger, swapped 'v' and 'y' (#2546)
- enabled alt-fingering for 'ty' and 'typ'
- 'ly' bigram is easier
2022-02-20 13:20:40 +01:00
xiao f5cfb116ec
Fixed grammar. (#2541) 2022-02-19 22:03:46 -06:00
Miodec dba083d1e9 fixed quote length filters not selecting correctly 2022-02-20 02:41:18 +01:00
Miodec 43562ea375 setting to custom if config is not default 2022-02-20 02:30:29 +01:00
Miodec a02772b4d4 fixed config buttons not selecting 2022-02-20 02:26:46 +01:00
Miodec e76c545b57 fixed keymap legend style resetting when changing keymap layout 2022-02-20 02:11:50 +01:00
Miodec 759f19c0ed fixed bump being on the wrong key 2022-02-20 02:08:26 +01:00
Miodec 543f417406 changed default chart animation length 2022-02-20 02:04:31 +01:00
Miodec 4d5c4dacbb added smoothing slider to the account page
closes #2470
2022-02-20 01:52:39 +01:00
Miodec 5e578c6e32 removed unused parameter 2022-02-20 01:51:58 +01:00
Miodec c0677890ce temporary message fix before api overhaul is complete
closes #2531
2022-02-20 00:03:11 +01:00
Miodec 3891ddbe14 moved dependencies to frontend 2022-02-19 22:30:41 +01:00
Miodec 728a28c0b3 converted theme controller to ts 2022-02-19 22:17:23 +01:00
Miodec 370a873e60 converted verification controller to ts 2022-02-19 22:06:48 +01:00
Miodec a2ecc054d4 converted tag controller to ts 2022-02-19 22:03:06 +01:00
Miodec ba992a0632 fixed incorrect type 2022-02-19 22:01:42 +01:00
Miodec 9fc2675c6a converted sound controller to ts 2022-02-19 21:56:58 +01:00
Miodec 12f1f294c7 converted route controller to ts 2022-02-19 21:50:06 +01:00
Miodec f4c12dc19b converted preset controller to ts 2022-02-19 21:36:03 +01:00
Miodec f17ae684fb added preset config type 2022-02-19 21:35:47 +01:00
Miodec 67c16ec153 casting as string 2022-02-19 21:35:21 +01:00
Miodec 2e398ba2a2 using type for page name 2022-02-19 21:29:38 +01:00
Miodec 695300289e converted page controller to ts 2022-02-19 21:29:18 +01:00
Miodec 1549eb5aa1 fixed stuck on loading page when not logged in 2022-02-19 21:28:47 +01:00
Miodec 2f6534f8a8 setting page transition earlier 2022-02-19 21:12:13 +01:00
Miodec a008fef06c fixed page changing twice on sign out 2022-02-19 21:10:03 +01:00
Miodec 9fe003aeab using console trace instead 2022-02-19 20:57:00 +01:00
Ferotiq c1a3146765
add ready.ts (#2539) 2022-02-19 18:14:08 +01:00
Ferotiq 71cdce20e3
TypeScript FrontEnd: Add Account Files (#2494)
* add account files, config, and db, fix other files, and make lint script work on cmd

* fuck operating systems

* remove project from eslint

* Merging and fixing some bugs

* fixed result ordering

* fixed quote filter stopping all results

* fixed words filter not working

* corrected type

* Update commandline-lists.ts

* Update types.d.ts

* removing explicit tag types

* mfing prettier

* small changes

* stuff

* fixes

* fix cannot read properties of undefined

* another check just to be safe

* okay that works

Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-02-19 17:44:27 +01:00
Miodec c3825ab54e reworked leaderboards media queries. should fix #2488 2022-02-19 15:52:14 +01:00
Miodec 3caeb3fcdd fixed broken watches 2022-02-19 15:30:22 +01:00
Miodec 8cba5120c3 fixed scss task not running 2022-02-19 15:12:35 +01:00
Miodec c0a6fc2430 disabling funbox when loading challenge 2022-02-19 13:54:11 +01:00
Miodec 5046863e30 fixed account page result sorting not working 2022-02-19 13:42:37 +01:00
Miodec af6e8867aa updating modes notice while its invisible 2022-02-19 13:37:50 +01:00
Miodec fa41ccc8e9 remembering lazy mode setting and automatically setting it back to enabled if language supports it 2022-02-19 13:37:25 +01:00
Miodec df35476668 including nosave in configevent dispatch 2022-02-19 13:36:17 +01:00
Miodec bf3e3d4da6 missing types 2022-02-18 23:41:51 +01:00
Jack 432fedb3c0
Pr-check 2022-02-18 19:25:33 +01:00
Miodec c9b9e2705a added tasks for pr check that only run certain tasks
part of #2527
2022-02-18 18:14:39 +01:00
Miodec 5d0c5998d2 moved json validation to its own file 2022-02-18 18:08:22 +01:00
Miodec 8b1698d1a3 deleted unused file 2022-02-18 18:03:03 +01:00
Jack e4a7c8b5e9
Layouts rewrite (#2529)
* added types

* converted qwerty to new format

* added type

* removed keymap structure

* updated space styling

* fixed keymap types

* removed type

* initial keymap element building (only supports staggered for now)

* using id instead of class

* using id

* moved class changes to the keymap file

* fixed matrix key count

* fixed split and matrix layouts

* fixed alice

* removed unused code

* removed unused code

* converted layout emulator to new format

* removed unnecessary field

* using type

* added layout

* added default layout

* added alias

* converted key flashing to new logic

* using new logic

* using new logic in mode next

* fixed iso alice

* converted some layouts

* added layouts json

* added functions to get layouts

* made getlayout synchronous

* updated layout types

* using new function

* added layout json schema validation
closes #2516

* converted ansi layouts to the new format

* modified schema

* fixed the rest of the layouts

* switched function back to async
2022-02-18 18:02:35 +01:00
Miodec 63ffda4bc6 updated result filters type 2022-02-18 13:59:55 +01:00
Miodec d5d75f912b unnecessary 200 filter 2022-02-18 13:57:25 +01:00
Ferotiq 61ac178364
capitalize the first letter of each word in the string (#2525) 2022-02-18 11:57:23 +01:00
Miodec f6d8233468 restarting test after enabling practise words. closes #2523 2022-02-18 00:37:04 +01:00
Miodec c85b644b88 added json schema validation. part of #2516 2022-02-17 23:36:40 +01:00
Miodec 211f191340 typo 2022-02-17 23:25:31 +01:00
Miodec 6b5a4558b3 removed quote 2022-02-17 23:14:25 +01:00
Miodec 7e0e972571 unique id 2022-02-17 23:11:37 +01:00
Miodec 7ee599b7e4 unique ids 2022-02-17 23:10:35 +01:00
Miodec 058ce89828 typo 2022-02-17 23:03:55 +01:00
Miodec f37656556f renamed file 2022-02-17 23:03:39 +01:00
Miodec b4208dcc9d typo 2022-02-17 23:02:59 +01:00
Miodec cf79d70c5d fixed json schema 2022-02-17 22:36:29 +01:00
Mehdi Hussain dfc4dd4b0b
Add New Quotes (#2520)
* Added New Quotes

* Add More Quotes
2022-02-17 15:11:03 +01:00
howmanysmall 5bee5e3a04
Added support for the Lua and Luau languages. (#2519)
* Added Lua support.

* Updated other `.json` files.

* Added support for Luau.
2022-02-17 11:58:04 +01:00
Miodec 1063df32a0 converted to ts 2022-02-16 20:18:21 +01:00
Miodec e9547cd8f6 converted to ts 2022-02-16 20:15:18 +01:00
Miodec a4658aa15d converted to ts 2022-02-16 20:14:47 +01:00
Miodec 5abc9cd8a8 converted to ts 2022-02-16 20:14:02 +01:00
Miodec 2e27b7b4c6 converted to ts 2022-02-16 20:12:50 +01:00
Miodec bfceda9867 converted to ts 2022-02-16 19:43:38 +01:00
Miodec 30cd260512 converted to ts 2022-02-16 19:42:20 +01:00
Miodec 99e24a92a1 converted to ts 2022-02-16 19:39:20 +01:00
Rizwan Mustafa 9ae8611440
Frontend Typescript: Convert theme-picker.js to ts (#2509)
* Convert theme-picker.ts to typescript

* Renamed _ to _index and removed commented code

* Used const instead of let for themeColors
2022-02-16 12:44:12 +01:00
Miodec f9407f8263 converted to ts 2022-02-15 22:26:04 +01:00
Miodec 1c619b017e converted to ts 2022-02-15 22:20:33 +01:00
Miodec a95b34b35f removed module ts-ignores 2022-02-15 22:14:11 +01:00
Miodec 3b97455cfc converted do ts 2022-02-15 22:08:01 +01:00
Miodec da6100cae2 added mising type 2022-02-15 22:07:48 +01:00
Bruce Berrios 31b9530fe8
Fix typescript config (#2511)
* Fix typescript config

* Remove unneccssary declares

* updating colors if undefined

* using new function

Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-02-15 21:26:23 +01:00
Miodec ad1b3254af converted to ts 2022-02-15 17:08:12 +01:00
Miodec 77f9a484a5 fixed commands types 2022-02-15 17:08:05 +01:00
Miodec 6b2396ae55 converted to ts 2022-02-15 15:48:10 +01:00
Miodec ff9fad196d close callback is optional 2022-02-15 15:48:01 +01:00
Miodec 7e46f2090f using new function 2022-02-15 15:46:45 +01:00
Miodec ac8bd2fdcd converted to ts 2022-02-15 15:46:36 +01:00
Miodec dd866b0c53 added theme colors datatype 2022-02-15 15:46:22 +01:00
Miodec 116551de16 converted to ts 2022-02-15 15:40:26 +01:00
Miodec 2ab2c3530c converted psa to ts 2022-02-15 15:40:02 +01:00
Miodec 2769255a2b converted monkey power to ts 2022-02-15 15:39:52 +01:00
Miodec 4654a8d55f added psa data type 2022-02-15 15:39:40 +01:00
Miodec 79943a67d8 converted modes notice to ts 2022-02-15 15:26:45 +01:00
Miodec b3fe51c30b converted leaderboards to ts 2022-02-15 15:13:56 +01:00
Miodec 119956dfa3 added leaderboards structure 2022-02-15 15:13:29 +01:00
Miodec c42241c386 converted keymap to ts 2022-02-15 14:31:56 +01:00
Timothy Gibbons 8f22781b36
Added Poems (#2493)
* Added Poems

- "The Seal Lullaby" - William Carlos Williams
- "The Red Wheelbarrow" - Rudyard Kipling

* Added Poems

- "The Seal Lullaby" - William Carlos Williams
- "The Red Wheelbarrow" - Rudyard Kipling

* Fix ID

* Fix Grammar

* Added Full Stop
2022-02-15 14:06:46 +01:00
sombre-hombre 4609941e9c
Fixed typos in russian quotes (#2508) 2022-02-15 14:06:04 +01:00
Miodec c841c5f71e Merge branch 'master' of https://github.com/Miodec/monkeytype 2022-02-14 20:24:59 +01:00
Miodec 72d4cf576c fix for word count and time filters not working 2022-02-14 20:24:54 +01:00
Miodec 3e382a0bd2 added global 2022-02-14 20:23:10 +01:00
Rizwan Mustafa 15eab37068
Frontend Typescript: Convert language-picker.js to typescript (#2499)
* Moved LanguageGroup type to interface file

* Converted language-picker.js to typescript

* Commented language-picker stuff since moved to combo-box

* Replaced Types with MonkeyTypes
2022-02-14 19:13:12 +00:00
Miodec ed76a77397 fixed typo causing custom theme inputs to be broken
closes #2502
2022-02-14 19:38:59 +01:00
Miodec 994d1bc609 actually using the converted values 2022-02-14 17:01:43 +01:00
Miodec 03c2d1db50 converting to float just in case 2022-02-14 16:57:47 +01:00
Miodec 56821cd236 always showing language notice 2022-02-14 01:52:55 +01:00
Miodec fd2daf3c50 converted settings group to ts 2022-02-14 00:03:36 +01:00
Miodec daf6b53dc9 fixed custom background filter errors 2022-02-14 00:03:27 +01:00
Miodec 723cd10d5f ts fixes 2022-02-13 23:28:54 +01:00
Miodec 0550452b12 converted 2 files to ts 2022-02-13 23:26:41 +01:00
Bruce Berrios 546fc225e3
Remove quote (#2495) 2022-02-13 23:24:10 +01:00
Miodec 4d1e4c7f2f added another quote to input controller 2022-02-13 22:22:06 +01:00
Ferotiq d152eec6b5
MonkeyTypes > Types (#2491) 2022-02-13 20:29:09 +01:00
Ryan Zhang a9d2ff7314
New Quote: Python (#2490)
Bubble sort and Linear Search code from geeksforgeeks
2022-02-13 18:35:26 +01:00
Ferotiq 319e179600
TypeScript FrontEnd: Some Changes (#2486)
* some changes

* f*** you select2

* Change type roots

* hopefully work

* change commonjs to es6

* parserOptions.project

* as;dfllaksdkjsadadfsldkjsfkdljdsfafdsk;alfsdjf
2022-02-13 18:35:06 +01:00
Miodec c255f08126 fixed malayam text rendering. closes #2489 2022-02-13 16:30:23 +01:00
Miodec 4aa7947db0 updated personal bests type 2022-02-13 00:43:10 +01:00
Miodec 78944f69b2 moved dev dependencies 2022-02-13 00:30:35 +01:00
Miodec 97b77d7a0a removed loader ignores 2022-02-13 00:24:02 +01:00
Miodec 1d6882b47b removed notification ignores 2022-02-13 00:22:47 +01:00
Miodec e31a81d18d converted loader to ts 2022-02-13 00:17:07 +01:00
Miodec d20d9df5dc converted notifications to ts 2022-02-13 00:16:47 +01:00
Miodec 66997a1788 index to ts 2022-02-13 00:10:19 +01:00
Miodec 0101eb5d07 remoed ignore from converted modules 2022-02-13 00:05:46 +01:00
Ferotiq 37ce1f0af5
Make mode 2 generic (#2485) 2022-02-12 23:57:02 +01:00