Commit graph

260 commits

Author SHA1 Message Date
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
Luna D.
f659023649
stylelint 2024-05-20 21:25:43 +02: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
Luna D.
f04666037c
progress today 2024-05-07 19:33:56 +02:00
Luna D.
0de3d98c82
Merge remote-tracking branch 'origin/master' into redesign 2024-05-06 22:18:48 +02: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
Luna D.
6e6fa20e83
import mockinstance 2024-05-01 00:15:06 +02:00
Luna D.
0e8f30abf2
Merge remote-tracking branch 'origin/master' into redesign 2024-04-30 21:27:42 +02: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
Luna D.
aa299de329
Merge remote-tracking branch 'origin/master' into redesign 2024-04-30 19:15:10 +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
Luna D.
5aad931ba7
switch from scss/sass to plain css with postcss plugins 2024-04-30 12:16:09 +02:00
Luna D.
4b3221a590
Merge remote-tracking branch 'origin/master' into redesign 2024-04-30 09:17:43 +02: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
Luna D.
db237a9853
Merge remote-tracking branch 'origin/master' into redesign 2024-04-28 13:11:39 +02: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
Luna D.
bec260fffb
Merge branch 'master' into redesign 2024-04-17 11:54:47 +02: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
Liam
07d326b5bd Remove unused cable import 2024-03-17 16:13:19 -04:00
Liam
a608ff4af8 Add assertion utilities 2024-03-17 16:12:50 -04:00
Liam
1f69cee296 Remove JS polyfills
These are no longer needed on any browser we support.
2024-03-04 21:54:09 -05:00
Liam
49e94afa1e Fix subscription targets 2024-03-03 00:31:06 -05:00
Luna D
b872cb8db8
restart redesign from latest master 2023-11-23 17:07:49 +01:00
mdashlw
1918e92c30
Fix setting source url in uploader after fetch (#195) 2023-10-12 09:14:30 -04:00
mdashlw
9af22bbde4
Fix my:faves, my:upvotes, my:downvotes in complex filters (#193) 2023-10-07 11:07:27 -04:00
Meow
a569008267
Merge pull request #143 from philomena-dev/sources
Multiple sources
2023-05-29 11:16:32 +02:00
Luna D
a771fb1213
check if value is null in tag store validity check 2023-05-29 11:06:39 +02:00
Luna D
b70c0a11f6
merging sources, fix ui bugs, more icons 2023-05-28 18:12:53 +02:00
Luna D
516b35f2fd
added spec coverage for disableEl/enableEl 2023-05-28 16:21:57 +02:00
SeinopSys
880d27ac1e
revert unintended code formatting changes 2023-05-28 16:21:55 +02:00
SeinopSys
a4b85feadc
implement UI for multiple image sources editing 2023-05-28 16:21:33 +02:00
Luna D
417bb79add
fix build 2023-05-18 14:40:24 +02:00
SeinopSys
9c8b6b8931
replace wrapper function with delegate in draggable utils 2023-05-18 12:53:23 +02:00
SeinopSys
efa5092502
remove unused insertBefore function from dom utils 2023-05-18 12:53:23 +02:00
SeinopSys
87f37ab8d4
adjustments based on PR comments 2023-05-18 12:53:22 +02:00
SeinopSys
aade85a0ff
fix coverage for tag utils 2023-05-18 12:53:22 +02:00
SeinopSys
8ca4a99a1c
fix coverage for image utils 2023-05-18 12:53:22 +02:00
SeinopSys
dc2037ee75
fix coverage for draggable utils 2023-05-18 12:53:22 +02:00
SeinopSys
a9de6e2d66
fix coverage for dom utils 2023-05-18 12:52:17 +02:00
SeinopSys
445b31bbd7
convert image utils to typescript 2023-05-18 12:50:20 +02:00
SeinopSys
7f7228631d
convert store utils to typescript 2023-05-18 12:50:19 +02:00
SeinopSys
2b4ed32233
convert request utils to typescript 2023-05-18 12:50:19 +02:00
SeinopSys
cccbcd041f
convert local autocompleter to typescript 2023-05-18 12:50:19 +02:00
SeinopSys
6d85535abd
convert event utils to typescript 2023-05-18 12:50:19 +02:00
SeinopSys
7f744a2a46
convert draggable utils to typescript 2023-05-18 12:50:19 +02:00
SeinopSys
0628eb0c23
convert array, dom and tag utils to typescript 2023-05-18 12:50:16 +02:00
byte[]
3a2492160e Bust clientside caches 2023-03-30 09:45:14 -04:00
byte[]
145ee74c69 Fix embedded image views for small images 2023-03-29 10:59:28 -04:00
byte[]
44e592e382 increase precedence of escape matching in match_query 2023-02-25 20:25:32 -05:00
Luna D
30f78e003a
fix lint? 2023-02-18 22:29:19 +01:00
Luna D
dce3ccb430
make js linter happy 2022-03-24 19:07:51 +01:00
Luna D
26deaaf588
approval queue stuff 2022-03-24 18:44:39 +01:00
David Joseph Guzsik
997d6e0cb5
Add JS utility unit tests with Jest (#144) 2022-01-31 14:28:38 -05:00
byte[]
ce5405c670 Allow disabling of tag suggestion filtering 2022-01-20 17:37:05 -05:00
byte[]
5c7bc65a47 Associations off by one 2021-12-29 22:15:14 -05:00
byte[]
cf80b6a63b offset negative index by 1 2021-12-29 21:13:39 -05:00
byte[]
eb80be2a5b Bust caches 2021-12-29 20:10:47 -05:00
byte[]
b06647838d Fix alias handling 2021-12-29 20:08:41 -05:00
byte[]
a60fe1c48c Fixed implementation 2021-12-29 19:52:15 -05:00
byte[]
25e9739383 Handle aliases, names in namespace 2021-12-27 18:19:08 -05:00
liamwhite
dadc2f1585
Local autocomplete (#151) 2021-12-26 19:16:21 -05:00
byte[]
8da6cab713 Correct fix for abort prompt 2021-12-26 09:57:59 -05:00
byte[]
4e7d1988ee Confirm batch tag abort 2021-12-15 19:12:05 -05:00
byte[]
227bec0a0b Fix invocation error 2021-11-16 20:21:12 -05:00
byte[]
d43ae04c1c Be more careful about caching the input query for autocomplete 2021-10-25 21:18:07 -04:00
byte[]
fbae2a9185 Propagate MIME type information (for SVG upload previews) 2021-10-18 22:16:33 -04:00
David Joseph Guzsik
77e689e29a
Integrate Eslint and TypeScript into build & linting process (#142) 2021-10-09 15:58:07 -04:00
liamwhite
10fc962da6
Video upload previews (#141) 2021-10-05 21:31:50 -04:00
SeinopSys
ea96900707
add spaces at end of lines which only contain blockquote markers 2021-10-03 20:08:14 +02:00
Luna D
f971a20c44
use better-support jshite 2021-10-01 16:11:28 +02:00
Luna D
6dc5bbe7ac
fix reply and quote btns 2021-10-01 16:03:42 +02:00
SeinopSys
2bb86c9e3b
fix typing in markdown input causing page scroll position changes 2021-10-01 00:58:00 +02:00
SeinopSys
f61cc6d0be
revert split editor styling, update markdown toolbar buttons' behavior 2021-09-30 21:11:48 +02:00
SeinopSys
b8aa9b2c9c
eliminate obsolete workarounds from markdown toolbar, update escape regex 2021-09-30 21:11:48 +02:00
SeinopSys
9ac7abdf54
fix code formatting 2021-09-30 21:11:48 +02:00
SeinopSys
71fa95e462
initial implementation of markdown-based text editor 2021-09-30 21:11:48 +02:00
liamwhite
e9fc4d28fb
Webpack 5 (#140) 2021-09-29 12:31:41 -04:00
byte[]
4184e94219 fix unintentional global usage in tagsinput 2021-09-09 22:57:29 -04:00
yoditax
63bb8285d9
Reverted behavior on 'O' shortcut to open image in same tab (#101)
Co-authored-by: yoditax@net.com <yoditax@net.com>
2021-03-03 10:20:52 -05:00
byte[]
7fa9cd56f6 add mass selection to tag changes reversion (derpibooru/philomena#239) 2021-03-01 12:09:41 -05:00
byte[]
fad734b50c fix extra markup surrounding empty lines in textile toolbar 2021-02-25 15:03:39 -05:00
Erhannis
21dcd0c9df In upload, in url field, fetch when 'enter' key (#55) 2021-02-20 14:24:39 -05:00
byte[]
f6c8d57bdf fix autocomplete and fetch controller paths 2021-02-09 17:37:54 -05:00
stsyn
396ecafa6c
Use even larger thumb if normal size is medium already (#92) 2021-01-16 16:40:28 -05:00
byte[]
2e8a5e92c9 add score-hiding snip per request 2020-12-16 09:35:58 -05:00
byte[]
daaf2f5883 missing declarations for previous 2020-12-10 01:38:12 -05:00
byte[]
214173095c since you asked so nicely 2020-12-10 01:30:41 -05:00
byte[]
0cf48f0eab preserve vote/fave status on navigation (fixes philomena-dev/philomena#82) 2020-12-09 00:04:37 -05:00
byte[]
5c51775f94 Revert "automatically apply system-wide theme preference for anonymous users (fixes philomena-dev/philomena#36)"
This reverts commit edcd4ebfde.
2020-12-08 00:21:44 -05:00
byte[]
edcd4ebfde automatically apply system-wide theme preference for anonymous users (fixes philomena-dev/philomena#36) 2020-12-06 13:04:54 -05:00
byte[]
7803050666 don't interfere with media controls (fixes philomena-dev/philomena#77) 2020-12-02 19:19:37 -05:00
byte[]
aaf04544b6 add tag_count to supported clientside fields (fixes philomena-dev/philomena#78) 2020-12-02 18:31:15 -05:00
Parasprite
a244b8d322 Updates user link to artist link (code side)
make user link


Update structure for artist links


bap
2020-11-26 15:30:17 -05:00
yoditax
e45cbc00c8
Added new shortcut to open full images 'V'. Changed behavior to open new tab (#68)
Co-authored-by: yoditax@net.com <yoditax@net.com>
2020-11-24 14:58:30 -05:00
byte[]
0036da2b5e automatically bracket inline textile formatting when required (fixes derpibooru/philomena#225, furbooru/philomena#49) 2020-11-15 21:37:49 -05:00
Luna D
60b2c01a71
allow < in tag input (fixes philomena-dev/philomena#35 2020-10-21 19:17:24 +02:00
stsyn
4a61a0d213
quotes are fine, undoing as well 2020-10-21 19:09:11 +02:00
stsyn
995ca3bc3c
Fixed wrong negation
if search term has parentheses and in parentheses by itself
2020-10-21 19:09:04 +02:00
stsyn
4d96843286
Update match_query.js
fix quoting
fix not operand loss
2020-10-21 19:08:52 +02:00
byte[]
a00cdab739 improve ajax error messages 2020-09-27 23:53:14 -04:00
byte[]
d76f1d6fdb ensure inputs to be reenabled have an enable-with attribute 2020-09-15 13:47:30 -04:00
byte[]
50da6c7f3c add quick tag button to toggle all 2020-09-14 23:30:48 -04:00
byte[]
074453ddf1 allow removing existing tag with -tag, ctrl+enter for form submission, disable autocomplete on tag editor 2020-09-14 22:00:44 -04:00
byte[]
d03b5a2c82 add shortcut to open full image (furbooru/philomena#32) 2020-09-14 21:35:28 -04:00
byte[]
6de4ad3ac4 ensure disabled form inputs are reset after browser navigation 2020-09-14 20:53:11 -04:00
liamwhite
653fd0a4af
hCaptcha (#19) 2020-09-12 13:43:16 -04:00
byte[]
7ca2c44a5e fix downvote spoiler regression 2020-09-11 21:30:04 -04:00
byte[]
912e64559b don't autocomplete on mouseover (furbooru/philomena#15) 2020-09-10 03:04:47 -04:00
byte[]
67832f623a place webm url first 2020-09-06 13:12:26 -04:00
byte[]
1e6cef6092 require confirmation for navigation away from image upload form (derpibooru/philomena#164) 2020-08-11 01:43:19 -04:00
byte[]
a81464f189 fix link to sign in page 2020-08-01 19:04:48 -04:00
byte[]
49f0476ad8 allow uploading larger files 2020-07-06 08:56:23 -04:00
David Joseph Guzsik
8d47f56917
Build assets using Webpack (#150)
* Build assets using webpack

* Change webpack bundling method, add path aliases, restore deploy script

* Remove babel dependencies

* Add buble rollup plugin and always attach promise polyfill to window

* Fix object formatting for buble rollup plugin config

* Remove reference to setImmediate from promise polyfill
2020-06-28 14:53:19 -04:00
alpacawren
2a7dc2fe88
added the linting config files (#136) 2020-06-09 01:56:33 -04:00
alpacawren
ccd35f4d07
Merge pull request #135 from derpibooru/fetch_no_error_msg_bug
Fixes #134
2020-06-09 00:56:54 -04:00
Wren
43fde41e29 Fixes #134 2020-06-09 00:15:58 -04:00
alpacawren
61cafb9054
Poll tabs bug (#129)
* poll tabs hiding comment tabs fix

* scope change to hiding tabs specifically

* selectorCbChildren readability
2020-06-06 17:58:55 -04:00
byte[]
7b36f99c09 set samesite attribute to lax on all cookies to fix warnings 2020-05-26 17:37:49 -04:00
byte[]
6a708f11b6 fixes #117, fetch blocked if upload failed 2020-05-13 14:05:57 -04:00
byte[]
1f5f5ce104 fixes #70: improve visibility of adult streams 2020-05-01 22:50:54 -04:00
Michael Pinnegar
ba76ede87d
Disable image scraper fetch when there is no text (#92)
*Modified fetch to be disabled on pageload. Javascript enables it
after the user has entered some text. Re-disables it if the text goes
to zero, or the image upload button has been used.
2020-04-18 20:14:40 -04:00
byte[]
2fc271d7aa fix too many requests 2020-04-18 20:14:12 -04:00
Nick
d247e01347
Properly handle failed captchas after XHR post (#85)
* handle form posts and xhr posts differently on captcha failure

* formatting
2020-04-11 14:23:55 -04:00
Luna D
d5337eb75a
more appropriate comment fix 2020-02-22 10:31:30 -05:00
byte[]
3315c60789 prevent setInterval calls from queueing 2020-01-13 08:14:16 -05:00
byte[]
bdee305936 fix unintentional inactivation of local storage settings 2020-01-01 11:05:44 -05:00
Luna D
5596a462f5
less shit code 2019-12-20 17:37:50 -05:00
Luna D
7b5fd947f9
hide staff tools 2019-12-20 17:35:46 -05:00
byte[]
db1787aa45 various scraper fixes 2019-12-18 18:51:02 -05:00
byte[]
6108dbab3f better error for anonymous interaction attempt 2019-12-11 23:18:57 -05:00
Hugo Locurcio
4616372e99
Fix various typos using codespell
Command used:

    codespell -wi3 **/* --ignore-words-list "dur,fave,fo,receipient,te"
2019-12-11 21:42:18 +01:00
byte[]
16843ec216 use correct preview endpoint, ensure changes were made before updating stat 2019-12-09 14:22:58 -05:00
byte[]
e39a8eeccc automatic updating notifications 2019-12-02 09:55:48 -05:00
byte[]
ea29cef2a1 add tag fetch endpoint 2019-12-01 12:26:14 -05:00
byte[]
72121ca057 use correct tagblocked image 2019-11-30 13:14:01 -05:00
byte[]
57fcb8504c add description editing 2019-11-29 00:39:15 -05:00
byte[]
109f3f781a finish scraper 2019-11-28 18:19:47 -05:00
byte[]
d6e07b8316 topics/polls forms, relative dates 2019-11-18 22:38:22 -05:00