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
Mikhail Chekan
7c41403eee
Implement backlinks updating
2021-09-01 19:25:47 +05:00
Mikhail Chekan
820de6a0aa
Implement backlinks core (index, i12n and viewing)
2021-09-01 19:25:47 +05:00
Mikhail Chekan
0b2e52b99b
Separate pathographic sorting code
2021-09-01 19:25:47 +05:00
Timur Ismagilov
f54cfe44ff
Drop the hypha tabs
...
TODO:
* Make the hotkeys work again
* Compensate the lack of the tabs on other pages
2021-08-09 00:19:55 +05:00
Timur Ismagilov
b7cbe04cfc
Show revisions of deleted hyphae
2021-07-30 19:16:58 +05:00