Commit graph

561 commits

Author SHA1 Message Date
Miodec
6f67db0788 fixed page not changing to account after sign up
closes #2568
2022-02-23 13:29:57 +01:00
Miodec
34e1255cf9 fixed sticky banners media query not removing right icon 2022-02-23 13:19:19 +01:00
Ferotiq
bf281d9ba7
Update english.json (#2572) 2022-02-23 00:50:53 +01:00
Miodec
8dce406786 showing banner if server under maintenance
closes #2569
2022-02-22 21:31:52 +01:00
Vi Mio
e53c2418e6
Add Blue Dolphin theme (#2560)
* add blue dolphin theme

* update _list.json
2022-02-22 20:56:05 +01:00
Bruce Berrios
f9d6f52c15
Api overhaul (#2555) by Bruception
* Feat:Update response structure (#2427)

* Fix:response and error structure

* update:response message

* update:response class

* update

* Update response message

Co-authored-by: Mustafiz Kaifee Mumtaz <mustafiz.mumtaz@freecharge.com>

* Add MonkeyToken foundation (#2487) by Bruception

* Api changes (#2492)

* API changes

* Remove unused import

* Add Ape client (#2513)

* Add all endpoints (#2514)

* Merged backend typescript into api overhaul (#2515)

* Install typescript and add backend tsconfig

Cannot yet build due to a number of compilation errors in JS code

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Fix typescript compilation errors

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Migrated backend to ES modules

Switched to import export syntax

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Add typescript declaration for anticheat

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Rename top level files to .ts

Fix service account json file typing

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Add dev build scripts for backend typescript

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Removed empty lines and switched to using db

Cleaned up imports by removing needless empty lines and migrated to the new db.js instead of mongodb.js.

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Fixed backend commonjs syntax to ES module syntax

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Add build to backend start script

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Migrate some endpoints to Ape

* Strict equals

* Remove artifact

* ape -> Ape

* Ape migration p2 (#2522)

* Migrate leaderboard endpoints to ape

* Fixed comment

* Init backend types

* Fail

* Return

* Migrate Quotes to Ape (#2528)

* Migrate quotes to Ape

* Fix backend response

* Fix issue

* Fix rate limit (#2533)

* fix rate limit

* Fix import

* Fix issues

* Ape migration p4 (#2547)

* Migrate results endpoints to ape

* Remove unused import

* Remove unused import

* Fix loaders

* Make function async

* Hide try saving results

* Migrate some users endpoints to Ape (#2548)

* Complete Ape Migration (#2553)

* Complete ape migration

* Fix preset

* Return preset data

* Add typings

* Move captcha reset

* Read from params

* Fix result tags endpoint

* Fix stuck loader

* fixed lb memory not saving

* fixed quote rating popup not showing up for new users

Co-authored-by: Mustafiz Kaifee <49086821+Mustafiz04@users.noreply.github.com>
Co-authored-by: Mustafiz Kaifee Mumtaz <mustafiz.mumtaz@freecharge.com>
Co-authored-by: Brian Evans <53117772+mrbrianevans@users.noreply.github.com>
Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-02-22 20:55:48 +01:00
Miodec
9eb4e6ac86 not saving signed out result if failed
fixes #2564
2022-02-22 18:50:13 +01:00
Miodec
d3b4bf9f1b Merge branch 'master' of https://github.com/Miodec/monkeytype 2022-02-22 18:40:46 +01:00
Miodec
2b5033ac1f removed evals completely 2022-02-22 18:35:59 +01:00
Miodec
10be208f0a not using evals 2022-02-22 18:11:53 +01:00
Souren Papazian
8d430b666c
Add western armenian language (#2556) 2022-02-22 14:35:41 +01:00
Angelo Fallaria
06ed2d4ddd
feat(language): add more words to code_rust.json (#2563) 2022-02-22 14:33:26 +01:00
Ferotiq
c0f2a066ff
Warn users on edge about disabling efficiency mode (#2562)
* add edge message

* Update test-timer.js

* Update test-timer.js
2022-02-22 14:12:48 +01:00
Miodec
eb5bdc8712 optional 2022-02-21 21:19:53 +01:00
Miodec
1113b878a6 updated message 2022-02-21 14:45:56 +01:00
Miodec
58a78d4496 fixed type 2022-02-21 14:34:40 +01:00
Miodec
9c6f678748 fixed type 2022-02-21 14:34:28 +01:00
Miodec
47af9c25dc fixed incorrect type 2022-02-21 14:26:51 +01:00
Miodec
4622f1522d parsing to int first 2022-02-21 14:21:12 +01:00
Miodec
88a35c3d7c using parse float instead (im stupid) 2022-02-21 14:13:16 +01:00
Miodec
9996d90e42 parsing to int 2022-02-21 14:06:54 +01:00
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
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