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

219 Commits

Author SHA1 Message Date
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
dd3f2c698a Siblings: Disable the sidebar by default 2022-02-19 12:54:20 +03:00
Timur Ismagilov
74099922a3 Update version 2022-02-19 12:18:45 +03:00
Timur Ismagilov
0eb3ba9b45 Do not show siblings and subhyphae on revision pages
It didn't really make sense before
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
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
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
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
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
32cde8c808 Delete the jump buttons 2022-02-01 15:57:29 +05:00
Timur Ismagilov
9950956654 Editor: Split the toolbar into two parts
Better usage of space, actually
2022-02-01 15:38:47 +05:00
Timur Ismagilov
000dca0cda Change version to 1.8.0
The release is soon...
2022-01-28 00:28:00 +05:00
Timur Ismagilov
e2d206c25a Fix admin panel link 2022-01-09 02:13:36 +05:00
bouncepaw
baf1b0d137 Remove the admin panel from the top bar
It is available in the profile now
2022-01-02 23:34:09 +05:00
bouncepaw
0eecccdf94 Add admin panel link to administrators' profiles 2022-01-02 23:31:54 +05:00
bouncepaw
c69d4946ec Add log out link to current user's profile
For the first time, you can log out from Mycorrhiza!
2022-01-02 23:21:08 +05:00
bouncepaw
9ade6a34e0 Remove ellipses (...) from help topic list
No one really understood what they meant.

Also, please stop removing chekoopa's localizer package from
dependencies. It keeps coming back when I make dev.
2022-01-02 22:56:34 +05:00
Timur Ismagilov
1f4dfa1246 Mycomarkup: Migrate to v3.5.2 2021-12-31 02:42:21 +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
0326816086 Backlinks: Improve /backlinks/
* There is a link to the hypha in question in the heading, similar to other pages related to a selected hypha.
* The locale keys (?) are reworded to get rid of the word ‘query’.
* The phrasing is more precise. Kinda verbose doe.
2021-12-31 01:16:09 +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
bc77619105 Help: Write the config file doc in English 2021-11-30 21:20:09 +03:00
Timur Ismagilov
dbdb5f7704 Toolbar: Change the heading buttons
Before: ## heading, ### heading

After: = heading, == heading

Now this release can be called 1.7!
2021-11-30 20:41:48 +03:00
Timur Ismagilov
f32a750260 Change version: 1.6.0 ➡️ 1.7.0 2021-11-11 01:44:00 +03:00
Timur Ismagilov
8246a8473c Dump Mycomarkup
Now it doesn't die because of mutual transclusion
2021-11-06 02:32:03 +05:00
Timur Ismagilov
dbb45b2ded
Merge branch 'master' into mycomarkup-3-migrate-and-test 2021-11-06 01:57:18 +05:00
Elias Bomberger
bd1b5c50a0 Add English help page for feeds.
(is it detailed enough?)
2021-10-26 23:28:56 -04:00
Timur Ismagilov
891cc1f87c v1.5.0 ⇢ v1.6.0 2021-10-05 23:11:43 +03:00
Elias Bomberger
4eaec355ca Make /user-list return sorted results 2021-10-01 16:42:25 -04:00
Elias Bomberger
039fcd2b3a Make /list return sorted results 2021-10-01 16:40:49 -04: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
71b404c4f0 Write docs for prevnext 2021-09-23 12:17:50 +03:00
Timur Ismagilov
84cb140cf8 Add [[Link | Title]] button 2021-09-12 11:29:21 +03:00
Timur Ismagilov
a220ca2002 Reword something in the toolbar 2021-09-05 14:58:41 +03:00
Mikhail Chekan
b469b8f57d Add backlinks counter 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
Timur Ismagilov
9f48ded254 Dump version 2021-09-01 17:19:39 +03:00
handlerug
19019a0d13 Always show "Manage attachment", fix Firefox bug 2021-08-11 16:20:29 +07:00
Timur Ismagilov
9d989db77d Do not show the edit button for anons 2021-08-09 00:59:44 +05:00
Timur Ismagilov
3a45ad4330 Compensate the lack of the tabs on other pages 2021-08-09 00:38:41 +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
9eae5e6256 Recent changes: Make the hash span, not link 2021-08-08 22:20:20 +05:00
Timur Ismagilov
1ee8f5b409 Change the link to Mycomarkup on new hyphae 2021-08-06 17:25:53 +05:00
handlerug
eeb2dd52d8 Reword search bar placeholder text
WHO THE HECK THOUGHT "TITLE SEARCH" WOULD BE A GOOD NAME
2021-08-04 12:56:12 +07:00
Timur Ismagilov
b2890b26cf Write the recent changes doc
And add the link to the doc on the page itself
2021-08-02 00:25:24 +05:00
Timur Ismagilov
80112ad188 Dump version 2021-08-01 15:40:28 +05:00
Timur Ismagilov
fce16d6ecd Toolbar: Replace the Mycomarkup doc link 2021-07-31 19:51:21 +05:00
Timur Ismagilov
13f1752636 Document lock 2021-07-31 19:49:18 +05:00
Timur Ismagilov
448eec3d6f Show primitive diffs of deleted hyphae 2021-07-30 19:20:21 +05:00
Timur Ismagilov
7e0ae7ae52 Start writing the Mycomarkup article
I got a little tired, will finish later

Also, there seems to be a bug with anchor links //again//. Or maybe not
2021-07-25 18:57:43 +05:00
Timur Ismagilov
6e47ea0cfe Fix the hamburger on wikis without auth 2021-07-25 18:17:34 +05: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
eab3fb77ca Write the Sibling hyphae section help article 2021-07-25 01:32:38 +05:00
Timur Ismagilov
b5aff67712 Write the Telegram help article 2021-07-25 00:44:01 +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
Timur Ismagilov
6241350e8b Fix some layout things 2021-07-24 16:09:57 +05:00
Timur Ismagilov
ae03dbcd64 Add Telegram widget to the Lock page 2021-07-16 01:54:00 +05:00
Timur Ismagilov
e7ddb54877 Show the links when no JS on mobile 2021-07-15 22:46:23 +05:00
Timur Ismagilov
51bafed805 Add the hamburger 2021-07-15 22:19:10 +05:00
Timur Ismagilov
2ace86b9ed Make the top bar look ok on computers 2021-07-15 14:35:01 +05:00
Timur Ismagilov
f8f4eb92c8 Implement the new top bar #78
I decided to not implement dropdowns and stuff yet.

This stuff needs some styling for sure.
2021-07-15 13:57:39 +05: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
handlerug
76d77f0887 Warn before closing if unsaved on edit page
It doesn't fire if you go back to the edit page and the browser
auto-fills the previous contents, but oh well.
2021-07-13 16:30:40 +07: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
66a8296756 Fix some markup 2021-07-12 22:14:08 +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
532e5d62b2 Add some text to the search results 2021-07-12 22:14:08 +05:00
Timur Ismagilov
e7a53dbc22 Make search results look more like /list 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
Alex Gu
1fff7cfdf1 Fix sibling hypha name 2021-07-12 18:23:25 +03:00
Timur Ismagilov
b955e4816a Make the help topics sidebar look acceptable 2021-07-12 15:13:12 +05:00
Timur Ismagilov
b1489cf11f Move the main help page
It was on /help/en/index, now it is on both /help/en and /help
2021-07-12 15:01:53 +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
3e13d6a4db Write the Attachment article
I also included a link to the article in the Attachment tab.
2021-07-12 02:34:00 +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
Timur Ismagilov
a4c8741f7f Relative hyphae→sister hyphae, where it makes sense
CSS class has changed, please update your custom styles
2021-07-06 23:09:45 +05:00
handlerug
80414dd748
mycorrhiza.lesarbr.es -> mycorrhiza.wiki 2021-07-05 11:22:17 +07:00
handlerug
a8efad5ff9
Remove href from hash link 2021-07-02 22:25:36 +07:00
handlerug
f497183724
Change recent changes layout a bit
It's not perfect, but I don't see a point in trying to parse those
commit messages when we'll rebuild the storage system soon anyway.
2021-07-02 22:24:17 +07:00
handlerug
c27950aeaa
Ability to delete user in the user panel 2021-07-02 21:04:00 +07:00
handlerug
d352fd85fd
Auto-focus the first input on new user page 2021-07-02 19:04:02 +07:00
handlerug
1c24450a8f
New user form in /admin/users/ 2021-07-02 19:02:42 +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
5dc5a97bdb
Bump the version 2021-07-01 19:22:39 +07:00
Timur Ismagilov
90cb3be0ac Remove the mention of indev uh oh 2021-07-01 17:15:59 +05:00
Timur Ismagilov
95c95d2467 Rename Omnipresent to Common 2021-07-01 14:45:29 +05:00