Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
handleClick: function () {
var type = this.refs.select.getDOMNode().value;
var text = this.refs.textarea.getDOMNode().value;
var colors = termcolors[type].import(text);
colors = termcolors.defaults.fill(colors);
AppActions.setAllColors(colors);
},
handleClick: function () {
var type = this.refs.select.getDOMNode().value;
var text = this.refs.textarea.getDOMNode().value;
var colors = termcolors[type].import(text);
colors = termcolors.defaults.fill(colors);
actions.setAllColors('terminal.sexy', colors);
},
var importColors = function (colors) {
state.colors = TermColors.defaults.fill(colors);
render();
};
var _ = require('lodash');
var Signals = require('signals');
var termcolors = require('termcolors');
var AppDispatcher = require('../dispatchers/AppDispatcher');
var AppConstants = require('../constants/AppConstants');
var url = require('../formats/url');
var _colors = url.import(location.hash);
if (_colors === false) {
_colors = _.clone(termcolors.defaults.colors);
}
var AppStore = Signals.convert({
getColors: function () {
return _colors;
}
});
AppDispatcher.register(function (payload) {
var action = payload.action;
switch (action.actionType) {
case AppConstants.SET_ALL_COLORS:
},{}],28:[function(require,module,exports){
var _ = require('lodash');
var Signals = require('signals');
var termcolors = require('termcolors');
var AppDispatcher = require('../dispatchers/AppDispatcher');
var AppConstants = require('../constants/AppConstants');
var url = require('../formats/url');
var _colors = url.import(location.hash);
if (_colors === false) {
_colors = _.clone(termcolors.defaults.colors);
}
var AppStore = Signals.convert({
getColors: function () {
return _colors;
}
});
AppDispatcher.register(function (payload) {
var action = payload.action;
switch (action.actionType) {
case AppConstants.SET_ALL_COLORS: