-
Notifications
You must be signed in to change notification settings - Fork 19
Use CodeMirror
in FileContentsCard
instead of SyntaxHighlightedCode
#1907
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
Merged
VasylMarchuk
merged 32 commits into
main
from
code-mirror/use-codemirror-in-file-contents-card
Jul 16, 2024
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
02da4a3
Squash `isCollapsed/isCollapsible` args handling in `FileContentsCard`
VasylMarchuk 6d01989
Use `CodeMirror` instead of `SyntaxHighlightedCode` in `FileContentsC…
VasylMarchuk 1215d48
Add basic global style tweaks for `CodeMirror` component
VasylMarchuk 07bd979
Add Dark Mode support to `FileContentsCard` component
VasylMarchuk 9cf52cd
Fix ordering CodeMirror's `foldGutter` and symbols used as toggle icons
VasylMarchuk 9d8d6a2
Add a demo route for `FileContentsCard` component
VasylMarchuk d8a82d0
Fix handling of `onExpand` & `onCollapse` when `isCollapsible` is `fa…
VasylMarchuk da12382
Better handling of collapse/expand in `FileContentsCard` component
VasylMarchuk 6d6da4b
Don't highlight active line in `FileContentsCard` component
VasylMarchuk f49eb3e
Remove border from CodeMirror's gutter
VasylMarchuk 4b8a8d6
Remove obsolete `@glint-expect-error`
VasylMarchuk a3e3d24
Adjust CodeMirror style to match GitHub's
VasylMarchuk 9a0ee6d
Add `@foldGutter` argument to `FileContentsCard` and hide it on Build…
VasylMarchuk 9f2c120
Remove unneccessary classes from fold gutter SVGs
VasylMarchuk 48f4605
Move fold/unfold SVGs into an enum `FoldGutterIcon`
VasylMarchuk d9b6661
Support passing custom themes to `CodeMirror` as `@theme` argument
VasylMarchuk fb122ad
Add `codeCraftersLight` and `codeCraftersDark` themes (based on GitHu…
VasylMarchuk 544867b
Use `codeCraftersLight` and `codeCraftersDark` themes in `FileContent…
VasylMarchuk 0655ffb
Add `foldGutter` option to `FileContentsCard` demo page
VasylMarchuk a7e607b
Extract CodeMirror's page object into a separate tests support file
VasylMarchuk d35c8ee
Add an acceptance test `course-admin | view-code-example`
VasylMarchuk 49b9ef8
Add `@ember/test-waiters` package to the project
VasylMarchuk e3a5217
Use `@waitFor` decorator to properly wait for `CodeMirror` rendering/…
VasylMarchuk 498af6a
Replace `border` with `outline` on the CodeMirror demo page
VasylMarchuk 04aab43
Add `flex-wrap` to right-floating option groups on the demo route
VasylMarchuk 0e2af64
Move `codeMirror` page object to `tests/pages/components`
VasylMarchuk 04b0704
Rename `handleCollapseExpandButtonClick` to `handleCollapseOrExpandBu…
VasylMarchuk 96ba1bf
Add proper JSDoc for `FileContentsCard` signature
VasylMarchuk 846a0ed
Properly disable `headerTooltipText` option when `isCollapsible` is f…
VasylMarchuk 26cc64e
Insert a blank line between members
VasylMarchuk ec38ee0
Remove built-in themes from `CodeMirror`, allow passing only custom o…
VasylMarchuk 7e0ccab
Use a map instead of using a switch (to make CodeRabbit happier)
VasylMarchuk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.