1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-19 20:56:23 -07:00
Commit graph

246 commits

Author SHA1 Message Date
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
62a31e651e Add utility function for getting file parts 2021-12-15 23:42:07 -08:00
Eggbertx
a4cb06e753 Actually delete the when its post is deleted 2021-12-15 22:49:46 -08:00
Eggbertx
2e54fd81aa Minify all management stuff 2021-11-29 22:06:18 -08:00
Eggbertx
a6a37bb29f Use template for staff manage page 2021-11-29 21:53:47 -08:00
Eggbertx
5f8e53fb76 Add functions for getting thread and board info 2021-09-03 15:49:53 -07:00
Eggbertx
bb9d4be884 Add home link to top and bottom board lists 2021-09-01 12:46:26 -07:00
Eggbertx
c15c173d9d Use built-in driver list to check if config has a valid DBtype 2021-08-24 10:57:29 -07:00
Eggbertx
9c75b85eb3 Add configuration documentation, finish cfg refactoring 2021-08-01 22:44:53 -07:00
Eggbertx
fd880d411d add UpdateFromMap 2021-07-16 19:12:25 -07:00
Eggbertx
50c58a91ec Add config defaults 2021-07-11 18:12:02 -07:00
Eggbertx
77380750ae Finish separating config into separate structs 2021-07-11 16:30:39 -07:00
Eggbertx
dfdb926d71 Add partially refactored configuration changes 2021-07-11 11:51:29 -07:00
Eggbertx
e9cbd89e18 Add dedicated chan migration packages 2021-06-24 16:41:26 -07:00
Eggbertx
6b7ef77185 Move javascript files to html/js/ for smaller html files
Also add credit to other Gochan developers in LICENSE
2021-04-24 16:56:34 -07:00
Eggbertx
d94d79a7d1 Replace gcutil shims with calls to gcutil functions 2021-04-21 17:03:00 -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
2382b30af1 Move minifier functions to serverutil package
gcutil should only be used for stuff that doesn't require configuration
2021-03-25 14:42:46 -07:00
Eggbertx
8ccd217ff0 Add mp4 support 2021-03-24 11:44:50 -07:00
Eggbertx
cb7913398c Make config loading more flexible and powerful
Improve value validation, allow for defaults and set critical fields
2021-03-02 17:42:07 -08:00
Eggbertx
485ed84bac Add build.py to eventually replace build.ps1 and Makefile
TODO: add installation code and update README.md
2020-10-23 19:13:06 -07:00
Eggbertx
cba60dc06b Clean up /manage handler, refer to manage functions as actions 2020-10-10 16:17:36 -07:00
Eggbertx
e375750e97 Replace strings.ReplaceAll with strings.Replace for compatibility 2020-07-27 18:19:56 -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
497a3925e0 Delete post upload(s) if we get an error 2020-07-09 13:08:24 -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
comraderat
83d9bbafdf Fix bug not reparsing html 2020-07-08 21:00:46 +02:00
comraderat
46735c64d6 Changed versioning table
This allows us to more easily make a plugin system
with their own versions without breaking changes
2020-07-04 23:56:46 +02:00
Eggbertx
b4a827779a Merge branch 'Database_refactor' of github.com:gochan-org/gochan into Database_refactor 2020-06-26 18:03:17 -07:00
Eggbertx
4e60807b13 Fix issue with gcsql.PrepareSQL not properly handling variables 2020-06-26 18:01:25 -07:00
comraderat
91661fc4b4 Fix version check
Remove temp code
2020-06-19 16:16:47 +02:00
Eggbertx
d51506b2f3 Make gcsql.GetCompleteDatabaseVersion return an int flag instead of a bunch of booleans
Also isolate SQL host address if it is encased in tcp()
2020-06-16 13:31:47 -07:00
Eggbertx
a69b6748c7 Remove SQLite support due to instability 2020-06-15 11:27:14 -07:00
comraderat
225bb518c0 Move migration logic to cmd/gochan-migration 2020-06-13 21:47:43 +02:00
comraderat
ee8ac770e4 Safe branch commit 2020-06-13 19:28:20 +02:00
Eggbertx
40c1f48186 Fix json tag, Printf usage, add initial gochan-migration stuff
TODO: make gochan-migration actually useful
2020-06-12 11:01:28 -07:00
comraderat
d7fdd1ca19 Add normalisation step for bans 2020-06-12 15:54:14 +02:00
comraderat
72eb7e5467 Fix mariadb connection error 2020-06-11 15:24:52 +02:00
comraderat
2b5fe5e415 merge commit 2020-06-07 16:08:24 +02:00
Eggbertx
418468ff97 remove unnecessary GcLogger struct, use exported functions instead 2020-06-06 12:52:12 -07:00
Eggbertx
9ab597be64 Prevent gclog.Println from adding an extra newline
Also add more thorough gclog testing
2020-06-06 09:56:13 -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
d1bcaa52b4 Fix crash when checking/printing error in posting.MakePost 2020-06-03 14:00:55 -07:00
Eggbertx
75dbaa4676 Add command line option to rebuild templates on startup 2020-06-03 12:54:12 -07:00
comraderat
c84b27d7ce Started work on migration script for old database 2020-05-30 22:43:01 +02:00
comraderat
f0c1fbba94 Remove unique constraint from section position 2020-05-30 22:40:12 +02:00
comraderat
d4e50121b5 Moved migration function inside version handler
Prevents accidental calling with invalid value.
2020-05-30 11:38:08 +02:00
Eggbertx
feec3d87e8 replace (most) uses of builtin error with *gcutil.GcError 2020-05-28 12:49:41 -07:00