Skip to content

Code viewer #62

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
merged 2 commits into from
Jun 7, 2018
Merged

Code viewer #62

merged 2 commits into from
Jun 7, 2018

Conversation

smacker
Copy link
Contributor

@smacker smacker commented Jun 5, 2018

Fix: #47

Based on #52, #60

This PR doesn't implement syntax highlighting in editor. It requires changes to code detection (move from FE to BE) and language guessing using envy. It will be implemented in another issue: #61

screen shot 2018-06-05 at 12 53 12

@smacker smacker requested a review from carlosms June 5, 2018 10:53
Copy link
Contributor

@bzz bzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks awesome!

showModal: true,
modalTitle: 'UAST',
modalContent:
// currently github returns only 1 item, UAST of the file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean gitbase? 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh. thanks! :-D

@carlosms
Copy link
Contributor

carlosms commented Jun 6, 2018

The only minor thing I see is how the modal overflows. As you can see in the screenshot, the vertical scroll is on the modal, while the horizontal is for the code component. If it makes sense, please consider changing this so both scrolls apply to the code component.

scrolls

@smacker
Copy link
Contributor Author

smacker commented Jun 7, 2018

Your suggestion makes perfect sense! The bottom scrollbar is kind of invisible on Mac so I missed it. Fixed.

smacker added 2 commits June 7, 2018 08:57
Signed-off-by: Maxim Sukharev <[email protected]>
Copy link
Contributor

@carlosms carlosms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@smacker smacker merged commit 11b0169 into src-d:master Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants