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
Solomon
215f24cd53
fix: scrape answer comments ( #128 )
2024-06-07 15:50:33 -04:00
SudoVanilla
a4d9402a57
Update link to SudoVanilla instance ( #124 )
2024-05-18 13:51:06 -04:00
httpjamesm
c2a9b4368a
feat: only show question answers if they exist ( #119 )
2024-05-05 15:40:01 -04:00
httpjamesm
67c09e5e89
chore: version 1.13.0
2024-05-05 15:39:07 -04:00
httpjamesm
8174f2ee44
fix: remove alt from homepage logo, add "logo" alt to question header ( #116 )
...
* fix: remove alt from homepage logo, add "logo" alt to question header
* fix: set logo alt on question.html to "AnonymousOverflow home"
2024-05-05 15:23:09 -04:00
McSinyx
b568c52999
Let title hyphenate to avoid x-overflow on mobile ( #113 )
2024-04-25 01:12:43 -04:00
McSinyx
84991a6486
Wrap Answers heading on narrow screens ( #112 )
...
Otherwise it would overflow on the x-axis.
2024-04-25 01:11:25 -04:00
McSinyx
e020639a3b
Set maximum width to 40rem across screen sizes ( #111 )
...
* Set maximum width to 40rem across screen sizes
Some rules are removed to correct the bounding box size
in browser inspector and fix the overflow on the x-axis.
* Remove unused div.parent
(The diff should be viewed --ignore-all-space)
2024-04-25 01:09:43 -04:00
Patrick Wu
3a508ddbd4
A fix and a small refactor ( #114 )
...
1. fix code not visible in light theme;
2. use hex code instead of rgb code for all.
2024-04-24 12:49:26 -04:00
Arya K
42b1c93737
Update Location for Project Segfault instances ( #109 )
2024-04-22 19:20:53 -04:00
extremelyonline
5a304fb94c
Update README.md ( #110 )
...
Remove a.opnxng.com as it is rate-limited
2024-04-22 19:20:41 -04:00
httpjamesm
be3535eef2
docs: add instances #98 #100
2024-04-06 15:52:19 +00:00
httpjamesm
2a30a7d270
docs: update bloat.cat notes #74
2024-04-06 15:52:19 +00:00
httpjamesm
b4da9d56a5
chore: upgrade deps ( #106 )
2024-04-06 11:46:39 -04:00
Achraf RRAMI
6d2830fcc2
Add redirect endpoint for shortened urls with answer id ( #105 )
2024-04-06 00:45:06 -04:00
httpjamesm
07d819a849
fix: upgrade to 1.22.1-alpine3.19 ( #103 )
2024-03-28 20:17:22 -04:00
httpjamesm
bca87a89ad
docs: new readme screenshots
2024-03-28 20:11:38 -04:00
httpjamesm
0f67fcf66f
Merge branch 'main' of https://github.com/httpjamesm/AnonymousOverflow
2024-03-28 20:03:36 -04:00
httpjamesm
4c3996542c
docs: version 1.12.0
2024-03-28 20:03:34 -04:00
httpjamesm
a701810e11
fix: set font-src to 'self' on questions ( #101 )
2024-03-28 20:03:17 -04:00
Solomon
23b8ed8899
improvement: use lang-* classes declared in snippet markup ( #97 )
...
* improvement: use lang-* classes declared in snippet markup
* fix: don't require snippet lang classes in code blocks
* fix: constrain greedy code block match
2024-03-28 19:59:28 -04:00
httpjamesm
bf5300706e
docs: #82 add snine
2024-03-25 13:09:36 -04:00
httpjamesm
1e659c550a
docs: #75 update r4fo instance info + onion
2024-03-25 13:08:39 -04:00
httpjamesm
2ade374482
docs: #74 update bloatcat instance info
2024-03-25 13:07:29 -04:00
Matt Fellenz
94032f4f90
Implement external exchanges ( #99 )
...
* Implement external exchanges
* test: translateUrl test cases
* fix: double slash bug in translateUrl
---------
Co-authored-by: httpjamesm <github@httpjames.space>
2024-03-25 13:05:24 -04:00
Solomon
89126a7377
fix: keep HTML escaped ( #96 )
2024-03-25 12:47:59 -04:00
Nebula
0d7355bd46
Update whatever.social locations ( #94 )
2024-03-18 02:34:09 -04:00
httpjamesm
f7209802ce
Merge branch 'origin/main'
2024-03-09 12:10:29 -05:00
httpjamesm
880f27b786
docs: version 1.11.0
2024-03-09 12:10:18 -05:00
httpjamesm
4c62f9bc4f
feat: allow answerId in shorthand overflow URL ( #91 )
2024-03-09 12:09:17 -05:00
httpjamesm
e82646635e
Replace StackOverflow Links ( #90 )
...
* feat: replace stackoverflow and exchange links
* fix: replace stackoverflow.com links with path
* feat: run stack overflow link replacer on process
* feat: process HTML on comment text
2024-03-09 12:06:41 -05:00
httpjamesm
ff66f41f47
fix: derive currentUrl from actual page path ( #89 )
2024-03-09 11:28:45 -05:00
httpjamesm
01b960cd43
fix: add stackoverflow flex classes ( #88 )
2024-03-09 11:20:10 -05:00
ngn
0058aea03b
add ao.ngn.tf to README ( #83 )
2024-03-09 11:16:32 -05:00
httpjamesm
42ad68fe34
refactor: highlight code blocks function
2024-03-09 11:14:39 -05:00