commit
stringlengths
40
40
old_file
stringlengths
4
150
new_file
stringlengths
4
150
old_contents
stringlengths
0
3.26k
new_contents
stringlengths
1
4.43k
subject
stringlengths
15
501
message
stringlengths
15
4.06k
lang
stringclasses
4 values
license
stringclasses
13 values
repos
stringlengths
5
91.5k
diff
stringlengths
0
4.35k
89bb5bd242b1208e4775f93ef9ce82171196b07e
tools/closure_compiler_externs/q.js
tools/closure_compiler_externs/q.js
var Q = {}; /** * @constructor */ function QDeferred () {}; QDeferred.prototype.reject = function (args) {}; QDeferred.prototype.resolve = function (args) {}; /** * @type {string} */ QDeferred.prototype.state; /** * @type {string} */ QDeferred.prototype.reason; /** * @returns {QDeferred} */ Q.defer = function () {}; /** * @constructor */ function QPromise () {}; QPromise.prototype.then = function (args) {}; QPromise.prototype.catch = function (args) {}; /** * @returns {QPromise} */ Q.promise = function() {}; /** * @returns {QPromise} * @param {Array<QPromise>} promises */ Q.allSettled = function (promises) {}; /** * @returns {QPromise} * @param {Array<QPromise>} promises */ Q.all = function (promises) {}; /** * @returns {QPromise} * @param {function(...?):?} fn * @param {...*} args */ Q.nfcall = function (fn, args) {};
var Q = {}; /** * @constructor */ function QDeferred () {}; /** * @param {...*} args */ QDeferred.prototype.reject = function (args) {}; /** * @param {...*} args */ QDeferred.prototype.resolve = function (args) {}; /** * @type {string} */ QDeferred.prototype.state; /** * @type {string} */ QDeferred.prototype.reason; /** * @returns {QDeferred} */ Q.defer = function () {}; /** * @constructor */ function QPromise () {}; QPromise.prototype.then = function (args) {}; QPromise.prototype.catch = function (args) {}; /** * @returns {QPromise} */ Q.promise = function() {}; /** * @returns {QPromise} * @param {Array<QPromise>} promises */ Q.allSettled = function (promises) {}; /** * @returns {QPromise} * @param {Array<QPromise>} promises */ Q.all = function (promises) {}; /** * @returns {QPromise} * @param {function(...?):?} fn * @param {...*} args */ Q.nfcall = function (fn, args) {};
Fix externs definitions for Q
tools: Fix externs definitions for Q Set the method Q.resolve and Q.reject to take an optional variadic parameter of any type.
JavaScript
mit
lgeorgieff/nbuild,lgeorgieff/ccbuild
--- +++ @@ -5,8 +5,14 @@ */ function QDeferred () {}; +/** + * @param {...*} args + */ QDeferred.prototype.reject = function (args) {}; +/** + * @param {...*} args + */ QDeferred.prototype.resolve = function (args) {}; /**
c0b947f1a4cd59045092ee37a4952c015c7b9418
app/initializers/image-imgix.js
app/initializers/image-imgix.js
import BackgroundImage from 'ember-cli-image/components/background-image'; import ImageContainer from 'ember-cli-image/components/image-container'; import XImg from 'ember-cli-image/components/x-img'; import ImgixMixin from 'ember-cli-image-imgix/mixins/imgix-mixin'; import ImgixStaticMixin from 'ember-cli-image-imgix/mixins/imgix-static-mixin'; export function initialize() { BackgroundImage.reopen( ImgixMixin ); BackgroundImage.reopenClass( ImgixStaticMixin ); ImageContainer.reopen( ImgixMixin ); ImageContainer.reopenClass( ImgixStaticMixin ); XImg.reopen( ImgixMixin ); XImg.reopenClass( ImgixStaticMixin ); } export default { name: 'image-imgix', initialize: initialize };
import BackgroundImageComponent from 'ember-cli-image/components/background-image-component'; import ImageContainerComponent from 'ember-cli-image/components/image-container-component'; import ImgComponent from 'ember-cli-image/components/img-component'; import ImgixMixin from 'ember-cli-image-imgix/mixins/imgix-mixin'; import ImgixStaticMixin from 'ember-cli-image-imgix/mixins/imgix-static-mixin'; export function initialize() { BackgroundImageComponent.reopen( ImgixMixin ); BackgroundImageComponent.reopenClass( ImgixStaticMixin ); ImageContainerComponent.reopen( ImgixMixin ); ImageContainerComponent.reopenClass( ImgixStaticMixin ); ImgComponent.reopen( ImgixMixin ); ImgComponent.reopenClass( ImgixStaticMixin ); } export default { name: 'image-imgix', initialize: initialize };
Use the updated file names for image components in import statements
Use the updated file names for image components in import statements
JavaScript
mit
bustlelabs/ember-cli-image-imgix,bustlelabs/ember-cli-image-imgix
--- +++ @@ -1,19 +1,19 @@ -import BackgroundImage from 'ember-cli-image/components/background-image'; -import ImageContainer from 'ember-cli-image/components/image-container'; -import XImg from 'ember-cli-image/components/x-img'; +import BackgroundImageComponent from 'ember-cli-image/components/background-image-component'; +import ImageContainerComponent from 'ember-cli-image/components/image-container-component'; +import ImgComponent from 'ember-cli-image/components/img-component'; import ImgixMixin from 'ember-cli-image-imgix/mixins/imgix-mixin'; import ImgixStaticMixin from 'ember-cli-image-imgix/mixins/imgix-static-mixin'; export function initialize() { - BackgroundImage.reopen( ImgixMixin ); - BackgroundImage.reopenClass( ImgixStaticMixin ); + BackgroundImageComponent.reopen( ImgixMixin ); + BackgroundImageComponent.reopenClass( ImgixStaticMixin ); - ImageContainer.reopen( ImgixMixin ); - ImageContainer.reopenClass( ImgixStaticMixin ); + ImageContainerComponent.reopen( ImgixMixin ); + ImageContainerComponent.reopenClass( ImgixStaticMixin ); - XImg.reopen( ImgixMixin ); - XImg.reopenClass( ImgixStaticMixin ); + ImgComponent.reopen( ImgixMixin ); + ImgComponent.reopenClass( ImgixStaticMixin ); } export default {
5b21df123a996655337bbf83c95a3cdca6a8c201
app/js/models/business-model.js
app/js/models/business-model.js
'use strict'; var Backbone = require('backbone'); var BusinessModel = Backbone.Model.extend({ parse: function(data) { this.name = data.name; this.address = data.location.display_address.join(' '); this.rating = data.rating; this.specificCategory = data.categories[0][0]; } }); module.exports = BusinessModel;
'use strict'; var Backbone = require('backbone'); var BusinessModel = Backbone.Model.extend({ parse: function(data) { console.log(data.name); this.name = data.name; this.address = data.location.display_address.join(' '); this.rating = data.rating; // this.specificCategory = data.categories[0][0]; } }); module.exports = BusinessModel;
Bring back console.log on new data, and comment out troublesome line
Bring back console.log on new data, and comment out troublesome line
JavaScript
mit
Localhost3000/along-the-way
--- +++ @@ -3,10 +3,11 @@ var Backbone = require('backbone'); var BusinessModel = Backbone.Model.extend({ parse: function(data) { + console.log(data.name); this.name = data.name; this.address = data.location.display_address.join(' '); this.rating = data.rating; - this.specificCategory = data.categories[0][0]; + // this.specificCategory = data.categories[0][0]; } }); module.exports = BusinessModel;
e68b3527d220cfad180273453f7d90ffadf41e36
web/index.js
web/index.js
let express = require('express'), bodyParser = require('body-parser'), morgan = require('morgan'), mustacheExpress = require('mustache-express'), path = require('path'), db = require('./lib/db'); // load configuration let config = { "mongo": { "host": "192.168.0.128", "port": 27017, "db": "g2x" } } // create app var app = express(); // app configuration app.set('port', (process.env.PORT || 8081)); app.set('db', db); // configure template engine app.engine('mustache', mustacheExpress()); app.set('view engine', 'mustache'); app.set('views', path.join(__dirname, 'views')); // configure middleware app.use(morgan('dev')); app.use(express.static('public')); // configure routes require('./routes/static')(app); // start server var server = app.listen(app.get('port'), function() { var port = server.address().port; console.log("Server listening on port %s", port); db(config.mongo, (err, db) => { if (err) { console.error(err); process.exit(1); } console.log("Connected to mongo server:", config.mongo); }); });
let express = require('express'), bodyParser = require('body-parser'), morgan = require('morgan'), mustacheExpress = require('mustache-express'), path = require('path'), db = require('./lib/db'); // load configuration let config = { "mongo": { "host": "192.168.0.128", "port": 27017, "db": "g2x" } } // create app var app = express(); // app configuration app.set('port', (process.env.PORT || 8081)); // configure template engine app.engine('mustache', mustacheExpress()); app.set('view engine', 'mustache'); app.set('views', path.join(__dirname, 'views')); // configure middleware app.use(morgan('dev')); app.use(express.static('public')); // configure routes require('./routes/static')(app); require('./routes/imu')(app); // start server var server = app.listen(app.get('port'), function() { var port = server.address().port; console.log("Server listening on port %s", port); db(config.mongo, (err, db) => { if (err) { console.error(err); process.exit(1); } app.set('db', db); console.log("Connected to mongo server:", config.mongo); }); });
Add imu routes and store db reference on app
Add imu routes and store db reference on app
JavaScript
bsd-3-clause
gizmo-cda/g2x-submarine-v2,gizmo-cda/g2x-submarine-v2,gizmo-cda/g2x-submarine-v2,gizmo-cda/g2x-submarine-v2
--- +++ @@ -21,7 +21,6 @@ // app configuration app.set('port', (process.env.PORT || 8081)); -app.set('db', db); // configure template engine app.engine('mustache', mustacheExpress()); @@ -34,6 +33,7 @@ // configure routes require('./routes/static')(app); +require('./routes/imu')(app); // start server var server = app.listen(app.get('port'), function() { @@ -47,6 +47,7 @@ process.exit(1); } + app.set('db', db); console.log("Connected to mongo server:", config.mongo); }); });
22c9e0ab626f0954a23093ec71ea98ea33d139d1
plugins/treeview/web_client/views/index.js
plugins/treeview/web_client/views/index.js
import TreeView from './TreeView'; import TreeDialog from './TreeDialog'; export { TreeView, TreeDialog };
import ConfigView from './ConfigView'; import FileDialog from './FileDialog'; import FolderDialog from './FolderDialog'; import ItemDialog from './ItemDialog'; import TreeDialog from './TreeDialog'; import TreeView from './TreeView'; export { ConfigView, FileDialog, FolderDialog, ItemDialog, TreeDialog, TreeView };
Add all views to the plugin namespace
Add all views to the plugin namespace
JavaScript
apache-2.0
jbeezley/girder,jbeezley/girder,manthey/girder,Kitware/girder,data-exp-lab/girder,Xarthisius/girder,Xarthisius/girder,kotfic/girder,RafaelPalomar/girder,jbeezley/girder,manthey/girder,girder/girder,girder/girder,RafaelPalomar/girder,jbeezley/girder,data-exp-lab/girder,Xarthisius/girder,data-exp-lab/girder,Kitware/girder,data-exp-lab/girder,RafaelPalomar/girder,manthey/girder,girder/girder,RafaelPalomar/girder,kotfic/girder,Kitware/girder,kotfic/girder,data-exp-lab/girder,Xarthisius/girder,girder/girder,Xarthisius/girder,kotfic/girder,kotfic/girder,RafaelPalomar/girder,Kitware/girder,manthey/girder
--- +++ @@ -1,7 +1,15 @@ +import ConfigView from './ConfigView'; +import FileDialog from './FileDialog'; +import FolderDialog from './FolderDialog'; +import ItemDialog from './ItemDialog'; +import TreeDialog from './TreeDialog'; import TreeView from './TreeView'; -import TreeDialog from './TreeDialog'; export { - TreeView, - TreeDialog + ConfigView, + FileDialog, + FolderDialog, + ItemDialog, + TreeDialog, + TreeView };
8823993762c66303ac6bebbf0ed4899b3bd1eae2
knockout-bind-html.js
knockout-bind-html.js
(function (root, factory) { if(typeof define === 'function' && define.amd) { define(['knockout'], factory); } else { factory(root.ko); } }(this, function(ko) { ko.bindingHandlers.bindHtml = { update: function(element, valueAccessor, allBindings, viewModel, bindingContext) { ko.unwrap(valueAccessor()); var children = element.children; for (var i = 0; i < children.length; i++) { ko.applyBindings(bindingContext.$data, children[i]); } } }; }));
(function (root, factory) { if(typeof define === 'function' && define.amd) { define(['knockout'], factory); } else { factory(root.ko); } }(this, function(ko) { ko.bindingHandlers.bindHtml = { update: function(element, valueAccessor, allBindings, viewModel, bindingContext) { ko.unwrap(valueAccessor()); ko.applyBindingsToDescendants(bindingContext.$data, element); } }; ko.bindingHandlers.bindHtml.preprocess = function(value, name, addBinding) { addBinding('html', value); return value; }; }));
Refactor Use preprocess to handle html binding as well. Use descendants function to handle binding instead of looping through children.
Refactor Use preprocess to handle html binding as well. Use descendants function to handle binding instead of looping through children.
JavaScript
mit
calvinwoo/knockout-bind-html
--- +++ @@ -8,11 +8,12 @@ ko.bindingHandlers.bindHtml = { update: function(element, valueAccessor, allBindings, viewModel, bindingContext) { ko.unwrap(valueAccessor()); - - var children = element.children; - for (var i = 0; i < children.length; i++) { - ko.applyBindings(bindingContext.$data, children[i]); - } + ko.applyBindingsToDescendants(bindingContext.$data, element); } }; + + ko.bindingHandlers.bindHtml.preprocess = function(value, name, addBinding) { + addBinding('html', value); + return value; + }; }));
f45dac5a23e23e3120e63e42b777ec971844d55a
lib/DefaultOptions.js
lib/DefaultOptions.js
const path = require('path'), ProjectType = require('./ProjectType'); module.exports = projectType => { projectType = projectType || ProjectType.FRONTEND; return { "projectType": projectType, "port": 5000, "liveReloadPort": 35729, "bundleFilename": "main", "distribution": "dist", "targets": "targets", "babel": { "presets": [ path.resolve(__dirname, "../node_modules/babel-preset-es2015"), path.resolve(__dirname, "../node_modules/babel-preset-stage-1") ], "plugins": [ path.resolve(__dirname, "../node_modules/babel-plugin-syntax-async-generators") ] }, "typescript": false, "styles": "styles", "test": "test/**/*", "images": "images", "views": "views", "assets": "assets", "autoprefixerRules": ["last 2 versions", "> 1%"], "scripts": projectType === ProjectType.FRONTEND ? "lib/*" : "scripts/*", "manifest": null, "revisionExclude": [], "onPreBuild": [], "onPostBuild": [], "onRebundle": [] }; };
const path = require('path'), ProjectType = require('./ProjectType'); module.exports = projectType => { projectType = projectType || ProjectType.FRONTEND; return { "projectType": projectType, "port": 5000, "liveReloadPort": 35729, "bundleFilename": "main", "distribution": "dist", "targets": "targets", "babel": { "presets": [ path.resolve(__dirname, "../node_modules/babel-preset-es2015"), path.resolve(__dirname, "../node_modules/babel-preset-stage-1") ], "plugins": [ path.resolve(__dirname, "../node_modules/babel-plugin-syntax-async-generators") ] }, "typescript": false, "styles": "styles", "test": "test/**/*", "images": "images", "views": "views", "assets": "assets", "autoprefixerRules": ["last 2 versions", "> 1%"], "scripts": projectType === ProjectType.FRONTEND ? "scripts/*" : "lib/*", "manifest": null, "revisionExclude": [], "onPreBuild": [], "onPostBuild": [], "onRebundle": [] }; };
Fix default folder for scripts
Fix default folder for scripts
JavaScript
mit
mtfranchetto/smild,mtfranchetto/smild,mtfranchetto/smild
--- +++ @@ -26,7 +26,7 @@ "views": "views", "assets": "assets", "autoprefixerRules": ["last 2 versions", "> 1%"], - "scripts": projectType === ProjectType.FRONTEND ? "lib/*" : "scripts/*", + "scripts": projectType === ProjectType.FRONTEND ? "scripts/*" : "lib/*", "manifest": null, "revisionExclude": [], "onPreBuild": [],
9c0a7c3d2b0f4de752b2cd8490d2c0a103e03a34
app/vendor/js/scancode.js
app/vendor/js/scancode.js
(function($) { $.fn.scancode = function(options) { var settings = $.extend({ dataAttr : 'scancode-callback-path' }, options); return this.each(function() { $(this).click(function(e) { e.preventDefault(); var callbackUrl = document.location.protocol + "//" + document.location.host + $(this).data(settings.dataAttr); var scanCodeUrl = "scancode://scan?callback=" + encodeURIComponent(callbackUrl); window.location = scanCodeUrl; }); }); }; })(jQuery);
(function($) { $.fn.scancode = function(options) { var settings = $.extend({ dataAttr : 'scancode-callback-path' }, options); return this.each(function() { $(this).click(function(e) { e.preventDefault(); var callbackUrl = document.location.protocol + "//" + document.location.host + $(this).data(settings.dataAttr); var scanCodeUrl = "scancode://scan?callback=" + encodeURIComponent(callbackUrl); window.location = scanCodeUrl; var iTunesUrl = 'https://itunes.apple.com/us/app/scan-code-qr-code-reader/id828167977?ls=1&mt=8'; var time = (new Date()).getTime(); setTimeout(function(){ var now = (new Date()).getTime(); if((now - time)<400) { if(confirm('You do not have the Scan Code app installed. Launch the App Store to download it now?')){ document.location = iTunesUrl; } } }, 300); }); }); }; })(jQuery);
Handle devices without Scan Code
Handle devices without Scan Code
JavaScript
mit
enriquez/coinpocketapp.com,MrBluePotato/Dogepocket,enriquez/coinpocketapp.com,MrBluePotato/Dogepocket,enriquez/coinpocketapp.com
--- +++ @@ -11,6 +11,18 @@ var callbackUrl = document.location.protocol + "//" + document.location.host + $(this).data(settings.dataAttr); var scanCodeUrl = "scancode://scan?callback=" + encodeURIComponent(callbackUrl); window.location = scanCodeUrl; + + var iTunesUrl = 'https://itunes.apple.com/us/app/scan-code-qr-code-reader/id828167977?ls=1&mt=8'; + var time = (new Date()).getTime(); + setTimeout(function(){ + var now = (new Date()).getTime(); + + if((now - time)<400) { + if(confirm('You do not have the Scan Code app installed. Launch the App Store to download it now?')){ + document.location = iTunesUrl; + } + } + }, 300); }); }); };
092ec9f8f375233572f207059c537b4dbb397d49
app/views/comment-view.js
app/views/comment-view.js
/* global define */ define([ 'jquery', 'underscore', 'backbone', 'marionette', 'dust', 'dust.helpers', 'dust.marionette', 'views/replyable-view', 'controllers/navigation/navigator', 'content/comments/comment-template' ], function ($, _, Backbone, Marionette, dust, dustHelpers, dustMarionette, ReplyableView, Navigator) { 'use strict'; var view = _.extend(ReplyableView, { template: 'content/comments/comment-template.dust', tagName: function () { return 'li id="comment-' + this.model.get('ID') + '" class="media comment"'; }, events: { 'click .b3-reply-comment': 'renderReplyBox', // from ReplyableView 'click .b3-comment-author': 'displayAuthor' }, initialize: function () { this.post = null; this.user = null; }, serializeData: function () { return this.model.toJSON(); }, parentId: function () { return this.model.get('ID'); }, displayAuthor: function (event) { var slug = $(event.currentTarget).attr('slug'); Navigator.navigateToAuthor(slug, null, true); event.preventDefault(); } }); var CommentView = Backbone.Marionette.ItemView.extend(view); return CommentView; });
/* global define */ define([ 'jquery', 'underscore', 'backbone', 'marionette', 'dust', 'dust.helpers', 'dust.marionette', 'views/replyable-view', 'controllers/navigation/navigator', 'content/comments/comment-template' ], function ($, _, Backbone, Marionette, dust, dustHelpers, dustMarionette, ReplyableView, Navigator) { 'use strict'; var CommentView = ReplyableView.extend({ template: 'content/comments/comment-template.dust', tagName: function () { return 'li id="comment-' + this.model.get('ID') + '" class="media comment"'; }, events: { 'click .b3-reply-comment': 'renderReplyBox', // from ReplyableView 'click .b3-comment-author': 'displayAuthor' }, initialize: function () { this.post = null; this.user = null; }, serializeData: function () { return this.model.toJSON(); }, parentId: function () { return this.model.get('ID'); }, displayAuthor: function (event) { var slug = $(event.currentTarget).attr('slug'); Navigator.navigateToAuthor(slug, null, true); event.preventDefault(); } }); return CommentView; });
Extend directly from replyable view
Extend directly from replyable view
JavaScript
mit
B3ST/B3,B3ST/B3,B3ST/B3
--- +++ @@ -14,7 +14,7 @@ ], function ($, _, Backbone, Marionette, dust, dustHelpers, dustMarionette, ReplyableView, Navigator) { 'use strict'; - var view = _.extend(ReplyableView, { + var CommentView = ReplyableView.extend({ template: 'content/comments/comment-template.dust', tagName: function () { @@ -46,6 +46,5 @@ } }); - var CommentView = Backbone.Marionette.ItemView.extend(view); return CommentView; });
709f4ff7be7af964ad7c27378d614f7cab5a5895
app/services/session.js
app/services/session.js
import Ember from 'ember'; export default Ember.Object.extend({ savedTransition: null, isLoggedIn: false, currentUser: null, init: function() { this.set('isLoggedIn', localStorage.getItem('isLoggedIn') === '1'); this.set('currentUser', null); }, loginUser: function(user) { this.set('isLoggedIn', true); this.set('currentUser', user); localStorage.setItem('isLoggedIn', '1'); }, logoutUser: function() { this.set('savedTransition', null); this.set('isLoggedIn', null); this.set('currentUser', null); localStorage.removeItem('isLoggedIn'); }, });
import Ember from 'ember'; export default Ember.Object.extend({ savedTransition: null, isLoggedIn: false, currentUser: null, init: function() { var isLoggedIn; try { isLoggedIn = localStorage.getItem('isLoggedIn') === '1'; } catch (e) { isLoggedIn = false; } this.set('isLoggedIn', isLoggedIn); this.set('currentUser', null); }, loginUser: function(user) { this.set('isLoggedIn', true); this.set('currentUser', user); try { localStorage.setItem('isLoggedIn', '1'); } catch (e) {} }, logoutUser: function() { this.set('savedTransition', null); this.set('isLoggedIn', null); this.set('currentUser', null); try { localStorage.removeItem('isLoggedIn'); } catch (e) {} }, });
Handle localStorage not being available on page load
Handle localStorage not being available on page load You won't be able to log in, but you'll at least be able to browse the site! Closes #47
JavaScript
apache-2.0
mbrubeck/crates.io,mbrubeck/crates.io,rust-lang/crates.io,mbrubeck/crates.io,steveklabnik/crates.io,Susurrus/crates.io,Gankro/crates.io,BlakeWilliams/crates.io,mbrubeck/crates.io,rust-lang/crates.io,steveklabnik/crates.io,Gankro/crates.io,chenxizhang/crates.io,steveklabnik/crates.io,sfackler/crates.io,Gankro/crates.io,withoutboats/crates.io,achanda/crates.io,withoutboats/crates.io,sfackler/crates.io,rust-lang/crates.io,Gankro/crates.io,Susurrus/crates.io,chenxizhang/crates.io,chenxizhang/crates.io,steveklabnik/crates.io,Susurrus/crates.io,Susurrus/crates.io,achanda/crates.io,achanda/crates.io,withoutboats/crates.io,BlakeWilliams/crates.io,achanda/crates.io,rust-lang/crates.io,BlakeWilliams/crates.io,BlakeWilliams/crates.io,chenxizhang/crates.io,sfackler/crates.io,withoutboats/crates.io
--- +++ @@ -6,20 +6,30 @@ currentUser: null, init: function() { - this.set('isLoggedIn', localStorage.getItem('isLoggedIn') === '1'); + var isLoggedIn; + try { + isLoggedIn = localStorage.getItem('isLoggedIn') === '1'; + } catch (e) { + isLoggedIn = false; + } + this.set('isLoggedIn', isLoggedIn); this.set('currentUser', null); }, loginUser: function(user) { this.set('isLoggedIn', true); this.set('currentUser', user); - localStorage.setItem('isLoggedIn', '1'); + try { + localStorage.setItem('isLoggedIn', '1'); + } catch (e) {} }, logoutUser: function() { this.set('savedTransition', null); this.set('isLoggedIn', null); this.set('currentUser', null); - localStorage.removeItem('isLoggedIn'); + try { + localStorage.removeItem('isLoggedIn'); + } catch (e) {} }, });
713ea52be0ee5bcafd7f683d420c28d85fc7b7bf
src/redux/modules/card.js
src/redux/modules/card.js
import { Record as record } from 'immutable'; export class CardModel extends record({ id: null, name: '', mana: null, attack: null, defense: null, }) { constructor(obj) { super(obj); // TODO: find a way to make this even more unique this.uniqId = this.id + +new Date(); } }
import { Record as record } from 'immutable'; let cardModelCount = 0; export class CardModel extends record({ id: null, name: '', mana: null, attack: null, defense: null, }) { constructor(obj) { super(obj); this.uniqId = cardModelCount++; } }
Add uniqueId for each CardModel instance
Add uniqueId for each CardModel instance
JavaScript
mit
inooid/react-redux-card-game,inooid/react-redux-card-game
--- +++ @@ -1,4 +1,6 @@ import { Record as record } from 'immutable'; + +let cardModelCount = 0; export class CardModel extends record({ id: null, @@ -9,8 +11,6 @@ }) { constructor(obj) { super(obj); - - // TODO: find a way to make this even more unique - this.uniqId = this.id + +new Date(); + this.uniqId = cardModelCount++; } }
6ccb7706359674578f00a3b06aa310b9d94a9af3
config/webpack/configuration.js
config/webpack/configuration.js
// Common configuration for webpacker loaded from config/webpacker.yml const { join, resolve } = require('path') const { env } = require('process') const { safeLoad } = require('js-yaml') const { readFileSync } = require('fs') const configPath = resolve('config', 'webpacker.yml') const loadersDir = join(__dirname, 'loaders') const settings = safeLoad(readFileSync(configPath), 'utf8')[env.NODE_ENV] function removeOuterSlashes(string) { return string.replace(/^\/*/, '').replace(/\/*$/, '') } function formatPublicPath(host = '', path = '') { let formattedHost = removeOuterSlashes(host) if (formattedHost && !/^http/i.test(formattedHost)) { formattedHost = `//${formattedHost}` } const formattedPath = removeOuterSlashes(path) return `${formattedHost}/${formattedPath}/` } const output = { path: resolve('public', settings.public_output_path), publicPath: formatPublicPath(env.ASSET_HOST, settings.public_output_path) } module.exports = { settings, env, loadersDir, output }
// Common configuration for webpacker loaded from config/webpacker.yml const { join, resolve } = require('path') const { env } = require('process') const { load } = require('js-yaml') const { readFileSync } = require('fs') const configPath = resolve('config', 'webpacker.yml') const loadersDir = join(__dirname, 'loaders') const settings = load(readFileSync(configPath), 'utf8')[env.NODE_ENV] function removeOuterSlashes(string) { return string.replace(/^\/*/, '').replace(/\/*$/, '') } function formatPublicPath(host = '', path = '') { let formattedHost = removeOuterSlashes(host) if (formattedHost && !/^http/i.test(formattedHost)) { formattedHost = `//${formattedHost}` } const formattedPath = removeOuterSlashes(path) return `${formattedHost}/${formattedPath}/` } const output = { path: resolve('public', settings.public_output_path), publicPath: formatPublicPath(env.ASSET_HOST, settings.public_output_path) } module.exports = { settings, env, loadersDir, output }
Update safeLoad to load to fix errer: Function yaml.safeLoad is removed in js-yaml 4. Use yaml.load instead, which is now safe by default.
Update safeLoad to load to fix errer: Function yaml.safeLoad is removed in js-yaml 4. Use yaml.load instead, which is now safe by default.
JavaScript
mit
osu-cascades/ecotone-web,osu-cascades/ecotone-web,osu-cascades/ecotone-web,osu-cascades/ecotone-web
--- +++ @@ -2,12 +2,12 @@ const { join, resolve } = require('path') const { env } = require('process') -const { safeLoad } = require('js-yaml') +const { load } = require('js-yaml') const { readFileSync } = require('fs') const configPath = resolve('config', 'webpacker.yml') const loadersDir = join(__dirname, 'loaders') -const settings = safeLoad(readFileSync(configPath), 'utf8')[env.NODE_ENV] +const settings = load(readFileSync(configPath), 'utf8')[env.NODE_ENV] function removeOuterSlashes(string) { return string.replace(/^\/*/, '').replace(/\/*$/, '')
b15892304e25b368f293ae5bca7d3a3f354dcbf1
config/env/development.js
config/env/development.js
'use strict'; var _ = require('lodash'); var base = require('./base'); const development = _.merge({}, base, { env: 'development', auth0: { callbackURL: 'http://localhost:9000/auth/callback', clientID: 'uyTltKDRg1BKu3nzDu6sLpHS44sInwOu' }, cip: { client: { logRequests: true } }, siteTitle: 'kbhbilleder.dk (dev)', allowRobots: true, es: { log: 'error' //use 'trace' for verbose mode }, features: { feedback: true, motifTagging: true, users: true, requireEmailVerification: true, feedback: false, geoTagging: false, motifTagging: false, requireEmailVerification: true, users: false } }); module.exports = development;
'use strict'; var _ = require('lodash'); var base = require('./base'); const development = _.merge({}, base, { env: 'development', auth0: { callbackURL: 'http://localhost:9000/auth/callback', clientID: 'uyTltKDRg1BKu3nzDu6sLpHS44sInwOu' }, cip: { client: { logRequests: true } }, siteTitle: 'kbhbilleder.dk (dev)', allowRobots: true, es: { log: 'error' //use 'trace' for verbose mode }, features: { feedback: true, motifTagging: true, requireEmailVerification: true, geoTagging: true, users: true } }); module.exports = development;
Fix duplicate keys in dev config
Fix duplicate keys in dev config
JavaScript
mit
CopenhagenCityArchives/kbh-billeder,CopenhagenCityArchives/kbh-billeder,CopenhagenCityArchives/kbh-billeder
--- +++ @@ -22,13 +22,9 @@ features: { feedback: true, motifTagging: true, - users: true, requireEmailVerification: true, - feedback: false, - geoTagging: false, - motifTagging: false, - requireEmailVerification: true, - users: false + geoTagging: true, + users: true } });
f4d22437eef8e09fe8d71e095ca637a6b0129a95
app/instance-initializers/raven-setup.js
app/instance-initializers/raven-setup.js
import Ember from 'ember'; import config from '../config/environment'; export function initialize(application) { if (Ember.get(config, 'sentry.development') === true) { return; } if (!config.sentry) { throw new Error('`sentry` should be configured when not in development mode.'); } const { dsn, debug = true, includePaths = [], whitelistUrls = [] } = config.sentry; try { window.Raven.debug = debug; window.Raven.config(dsn, { includePaths, whitelistUrls, release: config.APP.version }); } catch (e) { return; } window.Raven.install(); const { globalErrorCatching = true } = config.sentry; if (globalErrorCatching === true) { const { serviceName = 'logger' } = config.sentry; const lookupName = `service:${serviceName}`; application.container.lookup(lookupName).enableGlobalErrorCatching(); } } export default { initialize, name: 'sentry-setup' };
import Ember from 'ember'; import config from '../config/environment'; export function initialize(application) { if (Ember.get(config, 'sentry.development') === true) { return; } if (!config.sentry) { throw new Error('`sentry` should be configured when not in development mode.'); } const { dsn, debug = true, includePaths = [], whitelistUrls = [], serviceName = 'logger', serviceReleaseProperty = 'release' } = config.sentry; const lookupName = `service:${serviceName}`; const service = application.container.lookup(lookupName); try { window.Raven.debug = debug; window.Raven.config(dsn, { includePaths, whitelistUrls, release: service.get(serviceReleaseProperty) || config.APP.version }); } catch (e) { return; } window.Raven.install(); const { globalErrorCatching = true } = config.sentry; if (globalErrorCatching === true) { service.enableGlobalErrorCatching(); } } export default { initialize, name: 'sentry-setup' };
Read sentry release from service if available
Read sentry release from service if available
JavaScript
mit
dschmidt/ember-cli-sentry,damiencaselli/ember-cli-sentry,damiencaselli/ember-cli-sentry,dschmidt/ember-cli-sentry
--- +++ @@ -15,8 +15,13 @@ dsn, debug = true, includePaths = [], - whitelistUrls = [] + whitelistUrls = [], + serviceName = 'logger', + serviceReleaseProperty = 'release' } = config.sentry; + + const lookupName = `service:${serviceName}`; + const service = application.container.lookup(lookupName); try { window.Raven.debug = debug; @@ -24,7 +29,7 @@ window.Raven.config(dsn, { includePaths, whitelistUrls, - release: config.APP.version + release: service.get(serviceReleaseProperty) || config.APP.version }); } catch (e) { return; @@ -35,9 +40,7 @@ const { globalErrorCatching = true } = config.sentry; if (globalErrorCatching === true) { - const { serviceName = 'logger' } = config.sentry; - const lookupName = `service:${serviceName}`; - application.container.lookup(lookupName).enableGlobalErrorCatching(); + service.enableGlobalErrorCatching(); } }
b0998709266c2a6687f35da3f0de510e267a360e
app/routers/Play/routes/ClassroomLessons/index.js
app/routers/Play/routes/ClassroomLessons/index.js
import Passthrough from 'components/shared/passthrough.jsx'; import { getParameterByName } from 'libs/getParameterByName'; const playRoute = { path: ':lessonID', getComponent: (nextState, cb) => { System.import(/* webpackChunkName: "teach-classroom-lesson" */'components/classroomLessons/play/container.tsx') .then((component) => { cb(null, component.default); }); }, }; const indexRoute = { component: Passthrough, onEnter: (nextState, replaceWith) => { const classroom_activity_id = getParameterByName('classroom_activity_id'); const lessonID = getParameterByName('uid'); const student = getParameterByName('student'); if (lessonID) { document.location.href = `${document.location.origin + document.location.pathname}#/play/class-lessons/${lessonID}?student=${student}&classroom_activity_id=${classroom_activity_id}`; } }, }; const route = { path: 'class-lessons', indexRoute, childRoutes: [ playRoute ], component: Passthrough, }; export default route;
import Passthrough from 'components/shared/passthrough.jsx'; import { getParameterByName } from 'libs/getParameterByName'; const playRoute = { path: ':lessonID', onEnter: (nextState, replaceWith) => { document.title = 'Quill Lessons'; }, getComponent: (nextState, cb) => { System.import(/* webpackChunkName: "teach-classroom-lesson" */'components/classroomLessons/play/container.tsx') .then((component) => { cb(null, component.default); }); }, }; const indexRoute = { component: Passthrough, onEnter: (nextState, replaceWith) => { const classroom_activity_id = getParameterByName('classroom_activity_id'); const lessonID = getParameterByName('uid'); document.title = 'Quill Lessons'; const student = getParameterByName('student'); if (lessonID) { document.location.href = `${document.location.origin + document.location.pathname}#/play/class-lessons/${lessonID}?student=${student}&classroom_activity_id=${classroom_activity_id}`; } }, }; const route = { path: 'class-lessons', indexRoute, childRoutes: [ playRoute ], component: Passthrough, }; export default route;
Update page titles on Lessons.
Update page titles on Lessons.
JavaScript
agpl-3.0
empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core
--- +++ @@ -4,6 +4,9 @@ const playRoute = { path: ':lessonID', + onEnter: (nextState, replaceWith) => { + document.title = 'Quill Lessons'; + }, getComponent: (nextState, cb) => { System.import(/* webpackChunkName: "teach-classroom-lesson" */'components/classroomLessons/play/container.tsx') .then((component) => { @@ -17,6 +20,7 @@ onEnter: (nextState, replaceWith) => { const classroom_activity_id = getParameterByName('classroom_activity_id'); const lessonID = getParameterByName('uid'); + document.title = 'Quill Lessons'; const student = getParameterByName('student'); if (lessonID) { document.location.href = `${document.location.origin + document.location.pathname}#/play/class-lessons/${lessonID}?student=${student}&classroom_activity_id=${classroom_activity_id}`;
31fdd792b9a32f2f9c1223240867c5e527f71f04
assets/js/components/surveys/SurveyViewTrigger.js
assets/js/components/surveys/SurveyViewTrigger.js
/** * External dependencies */ import { useMount } from 'react-use'; import PropTypes from 'prop-types'; /** * Internal dependencies */ import Data from 'googlesitekit-data'; import { CORE_SITE } from '../../googlesitekit/datastore/site/constants'; import { CORE_USER } from '../../googlesitekit/datastore/user/constants'; const { useSelect, useDispatch } = Data; const SurveyViewTrigger = ( { triggerID, ttl } ) => { const usingProxy = useSelect( ( select ) => select( CORE_SITE ).isUsingProxy() ); const { triggerSurvey } = useDispatch( CORE_USER ); useMount( () => { if ( usingProxy ) { triggerSurvey( { triggerID, ttl } ); } } ); return null; }; SurveyViewTrigger.propTypes = { triggerID: PropTypes.string.isRequired, ttl: PropTypes.number, }; SurveyViewTrigger.defaultProps = { ttl: null, }; export default SurveyViewTrigger;
/** * SurveyViewTrigger component. * * Site Kit by Google, Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * External dependencies */ import { useMount } from 'react-use'; import PropTypes from 'prop-types'; /** * Internal dependencies */ import Data from 'googlesitekit-data'; import { CORE_SITE } from '../../googlesitekit/datastore/site/constants'; import { CORE_USER } from '../../googlesitekit/datastore/user/constants'; const { useSelect, useDispatch } = Data; const SurveyViewTrigger = ( { triggerID, ttl } ) => { const usingProxy = useSelect( ( select ) => select( CORE_SITE ).isUsingProxy() ); const { triggerSurvey } = useDispatch( CORE_USER ); useMount( () => { if ( usingProxy ) { triggerSurvey( { triggerID, ttl } ); } } ); return null; }; SurveyViewTrigger.propTypes = { triggerID: PropTypes.string.isRequired, ttl: PropTypes.number, }; SurveyViewTrigger.defaultProps = { ttl: null, }; export default SurveyViewTrigger;
Add the appropriate file header.
Add the appropriate file header.
JavaScript
apache-2.0
google/site-kit-wp,google/site-kit-wp,google/site-kit-wp,google/site-kit-wp
--- +++ @@ -1,3 +1,21 @@ +/** + * SurveyViewTrigger component. + * + * Site Kit by Google, Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /** * External dependencies */
efbdf07b7889ed7cfc643fa71542b70e2b09d276
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.initConfig({ jshint: { files: ['*.js', 'client/app/*.js', 'server/**/*.js', 'database/**/*.js'], options: { ignores: [ // (TODO: add lib files here) ] } }, uglify: { my_target: { files: { 'client/lib/dest/libs.min.js': ['client/lib/angular.js', 'client/lib/angular-ui-router.js'] } } }, // TODO: add uglify, concat, cssmin tasks watch: { files: ['client/app/*.js', 'server/**/*.js', 'database/**/*.js'], tasks: ['jshint'] } }); //Automatic desktop notifications for Grunt errors and warnings grunt.loadNpmTasks('grunt-notify'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-cssmin'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-concat'); /************************************************************* Run `$ grunt jshint` before submitting PR Or run `$ grunt` with no arguments to watch files **************************************************************/ grunt.registerTask('default', ['watch']); };
module.exports = function(grunt) { grunt.initConfig({ jshint: { files: ['*.js', 'client/app/*.js', 'server/**/*.js', 'database/**/*.js', '*.json'], options: { ignores: [ // (TODO: add lib files here) ] } }, uglify: { my_target: { files: { 'client/lib/dest/libs.min.js': ['client/lib/angular.js', 'client/lib/angular-ui-router.js'] } } }, // TODO: add uglify, concat, cssmin tasks watch: { files: ['client/app/*.js', 'server/**/*.js', 'database/**/*.js'], tasks: ['jshint'] } }); //Automatic desktop notifications for Grunt errors and warnings grunt.loadNpmTasks('grunt-notify'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-cssmin'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-concat'); /************************************************************* Run `$ grunt jshint` before submitting PR Or run `$ grunt` with no arguments to watch files **************************************************************/ grunt.registerTask('default', ['watch']); };
Add bower.json and package.json to jshint checks
[chore] Add bower.json and package.json to jshint checks
JavaScript
mit
SimonDing87/MKSTream,MAKE-SITY/MKSTream,SimonDing87/MKSTream,MAKE-SITY/MKSTream
--- +++ @@ -2,7 +2,7 @@ grunt.initConfig({ jshint: { - files: ['*.js', 'client/app/*.js', 'server/**/*.js', 'database/**/*.js'], + files: ['*.js', 'client/app/*.js', 'server/**/*.js', 'database/**/*.js', '*.json'], options: { ignores: [ // (TODO: add lib files here)
ea303509f1759de77759c6a1c9bc3a8628621488
Gruntfile.js
Gruntfile.js
module.exports = function (grunt) { grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-qunit'); grunt.initConfig({ jshint: { all: ['*.js', 'test/*.js'], options: { jshintrc: true } }, qunit: { all: ['test/index.html'] } }); grunt.registerTask('test', ['jshint', 'qunit']); grunt.registerTask('default', ['test']); };
module.exports = function (grunt) { grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-qunit'); grunt.initConfig({ jshint: { all: ['*.js', 'test/*.js'], options: { jshintrc: true } }, qunit: { all: ['test/index.html'] } }); grunt.registerTask('test', ['jshint', 'qunit']); grunt.registerTask('default', ['test']); };
Convert tabs to spaces in gruntfile.js
Convert tabs to spaces in gruntfile.js
JavaScript
mit
bgrins/ExpandingTextareas,bgrins/ExpandingTextareas,domchristie/ExpandingTextareas,domchristie/ExpandingTextareas
--- +++ @@ -1,20 +1,20 @@ module.exports = function (grunt) { - grunt.loadNpmTasks('grunt-contrib-jshint'); - grunt.loadNpmTasks('grunt-contrib-qunit'); + grunt.loadNpmTasks('grunt-contrib-jshint'); + grunt.loadNpmTasks('grunt-contrib-qunit'); - grunt.initConfig({ - jshint: { - all: ['*.js', 'test/*.js'], + grunt.initConfig({ + jshint: { + all: ['*.js', 'test/*.js'], - options: { - jshintrc: true - } - }, - qunit: { - all: ['test/index.html'] - } - }); + options: { + jshintrc: true + } + }, + qunit: { + all: ['test/index.html'] + } + }); - grunt.registerTask('test', ['jshint', 'qunit']); - grunt.registerTask('default', ['test']); + grunt.registerTask('test', ['jshint', 'qunit']); + grunt.registerTask('default', ['test']); };
4c3c39866eb0b07108be2489a5f063d0a318709a
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { var packageFile = grunt.file.readJSON("package.json"); grunt.initConfig({ pkg: packageFile, jshint: { all: ["Gruntfile.js", "app.js", "index.js", "controllers/*.js", "routes/*.js", "test/*.js"], options: packageFile.jshintConfig } }); grunt.loadNpmTasks("grunt-contrib-jshint"); };
module.exports = function(grunt) { var packageFile = grunt.file.readJSON("package.json"); grunt.initConfig({ pkg: packageFile, jshint: { all: ["Gruntfile.js", "app.js", "config.js", "index.js", "controllers/*.js", "routes/*.js", "test/*.js"], options: packageFile.jshintConfig } }); grunt.loadNpmTasks("grunt-contrib-jshint"); };
Fix jshint files in gruntfile
Fix jshint files in gruntfile
JavaScript
mit
shakeelmohamed/egress-bootstrap
--- +++ @@ -4,7 +4,7 @@ grunt.initConfig({ pkg: packageFile, jshint: { - all: ["Gruntfile.js", "app.js", "index.js", "controllers/*.js", "routes/*.js", "test/*.js"], + all: ["Gruntfile.js", "app.js", "config.js", "index.js", "controllers/*.js", "routes/*.js", "test/*.js"], options: packageFile.jshintConfig } });
8f5a7c13dd0f281066e74b281ba203b6cf6499d6
api/src/application/image/image-service.js
api/src/application/image/image-service.js
const s3 = require('aws-sdk').S3; const s3Bucket = require('../../../config')('/aws/s3Bucket'); const logger = require('../../lib/logger'); module.exports = () => ({ uploadImageStream(stream, key) { const contentType = (stream.hapi && stream.hapi.headers['content-type']) ? stream.hapi.headers['content-type'] : 'application/octet-stream'; const filename = key; const bucket = new s3({ params: { Bucket: s3Bucket } }); return bucket.upload({ Body: stream, Key: filename, ContentType: contentType }) .promise() .then(data => data.Location) .catch(error => { const trace = new Error(error); logger.error(trace); throw error; }); }, deleteImage(filename) { const bucket = new s3({ params: { Bucket: s3Bucket } }); return new Promise((resolve, reject) => { bucket.deleteObject({ Key: filename }) .send((err, data) => { if (err) { reject(err); } else { resolve(filename); } }); }) .catch((error) => { const trace = new Error(error); logger.error(trace); throw error; }); }, }); module.exports['@singleton'] = true; module.exports['@require'] = [];
const s3 = require('aws-sdk').S3; const s3Bucket = require('../../../config')('/aws/s3Bucket'); const logger = require('../../lib/logger'); module.exports = () => ({ uploadImageStream(stream, key) { const contentType = (stream.hapi && stream.hapi.headers['content-type']) ? stream.hapi.headers['content-type'] : 'application/octet-stream'; const filename = key; const bucket = new s3({ params: { Bucket: s3Bucket } }); return bucket.upload({ Body: stream, Key: filename, ContentType: contentType, CacheControl: 'max-age=0' }) .promise() .then(data => data.Location) .catch(error => { const trace = new Error(error); logger.error(trace); throw error; }); }, deleteImage(filename) { const bucket = new s3({ params: { Bucket: s3Bucket } }); return new Promise((resolve, reject) => { bucket.deleteObject({ Key: filename }) .send((err, data) => { if (err) { reject(err); } else { resolve(filename); } }); }) .catch((error) => { const trace = new Error(error); logger.error(trace); throw error; }); }, }); module.exports['@singleton'] = true; module.exports['@require'] = [];
Set max-age=0 for CacheControl on profile image S3 uploads
Set max-age=0 for CacheControl on profile image S3 uploads
JavaScript
mit
synapsestudios/oidc-platform,synapsestudios/oidc-platform,synapsestudios/oidc-platform,synapsestudios/oidc-platform
--- +++ @@ -9,7 +9,7 @@ const filename = key; const bucket = new s3({ params: { Bucket: s3Bucket } }); - return bucket.upload({ Body: stream, Key: filename, ContentType: contentType }) + return bucket.upload({ Body: stream, Key: filename, ContentType: contentType, CacheControl: 'max-age=0' }) .promise() .then(data => data.Location) .catch(error => {
e0b1be8a781a58fb17444d4abc80a175a6e088d0
app/javascript/components/update_button.js
app/javascript/components/update_button.js
import React from 'react'; import PropTypes from 'prop-types'; export default class UpdateButton extends React.Component { static propTypes = { label: PropTypes.string.isRequired, login: PropTypes.string.isRequired, path: PropTypes.string.isRequired }; constructor(props) { super(props); this.state = { updateStatus: 'OUTDATED' }; this.hookUpdateStatus(); } hookUpdateStatus() { setTimeout(function() { this.setState({ updateStatus: 'UPDATED' }); }.bind(this), 3000); } render() { switch (this.state.updateStatus) { case 'UPDATING': return React.createElement('span', { className: 'btn btn-default disabled col-xs-12' }, 'Updating stars ...' ); case 'UPDATED': return React.createElement('span', { className: 'btn btn-default disabled col-xs-12' }, 'Up to date' ); default: return React.createElement('a', { className: 'btn btn-info col-xs-12', href: this.props.path, method: 'post' }, this.props.label ); } } }
import React from 'react'; import PropTypes from 'prop-types'; export default class UpdateButton extends React.Component { static propTypes = { label: PropTypes.string.isRequired, login: PropTypes.string.isRequired, path: PropTypes.string.isRequired }; constructor(props) { super(props); this.state = {}; this.updateStatus(); } updateStatus() { var query = ` query { user(login:"${this.props.login}") { updateStatus } } `; $.post('/graphql', { query: query }, function(data) { var updateStatus = data.data.user.updateStatus; this.setState({ updateStatus: updateStatus }); if (updateStatus == 'UPDATING') { setTimeout(function() { this.updateStatus() }.bind(this), 3000); } }.bind(this)); } render() { switch (this.state.updateStatus) { case 'UPDATING': return React.createElement('span', { className: 'btn btn-default disabled col-xs-12' }, 'Updating stars ...' ); case 'UPDATED': return React.createElement('span', { className: 'btn btn-default disabled col-xs-12' }, 'Up to date' ); case 'OUTDATED': return React.createElement('a', { className: 'btn btn-info col-xs-12', href: this.props.path, 'data-method': 'post' }, this.props.label ); default: return React.createElement('span', { className: 'btn btn-default disabled col-xs-12' }, 'Loading status ...' ); } } }
Use GraphQL API to update component
Use GraphQL API to update component
JavaScript
mit
k0kubun/github-ranking,k0kubun/githubranking,k0kubun/github-ranking,k0kubun/github-ranking,k0kubun/github-ranking,k0kubun/githubranking,k0kubun/github-ranking,k0kubun/githubranking,k0kubun/githubranking,k0kubun/githubranking
--- +++ @@ -10,15 +10,25 @@ constructor(props) { super(props); - this.state = { updateStatus: 'OUTDATED' }; - - this.hookUpdateStatus(); + this.state = {}; + this.updateStatus(); } - hookUpdateStatus() { - setTimeout(function() { - this.setState({ updateStatus: 'UPDATED' }); - }.bind(this), 3000); + updateStatus() { + var query = ` + query { + user(login:"${this.props.login}") { + updateStatus + } + } + `; + $.post('/graphql', { query: query }, function(data) { + var updateStatus = data.data.user.updateStatus; + this.setState({ updateStatus: updateStatus }); + if (updateStatus == 'UPDATING') { + setTimeout(function() { this.updateStatus() }.bind(this), 3000); + } + }.bind(this)); } render() { @@ -33,10 +43,15 @@ { className: 'btn btn-default disabled col-xs-12' }, 'Up to date' ); + case 'OUTDATED': + return React.createElement('a', + { className: 'btn btn-info col-xs-12', href: this.props.path, 'data-method': 'post' }, + this.props.label + ); default: - return React.createElement('a', - { className: 'btn btn-info col-xs-12', href: this.props.path, method: 'post' }, - this.props.label + return React.createElement('span', + { className: 'btn btn-default disabled col-xs-12' }, + 'Loading status ...' ); } }
5e516f2018c8855b3278ab1738c04ecbf0bdf388
app/assets/javascripts/active_admin.js
app/assets/javascripts/active_admin.js
//= require jquery.ui.tabs //= require vendor/select2 //= require vendor/redactor $(document).ready(function(){ if($("select.select2").length) { $("select.select2").select2(); } // In one line for easy removal using sed $('#entry_body').redactor({ focus: false, buttons: ['bold', 'italic', 'link', 'unorderedlist'], lang: 'pl' }) });
//= require jquery.ui.tabs //= require vendor/select2 //= require vendor/redactor // ActiveAdmin //= require jquery.ui.datepicker //= require jquery_ujs //= require active_admin/application $(document).ready(function(){ if($("select.select2").length) { $("select.select2").select2(); } // In one line for easy removal using sed $('#entry_body').redactor({ focus: false, buttons: ['bold', 'italic', 'link', 'unorderedlist'], lang: 'pl' }) });
Add missing ActiveAdmin js scripts
Add missing ActiveAdmin js scripts
JavaScript
bsd-3-clause
netkodo/otwartezabytki,netkodo/otwartezabytki,netkodo/otwartezabytki,netkodo/otwartezabytki
--- +++ @@ -1,6 +1,11 @@ //= require jquery.ui.tabs //= require vendor/select2 //= require vendor/redactor + +// ActiveAdmin +//= require jquery.ui.datepicker +//= require jquery_ujs +//= require active_admin/application $(document).ready(function(){ if($("select.select2").length) {
3cf9d873984cc9621197b0897cbd51520aab0847
ip_record.js
ip_record.js
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ module.exports = function (BLOCK_INTERVAL_MS, INVALID_AGENT_INTERVAL_MS) { function IpRecord() {} IpRecord.parse = function (object) { var rec = new IpRecord() object = object || {} rec.ba = object.ba rec.bk = object.bk return rec } function isBadAgent(agent) { return false // TODO } IpRecord.prototype.isBlocked = function () { return !!(this.bk && (Date.now() - this.bk < INVALID_AGENT_INTERVAL_MS)) } IpRecord.prototype.block = function () { this.bk = Date.now() } IpRecord.prototype.retryAfter = function () { if (!this.isBlocked()) { return 0 } return Math.floor((this.bk + BLOCK_INTERVAL_MS - Date.now()) / 1000) } IpRecord.prototype.update = function (agent) { if (isBadAgent(agent)) { if (Date.now() - this.ba < INVALID_AGENT_INTERVAL_MS) { this.block() } this.ba = Date.now() } return this.retryAfter() } return IpRecord }
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ module.exports = function (BLOCK_INTERVAL_MS, INVALID_AGENT_INTERVAL_MS) { function IpRecord() {} IpRecord.parse = function (object) { var rec = new IpRecord() object = object || {} rec.ba = object.ba rec.bk = object.bk return rec } function isBadAgent(agent) { return false // TODO } IpRecord.prototype.isBlocked = function () { return !!(this.bk && (Date.now() - this.bk < BLOCK_INTERVAL_MS)) } IpRecord.prototype.block = function () { this.bk = Date.now() } IpRecord.prototype.retryAfter = function () { if (!this.isBlocked()) { return 0 } return Math.floor((this.bk + BLOCK_INTERVAL_MS - Date.now()) / 1000) } IpRecord.prototype.update = function (agent) { if (isBadAgent(agent)) { if (Date.now() - this.ba < INVALID_AGENT_INTERVAL_MS) { this.block() } this.ba = Date.now() } return this.retryAfter() } return IpRecord }
Check for blocks against the right interval
Check for blocks against the right interval
JavaScript
mpl-2.0
ReachingOut/fxa-customs-server,mozilla/fxa-customs-server,ofer43211/fxa-customs-server,dannycoates/fxa-customs-server,ReachingOut/fxa-customs-server,chilts/fxa-customs-server,ofer43211/fxa-customs-server,mozilla/fxa-customs-server,dannycoates/fxa-customs-server,chilts/fxa-customs-server
--- +++ @@ -19,7 +19,7 @@ } IpRecord.prototype.isBlocked = function () { - return !!(this.bk && (Date.now() - this.bk < INVALID_AGENT_INTERVAL_MS)) + return !!(this.bk && (Date.now() - this.bk < BLOCK_INTERVAL_MS)) } IpRecord.prototype.block = function () {
4d402d778a574bf131f5d8c19f7deb04f192a872
lib/tests/modules/user_satisfaction_graph.js
lib/tests/modules/user_satisfaction_graph.js
module.exports = function (browser, module, suite, config) { module.axes = module.axes || {}; module.axes.x = module.axes.x || { label: 'Date' }; module.axes.y = module.axes.y || [ { label: 'User satisfaction' } ]; module.trim = module.trim === undefined ? true : module.trim; require('./completion_rate')(browser, module, suite, config); };
module.exports = function (browser, module, suite, config) { module.axes = module.axes || {}; module.axes.x = module.axes.x || { label: 'Date' }; module.axes.y = module.axes.y || [ { label: 'User satisfaction' }, { label: 'Not satisfied' }, { label: 'Dissatisfied' }, { label: 'Neither satisfied or dissatisfied' }, { label: 'Satisfied' }, { label: 'Very satisfied' } ]; module.trim = module.trim === undefined ? true : module.trim; require('./completion_rate')(browser, module, suite, config); };
Update default axes for user satisfaction tables
Update default axes for user satisfaction tables
JavaScript
mit
alphagov/cheapseats
--- +++ @@ -6,9 +6,12 @@ label: 'Date' }; module.axes.y = module.axes.y || [ - { - label: 'User satisfaction' - } + { label: 'User satisfaction' }, + { label: 'Not satisfied' }, + { label: 'Dissatisfied' }, + { label: 'Neither satisfied or dissatisfied' }, + { label: 'Satisfied' }, + { label: 'Very satisfied' } ]; module.trim = module.trim === undefined ? true : module.trim;
36f040079ed2eef515bc97a2d0bdfea07afb8218
src/context.js
src/context.js
let defaultOptions = { wait: false, renderNullWhileWaiting: true, withRef: false, bindI18n: 'languageChanged loaded', bindStore: 'added removed', translateFuncName: 't', nsMode: 'default', usePureComponent: false }; let i18n; export function setDefaults(options) { defaultOptions = { ...defaultOptions, ...options }; } export function getDefaults() { return defaultOptions; } export function setI18n(instance) { i18n = instance; } export function getI18n() { return i18n; } export const reactI18nextModule = { type: '3rdParty', init(instance) { setDefaults(instance.options.react); setI18n(instance); } };
let defaultOptions = { wait: false, withRef: false, bindI18n: 'languageChanged loaded', bindStore: 'added removed', translateFuncName: 't', nsMode: 'default', usePureComponent: false }; let i18n; export function setDefaults(options) { defaultOptions = { ...defaultOptions, ...options }; } export function getDefaults() { return defaultOptions; } export function setI18n(instance) { i18n = instance; } export function getI18n() { return i18n; } export const reactI18nextModule = { type: '3rdParty', init(instance) { setDefaults(instance.options.react); setI18n(instance); } };
Remove last reference to renderNullWhileWaiting
Remove last reference to renderNullWhileWaiting
JavaScript
mit
i18next/react-i18next,i18next/react-i18next,i18next/react-i18next,i18next/react-i18next,i18next/react-i18next,i18next/react-i18next,i18next/react-i18next,i18next/react-i18next
--- +++ @@ -1,6 +1,5 @@ let defaultOptions = { wait: false, - renderNullWhileWaiting: true, withRef: false, bindI18n: 'languageChanged loaded', bindStore: 'added removed',
ae245b42cb97532d69a55d90b84bc7ef94222426
app/controllers/application.js
app/controllers/application.js
import Em from 'ember'; import { task, timeout } from 'ember-concurrency'; const { computed } = Em; var applicationController = Em.Controller.extend({ activeNote: null, hideSidePanel: false, init: function() { Em.run.scheduleOnce('afterRender', () => { $('body div').first().addClass('app-container'); }); }, // data sortedNotes: computed('model.[]', 'model.@each.updatedAt', function() { return this.get('model').sortBy('updatedAt', 'createdAt').reverseObjects(); }), deleteNote: task(function *(note) { yield timeout(150); this.get('model').removeObject(note); if (Em.isEmpty(this.get('model'))) { this.send('createNote'); } else { this.send('showNote', this.get('sortedNotes.firstObject')); } yield note.destroyRecord(); }).drop(), actions: { createNote() { this.transitionToRoute('new'); }, deleteNote(note) { this.get('deleteNote').perform(note); }, signOut() { this.get('session').close().then(()=> { this.transitionToRoute('signin'); }); }, toggleSidePanelHidden() { this.toggleProperty('hideSidePanel'); } } }); export default applicationController;
import Em from 'ember'; import { task, timeout } from 'ember-concurrency'; const { computed } = Em; var applicationController = Em.Controller.extend({ activeNote: null, hideSidePanel: false, init: function() { Em.run.scheduleOnce('afterRender', () => { Em.$('body div').first().addClass('app-container'); }); }, // data sortedNotes: computed('model.[]', 'model.@each.updatedAt', function() { return this.get('model').sortBy('updatedAt', 'createdAt').reverseObjects(); }), deleteNote: task(function *(note) { yield timeout(150); this.get('model').removeObject(note); if (Em.isEmpty(this.get('model'))) { this.send('createNote'); } else { this.send('showNote', this.get('sortedNotes.firstObject')); } yield note.destroyRecord(); }).drop(), actions: { createNote() { this.transitionToRoute('new'); }, deleteNote(note) { this.get('deleteNote').perform(note); }, signOut() { this.get('session').close().then(()=> { this.transitionToRoute('signin'); }); }, toggleSidePanelHidden() { this.toggleProperty('hideSidePanel'); } } }); export default applicationController;
Use Ember namespace for jquery use
Use Ember namespace for jquery use
JavaScript
mit
ddoria921/Notes,ddoria921/Notes
--- +++ @@ -10,7 +10,7 @@ init: function() { Em.run.scheduleOnce('afterRender', () => { - $('body div').first().addClass('app-container'); + Em.$('body div').first().addClass('app-container'); }); },
9436c1a758746b34c07ba0d5c58daff830dbbdc8
src/js/components/service-sub-entities.js
src/js/components/service-sub-entities.js
import React, { PropTypes } from 'react' import { Link } from 'react-router' //TODO make it generic (it's duplicated for gsim inputs and outputs) export default function ServiceSubEntities( { entities, uriName, remove, disabled, noMsg, makeLink }) { if (entities.length === 0) return <span className="form-control">{noMsg}</span> return ( <ul className="list-group" style={{ marginBottom: '5px' }}> { entities.map(entity => { const uri = entity[uriName] return ( <li className="list-group-item" key={uri}> <Link to={makeLink(uri)}> {entity.label} </Link> { !disabled && <a href="#" className="pull-right" onClick={() => remove(uri)} > <span className="glyphicon glyphicon-remove"></span> </a> } </li> ) }) } </ul> ) } ServiceSubEntities.propTypes = { entities: PropTypes.array.isRequired, remove: PropTypes.func.isRequired, disabled: PropTypes.bool.isRequired, noMsg: PropTypes.string.isRequired, makeLink: PropTypes.func.isre }
import React, { PropTypes } from 'react' import { Link } from 'react-router' export default function ServiceSubEntities( { entities, uriName, remove, disabled, noMsg, makeLink }) { if (entities.length === 0) return <span className="form-control">{noMsg}</span> return ( <ul className="list-group" style={{ marginBottom: '5px' }}> { entities.map(entity => { const uri = entity[uriName] return ( <li className="list-group-item" key={uri}> <Link to={makeLink(uri)}> {entity.label} </Link> { !disabled && <a href="#" className="pull-right" onClick={() => remove(uri)} > <span className="glyphicon glyphicon-remove"></span> </a> } </li> ) }) } </ul> ) } ServiceSubEntities.propTypes = { entities: PropTypes.array.isRequired, remove: PropTypes.func.isRequired, disabled: PropTypes.bool.isRequired, noMsg: PropTypes.string.isRequired, makeLink: PropTypes.func.isRequired }
Fix typo in propTypes which led to invalid prop type error messages
Fix typo in propTypes which led to invalid prop type error messages
JavaScript
mit
UNECE/Model-Explorer,UNECE/Model-Explorer
--- +++ @@ -1,7 +1,6 @@ import React, { PropTypes } from 'react' import { Link } from 'react-router' -//TODO make it generic (it's duplicated for gsim inputs and outputs) export default function ServiceSubEntities( { entities, uriName, remove, disabled, noMsg, makeLink }) { if (entities.length === 0) @@ -34,5 +33,5 @@ remove: PropTypes.func.isRequired, disabled: PropTypes.bool.isRequired, noMsg: PropTypes.string.isRequired, - makeLink: PropTypes.func.isre + makeLink: PropTypes.func.isRequired }
b5fabe752a9d325fe4f944d76fd15d60a3b86261
resources/frontend/app/authenticators/torii-oauth2.js
resources/frontend/app/authenticators/torii-oauth2.js
import Ember from 'ember'; import OAuth2 from 'simple-auth-oauth2/authenticators/oauth2'; export default OAuth2.extend({ authenticate: function (options) { return this.fetchOauthData(options).then(this.fetchAccessToken.bind(this)); }, fetchAccessToken: function (oauthCredentials) { var _this = this; return new Ember.RSVP.Promise(function (resolve, reject) { _this.makeRequest(_this.serverTokenEndpoint, oauthCredentials).then(function (response) { Ember.run(function () { var expiresAt = _this.absolutizeExpirationTime(response.expires_in); _this.scheduleAccessTokenRefresh(response.expires_in, expiresAt, response.refresh_token); resolve(Ember.$.extend(response, {expires_at: expiresAt})); }); }, function (xhr) { Ember.run(function () { reject(xhr.responseJSON || xhr.responseText); }); }); }); }, fetchOauthData: function (options) { return new Ember.RSVP.Promise(function (resolve, reject) { options.torii.open(options.provider).then(function (oauthData) { resolve({ grant_type: 'authorization_code', provider: oauthData.provider, code: oauthData.authorizationCode, }); }, function (error) { reject(error); }); }); } });
import Ember from 'ember'; import OAuth2 from 'simple-auth-oauth2/authenticators/oauth2'; export default OAuth2.extend({ authenticate: function (options) { return this.fetchOauthData(options).then(this.fetchAccessToken.bind(this)); }, fetchAccessToken: function (oauthCredentials) { var _this = this; return new Ember.RSVP.Promise(function (resolve, reject) { _this.makeRequest(_this.serverTokenEndpoint, oauthCredentials).then(function (response) { Ember.run(function () { resolve(Ember.$.extend(response, {id: response.user.id})); }); }, function (xhr) { Ember.run(function () { reject(xhr.responseJSON || xhr.responseText); }); }); }); }, fetchOauthData: function (options) { return new Ember.RSVP.Promise(function (resolve, reject) { options.torii.open(options.provider).then(function (oauthData) { resolve({ grant_type: 'authorization_code', provider: oauthData.provider, code: oauthData.authorizationCode, }); }, function (error) { reject(error); }); }); } });
Add ID of current user to simple-auth session
Add ID of current user to simple-auth session
JavaScript
mit
nixsolutions/ggf,nixsolutions/ggf,nixsolutions/ggf,nixsolutions/ggf
--- +++ @@ -12,9 +12,7 @@ return new Ember.RSVP.Promise(function (resolve, reject) { _this.makeRequest(_this.serverTokenEndpoint, oauthCredentials).then(function (response) { Ember.run(function () { - var expiresAt = _this.absolutizeExpirationTime(response.expires_in); - _this.scheduleAccessTokenRefresh(response.expires_in, expiresAt, response.refresh_token); - resolve(Ember.$.extend(response, {expires_at: expiresAt})); + resolve(Ember.$.extend(response, {id: response.user.id})); }); }, function (xhr) { Ember.run(function () {
ae6a1c694d46866c581ca47a07c4d561a4d89437
src/eventer.js
src/eventer.js
;(function(exports) { function Eventer() { var callbacks = {}; this.addListener = function(obj, event, callback) { callbacks[event] = callbacks[event] || []; callbacks[event].push({ obj: obj, callback: callback }); return this; }; this.addListener this.on = this.addListener; this.removeListener = function(obj, event) { for(var i in callbacks) { if(callbacks[i].obj === obj) { delete callbacks[i]; break; } } }; this.emit = function(event, data) { var eventCallbacks = callbacks[event]; if(eventCallbacks !== undefined) { for(var i = 0; i < eventCallbacks.length; i++) { var callbackObj = eventCallbacks[i]; callbackObj.callback.call(callbackObj.obj, data); } } return this; }; } exports.Eventer = Eventer; })(typeof exports === 'undefined' ? this : exports)
;(function(exports) { function Eventer() { var callbacks = {}; this.addListener = function(obj, event, callback) { callbacks[event] = callbacks[event] || []; callbacks[event].push({ obj: obj, callback: callback }); return this; }; this.addListener this.on = this.addListener; this.removeListener = function(obj, event) { for(var i = 0; i < callbacks[event].length; i++) { if(callbacks[event][i].obj === obj) { callbacks[event].splice(i, 1); break; } } }; this.emit = function(event, data) { var eventCallbacks = callbacks[event]; if(eventCallbacks !== undefined) { for(var i = 0; i < eventCallbacks.length; i++) { var callbackObj = eventCallbacks[i]; callbackObj.callback.call(callbackObj.obj, data); } } return this; }; } exports.Eventer = Eventer; })(typeof exports === 'undefined' ? this : exports)
Make Eventer.removeListener actually, like, remove passed listener.
Make Eventer.removeListener actually, like, remove passed listener.
JavaScript
mit
maryrosecook/codewithisla
--- +++ @@ -16,9 +16,9 @@ this.on = this.addListener; this.removeListener = function(obj, event) { - for(var i in callbacks) { - if(callbacks[i].obj === obj) { - delete callbacks[i]; + for(var i = 0; i < callbacks[event].length; i++) { + if(callbacks[event][i].obj === obj) { + callbacks[event].splice(i, 1); break; } }
093c7b77eac28485e2b3ea10396ffb8c96bd5a2b
client/src/js/account/components/General.js
client/src/js/account/components/General.js
/** * * * @copyright 2017 Government of Canada * @license MIT * @author igboyes * */ import React from "react"; import { capitalize } from "lodash"; import { connect } from "react-redux"; import { Label } from "react-bootstrap"; import { Flex, FlexItem } from "../../base"; import ChangePassword from "./Password"; import { Identicon } from "../../base"; class AccountGeneral extends React.Component { constructor (props) { super(props); } render () { const groupLabels = this.props.groups.map(groupId => <Label key={groupId} style={{marginRight: "3px"}}> {capitalize(groupId)} </Label> ); return ( <div> <Flex alignItems="stretch"> <FlexItem> <Identicon hash={this.props.hash} /> </FlexItem> <FlexItem pad={10}> <h5> <strong> {this.props.id} </strong> </h5> <div> {groupLabels} </div> </FlexItem> </Flex> <ChangePassword /> </div> ); } } const mapStateToProps = (state) => { return { id: state.account.id, hash: state.account.identicon, groups: state.account.groups }; }; const Container = connect(mapStateToProps)(AccountGeneral); export default Container;
/** * * * @copyright 2017 Government of Canada * @license MIT * @author igboyes * */ import React from "react"; import { capitalize } from "lodash"; import { connect } from "react-redux"; import { Label } from "react-bootstrap"; import { Flex, FlexItem } from "../../base"; import ChangePassword from "./Password"; import { Identicon } from "../../base"; const AccountGeneral = ({ id, groups, hash }) => { const groupLabels = groups.map(groupId => <Label key={groupId} style={{marginRight: "3px"}}> {capitalize(groupId)} </Label> ); return ( <div> <Flex alignItems="stretch" style={{marginBottom: "15px"}}> <FlexItem> <Identicon hash={hash} /> </FlexItem> <FlexItem pad={10}> <h5> <strong> {id} </strong> </h5> <div> {groupLabels} </div> </FlexItem> </Flex> <ChangePassword /> </div> ); }; const mapStateToProps = (state) => { return { id: state.account.id, hash: state.account.identicon, groups: state.account.groups }; }; const Container = connect(mapStateToProps)(AccountGeneral); export default Container;
Add bottom margin to header in account > general
Add bottom margin to header in account > general
JavaScript
mit
igboyes/virtool,virtool/virtool,virtool/virtool,igboyes/virtool
--- +++ @@ -15,42 +15,36 @@ import ChangePassword from "./Password"; import { Identicon } from "../../base"; -class AccountGeneral extends React.Component { +const AccountGeneral = ({ id, groups, hash }) => { - constructor (props) { - super(props); - } + const groupLabels = groups.map(groupId => + <Label key={groupId} style={{marginRight: "3px"}}> + {capitalize(groupId)} + </Label> + ); + + return ( + <div> + <Flex alignItems="stretch" style={{marginBottom: "15px"}}> + <FlexItem> + <Identicon hash={hash} /> + </FlexItem> + <FlexItem pad={10}> + <h5> + <strong> + {id} + </strong> + </h5> + <div> + {groupLabels} + </div> + </FlexItem> + </Flex> - render () { - const groupLabels = this.props.groups.map(groupId => - <Label key={groupId} style={{marginRight: "3px"}}> - {capitalize(groupId)} - </Label> - ); - - return ( - <div> - <Flex alignItems="stretch"> - <FlexItem> - <Identicon hash={this.props.hash} /> - </FlexItem> - <FlexItem pad={10}> - <h5> - <strong> - {this.props.id} - </strong> - </h5> - <div> - {groupLabels} - </div> - </FlexItem> - </Flex> - - <ChangePassword /> - </div> - ); - } -} + <ChangePassword /> + </div> + ); +}; const mapStateToProps = (state) => { return {
1ef81de1fc3cc846d86adee9ed401bc233447fe8
classes/PluginManager.js
classes/PluginManager.js
const {app} = require('electron'), fs = require('fs-extra'), Path = require('path'), klaw = require('klaw-sync'); var PluginManager = { loadedPlugins: {}, LoadPlugins: function(mod, appEvents) { const appPath = Path.resolve(app.getAppPath() + '/plugins'); var pluginFolders = fs.readdirSync( appPath ) console.log('Loading ' + pluginFolders.length + ' plugins from ' + appPath) pluginFolders.forEach((pluginFolder) => { var pluginPath = Path.resolve('plugins', pluginFolder), stat = fs.statSync(pluginPath); if(stat && stat.isDirectory()) { loadPlugin(pluginPath, mod, appEvents); } }); } } function loadPlugin(dir, mod) { const pluginManifestPath = Path.resolve(dir, 'package.json'); // Register the plugin var pluginManifest = fs.readJsonSync(pluginManifestPath); PluginManager.loadedPlugins[pluginManifest.name] = { manifest: pluginManifest, module: mod.require(dir) }; // Execute the plugin's initial script PluginManager.loadedPlugins[pluginManifest.name].module.onLoad(); console.log('Plugin:', pluginManifest.name, 'loaded'); } module.exports = PluginManager;
const {app} = require('electron'), fs = require('fs-extra'), Path = require('path'), klaw = require('klaw-sync'); var PluginManager = { loadedPlugins: {}, LoadPlugins: function(mod, appEvents) { const appPath = Path.resolve(app.getAppPath() + '/plugins'); var pluginFolders = fs.readdirSync( appPath ) console.log('Loading ' + pluginFolders.length + ' plugins from ' + appPath) pluginFolders.forEach((pluginFolder) => { var pluginPath = Path.resolve('plugins', pluginFolder), stat = fs.statSync(pluginPath); if(stat && stat.isDirectory()) { loadPlugin(pluginPath, mod, appEvents); } }); } } function loadPlugin(dir, mod) { const pluginManifestPath = Path.resolve(dir, 'package.json'); // Register the plugin var pluginManifest = fs.readJsonSync(pluginManifestPath), PluginClass = new require('./Plugin.js')(pluginManifest.name); PluginManager.loadedPlugins[pluginManifest.name] = { manifest: pluginManifest, module: mod.require(dir)(PluginClass) }; // Execute the plugin's initial script PluginManager.loadedPlugins[pluginManifest.name].module.onLoad(); console.log('Plugin:', pluginManifest.name, 'loaded'); } module.exports = PluginManager;
Restructure plugin loading to pass Plugin class to each loaded plugin
Restructure plugin loading to pass Plugin class to each loaded plugin Closes #33
JavaScript
mit
ChiefOfGxBxL/Ice-Sickle,ChiefOfGxBxL/Ice-Sickle
--- +++ @@ -27,10 +27,12 @@ const pluginManifestPath = Path.resolve(dir, 'package.json'); // Register the plugin - var pluginManifest = fs.readJsonSync(pluginManifestPath); + var pluginManifest = fs.readJsonSync(pluginManifestPath), + PluginClass = new require('./Plugin.js')(pluginManifest.name); + PluginManager.loadedPlugins[pluginManifest.name] = { manifest: pluginManifest, - module: mod.require(dir) + module: mod.require(dir)(PluginClass) }; // Execute the plugin's initial script
2284bd6aa19c4e8104303ec269b306b629150ef7
app/config.js
app/config.js
import { observable } from 'mobx' import getCookie from './utils/getCookie' const config = observable({ projectName: '', spaceKey: '', requiredExtensions: [], baseURL: getCookie('BACKEND_URL') || __BACKEND_URL__ || window.location.origin, packageDev: getCookie('PACKAGE_DEV') || __PACKAGE_DEV__, packageServer: getCookie('PACKAGE_SERVER') || __PACKAGE_SERVER__ || window.location.origin, wsURL: getCookie('WS_URL') || __WS_URL__ || __BACKEND_URL__ || window.location.origin, runMode: __RUN_MODE__, isPlatform: Boolean(__RUN_MODE__), fsSocketConnected: false, ttySocketConnected: false, fileExcludePatterns: ['/.git', '/.coding-ide'], preventAccidentalClose: false, hasRehydrated: getCookie('skipRehydrate') || false, estimatedMap: observable.map({}) }) window.config = config export default config
import { observable, autorun } from 'mobx' import getCookie from './utils/getCookie' const config = observable({ projectName: '', spaceKey: '', requiredExtensions: [], baseURL: getCookie('BACKEND_URL') || __BACKEND_URL__ || window.location.origin, packageDev: getCookie('PACKAGE_DEV') || __PACKAGE_DEV__, packageServer: getCookie('PACKAGE_SERVER') || __PACKAGE_SERVER__ || window.location.origin, wsURL: getCookie('WS_URL') || __WS_URL__ || __BACKEND_URL__ || window.location.origin, runMode: __RUN_MODE__, isPlatform: Boolean(__RUN_MODE__), fsSocketConnected: false, ttySocketConnected: false, fileExcludePatterns: ['/.git', '/.coding-ide'], preventAccidentalClose: false, hasRehydrated: getCookie('skipRehydrate') || false, estimatedMap: observable.map({}) }) autorun(() => { if (config.projectName) { window.document.title = `${config.projectName} | Coding WebIDE 开启云端开发模式! - Coding.net` } }) window.config = config export default config
Change title with project name
Change title with project name
JavaScript
bsd-3-clause
Coding/WebIDE-Frontend,Coding/WebIDE-Frontend
--- +++ @@ -1,4 +1,4 @@ -import { observable } from 'mobx' +import { observable, autorun } from 'mobx' import getCookie from './utils/getCookie' const config = observable({ @@ -19,5 +19,11 @@ estimatedMap: observable.map({}) }) +autorun(() => { + if (config.projectName) { + window.document.title = `${config.projectName} | Coding WebIDE 开启云端开发模式! - Coding.net` + } +}) + window.config = config export default config
e7fa6a14c96140349a5f1bf3c1a3fd954d812f8d
app/js/constants/specificSituations.js
app/js/constants/specificSituations.js
'use strict'; angular.module('ddsCommon').constant('specificSituations', [ { id: 'demandeur_emploi', label: 'Demandeur·euse d’emploi' }, { id: 'etudiant', label: 'Étudiant·e' }, { id: 'retraite', label: 'Retraité·e' }, { id: 'handicap', label: 'En situation de handicap' }, { id: 'inapte_travail', label: 'Inapte au travail' } ]);
'use strict'; angular.module('ddsCommon').constant('specificSituations', [ { id: 'demandeur_emploi', label: 'En recherche d’emploi' }, { id: 'etudiant', label: 'Étudiant·e' }, { id: 'retraite', label: 'Retraité·e' }, { id: 'handicap', label: 'En situation de handicap' }, { id: 'inapte_travail', label: 'Inapte au travail' } ]);
Make gender neutrality more bearable
Make gender neutrality more bearable
JavaScript
agpl-3.0
sgmap/mes-aides-ui,sgmap/mes-aides-ui,sgmap/mes-aides-ui,sgmap/mes-aides-ui
--- +++ @@ -3,7 +3,7 @@ angular.module('ddsCommon').constant('specificSituations', [ { id: 'demandeur_emploi', - label: 'Demandeur·euse d’emploi' + label: 'En recherche d’emploi' }, { id: 'etudiant',
e777490e26317068c46884f080140c9f2bf15804
app/__tests__/app-spec.js
app/__tests__/app-spec.js
const path = require('path') const assert = require('yeoman-assert') const helpers = require('yeoman-test') describe('react-zeal', () => { beforeEach(() => { return helpers.run(path.join(__dirname, '../../app')) .withPrompts({ name: 'apples' }) }) test('creates root level files', () => { assert.file(['.gitignore', 'package.json']) }) test('generated package.json has "apples" as the package name', () => { assert.jsonFileContent('package.json', { "name": "apples" }) }) test('copies .eslintrc.json file', () => { assert.jsonFileContent('.eslintrc.json', { "extends": [ "zeal", "zeal/react" ] }) }) })
const path = require('path') const assert = require('yeoman-assert') const helpers = require('yeoman-test') describe('react-zeal', () => { beforeEach(() => { return helpers.run(path.join(__dirname, '../../app')) .withPrompts({ name: 'apples' }) }) test('creates root level files', () => { assert.file(['.gitignore', 'package.json']) }) test('generated package.json has "apples" as the package name', () => { assert.jsonFileContent('package.json', { "name": "apples" }) }) test('copies .eslintrc.js file', () => { assert.fileContent('.eslintrc.js', 'path.resolve') }) })
Adjust test for copying eslint config
Adjust test for copying eslint config
JavaScript
mit
CodingZeal/generator-react-zeal,CodingZeal/generator-react-zeal
--- +++ @@ -16,9 +16,7 @@ assert.jsonFileContent('package.json', { "name": "apples" }) }) - test('copies .eslintrc.json file', () => { - assert.jsonFileContent('.eslintrc.json', { - "extends": [ "zeal", "zeal/react" ] - }) + test('copies .eslintrc.js file', () => { + assert.fileContent('.eslintrc.js', 'path.resolve') }) })
0782bebcad92c9f8c2af152e805c167781a3f0a9
app/routes/application.js
app/routes/application.js
import Route from '@ember/routing/route'; import { inject as service } from '@ember/service'; import { action } from '@ember/object'; import { isPresent } from '@ember/utils'; export default class ApplicationRoute extends Route { @service('remotestorage') storage; @service localData; @service logger; @service coms; async beforeModel (transition) { super.beforeModel(...arguments); await this.storage.ensureReadiness(); await this.localData.setDefaultValues(); await this.coms.instantiateAccountsAndChannels(); this.coms.setupListeners(); if (isPresent(transition.intent.url) && transition.intent.url.includes('add-account')) { return; } if (!this.coms.onboardingComplete) { this.transitionTo('welcome'); } // See a list of allowed types in logger.js // Add or remove all your log types here: // this.logger.add('message'); // this.logger.remove('join'); // this.logger.disable(); // this.logger.enable(); } @action leaveChannel (channel) { this.coms.removeChannel(channel); // Switch to last channel if the channel parted was currently open if (channel.visible) { let lastChannel = this.coms.sortedChannels.lastObject; this.transitionTo('channel', lastChannel); } } }
import Route from '@ember/routing/route'; import { inject as service } from '@ember/service'; import { action } from '@ember/object'; import { isPresent } from '@ember/utils'; export default class ApplicationRoute extends Route { @service('remotestorage') storage; @service localData; @service logger; @service coms; async beforeModel () { super.beforeModel(...arguments); await this.storage.ensureReadiness(); await this.localData.setDefaultValues(); await this.coms.instantiateAccountsAndChannels(); this.coms.setupListeners(); // See a list of allowed types in logger.js // Add or remove all your log types here: // this.logger.add('message'); // this.logger.remove('join'); // this.logger.disable(); // this.logger.enable(); } redirect (model, transition) { if (isPresent(transition.intent.url) && transition.intent.url.includes('add-account')) { return; } if (!this.coms.onboardingComplete) { this.transitionTo('welcome'); } } @action leaveChannel (channel) { this.coms.removeChannel(channel); // Switch to last channel if the channel parted was currently open if (channel.visible) { let lastChannel = this.coms.sortedChannels.lastObject; this.transitionTo('channel', lastChannel); } } }
Fix redirects causing duplicate setup method calls
Fix redirects causing duplicate setup method calls Triggering a transition from the beforeModel method in the application route will cause the beforeModel method to be called again on the next transition. Moving the transition call to the redirect method fixes this.
JavaScript
mpl-2.0
67P/hyperchannel,67P/hyperchannel
--- +++ @@ -10,7 +10,7 @@ @service logger; @service coms; - async beforeModel (transition) { + async beforeModel () { super.beforeModel(...arguments); await this.storage.ensureReadiness(); @@ -18,6 +18,15 @@ await this.coms.instantiateAccountsAndChannels(); this.coms.setupListeners(); + // See a list of allowed types in logger.js + // Add or remove all your log types here: + // this.logger.add('message'); + // this.logger.remove('join'); + // this.logger.disable(); + // this.logger.enable(); + } + + redirect (model, transition) { if (isPresent(transition.intent.url) && transition.intent.url.includes('add-account')) { return; @@ -26,13 +35,6 @@ if (!this.coms.onboardingComplete) { this.transitionTo('welcome'); } - - // See a list of allowed types in logger.js - // Add or remove all your log types here: - // this.logger.add('message'); - // this.logger.remove('join'); - // this.logger.disable(); - // this.logger.enable(); } @action
5af1c17b0d1d24a310756ab6ecaa33a10c603da7
client/templates/createdoc/create_doc.js
client/templates/createdoc/create_doc.js
Template.createDoc.events({ "submit .new-doc": function(event) { console.log("test"); event.preventDefault(); var title = event.target.title.value; Documents.insert({ title: title }, function(err, _id) { Router.go('workpane', {_id: _id}) }); } })
Template.createDoc.events({ "submit .new-doc": function(event) { console.log("test"); event.preventDefault(); var title = event.target.title.value; Documents.insert({ title: title, createdAt: new Date(), owner: Meteor.userId(), collaborators: [] }, function(err, _id) { Router.go('workpane', {_id: _id}) }); } })
Insert additional fields for documents
Insert additional fields for documents
JavaScript
mit
markdownerds/markdownerds,markdownerds/markdownerds
--- +++ @@ -5,7 +5,10 @@ event.preventDefault(); var title = event.target.title.value; Documents.insert({ - title: title + title: title, + createdAt: new Date(), + owner: Meteor.userId(), + collaborators: [] }, function(err, _id) { Router.go('workpane', {_id: _id}) });
209a36049698406ce03c14eeeabfe4a7700639bb
app/scripts/help/index.js
app/scripts/help/index.js
'use strict'; var App = require('../app'); var Backbone = require('backbone'); var Marionette = require('backbone.marionette'); var _ = require('underscore'); var keyboardShortcuts = require('./keyboardshortcuts.json'); var marked = require('marked'); var controller = { showHelp: function () { var HelpView = require('./views/HelpView'); _.each(keyboardShortcuts, function (category) { _.each(category.shortcuts, function (shortcut) { shortcut.description = marked(shortcut.description); }); }); var helpModel = new Backbone.Model({keyboardShortcuts: keyboardShortcuts}); App.mainRegion.show(new HelpView({model: helpModel})); App.navigationRegion.currentView.options.collection.deselect(); } }; App.addInitializer(function () { new Marionette.AppRouter({ controller: controller, appRoutes: { 'help': 'showHelp' } }); });
'use strict'; var App = require('../app'); var Backbone = require('backbone'); var Marionette = require('backbone.marionette'); var _ = require('underscore'); var keyboardShortcuts = require('./keyboardShortcuts.json'); var marked = require('marked'); var controller = { showHelp: function () { var HelpView = require('./views/HelpView'); _.each(keyboardShortcuts, function (category) { _.each(category.shortcuts, function (shortcut) { shortcut.description = marked(shortcut.description); }); }); var helpModel = new Backbone.Model({keyboardShortcuts: keyboardShortcuts}); App.mainRegion.show(new HelpView({model: helpModel})); App.navigationRegion.currentView.options.collection.deselect(); } }; App.addInitializer(function () { new Marionette.AppRouter({ controller: controller, appRoutes: { 'help': 'showHelp' } }); });
Fix case of filename keyboardShortcuts.json
Fix case of filename keyboardShortcuts.json
JavaScript
mit
Yunheng/nusmods,mauris/nusmods,nusmodifications/nusmods,chunqi/nusmods,chunqi/nusmods,Yunheng/nusmods,zhouyichen/nusmods,nathanajah/nusmods,mauris/nusmods,nusmodifications/nusmods,chunqi/nusmods,zhouyichen/nusmods,nusmodifications/nusmods,mauris/nusmods,Yunheng/nusmods,Yunheng/nusmods,zhouyichen/nusmods,nathanajah/nusmods,Yunheng/nusmods,mauris/nusmods,nathanajah/nusmods,chunqi/nusmods,nusmodifications/nusmods,nathanajah/nusmods,zhouyichen/nusmods
--- +++ @@ -4,7 +4,7 @@ var Backbone = require('backbone'); var Marionette = require('backbone.marionette'); var _ = require('underscore'); -var keyboardShortcuts = require('./keyboardshortcuts.json'); +var keyboardShortcuts = require('./keyboardShortcuts.json'); var marked = require('marked'); var controller = {
c2e3d74abd8fc64e018d8969bc654ec6c263f084
client/app-bundle/views/StudentProfile.js
client/app-bundle/views/StudentProfile.js
var m = require('mithril'); //Components var StudentInfo = require('../components/StudentInfo.js'); var StudentJob = require('../components/StudentJob.js'); var Messaging = require('../components/Messaging.js'); var NewApp = require('../components/forms/NewApp.js'); var Graph = require('../components/OutcomesGraph.js'); //Models var StudentApp = require('../models/StudentApp.js'); var Message = require('../models/Message.js'); exports.controller = function (ctrl) { //Fetches student apps, info, and messages from db StudentApp.fetchApps(ctrl); StudentApp.fetchInfo(ctrl); Message.fetch(ctrl); Message.fetchUsers(); } exports.view = function (ctrl) { // .all() Makes data accessible to the components var appsData = StudentApp.all(); var messagesData = Message.all(); return m('.container', [ m('h1.center-align', 'Pending Applications'), m('.row'), m('.row', [ // m.component(StudentInfo, { studentInfo: appsData.studentInfo } ), m.component(StudentJob, { apps: appsData.apps, studentInfo: appsData.studentInfo } ), ]), m('.row.center-align', [ m('a.btn[href=/newapp]', {config: m.route}, 'New Application') ]), m.component(Messaging, { messages: messagesData.messages, users: messagesData.users, studentInfo: appsData.studentInfo }) ]); };
var m = require('mithril'); //Components var StudentInfo = require('../components/StudentInfo.js'); var StudentJob = require('../components/StudentJob.js'); var Messaging = require('../components/Messaging.js'); var NewApp = require('../components/forms/NewApp.js'); var Graph = require('../components/OutcomesGraph.js'); //Models var StudentApp = require('../models/StudentApp.js'); var Message = require('../models/Message.js'); exports.controller = function (ctrl) { //Fetches student apps, info, and messages from db StudentApp.fetchApps(ctrl); StudentApp.fetchInfo(ctrl); Message.fetch(ctrl); Message.fetchUsers(); } exports.view = function (ctrl) { // .all() Makes data accessible to the components var appsData = StudentApp.all(); var messagesData = Message.all(); return m('.container', [ m('h1.center-align', 'Pending Applications'), m('.row', [ // m.component(StudentInfo, { studentInfo: appsData.studentInfo } ), m.component(StudentJob, { apps: appsData.apps, studentInfo: appsData.studentInfo } ), ]), m('.row.center-align', [ m('a.btn[href=/newapp]', {config: m.route}, 'New Application') ]), m.component(Messaging, { messages: messagesData.messages, users: messagesData.users, studentInfo: appsData.studentInfo }) ]); };
Delete row element to fix spacing
Delete row element to fix spacing
JavaScript
mit
mksq/network,mksq/network,mksq/network
--- +++ @@ -25,8 +25,6 @@ var messagesData = Message.all(); return m('.container', [ m('h1.center-align', 'Pending Applications'), - - m('.row'), m('.row', [ // m.component(StudentInfo, { studentInfo: appsData.studentInfo } ), m.component(StudentJob, { apps: appsData.apps, studentInfo: appsData.studentInfo } ),
6c5ea6fea94d68125e9a32002a897156f64dbf87
common/predictive-text/unit_tests/in_browser/cases/basic.js
common/predictive-text/unit_tests/in_browser/cases/basic.js
var assert = chai.assert; describe('LMLayerWorkerCode', function() { it('should exist!', function() { assert.isFunction(LMLayerWorkerCode, 'Could not find LMLayerWorkerCode! Does embedded_worker.js exist?' ); }); });
var assert = chai.assert; describe('LMLayerWorker', function () { describe('LMLayerWorkerCode', function() { it('should exist!', function() { assert.isFunction(LMLayerWorkerCode, 'Could not find LMLayerWorkerCode! Does embedded_worker.js exist?' ); }); }); describe('Usage within a Web Worker', function () { it('should install itself in the worker context', function (done) { let wrapper = LMLayerWorkerCode.toString(); let match = wrapper.match(/function[^{]+{((?:.|\n)+)}[^}]*$/); assert.isNotNull(match); let code = match[1]; assert.isString(code); let blob = new Blob([code], { type: 'text/javascript' }); debugger; let uri = URL.createObjectURL(blob); let worker = new Worker(uri); worker.onmessage = function thisShouldBeCalled(message) { done(); }; worker.postMessage({ message: 'initialize', model: "return {model: {}, configuration: {}}" }); }); }); })
Write integration test for LMLayerWorker code.
Write integration test for LMLayerWorker code.
JavaScript
apache-2.0
tavultesoft/keymanweb,tavultesoft/keymanweb
--- +++ @@ -1,8 +1,33 @@ var assert = chai.assert; -describe('LMLayerWorkerCode', function() { - it('should exist!', function() { - assert.isFunction(LMLayerWorkerCode, - 'Could not find LMLayerWorkerCode! Does embedded_worker.js exist?' - ); +describe('LMLayerWorker', function () { + describe('LMLayerWorkerCode', function() { + it('should exist!', function() { + assert.isFunction(LMLayerWorkerCode, + 'Could not find LMLayerWorkerCode! Does embedded_worker.js exist?' + ); + }); }); -}); + + describe('Usage within a Web Worker', function () { + it('should install itself in the worker context', function (done) { + let wrapper = LMLayerWorkerCode.toString(); + let match = wrapper.match(/function[^{]+{((?:.|\n)+)}[^}]*$/); + assert.isNotNull(match); + let code = match[1]; + assert.isString(code); + + let blob = new Blob([code], { type: 'text/javascript' }); + debugger; + let uri = URL.createObjectURL(blob); + + let worker = new Worker(uri); + worker.onmessage = function thisShouldBeCalled(message) { + done(); + }; + worker.postMessage({ + message: 'initialize', + model: "return {model: {}, configuration: {}}" + }); + }); + }); +})
77471e4143cc7e7bd5592236285d5209dea36496
src/html/behaviors/BaseGeometryBehavior.js
src/html/behaviors/BaseGeometryBehavior.js
import BaseMeshBehavior from './BaseMeshBehavior' // base class for geometry behaviors export default class BaseGeometryBehavior extends BaseMeshBehavior { static get type() { return 'geometry' } static get observedAttributes() { return [ 'size' ] } async attributeChangedCallback( element, attr, oldVal, newVal ) { if (! ( await super.attributeChangedCallback( element ) ) ) return if ( attr == 'size' ) { // TODO We currently don't rely on the actual attribute values, but // on the calculatedSize that is calculated by the Sizeable class that // element extends from. This might not be accurate in the future // if we defer size calculations to the next animation frame. // Maybe we can make it force calculation in these cases, similar // to how DOM does forced layout when forced. Or maybe, when/if we // have attribute typing, we just react to actual typed attribute // values. In either case, the end user should avoid changing // attribute values until an animation frame, so that no matter // what everything happens in sync with the browser rendering. // TODO: if the current calculatedSize is calculated *after* this code, // then we may need to defer to a microtask. Let's see in which // order it is happening... // TODO: how does scaling affect textures? Maybe we have to scale // textures, or maybe we have to just generate a new Sphere? Or // maybe we can hack it and somehow modify the existing geometry so // Three sees it as having a new size. this.setMeshComponent( element, 'geometry', this.createComponent(element) ) // this is not needed because it is already triggered by the // attributeChangedCallback of the element for the 'size' // attribute. //element._needsToBeRendered() } } }
import BaseMeshBehavior from './BaseMeshBehavior' // base class for geometry behaviors export default class BaseGeometryBehavior extends BaseMeshBehavior { static get type() { return 'geometry' } async connectedCallback( element ) { if (! ( await super.connectedCallback( element ) ) ) return element.on('sizechange', ({ x, y, z }) => { this.setMeshComponent( element, 'geometry', this.createComponent(element) ) }) } }
Make geometry behaviors rely on the element's sizechange event rather than on the size attribute. This ensures that element.calculatedSize is up-to-date when it is used, otherwise the size of the geometry can be the wrong value and rendered at the size of the previous frame rather than the size of the current frame.
Make geometry behaviors rely on the element's sizechange event rather than on the size attribute. This ensures that element.calculatedSize is up-to-date when it is used, otherwise the size of the geometry can be the wrong value and rendered at the size of the previous frame rather than the size of the current frame.
JavaScript
mit
trusktr/infamous,trusktr/infamous,trusktr/infamous
--- +++ @@ -6,39 +6,12 @@ static get type() { return 'geometry' } - static get observedAttributes() { - return [ 'size' ] - } + async connectedCallback( element ) { + if (! ( await super.connectedCallback( element ) ) ) return - async attributeChangedCallback( element, attr, oldVal, newVal ) { - if (! ( await super.attributeChangedCallback( element ) ) ) return - - if ( attr == 'size' ) { - // TODO We currently don't rely on the actual attribute values, but - // on the calculatedSize that is calculated by the Sizeable class that - // element extends from. This might not be accurate in the future - // if we defer size calculations to the next animation frame. - // Maybe we can make it force calculation in these cases, similar - // to how DOM does forced layout when forced. Or maybe, when/if we - // have attribute typing, we just react to actual typed attribute - // values. In either case, the end user should avoid changing - // attribute values until an animation frame, so that no matter - // what everything happens in sync with the browser rendering. - // TODO: if the current calculatedSize is calculated *after* this code, - // then we may need to defer to a microtask. Let's see in which - // order it is happening... - // TODO: how does scaling affect textures? Maybe we have to scale - // textures, or maybe we have to just generate a new Sphere? Or - // maybe we can hack it and somehow modify the existing geometry so - // Three sees it as having a new size. - + element.on('sizechange', ({ x, y, z }) => { this.setMeshComponent( element, 'geometry', this.createComponent(element) ) - - // this is not needed because it is already triggered by the - // attributeChangedCallback of the element for the 'size' - // attribute. - //element._needsToBeRendered() - } + }) } }
f7583fdf37e3d4730dbab5f1165ea0f9b22da7ef
background.js
background.js
chrome.tabs.executeScript(null, {file: "lib/jquery-3.1.1.min.js"}, function() { chrome.tabs.executeScript(null, {file: "content.js"}); });
chrome.webNavigation.onHistoryStateUpdated.addListener(function(details) { chrome.tabs.executeScript(null, {file: "lib/jquery-3.1.1.min.js"}, function() { chrome.tabs.executeScript(null, {file: "content.js"}); }); });
Fix bug when navigating insite
Fix bug when navigating insite
JavaScript
mit
nschulte/indies-stats,nschulte/indies-stats
--- +++ @@ -1,3 +1,5 @@ -chrome.tabs.executeScript(null, {file: "lib/jquery-3.1.1.min.js"}, function() { - chrome.tabs.executeScript(null, {file: "content.js"}); +chrome.webNavigation.onHistoryStateUpdated.addListener(function(details) { + chrome.tabs.executeScript(null, {file: "lib/jquery-3.1.1.min.js"}, function() { + chrome.tabs.executeScript(null, {file: "content.js"}); + }); });
c8013d930c6cf4bca9e053907c14d74b7b6ad3e3
libtextsecure/protobufs.js
libtextsecure/protobufs.js
;(function() { 'use strict'; window.textsecure = window.textsecure || {}; window.textsecure.protobuf = {}; function loadProtoBufs(filename) { return dcodeIO.ProtoBuf.loadProtoFile({root: 'protos', file: filename}, function(error, result) { var protos = result.build('textsecure'); for (var protoName in protos) { textsecure.protobuf[protoName] = protos[protoName]; } }); }; loadProtoBufs('IncomingPushMessageSignal.proto'); loadProtoBufs('SubProtocol.proto'); loadProtoBufs('DeviceMessages.proto'); })();
;(function() { 'use strict'; window.textsecure = window.textsecure || {}; window.textsecure.protobuf = {}; function loadProtoBufs(filename) { return dcodeIO.ProtoBuf.loadProtoFile({root: 'protos', file: filename}, function(error, result) { if (error) { throw error; } var protos = result.build('textsecure'); for (var protoName in protos) { textsecure.protobuf[protoName] = protos[protoName]; } }); }; loadProtoBufs('IncomingPushMessageSignal.proto'); loadProtoBufs('SubProtocol.proto'); loadProtoBufs('DeviceMessages.proto'); })();
Throw if we get an error
Proto-loading: Throw if we get an error
JavaScript
agpl-3.0
nrizzio/Signal-Desktop,nrizzio/Signal-Desktop,nrizzio/Signal-Desktop,nrizzio/Signal-Desktop
--- +++ @@ -5,6 +5,9 @@ function loadProtoBufs(filename) { return dcodeIO.ProtoBuf.loadProtoFile({root: 'protos', file: filename}, function(error, result) { + if (error) { + throw error; + } var protos = result.build('textsecure'); for (var protoName in protos) { textsecure.protobuf[protoName] = protos[protoName];
4c7c4be66b0c5c38070bfc0c2827b440bb94bacf
app/components/Window2.js
app/components/Window2.js
// @flow import React, { Component } from 'react'; import { Link } from 'react-router'; import { Text } from 'react-dom'; import _ from 'underscore'; import styles from './Window2.css'; import ALL_DATA from '../fixtures/alldata.js'; const ALL_DATA_BY_ID = _.indexBy(ALL_DATA, 'id'); class Window2 extends Component { render() { function linkify(text){ return ( <div className="fullText"> { text.split(' ').map( function(word){ if (word.indexOf('<Link>') > -1) { const [,url,text]= word.split('|'); return <Link to={url}>{text}</Link> } else { return word+' ' } } ) } </div> ); } const fullText = linkify(ALL_DATA_BY_ID[this.props.params.id].fullText); const { currentSearch, updateSearch } = this.props; return ( <div className="window2"> <div className="row"> <p>Window2</p> {fullText} </div> </div> ); } } export default Window2;
// @flow import React, { Component } from 'react'; import { Link } from 'react-router'; import { Text } from 'react-dom'; import _ from 'underscore'; import styles from './Window2.css'; import ALL_DATA from '../fixtures/alldata.js'; const ALL_DATA_BY_ID = _.indexBy(ALL_DATA, 'id'); class Window2 extends Component { render() { function linkify(text){ let i=0; return ( <div className="fullText"> { text.split(' ').map( function(word){ i++; if (word.indexOf('<Link>') > -1) { const [,url,text]= word.split('|'); return <Link key={i} to={url}>{text}</Link> } else { return word+' ' } } ) } </div> ); } const fullText = linkify(ALL_DATA_BY_ID[this.props.params.id].fullText); const { currentSearch, updateSearch } = this.props; return ( <div className="window2"> <div className="row"> <p>Window2</p> {fullText} </div> </div> ); } } export default Window2;
Update keys to match warnings
Update keys to match warnings
JavaScript
mit
Fresh-maker/razor-client,Fresh-maker/razor-client
--- +++ @@ -12,14 +12,16 @@ class Window2 extends Component { render() { function linkify(text){ + let i=0; return ( <div className="fullText"> { text.split(' ').map( function(word){ + i++; if (word.indexOf('<Link>') > -1) { const [,url,text]= word.split('|'); - return <Link to={url}>{text}</Link> + return <Link key={i} to={url}>{text}</Link> } else { return word+' ' }
a90b5618409689a6455214cb83129db6a5ab9740
docs/examples/TooltipInCopy.js
docs/examples/TooltipInCopy.js
const LinkWithTooltip = React.createClass({ render() { let tooltip = <Tooltip placement="top">{this.props.tooltip}</Tooltip>; return ( <OverlayTrigger overlay={tooltip} delayShow={300} delayHide={150}> <a href={this.props.href}>{this.props.children}</a> </OverlayTrigger> ); } }); const copyInstance = ( <p className="muted" style={{ marginBottom: 0 }}> Tight pants next level keffiyeh <LinkWithTooltip tooltip="Default tooltip" href="#">you probably</LinkWithTooltip> haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel <LinkWithTooltip tooltip={<span>Another <strong>tooltip</strong></span>} href="#">have a</LinkWithTooltip> terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan <LinkWithTooltip tooltip="Another one here too" href="#">whatever keytar</LinkWithTooltip>, scenester farm-to-table banksy Austin <LinkWithTooltip tooltip="The last tip!" href="#">twitter handle</LinkWithTooltip> freegan cred raw denim single-origin coffee viral. </p> ); ReactDOM.render(copyInstance, mountNode);
const LinkWithTooltip = React.createClass({ render() { let tooltip = <Tooltip>{this.props.tooltip}</Tooltip>; return ( <OverlayTrigger overlay={tooltip} placement="top" delayShow={300} delayHide={150} > <a href={this.props.href}>{this.props.children}</a> </OverlayTrigger> ); } }); const copyInstance = ( <p className="muted" style={{ marginBottom: 0 }}> Tight pants next level keffiyeh <LinkWithTooltip tooltip="Default tooltip" href="#">you probably</LinkWithTooltip> haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel <LinkWithTooltip tooltip={<span>Another <strong>tooltip</strong></span>} href="#">have a</LinkWithTooltip> terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan <LinkWithTooltip tooltip="Another one here too" href="#">whatever keytar</LinkWithTooltip>, scenester farm-to-table banksy Austin <LinkWithTooltip tooltip="The last tip!" href="#">twitter handle</LinkWithTooltip> freegan cred raw denim single-origin coffee viral. </p> ); ReactDOM.render(copyInstance, mountNode);
Fix tooltip in copy example
Fix tooltip in copy example
JavaScript
mit
dozoisch/react-bootstrap,jesenko/react-bootstrap,mmarcant/react-bootstrap,Terminux/react-bootstrap,Sipree/react-bootstrap,react-bootstrap/react-bootstrap,glenjamin/react-bootstrap,glenjamin/react-bootstrap,HPate-Riptide/react-bootstrap,react-bootstrap/react-bootstrap,apkiernan/react-bootstrap,Lucifier129/react-bootstrap,react-bootstrap/react-bootstrap,Lucifier129/react-bootstrap,pombredanne/react-bootstrap,egauci/react-bootstrap
--- +++ @@ -1,9 +1,12 @@ const LinkWithTooltip = React.createClass({ render() { - let tooltip = <Tooltip placement="top">{this.props.tooltip}</Tooltip>; + let tooltip = <Tooltip>{this.props.tooltip}</Tooltip>; return ( - <OverlayTrigger overlay={tooltip} delayShow={300} delayHide={150}> + <OverlayTrigger + overlay={tooltip} placement="top" + delayShow={300} delayHide={150} + > <a href={this.props.href}>{this.props.children}</a> </OverlayTrigger> );
aa1d70e586b13327c846841f144b6e71ac043716
forceskip.js
forceskip.js
API.on(API.ADVANCE, callback); function callback () { var a = API.getMedia().cid; setTimeout(function() { var b = API.getMedia().cid; if (a === b) { API.sendChat("Track stuck, force skipping!"); API.moderateForceSkip(); } }, (API.getMedia().duration * 1000) + 5000); } API.chatLog("Now running Force Skip. Refresh page to disable"); /* Basically, this will only force skip if the track is definately stuck It uses the duration of the track + 5 seconds to ensure the track has finished playing and does need a skip to get it changed. */
API.on(API.ADVANCE, callback); function callback () { var a = API.getMedia().cid; var a_dj = API.getDJ().id; setTimeout(function() { var b = API.getMedia().cid; var b_dj = API.getDJ().id; if ((a.cid === b.cid) && (a_dj === b_dj)) { API.sendChat("Track stuck, force skipping!"); API.moderateForceSkip(); } }, (API.getMedia().duration * 1000) + 5000); } API.chatLog("Now running Force Skip. Refresh page to disable"); /* Basically, this will only force skip if the track is definately stuck It uses the duration of the track + 5 seconds to ensure the track has finished playing and does need a skip to get it changed. */
Add check on DJ id as well.
Add check on DJ id as well. To prevent a song being skipped because two different DJs play the same song.
JavaScript
mit
ronaldb/plug-forceskip
--- +++ @@ -3,9 +3,11 @@ function callback () { var a = API.getMedia().cid; + var a_dj = API.getDJ().id; setTimeout(function() { var b = API.getMedia().cid; - if (a === b) { + var b_dj = API.getDJ().id; + if ((a.cid === b.cid) && (a_dj === b_dj)) { API.sendChat("Track stuck, force skipping!"); API.moderateForceSkip(); }
050c1061c114e1e1789b333aaf394f1a3e1f8ac2
dev/app/components/main/main.controller.js
dev/app/components/main/main.controller.js
(function(){ "use strict"; angular .module('VinculacionApp') .controller('MainController', MainController); function MainController () { var vm = this; vm.expand = false; vm.navItems = [ { title: "HOME", ref: "dashboard.home", icon: "glyphicon glyphicon-home", active: true }, { title: "PROYECTOS", ref: "dashboard.projects", icon: "glyphicon glyphicon-folder-open", active: false }, { title: "SOLICITUDES", ref: "dashboard.requests", icon: "glyphicon glyphicon-tasks", active: false }, { title: "LOG OUT", ref: "landing", icon: "glyphicon glyphicon-log-out", active: false } ]; } })();
(function(){ "use strict"; angular .module('VinculacionApp') .controller('MainController', MainController); MainController.$inject = [ '$rootScope', '$state' ]; function MainController ($rootScope, $state) { var vm = this; vm.expand = false; vm.navItems = [ { title: "HOME", ref: "dashboard.home", icon: "glyphicon glyphicon-home", active: $state.current.url === '/home' }, { title: "PROYECTOS", ref: "dashboard.projects", icon: "glyphicon glyphicon-folder-open", active: $state.current.url.includes('/proyectos') }, { title: "SOLICITUDES", ref: "dashboard.requests", icon: "glyphicon glyphicon-tasks", active: $state.current.url === '/solicitudes' }, { title: "LOG OUT", ref: "landing", icon: "glyphicon glyphicon-log-out", active: false } ]; $rootScope.$on('$stateChangeStart', changeActiveItem); function changeActiveItem (event, toState) { vm.navItems[0].active = toState.url === '/home'; vm.navItems[1].active = toState.url.includes('/proyectos'); vm.navItems[2].active = toState.url === '/solicitudes'; } } })();
Fix navigation active item bug
Fix navigation active item bug
JavaScript
mit
Tribu-Anal/Manejo-Horas-de-Vinculacion-UNITEC,Tribu-Anal/Vinculacion-Front-End,Tribu-Anal/Vinculacion-Front-End,Tribu-Anal/Manejo-Horas-de-Vinculacion-UNITEC
--- +++ @@ -5,23 +5,37 @@ .module('VinculacionApp') .controller('MainController', MainController); - function MainController () { + MainController.$inject = [ '$rootScope', '$state' ]; + + function MainController ($rootScope, $state) { var vm = this; vm.expand = false; vm.navItems = [ { title: "HOME", ref: "dashboard.home", - icon: "glyphicon glyphicon-home", active: true }, + icon: "glyphicon glyphicon-home", + active: $state.current.url === '/home' }, { title: "PROYECTOS", ref: "dashboard.projects", - icon: "glyphicon glyphicon-folder-open", active: false }, + icon: "glyphicon glyphicon-folder-open", + active: $state.current.url.includes('/proyectos') }, { title: "SOLICITUDES", ref: "dashboard.requests", - icon: "glyphicon glyphicon-tasks", active: false }, + icon: "glyphicon glyphicon-tasks", + active: $state.current.url === '/solicitudes' }, { title: "LOG OUT", ref: "landing", icon: "glyphicon glyphicon-log-out", active: false } ]; + + $rootScope.$on('$stateChangeStart', changeActiveItem); + + function changeActiveItem (event, toState) { + vm.navItems[0].active = toState.url === '/home'; + vm.navItems[1].active = toState.url.includes('/proyectos'); + vm.navItems[2].active = toState.url === '/solicitudes'; + } + } })();
83bc0dd92d68660b6f17aecc06d9d7b3f8c4d2a3
examples/js/main.js
examples/js/main.js
/*Deal with the contene of the click on the navbar and display the page correctly.*/ $('.navbar a[data-ex]').on('click', function(event) { event.preventDefault(); //Remove the active class; document.querySelector('.navbar li.active').classList.remove('active'); //Set the new active class. event.target.parentNode.classList.add('active'); //Hide all the element //Todo: simplify. Array.prototype.forEach.call(document.querySelectorAll("div[data-ex]"), function(elt) { elt.hidden = true; }); /*Select the active part.*/ var selector = "div[data-ex='" + event.target.getAttribute('data-ex') + "']"; document.querySelector(selector).hidden = false; });
/*Deal with the contene of the click on the navbar and display the page correctly.*/ $('.navbar a[data-ex]').on('click', function(event) { event.preventDefault(); //Remove the active class; document.querySelector('.navbar li.active').classList.remove('active'); //Set the new active class. event.target.parentNode.classList.add('active'); //Hide all the element //Todo: simplify. Array.prototype.forEach.call(document.querySelectorAll("div[data-ex]"), function(elt) { elt.hidden = true; }); /*Select the active part.*/ var selector = "div[data-ex='" + event.target.getAttribute('data-ex') + "']"; document.querySelector(selector).hidden = false; }); //Global name space. Demo = {}; (function(NS) { var ajax = function(e) { console.log(e); }; NS.ajax = ajax; return ajax; })(Demo); Demo.ajax('Papa', 'Singe');
Add the module pattern for the code exampl.
Add the module pattern for the code exampl.
JavaScript
mit
pierr/prez-js,pierr/prez-js
--- +++ @@ -5,7 +5,7 @@ document.querySelector('.navbar li.active').classList.remove('active'); //Set the new active class. event.target.parentNode.classList.add('active'); - //Hide all the element //Todo: simplify. + //Hide all the element //Todo: simplify. Array.prototype.forEach.call(document.querySelectorAll("div[data-ex]"), function(elt) { elt.hidden = true; }); @@ -13,3 +13,15 @@ var selector = "div[data-ex='" + event.target.getAttribute('data-ex') + "']"; document.querySelector(selector).hidden = false; }); +//Global name space. +Demo = {}; + +(function(NS) { + var ajax = function(e) { + console.log(e); + }; + NS.ajax = ajax; + return ajax; +})(Demo); + +Demo.ajax('Papa', 'Singe');
2ebb380803ed33d22fe9c94fc876b8a9203af057
client/catalog/index.js
client/catalog/index.js
module.exports = [].concat( require('./biomedical-engineering'), require('./chemical-engineering'), require('./computer-science') );
module.exports = [].concat( require('./accounting'), require('./biomedical-engineering'), require('./chemical-engineering'), require('./computer-science') );
Add accounting courses to catalog
Add accounting courses to catalog
JavaScript
mit
KenanY/course-search,KenanY/course-search
--- +++ @@ -1,4 +1,5 @@ module.exports = [].concat( + require('./accounting'), require('./biomedical-engineering'), require('./chemical-engineering'), require('./computer-science')
11fce40a9d89ab30133917ccae3c9658c00c69af
app/index.js
app/index.js
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { configure } from 'redux-auth'; import Relay from 'react-relay'; import configureStore from './stores/configureStore'; import RTRouter from './components/RTRouter'; import './index.css'; import './styles/global.css'; const store = configureStore(); const history = syncHistoryWithStore(browserHistory, store); Relay.injectNetworkLayer( new Relay.DefaultNetworkLayer('http://flea.fubotech.com.tw/graphql') ); store.dispatch(configure({ apiUrl: 'http://flea-backend.dev/', })).then(() => { const { getState } = store; render( <Provider store={store} key="provider"> <RTRouter history={history} getState={getState} /> </Provider>, document.getElementById('app') ); });
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { configure } from 'redux-auth'; import Relay from 'react-relay'; import configureStore from './stores/configureStore'; import RTRouter from './components/RTRouter'; import './index.css'; import './styles/global.css'; const store = configureStore(); const history = syncHistoryWithStore(browserHistory, store); Relay.injectNetworkLayer( new Relay.DefaultNetworkLayer('http://flea.fubotech.com.tw/graphql') ); store.dispatch(configure({ apiUrl: 'http://flea.fubotech.com.tw/', })).then(() => { const { getState } = store; render( <Provider store={store} key="provider"> <RTRouter history={history} getState={getState} /> </Provider>, document.getElementById('app') ); });
Use real auth api instead of local one.
Use real auth api instead of local one.
JavaScript
mit
FuBoTeam/fubo-flea-market,FuBoTeam/fubo-flea-market
--- +++ @@ -20,7 +20,7 @@ ); store.dispatch(configure({ - apiUrl: 'http://flea-backend.dev/', + apiUrl: 'http://flea.fubotech.com.tw/', })).then(() => { const { getState } = store; render(
ced67a4959d3acc121f5029afd061c0420e8f274
packages/envision-docs/gatsby-browser.js
packages/envision-docs/gatsby-browser.js
/* globals require:false */ require('prismjs/themes/prism-solarizedlight.css'); require('./src/scss/docs.scss'); require('envision'); require('envision/dist/envision.css');
/* globals require:false */ require('prismjs/themes/prism.css'); require('./src/scss/docs.scss'); require('envision'); require('envision/dist/envision.css');
Use prism default theme for better contrast
Use prism default theme for better contrast
JavaScript
mit
albinohrn/envision,sitevision/envision,melineric/envision,albinohrn/envision,melineric/envision,sitevision/envision,melineric/envision,albinohrn/envision
--- +++ @@ -1,5 +1,5 @@ /* globals require:false */ -require('prismjs/themes/prism-solarizedlight.css'); +require('prismjs/themes/prism.css'); require('./src/scss/docs.scss'); require('envision'); require('envision/dist/envision.css');
efdb3cab14d1d7f03f08f909f3c93ceffda4cd44
gulpfile.js/tasks/sizereport.js
gulpfile.js/tasks/sizereport.js
/* global TASK_CONFIG */ const gulp = require("gulp"); const sizereport = require("gulp-sizereport"); const projectPath = require("../lib/project-path"); function sizeReportTask() { return gulp .src([ projectPath(TASK_CONFIG.basePaths.dest, "**/*"), "*!rev-manifest.json", ]) .pipe( sizereport({ gzip: true, }) ); } sizeReportTask.displayName = "size-report"; gulp.task(sizeReportTask); module.exports = sizeReportTask;
/* global TASK_CONFIG */ const gulp = require("gulp"); const sizereport = require("gulp-sizereport"); const projectPath = require("../lib/project-path"); function sizeReportTask() { return gulp .src([ projectPath(TASK_CONFIG.basePaths.dest, "**/*"), "!" + projectPath(TASK_CONFIG.basePaths.dest, "**/_*{,/**/*}"), "*!rev-manifest.json", ]) .pipe( sizereport({ gzip: true, }) ); } sizeReportTask.displayName = "size-report"; gulp.task(sizeReportTask); module.exports = sizeReportTask;
Exclude underscore files and folders from size report
Exclude underscore files and folders from size report
JavaScript
mit
CosminAnca/fosterkit,CosminAnca/fosterkit,CosminAnca/fosterkit,CosminAnca/fosterkit
--- +++ @@ -7,6 +7,7 @@ return gulp .src([ projectPath(TASK_CONFIG.basePaths.dest, "**/*"), + "!" + projectPath(TASK_CONFIG.basePaths.dest, "**/_*{,/**/*}"), "*!rev-manifest.json", ]) .pipe(
bc876d3967e40bfa4a9ef259f597121699c2ea18
examples/data/streamer.js
examples/data/streamer.js
var baseline = { "aapl" : 92, "ibm" : 120, "wmt" : 68, "abx" : 13, "msft" : 35 }; var last = {}; setInterval(function(){ // //Add imaginary ticker // var newTicker = Math.random().toString(36).substring(7); // baseline[newTicker] = Math.random(); // // //Remove a random ticker // var keys = Object.keys(baseline); // var random = Math.floor(Math.random() * keys.length) + 0; // delete baseline[keys[random]]; var array = []; for(var i in baseline){ baseline[i] = (baseline[i] + ((Math.random() > .5) ? .01 : -.01)).toFixed(2)*1; array.push([i,baseline[i]]) } var string = JSON.stringify(array); console.log(string); },500) process.stdout.on('error',function(){ process.exit(1); });
var header = ['SYMBOL','LAST'] var baseline = { "aapl" : 92, "ibm" : 120.72, "wmt" : 68.93, "abx" : 13.36, "msft" : 35.26 }; var last = {}; setInterval(function(){ // //Add imaginary ticker // var newTicker = Math.random().toString(36).substring(7); // baseline[newTicker] = Math.random(); // // //Remove a random ticker // var keys = Object.keys(baseline); // var random = Math.floor(Math.random() * keys.length) + 0; // delete baseline[keys[random]]; var array = [header]; for(var i in baseline){ //give each symbol a 30% chance of changing if(Math.random() >= .7){ baseline[i] = (baseline[i] + ((Math.random() > .5) ? .01 : -.01)).toFixed(2)*1; } else { baseline[i] = baseline[i]; } array.push([i,'$ ' + baseline[i].toFixed(2)]) } var string = JSON.stringify(array); console.log(string); },500) process.stdout.on('error',function(){ process.exit(1); });
Add header values, currency sign
Add header values, currency sign
JavaScript
mit
tecfu/tty-table
--- +++ @@ -1,36 +1,43 @@ +var header = ['SYMBOL','LAST'] var baseline = { - "aapl" : 92, - "ibm" : 120, - "wmt" : 68, - "abx" : 13, - "msft" : 35 + "aapl" : 92, + "ibm" : 120.72, + "wmt" : 68.93, + "abx" : 13.36, + "msft" : 35.26 }; var last = {}; setInterval(function(){ -// //Add imaginary ticker -// var newTicker = Math.random().toString(36).substring(7); -// baseline[newTicker] = Math.random(); -// -// //Remove a random ticker -// var keys = Object.keys(baseline); -// var random = Math.floor(Math.random() * keys.length) + 0; -// delete baseline[keys[random]]; +// //Add imaginary ticker +// var newTicker = Math.random().toString(36).substring(7); +// baseline[newTicker] = Math.random(); +// +// //Remove a random ticker +// var keys = Object.keys(baseline); +// var random = Math.floor(Math.random() * keys.length) + 0; +// delete baseline[keys[random]]; - var array = []; + var array = [header]; - for(var i in baseline){ - baseline[i] = (baseline[i] + ((Math.random() > .5) ? .01 : -.01)).toFixed(2)*1; - array.push([i,baseline[i]]) - } + for(var i in baseline){ + //give each symbol a 30% chance of changing + if(Math.random() >= .7){ + baseline[i] = (baseline[i] + ((Math.random() > .5) ? .01 : -.01)).toFixed(2)*1; + } + else { + baseline[i] = baseline[i]; + } + array.push([i,'$ ' + baseline[i].toFixed(2)]) + } - var string = JSON.stringify(array); - console.log(string); -},500) + var string = JSON.stringify(array); + console.log(string); +},500) process.stdout.on('error',function(){ - process.exit(1); + process.exit(1); });
d363345909fd366ceba507bfb38a9ff991588478
client/templates/bets/create.js
client/templates/bets/create.js
Template.createBetForm.helpers({ photo: function(){ return Session.get("photo"); } }) Template.createBetForm.events({ "submit .create-bet" : function(event){ event.preventDefault(); var title = event.target.betTitle.value, wager = event.target.betWager.value, user = Meteor.user(), username = user.username, defender = event.target.defender.value, type = "new"; if (Meteor.users.find({username: defender}).count() === 0){ throw new Meteor.Error( alert( "Sorry the Username you are trying to challenge is not valid!" ) ); } if (defender === username) { throw new Meteor.Error( alert( "You can't bet yourself!" ) ); } Meteor.call("createBet", username, defender, title, wager); Meteor.call("createBetNotification", username, defender, type); Router.go('/bets'); }, "click .take-photo" : function(event){ event.preventDefault(); var cameraOptions = { width: 800, height: 600 }; MeteorCamera.getPicture(cameraOptions, function(error, data){ Session.set("photo", data); }); }, getPhoto: function(){ Session.get("photo"); } });
Template.createBetForm.helpers({ photo: function(){ return Session.get("photo"); } }) Template.createBetForm.events({ "submit .create-bet" : function(event){ event.preventDefault(); var title = event.target.betTitle.value, wager = event.target.betWager.value, user = Meteor.user(), username = user.username, defender = event.target.defender.value, type = "new"; if (Meteor.users.find({username: defender}).count() === 0){ throw new Meteor.Error( alert( "Sorry the Username you are trying to challenge is not valid!" ) ); } if (defender === username) { throw new Meteor.Error( alert( "You can't bet yourself!" ) ); } Meteor.call("createBet", username, defender, title, wager); Meteor.call("createBetNotification", username, defender, type); Router.go('/bets'); }, "click .take-photo" : function(event){ event.preventDefault(); var cameraOptions = { width: 700, height: 500 }; MeteorCamera.getPicture(cameraOptions, function(error, data){ Session.set("photo", data); }); } });
Change camera options and remove bad function call in form event.
Change camera options and remove bad function call in form event.
JavaScript
mit
nmmascia/webet,nmmascia/webet
--- +++ @@ -36,16 +36,12 @@ event.preventDefault(); var cameraOptions = { - width: 800, - height: 600 + width: 700, + height: 500 }; MeteorCamera.getPicture(cameraOptions, function(error, data){ Session.set("photo", data); }); - }, - - getPhoto: function(){ - Session.get("photo"); } });
2fb0cb2820dee31b4e48937586f7f98c7ec8aa61
lib/index.js
lib/index.js
var docxReader = require("./docx-reader"); var DocumentConverter = require("./document-to-html").DocumentConverter; var htmlPaths = require("./html-paths"); var documentMatchers = require("./document-matchers"); var style = require("./style-reader").readStyle; exports.Converter = Converter; exports.read = read; exports.convertDocumentToHtml = convertDocumentToHtml; exports.htmlPaths = htmlPaths; exports.standardOptions = { styleMap: [ style("p.Heading1 => h1"), style("p.Heading2 => h2"), style("p.Heading3 => h3"), style("p.Heading4 => h4"), style("p.ListParagraph => ul > li:fresh") ] }; function Converter(options) { this._options = options; } Converter.prototype.convertToHtml = function(inputOptions) { var options = this._options; return read(inputOptions) .then(function(documentResult) { return convertDocumentToHtml(documentResult, options); }); } function read(inputOptions) { return docxReader.read(inputOptions); } function convertDocumentToHtml(documentResult, options) { var documentConverter = new DocumentConverter(options); return documentResult.flatMapThen(function(document) { return documentConverter.convertToHtml(document); }); }
var docxReader = require("./docx-reader"); var DocumentConverter = require("./document-to-html").DocumentConverter; var htmlPaths = require("./html-paths"); var documentMatchers = require("./document-matchers"); var style = require("./style-reader").readStyle; exports.Converter = Converter; exports.read = read; exports.convertDocumentToHtml = convertDocumentToHtml; exports.htmlPaths = htmlPaths; exports.standardOptions = { styleMap: [ style("p.Heading1 => h1"), style("p.Heading2 => h2"), style("p.Heading3 => h3"), style("p.Heading4 => h4"), style("p:unordered-list(1) => ul > li:fresh"), style("p:ordered-list(1) => ol > li:fresh") ] }; function Converter(options) { this._options = options; } Converter.prototype.convertToHtml = function(inputOptions) { var options = this._options; return read(inputOptions) .then(function(documentResult) { return convertDocumentToHtml(documentResult, options); }); } function read(inputOptions) { return docxReader.read(inputOptions); } function convertDocumentToHtml(documentResult, options) { var documentConverter = new DocumentConverter(options); return documentResult.flatMapThen(function(document) { return documentConverter.convertToHtml(document); }); }
Add proper styles for single-level (un)ordered lists to standardOptions
Add proper styles for single-level (un)ordered lists to standardOptions
JavaScript
bsd-2-clause
mwilliamson/mammoth.js,mwilliamson/mammoth.js
--- +++ @@ -14,7 +14,8 @@ style("p.Heading2 => h2"), style("p.Heading3 => h3"), style("p.Heading4 => h4"), - style("p.ListParagraph => ul > li:fresh") + style("p:unordered-list(1) => ul > li:fresh"), + style("p:ordered-list(1) => ol > li:fresh") ] };
11bc63451e7eb35c6a5759fd3ecd55c16fa7a936
lib/index.js
lib/index.js
var es = require('event-stream'), gutil = require('gulp-util'), PluginError = gutil.PluginError; module.exports = function (ops) { ops = ops || {}; var cheerio = ops.cheerio || require('cheerio'); return es.map(function (file, done) { if (file.isNull()) return done(null, file); if (file.isStream()) return done(new PluginError('gulp-cheerio', 'Streaming not supported.')); var run = typeof ops === 'function' ? ops : ops.run; if (run) { var $ = cheerio.load(file.contents.toString()); if (run.length > 1) { run($, next); } else { run($); next(); } } else { done(null, file); } function next(err) { file.contents = new Buffer($.html()); done(err, file); } }); };
var es = require('event-stream'), gutil = require('gulp-util'), PluginError = gutil.PluginError; module.exports = function (ops) { ops = ops || {}; var cheerio = ops.cheerio || require('cheerio'); return es.map(function (file, done) { if (file.isNull()) return done(null, file); if (file.isStream()) return done(new PluginError('gulp-cheerio', 'Streaming not supported.')); var run = typeof ops === 'function' ? ops : ops.run; if (run) { var parserOptions = ops.parserOptions; var $; if (parserOptions) { $ = cheerio.load(file.contents.toString(), parserOptions); } else { $ = cheerio.load(file.contents.toString()); } if (run.length > 1) { run($, next); } else { run($); next(); } } else { done(null, file); } function next(err) { file.contents = new Buffer($.html()); done(err, file); } }); };
Allow parser options as param
Allow parser options as param
JavaScript
mit
KenPowers/gulp-cheerio,knpwrs/gulp-cheerio,vast/gulp-cheerio
--- +++ @@ -11,7 +11,13 @@ if (file.isStream()) return done(new PluginError('gulp-cheerio', 'Streaming not supported.')); var run = typeof ops === 'function' ? ops : ops.run; if (run) { - var $ = cheerio.load(file.contents.toString()); + var parserOptions = ops.parserOptions; + var $; + if (parserOptions) { + $ = cheerio.load(file.contents.toString(), parserOptions); + } else { + $ = cheerio.load(file.contents.toString()); + } if (run.length > 1) { run($, next); } else {
7de6b0f2868cfe47843a2518482fad7f410c4659
lib/index.js
lib/index.js
/*jshint node:true*/ 'use strict'; var exec = require('child_process').exec; var colors = require('colors'); module.exports = title; /** * Sets title to current CLI tab or window. * * @param {strint} input - Title to set * @param {Boolean} win - Add title to window instead of tab */ function title(input, win) { var cmd = [ 'printf', '"\\e]%d;%s\\a"', win ? 2 : 1, '"' + input + '"' ].join(' '); console.log( '%s Changing %s title: %s', colors.green('>'), win ? 'window' : 'tab', colors.cyan(input) ); exec(cmd).stdout.pipe(process.stdout); }
/*jshint node:true*/ 'use strict'; var exec = require('child_process').exec; var colors = require('colors'); module.exports = title; /** * Sets title to current CLI tab or window. * * @param {strint} input - Title to set * @param {Boolean} win - Add title to window instead of tab */ function title(input, win) { var cmd = [ 'printf', '"\\e]%d;%s\\a"', win ? 2 : 1, '"' + input + '"' ].join(' '); console.log( '\n%s Changing %s title: %s\n', colors.green('>'), win ? 'window' : 'tab', colors.cyan(input) ); exec(cmd).stdout.pipe(process.stdout); }
Add spacing to console output
Add spacing to console output
JavaScript
mit
dvdln/terminal-title
--- +++ @@ -21,7 +21,7 @@ ].join(' '); console.log( - '%s Changing %s title: %s', + '\n%s Changing %s title: %s\n', colors.green('>'), win ? 'window' : 'tab', colors.cyan(input)
5c19b7c5c701253739e68e9ecd31623b8efb704c
lib/index.js
lib/index.js
var mongoose = require('mongoose'); var ShortId = require('./shortid'); var defaultSave = mongoose.Model.prototype.save; mongoose.Model.prototype.save = function(cb) { for (fieldName in this.schema.tree) { if (this.isNew && this[fieldName] === undefined) { var idType = this.schema.tree[fieldName]; if (idType === ShortId || idType.type === ShortId) { var idInfo = this.schema.path(fieldName); var retries = idInfo.retries; var self = this; function attemptSave() { idInfo.generator(idInfo.generatorOptions, function(err, id) { if (err) { cb(err); return; } self[fieldName] = id; defaultSave.call(self, function(err, obj) { if (err && err.code == 11000 && err.err.indexOf(fieldName) !== -1 && retries > 0 ) { --retries; attemptSave(); } else { // TODO check these args cb(err, obj); } }); }); } attemptSave(); return; } } } defaultSave.call(this, cb); }; module.exports = exports = ShortId;
var mongoose = require('mongoose'); var ShortId = require('./shortid'); var defaultSave = mongoose.Model.prototype.save; mongoose.Model.prototype.save = function(cb) { for (fieldName in this.schema.tree) { if (this.isNew && this[fieldName] === undefined) { var idType = this.schema.tree[fieldName]; if (idType === ShortId || idType.type === ShortId) { var idInfo = this.schema.path(fieldName); var retries = idInfo.retries; var self = this; function attemptSave() { idInfo.generator(idInfo.generatorOptions, function(err, id) { if (err) { cb(err); return; } self[fieldName] = id; defaultSave.call(self, function(err, obj) { if (err && err.code == 11000 && (err.err || err.errmsg || '').indexOf(fieldName) !== -1 && retries > 0 ) { --retries; attemptSave(); } else { // TODO check these args cb(err, obj); } }); }); } attemptSave(); return; } } } defaultSave.call(this, cb); }; module.exports = exports = ShortId;
Handle alternate form of mongoose 11000 error
Handle alternate form of mongoose 11000 error
JavaScript
mit
leeroybrun/mongoose-shortid-nodeps,hiconversion/mongoose-shortid-nodeps
--- +++ @@ -21,7 +21,7 @@ defaultSave.call(self, function(err, obj) { if (err && err.code == 11000 && - err.err.indexOf(fieldName) !== -1 && + (err.err || err.errmsg || '').indexOf(fieldName) !== -1 && retries > 0 ) { --retries;
15ee2ff765ca72b0636ba1523abd5c738e10864a
lib/index.js
lib/index.js
'use strict'; module.exports = function () { const trackers = []; let isFinished = false; let onFinished = () => {}; function tryToFinish () { if (all(pluck(trackers, 'executed')) && !isFinished) { isFinished = true; onFinished(pluck(trackers, 'args')); } } return { track () { const thisIdx = trackers.push({executed: false}) - 1; return function () { trackers[thisIdx] = {executed: true, args: argsToArray(arguments)}; tryToFinish(); }; }, finished (callback) { onFinished = callback; } }; }; function pluck (collection, property) { return collection.map(item => item[property]); } function all (conditions) { for (const condition of conditions) { if (!condition) return false; } return true; } function argsToArray (argumentsObject) { return Array.prototype.slice.call(argumentsObject); }
'use strict'; module.exports = function () { const state = createInitialState(); return { track () { const thisIdx = state.trackers.push({executed: false}) - 1; return function () { state.trackers[thisIdx] = {executed: true, args: argsToArray(arguments)}; tryToFinish(state); }; }, finished (callback) { state.onFinished = callback; } }; }; function createInitialState () { return { trackers: [], isFinished: false, onFinished: () => {} }; } function tryToFinish (state) { if (all(pluck(state.trackers, 'executed')) && !state.isFinished) { state.isFinished = true; state.onFinished(pluck(state.trackers, 'args')); } } function pluck (collection, property) { return collection.map(item => item[property]); } function all (conditions) { for (const condition of conditions) { if (!condition) return false; } return true; } function argsToArray (argumentsObject) { return Array.prototype.slice.call(argumentsObject); }
Refactor to seperate state from operations
Refactor to seperate state from operations
JavaScript
mit
toboid/all-finished
--- +++ @@ -1,31 +1,38 @@ 'use strict'; module.exports = function () { - const trackers = []; - let isFinished = false; - let onFinished = () => {}; - - function tryToFinish () { - if (all(pluck(trackers, 'executed')) && !isFinished) { - isFinished = true; - onFinished(pluck(trackers, 'args')); - } - } + const state = createInitialState(); return { track () { - const thisIdx = trackers.push({executed: false}) - 1; + const thisIdx = state.trackers.push({executed: false}) - 1; + return function () { - trackers[thisIdx] = {executed: true, args: argsToArray(arguments)}; - tryToFinish(); + state.trackers[thisIdx] = {executed: true, args: argsToArray(arguments)}; + tryToFinish(state); }; }, finished (callback) { - onFinished = callback; + state.onFinished = callback; } }; }; + +function createInitialState () { + return { + trackers: [], + isFinished: false, + onFinished: () => {} + }; +} + +function tryToFinish (state) { + if (all(pluck(state.trackers, 'executed')) && !state.isFinished) { + state.isFinished = true; + state.onFinished(pluck(state.trackers, 'args')); + } +} function pluck (collection, property) { return collection.map(item => item[property]);
a74eb06d92a9c5e9daeb946297d4c5e5da005ca6
app/today/views/RTICard.js
app/today/views/RTICard.js
define(['moxie.conf', 'underscore', 'today/views/CardView', 'hbs!today/templates/rti'], function(conf, _, CardView, rtiTemplate) { var RTI_REFRESH = 60000; // 1 minute var RTICard = CardView.extend({ initialize: function() { this.model.on('change', this.render, this); }, weight: 75, manage: true, attributes: { 'class': 'today', 'style': 'display:none;', }, serialize: function() { return this.model.toJSON(); }, template: rtiTemplate, beforeRender: function() { this.el.style.display = 'none'; }, afterRender: function() { this.clearRefresh(); if (this.model.get('RTI')) { this.refreshID = this.model.renderRTI(this.$('#poi-rti')[0], RTI_REFRESH); this.model.rti.on('sync', this.showEl, this); } }, showEl: function() { this.el.style.display = null; }, clearRefresh: function() { if (this.refreshID) { clearInterval(this.refreshID); } }, cleanup: function() { this.clearRefresh(); this.model.off(); if ('unfollowUser' in this.model) { this.model.unfollowUser(); } }, }); return RTICard; });
define(['moxie.conf', 'underscore', 'today/views/CardView', 'hbs!today/templates/rti'], function(conf, _, CardView, rtiTemplate) { var RTI_REFRESH = 60000; // 1 minute var RTICard = CardView.extend({ initialize: function() { this.model.on('change', this.render, this); }, weight: 75, manage: true, attributes: { 'class': 'today', 'style': 'display:none;', }, serialize: function() { return this.model.toJSON(); }, template: rtiTemplate, beforeRender: function() { this.el.style.display = 'none'; }, afterRender: function() { this.clearRefresh(); if (this.model.get('RTI').length > 0) { this.refreshID = this.model.renderRTI(this.$('#poi-rti')[0], RTI_REFRESH); this.model.rti.on('sync', this.showEl, this); } }, showEl: function() { this.el.style.display = null; }, clearRefresh: function() { if (this.refreshID) { clearInterval(this.refreshID); } }, cleanup: function() { this.clearRefresh(); this.model.off(); if ('unfollowUser' in this.model) { this.model.unfollowUser(); } }, }); return RTICard; });
Test for any RTI element on the POI model
Test for any RTI element on the POI model Previously RTI would be added, now it defaults to []
JavaScript
apache-2.0
ox-it/moxie-js-client,ox-it/moxie-js-client,ox-it/moxie-js-client,ox-it/moxie-js-client
--- +++ @@ -20,7 +20,7 @@ }, afterRender: function() { this.clearRefresh(); - if (this.model.get('RTI')) { + if (this.model.get('RTI').length > 0) { this.refreshID = this.model.renderRTI(this.$('#poi-rti')[0], RTI_REFRESH); this.model.rti.on('sync', this.showEl, this); }
0e8cbc303c97564c98bf9c01b0167209555f7d3c
includeIn.js
includeIn.js
(function(_) { var validationErrorFor = { mixin: 'all mixins must be objects.', object: 'target must be a constuctor or an object.' }, withA = function(errorType, object) { if( !_.isObject(object) ) throw '_.includeIn: ' + validationErrorFor[errorType]; return object; }, withAn = withA; function appendAll(mixins, object) { _.each(mixins, function(mixin) { _.extend(object, withA('mixin', mixin)); }); }; function includeIn(target, mixin) { var mixins = _.isArray(mixin) ? mixin : [mixin], object = withAn('object', target.prototype || target); appendAll(mixins, object); return target; }; _.mixin({ includeIn: includeIn }); })(this._);
(function(_) { var validationErrors = { fn: 'target must be a function.', mixin: 'all mixins must be objects.', object: 'target must be a constuctor or an object.', }, validationStrategies = { fn: _.isFunction, mixin: _.isObject, object: _.isObject } function validationErrorFor(errorType, scope) { return '_.' + scope + 'In: ' + validationErrors[errorType]; } function valid(errorType, scope, target) { var isValid = validationStrategies[errorType]; if( !isValid(target) ) throw validationErrorFor(errorType, scope); return target; }; function mixinsFor(scope, mixin) { var mixins = _.isArray(mixin) ? mixin : [mixin]; return _.map(mixins, function(mixin) { return valid('mixin', scope, mixin) }); }; function extended(target, mixins) { _.each(mixins, function(mixin) { _.extend(target, mixin); }); return target; }; function extendIn(target, mixins) { var fn = valid('fn', 'extend', target); return extended(fn, mixinsFor('extend', mixins)); }; function includeIn(target, mixins) { var object = valid('object', 'include', target.prototype || target); return extended(object, mixinsFor('include', mixins)); }; _.mixin({ extendIn: extendIn, includeIn: includeIn }); })(this._);
Add _.extendIn extension: for allow the use of mixins in functions
Add _.extendIn extension: for allow the use of mixins in functions
JavaScript
mit
serradura/lodash_ext
--- +++ @@ -1,33 +1,53 @@ (function(_) { - var validationErrorFor = { + var validationErrors = { + fn: 'target must be a function.', mixin: 'all mixins must be objects.', - object: 'target must be a constuctor or an object.' + object: 'target must be a constuctor or an object.', }, + validationStrategies = { + fn: _.isFunction, + mixin: _.isObject, + object: _.isObject + } - withA = function(errorType, object) { - if( !_.isObject(object) ) throw '_.includeIn: ' + validationErrorFor[errorType]; + function validationErrorFor(errorType, scope) { + return '_.' + scope + 'In: ' + validationErrors[errorType]; + } - return object; - }, + function valid(errorType, scope, target) { + var isValid = validationStrategies[errorType]; - withAn = withA; - - function appendAll(mixins, object) { - _.each(mixins, function(mixin) { - _.extend(object, withA('mixin', mixin)); - }); - }; - - function includeIn(target, mixin) { - var mixins = _.isArray(mixin) ? mixin : [mixin], - object = withAn('object', target.prototype || target); - - appendAll(mixins, object); + if( !isValid(target) ) throw validationErrorFor(errorType, scope); return target; }; + function mixinsFor(scope, mixin) { + var mixins = _.isArray(mixin) ? mixin : [mixin]; + + return _.map(mixins, function(mixin) { return valid('mixin', scope, mixin) }); + }; + + function extended(target, mixins) { + _.each(mixins, function(mixin) { _.extend(target, mixin); }); + + return target; + }; + + function extendIn(target, mixins) { + var fn = valid('fn', 'extend', target); + + return extended(fn, mixinsFor('extend', mixins)); + }; + + function includeIn(target, mixins) { + var object = valid('object', 'include', target.prototype || target); + + return extended(object, mixinsFor('include', mixins)); + }; + _.mixin({ + extendIn: extendIn, includeIn: includeIn }); })(this._);
f71f7b40017cbfd8e77b9b191e53aea73631e9b5
both/collections/groups.js
both/collections/groups.js
Groups = new Mongo.Collection('groups'); var GroupsSchema = new SimpleSchema({ name: { type: String } }); // Add i18n tags GroupsSchema.i18n("groups"); Groups.attachSchema(GroupsSchema); Groups.helpers({ 'homes': function () { // Get group ID var groupId = this._id; // Get all homes assigned to group var homes = Homes.find({'groupId': groupId}).fetch(); return homes; } }); Groups.allow({ insert: function () { return true; } });
Groups = new Mongo.Collection('groups'); var GroupsSchema = new SimpleSchema({ name: { type: String } }); // Add i18n tags GroupsSchema.i18n("groups"); Groups.attachSchema(GroupsSchema); Groups.helpers({ 'homes': function () { // Get group ID var groupId = this._id; // Get all homes assigned to group var homes = Homes.find({'groupId': groupId}).fetch(); return homes; } }); Groups.allow({ insert () { // Get user ID const userId = Meteor.userId(); // Check if user is administrator const userIsAdmin = Roles.userIsInRole(userId, ['admin']); if (userIsAdmin) { // admin user can insert return true; } }, update () { // Get user ID const userId = Meteor.userId(); // Check if user is administrator const userIsAdmin = Roles.userIsInRole(userId, ['admin']); if (userIsAdmin) { // admin user can update return true; } } });
Add update allow rule; refactor insert rule
Add update allow rule; refactor insert rule
JavaScript
agpl-3.0
GeriLife/wellbeing,GeriLife/wellbeing,GeriLife/wellbeing,GeriLife/wellbeing,brylie/juhani-wellbeing,brylie/juhani-wellbeing,brylie/juhani-wellbeing,brylie/juhani-wellbeing
--- +++ @@ -24,7 +24,28 @@ }); Groups.allow({ - insert: function () { - return true; + insert () { + // Get user ID + const userId = Meteor.userId(); + + // Check if user is administrator + const userIsAdmin = Roles.userIsInRole(userId, ['admin']); + + if (userIsAdmin) { + // admin user can insert + return true; + } + }, + update () { + // Get user ID + const userId = Meteor.userId(); + + // Check if user is administrator + const userIsAdmin = Roles.userIsInRole(userId, ['admin']); + + if (userIsAdmin) { + // admin user can update + return true; + } } });
8c9b63e1e9fff3cee0f4e0df0df3e4e20c729536
extensions/renderer/xwalk_internal_api.js
extensions/renderer/xwalk_internal_api.js
// Copyright (c) 2013 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. var callback_listeners = {}; var callback_id = 0; var extension_object; function wrapCallback(args, callback) { if (callback) { var id = (callback_id++).toString(); callback_listeners[id] = callback; args.unshift(id); } else { // The function name and the callback ID are prepended before // the arguments. If there is no callback, an empty string is // should be used. This will be sorted out by the InternalInstance // message handler. args.unshift(""); } } exports.setupInternalExtension = function(extension_obj) { if (extension_object != null) return; extension_object = extension_obj; extension_object.setMessageListener(function(msg) { var args = arguments[0]; var id = args.shift(); var listener = callback_listeners[id]; if (listener !== undefined) { listener.apply(null, args); delete callback_listeners[id]; } }); }; exports.postMessage = function(function_name, args, callback) { wrapCallback(args, callback); args.unshift(function_name); extension_object.postMessage(args); };
// Copyright (c) 2013 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. var callback_listeners = {}; var callback_id = 0; var extension_object; function wrapCallback(args, callback) { if (callback) { var id = (callback_id++).toString(); callback_listeners[id] = callback; args.unshift(id); } else { // The function name and the callback ID are prepended before // the arguments. If there is no callback, an empty string is // should be used. This will be sorted out by the InternalInstance // message handler. args.unshift(""); } return id; } exports.setupInternalExtension = function(extension_obj) { if (extension_object != null) return; extension_object = extension_obj; extension_object.setMessageListener(function(msg) { var args = arguments[0]; var id = args.shift(); var listener = callback_listeners[id]; if (listener !== undefined) { if (!listener.apply(null, args)) delete callback_listeners[id]; } }); }; exports.postMessage = function(function_name, args, callback) { var id = wrapCallback(args, callback); args.unshift(function_name); extension_object.postMessage(args); return id; }; exports.removeCallback = function(id) { if (!id in callback_listeners) return; delete callback_listeners[id]; };
Add support for persistent callback listener
[Extensions] Add support for persistent callback listener This is going to be the base of the EventTarget implementation. It is important to remove the listener at some point otherwise the object will leak.
JavaScript
bsd-3-clause
tomatell/crosswalk,alex-zhang/crosswalk,bestwpw/crosswalk,chinakids/crosswalk,siovene/crosswalk,tedshroyer/crosswalk,mrunalk/crosswalk,Pluto-tv/crosswalk,chuan9/crosswalk,xzhan96/crosswalk,crosswalk-project/crosswalk,crosswalk-project/crosswalk-efl,jondong/crosswalk,Bysmyyr/crosswalk,qjia7/crosswalk,zeropool/crosswalk,jondong/crosswalk,tedshroyer/crosswalk,jpike88/crosswalk,crosswalk-project/crosswalk-efl,heke123/crosswalk,bestwpw/crosswalk,rakuco/crosswalk,myroot/crosswalk,wuhengzhi/crosswalk,heke123/crosswalk,leonhsl/crosswalk,zliang7/crosswalk,tedshroyer/crosswalk,Bysmyyr/crosswalk,baleboy/crosswalk,dreamsxin/crosswalk,crosswalk-project/crosswalk,Pluto-tv/crosswalk,baleboy/crosswalk,jondwillis/crosswalk,PeterWangIntel/crosswalk,ZhengXinCN/crosswalk,bestwpw/crosswalk,xzhan96/crosswalk,darktears/crosswalk,rakuco/crosswalk,jpike88/crosswalk,XiaosongWei/crosswalk,weiyirong/crosswalk-1,leonhsl/crosswalk,dreamsxin/crosswalk,RafuCater/crosswalk,weiyirong/crosswalk-1,huningxin/crosswalk,crosswalk-project/crosswalk-efl,darktears/crosswalk,minggangw/crosswalk,RafuCater/crosswalk,XiaosongWei/crosswalk,alex-zhang/crosswalk,minggangw/crosswalk,rakuco/crosswalk,tedshroyer/crosswalk,minggangw/crosswalk,leonhsl/crosswalk,amaniak/crosswalk,XiaosongWei/crosswalk,weiyirong/crosswalk-1,hgl888/crosswalk-efl,darktears/crosswalk,jondwillis/crosswalk,wuhengzhi/crosswalk,pk-sam/crosswalk,tomatell/crosswalk,axinging/crosswalk,xzhan96/crosswalk,DonnaWuDongxia/crosswalk,rakuco/crosswalk,xzhan96/crosswalk,hgl888/crosswalk-efl,siovene/crosswalk,leonhsl/crosswalk,fujunwei/crosswalk,DonnaWuDongxia/crosswalk,XiaosongWei/crosswalk,leonhsl/crosswalk,siovene/crosswalk,hgl888/crosswalk,xzhan96/crosswalk,TheDirtyCalvinist/spacewalk,dreamsxin/crosswalk,PeterWangIntel/crosswalk,tomatell/crosswalk,stonegithubs/crosswalk,chuan9/crosswalk,minggangw/crosswalk,leonhsl/crosswalk,rakuco/crosswalk,chuan9/crosswalk,crosswalk-project/crosswalk-efl,minggangw/crosswalk,shaochangbin/crosswalk,heke123/crosswalk,hgl888/crosswalk,myroot/crosswalk,heke123/crosswalk,Pluto-tv/crosswalk,ZhengXinCN/crosswalk,PeterWangIntel/crosswalk,stonegithubs/crosswalk,rakuco/crosswalk,shaochangbin/crosswalk,fujunwei/crosswalk,zliang7/crosswalk,zliang7/crosswalk,darktears/crosswalk,myroot/crosswalk,siovene/crosswalk,tomatell/crosswalk,zeropool/crosswalk,jondwillis/crosswalk,jondwillis/crosswalk,pk-sam/crosswalk,Bysmyyr/crosswalk,xzhan96/crosswalk,lincsoon/crosswalk,marcuspridham/crosswalk,hgl888/crosswalk,crosswalk-project/crosswalk,alex-zhang/crosswalk,jondwillis/crosswalk,jpike88/crosswalk,amaniak/crosswalk,hgl888/crosswalk-efl,mrunalk/crosswalk,lincsoon/crosswalk,rakuco/crosswalk,baleboy/crosswalk,leonhsl/crosswalk,wuhengzhi/crosswalk,crosswalk-project/crosswalk,alex-zhang/crosswalk,crosswalk-project/crosswalk-efl,RafuCater/crosswalk,RafuCater/crosswalk,seanlong/crosswalk,ZhengXinCN/crosswalk,marcuspridham/crosswalk,siovene/crosswalk,stonegithubs/crosswalk,zeropool/crosswalk,marcuspridham/crosswalk,hgl888/crosswalk,siovene/crosswalk,rakuco/crosswalk,Pluto-tv/crosswalk,bestwpw/crosswalk,myroot/crosswalk,axinging/crosswalk,siovene/crosswalk,Bysmyyr/crosswalk,myroot/crosswalk,crosswalk-project/crosswalk-efl,DonnaWuDongxia/crosswalk,alex-zhang/crosswalk,qjia7/crosswalk,shaochangbin/crosswalk,jpike88/crosswalk,wuhengzhi/crosswalk,fujunwei/crosswalk,huningxin/crosswalk,RafuCater/crosswalk,lincsoon/crosswalk,heke123/crosswalk,axinging/crosswalk,chuan9/crosswalk,chinakids/crosswalk,chuan9/crosswalk,Pluto-tv/crosswalk,hgl888/crosswalk-efl,amaniak/crosswalk,zliang7/crosswalk,DonnaWuDongxia/crosswalk,huningxin/crosswalk,dreamsxin/crosswalk,PeterWangIntel/crosswalk,RafuCater/crosswalk,DonnaWuDongxia/crosswalk,jpike88/crosswalk,Pluto-tv/crosswalk,PeterWangIntel/crosswalk,DonnaWuDongxia/crosswalk,xzhan96/crosswalk,ZhengXinCN/crosswalk,mrunalk/crosswalk,TheDirtyCalvinist/spacewalk,mrunalk/crosswalk,axinging/crosswalk,shaochangbin/crosswalk,jondong/crosswalk,minggangw/crosswalk,ZhengXinCN/crosswalk,XiaosongWei/crosswalk,Bysmyyr/crosswalk,chinakids/crosswalk,crosswalk-project/crosswalk-efl,pk-sam/crosswalk,ZhengXinCN/crosswalk,shaochangbin/crosswalk,wuhengzhi/crosswalk,weiyirong/crosswalk-1,hgl888/crosswalk-efl,jondong/crosswalk,zeropool/crosswalk,heke123/crosswalk,qjia7/crosswalk,hgl888/crosswalk,zliang7/crosswalk,TheDirtyCalvinist/spacewalk,baleboy/crosswalk,stonegithubs/crosswalk,crosswalk-project/crosswalk,heke123/crosswalk,TheDirtyCalvinist/spacewalk,dreamsxin/crosswalk,amaniak/crosswalk,shaochangbin/crosswalk,mrunalk/crosswalk,lincsoon/crosswalk,Bysmyyr/crosswalk,zeropool/crosswalk,tomatell/crosswalk,seanlong/crosswalk,hgl888/crosswalk,darktears/crosswalk,fujunwei/crosswalk,huningxin/crosswalk,DonnaWuDongxia/crosswalk,pk-sam/crosswalk,fujunwei/crosswalk,seanlong/crosswalk,chuan9/crosswalk,darktears/crosswalk,hgl888/crosswalk-efl,zliang7/crosswalk,stonegithubs/crosswalk,zeropool/crosswalk,huningxin/crosswalk,Bysmyyr/crosswalk,seanlong/crosswalk,minggangw/crosswalk,crosswalk-project/crosswalk,qjia7/crosswalk,lincsoon/crosswalk,jondong/crosswalk,marcuspridham/crosswalk,weiyirong/crosswalk-1,lincsoon/crosswalk,darktears/crosswalk,pk-sam/crosswalk,xzhan96/crosswalk,crosswalk-project/crosswalk,qjia7/crosswalk,jpike88/crosswalk,axinging/crosswalk,lincsoon/crosswalk,tomatell/crosswalk,Pluto-tv/crosswalk,baleboy/crosswalk,chinakids/crosswalk,dreamsxin/crosswalk,weiyirong/crosswalk-1,hgl888/crosswalk,darktears/crosswalk,bestwpw/crosswalk,Bysmyyr/crosswalk,pk-sam/crosswalk,seanlong/crosswalk,heke123/crosswalk,weiyirong/crosswalk-1,bestwpw/crosswalk,marcuspridham/crosswalk,jondwillis/crosswalk,bestwpw/crosswalk,marcuspridham/crosswalk,axinging/crosswalk,amaniak/crosswalk,qjia7/crosswalk,RafuCater/crosswalk,pk-sam/crosswalk,jondong/crosswalk,axinging/crosswalk,marcuspridham/crosswalk,tedshroyer/crosswalk,seanlong/crosswalk,marcuspridham/crosswalk,baleboy/crosswalk,jondwillis/crosswalk,huningxin/crosswalk,zeropool/crosswalk,fujunwei/crosswalk,baleboy/crosswalk,baleboy/crosswalk,zliang7/crosswalk,myroot/crosswalk,chinakids/crosswalk,TheDirtyCalvinist/spacewalk,fujunwei/crosswalk,alex-zhang/crosswalk,wuhengzhi/crosswalk,hgl888/crosswalk-efl,jondong/crosswalk,mrunalk/crosswalk,tedshroyer/crosswalk,alex-zhang/crosswalk,stonegithubs/crosswalk,XiaosongWei/crosswalk,PeterWangIntel/crosswalk,jpike88/crosswalk,chuan9/crosswalk,stonegithubs/crosswalk,tedshroyer/crosswalk,hgl888/crosswalk,minggangw/crosswalk,chinakids/crosswalk,amaniak/crosswalk,XiaosongWei/crosswalk,tomatell/crosswalk,crosswalk-project/crosswalk,amaniak/crosswalk,lincsoon/crosswalk,jondong/crosswalk,PeterWangIntel/crosswalk,zliang7/crosswalk,ZhengXinCN/crosswalk,dreamsxin/crosswalk,TheDirtyCalvinist/spacewalk
--- +++ @@ -18,6 +18,8 @@ // message handler. args.unshift(""); } + + return id; } exports.setupInternalExtension = function(extension_obj) { @@ -32,14 +34,23 @@ var listener = callback_listeners[id]; if (listener !== undefined) { - listener.apply(null, args); - delete callback_listeners[id]; + if (!listener.apply(null, args)) + delete callback_listeners[id]; } }); }; exports.postMessage = function(function_name, args, callback) { - wrapCallback(args, callback); + var id = wrapCallback(args, callback); args.unshift(function_name); extension_object.postMessage(args); + + return id; }; + +exports.removeCallback = function(id) { + if (!id in callback_listeners) + return; + + delete callback_listeners[id]; +};
07a718377a43c4be0ea960572f76754403fbd98c
client/views/settings/users/users.js
client/views/settings/users/users.js
Template.usersSettings.created = function () { // Get reference to Template instance var instance = this; // Subscribe to all users instance.subscribe("allUsers"); }; Template.usersSettings.helpers({ "users": function () { // Get all users var users = Meteor.users.find().fetch(); console.log(users); return users; }, email: function () { if (this.emails && this.emails.length) { return this.emails[0].address; } } });
Template.usersSettings.created = function () { // Get reference to Template instance var instance = this; // Subscribe to all users instance.subscribe("allUsers"); }; Template.usersSettings.helpers({ "users": function () { // Get all users var users = Meteor.users.find().fetch(); return users; }, "email": function () { if (this.emails && this.emails.length) { // Return the user's first email address return this.emails[0].address; } }, "roles": function () { if (this.roles && this.roles.length) { // Return comma separated list of roles return this.roles.join(); } } });
Add email and roles helpers
Add email and roles helpers
JavaScript
agpl-3.0
GeriLife/wellbeing,brylie/juhani-wellbeing,brylie/juhani-wellbeing,GeriLife/wellbeing,brylie/juhani-wellbeing,GeriLife/wellbeing,GeriLife/wellbeing,brylie/juhani-wellbeing
--- +++ @@ -10,12 +10,19 @@ "users": function () { // Get all users var users = Meteor.users.find().fetch(); - console.log(users); + return users; }, - email: function () { - if (this.emails && this.emails.length) { + "email": function () { + if (this.emails && this.emails.length) { + // Return the user's first email address return this.emails[0].address; } - } + }, + "roles": function () { + if (this.roles && this.roles.length) { + // Return comma separated list of roles + return this.roles.join(); + } + } });
df2301e1c0d4403743918ad0e4fe7afab95efb4e
ghost/admin/app/controllers/application.js
ghost/admin/app/controllers/application.js
/* eslint-disable ghost/ember/alias-model-in-controller */ import Controller from '@ember/controller'; import {inject as service} from '@ember/service'; export default class ApplicationController extends Controller { @service billing; @service customViews; @service config; @service dropdown; @service router; @service session; @service settings; @service ui; get showBilling() { return this.config.get('hostSettings.billing.enabled'); } get showNavMenu() { // if we're in fullscreen mode don't show the nav menu if (this.ui.isFullScreen) { return false; } // we need to defer showing the navigation menu until the session.user // promise has fulfilled so that gh-user-can-admin has the correct data if (!this.session.isAuthenticated || !this.session.user.isFulfilled) { return false; } return (this.router.currentRouteName !== 'error404' || this.session.isAuthenticated) && !this.router.currentRouteName.match(/(signin|signup|setup|reset)/); } }
/* eslint-disable ghost/ember/alias-model-in-controller */ import Controller from '@ember/controller'; import {computed} from '@ember/object'; import {inject as service} from '@ember/service'; export default Controller.extend({ billing: service(), customViews: service(), config: service(), dropdown: service(), router: service(), session: service(), settings: service(), ui: service(), showBilling: computed.reads('config.hostSettings.billing.enabled'), showNavMenu: computed('router.currentRouteName', 'session.{isAuthenticated,user.isFulfilled}', 'ui.isFullScreen', function () { let {router, session, ui} = this; // if we're in fullscreen mode don't show the nav menu if (ui.isFullScreen) { return false; } // we need to defer showing the navigation menu until the session.user // promise has fulfilled so that gh-user-can-admin has the correct data if (!session.isAuthenticated || !session.user.isFulfilled) { return false; } return (router.currentRouteName !== 'error404' || session.isAuthenticated) && !router.currentRouteName.match(/(signin|signup|setup|reset)/); }) });
Revert "Refactored ApplicationController to use native class"
Revert "Refactored ApplicationController to use native class" This reverts commit 9b6d4822e72425ceec192723f4d469060afe1ea5. - there is an issue with properties not being tracked correctly and the menu not being shown when returning from the editor - reverting to working version with computed properties for now
JavaScript
mit
TryGhost/Ghost,TryGhost/Ghost,TryGhost/Ghost
--- +++ @@ -1,34 +1,34 @@ /* eslint-disable ghost/ember/alias-model-in-controller */ import Controller from '@ember/controller'; +import {computed} from '@ember/object'; import {inject as service} from '@ember/service'; -export default class ApplicationController extends Controller { - @service billing; - @service customViews; - @service config; - @service dropdown; - @service router; - @service session; - @service settings; - @service ui; +export default Controller.extend({ + billing: service(), + customViews: service(), + config: service(), + dropdown: service(), + router: service(), + session: service(), + settings: service(), + ui: service(), - get showBilling() { - return this.config.get('hostSettings.billing.enabled'); - } + showBilling: computed.reads('config.hostSettings.billing.enabled'), + showNavMenu: computed('router.currentRouteName', 'session.{isAuthenticated,user.isFulfilled}', 'ui.isFullScreen', function () { + let {router, session, ui} = this; - get showNavMenu() { // if we're in fullscreen mode don't show the nav menu - if (this.ui.isFullScreen) { + if (ui.isFullScreen) { return false; } // we need to defer showing the navigation menu until the session.user // promise has fulfilled so that gh-user-can-admin has the correct data - if (!this.session.isAuthenticated || !this.session.user.isFulfilled) { + if (!session.isAuthenticated || !session.user.isFulfilled) { return false; } - return (this.router.currentRouteName !== 'error404' || this.session.isAuthenticated) - && !this.router.currentRouteName.match(/(signin|signup|setup|reset)/); - } -} + return (router.currentRouteName !== 'error404' || session.isAuthenticated) + && !router.currentRouteName.match(/(signin|signup|setup|reset)/); + }) +});
10894cf1bc17a5985c57c3e1a059803ef90b8d76
src/main/resources/public/js/constants.js
src/main/resources/public/js/constants.js
// User roles app.constant('USER_ROLES', { all: ['ROLES_ADMIN', 'ROLES_LEADER', 'ROLES_WORKER'], admin: 'ROLES_ADMIN', worker: 'ROLES_WORKER', leader: 'ROLES_LEADER' }); // Authentication events app.constant('AUTH_EVENTS', { loginSuccess: 'auth-login-success', badRequest: 'auth-bad-request', logoutSuccess: 'auth-logout-success', sessionCreated: 'auth-session-created', sessionTimeout: 'auth-session-timeout', notAuthenticated: 'auth-not-authenticated', notAuthorized: 'auth-not-authorized', refreshNeeded: 'app-refresh-needed' }); app.constant('PROGRESS_BAR_EVENTS', { stop: "progress_bar_stop", start: "progress_bar_start", once: "progress_bar_once", stop_once: "progress_bar_stop_once" }); // Cookie expiration time app.constant('COOKIE_EXP_TIME', 86400000); //set to 1 day app.constant('WORK_TIMES', ['1', '7/8', '4/5', '3/4', '3/5', '1/2', '2/5', '1/4', '1/5', '1/8', '1/16']);
// User roles app.constant('USER_ROLES', { all: ['ROLES_ADMIN', 'ROLES_LEADER', 'ROLES_WORKER'], admin: 'ROLES_ADMIN', worker: 'ROLES_WORKER', leader: 'ROLES_LEADER' }); // Authentication events app.constant('AUTH_EVENTS', { loginSuccess: 'auth-login-success', badRequest: 'auth-bad-request', logoutSuccess: 'auth-logout-success', sessionCreated: 'auth-session-created', sessionTimeout: 'auth-session-timeout', notAuthenticated: 'auth-not-authenticated', notAuthorized: 'auth-not-authorized', refreshNeeded: 'app-refresh-needed' }); app.constant('PROGRESS_BAR_EVENTS', { stop: "progress_bar_stop", start: "progress_bar_start", once: "progress_bar_once", stop_once: "progress_bar_stop_once" }); // Cookie expiration time app.constant('COOKIE_EXP_TIME', 86400000); //set to 1 day app.constant('WORK_TIMES', ['1', '7/8', '4/5', '3/4', '3/5', '1/2', '2/5', '3/8', '1/4', '1/5', '1/8', '1/16']);
Add new work time value - 3/8
Add new work time value - 3/8
JavaScript
mit
fingo/urlopia,fingo/urlopia,fingo/urlopia,fingo/urlopia,fingo/urlopia
--- +++ @@ -28,6 +28,6 @@ // Cookie expiration time app.constant('COOKIE_EXP_TIME', 86400000); //set to 1 day -app.constant('WORK_TIMES', ['1', '7/8', '4/5', '3/4', '3/5', '1/2', '2/5', '1/4', '1/5', '1/8', '1/16']); +app.constant('WORK_TIMES', ['1', '7/8', '4/5', '3/4', '3/5', '1/2', '2/5', '3/8', '1/4', '1/5', '1/8', '1/16']);
197ddda395067b87d02b976b03037f47af606b80
src/app/api/page_utils.js
src/app/api/page_utils.js
var _ = require('lodash'); module.exports = { fillLogin: function(form, data) { var formData = _.merge(form, data); return formData; }, headers: function() { return { 'User-Agent': 'Chrome/' + process.versions['chrome'] + ' Electron/' + process.versions['electron'] }; }, checkUnauthorized: function(page) { } };
var _ = require('lodash'); module.exports = { fillLogin: function(form, data) { var formData = _.merge(form, data); return formData; }, headers: function() { return { 'User-Agent': 'Chrome/' + process.versions['chrome'] + ' Electron/' + process.versions['electron'] }; }, checkUnauthorized: function(page) { return /Du bist nicht eingeloggt/.test(page); } };
Check for actual not logged in message
Check for actual not logged in message
JavaScript
mit
kumpelblase2/proxtop,kumpelblase2/proxtop,kumpelblase2/proxtop,kumpelblase2/proxtop
--- +++ @@ -13,6 +13,6 @@ }, checkUnauthorized: function(page) { - + return /Du bist nicht eingeloggt/.test(page); } };
add64845db369da0b842f91d052324530e11287a
lib/index.js
lib/index.js
module.exports = { options: { auth: require('./options/auth'), body: require('./options/body'), callback: require('./options/callback'), cookie: require('./options/cookie'), encoding: require('./options/encoding'), end: require('./options/end'), form: require('./options/form'), gzip: require('./options/gzip'), json: require('./options/json'), length: require('./options/length'), multipart: require('./options/multipart'), parse: require('./options/parse'), proxy: require('./options/proxy'), qs: require('./options/qs'), redirect: require('./options/redirect') }, config: require('./config'), HTTPDuplex: require('./http-duplex'), modules: require('./modules'), request: require('./request'), response: require('./response'), utils: require('./utils') }
module.exports = { options: { auth: require('./options/auth'), body: require('./options/body'), callback: require('./options/callback'), cookie: require('./options/cookie'), encoding: require('./options/encoding'), end: require('./options/end'), form: require('./options/form'), gzip: require('./options/gzip'), json: require('./options/json'), length: require('./options/length'), multipart: require('./options/multipart'), parse: require('./options/parse'), proxy: require('./options/proxy'), qs: require('./options/qs'), redirect: require('./options/redirect'), timeout: require('./options/timeout'), tunnel: require('./options/tunnel') }, config: require('./config'), HTTPDuplex: require('./http-duplex'), modules: require('./modules'), request: require('./request'), response: require('./response'), utils: require('./utils') }
Update the list of internal modules
Update the list of internal modules
JavaScript
apache-2.0
request/core
--- +++ @@ -15,7 +15,9 @@ parse: require('./options/parse'), proxy: require('./options/proxy'), qs: require('./options/qs'), - redirect: require('./options/redirect') + redirect: require('./options/redirect'), + timeout: require('./options/timeout'), + tunnel: require('./options/tunnel') }, config: require('./config'), HTTPDuplex: require('./http-duplex'),
c8ebc8e9e7f8559ef627491193ec55d2ec4d3b03
jquery.ziptastic.js
jquery.ziptastic.js
(function( $ ) { var requests = {}; var zipValid = { us: /[0-9]{5}(-[0-9]{4})?/ }; $.ziptastic = function(zip, callback){ // Only make unique requests if(!requests[zip]) { requests[zip] = $.getJSON('http://zip.elevenbasetwo.com/v2/US/' + zip); } // Bind to the finished request requests[zip].done(function(data) { callback(data.country, data.state, data.city, zip); }); // Allow for binding to the deferred object return requests[zip]; }; $.fn.ziptastic = function( options ) { return this.each(function() { var ele = $(this); ele.on('keyup', function() { var zip = ele.val(); // TODO Non-US zip codes? if(zipValid.us.test(zip)) { $.ziptastic(zip, function(country, state, city) { // Trigger the updated information ele.trigger('zipChange', [country, state, city, zip]); }) } }); }); }; })( jQuery );
(function( $ ) { var requests = {}; var zipValid = { us: /[0-9]{5}(-[0-9]{4})?/ }; $.ziptastic = function(country, zip, callback){ country = country.toUpperCase(); // Only make unique requests if(!requests[country]) { requests[country] = {}; } if(!requests[country][zip]) { requests[country][zip] = $.getJSON('http://zip.elevenbasetwo.com/v2/' + country + '/' + zip); } // Bind to the finished request requests[country][zip].done(function(data) { if (typeof callback == 'function') { callback(data.country, data.state, data.city, zip); } }); // Allow for binding to the deferred object return requests[country][zip]; }; $.fn.ziptastic = function( options ) { return this.each(function() { var ele = $(this); ele.on('keyup', function() { var zip = ele.val(); // TODO Non-US zip codes? if(zipValid.us.test(zip)) { $.ziptastic('US', zip, function(country, state, city) { // Trigger the updated information ele.trigger('zipChange', [country, state, city, zip]); }); } }); }); }; })( jQuery );
Add support for other countries
Add support for other countries
JavaScript
mit
Ziptastic/ziptastic-jquery-plugin,Ziptastic/ziptastic-jquery-plugin,daspecster/ziptastic-jquery-plugin,daspecster/ziptastic-jquery-plugin
--- +++ @@ -4,19 +4,25 @@ us: /[0-9]{5}(-[0-9]{4})?/ }; - $.ziptastic = function(zip, callback){ + $.ziptastic = function(country, zip, callback){ + country = country.toUpperCase(); // Only make unique requests - if(!requests[zip]) { - requests[zip] = $.getJSON('http://zip.elevenbasetwo.com/v2/US/' + zip); + if(!requests[country]) { + requests[country] = {}; + } + if(!requests[country][zip]) { + requests[country][zip] = $.getJSON('http://zip.elevenbasetwo.com/v2/' + country + '/' + zip); } // Bind to the finished request - requests[zip].done(function(data) { - callback(data.country, data.state, data.city, zip); + requests[country][zip].done(function(data) { + if (typeof callback == 'function') { + callback(data.country, data.state, data.city, zip); + } }); // Allow for binding to the deferred object - return requests[zip]; + return requests[country][zip]; }; $.fn.ziptastic = function( options ) { @@ -28,10 +34,10 @@ // TODO Non-US zip codes? if(zipValid.us.test(zip)) { - $.ziptastic(zip, function(country, state, city) { + $.ziptastic('US', zip, function(country, state, city) { // Trigger the updated information ele.trigger('zipChange', [country, state, city, zip]); - }) + }); } }); });
02dab375a6e1c06b84170f3a038ea6db8e5c342a
src/components/nav.js
src/components/nav.js
import React from 'react' import { Link } from 'gatsby' import MeImg from '../images/me.jpg' import { MenuIcon } from './icons/Menu' const Nav = ({ onClick }) => { return ( <div className="flex items-center justify-between py-8 text-gray-800"> <Link to="/" aria-label="link to home page"> <div className="flex flex-row items-center"> <img className="block w-10 h-10 mr-3 rounded-full" src={MeImg} alt="pic of david" /> <span className="text-xl font-extrabold">David Valles</span> </div> </Link> <MenuIcon className="w-6 h-6 sm:hidden" onClick={() => onClick((prevState) => !prevState)} /> <div className="hidden sm:block space-x-4"> <Link to="/articles" className="font-bold text-gray-500 text-normal hover:underline" > Articles </Link> <Link to="/projects" className="font-bold text-gray-500 text-normal hover:underline" > Projects </Link> </div> </div> ) } export { Nav }
import React from 'react' import { Link } from 'gatsby' import MeImg from '../images/me.jpg' import { MenuIcon } from './icons/Menu' import { GitHubIcon } from './icons/GitHub' const Nav = ({ onClick }) => { return ( <div className="flex items-center border-b justify-between py-8 text-gray-800"> <Link to="/" aria-label="link to home page"> <div className="flex flex-row items-center"> <img className="block w-10 h-10 mr-3 rounded-full" src={MeImg} alt="pic of david" /> <span className="text-xl font-extrabold">David Valles</span> </div> </Link> <MenuIcon className="w-6 h-6 sm:hidden" onClick={() => onClick((prevState) => !prevState)} /> <div className="hidden sm:flex space-x-4"> <Link to="/projects" className="font-bold text-gray-500 text-normal hover:underline" > Projects </Link> <a href="https://github.com/dtjv"> <GitHubIcon className="w-6 h-6 ml-3 text-color-800 hover:text-blue-400" /> </a> </div> </div> ) } export { Nav }
Add GitHub icon. Remove articles link
Add GitHub icon. Remove articles link
JavaScript
mit
dtjv/dtjv.github.io
--- +++ @@ -3,10 +3,11 @@ import MeImg from '../images/me.jpg' import { MenuIcon } from './icons/Menu' +import { GitHubIcon } from './icons/GitHub' const Nav = ({ onClick }) => { return ( - <div className="flex items-center justify-between py-8 text-gray-800"> + <div className="flex items-center border-b justify-between py-8 text-gray-800"> <Link to="/" aria-label="link to home page"> <div className="flex flex-row items-center"> <img @@ -21,19 +22,16 @@ className="w-6 h-6 sm:hidden" onClick={() => onClick((prevState) => !prevState)} /> - <div className="hidden sm:block space-x-4"> - <Link - to="/articles" - className="font-bold text-gray-500 text-normal hover:underline" - > - Articles - </Link> + <div className="hidden sm:flex space-x-4"> <Link to="/projects" className="font-bold text-gray-500 text-normal hover:underline" > Projects </Link> + <a href="https://github.com/dtjv"> + <GitHubIcon className="w-6 h-6 ml-3 text-color-800 hover:text-blue-400" /> + </a> </div> </div> )
a693a0a7eee07995d79033baef8fe182143f2789
blueprints/server/index.js
blueprints/server/index.js
var isPackageMissing = require('ember-cli-is-package-missing'); module.exports = { description: 'Generates a server directory for mocks and proxies.', normalizeEntityName: function() {}, afterInstall: function(options) { var isMorganMissing = isPackageMissing(this, 'morgan'); var isGlobMissing = isPackageMissing(this, 'glob'); var areDependenciesMissing = isMorganMissing || isGlobMissing; var libsToInstall = []; if (isMorganMissing) { libsToInstall.push({ name: 'morgan', target: '^1.3.2' }); } if (isGlobMissing) { libsToInstall.push({ name: 'glob', target: '^4.0.5' }); } if (!options.dryRun && areDependenciesMissing) { return this.addPackagesToProject(libsToInstall); } } };
var isPackageMissing = require('ember-cli-is-package-missing'); module.exports = { description: 'Generates a server directory for mocks and proxies.', normalizeEntityName: function() {}, afterInstall: function(options) { var isMorganMissing = isPackageMissing(this, 'morgan'); var isGlobMissing = isPackageMissing(this, 'glob'); var areDependenciesMissing = isMorganMissing || isGlobMissing; var libsToInstall = []; if (isMorganMissing) { libsToInstall.push({ name: 'morgan', target: '^1.3.2' }); } if (isGlobMissing) { libsToInstall.push({ name: 'glob', target: '^4.0.5' }); } if (!options.dryRun && areDependenciesMissing) { return this.addPackagesToProject(libsToInstall); } }, files: function() { return this.hasJSHint() ? ['server/index.js', 'server/.jshintrc'] : ['server/index.js']; }, hasJSHint: function() { if (this.project) { return 'ember-cli-jshint' in this.project.dependencies(); } } };
Create .jshintrc only if "ember-cli-jshint" is a dependency
blueprints/server: Create .jshintrc only if "ember-cli-jshint" is a dependency
JavaScript
mit
rtablada/ember-cli,trentmwillis/ember-cli,givanse/ember-cli,scalus/ember-cli,nathanhammond/ember-cli,kanongil/ember-cli,Turbo87/ember-cli,ef4/ember-cli,xtian/ember-cli,sivakumar-kailasam/ember-cli,givanse/ember-cli,buschtoens/ember-cli,calderas/ember-cli,cibernox/ember-cli,johanneswuerbach/ember-cli,pzuraq/ember-cli,balinterdi/ember-cli,gfvcastro/ember-cli,jrjohnson/ember-cli,akatov/ember-cli,HeroicEric/ember-cli,williamsbdev/ember-cli,raycohen/ember-cli,jasonmit/ember-cli,jasonmit/ember-cli,elwayman02/ember-cli,nathanhammond/ember-cli,ef4/ember-cli,trentmwillis/ember-cli,josemarluedke/ember-cli,pzuraq/ember-cli,williamsbdev/ember-cli,ef4/ember-cli,xtian/ember-cli,fpauser/ember-cli,rtablada/ember-cli,patocallaghan/ember-cli,elwayman02/ember-cli,twokul/ember-cli,kategengler/ember-cli,trabus/ember-cli,pixelhandler/ember-cli,gfvcastro/ember-cli,pixelhandler/ember-cli,pzuraq/ember-cli,Turbo87/ember-cli,kanongil/ember-cli,givanse/ember-cli,asakusuma/ember-cli,givanse/ember-cli,ember-cli/ember-cli,josemarluedke/ember-cli,buschtoens/ember-cli,twokul/ember-cli,mike-north/ember-cli,kriswill/ember-cli,trabus/ember-cli,BrianSipple/ember-cli,cibernox/ember-cli,seawatts/ember-cli,calderas/ember-cli,jgwhite/ember-cli,seawatts/ember-cli,kanongil/ember-cli,trabus/ember-cli,pixelhandler/ember-cli,sivakumar-kailasam/ember-cli,trentmwillis/ember-cli,ember-cli/ember-cli,xtian/ember-cli,scalus/ember-cli,HeroicEric/ember-cli,scalus/ember-cli,johanneswuerbach/ember-cli,twokul/ember-cli,pzuraq/ember-cli,balinterdi/ember-cli,BrianSipple/ember-cli,jgwhite/ember-cli,HeroicEric/ember-cli,patocallaghan/ember-cli,nathanhammond/ember-cli,thoov/ember-cli,nathanhammond/ember-cli,fpauser/ember-cli,trentmwillis/ember-cli,sivakumar-kailasam/ember-cli,williamsbdev/ember-cli,cibernox/ember-cli,asakusuma/ember-cli,mike-north/ember-cli,akatov/ember-cli,kellyselden/ember-cli,ember-cli/ember-cli,johanneswuerbach/ember-cli,kriswill/ember-cli,jrjohnson/ember-cli,jasonmit/ember-cli,BrianSipple/ember-cli,kellyselden/ember-cli,kriswill/ember-cli,kellyselden/ember-cli,gfvcastro/ember-cli,romulomachado/ember-cli,scalus/ember-cli,thoov/ember-cli,kriswill/ember-cli,HeroicEric/ember-cli,twokul/ember-cli,jasonmit/ember-cli,sivakumar-kailasam/ember-cli,ef4/ember-cli,jgwhite/ember-cli,rtablada/ember-cli,patocallaghan/ember-cli,patocallaghan/ember-cli,williamsbdev/ember-cli,calderas/ember-cli,seawatts/ember-cli,akatov/ember-cli,josemarluedke/ember-cli,fpauser/ember-cli,josemarluedke/ember-cli,seawatts/ember-cli,xtian/ember-cli,calderas/ember-cli,thoov/ember-cli,kategengler/ember-cli,thoov/ember-cli,romulomachado/ember-cli,pixelhandler/ember-cli,akatov/ember-cli,BrianSipple/ember-cli,gfvcastro/ember-cli,jgwhite/ember-cli,romulomachado/ember-cli,johanneswuerbach/ember-cli,kanongil/ember-cli,romulomachado/ember-cli,fpauser/ember-cli,trabus/ember-cli,mike-north/ember-cli,kellyselden/ember-cli,cibernox/ember-cli,Turbo87/ember-cli,mike-north/ember-cli,raycohen/ember-cli,rtablada/ember-cli,Turbo87/ember-cli
--- +++ @@ -6,7 +6,6 @@ normalizeEntityName: function() {}, afterInstall: function(options) { - var isMorganMissing = isPackageMissing(this, 'morgan'); var isGlobMissing = isPackageMissing(this, 'glob'); @@ -24,5 +23,15 @@ if (!options.dryRun && areDependenciesMissing) { return this.addPackagesToProject(libsToInstall); } + }, + + files: function() { + return this.hasJSHint() ? ['server/index.js', 'server/.jshintrc'] : ['server/index.js']; + }, + + hasJSHint: function() { + if (this.project) { + return 'ember-cli-jshint' in this.project.dependencies(); + } } };
5373afb242a06091db3dcd0f8473b641b8d3767d
demo/script.js
demo/script.js
var base_layer = new L.tileLayer( 'http://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png',{ attribution: '&copy <a href=" http://www.openstreetmap.org/" title="OpenStreetMap">OpenStreetMap</a> and contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/" title="CC-BY-SA">CC-BY-SA</a>', maxZoom: 18, subdomains: 'abc' } ); var map = new L.Map('map', { layers: [base_layer], center: new L.LatLng(51.505, -0.09), zoom: 10, zoomControl: true }); // add location control to global namespace for testing only // on a production site, omit the "lc = "! lc = L.control.locate().addTo(map);
var base_layer = new L.tileLayer( 'http://{s}.tile.cloudmade.com/63250e2ef1c24cc18761c70e76253f75/997/256/{z}/{x}/{y}.png',{ attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="http://cloudmade.com">CloudMade</a>', maxZoom: 18 } ); var map = new L.Map('map', { layers: [base_layer], center: new L.LatLng(51.505, -0.09), zoom: 10, zoomControl: true }); // add location control to global namespace for testing only // on a production site, omit the "lc = "! lc = L.control.locate().addTo(map);
Use cloud made map style
Use cloud made map style
JavaScript
mit
withtwoemms/leaflet-locatecontrol,Drooids/leaflet-locatecontrol,nikolauskrismer/leaflet-locatecontrol,jblarsen/leaflet-locatecontrol,cederache/leaflet-locatecontrol,domoritz/leaflet-locatecontrol,cederache/leaflet-locatecontrol,nikolauskrismer/leaflet-locatecontrol,vivek8943/leaflet-locatecontrol,rick-frantz/leaflet-locatecontrol,jblarsen/leaflet-locatecontrol,vivek8943/leaflet-locatecontrol,withtwoemms/leaflet-locatecontrol,domoritz/leaflet-locatecontrol,Drooids/leaflet-locatecontrol,rick-frantz/leaflet-locatecontrol
--- +++ @@ -1,8 +1,7 @@ var base_layer = new L.tileLayer( - 'http://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png',{ - attribution: '&copy <a href=" http://www.openstreetmap.org/" title="OpenStreetMap">OpenStreetMap</a> and contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/" title="CC-BY-SA">CC-BY-SA</a>', - maxZoom: 18, - subdomains: 'abc' + 'http://{s}.tile.cloudmade.com/63250e2ef1c24cc18761c70e76253f75/997/256/{z}/{x}/{y}.png',{ + attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="http://cloudmade.com">CloudMade</a>', + maxZoom: 18 } );
a1a15bda062d3e51e4c8fcfc00ab78cd27bd4fc9
packager/webSocketProxy.js
packager/webSocketProxy.js
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ 'use strict'; var WebSocketServer = require('ws').Server; function attachToServer(server, path) { var wss = new WebSocketServer({ server: server, path: path }); var clients = []; wss.on('connection', function(ws) { clients.push(ws); var allClientsExcept = function(ws) { return clients.filter(function(cn) { return cn !== ws; }); }; ws.onerror = function() { clients = allClientsExcept(ws); }; ws.onclose = function() { clients = allClientsExcept(ws); }; ws.on('message', function(message) { allClientsExcept(ws).forEach(function(cn) { cn.send(message); }); }); }); } module.exports = { attachToServer: attachToServer };
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ 'use strict'; var WebSocketServer = require('ws').Server; function attachToServer(server, path) { var wss = new WebSocketServer({ server: server, path: path }); var clients = []; wss.on('connection', function(ws) { clients.push(ws); var allClientsExcept = function(ws) { return clients.filter(function(cn) { return cn !== ws; }); }; ws.onerror = function() { clients = allClientsExcept(ws); }; ws.onclose = function() { clients = allClientsExcept(ws); }; ws.on('message', function(message) { allClientsExcept(ws).forEach(function(cn) { try { // Sometimes this call throws 'not opened' cn.send(message); } catch(e) { console.warn('WARN: ' + e.message); } }); }); }); } module.exports = { attachToServer: attachToServer };
Fix reloading in debug mode sometimes crashes packager
[ReactNative] Fix reloading in debug mode sometimes crashes packager
JavaScript
bsd-3-clause
zhangwei001/react-native,barakcoh/react-native,rebeccahughes/react-native,maskkid/react-native,dylanchann/react-native,roy0914/react-native,sunblaze/react-native,jonesgithub/react-native,Guardiannw/react-native,chsj1/react-native,mjetek/react-native,Intellicode/react-native,gabrielbellamy/react-native,wangziqiang/react-native,rollokb/react-native,bowlofstew/react-native,chenbk85/react-native,sixtomay/react-native,sospartan/react-native,gegaosong/react-native,LytayTOUCH/react-native,WilliamRen/react-native,jacobbubu/react-native,mqli/react-native,kotdark/react-native,BretJohnson/react-native,geoffreyfloyd/react-native,NunoEdgarGub1/react-native,androidgilbert/react-native,aljs/react-native,imDangerous/react-native,PlexChat/react-native,philonpang/react-native,puf/react-native,quyixia/react-native,ordinarybill/react-native,wangjiangwen/react-native,ProjectSeptemberInc/react-native,chnfeeeeeef/react-native,elliottsj/react-native,puf/react-native,sghiassy/react-native,sarvex/react-native,Maxwell2022/react-native,southasia/react-native,donyu/react-native,ChiMarvine/react-native,ChiMarvine/react-native,sdiaz/react-native,gabrielbellamy/react-native,jackalchen/react-native,ankitsinghania94/react-native,hammerandchisel/react-native,martinbigio/react-native,Livyli/react-native,madusankapremaratne/react-native,adamjmcgrath/react-native,kesha-antonov/react-native,ehd/react-native,Heart2009/react-native,supercocoa/react-native,ramoslin02/react-native,programming086/react-native,roth1002/react-native,catalinmiron/react-native,pgavazzi/react-unity,JasonZ321/react-native,tarkus/react-native-appletv,wdxgtsh/react-native,elliottsj/react-native,hengcj/react-native,onesfreedom/react-native,eduvon0220/react-native,DerayGa/react-native,BretJohnson/react-native,dizlexik/react-native,puf/react-native,madusankapremaratne/react-native,DenisIzmaylov/react-native,josebalius/react-native,mosch/react-native,sdiaz/react-native,DenisIzmaylov/react-native,simple88/react-native,WilliamRen/react-native,alin23/react-native,bowlofstew/react-native,noif/react-native,leeyeh/react-native,wangziqiang/react-native,garydonovan/react-native,chrisbutcher/react-native,mbrock/react-native,spyrx7/react-native,ludaye123/react-native,quyixia/react-native,jeromjoy/react-native,yangshangde/react-native,YotrolZ/react-native,bodefuwa/react-native,aziz-boudi4/react-native,xxccll/react-native,yangshangde/react-native,barakcoh/react-native,supercocoa/react-native,liufeigit/react-native,mway08/react-native,noif/react-native,hassanabidpk/react-native,zhangxq5012/react-native,daveenguyen/react-native,guanghuili/react-native,code0100fun/react-native,zhaosichao/react-native,soxunyi/react-native,Lucifer-Kim/react-native,orenklein/react-native,glovebx/react-native,sjchakrav/react-native,wangjiangwen/react-native,jaredly/react-native,eduardinni/react-native,Swaagie/react-native,maskkid/react-native,hassanabidpk/react-native,janicduplessis/react-native,mironiasty/react-native,misakuo/react-native,martinbigio/react-native,nanpian/react-native,bestwpw/react-native,pandiaraj44/react-native,adamjmcgrath/react-native,zhangwei001/react-native,pletcher/react-native,rwwarren/react-native,jevakallio/react-native,foghina/react-native,sospartan/react-native,tgoldenberg/react-native,gitim/react-native,cdlewis/react-native,dylanchann/react-native,magnus-bergman/react-native,csatf/react-native,philonpang/react-native,elliottsj/react-native,jaggs6/react-native,luqin/react-native,Suninus/react-native,darrylblake/react-native,lprhodes/react-native,tsdl2013/react-native,appersonlabs/react-native,kushal/react-native,michaelchucoder/react-native,olivierlesnicki/react-native,javache/react-native,ldehai/react-native,enaqx/react-native,esauter5/react-native,onesfreedom/react-native,nickhargreaves/react-native,chirag04/react-native,timfpark/react-native,andrewljohnson/react-native,clooth/react-native,zhangxq5012/react-native,LytayTOUCH/react-native,MattFoley/react-native,satya164/react-native,shinate/react-native,javache/react-native,ipmobiletech/react-native,hesling/react-native,Flickster42490/react-native,ProjectSeptemberInc/react-native,eliagrady/react-native,Srikanth4/react-native,j27cai/react-native,hoastoolshop/react-native,wangziqiang/react-native,Jericho25/react-native,soxunyi/react-native,ldehai/react-native,ordinarybill/react-native,marlonandrade/react-native,sarvex/react-native,zenlambda/react-native,DenisIzmaylov/react-native,lelandrichardson/react-native,hoangpham95/react-native,thstarshine/react-native,dfala/react-native,lightsofapollo/react-native,andersryanc/react-native,pgavazzi/react-unity,ndejesus1227/react-native,hoastoolshop/react-native,exponent/react-native,kamronbatman/react-native,tmwoodson/react-native,liuzechen/react-native,clozr/react-native,mrspeaker/react-native,ronak301/react-native,lloydho/react-native,jadbox/react-native,sjchakrav/react-native,taydakov/react-native,lwansbrough/react-native,johnv315/react-native,Reparadocs/react-native,supercocoa/react-native,magnus-bergman/react-native,jeanblanchard/react-native,bsansouci/react-native,wesley1001/react-native,chentsulin/react-native,mcanthony/react-native,booxood/react-native,lokilandon/react-native,sitexa/react-native,Bronts/react-native,jmhdez/react-native,yzarubin/react-native,guanghuili/react-native,sheep902/react-native,tgf229/react-native,jeromjoy/react-native,JulienThibeaut/react-native,popovsh6/react-native,mironiasty/react-native,hayeah/react-native,jbaumbach/react-native,corbt/react-native,chnfeeeeeef/react-native,udnisap/react-native,eliagrady/react-native,nickhudkins/react-native,brentvatne/react-native,javache/react-native,a2/react-native,ChristopherSalam/react-native,bogdantmm92/react-native,Srikanth4/react-native,jbaumbach/react-native,mchinyakov/react-native,wangjiangwen/react-native,lloydho/react-native,PhilippKrone/react-native,wangcan2014/react-native,adamterlson/react-native,Applied-Duality/react-native,kushal/react-native,fw1121/react-native,eduardinni/react-native,stan229/react-native,slongwang/react-native,wangjiangwen/react-native,Applied-Duality/react-native,charlesvinette/react-native,jeanblanchard/react-native,fish24k/react-native,Poplava/react-native,chetstone/react-native,javache/react-native,barakcoh/react-native,rushidesai/react-native,honger05/react-native,eduvon0220/react-native,liuzechen/react-native,cdlewis/react-native,jhen0409/react-native,zhangxq5012/react-native,charmingzuo/react-native,tsdl2013/react-native,carcer/react-native,patoroco/react-native,daveenguyen/react-native,mcanthony/react-native,sekouperry/react-native,jadbox/react-native,edward/react-native,chapinkapa/react-native,liuzechen/react-native,mjetek/react-native,ndejesus1227/react-native,billhello/react-native,pitatensai/react-native,dvcrn/react-native,liduanw/react-native,lelandrichardson/react-native,lee-my/react-native,gegaosong/react-native,chirag04/react-native,HealthyWealthy/react-native,facebook/react-native,kesha-antonov/react-native,kfiroo/react-native,genome21/react-native,BossKing/react-native,nathanajah/react-native,skatpgusskat/react-native,forcedotcom/react-native,eduvon0220/react-native,alin23/react-native,wangziqiang/react-native,aaron-goshine/react-native,sospartan/react-native,lucyywang/react-native,dut3062796s/react-native,gre/react-native,ramoslin02/react-native,nanpian/react-native,ModusCreateOrg/react-native,jonesgithub/react-native,devknoll/react-native,dabit3/react-native,formatlos/react-native,Andreyco/react-native,steveleec/react-native,zenlambda/react-native,peterp/react-native,levic92/react-native,zhangxq5012/react-native,sonnylazuardi/react-native,shadow000902/react-native,Heart2009/react-native,popovsh6/react-native,xxccll/react-native,tadeuzagallo/react-native,BossKing/react-native,cxfeng1/react-native,carcer/react-native,brentvatne/react-native,kotdark/react-native,PlexChat/react-native,HSFGitHub/react-native,threepointone/react-native-1,lokilandon/react-native,eddiemonge/react-native,richardgill/react-native,rxb/react-native,dabit3/react-native,ehd/react-native,charlesvinette/react-native,popovsh6/react-native,wustxing/react-native,arbesfeld/react-native,stan229/react-native,steben/react-native,eddiemonge/react-native,nsimmons/react-native,Livyli/react-native,rxb/react-native,chentsulin/react-native,miracle2k/react-native,htc2u/react-native,cosmith/react-native,qingsong-xu/react-native,sghiassy/react-native,cpunion/react-native,DanielMSchmidt/react-native,supercocoa/react-native,Intellicode/react-native,jaggs6/react-native,insionng/react-native,yangshangde/react-native,Emilios1995/react-native,wildKids/react-native,southasia/react-native,DenisIzmaylov/react-native,doochik/react-native,Flickster42490/react-native,Maxwell2022/react-native,kushal/react-native,gabrielbellamy/react-native,yangshangde/react-native,tszajna0/react-native,CntChen/react-native,Bhullnatik/react-native,pj4533/react-native,alin23/react-native,alvarojoao/react-native,cosmith/react-native,mcanthony/react-native,FionaWong/react-native,BossKing/react-native,BretJohnson/react-native,shrutic/react-native,compulim/react-native,htc2u/react-native,manhvvhtth/react-native,formatlos/react-native,marlonandrade/react-native,adamterlson/react-native,kesha-antonov/react-native,bogdantmm92/react-native,Esdeath/react-native,jacobbubu/react-native,janicduplessis/react-native,Jonekee/react-native,jadbox/react-native,pvinis/react-native-desktop,mtford90/react-native,jeffchienzabinet/react-native,Bronts/react-native,xiaoking/react-native,adamjmcgrath/react-native,christer155/react-native,folist/react-native,urvashi01/react-native,soulcm/react-native,codejet/react-native,vjeux/react-native,common2015/react-native,21451061/react-native,xxccll/react-native,sudhirj/react-native,Serfenia/react-native,clooth/react-native,jordanbyron/react-native,jackalchen/react-native,tmwoodson/react-native,YinshawnRao/react-native,pglotov/react-native,myntra/react-native,carcer/react-native,mjetek/react-native,zenlambda/react-native,YueRuo/react-native,jeanblanchard/react-native,gre/react-native,nktpro/react-native,guanghuili/react-native,emodeqidao/react-native,imDangerous/react-native,zyvas/react-native,bouk/react-native,liuhong1happy/react-native,pengleelove/react-native,adamterlson/react-native,garydonovan/react-native,lprhodes/react-native,chengky/react-native,jhen0409/react-native,imDangerous/react-native,prathamesh-sonpatki/react-native,hzgnpu/react-native,quuack/react-native,narlian/react-native,F2EVarMan/react-native,miracle2k/react-native,lloydho/react-native,soxunyi/react-native,cxfeng1/react-native,pallyoung/react-native,yutail/react-native,jevakallio/react-native,code0100fun/react-native,exponent/react-native,urvashi01/react-native,fw1121/react-native,carcer/react-native,alpz5566/react-native,andrewljohnson/react-native,jmstout/react-native,imDangerous/react-native,machard/react-native,pairyo/react-native,wjb12/react-native,jonesgithub/react-native,adamterlson/react-native,insionng/react-native,salanki/react-native,rantianhua/react-native,JulienThibeaut/react-native,darrylblake/react-native,vincentqiu/react-native,hammerandchisel/react-native,urvashi01/react-native,chrisbutcher/react-native,gabrielbellamy/react-native,jibonpab/react-native,machard/react-native,christopherdro/react-native,jackeychens/react-native,fw1121/react-native,Poplava/react-native,bouk/react-native,catalinmiron/react-native,philonpang/react-native,quyixia/react-native,jhen0409/react-native,NZAOM/react-native,rantianhua/react-native,chirag04/react-native,ankitsinghania94/react-native,christopherdro/react-native,chacbumbum/react-native,slongwang/react-native,miracle2k/react-native,pglotov/react-native,pairyo/react-native,DanielMSchmidt/react-native,fw1121/react-native,liubko/react-native,patoroco/react-native,makadaw/react-native,emodeqidao/react-native,jekey/react-native,yiminghe/react-native,lendup/react-native,bodefuwa/react-native,futbalguy/react-native,lokilandon/react-native,leegilon/react-native,callstack-io/react-native,monyxie/react-native,narlian/react-native,jaggs6/react-native,cpunion/react-native,Bronts/react-native,ajwhite/react-native,timfpark/react-native,skatpgusskat/react-native,shadow000902/react-native,tarkus/react-native-appletv,geoffreyfloyd/react-native,booxood/react-native,mcrooks88/react-native,foghina/react-native,cazacugmihai/react-native,Bronts/react-native,Flickster42490/react-native,liuzechen/react-native,pglotov/react-native,jmhdez/react-native,thotegowda/react-native,mtford90/react-native,pcottle/react-native,martinbigio/react-native,Intellicode/react-native,bodefuwa/react-native,levic92/react-native,gpbl/react-native,ortutay/react-native,mtford90/react-native,formatlos/react-native,rxb/react-native,steveleec/react-native,wlrhnh-David/react-native,steben/react-native,pengleelove/react-native,DanielMSchmidt/react-native,genome21/react-native,harrykiselev/react-native,ouyangwenfeng/react-native,kujohn/react-native,skevy/react-native,codejet/react-native,wdxgtsh/react-native,chrisbutcher/react-native,lloydho/react-native,ankitsinghania94/react-native,srounce/react-native,csatf/react-native,DerayGa/react-native,zuolangguo/react-native,shrimpy/react-native,yangshangde/react-native,pjcabrera/react-native,a2/react-native,mironiasty/react-native,hanxiaofei/react-native,YueRuo/react-native,HealthyWealthy/react-native,sekouperry/react-native,dubert/react-native,orenklein/react-native,madusankapremaratne/react-native,ehd/react-native,liuhong1happy/react-native,HSFGitHub/react-native,pandiaraj44/react-native,dralletje/react-native,foghina/react-native,pvinis/react-native-desktop,adamterlson/react-native,soxunyi/react-native,genome21/react-native,waynett/react-native,formatlos/react-native,dikaiosune/react-native,waynett/react-native,neeraj-singh/react-native,alpz5566/react-native,pallyoung/react-native,zuolangguo/react-native,zenlambda/react-native,xinthink/react-native,tgoldenberg/react-native,JoeStanton/react-native,Livyli/react-native,Zagorakiss/react-native,bouk/react-native,krock01/react-native,zhangxq5012/react-native,kushal/react-native,adrie4mac/react-native,jhen0409/react-native,Applied-Duality/react-native,browniefed/react-native,Emilios1995/react-native,wenpkpk/react-native,alinz/react-native,DanielMSchmidt/react-native,salanki/react-native,Hkmu/react-native,lmorchard/react-native,harrykiselev/react-native,garydonovan/react-native,manhvvhtth/react-native,onesfreedom/react-native,yjyi/react-native,pcottle/react-native,qingfeng/react-native,geoffreyfloyd/react-native,lendup/react-native,darkrishabh/react-native,Poplava/react-native,roth1002/react-native,yushiwo/react-native,futbalguy/react-native,Tredsite/react-native,clozr/react-native,Guardiannw/react-native,madusankapremaratne/react-native,iOSTestApps/react-native,skatpgusskat/react-native,christer155/react-native,thstarshine/react-native,xiangjuntang/react-native,garydonovan/react-native,Tredsite/react-native,exponentjs/rex,hammerandchisel/react-native,yusefnapora/react-native,csatf/react-native,genome21/react-native,bright-sparks/react-native,srounce/react-native,PhilippKrone/react-native,jeffchienzabinet/react-native,wjb12/react-native,glovebx/react-native,ordinarybill/react-native,hengcj/react-native,qingfeng/react-native,imjerrybao/react-native,cazacugmihai/react-native,androidgilbert/react-native,popovsh6/react-native,shrutic/react-native,a2/react-native,yamill/react-native,Shopify/react-native,maskkid/react-native,bradens/react-native,honger05/react-native,iodine/react-native,southasia/react-native,Lohit9/react-native,nickhudkins/react-native,orenklein/react-native,mosch/react-native,gre/react-native,fw1121/react-native,folist/react-native,hammerandchisel/react-native,wenpkpk/react-native,hassanabidpk/react-native,YinshawnRao/react-native,FionaWong/react-native,soxunyi/react-native,kentaromiura/react-native,clooth/react-native,ouyangwenfeng/react-native,eliagrady/react-native,insionng/react-native,gauribhoite/react-native,xiayz/react-native,Emilios1995/react-native,NZAOM/react-native,sdiaz/react-native,udnisap/react-native,a2/react-native,shinate/react-native,charmingzuo/react-native,wlrhnh-David/react-native,irisli/react-native,yiminghe/react-native,skatpgusskat/react-native,josebalius/react-native,aziz-boudi4/react-native,charlesvinette/react-native,ktoh/react-native,fw1121/react-native,ide/react-native,imWildCat/react-native,DerayGa/react-native,madusankapremaratne/react-native,nanpian/react-native,hoastoolshop/react-native,alinz/react-native,dabit3/react-native,stan229/react-native,lloydho/react-native,appersonlabs/react-native,gitim/react-native,dimoge/react-native,IveWong/react-native,evilemon/react-native,yiminghe/react-native,facebook/react-native,hoangpham95/react-native,christer155/react-native,Bhullnatik/react-native,spicyj/react-native,ordinarybill/react-native,jaredly/react-native,sahrens/react-native,shlomiatar/react-native,aaron-goshine/react-native,wlrhnh-David/react-native,misakuo/react-native,yimouleng/react-native,iOSTestApps/react-native,mihaigiurgeanu/react-native,satya164/react-native,javache/react-native,rkumar3147/react-native,jacobbubu/react-native,kushal/react-native,neeraj-singh/react-native,lanceharper/react-native,johnv315/react-native,jaggs6/react-native,ramoslin02/react-native,jaredly/react-native,abdelouahabb/react-native,gpbl/react-native,ipmobiletech/react-native,nevir/react-native,tarkus/react-native-appletv,nickhargreaves/react-native,exponentjs/rex,mbrock/react-native,rwwarren/react-native,chiefr/react-native,compulim/react-native,wangcan2014/react-native,spicyj/react-native,ProjectSeptemberInc/react-native,affinityis/react-native,jacobbubu/react-native,darkrishabh/react-native,wangcan2014/react-native,huangsongyan/react-native,wenpkpk/react-native,thotegowda/react-native,lelandrichardson/react-native,simple88/react-native,codejet/react-native,mihaigiurgeanu/react-native,jasonals/react-native,Intellicode/react-native,liangmingjie/react-native,j27cai/react-native,sunblaze/react-native,bimawa/react-native,gitim/react-native,tgf229/react-native,lmorchard/react-native,manhvvhtth/react-native,timfpark/react-native,F2EVarMan/react-native,nathanajah/react-native,jabinwang/react-native,boopathi/react-native,Tredsite/react-native,bouk/react-native,dylanchann/react-native,liubko/react-native,negativetwelve/react-native,philikon/react-native,1988fei/react-native,Iragne/react-native,luqin/react-native,Tredsite/react-native,peterp/react-native,hayeah/react-native,ktoh/react-native,nevir/react-native,tszajna0/react-native,vincentqiu/react-native,bradbumbalough/react-native,olivierlesnicki/react-native,hoastoolshop/react-native,LytayTOUCH/react-native,charmingzuo/react-native,lmorchard/react-native,huip/react-native,lloydho/react-native,kfiroo/react-native,sahrens/react-native,yangchengwork/react-native,waynett/react-native,gs-akhan/react-native,levic92/react-native,happypancake/react-native,kamronbatman/react-native,darkrishabh/react-native,dut3062796s/react-native,barakcoh/react-native,Purii/react-native,cazacugmihai/react-native,andersryanc/react-native,Reparadocs/react-native,jekey/react-native,devknoll/react-native,programming086/react-native,adamterlson/react-native,imWildCat/react-native,Ehesp/react-native,narlian/react-native,fish24k/react-native,frantic/react-native,tsjing/react-native,aaron-goshine/react-native,martinbigio/react-native,yutail/react-native,chnfeeeeeef/react-native,ivanph/react-native,F2EVarMan/react-native,evilemon/react-native,wildKids/react-native,barakcoh/react-native,liubko/react-native,cmhsu/react-native,TChengZ/react-native,wesley1001/react-native,pglotov/react-native,josebalius/react-native,common2015/react-native,huip/react-native,shadow000902/react-native,martinbigio/react-native,mihaigiurgeanu/react-native,CodeLinkIO/react-native,liangmingjie/react-native,MetSystem/react-native,HealthyWealthy/react-native,unknownexception/react-native,apprennet/react-native,catalinmiron/react-native,wdxgtsh/react-native,jevakallio/react-native,Wingie/react-native,luqin/react-native,ehd/react-native,kujohn/react-native,alantrrs/react-native,nevir/react-native,wesley1001/react-native,evilemon/react-native,DanielMSchmidt/react-native,MattFoley/react-native,sudhirj/react-native,pjcabrera/react-native,yiminghe/react-native,strwind/react-native,threepointone/react-native-1,lloydho/react-native,thstarshine/react-native,wenpkpk/react-native,forcedotcom/react-native,ptmt/react-native-macos,ipmobiletech/react-native,Loke155/react-native,Furzikov/react-native,abdelouahabb/react-native,hassanabidpk/react-native,nktpro/react-native,chiefr/react-native,gegaosong/react-native,bright-sparks/react-native,jackeychens/react-native,Heart2009/react-native,iOSTestApps/react-native,dubert/react-native,ankitsinghania94/react-native,farazs/react-native,JoeStanton/react-native,sheep902/react-native,chenbk85/react-native,gauribhoite/react-native,mihaigiurgeanu/react-native,lstNull/react-native,mrngoitall/react-native,onesfreedom/react-native,woshili1/react-native,mway08/react-native,mrngoitall/react-native,wangcan2014/react-native,elliottsj/react-native,judastree/react-native,ptomasroos/react-native,tsjing/react-native,happypancake/react-native,elliottsj/react-native,PhilippKrone/react-native,imjerrybao/react-native,trueblue2704/react-native,rainkong/react-native,rickbeerendonk/react-native,eddiemonge/react-native,YueRuo/react-native,callstack-io/react-native,thotegowda/react-native,alin23/react-native,kesha-antonov/react-native,csatf/react-native,eddiemonge/react-native,clozr/react-native,negativetwelve/react-native,roy0914/react-native,ajwhite/react-native,southasia/react-native,zuolangguo/react-native,zvona/react-native,Furzikov/react-native,MonirAbuHilal/react-native,bouk/react-native,prathamesh-sonpatki/react-native,thstarshine/react-native,wustxing/react-native,CodeLinkIO/react-native,jackalchen/react-native,JulienThibeaut/react-native,ehd/react-native,rkumar3147/react-native,naoufal/react-native,olivierlesnicki/react-native,negativetwelve/react-native,lucyywang/react-native,sarvex/react-native,NZAOM/react-native,ramoslin02/react-native,dylanchann/react-native,beni55/react-native,doochik/react-native,sitexa/react-native,Zagorakiss/react-native,wustxing/react-native,gitim/react-native,NunoEdgarGub1/react-native,miracle2k/react-native,ndejesus1227/react-native,InterfaceInc/react-native,daveenguyen/react-native,milieu/react-native,jeanblanchard/react-native,supercocoa/react-native,jasonals/react-native,irisli/react-native,bowlofstew/react-native,hwsyy/react-native,zyvas/react-native,puf/react-native,ProjectSeptemberInc/react-native,lprhodes/react-native,ChristianHersevoort/react-native,affinityis/react-native,folist/react-native,dikaiosune/react-native,rickbeerendonk/react-native,steben/react-native,stan229/react-native,HSFGitHub/react-native,pglotov/react-native,j27cai/react-native,RGKzhanglei/react-native,Hkmu/react-native,zyvas/react-native,arthuralee/react-native,soxunyi/react-native,hwsyy/react-native,lwansbrough/react-native,hydraulic/react-native,spicyj/react-native,Loke155/react-native,tsjing/react-native,aljs/react-native,honger05/react-native,mqli/react-native,negativetwelve/react-native,jordanbyron/react-native,CntChen/react-native,shrutic/react-native,Purii/react-native,skevy/react-native,jibonpab/react-native,jasonals/react-native,dut3062796s/react-native,vlrchtlt/react-native,Swaagie/react-native,CodeLinkIO/react-native,folist/react-native,Emilios1995/react-native,mrngoitall/react-native,Jericho25/react-native,garrows/react-native,wjb12/react-native,appersonlabs/react-native,honger05/react-native,ProjectSeptemberInc/react-native,ortutay/react-native,programming086/react-native,rickbeerendonk/react-native,jabinwang/react-native,KJlmfe/react-native,Heart2009/react-native,JackLeeMing/react-native,zhangxq5012/react-native,yjh0502/react-native,alin23/react-native,judastree/react-native,rantianhua/react-native,darrylblake/react-native,dralletje/react-native,wjb12/react-native,lee-my/react-native,pjcabrera/react-native,michaelchucoder/react-native,qingsong-xu/react-native,Lohit9/react-native,zenlambda/react-native,sdiaz/react-native,csatf/react-native,dylanchann/react-native,cazacugmihai/react-native,tadeuzagallo/react-native,doochik/react-native,udnisap/react-native,madusankapremaratne/react-native,cosmith/react-native,InterfaceInc/react-native,machard/react-native,iOSTestApps/react-native,sahat/react-native,wildKids/react-native,mcanthony/react-native,andrewljohnson/react-native,eduardinni/react-native,kentaromiura/react-native,judastree/react-native,dralletje/react-native,chetstone/react-native,gre/react-native,liangmingjie/react-native,affinityis/react-native,zvona/react-native,shrutic123/react-native,lanceharper/react-native,leegilon/react-native,common2015/react-native,mrspeaker/react-native,skatpgusskat/react-native,lanceharper/react-native,futbalguy/react-native,myntra/react-native,ipmobiletech/react-native,Bhullnatik/react-native,philonpang/react-native,dubert/react-native,lelandrichardson/react-native,negativetwelve/react-native,lelandrichardson/react-native,mozillo/react-native,BretJohnson/react-native,shrimpy/react-native,chirag04/react-native,chnfeeeeeef/react-native,facebook/react-native,pitatensai/react-native,rodneyss/react-native,tgriesser/react-native,gpbl/react-native,andrewljohnson/react-native,arbesfeld/react-native,Suninus/react-native,yusefnapora/react-native,affinityis/react-native,marlonandrade/react-native,jabinwang/react-native,yangchengwork/react-native,hydraulic/react-native,JasonZ321/react-native,arthuralee/react-native,sudhirj/react-native,charlesvinette/react-native,mosch/react-native,qingfeng/react-native,makadaw/react-native,thotegowda/react-native,alantrrs/react-native,shrimpy/react-native,ericvera/react-native,popovsh6/react-native,doochik/react-native,rushidesai/react-native,orenklein/react-native,chengky/react-native,MetSystem/react-native,sixtomay/react-native,pgavazzi/react-unity,KJlmfe/react-native,lokilandon/react-native,dimoge/react-native,InterfaceInc/react-native,adamkrell/react-native,browniefed/react-native,InterfaceInc/react-native,dvcrn/react-native,jbaumbach/react-native,ultralame/react-native,tsjing/react-native,ordinarybill/react-native,machard/react-native,fw1121/react-native,udnisap/react-native,quyixia/react-native,Zagorakiss/react-native,bradbumbalough/react-native,imWildCat/react-native,doochik/react-native,aroth/react-native,nathanajah/react-native,almost/react-native,hanxiaofei/react-native,lgengsy/react-native,judastree/react-native,chengky/react-native,leegilon/react-native,leegilon/react-native,liuhong1happy/react-native,averted/react-native,j27cai/react-native,machard/react-native,averted/react-native,shrutic/react-native,ankitsinghania94/react-native,darkrishabh/react-native,dikaiosune/react-native,tarkus/react-native-appletv,chrisbutcher/react-native,tgoldenberg/react-native,hesling/react-native,sghiassy/react-native,aroth/react-native,yamill/react-native,enaqx/react-native,frantic/react-native,kujohn/react-native,Poplava/react-native,bouk/react-native,charmingzuo/react-native,tarkus/react-native-appletv,levic92/react-native,roy0914/react-native,21451061/react-native,bodefuwa/react-native,sghiassy/react-native,mway08/react-native,alin23/react-native,happypancake/react-native,sdiaz/react-native,jbaumbach/react-native,yushiwo/react-native,Bhullnatik/react-native,Jonekee/react-native,lprhodes/react-native,mrngoitall/react-native,Furzikov/react-native,eduardinni/react-native,rwwarren/react-native,yjh0502/react-native,kesha-antonov/react-native,IveWong/react-native,qq644531343/react-native,rkumar3147/react-native,christer155/react-native,mariusbutuc/react-native,jackeychens/react-native,liuhong1happy/react-native,patoroco/react-native,leegilon/react-native,farazs/react-native,sheep902/react-native,wangjiangwen/react-native,ndejesus1227/react-native,charlesvinette/react-native,dimoge/react-native,michaelchucoder/react-native,hoangpham95/react-native,simple88/react-native,Heart2009/react-native,1988fei/react-native,eduvon0220/react-native,andrewljohnson/react-native,pairyo/react-native,jmhdez/react-native,ehd/react-native,mironiasty/react-native,mqli/react-native,guanghuili/react-native,abdelouahabb/react-native,dfala/react-native,beni55/react-native,evansolomon/react-native,garrows/react-native,hoangpham95/react-native,jeffchienzabinet/react-native,urvashi01/react-native,YotrolZ/react-native,adrie4mac/react-native,HSFGitHub/react-native,southasia/react-native,pvinis/react-native-desktop,kotdark/react-native,jasonnoahchoi/react-native,philikon/react-native,dikaiosune/react-native,sekouperry/react-native,nktpro/react-native,hengcj/react-native,jeanblanchard/react-native,huip/react-native,jordanbyron/react-native,levic92/react-native,jonesgithub/react-native,misakuo/react-native,magnus-bergman/react-native,tahnok/react-native,kfiroo/react-native,srounce/react-native,NZAOM/react-native,huangsongyan/react-native,ChiMarvine/react-native,waynett/react-native,hydraulic/react-native,shlomiatar/react-native,ptomasroos/react-native,sekouperry/react-native,olivierlesnicki/react-native,jabinwang/react-native,xiangjuntang/react-native,mariusbutuc/react-native,htc2u/react-native,charmingzuo/react-native,evansolomon/react-native,lgengsy/react-native,htc2u/react-native,jevakallio/react-native,abdelouahabb/react-native,CntChen/react-native,leopardpan/react-native,taydakov/react-native,lmorchard/react-native,shinate/react-native,enaqx/react-native,arthuralee/react-native,steveleec/react-native,zdsiyan/react-native,jackeychens/react-native,eduardinni/react-native,YotrolZ/react-native,JasonZ321/react-native,F2EVarMan/react-native,zvona/react-native,jeanblanchard/react-native,nktpro/react-native,bouk/react-native,wangcan2014/react-native,hengcj/react-native,yutail/react-native,NunoEdgarGub1/react-native,mozillo/react-native,rwwarren/react-native,ouyangwenfeng/react-native,makadaw/react-native,bradens/react-native,taydakov/react-native,YinshawnRao/react-native,thstarshine/react-native,mqli/react-native,arthuralee/react-native,kentaromiura/react-native,aifeld/react-native,TChengZ/react-native,billhello/react-native,kesha-antonov/react-native,ChiMarvine/react-native,jordanbyron/react-native,qq644531343/react-native,dvcrn/react-native,tszajna0/react-native,cmhsu/react-native,glovebx/react-native,ortutay/react-native,elliottsj/react-native,goodheart/react-native,sarvex/react-native,apprennet/react-native,srounce/react-native,ndejesus1227/react-native,pandiaraj44/react-native,ultralame/react-native,adamkrell/react-native,rxb/react-native,vlrchtlt/react-native,Livyli/react-native,zvona/react-native,zdsiyan/react-native,hengcj/react-native,Andreyco/react-native,happypancake/react-native,Rowandjj/react-native,Purii/react-native,chapinkapa/react-native,rodneyss/react-native,apprennet/react-native,wustxing/react-native,miracle2k/react-native,janicduplessis/react-native,Maxwell2022/react-native,lmorchard/react-native,boopathi/react-native,skatpgusskat/react-native,skevy/react-native,krock01/react-native,clooth/react-native,popovsh6/react-native,aaron-goshine/react-native,androidgilbert/react-native,Shopify/react-native,LytayTOUCH/react-native,clooth/react-native,guanghuili/react-native,WilliamRen/react-native,shadow000902/react-native,chetstone/react-native,heyjim89/react-native,NishanthShankar/react-native,bright-sparks/react-native,callstack-io/react-native,Bhullnatik/react-native,adrie4mac/react-native,cxfeng1/react-native,carcer/react-native,nickhargreaves/react-native,lee-my/react-native,apprennet/react-native,dizlexik/react-native,pvinis/react-native-desktop,HealthyWealthy/react-native,yamill/react-native,liduanw/react-native,luqin/react-native,yangchengwork/react-native,BretJohnson/react-native,wdxgtsh/react-native,Emilios1995/react-native,adamkrell/react-native,lgengsy/react-native,hike2008/react-native,Swaagie/react-native,MonirAbuHilal/react-native,soulcm/react-native,kushal/react-native,kushal/react-native,slongwang/react-native,liuhong1happy/react-native,RGKzhanglei/react-native,lightsofapollo/react-native,oren/react-native,appersonlabs/react-native,zyvas/react-native,bright-sparks/react-native,garrows/react-native,ajwhite/react-native,hydraulic/react-native,puf/react-native,huip/react-native,goodheart/react-native,honger05/react-native,chengky/react-native,jaggs6/react-native,woshili1/react-native,cxfeng1/react-native,sospartan/react-native,Inner89/react-native,insionng/react-native,vjeux/react-native,liubko/react-native,alantrrs/react-native,DerayGa/react-native,misakuo/react-native,Livyli/react-native,tarkus/react-native-appletv,qingsong-xu/react-native,dut3062796s/react-native,farazs/react-native,wjb12/react-native,leopardpan/react-native,zhangwei001/react-native,ProjectSeptemberInc/react-native,irisli/react-native,wlrhnh-David/react-native,forcedotcom/react-native,tsdl2013/react-native,tsjing/react-native,dylanchann/react-native,dimoge/react-native,imWildCat/react-native,21451061/react-native,satya164/react-native,jbaumbach/react-native,jonesgithub/react-native,abdelouahabb/react-native,hesling/react-native,bistacos/react-native,hwsyy/react-native,appersonlabs/react-native,Zagorakiss/react-native,esauter5/react-native,eddiemonge/react-native,leopardpan/react-native,wlrhnh-David/react-native,vincentqiu/react-native,Hkmu/react-native,foghina/react-native,nevir/react-native,bogdantmm92/react-native,cosmith/react-native,zuolangguo/react-native,imWildCat/react-native,nanpian/react-native,leeyeh/react-native,sjchakrav/react-native,sheep902/react-native,corbt/react-native,lgengsy/react-native,jasonals/react-native,esauter5/react-native,edward/react-native,jasonnoahchoi/react-native,NunoEdgarGub1/react-native,huangsongyan/react-native,nickhudkins/react-native,jadbox/react-native,barakcoh/react-native,christopherdro/react-native,unknownexception/react-native,quuack/react-native,jasonals/react-native,monyxie/react-native,JoeStanton/react-native,eliagrady/react-native,Emilios1995/react-native,udnisap/react-native,Livyli/react-native,csudanthi/react-native,ipmobiletech/react-native,jaredly/react-native,Heart2009/react-native,jevakallio/react-native,corbt/react-native,xinthink/react-native,j27cai/react-native,chacbumbum/react-native,kassens/react-native,dut3062796s/react-native,fish24k/react-native,code0100fun/react-native,makadaw/react-native,aaron-goshine/react-native,chsj1/react-native,glovebx/react-native,Maxwell2022/react-native,NishanthShankar/react-native,kassens/react-native,zenlambda/react-native,ldehai/react-native,Ehesp/react-native,bodefuwa/react-native,cez213/react-native,shadow000902/react-native,darkrishabh/react-native,InterfaceInc/react-native,tgoldenberg/react-native,puf/react-native,Shopify/react-native,dalinaum/react-native,xiayz/react-native,vincentqiu/react-native,ivanph/react-native,eduvon0220/react-native,cmhsu/react-native,andersryanc/react-native,xinthink/react-native,unknownexception/react-native,chenbk85/react-native,imjerrybao/react-native,csudanthi/react-native,nsimmons/react-native,misakuo/react-native,zdsiyan/react-native,billhello/react-native,MattFoley/react-native,mukesh-kumar1905/react-native,xiaoking/react-native,MonirAbuHilal/react-native,Purii/react-native,bright-sparks/react-native,jibonpab/react-native,a2/react-native,mqli/react-native,csudanthi/react-native,ronak301/react-native,mariusbutuc/react-native,trueblue2704/react-native,DanielMSchmidt/react-native,strwind/react-native,yusefnapora/react-native,ktoh/react-native,callstack-io/react-native,Ehesp/react-native,pjcabrera/react-native,rodneyss/react-native,mrspeaker/react-native,yjh0502/react-native,tahnok/react-native,pjcabrera/react-native,wenpkpk/react-native,liuzechen/react-native,Esdeath/react-native,farazs/react-native,Swaagie/react-native,zuolangguo/react-native,Furzikov/react-native,zdsiyan/react-native,Applied-Duality/react-native,negativetwelve/react-native,tsjing/react-native,dvcrn/react-native,roy0914/react-native,code0100fun/react-native,TChengZ/react-native,YComputer/react-native,xinthink/react-native,rantianhua/react-native,xiaoking/react-native,satya164/react-native,ivanph/react-native,ludaye123/react-native,WilliamRen/react-native,zhangwei001/react-native,tszajna0/react-native,Rowandjj/react-native,soulcm/react-native,oren/react-native,heyjim89/react-native,RGKzhanglei/react-native,brentvatne/react-native,sahat/react-native,mukesh-kumar1905/react-native,esauter5/react-native,Srikanth4/react-native,waynett/react-native,wdxgtsh/react-native,adamjmcgrath/react-native,jasonals/react-native,NunoEdgarGub1/react-native,chirag04/react-native,mosch/react-native,imjerrybao/react-native,YComputer/react-native,evilemon/react-native,aifeld/react-native,urvashi01/react-native,vincentqiu/react-native,aljs/react-native,pjcabrera/react-native,zdsiyan/react-native,krock01/react-native,hydraulic/react-native,philikon/react-native,ptomasroos/react-native,wjb12/react-native,kassens/react-native,edward/react-native,bestwpw/react-native,aroth/react-native,yelled3/react-native,PlexChat/react-native,maskkid/react-native,Serfenia/react-native,jeffchienzabinet/react-native,Jonekee/react-native,Andreyco/react-native,mbrock/react-native,pletcher/react-native,bestwpw/react-native,misakuo/react-native,aifeld/react-native,taydakov/react-native,hammerandchisel/react-native,wustxing/react-native,steben/react-native,nathanajah/react-native,insionng/react-native,MetSystem/react-native,chiefr/react-native,madusankapremaratne/react-native,adamjmcgrath/react-native,foghina/react-native,code0100fun/react-native,prathamesh-sonpatki/react-native,pvinis/react-native-desktop,yjyi/react-native,codejet/react-native,huip/react-native,KJlmfe/react-native,kundanjadhav/react-native,rollokb/react-native,bowlofstew/react-native,sonnylazuardi/react-native,yimouleng/react-native,a2/react-native,sheep902/react-native,gs-akhan/react-native,facebook/react-native,neeraj-singh/react-native,spicyj/react-native,BretJohnson/react-native,hoastoolshop/react-native,Wingie/react-native,browniefed/react-native,JulienThibeaut/react-native,dizlexik/react-native,Hkmu/react-native,code0100fun/react-native,huangsongyan/react-native,andrewljohnson/react-native,simple88/react-native,vjeux/react-native,edward/react-native,boopathi/react-native,johnv315/react-native,lgengsy/react-native,kfiroo/react-native,Maxwell2022/react-native,bimawa/react-native,fish24k/react-native,elliottsj/react-native,magnus-bergman/react-native,quuack/react-native,folist/react-native,FionaWong/react-native,skevy/react-native,callstack-io/react-native,southasia/react-native,mchinyakov/react-native,nktpro/react-native,noif/react-native,Intellicode/react-native,DannyvanderJagt/react-native,callstack-io/react-native,mukesh-kumar1905/react-native,yangshangde/react-native,sekouperry/react-native,exponent/react-native,billhello/react-native,tahnok/react-native,KJlmfe/react-native,pairyo/react-native,lokilandon/react-native,farazs/react-native,spyrx7/react-native,sheep902/react-native,apprennet/react-native,ljhsai/react-native,guanghuili/react-native,adamterlson/react-native,naoufal/react-native,shrutic123/react-native,liufeigit/react-native,cpunion/react-native,alpz5566/react-native,narlian/react-native,appersonlabs/react-native,kassens/react-native,yelled3/react-native,HealthyWealthy/react-native,tszajna0/react-native,timfpark/react-native,jibonpab/react-native,Intellicode/react-native,happypancake/react-native,misakuo/react-native,ultralame/react-native,xxccll/react-native,zhaosichao/react-native,RGKzhanglei/react-native,pj4533/react-native,xiangjuntang/react-native,mchinyakov/react-native,tahnok/react-native,cazacugmihai/react-native,lmorchard/react-native,wenpkpk/react-native,mcrooks88/react-native,exponentjs/react-native,timfpark/react-native,Rowandjj/react-native,skatpgusskat/react-native,skevy/react-native,oren/react-native,kamronbatman/react-native,machard/react-native,Ehesp/react-native,carcer/react-native,dvcrn/react-native,dfala/react-native,HealthyWealthy/react-native,liuhong1happy/react-native,charmingzuo/react-native,compulim/react-native,levic92/react-native,darkrishabh/react-native,jmstout/react-native,sunblaze/react-native,gegaosong/react-native,cpunion/react-native,yzarubin/react-native,shrimpy/react-native,Wingie/react-native,cez213/react-native,androidgilbert/react-native,chnfeeeeeef/react-native,xiayz/react-native,aljs/react-native,kushal/react-native,jmhdez/react-native,strwind/react-native,ouyangwenfeng/react-native,liuzechen/react-native,21451061/react-native,yangchengwork/react-native,pletcher/react-native,Purii/react-native,lprhodes/react-native,jeromjoy/react-native,dralletje/react-native,dimoge/react-native,leegilon/react-native,Andreyco/react-native,richardgill/react-native,ptmt/react-native,lmorchard/react-native,yushiwo/react-native,qq644531343/react-native,pglotov/react-native,geoffreyfloyd/react-native,jabinwang/react-native,barakcoh/react-native,trueblue2704/react-native,billhello/react-native,kamronbatman/react-native,beni55/react-native,woshili1/react-native,gs-akhan/react-native,iodine/react-native,kfiroo/react-native,pitatensai/react-native,onesfreedom/react-native,compulim/react-native,darkrishabh/react-native,F2EVarMan/react-native,lokilandon/react-native,ndejesus1227/react-native,farazs/react-native,mozillo/react-native,monyxie/react-native,DerayGa/react-native,NishanthShankar/react-native,tgoldenberg/react-native,xiayz/react-native,sjchakrav/react-native,abdelouahabb/react-native,ProjectSeptemberInc/react-native,sdiaz/react-native,mironiasty/react-native,noif/react-native,hwsyy/react-native,oren/react-native,zhangwei001/react-native,Loke155/react-native,ptmt/react-native,formatlos/react-native,stan229/react-native,chsj1/react-native,yushiwo/react-native,kotdark/react-native,ordinarybill/react-native,popovsh6/react-native,ajwhite/react-native,vincentqiu/react-native,christopherdro/react-native,makadaw/react-native,marlonandrade/react-native,callstack-io/react-native,mozillo/react-native,steben/react-native,RGKzhanglei/react-native,nickhargreaves/react-native,forcedotcom/react-native,jackeychens/react-native,sahat/react-native,wangcan2014/react-native,csatf/react-native,gilesvangruisen/react-native,ptmt/react-native-macos,liufeigit/react-native,hzgnpu/react-native,liduanw/react-native,Loke155/react-native,andersryanc/react-native,donyu/react-native,Intellicode/react-native,MetSystem/react-native,ericvera/react-native,farazs/react-native,BossKing/react-native,alantrrs/react-native,waynett/react-native,quyixia/react-native,Wingie/react-native,iodine/react-native,ptmt/react-native-macos,Lucifer-Kim/react-native,ankitsinghania94/react-native,happypancake/react-native,garydonovan/react-native,kfiroo/react-native,dimoge/react-native,nanpian/react-native,oren/react-native,liduanw/react-native,androidgilbert/react-native,ModusCreateOrg/react-native,ndejesus1227/react-native,bistacos/react-native,nanpian/react-native,Heart2009/react-native,pandiaraj44/react-native,imWildCat/react-native,bsansouci/react-native,javache/react-native,barakcoh/react-native,tmwoodson/react-native,yusefnapora/react-native,enaqx/react-native,tsdl2013/react-native,ChristianHersevoort/react-native,averted/react-native,doochik/react-native,mjetek/react-native,WilliamRen/react-native,gs-akhan/react-native,mtford90/react-native,BretJohnson/react-native,Lucifer-Kim/react-native,Flickster42490/react-native,pairyo/react-native,gauribhoite/react-native,bestwpw/react-native,jacobbubu/react-native,pallyoung/react-native,hydraulic/react-native,steveleec/react-native,dimoge/react-native,yzarubin/react-native,urvashi01/react-native,mrspeaker/react-native,yzarubin/react-native,facebook/react-native,pitatensai/react-native,MetSystem/react-native,kotdark/react-native,janicduplessis/react-native,xiayz/react-native,magnus-bergman/react-native,lmorchard/react-native,janicduplessis/react-native,peterp/react-native,charlesvinette/react-native,yangshangde/react-native,carcer/react-native,levic92/react-native,programming086/react-native,rantianhua/react-native,Inner89/react-native,exponent/react-native,iOSTestApps/react-native,Rowandjj/react-native,nsimmons/react-native,jeromjoy/react-native,javache/react-native,zyvas/react-native,CodeLinkIO/react-native,chacbumbum/react-native,hammerandchisel/react-native,alinz/react-native,cazacugmihai/react-native,common2015/react-native,eliagrady/react-native,cxfeng1/react-native,a2/react-native,shrutic/react-native,woshili1/react-native,ljhsai/react-native,evansolomon/react-native,heyjim89/react-native,bimawa/react-native,zuolangguo/react-native,ChristianHersevoort/react-native,wangziqiang/react-native,jibonpab/react-native,arbesfeld/react-native,gauribhoite/react-native,jmstout/react-native,jacobbubu/react-native,NunoEdgarGub1/react-native,orenklein/react-native,trueblue2704/react-native,prathamesh-sonpatki/react-native,Swaagie/react-native,lelandrichardson/react-native,philikon/react-native,chacbumbum/react-native,garrows/react-native,brentvatne/react-native,mchinyakov/react-native,threepointone/react-native-1,cazacugmihai/react-native,hanxiaofei/react-native,gilesvangruisen/react-native,yelled3/react-native,quyixia/react-native,dabit3/react-native,catalinmiron/react-native,lanceharper/react-native,aziz-boudi4/react-native,ludaye123/react-native,onesfreedom/react-native,Hkmu/react-native,sospartan/react-native,thotegowda/react-native,mosch/react-native,bradbumbalough/react-native,ModusCreateOrg/react-native,ChristianHersevoort/react-native,roth1002/react-native,dabit3/react-native,ldehai/react-native,mbrock/react-native,Purii/react-native,ChiMarvine/react-native,tszajna0/react-native,DannyvanderJagt/react-native,ChristianHersevoort/react-native,lprhodes/react-native,chsj1/react-native,garydonovan/react-native,bsansouci/react-native,eduardinni/react-native,devknoll/react-native,gs-akhan/react-native,shlomiatar/react-native,nathanajah/react-native,wesley1001/react-native,kamronbatman/react-native,geoffreyfloyd/react-native,aifeld/react-native,Applied-Duality/react-native,LytayTOUCH/react-native,cosmith/react-native,hassanabidpk/react-native,hwsyy/react-native,YueRuo/react-native,InterfaceInc/react-native,shrimpy/react-native,Serfenia/react-native,narlian/react-native,carcer/react-native,cdlewis/react-native,mjetek/react-native,magnus-bergman/react-native,mrngoitall/react-native,chentsulin/react-native,ktoh/react-native,gilesvangruisen/react-native,Tredsite/react-native,TChengZ/react-native,christer155/react-native,steben/react-native,DannyvanderJagt/react-native,alantrrs/react-native,adrie4mac/react-native,apprennet/react-native,JackLeeMing/react-native,Suninus/react-native,wangyzyoga/react-native,gre/react-native,TChengZ/react-native,Wingie/react-native,tgriesser/react-native,YueRuo/react-native,mrspeaker/react-native,cdlewis/react-native,chengky/react-native,liuzechen/react-native,marlonandrade/react-native,lelandrichardson/react-native,hharnisc/react-native,kassens/react-native,hzgnpu/react-native,marlonandrade/react-native,lgengsy/react-native,yimouleng/react-native,hoangpham95/react-native,michaelchucoder/react-native,chetstone/react-native,glovebx/react-native,ptmt/react-native-macos,forcedotcom/react-native,hoastoolshop/react-native,sahat/react-native,sghiassy/react-native,Andreyco/react-native,billhello/react-native,Flickster42490/react-native,jabinwang/react-native,browniefed/react-native,chsj1/react-native,RGKzhanglei/react-native,Lucifer-Kim/react-native,charmingzuo/react-native,noif/react-native,hike2008/react-native,patoroco/react-native,supercocoa/react-native,zhaosichao/react-native,jasonnoahchoi/react-native,krock01/react-native,emodeqidao/react-native,dralletje/react-native,cmhsu/react-native,lstNull/react-native,chapinkapa/react-native,arbesfeld/react-native,WilliamRen/react-native,csudanthi/react-native,donyu/react-native,catalinmiron/react-native,mariusbutuc/react-native,wildKids/react-native,martinbigio/react-native,chsj1/react-native,lee-my/react-native,cpunion/react-native,garrows/react-native,Iragne/react-native,daveenguyen/react-native,hoangpham95/react-native,Wingie/react-native,charmingzuo/react-native,Ehesp/react-native,judastree/react-native,code0100fun/react-native,sunblaze/react-native,wustxing/react-native,Suninus/react-native,sghiassy/react-native,makadaw/react-native,tadeuzagallo/react-native,Rowandjj/react-native,daveenguyen/react-native,jbaumbach/react-native,aljs/react-native,jaggs6/react-native,quuack/react-native,spyrx7/react-native,yamill/react-native,judastree/react-native,jackeychens/react-native,jbaumbach/react-native,shrutic123/react-native,shrutic/react-native,adamterlson/react-native,beni55/react-native,mironiasty/react-native,yjyi/react-native,sdiaz/react-native,iodine/react-native,jhen0409/react-native,stan229/react-native,Swaagie/react-native,appersonlabs/react-native,xinthink/react-native,cosmith/react-native,gre/react-native,zdsiyan/react-native,salanki/react-native,DerayGa/react-native,almost/react-native,sekouperry/react-native,liduanw/react-native,chengky/react-native,sghiassy/react-native,rwwarren/react-native,kesha-antonov/react-native,leopardpan/react-native,sheep902/react-native,chengky/react-native,ordinarybill/react-native,clooth/react-native,ChristopherSalam/react-native,YComputer/react-native,soulcm/react-native,ericvera/react-native,lloydho/react-native,satya164/react-native,j27cai/react-native,rainkong/react-native,sitexa/react-native,ajwhite/react-native,jonesgithub/react-native,vlrchtlt/react-native,CodeLinkIO/react-native,21451061/react-native,esauter5/react-native,JackLeeMing/react-native,southasia/react-native,vjeux/react-native,JackLeeMing/react-native,rebeccahughes/react-native,mukesh-kumar1905/react-native,wesley1001/react-native,Bhullnatik/react-native,ChristianHersevoort/react-native,devknoll/react-native,alinz/react-native,sixtomay/react-native,beni55/react-native,chirag04/react-native,aziz-boudi4/react-native,negativetwelve/react-native,nanpian/react-native,jadbox/react-native,21451061/react-native,common2015/react-native,brentvatne/react-native,corbt/react-native,ptmt/react-native,mozillo/react-native,YueRuo/react-native,wangjiangwen/react-native,ronak301/react-native,sospartan/react-native,patoroco/react-native,unknownexception/react-native,oren/react-native,jackalchen/react-native,gauribhoite/react-native,gilesvangruisen/react-native,ajwhite/react-native,richardgill/react-native,programming086/react-native,ericvera/react-native,PlexChat/react-native,yelled3/react-native,ktoh/react-native,nanpian/react-native,jekey/react-native,common2015/react-native,iodine/react-native,orenklein/react-native,chirag04/react-native,jeanblanchard/react-native,yjyi/react-native,tarkus/react-native-appletv,Srikanth4/react-native,jackalchen/react-native,rantianhua/react-native,hoastoolshop/react-native,kundanjadhav/react-native,alpz5566/react-native,milieu/react-native,kotdark/react-native,thotegowda/react-native,judastree/react-native,xiayz/react-native,ouyangwenfeng/react-native,ptmt/react-native,trueblue2704/react-native,sdiaz/react-native,Zagorakiss/react-native,tgriesser/react-native,dralletje/react-native,neeraj-singh/react-native,clozr/react-native,alpz5566/react-native,levic92/react-native,judastree/react-native,glovebx/react-native,imjerrybao/react-native,narlian/react-native,philikon/react-native,dalinaum/react-native,zhangwei001/react-native,jeffchienzabinet/react-native,Heart2009/react-native,southasia/react-native,Wingie/react-native,naoufal/react-native,bowlofstew/react-native,taydakov/react-native,onesfreedom/react-native,ide/react-native,happypancake/react-native,mway08/react-native,mqli/react-native,cdlewis/react-native,pjcabrera/react-native,ptmt/react-native,strwind/react-native,mtford90/react-native,roy0914/react-native,bsansouci/react-native,zhaosichao/react-native,yzarubin/react-native,zvona/react-native,jbaumbach/react-native,arbesfeld/react-native,genome21/react-native,MonirAbuHilal/react-native,Bhullnatik/react-native,ronak301/react-native,kassens/react-native,harrykiselev/react-native,irisli/react-native,Suninus/react-native,roy0914/react-native,eddiemonge/react-native,ordinarybill/react-native,onesfreedom/react-native,ModusCreateOrg/react-native,olivierlesnicki/react-native,naoufal/react-native,bistacos/react-native,ChristianHersevoort/react-native,goodheart/react-native,wangziqiang/react-native,yelled3/react-native,PhilippKrone/react-native,myntra/react-native,sixtomay/react-native,YinshawnRao/react-native,jekey/react-native,rodneyss/react-native,aljs/react-native,pcottle/react-native,yutail/react-native,leopardpan/react-native,ktoh/react-native,bradbumbalough/react-native,kassens/react-native,exponentjs/react-native,zyvas/react-native,Srikanth4/react-native,lstNull/react-native,tgf229/react-native,PlexChat/react-native,lucyywang/react-native,shrimpy/react-native,mway08/react-native,bradbumbalough/react-native,imDangerous/react-native,wangyzyoga/react-native,rainkong/react-native,dikaiosune/react-native,sahrens/react-native,edward/react-native,yangchengwork/react-native,wangyzyoga/react-native,xiangjuntang/react-native,jonesgithub/react-native,jmstout/react-native,kotdark/react-native,pgavazzi/react-unity,soulcm/react-native,formatlos/react-native,PlexChat/react-native,tahnok/react-native,fengshao0907/react-native,mbrock/react-native,lucyywang/react-native,jmhdez/react-native,hwsyy/react-native,mway08/react-native,hammerandchisel/react-native,htc2u/react-native,Emilios1995/react-native,monyxie/react-native,booxood/react-native,martinbigio/react-native,heyjim89/react-native,fengshao0907/react-native,andersryanc/react-native,shrutic/react-native,ChristopherSalam/react-native,zdsiyan/react-native,taydakov/react-native,jeromjoy/react-native,DannyvanderJagt/react-native,leegilon/react-native,eduvon0220/react-native,thstarshine/react-native,DannyvanderJagt/react-native,lightsofapollo/react-native,kundanjadhav/react-native,yushiwo/react-native,mjetek/react-native,tsdl2013/react-native,sixtomay/react-native,kesha-antonov/react-native,mchinyakov/react-native,yjh0502/react-native,almost/react-native,christopherdro/react-native,liduanw/react-native,rxb/react-native,tgf229/react-native,ouyangwenfeng/react-native,sahat/react-native,rollokb/react-native,maskkid/react-native,Tredsite/react-native,gauribhoite/react-native,mironiasty/react-native,wangjiangwen/react-native,jordanbyron/react-native,udnisap/react-native,cpunion/react-native,pallyoung/react-native,naoufal/react-native,Furzikov/react-native,dubert/react-native,Srikanth4/react-native,Poplava/react-native,peterp/react-native,chacbumbum/react-native,wangziqiang/react-native,mcrooks88/react-native,yimouleng/react-native,spyrx7/react-native,sospartan/react-native,MattFoley/react-native,wangcan2014/react-native,Hkmu/react-native,hzgnpu/react-native,Bronts/react-native,fish24k/react-native,eliagrady/react-native,philonpang/react-native,monyxie/react-native,huip/react-native,janicduplessis/react-native,almost/react-native,Esdeath/react-native,iodine/react-native,shadow000902/react-native,makadaw/react-native,Guardiannw/react-native,Purii/react-native,zvona/react-native,ptomasroos/react-native,JoeStanton/react-native,cosmith/react-native,bradens/react-native,folist/react-native,lprhodes/react-native,DerayGa/react-native,sjchakrav/react-native,eduardinni/react-native,xiaoking/react-native,gegaosong/react-native,christer155/react-native,myntra/react-native,yamill/react-native,charlesvinette/react-native,hydraulic/react-native,hammerandchisel/react-native,ide/react-native,imDangerous/react-native,enaqx/react-native,richardgill/react-native,tgriesser/react-native,mrspeaker/react-native,ajwhite/react-native,daveenguyen/react-native,leeyeh/react-native,TChengZ/react-native,ericvera/react-native,tgf229/react-native,roy0914/react-native,kentaromiura/react-native,ptomasroos/react-native,pitatensai/react-native,hzgnpu/react-native,christopherdro/react-native,cez213/react-native,mironiasty/react-native,kassens/react-native,wdxgtsh/react-native,jasonals/react-native,shrutic/react-native,programming086/react-native,lucyywang/react-native,fengshao0907/react-native,gegaosong/react-native,Ehesp/react-native,kamronbatman/react-native,browniefed/react-native,boopathi/react-native,ericvera/react-native,exponentjs/react-native,misakuo/react-native,cazacugmihai/react-native,beni55/react-native,Inner89/react-native,eddiemonge/react-native,MattFoley/react-native,zhangwei001/react-native,ptomasroos/react-native,averted/react-native,sospartan/react-native,roy0914/react-native,hesling/react-native,yutail/react-native,udnisap/react-native,adrie4mac/react-native,imWildCat/react-native,MonirAbuHilal/react-native,luqin/react-native,pj4533/react-native,dfala/react-native,codejet/react-native,garydonovan/react-native,Furzikov/react-native,zhangxq5012/react-native,clozr/react-native,bsansouci/react-native,mchinyakov/react-native,kesha-antonov/react-native,j27cai/react-native,miracle2k/react-native,gilesvangruisen/react-native,lanceharper/react-native,Serfenia/react-native,formatlos/react-native,glovebx/react-native,gabrielbellamy/react-native,alinz/react-native,mtford90/react-native,HealthyWealthy/react-native,exponent/react-native,chetstone/react-native,Andreyco/react-native,chnfeeeeeef/react-native,MetSystem/react-native,ludaye123/react-native,compulim/react-native,hoangpham95/react-native,YComputer/react-native,narlian/react-native,hoangpham95/react-native,supercocoa/react-native,dubert/react-native,darkrishabh/react-native,woshili1/react-native,aroth/react-native,wlrhnh-David/react-native,xiangjuntang/react-native,sahat/react-native,huangsongyan/react-native,Emilios1995/react-native,esauter5/react-native,gabrielbellamy/react-native,iodine/react-native,boopathi/react-native,dabit3/react-native,Shopify/react-native,hanxiaofei/react-native,Guardiannw/react-native,philonpang/react-native,ankitsinghania94/react-native,bsansouci/react-native,makadaw/react-native,xinthink/react-native,Ehesp/react-native,Andreyco/react-native,rodneyss/react-native,mcrooks88/react-native,appersonlabs/react-native,htc2u/react-native,lucyywang/react-native,rantianhua/react-native,cdlewis/react-native,Esdeath/react-native,alantrrs/react-native,sahat/react-native,NishanthShankar/react-native,yzarubin/react-native,code0100fun/react-native,martinbigio/react-native,doochik/react-native,jeffchienzabinet/react-native,bright-sparks/react-native,brentvatne/react-native,YComputer/react-native,jhen0409/react-native,eliagrady/react-native,folist/react-native,dubert/react-native,aifeld/react-native,Flickster42490/react-native,bistacos/react-native,billhello/react-native,vjeux/react-native,wesley1001/react-native,ldehai/react-native,farazs/react-native,Ehesp/react-native,lightsofapollo/react-native,ipmobiletech/react-native,tgoldenberg/react-native,MattFoley/react-native,andrewljohnson/react-native,alvarojoao/react-native,mihaigiurgeanu/react-native,yiminghe/react-native,gabrielbellamy/react-native,pvinis/react-native-desktop,ldehai/react-native,hzgnpu/react-native,sitexa/react-native,lucyywang/react-native,jackalchen/react-native,mozillo/react-native,chetstone/react-native,rwwarren/react-native,darrylblake/react-native,sekouperry/react-native,esauter5/react-native,MetSystem/react-native,yjh0502/react-native,sonnylazuardi/react-native,hike2008/react-native,InterfaceInc/react-native,ludaye123/react-native,qq644531343/react-native,Andreyco/react-native,tadeuzagallo/react-native,hike2008/react-native,chapinkapa/react-native,adamkrell/react-native,lstNull/react-native,hharnisc/react-native,hoastoolshop/react-native,HealthyWealthy/react-native,philikon/react-native,janicduplessis/react-native,jaggs6/react-native,zhangwei001/react-native,mtford90/react-native,daveenguyen/react-native,mihaigiurgeanu/react-native,sahrens/react-native,CntChen/react-native,ide/react-native,noif/react-native,popovsh6/react-native,Furzikov/react-native,peterp/react-native,Shopify/react-native,guanghuili/react-native,JasonZ321/react-native,imjerrybao/react-native,yangshangde/react-native,cosmith/react-native,woshili1/react-native,liuhong1happy/react-native,yjyi/react-native,tarkus/react-native-appletv,bowlofstew/react-native,milieu/react-native,1988fei/react-native,gilesvangruisen/react-native,exponent/react-native,rkumar3147/react-native,chapinkapa/react-native,alin23/react-native,liufeigit/react-native,YComputer/react-native,hike2008/react-native,hharnisc/react-native,frantic/react-native,huip/react-native,krock01/react-native,liufeigit/react-native,ivanph/react-native,wangcan2014/react-native,ivanph/react-native,foghina/react-native,ramoslin02/react-native,sudhirj/react-native,adamkrell/react-native,IveWong/react-native,milieu/react-native,manhvvhtth/react-native,ehd/react-native,pickhardt/react-native,wangyzyoga/react-native,nickhudkins/react-native,tadeuzagallo/react-native,ljhsai/react-native,cdlewis/react-native,nickhargreaves/react-native,cpunion/react-native,stan229/react-native,pickhardt/react-native,neeraj-singh/react-native,jaredly/react-native,wdxgtsh/react-native,ptmt/react-native-macos,apprennet/react-native,spyrx7/react-native,qingfeng/react-native,MonirAbuHilal/react-native,dralletje/react-native,Srikanth4/react-native,bestwpw/react-native,brentvatne/react-native,qingsong-xu/react-native,WilliamRen/react-native,rainkong/react-native,dabit3/react-native,nathanajah/react-native,ronak301/react-native,fish24k/react-native,rebeccahughes/react-native,hayeah/react-native,dut3062796s/react-native,quuack/react-native,bradbumbalough/react-native,donyu/react-native,PhilippKrone/react-native,JulienThibeaut/react-native,manhvvhtth/react-native,RGKzhanglei/react-native,bowlofstew/react-native,mcrooks88/react-native,jasonnoahchoi/react-native,ldehai/react-native,magnus-bergman/react-native,kotdark/react-native,emodeqidao/react-native,lstNull/react-native,FionaWong/react-native,androidgilbert/react-native,mihaigiurgeanu/react-native,YotrolZ/react-native,marlonandrade/react-native,Jericho25/react-native,jmhdez/react-native,sahrens/react-native,oren/react-native,aroth/react-native,Srikanth4/react-native,naoufal/react-native,salanki/react-native,nickhudkins/react-native,jasonnoahchoi/react-native,nickhudkins/react-native,chsj1/react-native,hengcj/react-native,mchinyakov/react-native,tadeuzagallo/react-native,spyrx7/react-native,ehd/react-native,affinityis/react-native,slongwang/react-native,unknownexception/react-native,rickbeerendonk/react-native,PhilippKrone/react-native,facebook/react-native,hwsyy/react-native,chsj1/react-native,chirag04/react-native,21451061/react-native,quuack/react-native,naoufal/react-native,jhen0409/react-native,bradbumbalough/react-native,adrie4mac/react-native,Hkmu/react-native,21451061/react-native,patoroco/react-native,threepointone/react-native-1,miracle2k/react-native,irisli/react-native,chengky/react-native,cez213/react-native,Rowandjj/react-native,ipmobiletech/react-native,hesling/react-native,elliottsj/react-native,JasonZ321/react-native,rebeccahughes/react-native,nsimmons/react-native,brentvatne/react-native,PlexChat/react-native,goodheart/react-native,rushidesai/react-native,jekey/react-native,bistacos/react-native,YinshawnRao/react-native,nbcnews/react-native,HSFGitHub/react-native,dubert/react-native,eduvon0220/react-native,pglotov/react-native,xinthink/react-native,wildKids/react-native,bistacos/react-native,aaron-goshine/react-native,iodine/react-native,cmhsu/react-native,gre/react-native,futbalguy/react-native,yjh0502/react-native,KJlmfe/react-native,rxb/react-native,Jericho25/react-native,narlian/react-native,IveWong/react-native,ptmt/react-native-macos,chenbk85/react-native,supercocoa/react-native,wustxing/react-native,yiminghe/react-native,liufeigit/react-native,esauter5/react-native,zvona/react-native,jekey/react-native,skevy/react-native,simple88/react-native,spyrx7/react-native,billhello/react-native,mukesh-kumar1905/react-native,liduanw/react-native,mcanthony/react-native,gauribhoite/react-native,nathanajah/react-native,YueRuo/react-native,enaqx/react-native,zenlambda/react-native,dabit3/react-native,milieu/react-native,aziz-boudi4/react-native,csatf/react-native,strwind/react-native,alantrrs/react-native,Jonekee/react-native,adamkrell/react-native,ide/react-native,thotegowda/react-native,darrylblake/react-native,Flickster42490/react-native,eliagrady/react-native,abdelouahabb/react-native,steveleec/react-native,dralletje/react-native,makadaw/react-native,Tredsite/react-native,dylanchann/react-native,srounce/react-native,Shopify/react-native,mjetek/react-native,rollokb/react-native,facebook/react-native,garrows/react-native,kfiroo/react-native,bogdantmm92/react-native,adamjmcgrath/react-native,mozillo/react-native,affinityis/react-native,lelandrichardson/react-native,sonnylazuardi/react-native,pandiaraj44/react-native,doochik/react-native,htc2u/react-native,wdxgtsh/react-native,gabrielbellamy/react-native,DanielMSchmidt/react-native,imjerrybao/react-native,ndejesus1227/react-native,DenisIzmaylov/react-native,arthuralee/react-native,tahnok/react-native,ljhsai/react-native,clozr/react-native,Lohit9/react-native,genome21/react-native,sekouperry/react-native,BossKing/react-native,nickhargreaves/react-native,noif/react-native,exponent/react-native,christopherdro/react-native,evilemon/react-native,vlrchtlt/react-native,tsjing/react-native,yamill/react-native,aaron-goshine/react-native,hengcj/react-native,NZAOM/react-native,timfpark/react-native,hanxiaofei/react-native,rxb/react-native,kujohn/react-native,MonirAbuHilal/react-native,wangziqiang/react-native,alin23/react-native,Lohit9/react-native,pengleelove/react-native,YotrolZ/react-native,rkumar3147/react-native,forcedotcom/react-native,johnv315/react-native,nevir/react-native,xxccll/react-native,yjyi/react-native,wlrhnh-David/react-native,christer155/react-native,frantic/react-native,chentsulin/react-native,lee-my/react-native,alvarojoao/react-native,pj4533/react-native,DannyvanderJagt/react-native,kfiroo/react-native,DannyvanderJagt/react-native,jasonals/react-native,zhangxq5012/react-native,prathamesh-sonpatki/react-native,hike2008/react-native,happypancake/react-native,alantrrs/react-native,nsimmons/react-native,vincentqiu/react-native,mway08/react-native,ultralame/react-native,hassanabidpk/react-native,MattFoley/react-native,noif/react-native,mrngoitall/react-native,ouyangwenfeng/react-native,quuack/react-native,pandiaraj44/react-native,goodheart/react-native,christopherdro/react-native,liangmingjie/react-native,liuhong1happy/react-native,Applied-Duality/react-native,mukesh-kumar1905/react-native,shrimpy/react-native,chnfeeeeeef/react-native,affinityis/react-native,chenbk85/react-native,catalinmiron/react-native,mihaigiurgeanu/react-native,fengshao0907/react-native,hike2008/react-native,gitim/react-native,rebeccahughes/react-native,jackalchen/react-native,yushiwo/react-native,jeffchienzabinet/react-native,Maxwell2022/react-native,tgriesser/react-native,vincentqiu/react-native,kamronbatman/react-native,spicyj/react-native,waynett/react-native,browniefed/react-native,hassanabidpk/react-native,pandiaraj44/react-native,dalinaum/react-native,vlrchtlt/react-native,kentaromiura/react-native,pj4533/react-native,dubert/react-native,bradbumbalough/react-native,rushidesai/react-native,DannyvanderJagt/react-native,andersryanc/react-native,hydraulic/react-native,forcedotcom/react-native,yjyi/react-native,krock01/react-native,mrngoitall/react-native,evansolomon/react-native,wangyzyoga/react-native,luqin/react-native,gs-akhan/react-native,skevy/react-native,mtford90/react-native,Applied-Duality/react-native,ptomasroos/react-native,lstNull/react-native,fw1121/react-native,srounce/react-native,josebalius/react-native,vlrchtlt/react-native,rickbeerendonk/react-native,edward/react-native,jasonnoahchoi/react-native,chetstone/react-native,jekey/react-native,kundanjadhav/react-native,dikaiosune/react-native,MattFoley/react-native,yamill/react-native,pengleelove/react-native,urvashi01/react-native,dikaiosune/react-native,magnus-bergman/react-native,gegaosong/react-native,alvarojoao/react-native,shadow000902/react-native,cdlewis/react-native,wustxing/react-native,yangchengwork/react-native,yimouleng/react-native,shrutic123/react-native,Rowandjj/react-native,krock01/react-native,rickbeerendonk/react-native,nbcnews/react-native,JulienThibeaut/react-native,ljhsai/react-native,sonnylazuardi/react-native,xiayz/react-native,PhilippKrone/react-native,nbcnews/react-native,nsimmons/react-native,lgengsy/react-native,zdsiyan/react-native,peterp/react-native,pickhardt/react-native,tsdl2013/react-native,Livyli/react-native,ptmt/react-native-macos,Jericho25/react-native,NishanthShankar/react-native,Intellicode/react-native,sunblaze/react-native,liangmingjie/react-native,exponentjs/react-native,rickbeerendonk/react-native,liangmingjie/react-native,nbcnews/react-native,xiayz/react-native,hanxiaofei/react-native,andersryanc/react-native,geoffreyfloyd/react-native,hassanabidpk/react-native,mrspeaker/react-native,wlrhnh-David/react-native,jekey/react-native,spicyj/react-native,formatlos/react-native,dut3062796s/react-native,mchinyakov/react-native,lee-my/react-native,dvcrn/react-native,jevakallio/react-native,strwind/react-native,mironiasty/react-native,timfpark/react-native,jevakallio/react-native,thstarshine/react-native,orenklein/react-native,a2/react-native,huangsongyan/react-native,ModusCreateOrg/react-native,rainkong/react-native,myntra/react-native,forcedotcom/react-native,liufeigit/react-native,trueblue2704/react-native,liangmingjie/react-native,qingfeng/react-native,cez213/react-native,huip/react-native,Jonekee/react-native,puf/react-native,corbt/react-native,machard/react-native,jibonpab/react-native,chapinkapa/react-native,genome21/react-native,chentsulin/react-native,taydakov/react-native,jadbox/react-native,tszajna0/react-native,Esdeath/react-native,chnfeeeeeef/react-native,clozr/react-native,imjerrybao/react-native,shadow000902/react-native,thstarshine/react-native,androidgilbert/react-native,common2015/react-native,1988fei/react-native,lightsofapollo/react-native,johnv315/react-native,shrutic123/react-native,chapinkapa/react-native,averted/react-native,Poplava/react-native,guanghuili/react-native,bright-sparks/react-native,BossKing/react-native,clooth/react-native,WilliamRen/react-native,dimoge/react-native,pitatensai/react-native,bimawa/react-native,kundanjadhav/react-native,Iragne/react-native,wangjiangwen/react-native,mqli/react-native,almost/react-native,jibonpab/react-native,NunoEdgarGub1/react-native,folist/react-native,Shopify/react-native,ultralame/react-native,Hkmu/react-native,ivanph/react-native,Bronts/react-native,YinshawnRao/react-native,rickbeerendonk/react-native,sudhirj/react-native,kamronbatman/react-native,zenlambda/react-native,MetSystem/react-native,hesling/react-native,foghina/react-native,myntra/react-native,hesling/react-native,sahat/react-native,jackeychens/react-native,ortutay/react-native,nevir/react-native,almost/react-native,dut3062796s/react-native,pcottle/react-native,bestwpw/react-native,soxunyi/react-native,steben/react-native,Iragne/react-native,shinate/react-native,woshili1/react-native,exponentjs/react-native,neeraj-singh/react-native,csudanthi/react-native,mjetek/react-native,urvashi01/react-native,ChristopherSalam/react-native,DerayGa/react-native,chetstone/react-native,satya164/react-native,strwind/react-native,F2EVarMan/react-native,gitim/react-native,gpbl/react-native,edward/react-native,adamkrell/react-native,pitatensai/react-native,hzgnpu/react-native,YComputer/react-native,mqli/react-native,wangyzyoga/react-native,zyvas/react-native,krock01/react-native,tmwoodson/react-native,shinate/react-native,jadbox/react-native,tsdl2013/react-native,lucyywang/react-native,xinthink/react-native,yutail/react-native,woshili1/react-native,emodeqidao/react-native,wesley1001/react-native,satya164/react-native,tsdl2013/react-native,timfpark/react-native,almost/react-native,Loke155/react-native,waynett/react-native,eddiemonge/react-native,brentvatne/react-native,rodneyss/react-native,johnv315/react-native,lee-my/react-native,ktoh/react-native,sitexa/react-native,programming086/react-native,huangsongyan/react-native,xxccll/react-native,lwansbrough/react-native,patoroco/react-native,garrows/react-native,srounce/react-native,bistacos/react-native,spicyj/react-native,quyixia/react-native,gilesvangruisen/react-native,rodneyss/react-native,sudhirj/react-native,callstack-io/react-native,futbalguy/react-native,bestwpw/react-native,IveWong/react-native,hike2008/react-native,bradens/react-native,hanxiaofei/react-native,jevakallio/react-native,christer155/react-native,oren/react-native,steben/react-native,dvcrn/react-native,jeanblanchard/react-native,jadbox/react-native,mariusbutuc/react-native,rkumar3147/react-native,gre/react-native,Lucifer-Kim/react-native,threepointone/react-native-1,dikaiosune/react-native,glovebx/react-native,androidgilbert/react-native,pglotov/react-native,roth1002/react-native,Loke155/react-native,dvcrn/react-native,shinate/react-native,jasonnoahchoi/react-native,donyu/react-native,YueRuo/react-native,yusefnapora/react-native,shinate/react-native,udnisap/react-native,jordanbyron/react-native,yjh0502/react-native,xxccll/react-native,pcottle/react-native,bistacos/react-native,nevir/react-native,heyjim89/react-native,tmwoodson/react-native,arbesfeld/react-native,javache/react-native,naoufal/react-native,lee-my/react-native,cpunion/react-native,nickhargreaves/react-native,liubko/react-native,slongwang/react-native,xiaoking/react-native,doochik/react-native,dylanchann/react-native,Reparadocs/react-native,corbt/react-native,RGKzhanglei/react-native,geoffreyfloyd/react-native,myntra/react-native,InterfaceInc/react-native,ipmobiletech/react-native,TChengZ/react-native,zyvas/react-native,pickhardt/react-native,fengshao0907/react-native,facebook/react-native,sixtomay/react-native,ptmt/react-native-macos,ldehai/react-native,trueblue2704/react-native,wangyzyoga/react-native,yjyi/react-native,pandiaraj44/react-native,lstNull/react-native,catalinmiron/react-native,tsjing/react-native,ProjectSeptemberInc/react-native,CntChen/react-native,Tredsite/react-native,lwansbrough/react-native,JulienThibeaut/react-native,rwwarren/react-native,exponent/react-native,shlomiatar/react-native,yushiwo/react-native,pallyoung/react-native,Bronts/react-native,yutail/react-native,CntChen/react-native,edward/react-native,leegilon/react-native,jaredly/react-native,ankitsinghania94/react-native,zuolangguo/react-native,gs-akhan/react-native,garydonovan/react-native,F2EVarMan/react-native,michaelchucoder/react-native,enaqx/react-native,YinshawnRao/react-native,Purii/react-native,tahnok/react-native,almost/react-native,jibonpab/react-native,DanielMSchmidt/react-native,huangsongyan/react-native,fish24k/react-native,pitatensai/react-native,jaggs6/react-native,peterp/react-native,codejet/react-native,qingsong-xu/react-native,booxood/react-native,Wingie/react-native,lendup/react-native,nevir/react-native,patoroco/react-native,CntChen/react-native,salanki/react-native,mrngoitall/react-native,aaron-goshine/react-native,quyixia/react-native,tadeuzagallo/react-native,shrimpy/react-native,josebalius/react-native,liduanw/react-native,wjb12/react-native,jaredly/react-native,soxunyi/react-native,geoffreyfloyd/react-native,gs-akhan/react-native,devknoll/react-native,Bhullnatik/react-native,codejet/react-native,rollokb/react-native,liuzechen/react-native,aljs/react-native,skevy/react-native,rkumar3147/react-native,sonnylazuardi/react-native,lwansbrough/react-native,philonpang/react-native,MonirAbuHilal/react-native,mozillo/react-native,garrows/react-native,yiminghe/react-native,ptomasroos/react-native,shinate/react-native,yzarubin/react-native,CodeLinkIO/react-native,exponentjs/react-native,wjb12/react-native,ChristianHersevoort/react-native,farazs/react-native,Inner89/react-native,sghiassy/react-native,clozr/react-native,exponentjs/react-native,Serfenia/react-native,salanki/react-native,cdlewis/react-native,corbt/react-native,F2EVarMan/react-native,ortutay/react-native,rantianhua/react-native,myntra/react-native,richardgill/react-native,programming086/react-native,hanxiaofei/react-native,wangyzyoga/react-native,luqin/react-native,shrutic123/react-native,Shopify/react-native,andrewljohnson/react-native,browniefed/react-native,Iragne/react-native,exponentjs/rex,hesling/react-native,sarvex/react-native,hwsyy/react-native,bimawa/react-native,arbesfeld/react-native,chiefr/react-native,philikon/react-native,JackLeeMing/react-native,BretJohnson/react-native,mrspeaker/react-native,chiefr/react-native,machard/react-native,Rowandjj/react-native,CntChen/react-native,salanki/react-native,Maxwell2022/react-native,nsimmons/react-native,ide/react-native,alpz5566/react-native,JulienThibeaut/react-native,daveenguyen/react-native,leeyeh/react-native,mcanthony/react-native,nbcnews/react-native,FionaWong/react-native,jasonnoahchoi/react-native,rkumar3147/react-native,Loke155/react-native,yangchengwork/react-native,yamill/react-native,exponentjs/react-native,dalinaum/react-native,neeraj-singh/react-native,dalinaum/react-native,mcanthony/react-native,CodeLinkIO/react-native,hayeah/react-native,mcanthony/react-native,wenpkpk/react-native,hzgnpu/react-native,adamjmcgrath/react-native,tadeuzagallo/react-native,Bronts/react-native,jhen0409/react-native,negativetwelve/react-native,codejet/react-native,rxb/react-native,formatlos/react-native,wenpkpk/react-native,sudhirj/react-native,Livyli/react-native,jmhdez/react-native,jaredly/react-native,affinityis/react-native,ludaye123/react-native,Furzikov/react-native,janicduplessis/react-native,jabinwang/react-native,PhilippKrone/react-native,common2015/react-native,pickhardt/react-native,spicyj/react-native,ChristopherSalam/react-native,lokilandon/react-native,nsimmons/react-native,madusankapremaratne/react-native,taydakov/react-native,qq644531343/react-native,pgavazzi/react-unity,gitim/react-native,jackalchen/react-native,andersryanc/react-native,simple88/react-native,ludaye123/react-native,pletcher/react-native,Poplava/react-native,yzarubin/react-native,Lohit9/react-native,jmstout/react-native,alpz5566/react-native,1988fei/react-native,alvarojoao/react-native,Maxwell2022/react-native,yushiwo/react-native,lgengsy/react-native,pjcabrera/react-native,ktoh/react-native,adamjmcgrath/react-native,zvona/react-native,sonnylazuardi/react-native,liangmingjie/react-native,jeffchienzabinet/react-native,shlomiatar/react-native,genome21/react-native,eduvon0220/react-native,aljs/react-native,browniefed/react-native,ajwhite/react-native,nathanajah/react-native,wesley1001/react-native,adamkrell/react-native,tgoldenberg/react-native,imDangerous/react-native,bsansouci/react-native,foghina/react-native,Reparadocs/react-native,imWildCat/react-native,corbt/react-native,gilesvangruisen/react-native,booxood/react-native,philonpang/react-native,ouyangwenfeng/react-native,lprhodes/react-native,NZAOM/react-native,tszajna0/react-native,nickhudkins/react-native,roth1002/react-native,trueblue2704/react-native,bowlofstew/react-native,yjh0502/react-native,yutail/react-native,chapinkapa/react-native,hharnisc/react-native,puf/react-native,YComputer/react-native,Applied-Duality/react-native,gpbl/react-native,ivanph/react-native,pvinis/react-native-desktop,neeraj-singh/react-native,yangchengwork/react-native,jonesgithub/react-native,rainkong/react-native,NunoEdgarGub1/react-native,nickhargreaves/react-native,vlrchtlt/react-native,csatf/react-native,simple88/react-native,Swaagie/react-native,enaqx/react-native,Swaagie/react-native,dizlexik/react-native,negativetwelve/react-native,mukesh-kumar1905/react-native,eduardinni/react-native,Reparadocs/react-native,rickbeerendonk/react-native,xxccll/react-native,hayeah/react-native,Guardiannw/react-native,sudhirj/react-native,Inner89/react-native,jackeychens/react-native,pengleelove/react-native,nickhudkins/react-native,johnv315/react-native,lendup/react-native,TChengZ/react-native,kujohn/react-native,pletcher/react-native,fish24k/react-native,htc2u/react-native,apprennet/react-native,hengcj/react-native,satya164/react-native,Loke155/react-native,orenklein/react-native,tahnok/react-native,leeyeh/react-native,ide/react-native,evansolomon/react-native,abdelouahabb/react-native,dizlexik/react-native,facebook/react-native,bestwpw/react-native,bogdantmm92/react-native,aifeld/react-native,bouk/react-native,bsansouci/react-native,gegaosong/react-native,gitim/react-native,NZAOM/react-native,vlrchtlt/react-native,yiminghe/react-native,mway08/react-native,charlesvinette/react-native,Flickster42490/react-native,chrisbutcher/react-native,harrykiselev/react-native,philikon/react-native,ivanph/react-native,marlonandrade/react-native,srounce/react-native,myntra/react-native,quuack/react-native,thotegowda/react-native,rushidesai/react-native,zuolangguo/react-native,zhaosichao/react-native,rwwarren/react-native,Poplava/react-native,sonnylazuardi/react-native,beni55/react-native,lendup/react-native,Jonekee/react-native,javache/react-native,tgoldenberg/react-native,sixtomay/react-native,gauribhoite/react-native,bright-sparks/react-native,rodneyss/react-native,ide/react-native,jabinwang/react-native,sixtomay/react-native,simple88/react-native,shrutic123/react-native,HSFGitHub/react-native,luqin/react-native,shrutic123/react-native,YinshawnRao/react-native,johnv315/react-native,beni55/react-native,Guardiannw/react-native,ludaye123/react-native,lokilandon/react-native,jevakallio/react-native,skatpgusskat/react-native,strwind/react-native,salanki/react-native,catalinmiron/react-native,jmhdez/react-native,dfala/react-native,JoeStanton/react-native,bradens/react-native,Guardiannw/react-native,hharnisc/react-native,NZAOM/react-native,PlexChat/react-native,Serfenia/react-native,frantic/react-native,Serfenia/react-native,imDangerous/react-native,Serfenia/react-native,lstNull/react-native,harrykiselev/react-native,spyrx7/react-native,j27cai/react-native,stan229/react-native,CodeLinkIO/react-native,alpz5566/react-native,peterp/react-native,mukesh-kumar1905/react-native,clooth/react-native,arbesfeld/react-native,miracle2k/react-native,Guardiannw/react-native,liufeigit/react-native,sheep902/react-native
--- +++ @@ -34,7 +34,12 @@ ws.on('message', function(message) { allClientsExcept(ws).forEach(function(cn) { - cn.send(message); + try { + // Sometimes this call throws 'not opened' + cn.send(message); + } catch(e) { + console.warn('WARN: ' + e.message); + } }); }); });
5b02710c63cb4bf86af8bbc61c0c18113a8ef5ec
config/protractor.conf.js
config/protractor.conf.js
/** * @author: @AngularClass */ require('ts-node/register'); var helpers = require('./helpers'); exports.config = { baseUrl: 'http://localhost:3000/', // use `npm run e2e` specs: [ helpers.root('src/**/**.e2e.ts'), helpers.root('src/**/*.e2e.ts') ], exclude: [], framework: 'jasmine2', allScriptsTimeout: 110000, jasmineNodeOpts: { showTiming: true, showColors: true, isVerbose: false, includeStackTrace: false, defaultTimeoutInterval: 400000 }, directConnect: true, capabilities: { 'browserName': 'chrome', 'chromeOptions': { 'args': ['show-fps-counter=true'] } }, onPrepare: function() { browser.ignoreSynchronization = true; }, /** * Angular 2 configuration * * useAllAngular2AppRoots: tells Protractor to wait for any angular2 apps on the page instead of just the one matching * `rootEl` */ useAllAngular2AppRoots: true };
/** * @author: @AngularClass */ require('ts-node/register'); var helpers = require('./helpers'); exports.config = { baseUrl: 'http://localhost:8080/', // use `npm run e2e` specs: [ helpers.root('src/**/**.e2e.ts'), helpers.root('src/**/*.e2e.ts') ], exclude: [], framework: 'jasmine2', allScriptsTimeout: 110000, jasmineNodeOpts: { showTiming: true, showColors: true, isVerbose: false, includeStackTrace: false, defaultTimeoutInterval: 400000 }, directConnect: true, capabilities: { 'browserName': 'chrome', 'chromeOptions': { 'args': ['show-fps-counter=true'] } }, onPrepare: function() { browser.ignoreSynchronization = true; }, /** * Angular 2 configuration * * useAllAngular2AppRoots: tells Protractor to wait for any angular2 apps on the page instead of just the one matching * `rootEl` */ useAllAngular2AppRoots: true };
Set protractor host to 8080 instead of 3000.
Set protractor host to 8080 instead of 3000.
JavaScript
mit
sebastianhaas/medical-appointment-scheduling,sebastianhaas/medical-appointment-scheduling,sebastianhaas/medical-appointment-scheduling,sebastianhaas/medical-appointment-scheduling
--- +++ @@ -6,7 +6,7 @@ var helpers = require('./helpers'); exports.config = { - baseUrl: 'http://localhost:3000/', + baseUrl: 'http://localhost:8080/', // use `npm run e2e` specs: [
e95ac0b22ab7ea7e9911d79587869112465467f4
lib/bowerPackageURL.js
lib/bowerPackageURL.js
/** * @module bowerPackageURL * @author Matthew Hasbach * @copyright Matthew Hasbach 2015 * @license MIT */ /** * The bowerPackageURL callback * @callback bowerPackageURLCallback * @param {Object} err - An error object if an error occurred * @param {string} url - The repository URL associated with the provided bower package name */ /** * Get the repository URL associated with a bower package name * @alias module:bowerPackageURL * @param {string} packageName - A bower package name * @param {bowerPackageURLCallback} cb - A callback to be executed after the repository URL is collected * @example bowerPackageURL('lodash', function(err, url) { if (err) { console.error(err); } console.log(url); }); */ function bowerPackageURL(packageName, cb) { if (typeof cb !== 'function') { throw new TypeError('cb must be a function'); } if (typeof packageName !== 'string') { cb(new TypeError('packageName must be a string')); return; } http.get('https://bower.herokuapp.com/packages/' + packageName) .end(function(err, res) { cb(err, res.body.url); }); }
/** * @module bowerPackageURL * @author Matthew Hasbach * @copyright Matthew Hasbach 2015 * @license MIT */ /** * The bowerPackageURL callback * @callback bowerPackageURLCallback * @param {Object} err - An error object if an error occurred * @param {string} url - The repository URL associated with the provided bower package name */ /** * Get the repository URL associated with a bower package name * @alias module:bowerPackageURL * @param {string} packageName - A bower package name * @param {bowerPackageURLCallback} cb - A callback to be executed after the repository URL is collected * @example bowerPackageURL('lodash', function(err, url) { if (err) { console.error(err); } console.log(url); }); */ function bowerPackageURL(packageName, cb) { if (typeof cb !== 'function') { throw new TypeError('cb must be a function'); } if (typeof packageName !== 'string') { cb(new TypeError('packageName must be a string')); return; } http.get('https://bower.herokuapp.com/packages/' + packageName) .end(function(err, res) { if (err && err.status === 404) { err = new Error('Package ' + packageName + ' not found on Bower'); } cb(err, res.body.url); }); }
Call back a simpler Error object if a package was not found on Bower
Call back a simpler Error object if a package was not found on Bower
JavaScript
mit
mjhasbach/bower-package-url
--- +++ @@ -34,6 +34,10 @@ http.get('https://bower.herokuapp.com/packages/' + packageName) .end(function(err, res) { + if (err && err.status === 404) { + err = new Error('Package ' + packageName + ' not found on Bower'); + } + cb(err, res.body.url); }); }
ce0083e48b19bb661637999ae2596897f80fa719
lib/capture.js
lib/capture.js
var page = require('webpage').create(); var system = require('system'); var args = system.args; var url = args[1]; var imagePath = args[2]; var attempt = 0; function widgetsReady() { return document.querySelector('.widget') !== null && document.querySelectorAll('.widget.loading').length === 0; } function loop() { if (attempt >= 10000) { console.error('Took too long to open page'); phantom.exit(1); } var ready = page.evaluate(widgetsReady); if (ready) { // Give things a second to settle down setTimeout(function () { page.render(imagePath); phantom.exit(0); }, 2e3) } else { attempt++; setTimeout(loop, 10); } } page.open(url, loop);
var page = require('webpage').create(); var system = require('system'); var args = system.args; var url = args[1]; var imagePath = args[2]; var attempt = 0; function widgetsReady() { return document.querySelector('.widget') !== null && document.querySelectorAll('.widget.loading').length === 0; } function loop() { if (attempt >= 10000) { console.error('Took too long to open page'); phantom.exit(1); } var ready = page.evaluate(widgetsReady); if (ready) { // Give things a second to settle down setTimeout(function () { page.render(imagePath); phantom.exit(0); }, 3e3) } else { attempt++; setTimeout(loop, 10); } } page.open(url, loop);
Increase the grace period after load, because highcharts is a complete bastard
Increase the grace period after load, because highcharts is a complete bastard
JavaScript
mit
geckoboard/diffy
--- +++ @@ -21,7 +21,7 @@ setTimeout(function () { page.render(imagePath); phantom.exit(0); - }, 2e3) + }, 3e3) } else { attempt++; setTimeout(loop, 10);
5269d3c08d97c03c37f83617daba3eaf238e96b4
react-client/src/components/Bookmarks.js
react-client/src/components/Bookmarks.js
import React from 'react'; import ReactDOM from 'react-dom'; import { Link, withRouter } from 'react-router'; import $ from 'jquery'; class Bookmarks extends React.Component { constructor(props) { super(props); this.state = { bookmarks: [] } } getBookmarks() { let self = this; $.get({ url: '/allBookmarks', success: (data) => { console.log(data, data[0].title) self.setState({bookmarks: data}) }, error: (error) => { console.error('error in get bookmarks', error); $('.error').show(); }, }); } componentWillMount() { this.getBookmarks(); } render() { let self = this; return ( <div> <h1>Your Bookmarks!</h1> <ul> { self.state.bookmarks.map(function(bookmark) { return ( <li className="bookmark"> <div className="bookmarkTitle">{bookmark.title}</div> <div className="bookmarkParagraph">{bookmark.paragraph}</div> </li> ) }) } </ul> <Link to="/dashboard"><button>Back</button></Link> </div> ) } } export default withRouter(Bookmarks, { withRef: true });
import React from 'react'; import ReactDOM from 'react-dom'; import { Link, withRouter } from 'react-router'; import $ from 'jquery'; class Bookmarks extends React.Component { constructor(props) { super(props); this.state = { bookmarks: [] } } getUserBookmarks() { let self = this; $.get({ url: '/allBookmarks', success: (data) => { console.log(data, data[0].title) self.setState({bookmarks: data}) }, error: (error) => { console.error('error in get bookmarks', error); $('.error').show(); }, }); } componentWillMount() { this.getUserBookmarks(); } render() { let self = this; return ( <div> <h1>Your Bookmarks!</h1> <ul> { self.state.bookmarks.map(function(bookmark) { return ( <li className="bookmark"> <div className="bookmarkTitle">{bookmark.title}</div> <div className="bookmarkParagraph">{bookmark.paragraph}</div> </li> ) }) } </ul> <Link to="/dashboard"><button>Back</button></Link> </div> ) } } export default withRouter(Bookmarks, { withRef: true });
Fix function name for clarity
Fix function name for clarity
JavaScript
mit
francoabaroa/escape-reality,lowtalkers/escape-reality,francoabaroa/escape-reality,lowtalkers/escape-reality
--- +++ @@ -11,7 +11,7 @@ } } - getBookmarks() { + getUserBookmarks() { let self = this; $.get({ url: '/allBookmarks', @@ -27,7 +27,7 @@ } componentWillMount() { - this.getBookmarks(); + this.getUserBookmarks(); } render() {
c74d6cc74e697493f1c71552f9ef143ac6e5f96c
server/s3_client.js
server/s3_client.js
var fs = require('fs'); var AWS = require('aws-sdk'); module.exports = function createS3Client() { const awsConfig = (process.env.NODE_ENV === 'development') ? JSON.parse(fs.readFileSync('./tmp/aws_message_popup.json')) : { accessKeyId: process.env.MESSAGE_POPUP_S3_ACCESS_KEY_ID, secretAccessKey: process.env.MESSAGE_POPUP_S3_SECRET_ACCESS_KEY, region: process.env.MESSAGE_POPUP_S3_REGION, bucket: process.env.MESSAGE_POPUP_S3_BUCKET }; return new AWS.S3(awsConfig); }
var fs = require('fs'); var AWS = require('aws-sdk'); module.exports = function createS3Client() { const awsConfig = (process.env.NODE_ENV === 'development') ? JSON.parse(fs.readFileSync('./tmp/aws_message_popup.json')) : JSON.parse(process.env.MESSAGE_POPUP_S3_CONFIG_JSON); return new AWS.S3(awsConfig); }
Read AWS credentials for audio as single env var
Read AWS credentials for audio as single env var
JavaScript
mit
kesiena115/threeflows,mit-teaching-systems-lab/threeflows,mit-teaching-systems-lab/threeflows,kesiena115/threeflows,kesiena115/threeflows,mit-teaching-systems-lab/threeflows,mit-teaching-systems-lab/threeflows
--- +++ @@ -4,11 +4,6 @@ module.exports = function createS3Client() { const awsConfig = (process.env.NODE_ENV === 'development') ? JSON.parse(fs.readFileSync('./tmp/aws_message_popup.json')) - : { - accessKeyId: process.env.MESSAGE_POPUP_S3_ACCESS_KEY_ID, - secretAccessKey: process.env.MESSAGE_POPUP_S3_SECRET_ACCESS_KEY, - region: process.env.MESSAGE_POPUP_S3_REGION, - bucket: process.env.MESSAGE_POPUP_S3_BUCKET - }; + : JSON.parse(process.env.MESSAGE_POPUP_S3_CONFIG_JSON); return new AWS.S3(awsConfig); }
2089937b11199521f112ce196e498e87db3474d5
components/taglib/TransformHelper/getComponentFiles.js
components/taglib/TransformHelper/getComponentFiles.js
var fs = require('fs'); var path = require('path'); function getComponentFiles(filename) { var ext = path.extname(filename); if (ext === '.js') { return null; } var nameNoExt = path.basename(filename, ext); var isEntry = 'index' === nameNoExt; var fileMatch = '('+nameNoExt.replace(/\./g, '\\.') + '\\.' + (isEntry ? '|' : '') + ')'; var styleMatch = new RegExp('^'+fileMatch+'style\\.\\w+$'); var componentMatch = new RegExp('^'+fileMatch+'component\\.\\w+$'); var splitComponentMatch = new RegExp('^'+fileMatch+'component-browser\\.\\w+$'); var dirname = path.dirname(filename); var foundFiles = { styles: [], file: null, browserFile: null }; var dirFiles = fs.readdirSync(dirname); dirFiles.sort(); for (let i=dirFiles.length - 1; i>=0; i--) { let file = dirFiles[i]; if (styleMatch.test(file)) { foundFiles.styles.push(file); } else if (splitComponentMatch.test(file)) { foundFiles.browserFile = file; } else if (componentMatch.test(file)) { foundFiles.file = file; } } return foundFiles; } module.exports = getComponentFiles;
'use strict'; var fs = require('fs'); var path = require('path'); function getComponentFiles(filename) { var ext = path.extname(filename); if (ext === '.js') { return null; } var nameNoExt = path.basename(filename, ext); var isEntry = 'index' === nameNoExt; var fileMatch = '('+nameNoExt.replace(/\./g, '\\.') + '\\.' + (isEntry ? '|' : '') + ')'; var styleMatch = new RegExp('^'+fileMatch+'style\\.\\w+$'); var componentMatch = new RegExp('^'+fileMatch+'component\\.\\w+$'); var splitComponentMatch = new RegExp('^'+fileMatch+'component-browser\\.\\w+$'); var dirname = path.dirname(filename); var foundFiles = { styles: [], file: null, browserFile: null }; var dirFiles = fs.readdirSync(dirname); dirFiles.sort(); for (let i=dirFiles.length - 1; i>=0; i--) { let file = dirFiles[i]; if (styleMatch.test(file)) { foundFiles.styles.push(file); } else if (splitComponentMatch.test(file)) { foundFiles.browserFile = file; } else if (componentMatch.test(file)) { foundFiles.file = file; } } return foundFiles; } module.exports = getComponentFiles;
Add use-strict to fix old versions of node.
Add use-strict to fix old versions of node.
JavaScript
mit
marko-js/marko,marko-js/marko
--- +++ @@ -1,3 +1,5 @@ +'use strict'; + var fs = require('fs'); var path = require('path');
56125a7c8375404d2ff355c11d70ab5146c291f4
lib/packages.js
lib/packages.js
var Q = require("q"); var _ = require("lodash"); var path = require("path"); var Packager = require("pkgm"); var pkg = require("../package.json"); var logger = require("./utils/logger")("packages"); var manager = new Packager({ 'engine': "codebox", 'version': pkg.version, 'folder': path.resolve(__dirname, "../packages"), 'lessInclude': path.resolve(__dirname, "../editor/resources/stylesheets/variables.less") }); var init = function() { var context = { rpc: require("./rpc"), socket: require("./socket"), logger: require("./utils/logger")("package") }; logger.log("Load and prepare packages ("+_.size(pkg.packageDependencies)+" dependencies)"); return Q() .then(function() { return manager.prepare(pkg.packageDependencies); }) .then(function() { return manager.runAll(context); }); }; module.exports = { init: init, manager: manager };
var Q = require("q"); var _ = require("lodash"); var path = require("path"); var Packager = require("pkgm"); var pkg = require("../package.json"); var logger = require("./utils/logger")("packages"); var manager = new Packager({ 'engine': "codebox", 'version': pkg.version, 'folder': path.resolve(__dirname, "../packages"), 'lessInclude': path.resolve(__dirname, "../editor/resources/stylesheets/variables.less") }); var init = function() { var context = { workspace: require("./workspace"), rpc: require("./rpc"), socket: require("./socket"), logger: require("./utils/logger")("package") }; logger.log("Load and prepare packages ("+_.size(pkg.packageDependencies)+" dependencies)"); return Q() .then(function() { return manager.prepare(pkg.packageDependencies); }) .then(function() { return manager.runAll(context); }); }; module.exports = { init: init, manager: manager };
Add workspace to codebox context
Add workspace to codebox context
JavaScript
apache-2.0
code-box/codebox,rodrigues-daniel/codebox,ronoaldo/codebox,Ckai1991/codebox,CodeboxIDE/codebox,indykish/codebox,nobutakaoshiro/codebox,fly19890211/codebox,LogeshEswar/codebox,blubrackets/codebox,blubrackets/codebox,kustomzone/codebox,quietdog/codebox,etopian/codebox,lcamilo15/codebox,listepo/codebox,quietdog/codebox,nobutakaoshiro/codebox,kustomzone/codebox,smallbal/codebox,Ckai1991/codebox,etopian/codebox,CodeboxIDE/codebox,fly19890211/codebox,ahmadassaf/Codebox,code-box/codebox,rajthilakmca/codebox,lcamilo15/codebox,smallbal/codebox,ronoaldo/codebox,rajthilakmca/codebox,rodrigues-daniel/codebox,indykish/codebox,LogeshEswar/codebox,listepo/codebox,ahmadassaf/Codebox
--- +++ @@ -15,6 +15,7 @@ var init = function() { var context = { + workspace: require("./workspace"), rpc: require("./rpc"), socket: require("./socket"), logger: require("./utils/logger")("package")
f1e243422f90de3f75a4acab06fc41423e8c6b06
lib/reporter.js
lib/reporter.js
const table = require('text-table') const chalk = require('chalk') class Reporter { report (results) { let output = '\n' let totalErrors = 0 let totalWarnings = 0 results.forEach((result) => { totalErrors += result.errorCount totalWarnings += result.warningCount output += chalk.underline(result.filePath) + '\n' output += table(result.messages.map((msg) => { return [ '', `${msg.line}:${msg.column}`, (msg.severity === 2) ? chalk.red(msg.ruleId) : chalk.yellow(msg.ruleId), msg.message ] })) output += '\n\n' }) if (totalErrors > 0 || totalWarnings > 0) { output += chalk.red.bold(`\u2716 errors: ${totalErrors}`) output += ' | ' output += chalk.yellow.bold(`warnings ${totalWarnings}`) console.log(output) process.exit(1) } } } module.exports = Reporter
const table = require('text-table') const chalk = require('chalk') class Reporter { report (results) { let output = '\n' let totalErrors = 0 let totalWarnings = 0 results.forEach((result) => { totalErrors += result.errorCount totalWarnings += result.warningCount output += chalk.underline(result.filePath) + '\n' output += table(result.messages.map((msg) => { return [ '', `${msg.line}:${msg.column}`, (msg.severity === 2) ? chalk.red(msg.ruleId) : chalk.yellow(msg.ruleId), msg.message ] })) output += '\n\n' }) if (totalErrors > 0 || totalWarnings > 0) { output += chalk.red.bold(`\u2716 errors: ${totalErrors}`) output += ' | ' output += chalk.yellow.bold(`warnings ${totalWarnings}`) console.log(output) process.exit(totalErrors > 0 ? 1 : 0) } } } module.exports = Reporter
Exit with code 0 if only warnings are present
Exit with code 0 if only warnings are present
JavaScript
mit
sourceboat/sass-lint-vue
--- +++ @@ -30,7 +30,7 @@ output += ' | ' output += chalk.yellow.bold(`warnings ${totalWarnings}`) console.log(output) - process.exit(1) + process.exit(totalErrors > 0 ? 1 : 0) } } }
c4335f69294c6ca940e80ca32050b096426b577a
src/index.js
src/index.js
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import { Provider } from 'react-redux' import store from './redux/store' import registerServiceWorker from './registerServiceWorker'; ReactDOM.render( <Provider store={store}> <App /> </Provider>, document.getElementById('root')); registerServiceWorker();
Set up Provider component for redux
Set up Provider component for redux
JavaScript
mit
cernanb/personal-chef-react-app,cernanb/personal-chef-react-app
--- +++ @@ -2,7 +2,12 @@ import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; +import { Provider } from 'react-redux' +import store from './redux/store' import registerServiceWorker from './registerServiceWorker'; -ReactDOM.render(<App />, document.getElementById('root')); +ReactDOM.render( +<Provider store={store}> + <App /> +</Provider>, document.getElementById('root')); registerServiceWorker();
8bdfbdbd885a435d1d659ee83134fc22a6742688
src/index.js
src/index.js
'use strict'; var EXPORTABLE_RESOURCES; EXPORTABLE_RESOURCES = { Request: './Request', APIError: './APIError', JWTSecuredRequest: './JWTSecuredRequest', Responsebuilder: './ResponseBuilder', SilvermineResponseBuilder: './SilvermineResponseBuilder', responseBuilderHandler: './responseBuilderHandler', JWTValidator: './JWTValidator', }; module.exports = { /** * This function provides a way of getting named classes and functions that * we export from our library without needing them to be required when the * file is loaded. If they were required when this file was loaded, then all * their dependencies would need to be found. If someone is not using one of * our classes (e.g. JWTSecuredRequest) they should not be required to pull * in (or themselves provide) its dependencies (e.g. jwt-simple). */ get: function(resourceName) { if (EXPORTABLE_RESOURCES[resourceName]) { return require(EXPORTABLE_RESOURCES[resourceName]); // eslint-disable-line global-require } throw new Error('No exportable resource by the name "' + resourceName + '"'); }, };
'use strict'; var EXPORTABLE_RESOURCES; EXPORTABLE_RESOURCES = { Request: './Request', APIError: './APIError', JWTSecuredRequest: './JWTSecuredRequest', ResponseBuilder: './ResponseBuilder', SilvermineResponseBuilder: './SilvermineResponseBuilder', responseBuilderHandler: './responseBuilderHandler', JWTValidator: './JWTValidator', }; module.exports = { /** * This function provides a way of getting named classes and functions that * we export from our library without needing them to be required when the * file is loaded. If they were required when this file was loaded, then all * their dependencies would need to be found. If someone is not using one of * our classes (e.g. JWTSecuredRequest) they should not be required to pull * in (or themselves provide) its dependencies (e.g. jwt-simple). */ get: function(resourceName) { if (EXPORTABLE_RESOURCES[resourceName]) { return require(EXPORTABLE_RESOURCES[resourceName]); // eslint-disable-line global-require } throw new Error('No exportable resource by the name "' + resourceName + '"'); }, };
Correct the capitalization on ResponseBuilder export
BREAKING: Correct the capitalization on ResponseBuilder export If you have been including `ResponseBuilder` using the export `Responsebuilder`, with this commit you will now need to include it using `ResponseBuilder`.
JavaScript
mit
silvermine/apigateway-utils
--- +++ @@ -6,7 +6,7 @@ Request: './Request', APIError: './APIError', JWTSecuredRequest: './JWTSecuredRequest', - Responsebuilder: './ResponseBuilder', + ResponseBuilder: './ResponseBuilder', SilvermineResponseBuilder: './SilvermineResponseBuilder', responseBuilderHandler: './responseBuilderHandler', JWTValidator: './JWTValidator',
052e14ad23fae1bead4565ee3adb103bb03b3832
src/index.js
src/index.js
import CardIOView from './CardIO.ios'; import * as constants from './constants'; export default CardIOView; export const CardIOConstants = constants;
import { NativeModules } from 'react-native'; const { BBBCardIO: { preload, } } = NativeModules; import CardIOView from './CardIO.ios'; import * as constants from './constants'; export default CardIOView; export const CardIOConstants = constants; export { preload, };
Add preload to js api
Add preload to js api
JavaScript
mit
BBB/react-native-card.io
--- +++ @@ -1,5 +1,10 @@ +import { NativeModules } from 'react-native'; + +const { BBBCardIO: { preload, } } = NativeModules; + import CardIOView from './CardIO.ios'; import * as constants from './constants'; export default CardIOView; export const CardIOConstants = constants; +export { preload, };
18809ce25afa59e318ecf5ccab7e0d102fa982c9
chrome_extension/client.js
chrome_extension/client.js
(function($){ $.appendSolveButton = function () { var $solve = $(document.createElement('div')).text('solve').css({ cursor: 'pointer', position: 'fixed', left: 0, bottom: 0, padding: '1em 2em', color: 'white', backgroundColor: 'rgba(0, 0, 255, .4)', zIndex: 2147483647 }); $('body').append($solve); return $solve; }; $.solve = function(params) { $.post('http://localhost:4567/problem', params); }; })(jQuery);
(function($){ $.appendSolveButton = function () { var $solve = $(document.createElement('div')).text('solve').css({ cursor: 'pointer', position: 'fixed', left: 0, bottom: 0, padding: '1em 2em', color: 'white', backgroundColor: 'rgba(0, 0, 255, .4)', zIndex: 2147483647 }); $('body').append($solve); return $solve; }; $.solve = function(params) { $.post('http://localhost:4567/problem', params).fail(function(res){ if(res.status == 0) { alert('It seems that background server is not working'); } }); }; })(jQuery);
Add handler for extension's request error
Add handler for extension's request error
JavaScript
mit
en30/online-judge-helper,en30/online-judge-helper,en30/online-judge-helper
--- +++ @@ -15,6 +15,10 @@ }; $.solve = function(params) { - $.post('http://localhost:4567/problem', params); + $.post('http://localhost:4567/problem', params).fail(function(res){ + if(res.status == 0) { + alert('It seems that background server is not working'); + } + }); }; })(jQuery);
5d0a6b1591cf9fae6f182176d563bb284b9e493d
native/calendar/calendar-input-bar.react.js
native/calendar/calendar-input-bar.react.js
// @flow import * as React from 'react'; import { View, Text } from 'react-native'; import { connect } from 'lib/utils/redux-utils'; import Button from '../components/button.react'; import type { AppState } from '../redux/redux-setup'; import { styleSelector } from '../themes/colors'; type Props = {| onSave: () => void, disabled: boolean, // Redux state styles: typeof styles, |}; function CalendarInputBar(props: Props) { const inactiveStyle = props.disabled ? props.styles.inactiveContainer : undefined; return ( <View style={[props.styles.container, inactiveStyle]} pointerEvents={props.disabled ? 'none' : 'auto'} > <Button onPress={props.onSave} iosActiveOpacity={0.5}> <Text style={props.styles.saveButtonText}>Save</Text> </Button> </View> ); } const styles = { container: { alignItems: 'flex-end', backgroundColor: 'listInputBar', }, inactiveContainer: { opacity: 0, }, saveButtonText: { color: 'link', fontSize: 16, fontWeight: 'bold', marginRight: 5, padding: 8, }, }; const stylesSelector = styleSelector(styles); export default connect((state: AppState) => ({ styles: stylesSelector(state), }))(CalendarInputBar);
// @flow import * as React from 'react'; import { View, Text } from 'react-native'; import Button from '../components/button.react'; import { useStyles } from '../themes/colors'; type Props = {| +onSave: () => void, +disabled: boolean, |}; function CalendarInputBar(props: Props) { const styles = useStyles(unboundStyles); const inactiveStyle = props.disabled ? styles.inactiveContainer : undefined; return ( <View style={[styles.container, inactiveStyle]} pointerEvents={props.disabled ? 'none' : 'auto'} > <Button onPress={props.onSave} iosActiveOpacity={0.5}> <Text style={styles.saveButtonText}>Save</Text> </Button> </View> ); } const unboundStyles = { container: { alignItems: 'flex-end', backgroundColor: 'listInputBar', }, inactiveContainer: { opacity: 0, }, saveButtonText: { color: 'link', fontSize: 16, fontWeight: 'bold', marginRight: 5, padding: 8, }, }; export default CalendarInputBar;
Use hook instead of connect functions and HOC in CalendarInputBar
[native] Use hook instead of connect functions and HOC in CalendarInputBar Test Plan: Flow Reviewers: ashoat, palys-swm Reviewed By: ashoat Subscribers: zrebcu411, Adrian Differential Revision: https://phabricator.ashoat.com/D518
JavaScript
bsd-3-clause
Ashoat/squadcal,Ashoat/squadcal,Ashoat/squadcal,Ashoat/squadcal,Ashoat/squadcal,Ashoat/squadcal,Ashoat/squadcal
--- +++ @@ -3,35 +3,29 @@ import * as React from 'react'; import { View, Text } from 'react-native'; -import { connect } from 'lib/utils/redux-utils'; - import Button from '../components/button.react'; -import type { AppState } from '../redux/redux-setup'; -import { styleSelector } from '../themes/colors'; +import { useStyles } from '../themes/colors'; type Props = {| - onSave: () => void, - disabled: boolean, - // Redux state - styles: typeof styles, + +onSave: () => void, + +disabled: boolean, |}; function CalendarInputBar(props: Props) { - const inactiveStyle = props.disabled - ? props.styles.inactiveContainer - : undefined; + const styles = useStyles(unboundStyles); + const inactiveStyle = props.disabled ? styles.inactiveContainer : undefined; return ( <View - style={[props.styles.container, inactiveStyle]} + style={[styles.container, inactiveStyle]} pointerEvents={props.disabled ? 'none' : 'auto'} > <Button onPress={props.onSave} iosActiveOpacity={0.5}> - <Text style={props.styles.saveButtonText}>Save</Text> + <Text style={styles.saveButtonText}>Save</Text> </Button> </View> ); } -const styles = { +const unboundStyles = { container: { alignItems: 'flex-end', backgroundColor: 'listInputBar', @@ -47,8 +41,5 @@ padding: 8, }, }; -const stylesSelector = styleSelector(styles); -export default connect((state: AppState) => ({ - styles: stylesSelector(state), -}))(CalendarInputBar); +export default CalendarInputBar;
e5de493971c3290e037c16141332d3c487cf756c
js/chai-unindent.js
js/chai-unindent.js
"use strict"; const Chai = require("chai"); const {util} = Chai; let overwritten, unindentPattern; /** * Strip leading tabulation from string blocks when running "equal" method. * * Enables use of ES6 template strings like triple-quoted strings (Python/CoffeeScript). * * @param {Number} columns - Number of leading tabs to strip from each line * @param {String} char - What defines a "tab". Defaults to a hard tab. */ Chai.unindent = function(columns, char = "\t"){ /** If Chai.unindent hasn't been run yet, overwrite the necessary methods */ if(!overwritten){ overwritten = true; for(const method of ["equal", "string"]){ Chai.Assertion.overwriteMethod(method, function(__super){ return function(input, ...rest){ let obj = util.flag(this, "object"); if("[object String]" === Object.prototype.toString.call(input)){ const trimmed = input.replace(unindentPattern, ""); __super.apply(this, [trimmed, ...rest]); } else __super.apply(this, arguments); } }); } } unindentPattern = columns ? new RegExp("^(?:"+char+"){0,"+columns+"}", "gm") : null; };
"use strict"; const Chai = global.chai || require("chai"); const {util} = Chai; let overwritten; let unindentPattern; /** Unindent a value if it's a string, and Chai.unindent has been called */ function trimIfNeeded(input){ if(unindentPattern && "[object String]" === Object.prototype.toString.call(input)){ unindent.noTrim || (input = input.replace(/^(?:[\x20\t]*\n)*|(?:\n[\x20\t]*)*$/gi, "")); return input.replace(unindentPattern, ""); } return input; } /** * Strip leading tabulation from string blocks when running "equal" method. * * Enables use of ES6 template strings like triple-quoted strings (Python/CoffeeScript). * * @param {Number} columns - Number of leading tabs to strip from each line * @param {String} char - What defines a "tab". Defaults to a hard tab. */ function unindent(columns, char = "\t"){ /** If Chai.unindent hasn't been run yet, overwrite the necessary methods */ if(!overwritten){ overwritten = true; for(const method of ["equal", "string"]){ Chai.Assertion.overwriteMethod(method, function(__super){ return function(input, ...rest){ __super.apply(this, [ trimIfNeeded(input), ...rest ]); } }); } } unindentPattern = columns ? new RegExp("^(?:"+char+"){0,"+columns+"}", "gm") : null; }; Chai.unindent = unindent;
Trim leading/trailing blank lines when unindenting
Trim leading/trailing blank lines when unindenting Refs: b3926be9112766181a6427c3d94bead82c07d9d0@2db0c90
JavaScript
isc
Alhadis/Snippets,Alhadis/Snippets,Alhadis/Snippets,Alhadis/Snippets,Alhadis/Snippets
--- +++ @@ -1,10 +1,22 @@ "use strict"; -const Chai = require("chai"); +const Chai = global.chai || require("chai"); const {util} = Chai; -let overwritten, unindentPattern; +let overwritten; +let unindentPattern; + + +/** Unindent a value if it's a string, and Chai.unindent has been called */ +function trimIfNeeded(input){ + if(unindentPattern && "[object String]" === Object.prototype.toString.call(input)){ + unindent.noTrim || (input = input.replace(/^(?:[\x20\t]*\n)*|(?:\n[\x20\t]*)*$/gi, "")); + return input.replace(unindentPattern, ""); + } + return input; +} + /** * Strip leading tabulation from string blocks when running "equal" method. @@ -14,7 +26,7 @@ * @param {Number} columns - Number of leading tabs to strip from each line * @param {String} char - What defines a "tab". Defaults to a hard tab. */ -Chai.unindent = function(columns, char = "\t"){ +function unindent(columns, char = "\t"){ /** If Chai.unindent hasn't been run yet, overwrite the necessary methods */ if(!overwritten){ @@ -23,13 +35,7 @@ for(const method of ["equal", "string"]){ Chai.Assertion.overwriteMethod(method, function(__super){ return function(input, ...rest){ - let obj = util.flag(this, "object"); - - if("[object String]" === Object.prototype.toString.call(input)){ - const trimmed = input.replace(unindentPattern, ""); - __super.apply(this, [trimmed, ...rest]); - } - else __super.apply(this, arguments); + __super.apply(this, [ trimIfNeeded(input), ...rest ]); } }); } @@ -39,3 +45,5 @@ ? new RegExp("^(?:"+char+"){0,"+columns+"}", "gm") : null; }; + +Chai.unindent = unindent;
e53c716e76bf3ed9180b9b34b4efefb2b484819d
lib/strategy.js
lib/strategy.js
var OpenIDConnectStrategy = require('passport-openidconnect').Strategy; var passportAuthenticateWithCUstomClaims = require('PassportAuthenticateWithCustomClaims').PassportAuthenticateWithCustomClaims; function Strategy(options, verify) { var strategy = new OpenIDConnectStrategy(options, verify); var alternateAuthenticate = new passportAuthenticateWithCUstomClaims( options.userInfoURL, options.acrValues, 1 ); strategy.authenticate = alternateAuthenticate.authenticate; return strategy; };
var OpenIDConnectStrategy = require('passport-openidconnect').Strategy; var passportAuthenticateWithCUstomClaims = require('./PassportAuthenticateWithCustomClaims').PassportAuthenticateWithCustomClaims; function Strategy(options, verify) { var strategy = new OpenIDConnectStrategy(options, verify); var alternateAuthenticate = new passportAuthenticateWithCUstomClaims( options.userInfoURL, options.acrValues, 1 ); strategy.authenticate = alternateAuthenticate.authenticate; return strategy; }; module.exports = Strategy;
Fix broken reference to local module and missing export of the Strategy constructor.
Fix broken reference to local module and missing export of the Strategy constructor.
JavaScript
mit
promethe42/passport-franceconnect
--- +++ @@ -1,5 +1,5 @@ var OpenIDConnectStrategy = require('passport-openidconnect').Strategy; -var passportAuthenticateWithCUstomClaims = require('PassportAuthenticateWithCustomClaims').PassportAuthenticateWithCustomClaims; +var passportAuthenticateWithCUstomClaims = require('./PassportAuthenticateWithCustomClaims').PassportAuthenticateWithCustomClaims; function Strategy(options, verify) { @@ -13,3 +13,5 @@ return strategy; }; + +module.exports = Strategy;
469475059353e62e85218d9f43d1ee65913aea5c
src/shared/components/nav/navItem/navItem.js
src/shared/components/nav/navItem/navItem.js
import React, { PureComponent } from 'react'; import { Link } from 'react-router-dom'; import PropTypes from 'prop-types'; import styles from './navItem.css'; class NavItem extends PureComponent { constructor() { super(); // TODO: remove this if .eslintrc updated to parser:"babel-eslint", // allowing class methods as => fns this.handleClick = this.handleClick.bind(this); } handleClick() { if (this.props.isExternal) { window.location(this.props.to); } if (this.props.onClick) { this.props.onClick(); } } render() { const disabledClass = this.props.notClickable ? styles.disabledNavItem : ''; const classes = `${styles.navItem} ${disabledClass} ${styles[this.props.className]}`; return ( <Link className={classes} to={this.props.to} onClick={this.handleClick}> {this.props.text} </Link> ); } } NavItem.propTypes = { className: PropTypes.string, isExternal: PropTypes.bool, notClickable: PropTypes.bool, onClick: PropTypes.func, to: PropTypes.string.isRequired, text: PropTypes.string.isRequired }; NavItem.defaultProps = { className: null, isExternal: false, notClickable: false, onClick: null }; // TODO: Remove all references to notClickable and disabledClass (including .css) when // every route has been created. export default NavItem;
import React, { PureComponent } from 'react'; import { Link } from 'react-router-dom'; import PropTypes from 'prop-types'; import styles from './navItem.css'; class NavItem extends PureComponent { constructor() { super(); // TODO: remove this if .eslintrc updated to parser:"babel-eslint", // allowing class methods as => fns this.handleClick = this.handleClick.bind(this); } handleClick() { if (this.props.isExternal) { window.location(this.props.to); } if (this.props.onClick) { this.props.onClick(); } } render() { const disabledClass = this.props.notClickable ? styles.disabledNavItem : ''; const classes = `${styles.navItem} ${disabledClass} ${styles[this.props.className]}`; return ( <Link className={classes} to={this.props.to} onClick={this.handleClick}> {this.props.text} </Link> ); } } NavItem.propTypes = { className: PropTypes.string, isExternal: PropTypes.bool, notClickable: PropTypes.bool, onClick: PropTypes.func, to: PropTypes.string.isRequired, text: PropTypes.string.isRequired }; NavItem.defaultProps = { className: null, isExternal: false, notClickable: false, onClick: null }; // TODO: Remove all references to notClickable and disabledClass (including .css) // when every route has been created. // NOTE: For the usage of disabledClass within the classes const, ask jjhampton if there are issues export default NavItem;
Edit TODO to reflect edited file
Edit TODO to reflect edited file
JavaScript
mit
alexspence/operationcode_frontend,hollomancer/operationcode_frontend,OperationCode/operationcode_frontend,tal87/operationcode_frontend,miaket/operationcode_frontend,tskuse/operationcode_frontend,sethbergman/operationcode_frontend,NestorSegura/operationcode_frontend,tal87/operationcode_frontend,sethbergman/operationcode_frontend,OperationCode/operationcode_frontend,tskuse/operationcode_frontend,alexspence/operationcode_frontend,OperationCode/operationcode_frontend,hollomancer/operationcode_frontend,sethbergman/operationcode_frontend,tskuse/operationcode_frontend,NestorSegura/operationcode_frontend,miaket/operationcode_frontend,hollomancer/operationcode_frontend,NestorSegura/operationcode_frontend,alexspence/operationcode_frontend,tal87/operationcode_frontend,miaket/operationcode_frontend
--- +++ @@ -50,7 +50,8 @@ onClick: null }; -// TODO: Remove all references to notClickable and disabledClass (including .css) when -// every route has been created. +// TODO: Remove all references to notClickable and disabledClass (including .css) +// when every route has been created. +// NOTE: For the usage of disabledClass within the classes const, ask jjhampton if there are issues export default NavItem;
f7c515b7c716b0a1fb75a2bb9a87d83c773b5f2f
pipeline/app/assets/javascripts/controllers/PathwayController.js
pipeline/app/assets/javascripts/controllers/PathwayController.js
'use strict' angular.module('pathwayApp') .controller('PathwayController', function ($scope, $http, $stateParams, $cookieStore, $state) { $http({method: 'GET', url: '/api/pathways/' + $stateParams.id }).success(function(data, status){ $scope.pathway = data }) $scope.user = $cookieStore.get('pathway_user') $scope.create = function() { $http({method: 'POST', url: '/api/pathways', data: {pathway: $scope.pathway, user: $scope.user.id } }).success(function(data, status){ console.log("hello from create() pathway") $state.go('showPathway', {'id': data.id }) }).error(function(data){ console.log(data) }) } });
'use strict' angular.module('pathwayApp') .controller('PathwayController', function ($scope, $http, $stateParams, $cookieStore, $state) { $scope.user = $cookieStore.get('pathway_user') $http({method: 'GET', url: '/api/pathways/' + $stateParams.id }).success(function(data, status){ $scope.pathway = data }) $scope.create = function() { $http({method: 'POST', url: '/api/pathways', data: {pathway: $scope.pathway, user: $scope.user.id } }).success(function(data, status){ console.log("hello from create() pathway") $state.go('showPathway', {'id': data.id }) }).error(function(data){ console.log(data) }) } });
Move global variable to the top
Move global variable to the top
JavaScript
mit
aattsai/Pathway,aattsai/Pathway,aattsai/Pathway
--- +++ @@ -2,12 +2,12 @@ angular.module('pathwayApp') .controller('PathwayController', function ($scope, $http, $stateParams, $cookieStore, $state) { + $scope.user = $cookieStore.get('pathway_user') $http({method: 'GET', url: '/api/pathways/' + $stateParams.id }).success(function(data, status){ $scope.pathway = data }) - $scope.user = $cookieStore.get('pathway_user') $scope.create = function() { $http({method: 'POST', url: '/api/pathways',
4e5a0e6fdb7d424f082205acf8f18b8edde278b1
environments/nodejs/optional.js
environments/nodejs/optional.js
'use strict' module.exports = { extends: 'javascript/standard/optional.js' }
'use strict' module.exports = { extends: 'javascript/standard/optional' }
Remove extension from extends path
Remove extension from extends path
JavaScript
bsd-3-clause
strvcom/eslint-config-javascript,strvcom/js-coding-standards,strvcom/eslint-config-javascript
--- +++ @@ -1,5 +1,5 @@ 'use strict' module.exports = { - extends: 'javascript/standard/optional.js' + extends: 'javascript/standard/optional' }
2c943d20dae87bfb9aed666644815bbb759c39fb
packages/wct-sauce/scripts/postinstall.js
packages/wct-sauce/scripts/postinstall.js
// People frequently sudo install web-component-tester, and we have to be a // little careful about file permissions. // // sauce-connect-launcher downloads and caches the sc binary into its package // directory the first time you try to connect. If WCT is installed via sudo, // sauce-connect-launcher will be unable to write to its directory, and fail. // // So, we force a prefetch during install ourselves. This also works around a // npm bug where sauce-connect-launcher is unable to predownload itself: // https://github.com/npm/npm/issues/6624 var sauceConnectLauncher = require('sauce-connect-launcher'); console.log('Prefetching the Sauce Connect binary.'); sauceConnectLauncher.download({ logger: console.log.bind(console), }, function(error) { if (error) { console.log('Failed to download sauce connect binary:', error); console.log('sauce-connect-launcher will attempt to re-download next time it is run.'); } });
// People frequently sudo install web-component-tester, and we have to be a // little careful about file permissions. // // sauce-connect-launcher downloads and caches the sc binary into its package // directory the first time you try to connect. If WCT is installed via sudo, // sauce-connect-launcher will be unable to write to its directory, and fail. // // So, we prefetch it during install ourselves. // Unfortunately, this process runs up against a npm race condition: // https://github.com/npm/npm/issues/6624 // // As a workaround, our best bet is to retry with backoff. function requireSauceConnectLauncher(done, attempt) { attempt = attempt || 0; var sauceConnectLauncher; try { sauceConnectLauncher = require('sauce-connect-launcher'); } catch (error) { if (attempt > 3) { throw error; } setTimeout( requireSauceConnectLauncher.bind(null, done, attempt + 1), Math.pow(2, attempt) // Exponential backoff to play it safe. ); } // All is well. done(sauceConnectLauncher); } console.log('Prefetching the Sauce Connect binary.'); requireSauceConnectLauncher(function(sauceConnectLauncher) { sauceConnectLauncher.download({ logger: console.log.bind(console), }, function(error) { if (error) { console.log('Failed to download sauce connect binary:', error); console.log('sauce-connect-launcher will attempt to re-download next time it is run.'); // We explicitly do not fail the install process if this happens; the user // can still recover, unless their permissions are completely screwey. } }); });
Handle the npm bug with exponential backoff for the require
Handle the npm bug with exponential backoff for the require
JavaScript
bsd-3-clause
Polymer/tools,Polymer/tools,Polymer/tools,Polymer/tools
--- +++ @@ -5,17 +5,40 @@ // directory the first time you try to connect. If WCT is installed via sudo, // sauce-connect-launcher will be unable to write to its directory, and fail. // -// So, we force a prefetch during install ourselves. This also works around a -// npm bug where sauce-connect-launcher is unable to predownload itself: +// So, we prefetch it during install ourselves. + +// Unfortunately, this process runs up against a npm race condition: // https://github.com/npm/npm/issues/6624 -var sauceConnectLauncher = require('sauce-connect-launcher'); +// +// As a workaround, our best bet is to retry with backoff. +function requireSauceConnectLauncher(done, attempt) { + attempt = attempt || 0; + var sauceConnectLauncher; + try { + sauceConnectLauncher = require('sauce-connect-launcher'); + } catch (error) { + if (attempt > 3) { + throw error; + } + setTimeout( + requireSauceConnectLauncher.bind(null, done, attempt + 1), + Math.pow(2, attempt) // Exponential backoff to play it safe. + ); + } + // All is well. + done(sauceConnectLauncher); +} console.log('Prefetching the Sauce Connect binary.'); -sauceConnectLauncher.download({ - logger: console.log.bind(console), -}, function(error) { - if (error) { - console.log('Failed to download sauce connect binary:', error); - console.log('sauce-connect-launcher will attempt to re-download next time it is run.'); - } +requireSauceConnectLauncher(function(sauceConnectLauncher) { + sauceConnectLauncher.download({ + logger: console.log.bind(console), + }, function(error) { + if (error) { + console.log('Failed to download sauce connect binary:', error); + console.log('sauce-connect-launcher will attempt to re-download next time it is run.'); + // We explicitly do not fail the install process if this happens; the user + // can still recover, unless their permissions are completely screwey. + } + }); });
e2670701f4bc717d28e59285ca9057728786259a
lib/index.js
lib/index.js
/* @flow */ import LinterUI from './main' import type Intentions from './intentions' const linterUiDefault = { instances: new Set(), signalRegistry: null, statusBarRegistry: null, activate() { if (!atom.inSpecMode()) { // eslint-disable-next-line global-require require('atom-package-deps').install('linter-ui-default') } }, deactivate() { for (const entry of this.instances) { entry.dispose() } this.instances.clear() }, provideUI(): LinterUI { const instance = new LinterUI() this.instances.add(instance) if (this.signalRegistry) { instance.signal.attach(this.signalRegistry) } return instance }, provideIntentions(): Array<Intentions> { return Array.from(this.instances).map(entry => entry.intentions) }, consumeSignal(signalRegistry: Object) { this.signalRegistry = signalRegistry this.instances.forEach(function(instance) { instance.signal.attach(signalRegistry) }) }, consumeStatusBar(statusBarRegistry: Object) { this.statusBarRegistry = statusBarRegistry this.instances.forEach(function(instance) { instance.statusBar.attach(statusBarRegistry) }) } } module.exports = linterUiDefault
/* @flow */ import LinterUI from './main' import type Intentions from './intentions' const linterUiDefault = { instances: new Set(), signalRegistry: null, statusBarRegistry: null, activate() { if (!atom.inSpecMode()) { // eslint-disable-next-line global-require require('atom-package-deps').install('linter-ui-default', true) } }, deactivate() { for (const entry of this.instances) { entry.dispose() } this.instances.clear() }, provideUI(): LinterUI { const instance = new LinterUI() this.instances.add(instance) if (this.signalRegistry) { instance.signal.attach(this.signalRegistry) } return instance }, provideIntentions(): Array<Intentions> { return Array.from(this.instances).map(entry => entry.intentions) }, consumeSignal(signalRegistry: Object) { this.signalRegistry = signalRegistry this.instances.forEach(function(instance) { instance.signal.attach(signalRegistry) }) }, consumeStatusBar(statusBarRegistry: Object) { this.statusBarRegistry = statusBarRegistry this.instances.forEach(function(instance) { instance.statusBar.attach(statusBarRegistry) }) } } module.exports = linterUiDefault
Enable the new confirmation dialog in latest package-deps
:new: Enable the new confirmation dialog in latest package-deps
JavaScript
mit
AtomLinter/linter-ui-default,steelbrain/linter-ui-default,steelbrain/linter-ui-default
--- +++ @@ -10,7 +10,7 @@ activate() { if (!atom.inSpecMode()) { // eslint-disable-next-line global-require - require('atom-package-deps').install('linter-ui-default') + require('atom-package-deps').install('linter-ui-default', true) } }, deactivate() {
84e07a26ca69f84916ca5d8cd60316d336ad268d
lib/index.js
lib/index.js
var Line = require('./line'); var simplifyGeometry = function(points, tolerance){ var dmax = 0; var index = 0; for (var i = 1; i <= points.length - 2; i++){ d = new Line(points[0], points[points.length - 1]).perpendicularDistance(points[i]); if (d > dmax){ index = i; dmax = d; } } if (dmax > tolerance){ var results_one = simplifyGeometry(points.slice(0, index), tolerance); var results_two = simplifyGeometry(points.slice(index, points.length), tolerance); var results = results_one.concat(results_two); } else if (points.length > 1) { results = [points[0], points[points.length - 1]]; } else { results = [points[0]]; } return results; } module.exports = simplifyGeometry;
var Line = require('./line'); var simplifyGeometry = function(points, tolerance){ var dmax = 0; var index = 0; for (var i = 1; i <= points.length - 2; i++){ var d = new Line(points[0], points[points.length - 1]).perpendicularDistance(points[i]); if (d > dmax){ index = i; dmax = d; } } if (dmax > tolerance){ var results_one = simplifyGeometry(points.slice(0, index), tolerance); var results_two = simplifyGeometry(points.slice(index, points.length), tolerance); var results = results_one.concat(results_two); } else if (points.length > 1) { results = [points[0], points[points.length - 1]]; } else { results = [points[0]]; } return results; } module.exports = simplifyGeometry;
Fix 'Uncaught ReferenceError: d is not defined'
Fix 'Uncaught ReferenceError: d is not defined'
JavaScript
mit
seabre/simplify-geometry,gronke/simplify-geometry
--- +++ @@ -6,7 +6,7 @@ var index = 0; for (var i = 1; i <= points.length - 2; i++){ - d = new Line(points[0], points[points.length - 1]).perpendicularDistance(points[i]); + var d = new Line(points[0], points[points.length - 1]).perpendicularDistance(points[i]); if (d > dmax){ index = i; dmax = d;
c98232fc7b50db1cd4e62ac8991678572376211f
app/assets/javascripts/tax-disc-ab-test.js
app/assets/javascripts/tax-disc-ab-test.js
//= require govuk/multivariate-test /*jslint browser: true, * indent: 2, * white: true */ /*global $, GOVUK */ $(function () { GOVUK.taxDiscBetaPrimary = function () { $('.primary-apply').html($('#beta-primary').html()); $('.secondary-apply').html($('#dvla-secondary').html()); }; if(window.location.href.indexOf("/tax-disc") > -1) { new GOVUK.MultivariateTest({ name: 'tax-disc-beta', customVarIndex: 20, cohorts: { tax_disc_beta_control: { weight: 60, callback: function () { } }, //~60% tax_disc_beta: { weight: 40, callback: GOVUK.taxDiscBetaPrimary } //~40% } }); } });
//= require govuk/multivariate-test /*jslint browser: true, * indent: 2, * white: true */ /*global $, GOVUK */ $(function () { GOVUK.taxDiscBetaPrimary = function () { $('.primary-apply').html($('#beta-primary').html()); $('.secondary-apply').html($('#dvla-secondary').html()); }; if(window.location.href.indexOf("/tax-disc") > -1) { new GOVUK.MultivariateTest({ name: 'tax-disc-beta', customVarIndex: 20, cohorts: { tax_disc_beta_control: { weight: 0, callback: function () { } }, //~0% tax_disc_beta: { weight: 1, callback: GOVUK.taxDiscBetaPrimary } //~100% } }); } });
Increase tax disc beta AB to ~100%
Increase tax disc beta AB to ~100% This should mean most users are presented with the beta as the primary option during the August tax disc peak.
JavaScript
mit
alphagov/frontend,alphagov/frontend,alphagov/frontend,alphagov/frontend
--- +++ @@ -17,8 +17,8 @@ name: 'tax-disc-beta', customVarIndex: 20, cohorts: { - tax_disc_beta_control: { weight: 60, callback: function () { } }, //~60% - tax_disc_beta: { weight: 40, callback: GOVUK.taxDiscBetaPrimary } //~40% + tax_disc_beta_control: { weight: 0, callback: function () { } }, //~0% + tax_disc_beta: { weight: 1, callback: GOVUK.taxDiscBetaPrimary } //~100% } }); }
fe266d13835b0ec76648608cab9004324c5aded4
api/utils/promise-utils.js
api/utils/promise-utils.js
'use strict'; exports.delayed = function delayed(ms, value) { return new Promise(resolve => setTimeout(() => resolve(value), ms)); }; exports.timeoutError = 'timeoutError'; /** * Waits a promise for specified timeout. * * @param {Promise} promiseToWait - promise to wait. * @param {number} ms - timeout in milliseconds * @returns {Promise} - promise which can be rejected with timeout or with error from promiseToWait. * or resolved with result of promiseToWait. */ exports.wait = function wait(promiseToWait, ms) { let rejectBecauseTimeout = true; return new Promise((resolve, reject) => { promiseToWait.then((result) => { rejectBecauseTimeout = false; resolve(result); }).catch((err) => { rejectBecauseTimeout = false; reject(err); }); setTimeout(() => { if (rejectBecauseTimeout) { reject(exports.timeoutError); } }, ms); }); };
'use strict'; exports.delayed = function delayed(ms, value) { return new Promise(resolve => setTimeout(() => resolve(value), ms)); }; exports.timeoutError = 'timeoutError'; /** * Waits a promise for specified timeout. * * @param {Promise} promiseToWait - promise to wait. * @param {number} ms - timeout in milliseconds * @returns {Promise} - promise which can be rejected with timeout or with error from promiseToWait. * or resolved with result of promiseToWait. */ exports.wait = function wait(promiseToWait, ms) { let rejectBecauseTimeout = true; return new Promise((resolve, reject) => { let timeoutId = null; promiseToWait.then((result) => { if (timeoutId) { clearTimeout(timeoutId); } rejectBecauseTimeout = false; resolve(result); }).catch((err) => { rejectBecauseTimeout = false; reject(err); }); timeoutId = setTimeout(() => { if (rejectBecauseTimeout) { reject(exports.timeoutError); } }, ms); }); };
Fix for timeout after finish.
Fix for timeout after finish.
JavaScript
mit
Dzenly/tia,Dzenly/tia,Dzenly/tia,Dzenly/tia
--- +++ @@ -17,7 +17,13 @@ exports.wait = function wait(promiseToWait, ms) { let rejectBecauseTimeout = true; return new Promise((resolve, reject) => { + + let timeoutId = null; + promiseToWait.then((result) => { + if (timeoutId) { + clearTimeout(timeoutId); + } rejectBecauseTimeout = false; resolve(result); }).catch((err) => { @@ -25,10 +31,11 @@ reject(err); }); - setTimeout(() => { + timeoutId = setTimeout(() => { if (rejectBecauseTimeout) { reject(exports.timeoutError); } }, ms); + }); };
adf32503c11c443423d861c9c9c7835f3de18631
lib/techs/mock-lang-js.js
lib/techs/mock-lang-js.js
var vfs = require('enb/lib/fs/async-fs'); module.exports = require('enb/lib/build-flow').create() .name('mock-lang-js.js') .target('target', '?.js') .useSourceFilename('source', '?.lang.js') .builder(function (source) { return vfs.read(source, 'utf8') .then(function (content) { var mock = [ '(function(global, bem_) {', ' if(bem_.I18N) return;', ' global.BEM = bem_;', ' var i18n = bem_.I18N = function(keyset, key) {', ' return key;', ' };', ' i18n.keyset = function() { return i18n }', ' i18n.key = function(key) { return key }', ' i18n.lang = function() { return }', '})(this, typeof BEM === \'undefined\' ? {} : BEM);' ].join('\n'); return [mock, content].join('\n'); }); }) .createTech();
var vfs = require('enb/lib/fs/async-fs'); module.exports = require('enb/lib/build-flow').create() .name('mock-lang-js.js') .target('target', '?.js') .useSourceFilename('source', '?.lang.js') .builder(function (source) { return vfs.read(source, 'utf8') .then(function (content) { var mock = [ '(function(global, bem_) {', ' if(bem_.I18N) return;', ' global.BEM = bem_;', ' var i18n = bem_.I18N = function(keyset, key) {', ' return key;', ' };', ' i18n.keyset = function() { return i18n }', ' i18n.key = function(key) { return key }', ' i18n.lang = function() { return }', '})(this, typeof BEM === \'undefined\' ? {} : BEM);' ].join('\n'), mapIndex = content.lastIndexOf('//# sourceMappingURL='), map; // if there is a #sourceMappingURL pragma append // the mock before it so the source map will be // valid. We can't insert it in the beginning because // source map locations will point to the wrong lines. if (mapIndex !== -1) { map = content.substring(mapIndex); content = content.substring(0, mapIndex); } return [content, mock, map].join('\n'); }); }) .createTech();
Append lang mock to the end of file to not make source map being invalid.
Append lang mock to the end of file to not make source map being invalid.
JavaScript
mpl-2.0
enb-bem/enb-bem-tmpl-specs,rndD/enb-bem-tmpl-specs,rndD/enb-bem-tmpl-specs,enb-bem/enb-bem-tmpl-specs
--- +++ @@ -8,19 +8,30 @@ return vfs.read(source, 'utf8') .then(function (content) { var mock = [ - '(function(global, bem_) {', - ' if(bem_.I18N) return;', - ' global.BEM = bem_;', - ' var i18n = bem_.I18N = function(keyset, key) {', - ' return key;', - ' };', - ' i18n.keyset = function() { return i18n }', - ' i18n.key = function(key) { return key }', - ' i18n.lang = function() { return }', - '})(this, typeof BEM === \'undefined\' ? {} : BEM);' - ].join('\n'); + '(function(global, bem_) {', + ' if(bem_.I18N) return;', + ' global.BEM = bem_;', + ' var i18n = bem_.I18N = function(keyset, key) {', + ' return key;', + ' };', + ' i18n.keyset = function() { return i18n }', + ' i18n.key = function(key) { return key }', + ' i18n.lang = function() { return }', + '})(this, typeof BEM === \'undefined\' ? {} : BEM);' + ].join('\n'), + mapIndex = content.lastIndexOf('//# sourceMappingURL='), + map; - return [mock, content].join('\n'); + // if there is a #sourceMappingURL pragma append + // the mock before it so the source map will be + // valid. We can't insert it in the beginning because + // source map locations will point to the wrong lines. + if (mapIndex !== -1) { + map = content.substring(mapIndex); + content = content.substring(0, mapIndex); + } + + return [content, mock, map].join('\n'); }); }) .createTech();
e8a103ff739c4daa6b90efd52dea9630cd3f491b
app/assets/javascripts/welcome.js
app/assets/javascripts/welcome.js
// # Place all the behaviors and hooks related to the matching controller here. // # All this logic will automatically be available in application.js. // # You can use CoffeeScript in this file: http://coffeescript.org/ $(document).ready(function(){ bindSearchBySubmit(); bindSearchByButton(); }) var bindSearchBySubmit = function(){ $('form.navbar-form').on('submit', function(event){ event.preventDefault(); var data = $("#peopleSearchBar").val(); searchServer(data); }) } var bindSearchByButton = function(){ $('form.navbar-form').on('.glyphicon-search', function(event){ event.preventDefault(); var data = $("#peopleSearchBar").val(); searchServer(data); }) } var searchServer = function(data){ $.ajax({ url: 'search', method: 'post', dataType: 'html', data: {search_input: data} }).done(function(responseData){ displayResults(responseData); unendorseListener(); }) } var displayResults = function(responseData){ $('.tab-content').html(responseData) }
// # Place all the behaviors and hooks related to the matching controller here. // # All this logic will automatically be available in application.js. // # You can use CoffeeScript in this file: http://coffeescript.org/ $(document).ready(function(){ bindSearchBySubmit(); bindSearchByButton(); }) var bindSearchBySubmit = function(){ $('form.navbar-form').on('submit', function(event){ event.preventDefault(); var data = $("#peopleSearchBar").val(); searchServer(data); }) } var bindSearchByButton = function(){ $('form.navbar-form').on('click','.glyphicon-search', function(event){ event.preventDefault(); var data = $("#peopleSearchBar").val(); searchServer(data); }) } var searchServer = function(data){ $.ajax({ url: 'search', method: 'post', dataType: 'html', data: {search_input: data} }).done(function(responseData){ displayResults(responseData); unendorseListener(); }) } var displayResults = function(responseData){ $('.tab-content').html(responseData) }
Implement search listener on search button
Implement search listener on search button
JavaScript
mit
robertbaker13/write-in-mvp,robertbaker13/write-in-mvp,robertbaker13/write-in-mvp,user512/write-in-mvp,user512/write-in-mvp,user512/write-in-mvp
--- +++ @@ -16,7 +16,7 @@ } var bindSearchByButton = function(){ - $('form.navbar-form').on('.glyphicon-search', function(event){ + $('form.navbar-form').on('click','.glyphicon-search', function(event){ event.preventDefault(); var data = $("#peopleSearchBar").val(); searchServer(data);
368e4a68f473259f0b59c9164ff7815868641cdc
app/components/ConceptDropTarget/index.js
app/components/ConceptDropTarget/index.js
import './index.css'; import React from 'react'; import { DropTarget } from 'react-dnd'; const ConceptDropTarget = ({ connectDropTarget, isOver, canDrop, children }) => connectDropTarget( <div className="ConceptDropTarget"> {isOver ? <div className={['ConceptDropTarget-overlay', !canDrop ? 'ConceptDropTarget-overlay--disabled' : ''].join(' ')}> {canDrop ? <div className="ConceptDropTarget-message"> Drop here to create a relation. </div> : null } </div> : null } <div className="ConceptDropTarget-content"> {children} </div> </div> ); const target = { canDrop(props, monitor) { const item = monitor.getItem(); const sourceConcept = item.concept; const targetConcept = props.concept; return sourceConcept.id !== targetConcept.id; }, drop(props) { return { concept: props.concept, }; }, }; function collect(connect, monitor) { return { connectDropTarget: connect.dropTarget(), isOver: monitor.isOver(), canDrop: monitor.canDrop(), }; } export default DropTarget('CONCEPT', target, collect)(ConceptDropTarget);
import './index.css'; import React from 'react'; import { DropTarget } from 'react-dnd'; const ConceptDropTarget = ({ connectDropTarget, isOver, canDrop, children }) => connectDropTarget( <div className="ConceptDropTarget"> {isOver ? <div className={['ConceptDropTarget-overlay', !canDrop ? 'ConceptDropTarget-overlay--disabled' : ''].join(' ')}> {canDrop ? <div className="ConceptDropTarget-message"> Drop here to create a relation. </div> : null } </div> : null } <div className="ConceptDropTarget-content"> {children} </div> </div> ); const target = { canDrop(props, monitor) { const item = monitor.getItem(); const sourceConcept = item.concept; const targetConcept = props.concept; // Don't allow person <-> organization relations until we find a way to // decouple dates from PITs const isSameType = (sourceConcept.type === targetConcept.type) || ((sourceConcept.type !== 'tnl:Person' && targetConcept.type !== 'tnl:Person')); return isSameType && sourceConcept.id !== targetConcept.id; }, drop(props) { return { concept: props.concept, }; }, }; function collect(connect, monitor) { return { connectDropTarget: connect.dropTarget(), isOver: monitor.isOver(), canDrop: monitor.canDrop(), }; } export default DropTarget('CONCEPT', target, collect)(ConceptDropTarget);
Disable creating relations between persons and organizations
Disable creating relations between persons and organizations
JavaScript
mit
transparantnederland/browser,transparantnederland/browser,waagsociety/tnl-relationizer,transparantnederland/relationizer,transparantnederland/relationizer,waagsociety/tnl-relationizer
--- +++ @@ -24,8 +24,11 @@ const item = monitor.getItem(); const sourceConcept = item.concept; const targetConcept = props.concept; + // Don't allow person <-> organization relations until we find a way to + // decouple dates from PITs + const isSameType = (sourceConcept.type === targetConcept.type) || ((sourceConcept.type !== 'tnl:Person' && targetConcept.type !== 'tnl:Person')); - return sourceConcept.id !== targetConcept.id; + return isSameType && sourceConcept.id !== targetConcept.id; }, drop(props) { return {
2f1c22e3c150c57c759d15da40239aec27b16c6e
models/Show.js
models/Show.js
class Show { static get INTERMISSION() { return new Show('Sendepause'); } constructor(title) { this.title = title; } isRunningNow() { return this.startTime.isBefore() && this.endTime.isAfter(); } fixMidnightTime() { if (this.startTime.isAfter(this.endTime)) { // show runs at midnight if (moment().hour() < 12) { // now is morning - startTime was yesterday this.startTime.subtract(1, 'd'); } else { // now is evening - end time is tomorrow this.endTime.add(1, 'd'); } } } clone() { let show = new Show(this.title); show.channel = this.channel; show.subtitle = this.subtitle; show.startTime = this.startTime; show.endTime = this.endTime; return show; } } module.exports = Show;
const moment = require('moment-timezone'); class Show { static get INTERMISSION() { return new Show('Sendepause'); } constructor(title) { this.title = title; } isRunningNow() { return this.startTime.isBefore() && this.endTime.isAfter(); } fixMidnightTime() { if (this.startTime.isAfter(this.endTime)) { // show runs at midnight if (moment.tz('Europe/Berlin').hour() < 12) { // now is morning - startTime was yesterday this.startTime.subtract(1, 'd'); } else { // now is evening - end time is tomorrow this.endTime.add(1, 'd'); } } } clone() { let show = new Show(this.title); show.channel = this.channel; show.subtitle = this.subtitle; show.startTime = this.startTime; show.endTime = this.endTime; return show; } } module.exports = Show;
Fix "moment is not defined" bug for ard channels
Fix "moment is not defined" bug for ard channels
JavaScript
mit
cemrich/zapp-backend
--- +++ @@ -1,3 +1,5 @@ +const moment = require('moment-timezone'); + class Show { static get INTERMISSION() { @@ -15,7 +17,7 @@ fixMidnightTime() { if (this.startTime.isAfter(this.endTime)) { // show runs at midnight - if (moment().hour() < 12) { + if (moment.tz('Europe/Berlin').hour() < 12) { // now is morning - startTime was yesterday this.startTime.subtract(1, 'd'); } else {
5dc37ed9c2c20fa8759a69647302feacb674d12f
addon/components/file-renderer/component.js
addon/components/file-renderer/component.js
import Ember from 'ember'; import layout from './template'; import config from 'ember-get-config'; /** * @module ember-osf * @submodule components */ /** * Render the provided url in an iframe via MFR * * Sample usage: * ```handlebars * {{file-renderer * download=model.links.download * width="800" height="1000"}} * ``` * @class file-renderer */ export default Ember.Component.extend({ layout, download: null, width: '100%', height: '100%', allowfullscreen: true, mfrUrl: Ember.computed('download', function() { var base = config.OSF.renderUrl; var download = this.get('download'); var renderUrl = base + '?url=' + encodeURIComponent(download + '?direct&mode=render&initialWidth=766'); return renderUrl; }) });
import Ember from 'ember'; import layout from './template'; import config from 'ember-get-config'; /** * @module ember-osf * @submodule components */ /** * Render the provided url in an iframe via MFR * * Sample usage: * ```handlebars * {{file-renderer * download=model.links.download * width="800" height="1000" allowfullscreen=true}} * ``` * @class file-renderer */ export default Ember.Component.extend({ layout, download: null, width: '100%', height: '100%', allowfullscreen: true, mfrUrl: Ember.computed('download', function() { var base = config.OSF.renderUrl; var download = this.get('download'); var renderUrl = base + '?url=' + encodeURIComponent(download + '?direct&mode=render&initialWidth=766'); return renderUrl; }) });
Add detail to sample usage
Add detail to sample usage
JavaScript
apache-2.0
crcresearch/ember-osf,baylee-d/ember-osf,CenterForOpenScience/ember-osf,chrisseto/ember-osf,jamescdavis/ember-osf,hmoco/ember-osf,binoculars/ember-osf,cwilli34/ember-osf,pattisdr/ember-osf,hmoco/ember-osf,chrisseto/ember-osf,pattisdr/ember-osf,baylee-d/ember-osf,binoculars/ember-osf,crcresearch/ember-osf,CenterForOpenScience/ember-osf,jamescdavis/ember-osf,cwilli34/ember-osf
--- +++ @@ -14,7 +14,7 @@ * ```handlebars * {{file-renderer * download=model.links.download - * width="800" height="1000"}} + * width="800" height="1000" allowfullscreen=true}} * ``` * @class file-renderer */