-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix commit view JS features, reimplement folding #9968
Conversation
File content folding was not working so I reimplemented it in a saner way. Then I noticed the issue was actually because of missing JS libraries (seen on the console of every commit with error 'SimpleMDE is not defined'). Fixed the libraries. I think the reimplementation is worth to keep.
@silverwind you wouldn't be able to switch us to EasyMDE would you? I think simplemde is a bit dead... |
Not sure if I'm motivated, SimpleMDE code is major spaghetti. |
Codecov Report
@@ Coverage Diff @@
## master #9968 +/- ##
==========================================
+ Coverage 42.24% 42.27% +0.03%
==========================================
Files 610 610
Lines 80276 80372 +96
==========================================
+ Hits 33909 33976 +67
- Misses 42204 42218 +14
- Partials 4163 4178 +15
Continue to review full report at Codecov.
|
File content folding was not working so I reimplemented it in a saner way. Then I noticed the issue was actually because of missing JS libraries (seen on the console of every commit with error
'SimpleMDE is not defined') resulting in most JS on that page in not being executed.
Fixed the libraries. I think the reimplementation is worth to keep.
Example page with such an error: https://try.gitea.io/silverwind/symlink-test/commit/98701cd58e49972ff22203d217176f3ad27c235c