Commit graph

3085 commits

Author SHA1 Message Date
Shish
d82df9d7d8 [autocomplete] optimistic client-side filtering 2023-12-29 12:04:05 +00:00
Shish
0e887175e0 [autocomplete] allow keyboard to override an idle mouse 2023-12-29 11:39:00 +00:00
Shish
ef5f1f8599 [autocomplete] min-width rather than wrapping 2023-12-29 11:37:44 +00:00
Shish
4c5af15a88 [autocomplete] default to returning 1000 results from the server instead of all of them 2023-12-29 11:10:58 +00:00
Shish
8007ed8532 [autocomplete] only render the top 100 results 2023-12-29 11:00:56 +00:00
Shish
05d137cd6d [autocomplete] set innerText rather than HTML to avoid need for HTML parsing 2023-12-29 10:47:51 +00:00
Shish
81f68f1e90 [autocomplete] remove the whole completions div instead of removing each child individually 2023-12-29 10:45:13 +00:00
Shish
6608e3c33e [autocomplete] avoid a rerender 2023-12-29 10:38:24 +00:00
Shish
15a07205fd [autocomplete] refactor getCurrentWord 2023-12-29 10:36:32 +00:00
Shish
8eb13f59e6 [autocomplete] allow right-arrow for completion 2023-12-29 10:36:32 +00:00
Shish
09051249a7 [autocomplete] force wrapping for completions 2023-12-29 10:36:32 +00:00
Shish
840b0849df [user] make email-requiredness a setup option 2023-12-27 10:07:09 +00:00
Shish
fbd6869d85 [themes/r34] be less custom 2023-12-26 13:08:50 +00:00
Shish
7617daa15c [autocomplete] rely on autocomplete-script to disable browser built-in where appropriate 2023-12-26 12:53:46 +00:00
Shish
d04ec4296b [upload] saner error reporting 2023-12-26 12:50:37 +00:00
Shish
ec85a0bd76 [autocomplete] touch too 2023-12-26 04:18:40 +00:00
Shish
a92d1ac7c5 [autocomplete] argh 2023-12-26 04:11:35 +00:00
Shish
33adf9aeff [autocomplete] don't lose focus after selecting a completion 2023-12-26 03:40:30 +00:00
Shish
0eef0cc42b [autocomplete] specify exact position 2023-12-26 03:18:31 +00:00
Shish
5f69545b65 style tweak 2023-12-26 02:57:10 +00:00
Shish
b55b5a0a0f [autocomplete] new from-scratch autocomplete implementation 2023-12-26 02:52:19 +00:00
myname
85b1e54904 Refactoring auto-complete functionality for alias editor and auto tagger 2023-12-26 02:37:47 +00:00
Shish
e5c8bf7b18 one cookie set function, for consistent samesite/path/expires 2023-12-26 02:36:51 +00:00
Github Actions
1af62eca83 Auto-merge master to main 2023-12-25 15:36:43 +00:00
Shish
6d370b0aa3 [all themes] use rems for more consistent font sizing 2023-12-25 15:33:57 +00:00
Shish
1f4d2a5b3e [user_config] remove duplicate style file 2023-12-25 10:39:37 +00:00
Github Actions
7a3e90d524 Auto-merge master to main 2023-12-24 23:19:44 +00:00
Shish
ce962cb358 [style] keep form elements wide even if in a span 2023-12-24 23:17:54 +00:00
Github Actions
61000a7742 Auto-merge master to main 2023-12-24 23:08:18 +00:00
Shish
89dfd33290 allow tags to wrap 2023-12-24 23:06:26 +00:00
Shish
2ac243d20d [core] use rawurlencode/decode consistently, deprecate caret system 2023-12-24 22:42:14 +00:00
Shish
8b31fea14e fix downvote link typo 2023-12-24 13:46:59 +00:00
Shish
0dd09b444b Merge branch 's3' 2023-12-21 21:57:07 +00:00
Shish
8015d69acf [s3] extension for adding/deleting images on an S3 compatible host 2023-12-21 21:56:48 +00:00
Shish
ad181377c8 [userclass] ghosts should still be able to read PMs 2023-12-21 21:15:46 +00:00
Shish
a491d70b0e [ratings] don't crash if rating isn't set yet 2023-12-21 15:26:53 +00:00
Shish
d489a4fa18 [user_config] remove redundant overrides 2023-12-19 12:08:39 +00:00
Shish
9e7f3cb397 Make SHM_POST_INFO more logical
Rather than having a boolean for view or edit + optional editor, use the
existence of the editor to know if a field is editable
2023-12-19 11:41:02 +00:00
Shish
095a51a4d2 [setup] column-width is standard now 2023-12-18 01:26:31 +00:00
Shish
9a56b50d84 [bulk_add_csv] align help 2023-12-16 10:42:32 +00:00
Shish
3581945e09 [comment] check null once 2023-12-15 21:25:18 +00:00
Shish
7f98412d8b cache_get_or_set function 2023-12-14 22:02:10 +00:00
Shish
a5c6f1321b refactor search a little and add much better testing 2023-12-14 17:04:16 +00:00
Shish
4c8274161f fix more search edge-cases 2023-12-14 02:13:01 +00:00
Shish
e114057dfe PHPUnit 10 (and other bumps) 2023-12-14 00:25:32 +00:00
Shish
fd1bb21f9d bumps 2023-11-11 22:05:28 +00:00
Shish
848797030e nits 2023-11-07 21:01:03 +00:00
myname
e498eb87c7 Fix pool Post/List view 2023-11-06 06:47:59 -06:00
myname
5b2666164f Create function to search pool by name 2023-11-05 23:50:33 -06:00
myname
40244138f3 Remove redundant button
Fix parent-id type issue
2023-11-05 09:40:12 -06:00
Shish
f0e8bd9ee1 [ext/reverse_search_links] apply style directly to the link, no matter where it is positioned 2023-09-06 12:37:13 +01:00
Shish
38af9eb0c4 [ext/reverse_search_links] remove custom position options, for now 2023-09-06 12:37:13 +01:00
Joe
03e24a4c92 fully remove IQDB support 2023-09-06 12:37:13 +01:00
Joe
7fcb4078dd add reverse image search links extension 2023-09-06 12:37:13 +01:00
Shish
867fdec284 [pools] remove mysql-specific bits 2023-08-18 22:27:42 +01:00
Shish
7a4f033cce split installer CSS into its own file, since we only use it in one place 2023-08-18 21:51:01 +01:00
Shish
43c7be0e89 dedicated search_link() function for generating links to search results, see #936 2023-08-18 13:52:03 +01:00
Shish
23e36b4349 only link to post/list when you actually want post/list, if you want just a default page, leave it empty 2023-08-18 12:45:56 +01:00
Shish
7f048ff6f2 [ratings] link the rating to the appropriate search, fixes #936 2023-08-18 12:45:27 +01:00
Shish
5879184895 SHM_POST_INFO element for doing info box elements in a standard way 2023-08-17 18:21:28 +01:00
Shish
aa8de9d420 the php string type is lowercase 2023-08-17 18:20:46 +01:00
Github Actions
9c0a6ebec3 Auto-merge master to main 2023-08-16 14:54:27 +00:00
Shish
f040709a76 proper support for html in usernav 2023-08-16 15:52:14 +01:00
Luana
3179cc1969 format 2023-08-16 15:40:08 +01:00
Luana
498d71ab45 index help html 2023-08-16 15:40:08 +01:00
Luana
b29d536e19 more microhtml 2023-08-16 15:40:08 +01:00
Luana
a5e585d991 SHM_A 2023-08-16 15:40:08 +01:00
Luana
ff237fc00c pools theme fully MicroHTML 2023-08-16 15:40:08 +01:00
Luana
0978ef99e3 MicroHTML on pools ext 2023-08-16 15:40:08 +01:00
Luana
8202367eaa build_selector and make_form_microhtml as SHM_ functions 2023-08-16 15:40:08 +01:00
Luana
d47df46a7f pool adder MicroHTML 2023-07-03 16:35:43 +01:00
Luana
98aca16e73 format 2023-07-03 16:35:43 +01:00
Luana
34b608c4b7 ratings ext fully MicroHTML 2023-07-03 16:35:43 +01:00
Luana
91710f4c59 More MicroHTML 2023-07-03 16:35:43 +01:00
Luana
84d232ca0d build_selector returns HTMLElement 2023-07-03 16:35:43 +01:00
Luana
ca88b28b1e use MicroHTML 2023-07-03 16:35:43 +01:00
Luana
9cbddd629e oops 2023-07-03 16:35:43 +01:00
Luana
9038afc47a another build_selector use case 2023-07-03 16:35:43 +01:00
Luana
8db0086d7a standard HTML select code 2023-07-03 16:35:43 +01:00
Shish
2b26908624 force searches to always search /post/list, fixes #930 2023-07-03 15:34:28 +01:00
Shish
f7f0c11ee8 [danbooru api] ignore star searches 2023-07-03 11:40:15 +01:00
Shish
3c18ebd40c use Tag/SourceSetEvent for mass editing, to ensure the standard rules are followed 2023-07-03 10:58:15 +01:00
Shish
0f162fe32a format 2023-06-28 13:09:02 +00:00
Shish
c813700d98 case-insensitive message search for postgres 2023-06-28 13:09:02 +00:00
Shish
8fb6fd5f54 stricter nulls 2023-06-27 17:45:35 +01:00
Shish
eca49bfc94 don't cache data that mostly won't be used 2023-06-27 17:30:40 +01:00
Shish
aae902e44d an array is an array 2023-06-27 17:30:09 +01:00
Shish
00d4f9f75c always have a Themelet, never null 2023-06-27 16:11:14 +01:00
Shish
e62cdb0979 offset can't be null, and named args 2023-06-27 15:32:39 +01:00
Shish
928c9d95d1 Blocks can accept HTMLElements directly 2023-06-27 11:59:39 +01:00
Shish
8ebd8bf287 format 2023-06-27 11:45:27 +01:00
Shish
38edf739fc avoid treating html as strings 2023-06-27 11:44:46 +01:00
NottyNoz
56a60a9ec1 upload form update 2023-06-27 11:41:53 +01:00
NottyNoz
909e54b1e2 fixes 2023-06-27 11:41:47 +01:00
NottyNoz
cf6d994de4 . 2023-06-27 11:37:57 +01:00
NottyNoz
cf9837a776 bulk tagit fix 2023-06-27 11:33:42 +01:00
Shish
f18fb336a6 FFS, MySQL - can't set a default on a text column, can't add a not-null column... 2023-06-26 15:11:28 +01:00
Shish
ef52d572f1 default empty userclass for blocks 2023-06-26 14:46:11 +01:00
Luana
d1da3504f1 show blocks based on user class 2023-06-26 08:59:25 +01:00
Luana
4e6ca4d184 option to hide post counters (home) 2023-06-26 08:55:19 +01:00
Shish
8f70075c45 don't autocomplete for tag case fixing 2023-06-25 22:00:04 +00:00
Shish
5c4a9ea2ef create new transaction 2023-06-25 21:46:51 +00:00
Shish
dd48681524 commit work-in-progress tag replacements 2023-06-25 21:22:00 +00:00
Shish
33f32f7b22 Revert "INSERT ... RETURNING is well-supported now" - mysql doesn't...
This reverts commit 633d5c5348.
2023-06-25 20:31:11 +00:00
Shish
1f908bdd05 use array_merge / array_diff rather than for loops 2023-06-25 20:26:51 +00:00
Shish
633d5c5348 INSERT ... RETURNING is well-supported now 2023-06-25 20:25:09 +00:00
Shish
a94ead8c04
Merge pull request #922 from luanalatte/author-change
update authors
2023-06-25 21:23:52 +01:00
Luana
7d78bbaad4 update authors 2023-06-25 16:14:52 -03:00
Shish
a03840c60e
Merge pull request #921 from luanalatte/approval-bypass
Approval bypass
2023-06-25 19:54:07 +01:00
Luana
65e6bae1f4 Remove bypass aproval config 2023-06-25 15:33:28 -03:00
Shish
e66acefa53 extra tracing for bulk tag edit 2023-06-25 14:42:24 +00:00
Shish
c5e2353447 manual timeouts 2023-06-25 14:19:52 +01:00
Shish
b85e7ec209 manually control timeout, to dump trace data after hitting the limit 2023-06-25 13:40:57 +01:00
Shish
1d4c43f33b no autocomplete for r34 2023-06-25 10:17:56 +00:00
Shish
4117678d72 "People seem to be madder about robots than ponies nowadays" 2023-06-25 10:02:02 +00:00
Shish
9adee430ca fade out permissions which are inherited from the parent userclass 2023-06-25 00:26:34 +01:00
Shish
162aaccb62 Display documentation for permissions 2023-06-24 21:24:25 +01:00
Shish
ec854036e0 format 2023-06-24 19:35:03 +01:00
Shish
e51c6bed20 show a table of user classes, see #921 2023-06-24 12:10:28 +00:00
Luana
76e28b9a14 format 2023-06-14 05:15:14 -03:00
Luana
6cbc12e427 Approval bypass 2023-06-14 04:48:38 -03:00
Shish
133616e508 Autocomplete tags for anything with class=autocomplete_tags
Not all search boxes are tag-search boxes

If somebody doesn't want autocompleted tags, then don't use
class=autocomplete_tags?
2023-05-25 14:04:13 +01:00
Shish
85a5ed2dd6
Merge pull request #907 from tegaki-tegaki/feature/check_mime_on_upload
implement MIME checks on upload
2023-05-25 13:31:51 +01:00
Shish
12f0bc3a81 Allow SearchTermParseEvent to have a bit more control over results
Rather than "add querylet or do nothing", moving more code into the
event means that event handlers are able to add a positive or negative
querylet, add a positive or negative tag, or do nothing

This means that events can respond to the `null` search term by adding a
tag, which would be useful for #917
2023-05-25 12:59:25 +01:00
Shish
4ba3af7926 version bumps 2023-05-25 12:58:41 +01:00
Shish
b5b7fe7d9e allow admin to bypass user creation block 2023-04-03 22:14:51 +00:00
Shish
9b463ce674 text 2023-03-30 21:27:12 +00:00
Shish
33e1e20beb [static] also avoid robots getting stuck on history pages 2023-03-30 19:43:14 +00:00
Shish
7d6615c298 trim 2023-03-30 19:40:17 +00:00
Shish
fddc1fd453 [img] allow CLI image deletion 2023-03-30 19:40:17 +00:00
Shish
7e017ded3b format 2023-03-30 20:37:06 +01:00
Shish
46f75f7b34 [static] allow extensions to customise robots.txt 2023-03-30 20:36:58 +01:00
Shish
eea4866e27
Merge pull request #909 from yls4/master
Bulk Actions for setting a chain of parent child relationships in the…
2023-03-29 00:04:15 +01:00
myname
f43ed0ee71 Removing unnecessary lines, fixing namespace 2023-03-27 14:32:41 -05:00
myname
0b5f6c310d Adding namespace 2023-03-27 14:26:39 -05:00
NottyNoz
a98560b061 tagit fix and ui 2023-03-27 16:45:59 +01:00
NottyNoz
4253d357af board config cleanup 2023-03-27 16:45:59 +01:00
NottyNoz
c4317cab0d documentation cleanup 2023-03-27 16:45:59 +01:00
NottyNoz
e7bc6c733a . 2023-03-27 16:45:59 +01:00
yls4
d6a0d0cb8d
Merge pull request #1 from shish/master
Updating to current version
2023-03-26 17:09:08 -05:00
myname
a352a02b2e Bulk Actions for setting a chain of parent child relationships in the order of images selected.
Does not support setting multiple children to one parent in bulk.
2023-03-26 17:01:46 -05:00
Tegaki
2882bffe35 implement MIME checks on upload 2023-03-22 21:46:15 +01:00
NottyNoz
0c1fc9b85e . 2023-03-16 22:34:52 -04:00
NottyNoz
48c3eae6b9 fixes 2023-03-16 22:29:45 -04:00
Shish
6bf7d63a29 [grahpql] update_post_metadata 2023-03-08 22:31:13 +00:00
Shish
7ced11fba8 add a separate upload API for graphql clients 2023-02-24 22:50:42 +00:00
Shish
6d41012f50 use permissions for voting 2023-02-24 22:49:10 +00:00
Shish
36951db563 use DataUploadEvent fields rather than required metadata 2023-02-24 22:42:03 +00:00
Shish
cfa7434d8d user creation 2023-02-24 21:12:58 +00:00
Shish
95b081e9a3 put constructor data in constructor 2023-02-24 21:12:00 +00:00