1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-12 13:30:26 +00:00
Commit Graph

35 Commits

Author SHA1 Message Date
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