Skip to content

Conversation

@ele828
Copy link
Contributor

@ele828 ele828 commented May 28, 2016

Implement issue #42.

image
This is comparison of time spent in downloading Gifted Messenger component via NPM official registry and Taobao CDN registry.

image
I just temporarily added this setting to Editor tab, but I think it's better to add it to General tab or another tabs.

@CLAassistant
Copy link

CLAassistant commented May 28, 2016

CLA assistant check
All committers have signed the CLA.

@ele828 ele828 changed the title add npm registry setting Add npm registry setting May 28, 2016
showInvisibles: state.preferences[CATEGORIES.EDITOR][PREFERENCES.EDITOR.SHOW_INVISIBLES],
styleActiveLine: state.preferences[CATEGORIES.EDITOR][PREFERENCES.EDITOR.HIGHLIGHT_ACTIVE_LINE],
showIndentGuides: state.preferences[CATEGORIES.EDITOR][PREFERENCES.EDITOR.SHOW_INDENT_GUIDES],
npmRegistry: state.preferences[CATEGORIES.EDITOR][PREFERENCES.EDITOR.NPM_REGISTRY],
Copy link
Member

Choose a reason for hiding this comment

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

This options object is specifically for CodeMirror text editor options. Can you move npmRegistry a few lines up into the parent object return {...}?

@dabbott
Copy link
Member

dabbott commented May 28, 2016

Other than those 2 little things, looks great.

Yeah, I agree, it should go in a different tab. Let's leave it here for now though. I'm probably going to add a Components settings tab soon, so I will move it there when I do.

@dabbott dabbott merged commit 2d66ed3 into decosoftware:master May 30, 2016
@dabbott dabbott mentioned this pull request May 30, 2016
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