Commit graph

3217 commits

Author SHA1 Message Date
Shish
2c77a4e6a1 [tag_edit] mass edit CLI 2024-01-10 18:01:16 +00:00
Shish
219096d10b show queue length 2024-01-10 17:25:02 +00:00
Shish
e754ec89a7 [tests] cleaner teardown 2024-01-10 08:51:56 +00:00
Shish
7e7e9ec049 [rating] teardown tests properly 2024-01-09 22:47:10 +00:00
Shish
28a9724ffa fmt 2024-01-09 22:13:56 +00:00
Shish
7b9201cb42 [core] Database::with_savepoint() 2024-01-09 21:59:24 +00:00
Shish
b2f67363a1 [core] roll back database transaction when upload fails - fixes #1007 2024-01-09 21:01:10 +00:00
Shish
4d011fa5e5 [core] remove add_image, send_event(DataUpload) is much clearer as to what it's actually doing 2024-01-09 19:24:56 +00:00
Shish
c16aeca4d8 [handle_pixel] don't fail silently when imagemagick fails - see #1006 2024-01-09 17:59:41 +00:00
Shish
d986d0d378 [view] tag entry should grow as-needed, but not shrink - fixes #1005 2024-01-09 17:38:55 +00:00
Shish
e95c47c547 [s3] when there are many actions in a single page request, queue them instead of timing out 2024-01-09 17:23:34 +00:00
Shish
edb8ec33fa more consistency for 'old' and 'new' terminology 2024-01-09 15:27:02 +00:00
Shish
81ec577b32 [core] only move file to warehouse if all the rest of the upload is ok, fixes #1004 2024-01-09 04:49:19 +00:00
Shish
3c90597ca8 [core] inline some single-use functions 2024-01-09 04:22:59 +00:00
Shish
03d4045117 [core] also simplify uploading by having merge handled as a special case 2024-01-09 04:07:32 +00:00
Shish
4c2d6d9ca4 [replace] split upload and replace completely, fixes #1001 2024-01-09 03:38:51 +00:00
Shish
a28fb66b91 [core] have ImageReplace replace image->file with a new file, not replace a whole Image object 2024-01-09 02:33:14 +00:00
Shish
267e176658 [core] have extensions react to ImageAdditionEvent, instead of sending ImageAddition and other events in parallel 2024-01-09 01:32:34 +00:00
Shish
0762da54eb [core] have ThumbnailGenerationEvent work on an Image 2024-01-09 01:03:46 +00:00
Shish
01261b0fa6 [regen_thumb] use common image search function 2024-01-09 00:40:37 +00:00
Shish
14646e2bb9 [regen_thumb] use common deltree function 2024-01-09 00:37:02 +00:00
Shish
6c2c04c602 [r34] remove dead code 2024-01-09 00:34:32 +00:00
Shish
8b18b73f94 fmt 2024-01-08 22:08:10 +00:00
Shish
70882b46fd don't put white-on-yellow 2024-01-08 22:08:06 +00:00
Shish
93ce51e189 [styles] have input font-size be equal to text font-size, see #999 2024-01-08 21:33:16 +00:00
Shish
5a05f58792 [style] sortable is no longer a thing 2024-01-08 21:16:45 +00:00
Shish
a50b103a4a [themes] zebra tables are also forms 2024-01-08 21:03:04 +00:00
Shish
e564646dd8 [upload] upload form is a form 2024-01-08 20:41:03 +00:00
Shish
8237a22029 -: 2024-01-08 20:12:45 +00:00
Shish
9d80b1470c [upload] cleaner upload size counters 2024-01-08 19:38:23 +00:00
Shish
29fde1388a [core] only show decimal for KB/MB/etc less than 10 2024-01-08 19:35:25 +00:00
Shish
7135eca9c2 [themes] remove dead styles 2024-01-08 19:15:31 +00:00
Shish
5fccbc5ad5 [autocomplete] disable spellcheck from also trying to autocomplete 2024-01-08 19:14:42 +00:00
Shish
ae327f5a2a [autocomplete] use the same font size as the surrounding text, see #999 2024-01-08 18:56:46 +00:00
Shish
73eb3c96d4 [tag_edit] don't spellcheck tags 2024-01-08 18:56:03 +00:00
Shish
4852bb0704 [autocomplete] be consistently aligned, see #999 2024-01-07 23:48:42 +00:00
Shish
8a82a3348f [autocomplete+home] don't limit the size of the completion list while on the home page, see #999 2024-01-07 22:28:37 +00:00
Shish
e0f5ce21a2 [autocomplete] don't allow completions to overflow the box, or for the box to overflow the screen, see #999 2024-01-07 22:14:13 +00:00
Shish
ad4d9c74d4 [autocomplete] no text-wrapping in the middle of completions, see #999 2024-01-07 22:06:46 +00:00
Shish
94ee6e4bc3 [user] admins are exempt from the email requirement, fixes #996 2024-01-07 17:33:39 +00:00
Shish
77e88f6f54 [ratings/search] remove implicit 'rating:*' from image counting process, hopefully fixes #991 2024-01-07 04:17:22 +00:00
Shish
c79751007c [rating] fix description of user config 2024-01-07 03:48:28 +00:00
Shish
e401dd9e52 [s3] allow sync to skip files that exist 2024-01-06 22:57:00 +00:00
Shish
b4f61efbfc [s3] manual re-sync button 2024-01-06 22:26:22 +00:00
Shish
3dbdfac48c fix 2024-01-06 21:44:30 +00:00
Shish
6a2d3f49e2 typed return arrays too 2024-01-06 21:34:30 +00:00
Shish
02da92403a fmt 2024-01-06 21:28:06 +00:00
Shish
b5ad2a6bab [blotter] fix doc 2024-01-06 21:27:34 +00:00
Shish
9d205ad2d0 [pm_triggers] remove ext that never went anywhere 2024-01-06 21:22:01 +00:00
Shish
cff163591c [hellban] merge with user ext 2024-01-06 21:20:38 +00:00
Shish
4c1ceb5b02 [shimmie_api] remove unstable and abandoned extension 2024-01-06 21:13:44 +00:00
Shish
d16f58ec7f [ext_manager] don't disable hidden extensions 2024-01-06 21:04:12 +00:00
Shish
886a645a2c [ext_manager] no need to clear cached extensions - the cache key changes when the enabled list changes 2024-01-06 20:55:21 +00:00
Shish
ebbcc9fab5 [et] short date 2024-01-06 20:45:32 +00:00
Shish
e57264fd95 [ci] more specific version in /system_info, less specific version in footer 2024-01-06 19:32:33 +00:00
Shish
4df1e935b4 autosize tag entry 2024-01-06 14:09:55 +00:00
Shish
948f3f1bd8 min-size for tag entry 2024-01-06 14:03:46 +00:00
Shish
26630a4e3b fmt 2024-01-05 15:32:07 +00:00
Shish
4b954b2e68 [cron_uploader] don't try to upload .listing files, see #972 2024-01-05 15:31:21 +00:00
Shish
af309601f5 [upload] separate out DataUpload, ImageAddition, and TagSet/SourceSet/LockSet/etc 2024-01-05 15:00:07 +00:00
Shish
aa494efe45 [image_hash_ban] stop putting HTML into exception text, fixes #990 2024-01-05 13:12:44 +00:00
Shish
668e99b140 [autocomplete] When tag categories are enabled, show foo:bar as a completion result for bar, fixes #630 2024-01-05 12:24:50 +00:00
Shish
87368ac56a [upload] fix empty-vs-null confusion, fixes #989 2024-01-05 04:19:42 +00:00
Shish
f7025069ad [notes] remove debug border 2024-01-05 04:09:01 +00:00
Shish
4edf985a73 fmt 2024-01-05 04:06:19 +00:00
Shish
05a981d935 [notes] replace all the javascript 2024-01-05 04:02:08 +00:00
Shish
48b3de3c6e [core] fix error in error handling 2024-01-04 23:10:31 +00:00
Shish
b060accc44 [view] don't show prev/next when the user has searched for order:... - fixes #790 2024-01-04 19:21:55 +00:00
Shish
e3febc5488 [cron_uploader] minor fixes 2024-01-04 19:21:29 +00:00
Shish
d8986159fe avoid passing an array as a database parameter, fixes #820 2024-01-04 18:40:51 +00:00
Shish
53152bf9f0 [forum] use microhtml, avoid double-escaping text, fixes #835 2024-01-04 17:48:13 +00:00
Shish
889f595076 [numeric_score] use Search::get_images() to find images only when they match the visibility settings, fixes #563 2024-01-04 16:58:14 +00:00
Shish
9e1f0e792d [image_view_counter] use Search::get_images() to take ratings etc into account and only showe popular images that the user can see - fixes #864 2024-01-04 16:58:04 +00:00
Shish
f877ad0c92 [index] allow searching for multiple IDs 2024-01-04 16:52:30 +00:00
Shish
fd403c2b84 [handle_archive] add tests 2024-01-04 16:46:48 +00:00
Shish
ff04083ad5 [handle_archive] merge tags from inside the archive and the form, fixes #483 2024-01-04 15:55:48 +00:00
Shish
502d50c57d [upload] keep original post date when replacing image, fixes #903 2024-01-04 14:29:09 +00:00
Shish
f4da2e92f0 don't try blocking empty tag 2024-01-03 23:57:17 +00:00
Shish
4066e6db81 Slightly better client-side tag blocking, fixes #802 2024-01-03 23:54:03 +00:00
Shish
febaa815f7 [setup] wider forms on setup page 2024-01-03 15:51:22 +00:00
Shish
c5c972fe94 [themes] use CSS variables + CSS grid to control image grid layouts, fixes #938 2024-01-03 15:30:20 +00:00
Shish
61b28c5031 [image] set thumb width / height as CSS varibles, see #938 2024-01-03 15:08:41 +00:00
Shish
886b884bd6 [image_view_counter] give post a view so it isn't null 2024-01-03 12:02:39 +00:00
Shish
1f9de8dd5a more tests 2024-01-03 03:46:04 +00:00
Shish
2f2f8e2eda [system] add a basic test, see #986 2024-01-02 23:58:48 +00:00
Shish
145deaeea5 [system] fix sorting for system nav links, fixes #986 2024-01-02 20:44:37 +00:00
Shish
47c92894f1 test 2024-01-01 23:58:47 +00:00
Shish
20b72f5cfb [tag edit] textarea for more tagging 2024-01-01 23:32:42 +00:00
Shish
164e6df9f8 derp 2024-01-01 22:38:01 +00:00
Shish
fab4b489ac infobox css to css file, and a little wider 2024-01-01 22:27:42 +00:00
Shish
a267e502f3 fmt 2024-01-01 21:17:36 +00:00
Shish
ec567d399a log image loading errors 2024-01-01 21:16:47 +00:00
Shish
aea533b345 [file handlers] separate out display_image and display_metadata 2024-01-01 20:21:51 +00:00
Shish
8755298ee9 [static] add shm_log js function available early in page load 2024-01-01 20:15:34 +00:00
Shish
509f8eee3e [core] separate init.js for code which needs to run before page load 2024-01-01 20:03:50 +00:00
Shish
47dfc2c36e fix view js a bit 2024-01-01 17:17:27 +00:00
Shish
3acc3fa607 [css] remove more dead css, make more extension CSS be specific 2024-01-01 16:21:43 +00:00
Shish
7264683a04 [home] make sure home css only applies to home page 2024-01-01 16:10:26 +00:00
Shish
585ba7f42d [autocomplete] remove dead css 2024-01-01 16:07:59 +00:00
Shish
f611f9b1e4 [bbcode] make sure bbcode css only applies to bbcode 2024-01-01 16:05:48 +00:00
Shish
c0d9946e71 [upload] go full OOP for upload results 2024-01-01 04:30:43 +00:00
Shish
9f002b6bf7 typed arrays 2024-01-01 03:30:21 +00:00
Shish
26bf4277e0 Separate out GET and POST more explicitly
- No longer allow uploading directly via GET, that is terrible for
  security. Instead, use the GET parameters to pre-fill the upload form.
- PageRequestEvent has a `method` property that can be checked in
  extensions
2024-01-01 03:30:21 +00:00
Shish
5356008985 remove unused images 2024-01-01 03:30:21 +00:00
Shish
e3fb67661e nits 2024-01-01 03:30:21 +00:00
Shish
3462a81c28 [upload] give filesize-tracker script some polish 2024-01-01 03:30:21 +00:00
Shish
42a2d6e12f [home] show text counter even without graphical counter 2023-12-31 23:07:54 +00:00
Shish
9e9225acf3 [core] allow SHM_POST_INFO html element to accept a link parameter 2023-12-31 22:27:32 +00:00
Shish
209e9b4ab5 [tag edit] have image info link to history if they're active 2023-12-31 22:00:31 +00:00
Shish
625406e591 extra comments 2023-12-31 18:48:56 +00:00
Shish
fb49b785ef [core] don't take shortcuts when going next/prev, as some extensions (eg ratings) might want to alter search results (fixes #984) 2023-12-31 18:48:49 +00:00
Shish
b67fca51f5 [view] ViewImage -> ViewPost 2023-12-31 01:20:36 +00:00
Shish
a00b522f34 [view] more microhtml 2023-12-31 01:10:03 +00:00
Shish
9c4138399d Merge branch 'no-modernizr' 2023-12-30 18:07:59 +00:00
Shish
48557354fc [upload] less jquery 2023-12-30 14:25:03 +00:00
Shish
159efdcce6 [r34] less jquery 2023-12-30 14:20:31 +00:00
Shish
61c52c2237 [index] less jquery 2023-12-30 14:20:03 +00:00
Shish
b456b86ca0 [index] remove hack for ancient opera 2023-12-30 13:59:56 +00:00
Shish
de96ce8129 [bbcode] remove jquery 2023-12-30 13:59:27 +00:00
Shish
8121f4d6db [cbz] remove jquery 2023-12-30 13:59:16 +00:00
Shish
ab4c58e17e [view] reduce jquery 2023-12-30 13:47:23 +00:00
Shish
ccd14e38c5 [comment] reduce jquery 2023-12-30 13:47:02 +00:00
Shish
410bddd24e [handle_pixel] remove redundant cookie flags 2023-12-30 13:34:00 +00:00
Shish
2775ec073d [media] simpler video stats 2023-12-30 13:26:49 +00:00
Shish
00a49f6541 [media] set $size to "unknown" if we don't know the size 2023-12-30 13:02:31 +00:00
Shish
2a23c235ec [video] microhtml and no-jquery 2023-12-30 13:01:36 +00:00
Shish
9ed58a69a0 [setup] drop hideable setup sections
this is mostly-broken; and when it works, it is confusing; and the code
is bad
2023-12-30 04:07:40 +00:00
Shish
c2befbdf9f remove modernizr 2023-12-30 03:45:29 +00:00
Shish
8f143a6bac [view] use vanilla JS to change info box edit/view modes 2023-12-30 03:45:21 +00:00
Shish
cc69ecb74a hide site-specific extension 2023-12-30 03:21:52 +00:00
Shish
cc36f32ffc [flash] remove flash extension, browsers don't support it any more 2023-12-30 01:54:24 +00:00
Shish
65d858c1ca [autocomplete] when tags have the same number of uses, sort by name 2023-12-29 12:17:00 +00:00
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