-
Notifications
You must be signed in to change notification settings - Fork 3
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
[FEATURE] File tags component #141
Conversation
var fileExtension = filepath.substring(filepath.lastIndexOf('.') + 1, filepath.length); | ||
var mime; | ||
|
||
switch(fileExtension) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One space required after "switch" keyword
good boy!
filepath.substring(filepath.lastIndexOf('.') + 1, filepath.length); | ||
var mime; | ||
|
||
switch(fileExtension) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One space required after "switch" keyword
First of all, it's great that we support Django, I'll be able to use Kibibit as my new code editor for my next "real work" project 👍 |
function extraTypes(filepath) { | ||
if (filepath.indexOf('.') !== -1) { | ||
var fileExtension = | ||
filepath.substring(filepath.lastIndexOf('.') + 1, filepath.length); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit -> I would (you thought me) do something like:
var extensionStart = filepath.lastIndexOf('.') +1;
var fileExtension = filepath.substring(extensionStart, filepath.length);
but of-course it's ok as is 😺
tags.pop(); | ||
|
||
tags.forEach(function(tag) { | ||
switch (tag) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 reminder -> add min
😄
@dunaevsky , this is ready for you to do a CR :-) |
LGTM ;ׁׁ) |
Did I do it right? |
@dunaevsky yup :-) |
[FEATURE] File tags component
Change Summary
Add file tag component on server side to allow secondary icons on clients [ resolves Create file tags component on server #73 ]
update
ace.js
to latest version to expandmodelist
(see More info) [ resolves update ace to get new improvements #140 ]More info
new additional modes:
Before you submit a PR, make sure you did the following things: