Commit graph

10441 commits

Author SHA1 Message Date
Miodec
04e277438c chore: fix newverisonindicator opening version history modal 2024-03-13 00:29:53 +01:00
Miodec
c1c0f45708 refactor(version history modal): use new modal system 2024-03-13 00:27:51 +01:00
Miodec
a172225510 refactor(cookie modal): rename file, move file, use setup function, style update 2024-03-13 00:16:48 +01:00
Miodec
cadf6502ef chore: remove unused import 2024-03-13 00:15:50 +01:00
Miodec
bbb2644d87 chore: unnecessary code
words will get focused when restarting the test
2024-03-13 00:01:38 +01:00
Miodec
b2d10e0dc5 refactor(import export modal): use setup function, move file, style 2024-03-12 23:46:40 +01:00
Miodec
09e9556ae6 refactor(register captcha): use new modal system 2024-03-12 23:39:43 +01:00
Christian Fehmer
7d3c4be04d
impr(language): update estonian word sets (Ksaspar, fehmer) (#5222) 2024-03-12 23:11:34 +01:00
Miodec
9390206082 refactor(animated modal): add animation duration property 2024-03-12 16:48:21 +01:00
Miodec
5400d06887 chore: remove throw 2024-03-12 16:45:01 +01:00
Miodec
0a401917b3 refactor(share custom url modal): use new modal system 2024-03-12 16:41:24 +01:00
Miodec
3e8fbb7d4b refactor: use try/catch 2024-03-12 15:37:33 +01:00
Miodec
3f2cfca361 chore: stop show if already open 2024-03-12 15:34:51 +01:00
Miodec
e1878b91d2 chore: remove unnecessary event handler 2024-03-12 15:28:15 +01:00
Miodec
705c984c6d chore: release v24.11.1 2024-03-12 15:09:41 +01:00
kelvine
c906641d36
docs: corrected grammar in about.html (#5194)
* corrected grammar in about.html

I made grammar corrections as what was there wasn't sounding right

* Update about.html
2024-03-12 14:35:55 +01:00
MordecaiO
33b08517f4
impr(quotes): add english quote (MordecaiO) (#5215)
* impr(quotes): add one english quote

* chore: correct char length

* double quotes, remove first quotes, capitalisation

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-03-12 12:11:59 +01:00
Christian Fehmer
9432602727
impr: add selfhosting using docker only (fehmer) (#5170)
* impr: add selfhosting using docker only

* add recaptcha config and docs

* add documentation on the backend-configuration.json file, remove ---redacted--- from example config

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-03-12 12:02:13 +01:00
Christian Fehmer
b31dba6b7a
feat(language): add klingon (fehmer) (#5201)
* lang: add klingon

* cleanup
2024-03-12 11:58:41 +01:00
Miodec
f91d6d7e6b chore: quote lengths script 2024-03-11 22:32:40 +01:00
Miodec
9a4a3eab23 fix(quote): user reports 2024-03-11 22:31:25 +01:00
Mikhail Ivanov
720d0f4468
fix(language): remove capital letters in russian_10k.json (zaqzxcswsde) (#5202)
While it's correct for the words "Москва" and "Россия" to be capitalized, they seem out of place being that way among ~10k lowercase words.
2024-03-11 20:54:45 +01:00
Exploration
ab5c130b59
impr(quotes): add English quotes (TheExploration) (#5190)
* impr(quotes): add English quotes

* fix
2024-03-11 20:44:54 +01:00
Christian Fehmer
f63f3184a7
feat: add ook coding language (fehmer) (#5203) 2024-03-11 20:34:45 +01:00
github-actions[bot]
d224a80658
refactor: run prettier (#5205)
Co-authored-by: monkeytypegeorge <monkeytypegeorge@gmail.com>
2024-03-11 20:33:28 +01:00
Christian Fehmer
8eb3206c8a
refactor: get actual rank with the user data instead of using lbmemory (fehmer) (#5189)
Co-authored-by: Jack <jack@monkeytype.com>
2024-03-11 20:29:18 +01:00
Martin Trigaux
1bb0bdffb0
fix(server): config saving with layout that includes a dash (mart-e) (#5193)
* [FIX] Accept layout with dash

At least seht-drai and ergo-l is not compatible

* add regex

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-03-11 20:17:10 +01:00
Sanidhya Singh
9aeaa31d2c
impr: replace JSONSchema with ajv for faster validation (sanidhyas3s) (#5145)
* impr: replace JSONSchema with ajv for faster validation

* Remove JSONSchema from packages

* Add ajv in dev-dependencies

* move dep to frontend

* Fix validation schema for different languages and error messages

* fix double space

* different way of showing errors

* por que no los dos

* return on failed schema

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-03-11 20:00:10 +01:00
Miodec
ff14fc74d3 chore: release v24.11.0 2024-03-11 17:40:47 +01:00
Miodec
fcbc00b671 refactor(share custom theme): use new modal system 2024-03-09 00:20:13 +01:00
Miodec
bc6cf223cf refactor(contact popup): use new modal system 2024-03-09 00:20:13 +01:00
Miodec
2285c05f62 chore: add missing import 2024-03-09 00:20:13 +01:00
Miodec
7bdcbbfc8a refactor: move modal inside modalwrapper 2024-03-09 00:20:13 +01:00
Miodec
4b3c9f2308 fix(about page): ad wrappers always visible even if ads are disabled 2024-03-09 00:20:13 +01:00
Christian Fehmer
c4446e9fb0
fix: prevent print dialog to open with ctrl-shift-p (#5199) 2024-03-08 11:14:48 +01:00
Miodec
8ca760dfd2 fix(caching): no longer caching external resources locally
closes #5196
2024-03-07 22:08:29 +01:00
Miodec
4eed9074ff refactor: remove unnecessary file 2024-03-07 21:44:55 +01:00
Miodec
491337217b refactor: move converted modals to a new folder, rename supportpopup to supportmodal 2024-03-07 21:41:18 +01:00
Miodec
9f5be14a13 refactor: move animated modal to utils folder 2024-03-07 21:35:45 +01:00
Miodec
f46813c958 refactor: remove unnecessary import 2024-03-07 21:31:59 +01:00
Miodec
b30c2b54a2 style: lower padding on smaller screens 2024-03-07 21:30:54 +01:00
Miodec
a808577940 refactor: prefer modalWrapper instead of backdrop 2024-03-07 21:28:31 +01:00
Miodec
60f3958cdf refactor(support popup): use new modal system 2024-03-07 21:24:37 +01:00
Miodec
b8b844bb16 refactor: remove unused code 2024-03-07 21:22:41 +01:00
Miodec
40aa1e61f8 impr: add option to pass modal show settings through the show commandline function 2024-03-07 21:15:18 +01:00
Miodec
41cb95b43e refactor: move events to the top 2024-03-06 00:01:31 +01:00
Jack
3c4212b718
refactor: commandline (#5180)
* initial rewrite

* remove title

* remove from dom on hide

* actual command dom
show active
keep active in view
update active index on keypress

* global event only shows commandline

* impr(dev): showing notifications with unhandled errors

* rename functions

* handle hover functions
handle nesting
handle exec
attaching handlers once

* void promise

* no need for async

* move font preview to ui

* add configkey to command

* add function to build single list

* add mouse mode
clearing preview on hide
add config icon

* using new function

* use fw icon

* fix incorrect type

* extract logic

* add support for input commands

* unused error

* update single list

* chevron icon margin

* only focusing when no popups and words are visible

* extract condition

* better type

* remove no icon

* only showing when nothing is already visible

* commandline lists no longer modify the commandline element
dynamically changing which funbox commnands are available
modified searching approach
showing active settings in single mode again
calling before list if needed

* ignore keydown on page transition

* add other ways to show the commandline

* always clearing previews

* incorrect icon being used

* extract logic

* support quick single list mode by starting input with >

* fix test words not being focused

* showing all if in quick single mode

* remove unused code

* rename entry to command

* remove more unused code

* add data- prefix

* rename to data-command-id

* fix input commands not refocusing words

* fix fontsize change not working as intended

* set active index to 0 when going back

* keeping active command in view

* remove console logs

* fix quick single mode

* move file

* add footer events

* add option for subgroup override
fix issue where commands would get hidden after clearing input field
fixed auto scrolling in mouse mode

* rename commands to lists

* add background after to avoid flashing

* getting config key from active subgroup

* updating active command after removing hidden class but before animating

* fix nasty hover behavior

* updating active before animation showing, keeping active after

* add keymap event

* remove comments

* invert if, use return, combine ifs to reduce nesting

* add test event

* popups events

* fix some commands not showing up on a single list

* use new animated modal

* use regex escaping function from misc

* add singlelistdisplay and singlelistdisplaynoicon properties

* add more navigation aliases

* not adding alias if not needed

* rework command filtering

* fix active icon not working

* add custom hide handlers

* fix active command not being kept in view after showing

* unused imports

* remove commandlinelists imports from other files

* delete old file

* remove unused file

* import commandline dynamically

* fix: if skeleton has wrapper, append before building animated modal

* using new parameters

* save skeleton on ready

* rename folder

* add util to get async modules

* remove empty imports

* remove unnecessary code

* unnecessary void

* catching errors and notifying user

* better error message

* making sure all the lists are fetched before getting the single command list

* add tab navigation
2024-03-05 19:34:35 +01:00
Miodec
226f5de472 fix(quote): missing dash 2024-03-05 18:32:49 +01:00
Christian Fehmer
c95e3b2fa8
feat: indicate premium users (fehmer) (#5092)
* feat: indicate premium users

* frontend

* Test multiple userFlags, remove later

* cleanup

* fix flag alignment on profile and leaderboards

* fix name auto scaling

* update screenshot watermark

* update header text

* use userFlags for lbOptOut

* use flex end

* removeo unused code, increase margin

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-03-05 16:09:23 +01:00
Miodec
7e957fb449 chore: fix eslint issue 2024-03-05 11:46:00 +01:00