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
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
fedb49fef4
Enforce UTF-8 and set correct MIME types for feeds
2021-09-29 22:02:30 +07:00
Umar Getagazov
33650e965c
Run gofmt
2021-09-29 21:56:17 +07:00
Mikhail Chekan
44f6fbe0b2
Fix new hypha l18n
2021-09-29 12:51:24 +07:00
Mikhail Chekan
bca1c23d36
Merge l18n with master updates
2021-09-27 17:24:02 +08:00
Mikhail Chekan
0780131c00
Initial l18n support
2021-09-27 16:45:23 +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
Mikhail Chekan
04124f721a
Tidy up indexing routine (a little bit)
2021-09-05 15:16:07 +08:00
Mikhail Chekan
820de6a0aa
Implement backlinks core (index, i12n and viewing)
2021-09-01 19:25:47 +05:00
Mikhail Chekan
f9a7e6a4c7
Fix redirect after renaming
2021-08-23 16:17:14 +08:00
Timur Ismagilov
18179f1c7f
Get rid of " in some places
...
Violently
2021-08-12 17:12:53 +05:00
handlerug
19019a0d13
Always show "Manage attachment", fix Firefox bug
2021-08-11 16:20:29 +07:00
Timur Ismagilov
b7cbe04cfc
Show revisions of deleted hyphae
2021-07-30 19:16:58 +05:00
handlerug
ea1f0a8e51
Refactor /recent-changes/ handlers
2021-07-25 20:16:34 +07:00
Timur Ismagilov
fc6556a819
Finally rename binary part to attachment
...
How could we have missed it
2021-07-25 18:08:59 +05:00
Timur Ismagilov
87e0045d80
Write the whitelist help article and fix some help bugs
...
The bugs were introduced by the new routing system...
2021-07-24 16:30:28 +05:00
handlerug
eb22cf206c
Migrate some more handlers to gorilla/mux
2021-07-17 21:17:09 +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
bouncepaw
5e450612a1
Mark user's source: local or telegram
2021-07-15 08:50:45 +00:00
bouncepaw
8059674925
Improve some forms
2021-07-15 08:50:45 +00:00
bouncepaw
df78f75efb
Implement initial Telegram integration
2021-07-15 08:50:45 +00:00
Timur Ismagilov
551876dd32
Add lock and status to the search handlers
2021-07-12 23:00:53 +05:00
Timur Ismagilov
901494a70e
Add /title-search-json/
...
Can be used for for external searching chat bots
2021-07-12 22:55:36 +05:00
Timur Ismagilov
6a26c08d02
Rename primitive search to title search
...
Makes more sense, actually
2021-07-12 22:14:08 +05:00
Timur Ismagilov
ba0b12a803
Add the search form to the top bar
...
Also change /primitive-search/ syntax
2021-07-12 22:14:08 +05: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
bea80887f4
Add some styling to help
...
Now it looks more like usual hyphae
2021-07-12 14:58:20 +05:00
Timur Ismagilov
53ae1a6e7a
Add the help system
...
No documentation yet. This branch will eventually be merged into master
2021-07-11 01:02:16 +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
Timur Ismagilov
d8f4f40f52
Implement the lock page
...
It is unused now, you can take a look at it on /lock
2021-07-11 00:06:07 +05:00
handlerug
80414dd748
mycorrhiza.lesarbr.es -> mycorrhiza.wiki
2021-07-05 11:22:17 +07:00
handlerug
c27950aeaa
Ability to delete user in the user panel
2021-07-02 21:04:00 +07:00
handlerug
1c24450a8f
New user form in /admin/users/
2021-07-02 19:02:42 +07:00
handlerug
d4fea3d24a
Add -create-admin flag
...
It allows for interactive creation of admin account from the terminal
for new wikis. Because we have a chicken-and-egg problem here with the
user panel -- you need an admin account to appoint someone as an admin,
right?
2021-07-02 17:25:13 +07:00
handlerug
3dccbd602c
Migrate away from ioutil
2021-07-02 15:29:55 +07:00
handlerug
b87583ef28
Drop fixed authorization
...
Important changes:
- UseFixedAuth is now UseAuth and toggles all kinds of authorization and
registration
- UseRegistration is now AllowRegistration to better reflect the meaning
- LimitRegistration is now RegistrationLimit because it's not a boolean,
it's a value (not "limit registration?", but "registration limit is
...")
- registered-users.json is now users.json, because all users are stored
there
- user.AuthUsed is dropped in favor of new cfg.UseAuth which has the
same meaning
I hope I have not forgotten anything.
2021-07-02 15:20:03 +07:00
handlerug
7073f9bce0
Actually check for illegal username, pretty errors
2021-07-01 15:45:03 +07:00
Timur Ismagilov
b8420c81a8
Link the user panel from the admin panel
2021-06-29 23:43:04 +05:00
handlerug
11e98b2368
Working user panel
...
See https://mycorrhiza.wiki/hypha/idea/user_panel
It's not pretty, but it works. The next step is to make it look good.
2021-06-29 22:10:48 +07:00
handlerug
477c449a05
Initial user panel draft
2021-06-29 17:34:36 +07: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
handlerug
7b2423ec40
New structure
2021-06-23 21:01:34 +07:00
handlerug
2f7ea74866
Revert "Rename WikiDir to WikiGitDir"
...
This reverts commit 839b1e2448
.
2021-06-16 19:29:01 +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
Timur Ismagilov
839b1e2448
Rename WikiDir to WikiGitDir
...
Rhymes well with the forecoming Structure.
2021-06-15 01:30:17 +05:00
handlerug
679588abd5
Merge branch 'master' into master
2021-06-14 14:27:28 +07:00
handlerug
eefa797097
Replace /page/ with /hypha/ everywhere
2021-06-14 14:20:37 +07:00
Alex Gu
1c30f82445
Add Edit description
2021-06-14 03:47:11 +03: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
e1f6a64ace
Migrate to Mycomarkup v0.5.0
...
Found out that the system that generates OpenGraph does not take binary hyphae's image attachments into account. Gotta fix that, perhaps.
Also red links are still not fixed.
Also, nested links do not work as intended in some cases.
What exactly did v0.5.0 improve?
2021-06-12 14:42:13 +05:00
Timur Ismagilov
b95729df39
Migrate to mycomarkup v0.4.0
2021-05-25 12:11:16 +05:00
Timur Ismagilov
ec1eafc0e4
Migrate to mycomarkup v0.3.3
...
Some things got fixed:
* OpenGraph is (mostly) back
* RocketLink display text is back
But:
* All links are blue, but only some of they should be
2021-05-24 23:19:05 +05:00
Timur Ismagilov
4fcf5abb37
Migrate to mycomarkup v0.3.0
...
Break a lot of things as well:
* OpenGraph is temporarily removed
* Link coloring is broken
* RocketLink display text is lost for some reason
* List nesting is lost?
Some things got fixed though:
* External link icons are back
And new features:
* Multiline list entries (tasty)
2021-05-24 14:33:57 +05:00
Timur Ismagilov
fcd4b9b853
Change URLs for static assets
...
/static/... → /assets/...
2021-05-22 23:10:32 +05:00
Timur Ismagilov
dbae2b3547
Update mycomarkup to v0.1.0
2021-05-13 23:13:11 +05:00
Timur Ismagilov
da6ea25bb6
Delete the markup module, depend on the library instead
...
The old module had been moved to the library, but I changed it a little, so now both projects are broken. I sure do love programming.
2021-05-12 18:34:24 +05:00
Timur Ismagilov
b4dd2dcfad
Do nothing in particular
2021-05-11 15:14:00 +05:00
Timur Ismagilov
a1852d363e
Refactor and document some stuff
2021-05-11 13:33: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