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

155 Commits

Author SHA1 Message Date
Timur Ismagilov
80d5583179 Mycomarkup: Migrate to v3.5.0
Image layouts!
2021-12-19 17:35:24 +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
dbb45b2ded
Merge branch 'master' into mycomarkup-3-migrate-and-test 2021-11-06 01:57:18 +05:00
DanInSpace104
be6d5390cb
Add padding to the edit__preview 2021-11-01 10:12:39 +05:00
Mysh!
a3fe98cf49
Javascript related code changes (#112)
* Add if statement for case where shortcutsGroup can be undefined
* Use "===" instead of "==". Comparison prefix "==" may cause unexpected type coercion
* Remove anonymous function wrapping
2021-10-29 20:13:59 +07:00
Umar Getagazov
742f34ae9a Make some layout stuff work in Netsurf
Not sure if we should use antiweb [1].

[1]: https://git.sr.ht/~sircmpwn/antiweb
2021-10-26 14:22:31 +07:00
Umar Getagazov
45763d9d7d Hide <template> tags
Makes at least something visible on browsers like netsurf and others.
2021-10-26 13:47:23 +07:00
Timur Ismagilov
d533fc23ea Make some visual changes 2021-10-13 23:30:43 +03:00
Timur Ismagilov
cfc985a0f0 Disallow: /admin/ too 2021-10-01 09:51:06 +03:00
Umar Getagazov
1101784230 Replace Disallow: / with a more specific list 2021-09-29 22:20:30 +07:00
Timur Ismagilov
84cb140cf8 Add [[Link | Title]] button 2021-09-12 11:29:21 +03:00
Timur Ismagilov
fffddc5eff Add ⌘; for insertDate 2021-09-05 14:55:13 +03:00
Mikhail Chekan
820de6a0aa Implement backlinks core (index, i12n and viewing) 2021-09-01 19:25:47 +05:00
Mikhail Chekan
06f9a46403
Merge branch 'master' into editor-flag-fix 2021-08-22 15:20:08 +08:00
Mikhail Chekan
8ecb501a9a Make toolbar actions lift the 'text changed' flag 2021-08-22 15:19:00 +08:00
Mikhail Chekan
ba6a444063 Make text decorations toggleable, like Github's 2021-08-22 14:48:04 +08:00
Timur Ismagilov
15415e44ff Fix the edit button padding issue
Now the whole button is clickable
2021-08-19 00:13:21 +05:00
Timur Ismagilov
3a02721f80 Increase line height in the editor 2021-08-19 00:11:35 +05:00
Umar Getagazov
a8ec179668 Remove Helvetica
All my homies hate Helvetica
2021-08-17 21:40:30 +07:00
Timur Ismagilov
f2a82ba527 Fix the editor textbox issue?
Also change the font to Helvetica for testing
2021-08-17 18:06:17 +05:00
handlerug
19019a0d13 Always show "Manage attachment", fix Firefox bug 2021-08-11 16:20:29 +07:00
Timur Ismagilov
7cc4347062 Do not underline the comma 2021-08-09 01:03:38 +05:00
Timur Ismagilov
e47b297410 Add the gap on mobile devices
Gotta think what to do with those arrows btw
2021-08-09 00:51:37 +05:00
Timur Ismagilov
5238e9cce9 Fix hotkeys 2021-08-09 00:46:45 +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
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
153430194b Allow crawling /help/ 2021-07-31 19:33:15 +05:00
Timur Ismagilov
6313cff4c6 Finish writing the Mycomarkup doc
I hope...
2021-07-31 17:27:35 +05:00
Timur Ismagilov
2603c56f4d Hack the search bar 2021-07-25 00:14:01 +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
b989956acb Style the hamburger 2021-07-15 22:41:51 +05:00
Timur Ismagilov
51bafed805 Add the hamburger 2021-07-15 22:19:10 +05:00
Timur Ismagilov
81b764174d Make the top bar look like a long list on mobiles 2021-07-15 21:52:00 +05:00
Timur Ismagilov
362c607da5 Do not use color to differentiate active hypha tab, properly 2021-07-15 21:33:38 +05:00
Timur Ismagilov
e55c5cdd1f Revert "Do not use color to differentiate active hypha tab"
This reverts commit 8c5ee0dc
2021-07-15 21:31:04 +05:00
Timur Ismagilov
8c5ee0dc88 Do not use color to differentiate active hypha tab 2021-07-15 21:29:18 +05:00
Timur Ismagilov
354ba66da3 Dark theme for the top bar 2021-07-15 21:08:20 +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
handlerug
9ad9db9825
Fix warn before closing 2021-07-13 21:21:46 +07: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
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
e7a53dbc22 Make search results look more like /list 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
58a9a3314d Reduce the top margin for h1 2021-07-12 15:20:53 +05:00
Timur Ismagilov
b955e4816a Make the help topics sidebar look acceptable 2021-07-12 15:13:12 +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
9fdb56f40b
To-do lists styles 2021-07-07 22:56:31 +07: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
Timur Ismagilov
e321c113b2 Make visual changes
* Return the old color of the top bar
* The transclusion source does not take the whole line anymore—it floats now
2021-07-06 22:58:56 +05:00
Timur Ismagilov
f7d263eee6 Fix file upload button height 2021-07-06 02:16:09 +05: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
1c24450a8f
New user form in /admin/users/ 2021-07-02 19:02:42 +07:00
handlerug
0052ba0695
Make user panel a bit prettier 2021-06-30 20:07:19 +07:00
Timur Ismagilov
ea75823656 Make the toolbar have ++ and __
Also, upgrade mycomarkup, whatever
2021-06-30 16:47:48 +05:00
Timur Ismagilov
86020d6d97 Dark mode transclusion 2021-06-29 23:22:22 +05:00
Timur Ismagilov
d5c8a19b16 Make blend transclusions actually blend
Also add some slightly transparent backgrounds to many things
2021-06-29 23:22:22 +05:00
handlerug
9b610595bd
Fix comments in static/static.go 2021-06-23 22:46:04 +07:00
handlerug
190a1d6ba8
Extract robots.txt into a file, simplify MIMEs 2021-06-23 22:44:27 +07:00
Timur Ismagilov
b90c288549 Migrate to Mycomarkup v0.5.5 2021-06-23 17:25:42 +05:00
handlerug
26099e7dda
Sync edit and preview templates and fix some bugs 2021-06-20 12:56:19 +07:00
handlerug
d1176adc7b
Remove margins on <body> 2021-06-20 12:32:55 +07:00
Timur Ismagilov
2efa3a8481 Tweak HTML+CSS 2021-06-20 03:59:11 +05:00
Timur Ismagilov
e5e9720654 Make editor buttons dark in the dark theme 2021-06-16 02:46:25 +05:00
Timur Ismagilov
fff770a2f5 Fix ⌃↩︎ being used instead of ⌘↩ for opening the editor on Mac︎ 2021-06-16 02:21:20 +05:00
Timur Ismagilov
3e6cecf9e1 Fix ? triggering the dialog in the editor 2021-06-16 02:18:56 +05:00
Timur Ismagilov
2d585be152 Fix dark theme for upload file thing 2021-06-16 02:06:50 +05:00
Timur Ismagilov
5ecab763fc Fix dark theme for the shortcut dialog 2021-06-16 02:02:13 +05:00
Timur Ismagilov
d27a63d375 Set default text color explicitly
It was requested by a person because it broke how the site looked to them
2021-06-16 01:38:15 +05:00
handlerug
bf4a15b61d
Improve appearance of edit message field 2021-06-14 14:53:11 +07:00
handlerug
679588abd5
Merge branch 'master' into master 2021-06-14 14:27:28 +07:00
handlerug
9dde11aa40
Shortcuts for hypha tabs 2021-06-14 14:20:37 +07:00
handlerug
4c471c579d
Revert shortcuts for super/subscript back for Macs 2021-06-14 14:03:31 +07:00
handlerug
4dc319116a
Aaaaaa more shortcuts refactoring 2021-06-14 14:00:49 +07:00
handlerug
b4910edcca
Refactor shortcut help 2021-06-14 13:58:20 +07:00
handlerug
6b074e88ea
bindCollection helper, better code 2021-06-14 13:54:36 +07:00
handlerug
6120e3b27f
Split shortcuts help into columns if enough space 2021-06-14 13:51:12 +07:00
handlerug
50dfabe279
Make the shortcuts prettifier even prettier 2021-06-14 13:51:12 +07:00
handlerug
2f9ea998bf
Fix shortcuts prettifier (vertical arrow keys) 2021-06-14 13:51:12 +07:00
handlerug
c574008564
Change superscript and subscript shortcuts on Mac
Now they won't conflict with the default browser actions, if we're going
to not stop the browser from doing its own thing.
2021-06-14 13:51:12 +07:00
handlerug
f6e32a16eb
Revert "Read Handlerug's code"
This reverts commit d069bd536e.

"Because... everything was just fine?"
2021-06-14 13:51:12 +07:00
Alex Gu
ad5dd09cc3 Override useless browser hotkeys if editor is active
For example Ctrl+B open Bookmarks, Ctrl+I open page info.
It's useful shortcuts but unless we edit hypha text.
2021-06-14 04:11:15 +03:00
Alex Gu
1c30f82445 Add Edit description 2021-06-14 03:47:11 +03:00
Alex Gu
97b488731c
Add first child hypha shortcut 2021-06-14 00:31:09 +03:00
Alex Gu
1be4b0ef64
Fix Typo 2021-06-14 00:18:22 +03:00
Alex Gu
70329f22cf
Add Ctrl+Enter as alias for e 2021-06-13 23:36:55 +03:00
Timur Ismagilov
14bdf39107 Limit the shortcut dialog's maximum width 2021-06-14 01:21:46 +05:00
Timur Ismagilov
d069bd536e Read Handlerug's code
I have written some comments in order to understand it by myself.

I created the class Shortcut with some static methods for better grouping.
2021-06-14 01:11:46 +05:00
Alex Gu
f06501d631
Shortcuts no longer changes browser behavior.
Now need to use Ctrl+Alt+Up/Left/Right instead if browser uses Alt+Up/Left/Right. (If browser don't use Alt+Up/Left/Right, it is still used for switch hyphae)
2021-06-13 23:03:45 +03:00
Timur Ismagilov
01af43de04 Add dark theme to the shortcuts pop up 2021-06-13 23:39:27 +05:00
Timur Ismagilov
20a2d26848 Replace span.kbd-key with the kbd tag 2021-06-13 23:37:21 +05:00
handlerug
60deff0ecd
Editor shortcut for saving changes
It's Ctrl/Cmd + Enter
2021-06-13 23:28:02 +07:00
handlerug
80e3645bb0
Shortcut for editing opened hypha
It's `e`
2021-06-13 23:24:08 +07:00
handlerug
1c8d1e8f7e
Shortcuts reference
It's invoked by pressing `?`, or Ctrl/Cmd + `/` in the editor.
Resolves #64.
2021-06-13 23:15:45 +07:00
handlerug
83574105f5
Editor shortcuts 2021-06-13 15:15:28 +07:00