1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-02 15:06:23 -07:00
Commit graph

49 commits

Author SHA1 Message Date
Eggbertx
1417695dcc Add sqlmock tests 2024-03-28 23:04:22 -07:00
Eggbertx
b8ae6147e8 update go dependencies 2024-03-26 16:32:05 -07:00
Eggbertx
0f36a300c4 Add ip2location GeoIP plugin 2024-03-04 15:37:34 -08:00
Eggbertx
5e7a648e37 Start adding ahash fingerprinting support 2024-02-12 15:22:58 -08:00
Eggbertx
6a102bce6a Update dependencies 2024-01-21 17:27:04 -08:00
dependabot[bot]
499700bf80
Bump golang.org/x/crypto from 0.14.0 to 0.17.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.14.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.14.0...v0.17.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-18 23:37:17 +00:00
Eggbertx
5980283218 Add MaxMind GeoIP loading 2023-12-06 14:54:51 -08:00
Eggbertx
735470081c Add JSON support to Lua and IPHub plugin 2023-10-27 17:03:13 -07:00
Eggbertx
a417d49df9 Replace http lua library with just a client for significantly smaller binary size 2023-10-25 13:52:31 -07:00
Eggbertx
9a8cd64d2d Move Akismet checking to plugin 2023-10-20 16:49:46 -07:00
Eggbertx
553f49d783 Update Go and NPM dependencies 2023-10-20 09:41:37 -07:00
Eggbertx
8f9e64eb8e Add http requests and await/async to Lua plugins 2023-10-19 11:54:12 -07:00
dependabot[bot]
c795bf9286
Bump golang.org/x/net from 0.10.0 to 0.17.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.10.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.10.0...v0.17.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-11 22:30:24 +00:00
Eggbertx
c07d610ee5 Move duration parsing string to a separate repo 2023-08-28 12:33:43 -07:00
Eggbertx
51832082a9 Use testify assertions in test functions 2023-06-09 10:15:41 -07:00
Eggbertx
aca2a9abea Update dependencies 2023-06-02 13:04:12 -07:00
dependabot[bot]
9c0e24bbba
Bump golang.org/x/image from 0.0.0-20191009234506-e7c1f5e7dbb8 to 0.5.0
Bumps [golang.org/x/image](https://github.com/golang/image) from 0.0.0-20191009234506-e7c1f5e7dbb8 to 0.5.0.
- [Release notes](https://github.com/golang/image/releases)
- [Commits](https://github.com/golang/image/commits/v0.5.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-20 00:21:13 +00:00
Eggbertx
9c0d109978 Start using go 1.18, as required by an upgraded module 2023-03-19 16:55:01 -07:00
dependabot[bot]
eef3d3afb8
Bump golang.org/x/net from 0.0.0-20220826154423-83b083e8dc8b to 0.7.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.0.0-20220826154423-83b083e8dc8b to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/commits/v0.7.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-25 02:02:51 +00: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
aba84ceed2 Use router package instead of GET parameter for manage pages 2023-01-04 15:33:50 -08:00
Eggbertx
89457e47f7 Replace internal self-generated captcha tests with hcaptcha 2022-12-20 13:13:08 -08:00
Eggbertx
ee61fcb30f Replace gclog/gzlog with structured logging via zerolog 2022-09-04 14:27:14 -07:00
Eggbertx
5b5d5ab3ec Replace sqlmock with sqlite3 for unit testing gcsql package 2022-09-01 22:42:06 -07:00
Eggbertx
9107269a39 Upgrade Go version in vagrant and Docker, readd sqlite3 for real this time
requires intervention for vagrant to add the updated Go repo
2022-08-30 11:30:59 -07:00
Eggbertx
3fa042167e Add sqlmock driver and schema initialization 2022-08-28 19:26:03 -07:00
Eggbertx
495399eae7 Add simple plugin loader
(though it doesn't do anything useful yet)
2022-06-01 14:17:27 -07:00
Eggbertx
dd77ca9eff Use gzlog to rotate logs after they reach 1 MB
TODO: make the max log size configurable
2022-05-12 22:39:00 -07:00
Eggbertx
a83dd4b49c Update go module files 2022-03-20 17:32:44 -07:00
Eggbertx
9e82333c47 (re)add board creation related to issue #51 2022-01-16 13:30:33 -08:00
Eggbertx
e853ef205e Add basic pre2021 sql file for migration testing 2021-06-24 11:27:51 -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
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
59b7a10883 Increase opacity on Photon topbar, add pkg updates
Seems kinda overkill for a slight css change but it makes it clearer
2021-03-22 10:00:26 -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
f9756bf55e Change default gochan installation prefix path to /usr instead of /usr/local 2021-02-22 15:05:16 -08:00
Eggbertx
83d098aa68 Fix build script not actually exiting if build fails 2021-02-04 11:44:19 -08:00
Eggbertx
2e99788426 Finish build.py
Also remove powershell script, modify bootstrap script to use build.py
2020-11-04 20:11:51 -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
cd0ffb4f1f Add HTTP support to the vagrant VM 2020-10-11 14:59:06 -07:00
Eggbertx
cba60dc06b Clean up /manage handler, refer to manage functions as actions 2020-10-10 16:17:36 -07:00
Eggbertx
556a0e92f7 Update backend and frontend dependencies 2020-10-08 18:08:14 -07:00
Eggbertx
e375750e97 Replace strings.ReplaceAll with strings.Replace for compatibility 2020-07-27 18:19:56 -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
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
Eggbertx
19466dd8eb Properly log config issues if value isn't set and msg != "" 2020-05-09 09:26:54 -07: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