monkeytype/frontend/static
Albert 67daa1d409
Custom mode pipe delimiter: section count mode (#4105) albertying, miodec
* Add section input

* Restore code

* Cleaner approach

* Correct current index

* Remove import

* Call punctuation, numbers, funboxes on all words in section

* Plus n adds n words instead of n sections

* Undo

* Fix normal test

* Replace word with section when delimiter is checked

* Restore

* Set progress to current section / section total

* Fix memory funbox

* Fix randomcase

* Fix text generation when random is not enabled

* no word limit if in random section mode

* instead of using a for loop, using a while loop and stopping dynamically

* handling getting next section
tracking section history to avoid repeating sections

* test

* Revert "test"

This reverts commit 50d20fff3d.

* allowing infinite

* fixed words not being added after the first word generation

* not checking section index if infinite word

* throwing if word contains a space (should never happen)

* removed/reverted old approach to this feature

* using input history everytime for now until a better solution is found

* removed unused import

* exporting section index and current section

* code used by the previous approach, most likely will be deleted

* revered a change this pr makes (idk why this was deleted)

* missing comment

* removed comment

* added section progress tracking
word generator now returns a list of section indexes, which is stored in test words module
this array is then used to determine which section the current word belongs to inside timer progress

* better errors

* replacing multiple spaces with one
replacing starting and trailing spaces before splitting

* fixed pipe delmiter non random custom text not working

* extracted logic into constants to make the if statement easier to understand and expand in the future

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-05-15 11:45:38 +02:00
..
.well-known updated email addresses 2023-02-14 00:22:37 +01:00
about added supporter 2023-04-16 14:29:43 +02:00
challenges fix: #4100 (#4221) D3press3dd 2023-04-26 11:36:58 +02:00
css locally hosting select2 2022-02-10 01:22:04 +01:00
fonts IBM Plex Mono Font (#4201) ibrab000 2023-04-21 17:23:19 +02:00
funbox Implemented an ITG arrow mode to the funbox (#4084) spiritaxolotl 2023-03-20 12:06:13 +01:00
html Custom mode pipe delimiter: section count mode (#4105) albertying, miodec 2023-05-15 11:45:38 +02:00
images added fulllogo 2023-01-31 01:59:40 +01:00
js Using date-fns instead of moment (#2707) 2022-03-15 19:34:50 +01:00
languages Language turkish 5k edit (#4259) 2023-05-05 13:45:22 +02:00
layouts updated arabic 102 2023-05-11 12:42:43 +02:00
quotes quote lengths 2023-05-15 11:13:29 +02:00
sound
themes Created Everblush theme (#4211) tuzu128 2023-04-24 16:05:11 +02:00
webfonts IBM Plex Mono Font (#4201) ibrab000 2023-04-21 17:23:19 +02:00
email-handler.html title fix 2023-05-01 11:38:29 +02:00
main.html moved links to bottom of body 2023-01-16 15:26:02 +01:00
manifest.json pwa support 2022-10-13 14:26:49 +02:00
privacy-policy.html title fix 2023-05-01 11:38:29 +02:00
robots.txt added sitemap link 2023-01-16 02:21:16 +01:00
security-policy.html title fix 2023-05-01 11:38:29 +02:00
sitemap.xml added sitemap 2023-01-16 01:48:48 +01:00
terms-of-service.html title fix 2023-05-01 11:38:29 +02:00