266 Commits

Author SHA1 Message Date
e85a06582d Update module github.com/stretchr/testify to v1.10.0 2025-01-19 18:49:03 +00:00
ngn
1614959f1b Merge pull request 'Update module github.com/alecthomas/chroma to v2' (#8) from renovate/github.com-alecthomas-chroma-2.x into custom
All checks were successful
Build and publish the docker image / build (push) Successful in 1m8s
Reviewed-on: #8
2025-01-19 18:43:27 +00:00
ngn
ad95d68c20 Merge branch 'custom' into renovate/github.com-alecthomas-chroma-2.x 2025-01-19 18:43:13 +00:00
ngn
4855f59f7c Merge pull request 'Update module github.com/golang-jwt/jwt/v4 to v5' (#9) from renovate/github.com-golang-jwt-jwt-v4-5.x into custom
Some checks failed
Build and publish the docker image / build (push) Has been cancelled
Reviewed-on: #9
2025-01-19 18:43:05 +00:00
ngn
a8cff80d5c Merge branch 'custom' into renovate/github.com-golang-jwt-jwt-v4-5.x 2025-01-19 18:42:50 +00:00
ngn
49974d7529 Merge pull request 'Migrate renovate config' (#10) from renovate/migrate-config into custom
Some checks failed
Build and publish the docker image / build (push) Has been cancelled
Reviewed-on: #10
2025-01-19 18:42:43 +00:00
07fc0f7bbb Migrate config renovate.json 2025-01-19 18:42:18 +00:00
fd72421daf Update module github.com/golang-jwt/jwt/v4 to v5 2025-01-19 18:42:15 +00:00
2b67a50bf5 Update module github.com/alecthomas/chroma to v2 2025-01-19 18:42:12 +00:00
ngn
68c95dc4a0
[skip ci] fix renovate config formatting
Signed-off-by: ngn <ngn@ngn.tf>
2025-01-19 21:40:31 +03:00
ngn
a9af315363
increase renovate prHourlyLimit
All checks were successful
Build and publish the docker image / build (push) Successful in 1m4s
Signed-off-by: ngn <ngn@ngn.tf>
2025-01-19 21:38:26 +03:00
ngn
453920d266 Merge pull request 'Update module github.com/golang-jwt/jwt/v4 to v4.5.1' (#1) from renovate/github.com-golang-jwt-jwt-v4-4.x into custom
All checks were successful
Build and publish the docker image / build (push) Successful in 1m12s
Reviewed-on: #1
2025-01-19 18:28:49 +00:00
ngn
d95a2b2729 Merge branch 'custom' into renovate/github.com-golang-jwt-jwt-v4-4.x 2025-01-19 18:28:41 +00:00
ngn
64baf8441b Merge pull request 'Update module github.com/PuerkitoBio/goquery to v1.10.1' (#2) from renovate/github.com-puerkitobio-goquery-1.x into custom
Some checks failed
Build and publish the docker image / build (push) Has been cancelled
Reviewed-on: #2
2025-01-19 18:28:14 +00:00
23bb8bd23f Update module github.com/PuerkitoBio/goquery to v1.10.1 2025-01-19 18:01:12 +00:00
d978835c1c Update module github.com/golang-jwt/jwt/v4 to v4.5.1 2025-01-19 18:01:07 +00:00
ngn
181037bf95
add renovate config
All checks were successful
Build and publish the docker image / build (push) Successful in 1m7s
Signed-off-by: ngn <ngn@ngn.tf>
2025-01-19 14:17:17 +03:00
ngn
c08e49ee3a
add modified source code link
All checks were successful
Build and publish the docker image / build (push) Successful in 57s
Signed-off-by: ngn <ngn@ngn.tf>
2025-01-19 04:18:19 +03:00
ngn
31354dfca4
[skip ci] cleanup even more stuff
Signed-off-by: ngn <ngn@ngn.tf>
2025-01-19 04:05:30 +03:00
ngn
66cefb7223
fix the readme formatting
All checks were successful
Build and publish the docker image / build (push) Successful in 59s
Signed-off-by: ngn <ngn@ngn.tf>
2025-01-19 03:58:48 +03:00
ngn
dddc4e9b8c
[skip ci] fix the action badge url
Signed-off-by: ngn <ngn@ngn.tf>
2025-01-19 03:57:07 +03:00
ngn
cbe52eb257
use gitea.sha instead of env.GITEA_SHA
Some checks failed
Build and publish the docker image / build (push) Failing after 2m24s
Signed-off-by: ngn <ngn@ngn.tf>
2025-01-19 03:54:14 +03:00
ngn
1d1b6da633
use the short commit id for the docker tag
Some checks failed
Build and publish the docker image / build (push) Failing after 8s
Signed-off-by: ngn <ngn@ngn.tf>
2025-01-19 03:51:23 +03:00
ngn
99a3fc5209
update the docker build workflow
Some checks failed
Build and publish the docker image / build (push) Failing after 8s
Signed-off-by: ngn <ngn@ngn.tf>
2025-01-19 03:45:09 +03:00
ngn
94b940d186
general cleanup
Some checks failed
Build and publish the docker image / build (push) Failing after 1m30s
Signed-off-by: ngn <ngn@ngn.tf>
2025-01-19 03:20:53 +03:00
vlnst
6f984fe7fd
Add "word-wrap: break-word" for links (#159)
Co-authored-by: Ftonans <77411099+Ftonans@users.noreply.github.com>
2024-11-15 03:08:31 -05:00
Leo Heitmann Ruiz
0eda3031e0
Add SVG logo (#149)
* Add codecircles.svg

* Regenerate codecircles.webp from codecircles.svg

* Add SVG favicon

* Use SVG logo instead of WebP
2024-10-28 18:47:31 -04:00
Nebula
4160cec21d
Add canine.tools (#166)
* Update whatever.social, add iii.st

* Update instances.json

* Add canine.tools
2024-10-21 18:51:13 -04:00
Nebula
4e14f432f5
Update whatever.social, add iii.st (#165)
* Update whatever.social, add iii.st

* Update instances.json
2024-10-21 04:18:05 -04:00
Emppu
9e94534530
Add ao.bunk.lol (#163) 2024-10-21 03:38:41 -04:00
Jeffrey Serio
137a553596
anonoverflow.nirn.quest --> anonoverflow.hyperreal.coffee (#156) 2024-10-09 04:10:15 -04:00
vlnst
6e0d2d8a64
Update instances.json (#157)
Update bloat.cat instance location
2024-10-09 04:09:52 -04:00
Gitro
4d49513aa1
docs: new instance (#158) 2024-10-09 04:09:36 -04:00
SudoVanilla
57ba13ce8a
Update SudoVanilla URL (#154) 2024-08-24 14:41:48 -04:00
Aleksandr
9babb62afc
add support for arm64 docker builds using Buildx+QEMU (#152)
Co-authored-by: flexxxxer <bahx4pc@gmail.com>
2024-08-21 20:55:14 -04:00
httpjamesm
455b9c1ec6
Instance operator change - soflow.nerdvpn.de (#148) 2024-07-25 13:00:47 -07:00
httpjamesm
4ce99662f3
Update README link to Proxy_Redirect (#147) 2024-07-25 12:56:46 -07:00
httpjamesm
1a7635ccef
Add version endpoint (#146) 2024-07-25 10:51:05 -07:00
httpjamesm
4c971f3121
Add theme support using environment variable (#145)
* Add theme support using environment variable

* Propagate theme variable to template in options.go

Propagate the `theme` variable from the environment to the template in `src/routes/options.go`

* Retrieve the `theme` variable from the environment using `os.Getenv("THEME")`
* Set the `theme` variable in the `gin.H` map when rendering the `home.html` template


---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/httpjamesm/AnonymousOverflow/pull/145?shareId=6397c9b4-9450-425c-bbbe-019425965d2b).

* Move all theme environment variable logic to a utils function

Move theme environment variable logic to a utils function and update routes to use it.

* Add `GetThemeFromEnv` function in `src/utils/theme.go` to derive the theme from environment variables and default to "auto" if not set.
* Update `src/routes/home.go` to import and use `GetThemeFromEnv` in the `GetHome` function.
* Update `src/routes/options.go` to import and use `GetThemeFromEnv` in the `ChangeOptions` function.
* Update `src/routes/question.go` to import and use `GetThemeFromEnv` in the `ViewQuestion` function.


---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/httpjamesm/AnonymousOverflow/pull/145?shareId=a0dab6f3-027c-4f6e-85fe-60e7675d0e70).

* fix: imports removed by copilot

* fix: override theme in posthome

* style: reduced repetition in themes with common vars
2024-07-25 10:50:06 -07:00
httpjamesm
e35ffdcc07
Instance domain change (#144) 2024-07-25 09:46:55 -07:00
Nuno
6a2ce509c1
feat: add healthcheck (#141)
* feat: add healtcheck app

Signed-off-by: rare-magma <rare-magma@posteo.eu>

* feat: add healthz endpoint

Signed-off-by: rare-magma <rare-magma@posteo.eu>

* ci: add healthcheck directive to dockerfile

Signed-off-by: rare-magma <rare-magma@posteo.eu>

---------

Signed-off-by: rare-magma <rare-magma@posteo.eu>
2024-07-03 14:40:40 -04:00
httpjamesm
e409176642
media query theme (#139)
* feat: use css media query to derive theme

* fix: rename alt for toggle images

* feat: remove no-cache middleware
2024-06-20 00:18:22 -04:00
jan Tawi Akemi
b0ae8a50b5
add instance: https://anonflow.aketawi.space/ (#138)
Co-authored-by: jan Tawi Akemi <aketawi@proton.me>
2024-06-19 12:05:10 -04:00
httpjamesm
e278368ab7
fix: set answer ID to data-answerid value (#135) 2024-06-16 14:05:02 -04:00
httpjamesm
80b45bf034
Support exchange shortened URLs (#133)
* feat: support shortened exchange urls

* feat: add shortener processing for exchange /a/:id conventions
2024-06-13 02:18:51 -04:00
httpjamesm
bcc932bd22
docs: remove deprecated new instance issue template 2024-06-13 01:46:28 -04:00
httpjamesm
e19717ff32
docs: add default label to bug report issue template 2024-06-13 01:46:22 -04:00
httpjamesm
6ce4817489
docs: feature request issue template 2024-06-13 01:45:46 -04:00
httpjamesm
b2a675b94c docs: new instances #120 #122 #125 #127 #129 2024-06-11 01:59:19 -04:00
httpjamesm
7596516574
Instance Hub (#131)
* feat: instances.json file

* feat: rename admins to operators

* feat: onion array of instances

* feat: i2p section

* fix: rename to operators

* docs: ao hub link in readme

* Merge branch 'main' into feature/instance-hub
2024-06-11 01:47:46 -04:00