You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
silverwind 9249c810b8
Switch code editor to Monaco (#11366)
* Switch code editor to Monaco

This switches out CodeMirror for Monaco which is based on the same code
base as VS code and should work pretty similar to it.

It does add a few async chunks, totalling around 10MB to our build. It
currently supports around 65 languages and in the default configuration,
each language would emit one ugly [number].js chunk, so I opted to
combine them all into a single file for now.

CodeMirror is still being used under the hood by SimpleMDE so it can not
be removed yet.

* inline editorconfig, fix diff, use for markdown, remove more dead code

* refactors, remove jquery usage

* use tab_width

* fix intellisense

* rename function for clarity

* misc tweaks, enable webpack progress display

* only use --progress on dev build

* remove useless borders in arc-green

* fix typo

* remove obsolete comment

* small refactor

* fix file creation and various refactors

* unset useTabStops too when no editorconfig

* small refactor

* disable webpack's [big] warnings

* remove useless await

* fix dark theme check

* rename chunk to 'monaco'

* add to .gitignore and delete webpack dest before build

* increase editor height

* support more editorconfig properties

* remove empty element filter

* rename

Co-authored-by: John Olheiser <john.olheiser@gmail.com>
4 years ago
..
activity.go Add top author stats to activity page (#9615) 5 years ago
attachment.go Move dropzone.js to npm/webpack (#10645) 4 years ago
blame.go Load Repo Topics on blame view (#11307) 4 years ago
branch.go Protect default branch against deletion (#11115) 4 years ago
commit.go Fix potential bugs (#10513) 4 years ago
compare.go Allow compare page to look up base, head, own-fork, forkbase-of-head (#11327) 4 years ago
download.go Fix download file wrong content-type (#9825) 5 years ago
editor.go Switch code editor to Monaco (#11366) 4 years ago
editor_test.go Add Close() method to gogitRepository (#8901) 5 years ago
http.go Prevent clones and pushes to disabled wiki (#11131) 4 years ago
issue.go [API] ListIssues add filter for milestones (#10148) 4 years ago
issue_dependency.go Fix wrong permissions check when issues/prs shared operations (#9885) 5 years ago
issue_label.go Add Organization Wide Labels (#10814) 4 years ago
issue_label_test.go fix go vet error (#3740) 6 years ago
issue_lock.go Implement "conversation lock" for issue comments (#5073) 5 years ago
issue_stopwatch.go Automatically clear stopwatch on merging a PR (#4327) 5 years ago
issue_timetrack.go [API] Extend times API (#9200) 5 years ago
issue_watch.go Fix PR/issue redirects when having external tracker (#9339) 5 years ago
lfs.go Migrate to go-git/go-git v5.0.0 (#10735) 4 years ago
main_test.go Unit tests for wiki routers (#3022) 7 years ago
middlewares.go Add gitea-vet (#10948) 4 years ago
milestone.go Refactor Milestone related (#11225) 4 years ago
pull.go Add a way to mark Conversation (code comment) resolved (#11037) 4 years ago
pull_review.go Add a way to mark Conversation (code comment) resolved (#11037) 4 years ago
release.go Add single release page and latest redirect (#11102) 4 years ago
release_test.go Add Close() method to gogitRepository (#8901) 5 years ago
repo.go Fix orgs not being displayed on create repo form (#11279) 4 years ago
search.go Add detected file language to code search (#10256) 4 years ago
setting.go API endpoint for repo transfer (#9947) 4 years ago
setting_protected_branch.go Prevent merge of outdated PRs on protected branches (#11012) 4 years ago
settings_test.go Stop various tests from adding to the source tree (#9515) 5 years ago
topic.go Add API endpoint for accessing repo topics (#7963) 5 years ago
view.go Load Repo Topics on blame view (#11307) 4 years ago
webhook.go Add Matrix webhook (#10831) 4 years ago
wiki.go Show Signer in commit lists and add basic trust (#10425) 4 years ago
wiki_test.go Fix wiki raw view on sub path (#10002) 4 years ago