Skip to content
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

Add file type on server side #132

Merged
merged 19 commits into from
May 20, 2016
Merged

Add file type on server side #132

merged 19 commits into from
May 20, 2016

Conversation

thatkookooguy
Copy link
Member

@thatkookooguy thatkookooguy commented May 20, 2016

Change Summary

}
function getModeFromMimeType(file) {
var getModeRegex = /\/(x-)?(.*)$/;
return file && file.mimeType ? file.mimeType.match(getModeRegex)[2] : 'text';

Choose a reason for hiding this comment

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

Line must be at most 80 characters

@thatkookooguy thatkookooguy temporarily deployed to kibibit-demo-pr-132 May 20, 2016 11:09 Inactive
@thatkookooguy thatkookooguy temporarily deployed to kibibit-demo-pr-132 May 20, 2016 11:13 Inactive
@thatkookooguy thatkookooguy temporarily deployed to kibibit-demo-pr-132 May 20, 2016 11:18 Inactive
@thatkookooguy
Copy link
Member Author

Fixed a closing tag issue in the master branch. noticed it since kibibit changed the syntax of home.html to html when I opened it in the demo, and ace.js showed me a warning in the gutter :-)

}
])

.directive('kbChangeAceScroll', function() {
Copy link
Member

Choose a reason for hiding this comment

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

@thatkookooguy
What about this directive?

Copy link
Member Author

Choose a reason for hiding this comment

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

It wasn't attached anywhere. It was a leftover from an experiment I did in a previous PR

@ortichon
Copy link
Member

ortichon commented May 20, 2016

@thatkookooguy
I know we want to show svg files using the image-editor, but will we able to view svg in "code" mode?

Edit:
I've just answered myself by looking at issue #78

@ortichon
Copy link
Member

@thatkookooguy
Anyway, it looks great. :)

@thatkookooguy
Copy link
Member Author

@ortichon I made it invalid for now until you actually see a compiled SVG view.

Because you can't actually see what you're doing :-)

@ortichon
Copy link
Member

ortichon commented May 20, 2016

LGTM

Approved with PullApprove

@ortichon ortichon merged commit 03f1089 into master May 20, 2016
@ortichon ortichon deleted the add-file-type branch May 20, 2016 16:08
neilkalman-redkix pushed a commit that referenced this pull request Jul 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment