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

115 Commits

Author SHA1 Message Date
Timur Ismagilov
59deabd0d1 Reimplement Navititle with go templates
That was rough
2022-04-23 23:35:36 +03:00
Timur Ismagilov
a15eeca117 Isolate help 2022-04-09 11:28:57 +03:00
Timur Ismagilov
17e006322f Mycomarkup: Migrate to v4 2022-04-07 20:17:59 +03:00
Timur Ismagilov
2dcb1a5fe7 Backlinks: Isolate 2022-04-02 19:58:57 +03:00
Timur Ismagilov
cc01a3551d Misc: Move more stuff here, including title search 2022-04-02 11:00:10 +03:00
Timur Ismagilov
5bf3808039 Misc: Move more stuff here 2022-04-02 10:22:26 +03:00
Timur Ismagilov
f8fbc23202 Misc: Make the new package
It contains things like hypha list or about wiki pages
2022-04-02 09:38:16 +03:00
Timur Ismagilov
f9857768b7 Categories: Rename exported functions 2022-04-02 01:01:54 +03:00
Timur Ismagilov
c3fafb735f Categories, views: Refactor the list view 2022-04-01 23:52:56 +03:00
Timur Ismagilov
3dad3a3a4f Move package categories to the root level 2022-04-01 22:52:38 +03:00
Timur Ismagilov
78bae127b3 Use viewutil.Meta in many places 2022-04-01 22:51:15 +03:00
Timur Ismagilov
a8b3e3d43a Implement viewutil.Base 2022-03-29 23:59:36 +03:00
Timur Ismagilov
0446fc4794 Categories: Ignore empty hypha names and cat names in requests 2022-03-29 19:46:29 +03:00
Timur Ismagilov
3025aab445 Categories: Make /category/ and /category the same 2022-03-29 19:41:12 +03:00
Umar Getagazov
b15b2da6a0 primitive-diff: validate input 2022-03-27 00:30:05 +07:00
Timur Ismagilov
59bb34b920 Categories: Do not let anons add to/remove from categories 2022-03-26 18:31:13 +03:00
Timur Ismagilov
0a273f55f4 Admin: Port /admin/ to the new template approach 2022-03-26 18:26:14 +03:00
Timur Ismagilov
4d56657938 Categories: Localize the categories card 2022-03-22 16:57:25 +03:00
Timur Ismagilov
eb88cbf23e Views: Drop the *HTML suffix 2022-03-21 00:24:40 +03:00
Timur Ismagilov
b4c4b3fbf0 API: Get rid of *-json URLs
I doubt anybody really used the two. They will make a comeback later.
2022-03-21 00:10:09 +03:00
Timur Ismagilov
7865f77060 Categories: Add category list
* /category lists categories
* /category/<cat> shows the category
2022-03-20 21:24:54 +03:00
Timur Ismagilov
cc4f3c9aed Categories: Sanitize names before processing 2022-03-20 14:50:18 +03:00
Timur Ismagilov
9a60cc2386 Categories: Add addition to/removal from categories
* The result of operations is not saved on disk.
* TODO: handle bad names
2022-03-20 12:28:51 +03:00
Timur Ismagilov
ea0c2f35d1 Categories: Refactor a little
* Introduce views.Meta for passing common stuff around.
* Store both category-related templates in one HTML file, which is go:embed:ded.
* Fix a bug.
2022-03-20 12:04:08 +03:00
Timur Ismagilov
d2a4285e7f Categories: Implement category pages 2022-03-20 11:21:59 +03:00
Timur Ismagilov
72e0f445fd Rename attachment to media 2022-02-26 10:33:09 +03:00
Timur Ismagilov
4ab9a88437 Remove some unused stuff 2022-02-20 13:11:29 +03:00
Timur Ismagilov
4cb963d47d Play around with package shroom 2022-02-20 12:27:30 +03:00
Timur Ismagilov
41651f9e9b Break a lot of stuff
Starring:
* Fix some bugs for /rename/
* Introduce /delete/, /remove-media/
* Introduce some bugs for the methods mentioned above
2022-02-20 00:12:28 +03:00
Timur Ismagilov
eb9acb718e Break a lot of stuff
Starring:
* Broken error localization for now (got in the way)
* The title for error pages is the same for all errors (who cares anyway)
* New bugs
* The brand new /rename/ handler
2022-02-19 19:42:32 +03:00
Timur Ismagilov
7b51467495 Fix /rev/ for media hyphae 2022-02-19 11:31:54 +03:00
Timur Ismagilov
c0ac87cdbd Rename Hypher to Hypha 2022-02-19 11:31:54 +03:00
Timur Ismagilov
4890c21012 Fix /text/ 2022-02-19 11:31:54 +03:00
Timur Ismagilov
6fc5cf994e Rename MediaHypha to NonEmptyHypha 2022-02-19 11:31:54 +03:00
Timur Ismagilov
ae13fdab43 Delete DoesExist
Now type switches are enforced
2022-02-19 11:31:54 +03:00
Timur Ismagilov
a30d581bfd Rename Hypha to MediaHypha 2022-02-19 11:31:54 +03:00
Timur Ismagilov
154069091e Store hyphae as Hypher and cast to *Hypha only wheen need 2022-02-19 11:31:54 +03:00
Timur Ismagilov
128f40288b Play with Hypha.BinaryPath 2022-02-19 11:31:54 +03:00
Timur Ismagilov
927ac4f1da Use the Hypher interface in a lot of places 2022-02-19 11:31:54 +03:00
Umar Getagazov
9fca911718 Use Content-Security-Policy
And remove inline event handlers.
2022-02-18 16:09:00 +07:00
Timur Ismagilov
36edcf6b77 Help: Remove all mentions of Russian docs
I hope
2022-02-03 23:53:03 +05:00
Timur Ismagilov
27c321de0d Help: Display English docs for Russian locale
Change two lines if when (if) Russian docs are back
2022-02-01 15:44:17 +05:00
Timur Ismagilov
471805e6b4 Recent changes: Return the 100 cap 2021-12-31 02:10:00 +05:00
Timur Ismagilov
51f5ebf46d Auth: Refactor login and logout
GET /login and POST /login-data are merged into /login.

GET /logout and POST /logout-confirm are merged into /logout.

The logout form now looks more consistent with other forms.

Used io.WriteString instead of Fprint where it wasn't like that for some reason.
2021-12-31 02:07:39 +05:00
Timur Ismagilov
d75f96d5ce Rename /admin/user/new to /admin/new-user
There was no /admin/user path to begin with!
2021-12-31 01:39:31 +05:00
Timur Ismagilov
1f36af66a5 Move backlinks stuff to a separate module 2021-12-21 00:08:21 +03:00
Timur Ismagilov
dbb45b2ded
Merge branch 'master' into mycomarkup-3-migrate-and-test 2021-11-06 01:57:18 +05:00
Elias Bomberger
114e18bcbd add feed grouping (#61) 2021-10-25 20:58:25 -04:00
Mikhail Chekan
0354945502 Translate more error messages
Featuring own fork of go-localize! It's not in dependencies though.
2021-10-10 11:27:35 +07:00
Timur Ismagilov
5dd74da8ed Migrate to Mycomarkup v3
Some stuff is broken, but at least it compiles. Funnily enough, the API turned out to be not broken. This is surprising.
2021-10-05 23:10:28 +03:00