1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-27 11:26:22 -07:00
Commit graph

29 commits

Author SHA1 Message Date
deepsource-autofix[bot]
1d92be6f63
refactor: unused parameter should be replaced by underscore
Unused parameters in functions or methods should be replaced with `_`
(underscore) or removed.
2023-05-22 15:57:55 +00:00
Eggbertx
3d18e593fd Split actions.go by rank requirement for staff 2023-04-13 10:45:30 -07:00
Eggbertx
90065cf8fa Add lua functions for getting configuration, registering manage page, and loading/parsing templates 2023-01-06 20:13:58 -08:00
Eggbertx
91783c5837 Move router initialization to a new, server package, make serverutil a subpackage
This allows for more flexibility
2023-01-06 14:38:35 -08:00
Eggbertx
43d941c837 Replace all usage of webroot template variable with webPath function 2023-01-04 23:13:59 -08:00
Eggbertx
976d9ad53a Update board in database, fix recent posts error in Postgres 2022-12-14 15:40:56 -08:00
Eggbertx
dec2609591 Make board creation work with new API 2022-12-05 16:18:19 -08:00
Eggbertx
5154aa93cc Pass Error and info events to manage action callback functions 2022-11-10 12:18:13 -08:00
Eggbertx
879da1eaa2 Fix staff logins 2022-11-09 10:56:10 -08:00
Eggbertx
b16fdc81b8 Fix building errors for de-deprecation 2022-11-09 10:15:37 -08:00
Eggbertx
2314005ba1 Add more manage code 2022-10-31 12:27:41 -07:00
Eggbertx
ee61fcb30f Replace gclog/gzlog with structured logging via zerolog 2022-09-04 14:27:14 -07:00
Eggbertx
2ff9b0df83 Improve staff page logging, fix username getting 2022-09-03 16:19:31 -07:00
Eggbertx
28a53add0a Show correct role on staff dashboard 2022-07-25 14:13:33 -07:00
Eggbertx
ee0910da78 Add action to delete wordfilter 2022-07-22 14:56:14 -07:00
Eggbertx
9e82333c47 (re)add board creation related to issue #51 2022-01-16 13:30:33 -08:00
Eggbertx
f820de079a Make the staff dashboard page useful 2022-01-07 14:44:42 -08:00
Eggbertx
9fb5ebbd0b Turn staff action map into an array for more control over ordering 2022-01-01 16:03:39 -08:00
Eggbertx
352cb0227f Simplify controling the JSON-compatible output for manage pages
Rather than having to check whether the user is requesting JSON output in each action, it is done automatically
2021-12-23 14:41:49 -08:00
Eggbertx
16b9b4a92f Make manage action output partlyJSON compatible as part of issue #50 2021-12-22 21:13:04 -08:00
Eggbertx
dfdb926d71 Add partially refactored configuration changes 2021-07-11 11:51:29 -07:00
Eggbertx
c385a39bec Add config option to set max age for staff cookies
resolves  #41
2021-03-26 11:10:05 -07:00
Eggbertx
cba60dc06b Clean up /manage handler, refer to manage functions as actions 2020-10-10 16:17:36 -07:00
Eggbertx
55317504a1 Fix anti-patterns pointed out by DeepSource
But not the switch fallthroughs/expression lists, there's no benefit
2020-07-09 15:54:31 -07:00
Eggbertx
ba1f49a47c Fix broken thumbnail expansion in frontend refactor
Also remove unnecessary error logging in manage.GetStaffRank
2020-07-08 22:46:05 -07:00
Eggbertx
e6838817fd Replace GcError struct usage with builtin error
Creating it was probably a bad idea and not worth the trouble.
2020-06-06 09:28:45 -07:00
Eggbertx
feec3d87e8 replace (most) uses of builtin error with *gcutil.GcError 2020-05-28 12:49:41 -07:00
comraderat
ce1da78361 Add option lister to manage endpoint 2020-05-22 18:06:15 +02:00
Eggbertx
d1292bd9fe refactor/reorganize gochan's source code into subpackages
Also use Go version 1.11 in vagrant for module support
2020-04-29 17:44:29 -07:00