Commit graph

335 commits

Author SHA1 Message Date
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
Miodec 4f270b6a7d added zen 2022-02-12 23:44:12 +01:00
Miodec 7bf0a95195 added custom personal bests 2022-02-12 23:33:03 +01:00
Miodec c6c9408f55 updated type 2022-02-12 23:22:12 +01:00
Miodec 8421293f23 applying preset saves tag state 2022-02-12 22:51:07 +01:00
Miodec 5431a8eeba converted popups to typescript 2022-02-12 22:50:05 +01:00
Miodec a28c665bb0 typo 2022-02-12 22:49:52 +01:00
Miodec dc3d58e1c8 missing type 2022-02-12 22:41:43 +01:00
Miodec e2d7a19c08 missing type 2022-02-12 22:41:29 +01:00
Bruce Berrios eb2350bb1f
Move dependencies (#2483)
* Move dependencies

* Fixes

* Add stale pr action

* Update

* Fix cron schedule
2022-02-12 15:02:29 -05:00
Miodec 8b638e8a4a converted pages directory to typescript
part of #2431
2022-02-12 19:43:10 +01:00
Miodec 115eca71ca missing type 2022-02-12 19:16:00 +01:00
Miodec 50d71388f3 fixed type 2022-02-12 18:49:36 +01:00
Miodec 9329487bcb difficulty is required 2022-02-12 18:03:14 +01:00
Miodec b49e4b890b updated result type 2022-02-12 18:02:30 +01:00
Miodec 3a1de8d64f incorrect mode2 type 2022-02-12 17:51:57 +01:00
Miodec 632808bf23 converted custom text to ts 2022-02-12 17:49:29 +01:00
Miodec 695ddfac5e incorrect type definition 2022-02-12 17:46:54 +01:00
Miodec 8d8232ff4f added legacy parameters
incorrect tags type
missing optional "toolong"
2022-02-12 17:46:28 +01:00
Ferotiq dcbdca0990
Some fixes (#2478)
* Some fixes

* Add dep-graph script, fix keyboard icon not restarting test

* remove my keyboard icon fix, force ===

* Revert "remove my keyboard icon fix, force ==="

This reverts commit 481316a7da.

* revert page fix

* fix mio's smooth brain
2022-02-12 16:53:00 +01:00
Miodec f9edda5412 removed transpile step 2022-02-12 16:40:59 +01:00
Bruce Berrios 6a7f7b3b99
Webpack fix (#2481)
* fix webpack config

* Update prod config
2022-02-12 16:33:39 +01:00
Miodec 56c9f41fd0 using correct destination path 2022-02-12 16:27:49 +01:00
Miodec 202868269e renamed js folder to scripts
renamed sass folder to styles
moved types folder inside scripts
2022-02-12 16:25:53 +01:00
Miodec 71a929fbce moved types folder 2022-02-12 14:49:57 +01:00
Rizwan Mustafa 1877cc31e7
(Draft) Replace Browserify with Webpack (Draft) (#2461) by rizwanmustafa
* Replaced browserify with webpack

* Modified gulpfile and webpack config

* Removed attempts of using undefined variables and functions

* fixed some incorrect changes

* setfunbox fix

* Added fallback for crypto-browserify and stream-browserify

* added circular dependency detection

* Created production tasks for gulp and updated webpack config

* fixed circular dependency in misc

* not failing on circular dependency

* Removed unused imports

* Added babel loader and plugins to webpack

* Removed unused dependencies and removed babel's plugins

* Workaround for test logic import in random quote

* Created a separate webpack config file for production

* Changed relative paths to absolute ones in webpack

* Added colored output for circular import number

* Removed comment from .eslintrc.json

* Added eslint plugin to webpack

* Moved 'buffer' and 'stream-browserify' to devDependencies

* Started using promises in webpack tasks

* Removed unused dependencies

* Updated package-lock.json

* Removed eslint plugin from webpack and added circular dependency detection in dev config as well

* Removed unrelated changes

* Updated production build command

* Added ability for webpack to be run with typescript conversion of project in process

* added gulp typscript dev dependency

* using const

* modified console logs on circular imports

* missing dev dependency

Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-02-12 14:47:36 +01:00
Miodec ddaf20e771 removed function call 2022-02-12 14:12:20 +01:00
Miodec d07126f10e moved ignore down 2022-02-12 14:11:26 +01:00
Miodec ba3427f94b converted misc to ts 2022-02-12 14:10:54 +01:00
Miodec 41e14fe652 added moment 2022-02-12 14:07:19 +01:00
Miodec bb918ce3d1 let instead of var 2022-02-12 13:50:08 +01:00
Miodec 4ed3bef8da restarting test if keyboard icon or logo clicked
closes #2474
2022-02-12 13:45:54 +01:00
Miodec cb9a07e0c2 fixed theme buttons duplicating
closes #2477
2022-02-12 13:36:17 +01:00
Miodec 6e9e400748 missing import 2022-02-12 13:18:18 +01:00
Miodec dbe6aa1586 added missing imports
closes #2480
2022-02-12 13:15:24 +01:00
Rizwan Mustafa 2035883637
Frontend Typescript: Convert ui.js to typescript (#2479)
* Converted ui.js to typescript

* Replaced 'var' with 'let'
2022-02-12 13:07:15 +01:00
Miodec 4ed0075ad4 typo 2022-02-12 00:26:15 +01:00
Miodec a31d73a2b3 replaced vars with lets 2022-02-11 23:40:02 +01:00
Miodec bfdd86b7e8 missing return type 2022-02-11 23:39:28 +01:00
Miodec 63d9287a3a using one eslint config 2022-02-11 23:34:40 +01:00
Miodec 03ff40ca52 converted observables to ts
part of #2431
2022-02-11 22:50:32 +01:00
Miodec d1a25799f6 removed unused file 2022-02-11 22:36:10 +01:00
Miodec a480ba077b converted state files to typescript
part of #2431
2022-02-11 22:34:23 +01:00
Miodec b5996ef4e9 fixed zen mode not working 2022-02-11 22:14:32 +01:00
Miodec d2c88e26bc updating on the next event loop 2022-02-11 22:07:56 +01:00
Miodec 5d8ef4ac09 added click handler to update account page 2022-02-11 22:06:32 +01:00
Miodec 751c7992bc removed console log 2022-02-11 21:53:45 +01:00
Miodec ad530b751f hiding keymap 2022-02-11 21:42:59 +01:00
arda-a 1cce0a1dc6
bugfix: double 'k' on whorfmax layouts are fixed (#2473) 2022-02-11 21:42:35 +01:00
Miodec 26f55816b8 fixed funbox button highlighting
disabled config event when intialising groups
2022-02-11 21:34:20 +01:00
Miodec 1f5500f4bf removed console log 2022-02-11 21:21:19 +01:00
Miodec a8227b0134 reworked how funbox is applied
removes circular dependency
closes #2462
2022-02-11 21:15:43 +01:00
Miodec 5619f9a5ae replaced undefined with false 2022-02-11 20:36:11 +01:00
Miodec 8bffd349e1 added new function to clear funbox 2022-02-11 20:34:32 +01:00
Miodec b49d490cc1 removed dependency by moving code
part of #2462
2022-02-11 20:14:20 +01:00
Miodec 2a4ecba9bf moved active challenge to test state
fixes 1 circular dependency
part of #2462
2022-02-11 20:07:30 +01:00
Miodec eb49521132 missing update 2022-02-11 20:00:45 +01:00
Miodec ef8948578a unnecessary function call
fixes 1 circular dependency
part of #2462
2022-02-11 19:58:08 +01:00
Miodec 77b835a023 moved get data function to account controller
fixes 2 circular dependencies
part of #2462
2022-02-11 19:56:06 +01:00
Miodec a5e678d291 removed comment 2022-02-11 19:49:17 +01:00
Miodec 16ebc21ebd removed unnecessary code 2022-02-11 19:48:46 +01:00
Miodec baf45b00bd fixed 1 circular dependency
part of #2462
2022-02-11 19:42:30 +01:00
Rizwan Mustafa 66194e6220
Fixed circular dependency between practice-words and test-logic (#2472)
* Fixed circular dependency

* Fixed circular dependency between test-logic and practice-words
2022-02-11 19:24:52 +01:00
Miodec 6a2060106c converted focus to ts 2022-02-11 19:15:44 +01:00
Sondre Kjempekjenn 26c57d2ad3
Compile both JS and TS (#2464) by sondrekje
* Compile both JS and TS

Builds upon Ferotiq's PR

* Compile both JS and TS

Builds upon Ferotiq's PR

Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-02-11 19:02:21 +01:00
Miodec db1aef58cc fix 2022-02-11 18:37:07 +01:00
Rizwan Mustafa fe5d9de742
Fixed circular dependency (#2471) 2022-02-11 18:36:20 +01:00
Miodec 075000d554 disabling config event from commandline 2022-02-11 18:15:20 +01:00
Miodec 8542dcc9b8 added variable to disable config event
fixes lag when applying config
2022-02-11 18:11:04 +01:00
Miodec c8b3852739 reacting to every config event if active page is settings 2022-02-11 17:29:45 +01:00
Miodec 10879ce852 removed document ready when subscribing to events 2022-02-11 17:27:12 +01:00
Miodec 2b6adfd46a added timer event
removes 1 circular dependency
part of #2462
2022-02-11 17:08:07 +01:00
Miodec 913bed3352 removed dependency by moving function to another module
part of #2462
2022-02-11 17:05:01 +01:00
Miodec c55d3318f4 dispatching configApplied event
removes dependency
fixes 2 circular dependencies
part of #2462
2022-02-11 16:55:10 +01:00
Miodec fe38315f24 moved config event into its own module
part of #2462
2022-02-11 16:51:23 +01:00
Miodec 3a3558ef17 added page transition state module
fixes 6 circular dependencies
part of #2462
2022-02-11 16:30:22 +01:00
Miodec 2878fb03e0 removed dependency by moving click handlers
part of #2462
2022-02-11 16:23:03 +01:00
Miodec 58ac17fa1e moved glarses into its own state module
fixes 1 circular dependency
part of #2462
2022-02-11 16:21:17 +01:00
Miodec 8b6e52e721 removed dependency by moving click handler
fixes 1 circular dependency
part of #2462
2022-02-11 16:17:13 +01:00
Miodec 8916573d87 removed dependencies by moving click handlers
part of #2462
2022-02-11 16:15:19 +01:00
Miodec c00730386e awaiting before show 2022-02-11 16:11:23 +01:00
Miodec 9314409646 updating on button press 2022-02-11 16:11:13 +01:00
Miodec 10f04fa402 moved settings tip update 2022-02-11 16:10:16 +01:00
Miodec d5aa5001d0 completely reworked how page controller works
page change is now generic and pages store their own callback functions
active page now stores page name instead of element name
adds 1 circular dependency. rip
part of #2462
2022-02-11 15:59:20 +01:00
Miodec 833059b18f removed dependency
fixes 1 circular dependency
part of #2462
2022-02-11 14:13:24 +01:00
Miodec 53f494f37e moved click handler
fixes 1 circular dependency
part of #2462
2022-02-11 14:08:19 +01:00
Miodec 457117a03c moved click handler
removes 1 circular dependency
part of #2462
2022-02-11 14:04:39 +01:00
Miodec a2558bfc9e removed dependency by moving click handler
part of #2462
2022-02-11 14:03:46 +01:00
Miodec 51ec0ffec8 removed dependency by moving click handler
part of #2462
2022-02-11 14:02:29 +01:00
Miodec b0bc26c90c removed dependency by moving click handler
part of #2462
2022-02-11 14:01:08 +01:00
Miodec bf3ad6be2a removed dependency by moving code to a different module
part of #2462
2022-02-11 13:59:28 +01:00
Miodec 23823527e8 moved modes notice into its own module 2022-02-11 13:54:38 +01:00
Miodec 8fd7e508cf added test state
part of #2462
2022-02-11 13:47:34 +01:00
Miodec c8139ae13d added page controller
part of #2462
2022-02-11 13:34:26 +01:00
Miodec 1c8337fdf7 moved bailout to another module
fixes 1 circular dependency
part of #2462
2022-02-11 13:24:03 +01:00
Miodec 5103ef1b26 moved wpm raw and burst history to another module
removes some dependencies
2022-02-11 13:18:52 +01:00
Miodec 788897fcf2 removed dependencies by moving click handlers
part of #2462
2022-02-11 13:09:53 +01:00
Miodec c0c0bccc7b only uglifying when building for deployment 2022-02-11 12:46:19 +01:00
Miodec 7ddd3c216e fixed indicate typos replace causing funky behaviour with stop on error 2022-02-11 01:56:35 +01:00
Miodec aab8792cee added escape handlers to popups 2022-02-11 01:53:27 +01:00
Miodec 825a8e2732 removed dependencies
commandline no longer is responsible for closing popups on escape
each popup should handle this in their own module
if a popup is visible commandline keypress handler just stops
fixes 3 circular dependencies
part of #2462
2022-02-11 01:50:00 +01:00
Miodec fe8f8e6851 added popup wrapper to leaderboard 2022-02-11 01:46:06 +01:00
Miodec 1f82d9dff1 removed dependency by moving code 2022-02-11 01:40:08 +01:00
Miodec 7b599a2465 removed dependencies 2022-02-11 01:38:43 +01:00
Miodec a5e842fe91 removed dependency by moving click handlers 2022-02-11 01:34:56 +01:00
Miodec 89221dd325 removed dependencies
fixes 1 circular dependency
part of #2462
2022-02-11 01:22:14 +01:00