Commit graph

179 commits

Author SHA1 Message Date
Luna D.
e30a1922ed
convert misc scripts to ts 2024-06-23 19:59:38 +02:00
Liam
3129992108 Fix name of function 2024-06-23 11:31:10 -04:00
Luna D.
e23a4c541c convert burger menu logic to typescript 2024-06-23 11:22:38 -04:00
Liam
ee02fa131d Fix typos 2024-06-18 18:52:46 -04:00
Liam
d0771c7216 Add tests for clientside image filtering 2024-06-17 20:07:19 -04:00
Luna D
bbc1879a1e Convert clientside image filtering scripts to TypeScript 2024-06-15 20:17:45 -04:00
Luna D
97feb0ac00 Add version 4 TypeScript-based FP calculation 2024-06-13 10:24:39 -04:00
Luna D.
64492d8657 eslint 9 2024-06-12 21:35:04 -04:00
liamwhite
0f7c399b18
Merge pull request #286 from philomena-dev/ts-tags
Convert tag dropdown scripts to TypeScript
2024-06-12 00:10:51 -04:00
Liam
45df8a878e Use Record type for shortcut map too 2024-06-10 20:41:30 -04:00
Luna
4896857bc3 Convert tag dropdown scripts to TypeScript 2024-06-10 20:38:38 -04:00
Liam
922f2db583 Fix selector 2024-06-10 08:09:00 -04:00
Luna D
fe4698aedc Convert gallery rearrangement scripts to TypeScript 2024-06-09 21:49:56 -04:00
Luna D
9ea6fdfb39 Convert tagsmisc and sources scripts to TypeScript 2024-06-09 17:05:23 -04:00
Liam
0b0412786f Fix mismerge 2024-06-09 16:31:12 -04:00
Luna D
0bdbc2899e Convert miscellaneous scripts to TypeScript 2024-06-08 23:12:52 -04:00
liamwhite
85ab98c085
Merge pull request #277 from philomena-dev/ts-shortcuts
Convert keyboard shortcut scripts to TypeScript
2024-06-08 23:12:05 -04:00
liamwhite
41af2f1227
Merge pull request #279 from philomena-dev/no-owned-options
Remove long-obsolete owner options scripts
2024-06-08 23:05:45 -04:00
liamwhite
2dfacd6eac
Merge pull request #278 from philomena-dev/ts-staffhider
Convert staffhider to TypeScript
2024-06-08 23:05:36 -04:00
Luna D
924334de49 Convert keyboard shortcut scripts to TypeScript 2024-06-08 23:05:01 -04:00
Luna D
7a6015b549 Convert duplicate report comparison scripts to TypeScript 2024-06-08 20:45:13 -04:00
Luna D
b42c438dd0 Remove long-obsolete owner options scripts 2024-06-06 20:37:47 -04:00
Luna D
43fd14f0a8 Convert staffhider to TypeScript 2024-06-06 20:32:36 -04:00
KoloMl
0381409862 Lowercasing term before running the auto-completion on it 2024-06-03 21:42:58 +04:00
Liam
f44491685e Disable search completion by default, use setting to enable 2024-06-03 10:59:49 -04:00
KoloMl
8d2c082413 Disable server-side autocompletion when acSource is not set 2024-06-03 17:48:42 +04:00
KoloMl
1a7d59cb59 Added the local setting to disable auto-completion 2024-06-02 20:40:09 +04:00
KoloMl
7fa141bb54 Increased the suggestions count to 10 for search fields specifically
Default 5 entries feel not enough for search field
2024-06-02 19:59:06 +04:00
KoloMl
9dd26f2f87 Added separate property to control autocompletion mode
This is better than using hardcoded field name.
2024-06-02 19:58:01 +04:00
KoloMl
3f2e887aec Fixed issues marked by linter 2024-05-30 21:55:41 +04:00
KoloMl
f1aec2fd58 Close autocomplete window when selection moved outside active term by click 2024-05-30 01:37:35 +04:00
KoloMl
f31fcf86b3 Close the autocomplete window once user moved outside current term 2024-05-30 00:32:03 +04:00
KoloMl
8c988b002d Support search field autocompletion, enabled autocomplete for header 2024-05-29 23:57:36 +04:00
Liam
c0ddf55b48 Add lex stage with intermediate result generation 2024-05-28 23:32:48 -04:00
Eliot Partridge
65da36369d
Pause spoilered videos on image pages, unpause on unspoiler (#259)
* Pause spoilered videos on image pages, unpause on unspoiler

* Add test

* Fix comment
2024-05-14 21:32:45 -04:00
Eliot Partridge
377317a26b
Add local setting to enable audio on videos by default (#252)
* Add local setting to enable audio on videos by default

* Update copy

* Use ternary over `let`+`if`
2024-05-05 17:38:22 -04:00
Luna D.
70cde5d4b2
import mockinstance 2024-05-01 09:26:01 +02:00
David Joseph Guzsik
5643660806
Eliminate chai-dom and restore @testing-library/jest-dom (#244) 2024-04-30 18:20:14 -04:00
David Joseph Guzsik
2417f40d37
Switch jest unit tests to vitest (#243)
* Switch jest unit tests to vitest

* Cleanup vite config after debugging
2024-04-30 20:44:26 +02:00
Nighty
dd8c2c81d9
Vite HMR for JS/TS (and jankily for CSS) (#242)
* prelim work on vite reload

* the best solution to a problem is usually the easiest one
2024-04-30 13:13:46 -04:00
Nighty
42cd107b2a
Vite (#240)
* begin vite stuff (does not work yet)

* finalize vite switch + cleanup package.json

* Assets path, re-add async, fix z

* Remove source-map-support

---------

Co-authored-by: Liam <byteslice@airmail.cc>
2024-04-29 20:39:52 -04:00
Liam
089816845e Silence any lint on window.location mock 2024-04-22 18:45:42 -04:00
liamwhite
df2e336a24
upload: add pinning test (#231) 2024-04-22 18:43:36 -04:00
liamwhite
88a1131f35
input-duplicator: migrate to TypeScript (#230) 2024-04-22 18:43:27 -04:00
liamwhite
33a713310a
timeago: migrate to TypeScript (#226) 2024-04-16 08:02:12 -04:00
liamwhite
3cba72ec4c
ujs: migrate to TypeScript (#225)
* ujs: migrate to TypeScript

* Address review comments
2024-04-16 08:02:03 -04:00
Liam
394c23893c Fix leftover jsdoc 2024-04-15 20:36:57 -04:00
mdashlw
1f440475ed
fix sources block not updating properly after saving (#216) 2024-03-24 11:44:48 -04:00
mdashlw
921ad0c59a
Autocomplete fallback (#215)
* autocomplete: fallback to fetch if local returns no results

* fix: don't show autocomplete if by the time fetch is complete value had already changed

* autocomplete tag controller: lower images count req from 4 to 1
2024-03-24 11:38:23 -04:00
liamwhite
3590be1429
match_query: unit test and rewrite for TypeScript (#208)
* match_query: unit test and rewrite for TypeScript

* match_query: use new type for parse errors

* match_query: avoid exceptional control flow in date parsing
2024-03-18 08:20:47 -04:00