1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-05 04:36:24 -07:00
Commit graph

1782 commits

Author SHA1 Message Date
Eggbertx
32c11ed337 Add filter structs and some functions for them 2024-08-10 21:55:58 -07:00
Eggbertx
844abc198c Fix filter board migration for name and filename bans (hopefully) 2024-08-10 20:43:39 -07:00
Eggbertx
8dd15e07f1 Don't drop the deprecated tables 2024-08-10 20:39:27 -07:00
Eggbertx
e12b2fb982 Add migration stuff for filter tables 2024-08-10 20:01:33 -07:00
Eggbertx
c7f15e3d25 Fix typo in sql init files 2024-08-10 17:56:09 -07:00
Eggbertx
09b42624d0 Clean up formatting for management tables, set new conditions to the name field 2024-08-10 13:59:18 -07:00
Eggbertx
befaf3ae23 Replace condition add/remove buttons with links, move add link to end of conditions 2024-08-10 13:15:06 -07:00
Eggbertx
5c2577f089 Don't change text when switching between reject and ban 2024-08-10 12:48:39 -07:00
Eggbertx
14e2985cca Fix "All boards" checkbox not disabling other board checkboxes, improve action dropdown text 2024-08-10 12:43:38 -07:00
Eggbertx
dea282ae9b Remove checkbox for boolean conditions 2024-08-10 12:37:27 -07:00
Eggbertx
6b3d8e8aeb Start adding filter mgmt page and some more ERD updates 2024-08-10 01:14:21 -07:00
Eggbertx
a0fa938669 re-add wordfilter table (with board table) to ERD 2024-08-09 23:26:05 -07:00
Eggbertx
269efd40d0 Update ERD with planned filter diagram updates 2024-08-09 21:44:42 -07:00
Eggbertx
3d6ca6db45 update database relationship diagram 2024-08-09 20:57:28 -07:00
Eggbertx
6a6a61f44e Rename devtools directory to tools, add get_js.py to download JS 2024-08-09 18:16:10 -07:00
Eggbertx
7307e2c6a4 Fix DeepSource complaints 2024-08-03 17:44:50 -07:00
Eggbertx
a82b0a1024 Add QR support for browse button replacement 2024-08-03 17:31:16 -07:00
Eggbertx
96405ffb8c Add allowed non-standard filetypes to consts template 2024-08-03 17:05:55 -07:00
Eggbertx
662cca0273 Add clipboard uploading to the static post form 2024-08-03 13:28:06 -07:00
Eggbertx
4770bf6cab Add margin to deleted file box 2024-07-31 10:07:45 -07:00
Eggbertx
840f70b92c Add functions for new upload field 2024-07-30 17:23:46 -07:00
Eggbertx
562e7e97b0 Properly return spoiler thumbnails to their original size when the expanded image is clicked 2024-07-29 21:43:56 -07:00
Eggbertx
b85b91c04d Don't write file thumbnail if spoiler (otherwise it overwrites /spoiler.png)
Also add spoilering for videos and non-video non-image uploads
2024-07-29 21:05:03 -07:00
Eggbertx
8bc9c225e2 Add default spoiler image 2024-07-29 18:50:41 -07:00
Eggbertx
34d1eec0c1 Fix failing build tests 2024-07-26 00:06:16 -07:00
Eggbertx
5f3337579b
Merge pull request #103 from gochan-org/dependabot/go_modules/golang.org/x/image-0.18.0
Bump golang.org/x/image from 0.16.0 to 0.18.0
2024-06-26 15:49:59 -07:00
dependabot[bot]
c0ea27fcc3
Bump golang.org/x/image from 0.16.0 to 0.18.0
Bumps [golang.org/x/image](https://github.com/golang/image) from 0.16.0 to 0.18.0.
- [Commits](https://github.com/golang/image/compare/v0.16.0...v0.18.0)

---
updated-dependencies:
- dependency-name: golang.org/x/image
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-26 19:42:02 +00:00
Eggbertx
582710854f
Merge pull request #102 from gochan-org/dependabot/npm_and_yarn/frontend/ws-8.17.1
Bump ws from 8.16.0 to 8.17.1 in /frontend
2024-06-17 22:22:27 -07:00
dependabot[bot]
ab059d03e2
Bump ws from 8.16.0 to 8.17.1 in /frontend
Bumps [ws](https://github.com/websockets/ws) from 8.16.0 to 8.17.1.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.16.0...8.17.1)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-18 04:36:58 +00:00
Eggbertx
aa18a790dd
Merge pull request #101 from gochan-org/dependabot/npm_and_yarn/frontend/braces-3.0.3
Bump braces from 3.0.2 to 3.0.3 in /frontend
2024-06-17 21:36:28 -07:00
dependabot[bot]
79cf9b7ffb
Bump braces from 3.0.2 to 3.0.3 in /frontend
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-16 17:49:08 +00:00
Eggbertx
40cbc371ee Remove unnecessary spaces around parameters 2024-06-13 12:47:07 -07:00
Eggbertx
879aca5f42 Use timeout with query for getting recent posts 2024-06-13 12:23:25 -07:00
Eggbertx
37ef5428f7 Start adding building tests 2024-05-31 16:37:33 -07:00
Eggbertx
9fe6df52ee Add public function to gcsql for SQL mock access 2024-05-31 14:43:35 -07:00
Eggbertx
8be391ba5c Add timeouts to ban and board SQL operations 2024-05-31 11:37:09 -07:00
Eggbertx
f5e7084263 Add timeouts to board SQL operations 2024-05-30 13:51:31 -07:00
Eggbertx
519c27b200 Add context to reports, use transactions for audit tables 2024-05-30 13:34:13 -07:00
Eggbertx
be77ec64f9 Add SQL timeout wrapper functions 2024-05-30 13:16:13 -07:00
Eggbertx
b2b58213e2 Add timeouts to staff account db operations 2024-05-30 11:54:53 -07:00
Eggbertx
91d3458bb7 Add context with timeout VS Code snippet 2024-05-30 11:46:03 -07:00
Eggbertx
98eb2c4429 Add configuration setting for staff session time, use context/timeout for session creation 2024-05-30 11:39:24 -07:00
Eggbertx
64724001a1 Use contexts with timeout for appeals and wordfilters 2024-05-30 11:09:24 -07:00
Eggbertx
f72435ec8d Fix error log being written to even if there were no errors 2024-05-29 12:13:20 -07:00
Eggbertx
4613bea216 Fix bad connection error caused by prematurely closed statement 2024-05-24 16:54:40 -07:00
Eggbertx
1032042472 Fix changes suggested by sqlclosecheck 2024-05-24 16:10:07 -07:00
Eggbertx
27a0142864 Replace nil with background context in tests 2024-05-24 14:20:41 -07:00
Eggbertx
692602402c replace hacky interfaceSlice function in gcsql with []any{...} 2024-05-24 14:19:50 -07:00
Eggbertx
48fc697f8e Use timeout+context in getting all boards and goroutine in building multiple boards 2024-05-24 14:02:13 -07:00
Eggbertx
b334cda25d use timeout saved in gcdb struct instead of checking config 2024-05-24 13:59:14 -07:00