Thomas Lynch
a93e42d90c
assets as last thing for manage assets page in boards
3 years ago
Thomas Lynch
311a2d7a69
markdown, add fortune as sort of an example for somebody admin only in migration permlevel
3 years ago
Thomas Lynch
070d693969
try link labelling change for on site things, allow / start
3 years ago
Thomas Lynch
06f5a26ce9
allow longer language name in markdown, longest is 14 according to the lib
...
require('highlight.js').listLanguages().map(x => x.length).sort((a, b) => b-a)
> [ 14,...
3 years ago
Thomas Lynch
f606cd186a
change permission setting from number to dropdown with names, thanks some_random_guy
...
and some related css tweak and faq page update
3 years ago
Thomas Lynch
08c83ac4b9
update deprecated highlight.js highlight(), was getting deprecation message.
...
method now has new signature taking options object
3 years ago
Thomas Lynch
a5d1c942b2
fix issue in lowering min/max settings conflict in some situations
...
update settings forms to not allow negatives for some inputs
3 years ago
Thomas Lynch
89a60f1424
move images used for themes to folder, same as code themes from highlight.js
...
update theme list to filter, like code theme list
add some themes linked from "reinchan", with some minor tweaks
update gulpfile
3 years ago
Thomas Lynch
50fa768ee9
form and paramconverter fixes
...
change a bunch of length and number body because of trimming and using existsBody is the 0 checko
3 years ago
Thomas Lynch
5e4c1b197f
fixes to paramconverter, null 0 length trimmed fields, tweak custompage error
3 years ago
Thomas Lynch
4ecab8994f
Better message and "link" added to dynamicResponse for dnsbl if blockbypass is allowed to bypass dnsbl
3 years ago
Thomas Lynch
41f2569d85
permission check fix
3 years ago
Thomas Lynch
50aaf3806a
always allowedarrays captcha (until this needs more defaults)
3 years ago
Thomas Lynch
b10d305952
add 'blocking' prop to schema checks, allow a check in schema to skip the rest when it doesnt match expected value
3 years ago
Thomas Lynch
e8c3cfab8f
remove log
3 years ago
Thomas Lynch
7d2799390d
fix for some video files not able to get first frame thumbnail due to weird format
...
example file https://files.catbox.moe/b7vzs5.mp4
previously if in videothumbnail() if timestamp was 0 the command was like:
ffmpeg -t 0 -i in.mp4 -y -vf scale=-2:250 out.jpg
which would error out with "Could not get frame filename number 2 from pattern 'out.jpg'. Use '-frames:v 1' for a single image, or '-update' option, or use a pattern such as %03d within the filename."
seems strange given -t 0, but whatever. so as the error suggests, first frame videothumbnails() call just adds -frames:v 1 to the output args
3 years ago
Thomas Lynch
fa13cd7ce6
rest of #355 , needs testing for every form
3 years ago
Thomas Lynch
42422d3d35
reference #355 changes to paramconverter
...
got the changes to itself done to return the middleware function,
and for most routes i updated them
still TODO the more complex routes, and change them to the refactored schema checking
3 years ago
Thomas Lynch
3eb3ba3a38
remove old comment
3 years ago
Thomas Lynch
289dd11716
remove that restriction on same board cross style quote, it confused some people
3 years ago
Thomas Lynch
75faad7914
hcaptcha site key fix
3 years ago
Thomas Lynch
0c0102ec0c
make referer check work again
4 years ago
Thomas Lynch
b21c84c9c7
make updates to files options actually work
4 years ago
Thomas Lynch
8892f64bad
merge webring db,
...
improve board list sorting and filters
improvelayout of public and global manage board list forms
and add extra homepage stat
4 years ago
Thomas Lynch
0b03b05d7c
add a few missing things for this to globalsettings
4 years ago
Thomas Lynch
163522f02c
playing golf with file middleware helper. came out nice
4 years ago
Thomas Lynch
3d1f2bd016
export country name set
4 years ago
Thomas Lynch
da266a5d0c
add a file middleware, and fix the file paths for images show in fileform
4 years ago
Thomas Lynch
b0c25e2554
make some parseints explicitly base 10
...
could even do with making these more strict tbh
4 years ago
Thomas Lynch
addafd6b04
clse#339
4 years ago
Thomas Lynch
35ededad1e
catch possible bad object id body.params for more friendly error
4 years ago
Thomas Lynch
b474134ed1
ability to change permissions for any markdown, this can be extended nicely in future close #303
4 years ago
Thomas Lynch
2a903e8df5
fix various issues with new settings
...
some incorrect field names, bad parsing, date problems and inability to remove some inputs
4 years ago
Thomas Lynch
18df9e726d
The link matching is still kinda retarded, but this actually works as intended
4 years ago
Thomas Lynch
9c7d061086
fix permlevel and unterminated regex group
4 years ago
Thomas Lynch
51f729b367
dont allow []() url regex by default, only for people with permission like staff or in newsposts, announcements, etc.
4 years ago
Thomas Lynch
ee40042957
add package.json version to renderlocals
4 years ago
Thomas Lynch
eb86c12fe0
close #331
4 years ago
Thomas Lynch
67e50bdb8e
dont duplicate codethemes, improve gulpfile and theme helper
...
now only css files are listed as themes, othe extensions are copied to /file
and gulp-replace is used to prepend /file/ to all the url( paths in the codethemes
4 years ago
Thomas Lynch
06bac65200
add global announcements, now that there is global settings, DUH close #301
4 years ago
Thomas Lynch
9b0b734bce
missing import
4 years ago
Thomas Lynch
a0fa0bde70
proper validation for thumb extension and mime types
...
fix lengthbody checks for 0 minlength/empty fields
remove old todos
4 years ago
Thomas Lynch
313d4a9fe4
gulp export some tasks and task helper for build-worker can call it
4 years ago
Thomas Lynch
849882a066
more model and form improvement
...
add a few missing field to paramconverter
make dnsbl cache time divided since it takes the time format
make redis print when it gets a message if debuglogs are on
4 years ago
Thomas Lynch
de8dcbb8be
progress on model, controller and the template
...
improve some helpers to load config properly on global config change including renderlocals, themes, etc
4 years ago
Thomas Lynch
ab8eddbcff
buggfixes
4 years ago
Thomas Lynch
1c5f14e419
This did not go as planned
4 years ago
Thomas Lynch
60cddef23a
slowly switch configs to db and only a small amount of things like secrets remain in a config file
4 years ago
Thomas Lynch
d14dcdcc76
improve and start work on the controller for global settings page with the new checker
4 years ago
Thomas Lynch
f434899c61
use dynamicresponse in paramconverter for malformed input of arrays
4 years ago