1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-04 18:19:54 +00:00
Commit Graph

79 Commits

Author SHA1 Message Date
Timur Ismagilov
a0ec4f5fbf Hopefully fix some bugs on Windows 2024-06-11 02:52:47 +03:00
Umar Getagazov
945cdc934c Fix hyphaNamePattern regexp
There wasn't actually a vulnerability AFAIC because hypha names are
passed through CanonicalName which strips those characters, but fix it
anyway for the sake of correctness.
2022-08-21 16:19:37 +03:00
Timur Ismagilov
ac4c4d665c Tree: Drop the sibling sidebar
Because of that, I could reimplement the rest of the package tree more straight-forward. Also deleted the package iteration because it is no longer used anywhere.
2022-08-06 13:45:10 +05:00
Timur Ismagilov
7a98d29c74 Editor: Fix handling empty input 2022-06-11 12:36:45 +03:00
Timur Ismagilov
5e2c20c559 Move stuff around 2022-06-06 17:41:33 +03:00
Timur Ismagilov
2dcb1a5fe7 Backlinks: Isolate 2022-04-02 19:58:57 +03:00
Timur Ismagilov
3dad3a3a4f Move package categories to the root level 2022-04-01 22:52:38 +03:00
Timur Ismagilov
b6cde49f9d Categories: Clean up deleted category records 2022-03-29 19:53:08 +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
cdeb378327 Categories: Save to disk after changes 2022-03-20 14:48:16 +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
f5cbd5622d Categories: Show pre-populated categories
They are useless now, and cannot be edited. Also, not properly styled. You get the idea though.
2022-03-19 23:57:33 +03:00
Timur Ismagilov
94fa2e5688 Categories: Draft the API for categories package 2022-03-15 23:17:40 +03:00
Timur Ismagilov
3852d9fdea Fix the bug with renaming 2022-03-07 20:58:03 +03:00
Timur Ismagilov
72e0f445fd Rename attachment to media 2022-02-26 10:33:09 +03:00
Timur Ismagilov
d8699d46c0 Backlinks: Fix backlinks for media and empty hyphae 2022-02-26 09:42:54 +03:00
Timur Ismagilov
dea370c71d Move hyphae.Iteration to a separate package 2022-02-20 12:40:16 +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
c0ac87cdbd Rename Hypher to Hypha 2022-02-19 11:31:54 +03:00
Timur Ismagilov
7fe232d742 Refactor media uploading 2022-02-19 11:31:54 +03:00
Timur Ismagilov
ee233b9577 Fix textual hypha creation 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
002e9f7a93 Delete uploadHelp, refactor UploadText 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
6b3e8a245c Introduce EmptyHypha 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
d0dbbe4714 Play with stuff 2022-02-19 11:31:54 +03:00
Timur Ismagilov
1c317e39aa Play with Hypha.Name 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
Timur Ismagilov
ff10d577d2 Start the ontology refactoring 2022-02-19 11:31:54 +03:00
Timur Ismagilov
86d1a00bfc Implement the rocket link migration algorithm 2022-02-01 15:11:50 +05:00
Timur Ismagilov
b453d71364 Backlinks: Make less things exported, better wording 2021-12-31 00:59:28 +05:00
Timur Ismagilov
1f36af66a5 Move backlinks stuff to a separate module 2021-12-21 00:08:21 +03:00
Timur Ismagilov
fbcbd0e445 Make some functions unexported 2021-12-20 23:59:23 +03:00
Timur Ismagilov
dbb45b2ded
Merge branch 'master' into mycomarkup-3-migrate-and-test 2021-11-06 01:57:18 +05:00
hugmouse
94706e8468 Use zero-allocation approach for empty slices
For further reading checkout https://github.com/golang/go/wiki/CodeReviewComments#declaring-empty-slices
2021-10-29 16:08:02 +07:00
Umar Getagazov
649a6b91cb Improve validation helpers
Still, there are a lot of bugs in the shroom module to be fixed later.
2021-10-27 13:43:01 +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
Mikhail Chekan
85c936d94a Housekeeping with linter
'I do as the golint guides'
2021-10-02 01:14:26 +08:00
Timur Ismagilov
51704b72cd Add /rev-text/ 2021-09-23 12:36:54 +03:00
Timur Ismagilov
7347d3d7db Migrate to Mycomarkup v2 uhhhhhhhh
Bloody hell mate. I'm losing my patience
2021-09-12 11:59:10 +03:00
Timur Ismagilov
44596e251c Modify Chekoopa's code for no real reason
I made some functions non-exported.

I like your approach with the interface for backlink index operations!
2021-09-05 22:28:20 +03:00
Mikhail Chekan
04124f721a Tidy up indexing routine (a little bit) 2021-09-05 15:16:07 +08:00
Mikhail Chekan
1c1260569b Implement async backindex update 2021-09-01 19:25:47 +05:00
Mikhail Chekan
b469b8f57d Add backlinks counter 2021-09-01 19:25:47 +05:00