1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-10-30 19:56:16 +00:00
Commit Graph

21 Commits

Author SHA1 Message Date
Umar Getagazov
9fca911718 Use Content-Security-Policy
And remove inline event handlers.
2022-02-18 16:09:00 +07:00
Mikhail Chekan
ffb43c28ea Tidy up some more 2021-10-02 01:34:56 +08:00
Mikhail Chekan
85c936d94a Housekeeping with linter
'I do as the golint guides'
2021-10-02 01:14:26 +08:00
Umar Getagazov
33650e965c Run gofmt 2021-09-29 21:56:17 +07:00
Mikhail Chekan
0780131c00 Initial l18n support 2021-09-27 16:45:23 +08:00
Mikhail Chekan
820de6a0aa Implement backlinks core (index, i12n and viewing) 2021-09-01 19:25:47 +05:00
handlerug
ea1f0a8e51 Refactor /recent-changes/ handlers 2021-07-25 20:16:34 +07:00
handlerug
49b0a35304 Refactor admin routes
They're not perfect, I still don't like them, but I can't think of a
good solution right now. I'm going to thinking about the best way of
doing web stuff for some time.
2021-07-16 01:58:27 +07:00
handlerug
3ee21e312d Refactor the locking mechanism 2021-07-16 01:14:05 +07:00
handlerug
6fdab4be34 Migrate to gorilla/mux for web needs
What a wonderful package!
2021-07-16 00:47:00 +07:00
Timur Ismagilov
938a9e832d Implement primitive search
Basically, it looks if the query is a substring of hypha names
2021-07-12 22:14:08 +05:00
Timur Ismagilov
5d45ae67d4 Make the lock work
There is a new config field: Authorization.Locked.

I am a little bit sorry for how actually the lock is implemented. I've added the check on almost every handler there is. Good luck maintaining that ❤️
2021-07-11 00:06:07 +05:00
handlerug
190a1d6ba8
Extract robots.txt into a file, simplify MIMEs 2021-06-23 22:44:27 +07:00
handlerug
41a5da7f56
Fix a typo -> serve CSS with proper Content-Type 2021-06-23 22:36:14 +07:00
Timur Ismagilov
2ce25811af Reintroduce favicons
Store it at the static folder, like before.

I created a new config field for that originally, but then I understood that it is to be thrown away anyway when the Structure comes, so decided to keep it the old way.
2021-06-16 01:35:24 +05:00
handlerug
eefa797097
Replace /page/ with /hypha/ everywhere 2021-06-14 14:20:37 +07:00
handlerug
839f8bc2d6
New static files system
assets.qtpl is no more! Now you can just add files to static/ folder,
make sure the extension is registered in static.go (a shortcoming
that'll be addressed in future Go versions), and you're done! It
searches the local file system first, then falls back to the files
embedded with the binary (in the static/ folder).
2021-06-12 20:58:04 +07:00
Timur Ismagilov
fcd4b9b853 Change URLs for static assets
/static/... → /assets/...
2021-05-22 23:10:32 +05:00
Timur Ismagilov
b4dd2dcfad Do nothing in particular 2021-05-11 15:14:00 +05:00
Timur Ismagilov
d69ce77251 Reorganise and document the web stuff a little 2021-05-09 16:09:27 +05:00
Timur Ismagilov
5b4ff5ef68 Move all web-related stuff to a new module 2021-05-09 15:42:12 +05:00