commit
stringlengths 40
40
| old_file
stringlengths 4
236
| new_file
stringlengths 4
236
| old_contents
stringlengths 1
3.26k
| new_contents
stringlengths 16
4.43k
| subject
stringlengths 16
624
| message
stringlengths 17
3.29k
| lang
stringclasses 5
values | license
stringclasses 13
values | repos
stringlengths 5
91.5k
|
|---|---|---|---|---|---|---|---|---|---|
db978592bc49e4a1e2ea6a4ebb1921c2d2439db0
|
src/getFilteredOptions.js
|
src/getFilteredOptions.js
|
import {find, isEqual, uniqueId} from 'lodash';
import getOptionLabel from './getOptionLabel';
/**
* Filter out options that don't match the input string or, if multiple
* selections are allowed, that have already been selected.
*/
function getFilteredOptions(options=[], text='', selected=[], props={}) {
const {allowNew, labelKey, minLength, multiple} = props;
if (text.length < minLength) {
return [];
}
let exactMatchFound = false;
let filteredOptions = options.filter(option => {
const labelString = getOptionLabel(option, labelKey);
if (labelString === text) {
exactMatchFound = true;
}
return !(
labelString.toLowerCase().indexOf(text.toLowerCase()) === -1 ||
multiple && find(selected, o => isEqual(o, option))
);
});
if (
allowNew &&
!!text.trim() &&
!(filteredOptions.length && exactMatchFound)
) {
let newOption = {
id: uniqueId('new-id-'),
customOption: true,
};
newOption[labelKey] = text;
filteredOptions.push(newOption);
}
return filteredOptions;
}
export default getFilteredOptions;
|
import {find, isEqual, uniqueId} from 'lodash';
import getOptionLabel from './getOptionLabel';
/**
* Filter out options that don't match the input string or, if multiple
* selections are allowed, that have already been selected.
*/
function getFilteredOptions(options=[], text='', selected=[], props={}) {
const {allowNew, labelKey, minLength, multiple} = props;
if (text.length < minLength) {
return [];
}
let filteredOptions = options.filter(option => {
const labelString = getOptionLabel(option, labelKey);
return !(
labelString.toLowerCase().indexOf(text.toLowerCase()) === -1 ||
multiple && find(selected, o => isEqual(o, option))
);
});
const exactMatchFound = find(filteredOptions, o => (
getOptionLabel(o, labelKey) === text
));
if (
allowNew &&
!!text.trim() &&
!(filteredOptions.length && exactMatchFound)
) {
let newOption = {
id: uniqueId('new-id-'),
customOption: true,
};
newOption[labelKey] = text;
filteredOptions.push(newOption);
}
return filteredOptions;
}
export default getFilteredOptions;
|
Update how exact match is found
|
Update how exact match is found
|
JavaScript
|
mit
|
ericgio/react-bootstrap-typeahead,Neophy7e/react-bootstrap-typeahead,ericgio/react-bootstrap-typeahead,ericgio/react-bootstrap-typeahead,Neophy7e/react-bootstrap-typeahead,ericgio/react-bootstrap-typeahead,Neophy7e/react-bootstrap-typeahead
|
246e6599f31ef09f5de204f87d6b10d28e15bc58
|
public/js/application.js
|
public/js/application.js
|
var mapSketcherClient;
jQuery(function() {
jQuery.getJSON('/config.json', function(config) {
config.hostname = window.location.hostname
mapSketcherClient = new MapSketcherClient(config);
mapSketcherClient.launch();
});
$("a[rel]").overlay({
mask: {
color: '#ebecff'
, loadSpeed: 200
, opacity: 0.9
}
});
$('#collaborativeRoomSelection form .cancel').click(function(e) {
$('.close').click();
return e.preventDefault();
});
$('#collaborativeRoomSelection form').submit(function(e) {
$('.close').click();
mapSketcherClient.joinColaborativeRoom(this.name.value);
return e.preventDefault();
});
$('#feedback').githubVoice('sagmor', 'mapsketcher');
$('#personal').touchScrollable();
});
|
var mapSketcherClient;
jQuery(function() {
jQuery.getJSON('/config.json', function(config) {
config.hostname = window.location.hostname
mapSketcherClient = new MapSketcherClient(config);
mapSketcherClient.launch();
});
$("a[rel]").overlay({
mask: {
color: '#ebecff'
, loadSpeed: 200
, opacity: 0.9
}
});
$('#collaborativeRoomSelection form .cancel').click(function(e) {
$('.close').click();
return e.preventDefault();
});
$('#collaborativeRoomSelection form').submit(function(e) {
$('.close').click();
mapSketcherClient.joinColaborativeRoom(this.name.value);
return e.preventDefault();
});
$(function() {
$("#collaborativeRoomSelection form input").keypress(function (e) {
if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {
$('#collaborativeRoomSelection form').submit();
return false;
} else {
return true;
}
});
});
$('#feedback').githubVoice('sagmor', 'mapsketcher');
$('#personal').touchScrollable();
});
|
Fix enter key on Collaborative Room selection.
|
Fix enter key on Collaborative Room selection.
|
JavaScript
|
mit
|
sagmor/mapsketcher
|
aa32378fd966b72ec91fa440ba68c079c98e303b
|
lib/node/buffer/buffer.js
|
lib/node/buffer/buffer.js
|
'use strict';
var Node = require('../node');
var TYPE = 'buffer';
var PARAMS = {
source: Node.PARAM.NODE,
radio: Node.PARAM.NUMBER
};
var Buffer = Node.create(TYPE, PARAMS);
module.exports = Buffer;
module.exports.TYPE = TYPE;
module.exports.PARAMS = PARAMS;
module.exports.create = require('./factory').create;
// ------------------------------ PUBLIC API ------------------------------ //
Buffer.prototype._getQuery = function() {
return bufferQuery(this.source.getQuery(), this.columns, this.radio);
};
// ---------------------------- END PUBLIC API ---------------------------- //
function bufferQuery(inputQuery, columnNames, distance) {
return [
'SELECT ST_Buffer(the_geom::geography, ' + distance + ')::geometry the_geom,',
skipColumns(columnNames).join(','),
'FROM (' + inputQuery + ') _camshaft_buffer'
].join('\n');
}
var SKIP_COLUMNS = {
'the_geom': true,
'the_geom_webmercator': true
};
function skipColumns(columnNames) {
return columnNames
.filter(function(columnName) { return !SKIP_COLUMNS[columnName]; });
}
|
'use strict';
var Node = require('../node');
var TYPE = 'buffer';
var PARAMS = {
source: Node.PARAM.NODE,
radio: Node.PARAM.NUMBER
};
var Buffer = Node.create(TYPE, PARAMS);
module.exports = Buffer;
module.exports.TYPE = TYPE;
module.exports.PARAMS = PARAMS;
module.exports.create = require('./factory').create;
// ------------------------------ PUBLIC API ------------------------------ //
Buffer.prototype._getQuery = function() {
return bufferQuery(this.source.getQuery(), this.source.getColumns(), this.radio);
};
// ---------------------------- END PUBLIC API ---------------------------- //
function bufferQuery(inputQuery, columnNames, distance) {
return [
'SELECT ST_Buffer(the_geom::geography, ' + distance + ')::geometry the_geom,',
skipColumns(columnNames).join(','),
'FROM (' + inputQuery + ') _camshaft_buffer'
].join('\n');
}
var SKIP_COLUMNS = {
'the_geom': true,
'the_geom_webmercator': true
};
function skipColumns(columnNames) {
return columnNames
.filter(function(columnName) { return !SKIP_COLUMNS[columnName]; });
}
|
Use columns from source node
|
Use columns from source node
|
JavaScript
|
bsd-3-clause
|
CartoDB/camshaft
|
a96ef266eaf8fe8b1248fe69a6cd51d790f170c0
|
cypress/integration/list_spec.js
|
cypress/integration/list_spec.js
|
describe('The List Page', () => {
beforeEach(() => {
cy.visit('/list.html')
})
it('successfully loads', () => {})
context('navbar', () => {
it("the 'Home' link works", () => {
cy.contains('Home').click({force: true})
cy.title().should('not.equal', 'Error')
})
it("the 'About' link works", () => {
cy.contains('About').click({force: true})
cy.title().should('not.equal', 'Error')
})
})
context('footer', () => {
it("the 'MIT License' link works", () => {
cy.contains('MIT License').click()
})
it("the 'CC BY-NC-SA 4.0' link works", () => {
cy.contains('CC BY-NC-SA 4.0').click()
})
})
})
|
describe('The List Page', () => {
beforeEach(() => {
cy.visit('/list.html')
})
it('successfully loads', () => {})
context('navbar', () => {
it("the 'Home' link works", () => {
cy.contains('Home').click({force: true})
cy.title().should('not.equal', 'Error')
})
it("the 'About' link works", () => {
cy.contains('About').click({force: true})
cy.title().should('not.equal', 'Error')
})
})
context('footer', () => {
it("the 'MIT License' link works", () => {
cy.contains('MIT License').click()
})
it("the 'CC BY-NC-SA 4.0' link works", () => {
cy.contains('CC BY-NC-SA 4.0').click()
})
})
context('the list', () => {
context('location based', () => {
it("the 'TECH404' link works", () => {
cy.contains('TECH404').click()
})
it("the 'Charleston Tech' link works", () => {
cy.contains('Charleston Tech').click()
})
it("the 'memtech' link works", () => {
cy.contains('memtech').click()
})
it("the 'NashDev' link works", () => {
cy.contains('NashDev').click()
})
})
context('it based', () => {
it("the 'APIs You Won't Hate' link works", () => {
cy.contains('APIs You Won't Hate').click()
})
})
context('programming based', () => {
it("the 'Larachat' link works", () => {
cy.contains('Larachat').click()
})
})
})
})
|
Add tests for all current list items
|
Add tests for all current list items
|
JavaScript
|
mit
|
itzsaga/slack-list
|
4ea7ec98ad1b490b3a031f183dab0efc2feaa1d7
|
NotesApp.js
|
NotesApp.js
|
function NoteApplication (author) {
this.author = author;
this.notes = [];
this.create = function(note_content) {
if (note_content.length > 0) {
this.notes.push(note_content);
return "You have created a note";
}
else {
return "You haven't entered a valid note";
}
}
this.listNotes = function(){
if(this.noteArray.length < 1){
console.log("There are no notes in the collection.");
}
else{for(let i = 0; i < this.notes.length; i++){
console.log("\nNote ID: " + this.notes[i]);
console.log(this.notes[i]);
console.log("\n\nBy Author " + this.author + "\n");
}
this.get = function(note_id) {
return "Note ID: " + this.notes[note_id];
}
}
|
function NoteApplication (author) {
this.author = author;
this.notes = [];
this.create = function(note_content) {
if (note_content.length > 0) {
this.notes.push(note_content);
return "You have created a note";
}
else {
return "You haven't entered a valid note";
}
}
this.listNotes = function(){
if (this.noteArray.length < 1){
console.log("There are no notes in the collection.");
}
else {
for(let i = 0; i < this.notes.length; i++) {
console.log("\nNote ID: " + this.notes[i]);
console.log(this.notes[i]);
console.log("\n\nBy Author " + this.author + "\n");
}
}
}
this.get = function(note_id) {
return "Note ID: " + this.notes[note_id];
}
this.search = function(search_text){
if (this.notes.includes(search_text)){
return "Note ID: " + this.note_id + "\n" + note_content + "\n\n" + "By Author " + this.author;
} else {
return "search text not found"
}
this.delete = function(note_id){
delete this.notes[note_id]
}
this.edit = function(note_id, new_content){
this.notes[note_id] = new_content;
}
}
|
Add search, delete and edit methods
|
Add search, delete and edit methods
|
JavaScript
|
mit
|
Mayowa-Adegbola/NotesApp,Mayowa-Adegbola/NotesApp
|
6e5d872baaa1e4e72bfe95a32e2ebf55ea594dde
|
public/app/config/translationConfig.js
|
public/app/config/translationConfig.js
|
angular.module('app').config(function ($translateProvider) {
$translateProvider.useStaticFilesLoader({
prefix: '/locale/locale-',
suffix: '.json'
});
$translateProvider.preferredLanguage('fr_FR');
});
|
angular.module('app').config(function ($translateProvider) {
$translateProvider.useStaticFilesLoader({
prefix: '/locale/locale-',
suffix: '.json'
});
$translateProvider.useSanitizeValueStrategy('escape');
$translateProvider.determinePreferredLanguage();
});
|
Determine preferred language and sanitizy stings
|
Determine preferred language and sanitizy stings
|
JavaScript
|
mit
|
BenjaminBini/dilemme,BenjaminBini/dilemme
|
7003aada95cfe06d1a89843de4c09d1e4ceae3f4
|
test/models/user.js
|
test/models/user.js
|
'use strict'
let imponderous = require('../../index')
class User extends imponderous.Model {
static get schema () {
return {
name: {
index: true
},
email: {
unique: true,
required: true,
validator: 'email'
},
dob: {
type: Date
}
}
}
}
module.exports = User
|
'use strict'
let imponderous = require('../../index')
class User extends imponderous.Model {
static get schema () {
return {
name: {
index: true
},
email: {
unique: true,
required: true,
validator: 'email'
},
dob: {
type: Date
},
spam: {
type: String
}
}
}
}
module.exports = User
|
Make "spam" property on test User model a String.
|
Make "spam" property on test User model a String.
|
JavaScript
|
mit
|
benhutchins/imponderous
|
982fb15759b79e9ec91799c0b841fdd65cf8ccc1
|
examples/cli.js
|
examples/cli.js
|
#!/usr/bin/node
var convert = require('../'),
localProj = require('local-proj'),
fs = require('fs'),
geojson = JSON.parse(fs.readFileSync(process.argv[2])),
mtl = process.argv[3],
mtllibs = process.argv.slice(4),
options = {
projection: localProj.find(geojson),
mtllib: mtllibs
};
if (mtl) {
options.featureMaterial = function(f, cb) {
process.nextTick(function() { cb(undefined, mtl); });
};
}
convert.toObj(geojson, process.stdout, function(err) {
if (err) {
process.stderr.write(err + '\n');
}
}, options);
|
#!/usr/bin/env node
var convert = require('../'),
localProj = require('local-proj'),
fs = require('fs'),
geojson = JSON.parse(fs.readFileSync(process.argv[2])),
mtl = process.argv[3],
mtllibs = process.argv.slice(4),
options = {
projection: localProj.find(geojson),
mtllib: mtllibs
};
if (mtl) {
options.featureMaterial = function(f, cb) {
process.nextTick(function() { cb(undefined, mtl); });
};
}
convert.toObj(geojson, process.stdout, function(err) {
if (err) {
process.stderr.write('Error: ' + JSON.stringify(err, null, 2) + '\n');
}
}, options);
|
Use env to find node
|
Use env to find node
|
JavaScript
|
isc
|
perliedman/geojson2obj
|
063bf15bfa562f3708f8608c92095010b12180d5
|
tests/chat_tests.js
|
tests/chat_tests.js
|
var helpers = require('./../helpers.js')
module.exports = {
'Test Sending Message' : function (browser) {
helpers.setupTest(browser)
helpers.enterText('textarea._1eY_aSnr3MDhZqacV8fugZ', 'test', browser)
browser.end();
}
};
|
var helpers = require('./../helpers.js')
module.exports = {
'Test Sending Message' : function (browser) {
helpers.setupTest(browser)
helpers.enterText('textarea._1eY_aSnr3MDhZqacV8fugZ', 'test', browser)
browser.end();
},
'Check Sent Message' : function (browser) {
helpers.setupTest(browser)
helpers.enterText('textarea._1eY_aSnr3MDhZqacV8fugZ', 'test', browser)
browser
.pause(1000)
.assert.containsText("div.XnctIpXq756HWNS1GLwPT", "test")
.end();
}
};
|
Create test for checking sent message
|
Create test for checking sent message
|
JavaScript
|
mit
|
TheLocust3/Drift-Nightwatch
|
2445cb9f2d7c216c357943932074c5b23b99ead3
|
bin/eslint_d.js
|
bin/eslint_d.js
|
#!/usr/bin/env node
'use strict';
var net = require('net');
var fs = require('fs');
var eslint = require('eslint');
var engine = new eslint.CLIEngine();
var formatter = engine.getFormatter('compact');
var server = net.createServer({
allowHalfOpen: true
}, function (con) {
var data = '';
con.on('data', function (chunk) {
data += chunk;
});
con.on('end', function () {
var report = engine.executeOnFiles([data]);
con.write(formatter(report.results));
con.end();
});
});
var portFile = process.env.HOME + '/.eslint_d_port';
server.listen(function () {
var port = server.address().port;
fs.writeFileSync(portFile, String(port));
});
process.on('exit', function () {
fs.unlinkSync(portFile);
});
process.on('SIGINT', function () {
process.exit();
});
|
#!/usr/bin/env node
'use strict';
var net = require('net');
var fs = require('fs');
var eslint = require('eslint');
var engine = new eslint.CLIEngine();
var formatter = engine.getFormatter('compact');
var server = net.createServer({
allowHalfOpen: true
}, function (con) {
var data = '';
con.on('data', function (chunk) {
data += chunk;
});
con.on('end', function () {
var report = engine.executeOnFiles([data]);
con.write(formatter(report.results));
con.end();
});
});
var portFile = process.env.HOME + '/.eslint_d_port';
server.listen(function () {
var port = server.address().port;
fs.writeFileSync(portFile, String(port));
});
process.on('exit', function () {
fs.unlinkSync(portFile);
});
process.on('SIGTERM', function () {
process.exit();
});
process.on('SIGINT', function () {
process.exit();
});
|
Remove port file on kill
|
Remove port file on kill
|
JavaScript
|
mit
|
mantoni/eslint_d.js,mantoni/eslint_d.js,clessg/eslint_d.js,ruanyl/eslint_d.js
|
617ea4b1ac424daddd02f75727c149b016a26c16
|
client/tests/integration/components/f-account-test.js
|
client/tests/integration/components/f-account-test.js
|
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('f-account', 'Integration | Component | f account', {
integration: true
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.on('myAction', function(val) { ... });
this.render(hbs`{{f-account}}`);
assert.equal(this.$().text().trim(), '');
// Template block usage:
this.render(hbs`
{{#f-account}}
template block text
{{/f-account}}
`);
assert.equal(this.$().text().trim(), 'template block text');
});
|
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('f-account', 'Integration | Component | f account', {
integration: true
});
const accountStub = Ember.Object.create({
name: 'name',
email: 'email',
phone: 'phone'
});
test('it can be submitted', function(assert) {
this.on('submit', () => { assert.ok(true); })
this.render(hbs`{{f-account submit=(action 'submit')}}`);
this.$('button').click()
});
test('it bound to account model', function(assert) {
this.set('account', accountStub);
this.on('submit', () => {});
this.render(hbs`{{f-account account=account submit=(action 'submit')}}`);
this.$('input').val('new name');
this.$('input').change();
this.$('button').click();
assert.ok(this.get('account.name') == 'new name');
});
|
Add test suite for f-account component
|
Add test suite for f-account component
|
JavaScript
|
mit
|
yandex-shri-minsk-2016/yummy-time,yandex-shri-minsk-2016/yummy-time,yandex-shri-minsk-2016/yummy-time
|
955bd081bf37c5fd0aa336767766145197b0aeea
|
client/src/js/views/places-view.js
|
client/src/js/views/places-view.js
|
import View from '../base/view';
import Feed from '../models/feed';
import {capfirst} from '../utils';
import FeedView from './feed-view';
import itemTemplate from '../../templates/feed-place.ejs';
export default class PlacesView extends View {
constructor({app, model}) {
super({app, model});
this.feed = new Feed(
'/places/', {
categories: 'theatre',
fields: 'images,title,id,address',
expand: 'images',
order_by: '-favorites_count',
page_size: 24,
});
this.feedView = new FeedView({app, itemTemplate, model: this.feed});
}
render() {
this.element.innerHTML = '';
this.feedView.render();
this.element.appendChild(this.feedView.element);
this.update();
}
unbind() {
this.feedView.unbind();
super.unbind();
}
onModelChange() {
this.update();
}
update() {
this.updateFeedQuery();
this.updateAppState();
}
updateFeedQuery() {
this.feed.query.set('location', this.model.get('location'));
}
updateAppState() {
const location = this.app.locations.get(this.model.get('location'));
this.app.setTitle(`Театры – ${location.name}`);
this.app.settings.set('location', location.slug);
}
}
|
import View from '../base/view';
import Feed from '../models/feed';
import {capfirst} from '../utils';
import FeedView from './feed-view';
import itemTemplate from '../../templates/feed-place.ejs';
export default class PlacesView extends View {
constructor({app, model}) {
super({app, model});
this.feed = new Feed(
'/places/', {
fields: 'images,title,id,address',
categories: 'theatre,-cafe',
expand: 'images',
order_by: '-favorites_count',
page_size: 24,
});
this.feedView = new FeedView({app, itemTemplate, model: this.feed});
}
render() {
this.element.innerHTML = '';
this.feedView.render();
this.element.appendChild(this.feedView.element);
this.update();
}
unbind() {
this.feedView.unbind();
super.unbind();
}
onModelChange() {
this.update();
}
update() {
this.updateFeedQuery();
this.updateAppState();
}
updateFeedQuery() {
this.feed.query.set('location', this.model.get('location'));
}
updateAppState() {
const location = this.app.locations.get(this.model.get('location'));
this.app.setTitle(`Театры – ${location.name}`);
this.app.settings.set('location', location.slug);
}
}
|
Exclude cafes from place list
|
Exclude cafes from place list
|
JavaScript
|
mit
|
despawnerer/theatrics,despawnerer/theatrics,despawnerer/theatrics
|
197caf952390effc22aaa3c3d11acac23f46a677
|
api/lib/domain/models/Assessment.js
|
api/lib/domain/models/Assessment.js
|
const _ = require('lodash');
const TYPES_OF_ASSESSMENT_NEEDING_USER = ['PLACEMENT', 'CERTIFICATION'];
const { ObjectValidationError } = require('../errors');
class Assessment {
constructor(attributes) {
Object.assign(this, attributes);
}
isCompleted() {
return this.state === 'completed';
}
getLastAssessmentResult() {
if(this.assessmentResults) {
return _(this.assessmentResults).sortBy(['createdAt']).last();
}
return null;
}
getPixScore() {
if(this.getLastAssessmentResult()) {
return this.getLastAssessmentResult().pixScore;
}
return null;
}
getLevel() {
if(this.getLastAssessmentResult()) {
return this.getLastAssessmentResult().level;
}
return null;
}
setCompleted() {
this.state = 'completed';
}
validate() {
if(TYPES_OF_ASSESSMENT_NEEDING_USER.includes(this.type) && typeof this.userId !== 'number') {
return Promise.reject(new ObjectValidationError(`Assessment ${this.type} needs an User Id`));
}
return Promise.resolve();
}
}
module.exports = Assessment;
|
const _ = require('lodash');
const TYPES_OF_ASSESSMENT_NEEDING_USER = ['PLACEMENT', 'CERTIFICATION'];
const { ObjectValidationError } = require('../errors');
class Assessment {
constructor(attributes) {
Object.assign(this, attributes);
}
isCompleted() {
return this.state === 'completed';
}
getLastAssessmentResult() {
if(this.assessmentResults) {
return _(this.assessmentResults).sortBy(['createdAt']).last();
}
return null;
}
getPixScore() {
if(this.getLastAssessmentResult()) {
return this.getLastAssessmentResult().pixScore;
}
return null;
}
getLevel() {
if(this.getLastAssessmentResult()) {
return this.getLastAssessmentResult().level;
}
return null;
}
setCompleted() {
this.state = 'completed';
}
validate() {
console.log('Type of userId');
console.log(typeof this.userId);
console.log(this.userId);
if(TYPES_OF_ASSESSMENT_NEEDING_USER.includes(this.type) && typeof this.userId !== 'number') {
return Promise.reject(new ObjectValidationError(`Assessment ${this.type} needs an User Id`));
}
return Promise.resolve();
}
}
module.exports = Assessment;
|
Add console.log to logs in RA with staging db
|
Add console.log to logs in RA with staging db
|
JavaScript
|
agpl-3.0
|
sgmap/pix,sgmap/pix,sgmap/pix,sgmap/pix
|
5ddfe279f1e6d097113c303333198a741bf5f0dd
|
ghost/admin/models/tag.js
|
ghost/admin/models/tag.js
|
/*global Ghost */
(function () {
'use strict';
Ghost.Collections.Tags = Ghost.ProgressCollection.extend({
url: Ghost.paths.apiRoot + '/tags/'
});
}());
|
/*global Ghost */
(function () {
'use strict';
Ghost.Collections.Tags = Ghost.ProgressCollection.extend({
url: Ghost.paths.apiRoot + '/tags/',
parse: function (resp) {
return resp.tags;
}
});
}());
|
Tag API: Primary Document Format
|
Tag API: Primary Document Format
Closes #2605
- Change tags browse() response to { tags: [...] }
- Update client side collection to use nested tags document
- Update test references to use response.tags
|
JavaScript
|
mit
|
TryGhost/Ghost,TryGhost/Ghost,TryGhost/Ghost
|
059c261d2b8bdce31133ac9875a59504d89c4f8f
|
app/routes/courses.server.routes.js
|
app/routes/courses.server.routes.js
|
'use strict';
module.exports = function(app) {
var users = require('../../app/controllers/users.server.controller');
var courses = require('../../app/controllers/courses.server.controller');
var authorized = ['manager', 'admin'];
// Courses Routes
app.route('/courses')
.get(users.requiresLogin, users.hasAuthorization(authorized), courses.list)
.post(users.requiresLogin, users.hasAuthorization(authorized), courses.create);
app.route('/list/myCourses')
.get(users.requiresLogin, users.hasAuthorization(['teacher']), courses.listMyCourses);
app.route('/courses/:courseId')
.post(users.requiresLogin, users.hasAuthorization(authorized), courses.create)
.get(users.requiresLogin, users.hasAuthorization(authorized), courses.read)
.put(users.requiresLogin, users.hasAuthorization(authorized), courses.update)
.delete(users.requiresLogin, users.hasAuthorization(authorized), courses.delete);
// Finish by binding the Course middleware
app.param('courseId', courses.courseByID);
};
|
'use strict';
module.exports = function(app) {
var users = require('../../app/controllers/users.server.controller');
var courses = require('../../app/controllers/courses.server.controller');
var authorized = ['manager', 'admin'];
// Courses Routes
app.route('/courses')
.get(users.requiresLogin, users.hasAuthorization(authorized), courses.list)
.post(users.requiresLogin, users.hasAuthorization(authorized), courses.create);
app.route('/list/myCourses')
.get(users.requiresLogin, users.hasAuthorization(['teacher']), courses.listMyCourses);
app.route('/courses/:courseId')
.post(users.requiresLogin, users.hasAuthorization(authorized), courses.create)
.get(users.requiresLogin, users.hasAuthorization(['manager', 'admin', 'teacher']), courses.read)
.put(users.requiresLogin, users.hasAuthorization(authorized), courses.update)
.delete(users.requiresLogin, users.hasAuthorization(authorized), courses.delete);
// Finish by binding the Course middleware
app.param('courseId', courses.courseByID);
};
|
Update permission to show course detail for teachers
|
Update permission to show course detail for teachers
|
JavaScript
|
mit
|
combefis/ECM,combefis/ECM,combefis/ECM
|
f54d70fdd2c28ca99d94eb5e9cb10004418e7338
|
allcount.js
|
allcount.js
|
#!/usr/bin/env node
var argv = require('minimist')(process.argv.slice(2));
var injection = require('./services/injection');
var _ = require('lodash');
var port = argv.port || process.env.PORT || 9080;
var gitUrl = argv.git || process.env.GIT_URL;
var dbUrl = argv.db || process.env.DB_URL;
if (!gitUrl || !dbUrl) {
console.log('Usage: allcountjs --git <Application Git URL> --db <Application MongoDB URL> -port [Application HTTP port]');
process.exit(0);
}
require('./allcount-server.js');
injection.bindFactory('port', port);
injection.bindFactory('dbUrl', dbUrl);
if (dbUrl.indexOf('postgres') !== -1) {
injection.bindFactory('storageDriver', require('./services/sql-storage-driver'));
injection.bindFactory('dbClient', 'pg');
}
injection.bindFactory('gitRepoUrl', gitUrl);
injection.installModulesFromPackageJson("package.json");
var server = injection.inject('allcountServerStartup');
server.startup(function (errors) {
if (errors) {
if (_.isObject(errors)) {
throw new Error(errors);
} else {
throw new Error(errors.join('\n'));
}
}
});
|
#!/usr/bin/env node
var argv = require('minimist')(process.argv.slice(2));
var injection = require('./services/injection');
var _ = require('lodash');
var port = argv.port || process.env.PORT || 9080;
var gitUrl = argv.git || process.env.GIT_URL;
var dbUrl = argv.db || process.env.DB_URL;
if (!gitUrl || !dbUrl) {
console.log('Usage: allcountjs --git <Application Git URL> --db <Application MongoDB URL> -port [Application HTTP port]');
process.exit(0);
}
require('./allcount-server.js');
injection.bindFactory('port', port);
injection.bindFactory('dbUrl', dbUrl);
if (dbUrl.indexOf('postgres') !== -1) {
injection.bindFactory('storageDriver', require('./services/sql-storage-driver'));
injection.bindFactory('dbClient', 'pg');
}
injection.bindFactory('gitRepoUrl', gitUrl);
injection.installModulesFromPackageJson("package.json");
var server = injection.inject('allcountServerStartup');
server.startup(function (errors) {
if (errors) {
if (_.isArray(errors)) {
throw new Error(errors.join('\n'));
} else {
throw errors;
}
}
});
|
Fix exception when one error is thrown during startup
|
Fix exception when one error is thrown during startup
|
JavaScript
|
mit
|
allcount/allcountjs,chikh/allcountjs,allcount/allcountjs,chikh/allcountjs
|
f92e1de51f035f660d7c736e2869d3c9fa9a53f8
|
build/config.js
|
build/config.js
|
module.exports = {
assetPath: '{{govukAssetPath}}',
afterHeader: '{{$afterHeader}}{{/afterHeader}}',
bodyClasses: '{{$bodyClasses}}{{/bodyClasses}}',
bodyEnd: '{{$bodyEnd}}{{/bodyEnd}}',
content: '{{$main}}{{/main}}',
cookieMessage: '{{$cookieMessage}}{{/cookieMessage}}',
footerSupportLinks: '{{$footerSupportLinks}}{{/footerSupportLinks}}',
footerTop: '{{$footerTop}}{{/footerTop}}',
head: '{{$head}}{{/head}}',
headerClass: '{{$headerClass}}{{/headerClass}}',
insideHeader: '{{$insideHeader}}{{/insideHeader}}',
pageTitle: '{{$pageTitle}}{{/pageTitle}}',
propositionHeader: '{{$propositionHeader}}{{/propositionHeader}}',
skipLinkMessage: '{{$skipLinkMessage}}Skip to main content{{/skipLinkMessage}}',
globalHeaderText: '{{$globalHeaderText}}GOV.UK{{/globalHeaderText}}',
licenceMessage: '{{$licenceMessage}}<p>All content is available under the <a href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence v3.0</a>, except where otherwise stated</p>{{/licenceMessage}}',
crownCopyrightMessage: '{{$crownCopyrightMessage}}© Crown copyright{{/crownCopyrightMessage}}'
};
|
module.exports = {
htmlLang: '{{htmlLang}}',
assetPath: '{{govukAssetPath}}',
afterHeader: '{{$afterHeader}}{{/afterHeader}}',
bodyClasses: '{{$bodyClasses}}{{/bodyClasses}}',
bodyEnd: '{{$bodyEnd}}{{/bodyEnd}}',
content: '{{$main}}{{/main}}',
cookieMessage: '{{$cookieMessage}}{{/cookieMessage}}',
footerSupportLinks: '{{$footerSupportLinks}}{{/footerSupportLinks}}',
footerTop: '{{$footerTop}}{{/footerTop}}',
head: '{{$head}}{{/head}}',
headerClass: '{{$headerClass}}{{/headerClass}}',
insideHeader: '{{$insideHeader}}{{/insideHeader}}',
pageTitle: '{{$pageTitle}}{{/pageTitle}}',
propositionHeader: '{{$propositionHeader}}{{/propositionHeader}}',
skipLinkMessage: '{{$skipLinkMessage}}Skip to main content{{/skipLinkMessage}}',
globalHeaderText: '{{$globalHeaderText}}GOV.UK{{/globalHeaderText}}',
licenceMessage: '{{$licenceMessage}}<p>All content is available under the <a href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence v3.0</a>, except where otherwise stated</p>{{/licenceMessage}}',
crownCopyrightMessage: '{{$crownCopyrightMessage}}© Crown copyright{{/crownCopyrightMessage}}'
};
|
Add local for htmlLang into template
|
Add local for htmlLang into template
|
JavaScript
|
mit
|
UKHomeOffice/govuk-template-compiler,UKHomeOffice/govuk-template-compiler
|
25b6749b21e4f4f17b7abb239ce2921d279b0ad3
|
app/main.js
|
app/main.js
|
let http = require('http');
let url = require('url');
let fs = require('fs');
http.createServer(function (req, res) {
let q = url.parse(req.url, true);
let filename = "app/." + q.pathname;
fs.readFile(filename, function (err, data) {
if (err) {
res.writeHead(404, {'Content-Type': 'text/html'});
return res.end("404 Not Found");
}
let mimeType = 'text/html';
if (filename.endsWith(".css")) {
mimeType = "text/css";
} else if (filename.endsWith(".js")) {
mimeType = "application/javascript";
}
res.writeHead(200, {'Content-Type': mimeType});
res.write(data);
return res.end();
});
}).listen(8080);
|
let http = require('http');
let url = require('url');
let fs = require('fs');
http.createServer(function (req, res) {
let q = url.parse(req.url, true);
let filename = "app/." + q.pathname;
fs.readFile(filename, function (err, data) {
if (err) {
res.writeHead(404, {'Content-Type': 'text/html'});
return res.end("404 Not Found");
}
let mimeType = 'text/html';
if (filename.endsWith(".css")) {
mimeType = "text/css";
} else if (filename.endsWith(".js")) {
mimeType = "application/javascript";
}
res.writeHead(200, {'Content-Type': mimeType});
res.write(data);
return res.end();
});
}).listen(8080);
console.log("Web server is running...");
console.log("URL to access the app: http://localhost:8080/app.html");
|
Add informational message when running server
|
Add informational message when running server
|
JavaScript
|
mit
|
adilek/jirtdan,adilek/jirtdan
|
b6abcef1e466aa09ab920cf56bfe806e71f727ad
|
src/javascript/binary/base/__tests__/storage.js
|
src/javascript/binary/base/__tests__/storage.js
|
var expect = require('chai').expect;
var storage = require('../storage');
var utility = require('../utility');
describe('text.localize', function() {
var text = new storage.Localizable({
key1: 'value',
key2: 'value [_1]',
});
it('should try to return a string from the localised texts', function() {
expect(text.localize('key')).to.equal('key');
expect(text.localize('key1')).to.equal('value');
});
it('should only template when required', function() {
expect(text.localize('key2')).to.equal('value [_1]');
// inject global template function
global.template = utility.template;
expect(text.localize('key2', [1])).to.equal('value 1');
delete global.template;
});
});
|
var expect = require('chai').expect;
var storage = require('../storage');
var utility = require('../utility');
describe('text.localize', function() {
var text = new storage.Localizable({
key1: 'value',
key2: 'value [_1]',
'You_can_view_your_[_1]trading_limits_here_': 'Ihre [_1] Handelslimits sind hier ersichtlich.',
});
it('should try to return a string from the localised texts', function() {
expect(text.localize('key')).to.equal('key');
expect(text.localize('key1')).to.equal('value');
expect(text.localize('You can view your [_1]trading limits here.'))
.to.equal('Ihre [_1] Handelslimits sind hier ersichtlich.');
});
it('should only template when required', function() {
expect(text.localize('key2')).to.equal('value [_1]');
// inject global template function
global.template = utility.template;
expect(text.localize('key2', [1])).to.equal('value 1');
expect(text.localize('You can view your [_1]trading limits here.', ['something']))
.to.equal('Ihre something Handelslimits sind hier ersichtlich.');
delete global.template;
});
});
|
Test with data from real localisation
|
Test with data from real localisation
|
JavaScript
|
apache-2.0
|
negar-binary/binary-static,negar-binary/binary-static,negar-binary/binary-static,4p00rv/binary-static,fayland/binary-static,fayland/binary-static,teo-binary/binary-static,teo-binary/binary-static,4p00rv/binary-static,binary-com/binary-static,binary-static-deployed/binary-static,ashkanx/binary-static,kellybinary/binary-static,ashkanx/binary-static,raunakkathuria/binary-static,kellybinary/binary-static,teo-binary/binary-static,teo-binary/binary-static,binary-static-deployed/binary-static,binary-static-deployed/binary-static,ashkanx/binary-static,raunakkathuria/binary-static,kellybinary/binary-static,binary-com/binary-static,4p00rv/binary-static,raunakkathuria/binary-static,fayland/binary-static,fayland/binary-static,binary-com/binary-static
|
1467a50893393792b8ec47df9796733a40877e7d
|
lib/helpers/bindResources.js
|
lib/helpers/bindResources.js
|
'use strict'
const resources = require('../resources')
const querySyntax = require('./querySyntax')
module.exports = (propToBind, dispatch) => {
resources.forEach(resource => {
propToBind[resource.name] = query =>
new Promise((resolve, reject) => {
let config = { params: querySyntax(query) }
if (query.noCache) {
config.headers = { 'Cache-Control': 'no-cache' }
}
let resourceURL = resource.name
if (query.id) {
resourceURL += '/' + query.id
}
dispatch.get(resourceURL, config)
.then(res => resolve(res.data))
.catch(reject)
})
})
}
|
'use strict'
const resources = require('../resources')
const querySyntax = require('./querySyntax')
module.exports = (propToBind, dispatch) => {
resources.forEach(resource => {
propToBind[resource.name] = query => {
let resourceURL = resource.name
let config = null
if (query) {
config = { params: querySyntax(query) }
if (query.noCache) {
config.headers = { 'Cache-Control': 'no-cache' }
}
if (Number.isInteger(query) || query.id) {
resourceURL += '/' + (query || query.id)
}
}
return new Promise((resolve, reject) => {
dispatch.get(resourceURL, config)
.then(res => resolve(res.data))
.catch(reject)
})
}
})
}
|
Adjust bindResource and allow integer query
|
Adjust bindResource and allow integer query
|
JavaScript
|
mit
|
saschabratton/sparkpay
|
558bd4544d76beed8e3d2f8c03c8e228227aed46
|
gulpfile.js
|
gulpfile.js
|
var gulp = require('gulp')
var connect = require('gulp-connect')
var browserify = require('browserify')
var source = require('vinyl-source-stream');
var gulp = require('gulp');
var mocha = require('gulp-mocha');
gulp.task('connect', function () {
connect.server({
root: '',
port: 4000
})
})
gulp.task('build', function() {
// Grabs the app.js file
return browserify('./js/app.js')
// bundles it and creates a file called build.js
.bundle()
.pipe(source('build.js'))
// saves it the js/ directory
.pipe(gulp.dest('./js/'));
})
gulp.task('watch', function() {
gulp.watch(['./**/*', '!./js/build.js'], { interval: 500 }, ['build'])
})
gulp.task('test', function() {
connect.server({
root: '',
port: 4000
});
return gulp.src('./test/test.js').pipe(mocha())
.once('end', function () {
process.exit();
});
})
gulp.task('default', ['connect', 'watch'])
|
var gulp = require('gulp')
var connect = require('gulp-connect')
var browserify = require('browserify')
var source = require('vinyl-source-stream');
var gulp = require('gulp');
var mocha = require('gulp-mocha');
gulp.task('connect', function () {
connect.server({
root: '',
port: 4000
})
})
gulp.task('build', function() {
// Grabs the app.js file
return browserify('./js/app.js')
// bundles it and creates a file called build.js
.bundle()
.pipe(source('build.js'))
// saves it the js/ directory
.pipe(gulp.dest('./js/'));
})
gulp.task('watch', function() {
gulp.watch(['./**/*', '!./js/build.js'], { interval: 500 }, ['build'])
})
gulp.task('test', function() {
//Creates local server, runs mocha tests, then exits process (therefore killing server)
connect.server({
root: '',
port: 4000
});
return gulp.src('./test/test.js').pipe(mocha())
.once('end', function () {
process.exit();
});
})
gulp.task('default', ['connect', 'watch'])
|
Add comment explaining what test task is
|
Add comment explaining what test task is
|
JavaScript
|
mit
|
Martin-Cox/AirFlow,Martin-Cox/AirFlow
|
d55fdf086698484fffdbfc095ab7547b05daa0d7
|
gulpfile.js
|
gulpfile.js
|
var gulp = require('gulp');
var concat = require('gulp-concat');
var sass = require('gulp-sass');
var minifyCSS = require('gulp-minify-css');
var uglify = require('gulp-uglify');
var paths = {
js: ['js/**.js'],
sass: {
src: ['css/sass/**.scss'],
build: 'css/'
}
};
gulp.task('js', function() {
gulp.src(paths.js)
.pipe(uglify())
.pipe(concat('firstpr.js'))
.pipe(gulp.dest('.'));
});
gulp.task('sass', function () {
gulp.src( paths.sass.src )
.pipe(sass())
.pipe(gulp.dest( paths.sass.build ))
.pipe(minifyCSS({keepSpecialComments: 0}))
.pipe(concat('firstpr.css'))
.pipe(gulp.dest('.'));
});
// Continuous build
gulp.task('watch', function() {
gulp.watch( paths.js, ['js']);
gulp.watch( paths.sass.src, ['sass']);
});
gulp.task('default', ['js', 'sass', 'watch']);
|
var gulp = require('gulp');
var concat = require('gulp-concat');
var sass = require('gulp-sass');
var minifyCSS = require('gulp-minify-css');
var uglify = require('gulp-uglify');
var paths = {
js: ['js/**.js'],
sass: {
src: ['css/sass/**.scss'],
build: 'css/'
}
};
gulp.task('js', function() {
gulp.src(paths.js)
.pipe(uglify())
.pipe(concat('firstpr.js'))
.pipe(gulp.dest('.'));
});
gulp.task('sass', function () {
gulp.src( paths.sass.src )
.pipe(sass())
.pipe(gulp.dest( paths.sass.build ))
.pipe(minifyCSS({keepSpecialComments: 0}))
.pipe(concat('firstpr.css'))
.pipe(gulp.dest('.'));
});
// Continuous build
gulp.task('watch', function() {
gulp.watch( paths.js, ['js']);
gulp.watch( paths.sass.src, ['sass']);
});
gulp.task('build', ['js', 'sass']);
gulp.task('default', ['build', 'watch']);
|
Build gulp task for generating css and js
|
Build gulp task for generating css and js
|
JavaScript
|
mit
|
andrew/first-pr,andrew/first-pr
|
467cab061de0819402d424d2c340c91a445c4f9d
|
src/components/App/App.js
|
src/components/App/App.js
|
import React, { PropTypes } from 'react';
import ReactDOM from 'react-dom';
import { Link } from 'react-router';
import { createPureComponent } from 'utils/createPureComponent';
export default createPureComponent({
displayName: 'App',
renderLink() {
const isEditing = this.props.location.pathname === '/editor';
const to = isEditing ? '/' : '/editor';
const text = isEditing ? 'Play this level' : 'Edit this level';
return (<Link to={to}>{text}</Link>);
},
render() {
return (
<div className="app">
{this.props.children}
</div>
);
}
});
|
import React, { PropTypes } from 'react';
import ReactDOM from 'react-dom';
import { Link } from 'react-router';
import { createPureComponent } from 'utils/createPureComponent';
export default createPureComponent({
displayName: 'App',
renderLink() {
const isEditing = this.props.location.pathname === '/editor';
const to = isEditing ? '/' : '/editor';
const text = isEditing ? 'Play this level' : 'Edit this level';
return (<Link to={to}>{text}</Link>);
},
render() {
return (
<div className="app">
{this.props.children}
<nav className="navbar">
<div className="navbar__item">
{this.renderLink()}
</div>
<div className="navbar__item">
<iframe
src="https://ghbtns.com/github-btn.html?user=stevenhauser&repo=i-have-to-return-some-videotapes&type=star"
className="navbar__btn"
frameBorder="0" scrolling="0" width="50px" height="20px"
/>
</div>
</nav>
</div>
);
}
});
|
Revert "Revert "Revert "Revert "Revert "Revert "Revert "kein editor"""""""
|
Revert "Revert "Revert "Revert "Revert "Revert "Revert "kein editor"""""""
This reverts commit 6795b41f5129310bfe89df0ca9bb904b00913597.
|
JavaScript
|
mit
|
mattesja/mygame,mattesja/mygame
|
d3dd2c2766f04d3984a2445d110f4b370e860ec9
|
src/lib/core/hyperline.js
|
src/lib/core/hyperline.js
|
import React from 'react'
import PropTypes from 'prop-types'
import Component from 'hyper/component'
import decorate from 'hyper/decorate'
class HyperLine extends Component {
static propTypes() {
return {
plugins: PropTypes.array.isRequired
}
}
styles() {
return {
line: {
display: 'flex',
alignItems: 'center',
position: 'absolute',
overflow: 'hidden',
bottom: '-1px',
width: '100%',
height: '18px',
font: 'bold 10px Monospace',
pointerEvents: 'none',
background: 'rgba(0, 0, 0, 0.08)',
margin: '10px 10px 0 10px'
},
wrapper: {
display: 'flex',
flexShrink: '0',
alignItems: 'center',
paddingLeft: '10px',
paddingRight: '10px'
}
}
}
template(css) {
const { plugins } = this.props
return (
<div className={css('line')} {...this.props}>
{plugins.map((Component, index) => (
<div key={index} className={css('wrapper')}>
<Component />
</div>
))}
</div>
)
}
}
export default decorate(HyperLine, 'HyperLine')
|
import React from 'react'
import PropTypes from 'prop-types'
import Component from 'hyper/component'
import decorate from 'hyper/decorate'
class HyperLine extends Component {
static propTypes() {
return {
plugins: PropTypes.array.isRequired
}
}
styles() {
return {
line: {
display: 'flex',
alignItems: 'center',
position: 'absolute',
overflow: 'hidden',
bottom: '-1px',
width: '100%',
height: '18px',
font: 'bold 10px Monospace',
pointerEvents: 'none',
background: 'rgba(0, 0, 0, 0.08)',
margin: '10px 0',
padding: '0 10px',
},
wrapper: {
display: 'flex',
flexShrink: '0',
alignItems: 'center',
paddingLeft: '10px',
paddingRight: '10px'
}
}
}
template(css) {
const { plugins } = this.props
return (
<div className={css('line')} {...this.props}>
{plugins.map((Component, index) => (
<div key={index} className={css('wrapper')}>
<Component />
</div>
))}
</div>
)
}
}
export default decorate(HyperLine, 'HyperLine')
|
Use padding instead of margin for x-axis.
|
Use padding instead of margin for x-axis.
The overflow: hidden; property on the wrapper isn't taking margin into
account for the x-axis. By using padding instead, the x-axis overflow
is correctly hidden.
|
JavaScript
|
mit
|
Hyperline/hyperline
|
f4985c3b6a55f316f3818ff821ee84718b715459
|
app/js/init.js
|
app/js/init.js
|
document.addEventListener('DOMContentLoaded', () => {
setTimeout(window.browserCheck, 1000);
window.setupGol();
window.navUpdate(true);
window.setupLaptops();
window.onscroll();
// Configure scrolling when navigation trigger clicked
document.getElementById('navigation-trigger').addEventListener('click', () => {
window.scrollTo({ top: window.innerHeight / 2, behavior: 'smooth' });
});
});
|
document.addEventListener('DOMContentLoaded', () => {
setTimeout(window.browserCheck, 1000);
window.setupGol();
window.navUpdate(true);
window.setupLaptops();
window.onscroll();
// Configure scrolling when navigation trigger clicked
document.getElementById('navigation-trigger').addEventListener('click', () => {
// Scroll to top if user is scrolled more than 10 pixels, otherwise scroll to open navigation
const scrollDest = window.scrollY < 10 ? window.innerHeight / 2 : 0;
window.scrollTo({ top: scrollDest, behavior: 'smooth' });
});
});
|
Allow going back up by clicking navigation toggle again
|
Allow going back up by clicking navigation toggle again
|
JavaScript
|
mit
|
controversial/controversial.io,controversial/controversial.io,controversial/controversial.io
|
cb60f989e6b0174f3a02a69ae9203f52fd163f2e
|
app/assets/javascripts/map/views/layers/LandRightsLayer.js
|
app/assets/javascripts/map/views/layers/LandRightsLayer.js
|
/**
* The LandRights layer module.
*
* @return LandRightsLayer class (extends CartoDBLayerClass)
*/
define([
'abstract/layer/CartoDBLayerClass',
'text!map/cartocss/land_rights.cartocss'
], function(CartoDBLayerClass, LandRightsCartocss) {
'use strict';
var LandRightsLayer = CartoDBLayerClass.extend({
options: {
sql: "with gfw_land_rights_1 as (SELECT cartodb_id, the_geom_webmercator, name, category, doc_status , country, data_src FROM gfw_land_rights_1 union SELECT (cartodb_id+100000) as cartodb_id, the_geom_webmercator, name, category, doc_status, country, data_src FROM gfw_land_rights_pt) select cartodb_id, the_geom_webmercator, name, category, doc_status, country, data_src source, 'gfw_land_rights_1' AS tablename, 'gfw_land_rights_1' as layer, {analysis} AS analysis from gfw_land_rights_1",
infowindow: true,
interactivity: 'cartodb_id, tablename, layer, name, country, source, doc_status, analysis',
analysis: true,
cartocss: LandRightsCartocss
}
});
return LandRightsLayer;
});
|
/**
* The LandRights layer module.
*
* @return LandRightsLayer class (extends CartoDBLayerClass)
*/
define([
'abstract/layer/CartoDBLayerClass'
], function(CartoDBLayerClass) {
'use strict';
var LandRightsLayer = CartoDBLayerClass.extend({
options: {
sql: 'SELECT the_geom_webmercator, cartodb_id, name, country, legal_term, legal_reco as legal_recognition, ROUND(area_ha::text::float) AS area_ha, \'{tableName}\' AS tablename, \'{tableName}\' as layer, {analysis} AS analysis FROM {tableName}',
infowindow: true,
interactivity: 'cartodb_id, tablename, layer, name, country, legal_term, legal_recognition, area_ha, analysis',
analysis: true
}
});
return LandRightsLayer;
});
|
Revert it to the last state before the update
|
Revert it to the last state before the update
|
JavaScript
|
mit
|
Vizzuality/gfw,Vizzuality/gfw
|
508c3e0267346d6a253dccc7ab1c6014a843c50d
|
spec/backend/integration/branchesIntegrationSpec.js
|
spec/backend/integration/branchesIntegrationSpec.js
|
'use strict';
let request = require('supertest-as-promised');
const instance_url = process.env.INSTANCE_URL;
let app;
let listOfBranches = (res) => {
if (!('branches' in res.body)) {
throw new Error('branches not found');
}
};
let getBranches = () => {
return request(app)
.get('/branches')
.expect(200)
.expect(listOfBranches);
};
describe('Branches Integration Test', () => {
beforeEach(() => {
app = instance_url ? instance_url : require('../../../src/backend/app');
});
it('should return a list of branches', (done) => {
getBranches()
.then(done, done.fail);
}, 60000);
});
|
'use strict';
const specHelper = require('../../support/specHelper'),
Branch = specHelper.models.Branch,
Group = specHelper.models.Group;
let request = require('supertest-as-promised');
const instanceUrl = process.env.INSTANCE_URL;
let app;
function seed() {
let branchWithGroups;
return Branch.create({
id: 'fd4f7e67-66fe-4f7a-86a6-f031cb3af174',
name: 'Branch name groups'
}).then(function(branch) {
branchWithGroups = branch;
return Group.create({
name: 'Waiting List',
description: 'This is a description of the waiting list'
});
})
.then(function(group) {
return branchWithGroups.addGroup(group);
});
}
let listOfBranches = (res) => {
if (!('branches' in res.body)) {
throw new Error('branches not found');
}
};
let listOfGroups = (res) => {
if (!('groups' in res.body)) {
throw new Error('groups not found');
}
};
let getBranches = () => {
return request(app)
.get('/branches')
.expect(200)
.expect(listOfBranches);
};
let getGroupsForBranch = () => {
const branchId = 'fd4f7e67-66fe-4f7a-86a6-f031cb3af174';
return request(app)
.get(`/branches/${branchId}/groups`)
.expect(200)
.expect(listOfGroups);
};
describe('Branches Integration Test', () => {
beforeEach((done) => {
app = instanceUrl ? instanceUrl : require('../../../src/backend/app');
seed().nodeify(done);
});
it('should return a list of branches', (done) => {
getBranches()
.then(done, done.fail);
}, 60000);
it('should return a list of groups for a branch', (done) => {
getGroupsForBranch()
.then(done, done.fail);
}, 60000);
});
|
Add route test for branch groups and set to use spec helper
|
Add route test for branch groups and set to use spec helper
|
JavaScript
|
agpl-3.0
|
rabblerouser/core,rabblerouser/core,rabblerouser/core
|
857d37d8682fc94af2fc9bdd35f35fbb77376f63
|
js/fileUtils.js
|
js/fileUtils.js
|
export async function genArrayBufferFromFileReference(fileReference) {
return new Promise((resolve, reject) => {
const reader = new FileReader();
reader.onload = function(e) {
resolve(e.target.result);
};
reader.onerror = function(e) {
reject(e);
};
reader.readAsArrayBuffer(fileReference);
});
}
export async function genArrayBufferFromUrl(url) {
return new Promise((resolve, reject) => {
const oReq = new XMLHttpRequest();
oReq.open("GET", url, true);
oReq.responseType = "arraybuffer";
oReq.onload = () => {
const arrayBuffer = oReq.response; // Note: not oReq.responseText
resolve(arrayBuffer);
};
oReq.onerror = reject;
oReq.send(null);
});
}
export async function promptForFileReferences() {
return new Promise(resolve => {
// Does this represent a memory leak somehow?
// Can this fail? Do we ever reject?
const fileInput = document.createElement("input");
fileInput.type = "file";
// Not entirely sure why this is needed, since the input
// was just created, but somehow this helps prevent change
// events from getting swallowed.
// https://stackoverflow.com/a/12102992/1263117
fileInput.value = null;
fileInput.addEventListener("change", e => {
resolve(e.target.files);
});
fileInput.click();
});
}
|
export async function genArrayBufferFromFileReference(fileReference) {
return new Promise((resolve, reject) => {
const reader = new FileReader();
reader.onload = function(e) {
resolve(e.target.result);
};
reader.onerror = function(e) {
reject(e);
};
reader.readAsArrayBuffer(fileReference);
});
}
export async function genArrayBufferFromUrl(url) {
return new Promise((resolve, reject) => {
const oReq = new XMLHttpRequest();
oReq.open("GET", url, true);
oReq.responseType = "arraybuffer";
oReq.onload = () => {
const arrayBuffer = oReq.response; // Note: not oReq.responseText
resolve(arrayBuffer);
};
oReq.onerror = reject;
oReq.send(null);
});
}
export async function promptForFileReferences() {
return new Promise(resolve => {
// Does this represent a memory leak somehow?
// Can this fail? Do we ever reject?
const fileInput = document.createElement("input");
fileInput.type = "file";
fileInput.multiple = true;
// Not entirely sure why this is needed, since the input
// was just created, but somehow this helps prevent change
// events from getting swallowed.
// https://stackoverflow.com/a/12102992/1263117
fileInput.value = null;
fileInput.addEventListener("change", e => {
resolve(e.target.files);
});
fileInput.click();
});
}
|
Allow multiple files to be loaded via eject
|
Allow multiple files to be loaded via eject
|
JavaScript
|
mit
|
captbaritone/winamp2-js,captbaritone/winamp2-js,captbaritone/winamp2-js
|
6ed9ff28b456d033fafd5c9defa31486a2e84c09
|
scripts/buildexamples.js
|
scripts/buildexamples.js
|
var childProcess = require('child_process');
var fs = require('fs');
process.chdir('examples');
childProcess.execSync('npm install', { stdio: 'inherit' });
childProcess.execSync('npm run update', { stdio: 'inherit' });
process.chdir('..');
// Build all of the example folders.
dirs = fs.readdirSync('examples');
var cmd;
for (var i = 0; i < dirs.length; i++) {
if (dirs[i].indexOf('.') !== -1) {
continue;
}
if (dirs[i].indexOf('node_modules') !== -1) {
continue;
}
console.log('Building: ' + dirs[i] + '...');
process.chdir('examples/' + dirs[i]);
childProcess.execSync('npm run build', { stdio: 'inherit' });
process.chdir('../..');
}
|
var childProcess = require('child_process');
var fs = require('fs');
process.chdir('examples');
childProcess.execSync('npm install', { stdio: 'inherit' });
childProcess.execSync('npm run update', { stdio: 'inherit' });
process.chdir('..');
// Build all of the example folders.
dirs = fs.readdirSync('examples');
var cmd;
for (var i = 0; i < dirs.length; i++) {
if (dirs[i].indexOf('.') !== -1) {
continue;
}
if (dirs[i].indexOf('node_modules') !== -1) {
continue;
}
console.log('\n***********\nBuilding: ' + dirs[i] + '...');
process.chdir('examples/' + dirs[i]);
childProcess.execSync('npm run build', { stdio: 'inherit' });
process.chdir('../..');
}
console.log('\n********\nDone!');
|
Make examples build more verbose
|
Make examples build more verbose
|
JavaScript
|
bsd-3-clause
|
jupyter/jupyterlab,charnpreetsingh185/jupyterlab,jupyter/jupyterlab,charnpreetsingh185/jupyterlab,jupyter/jupyterlab,eskirk/jupyterlab,jupyter/jupyterlab,eskirk/jupyterlab,TypeFox/jupyterlab,TypeFox/jupyterlab,eskirk/jupyterlab,TypeFox/jupyterlab,TypeFox/jupyterlab,eskirk/jupyterlab,TypeFox/jupyterlab,eskirk/jupyterlab,charnpreetsingh185/jupyterlab,jupyter/jupyterlab,charnpreetsingh185/jupyterlab,charnpreetsingh185/jupyterlab
|
baf3f40889a2d00ce0dec7fa98e0d9b2b170ed68
|
src/tizen/AccelerometerProxy.js
|
src/tizen/AccelerometerProxy.js
|
(function(win) {
var cordova = require('cordova'),
Acceleration = require('org.apache.cordova.device-motion.Acceleration'),
accelerometerCallback = null;
module.exports = {
start: function (successCallback, errorCallback) {
if (accelerometerCallback) {
win.removeEventListener("devicemotion", accelerometerCallback, true);
}
accelerometerCallback = function (motion) {
successCallback({
x: motion.accelerationIncludingGravity.x,
y: motion.accelerationIncludingGravity.y,
z: motion.accelerationIncludingGravity.z,
timestamp: new Date().getTime()
});
};
win.addEventListener("devicemotion", accelerometerCallback, true);
},
stop: function (successCallback, errorCallback) {
win.removeEventListener("devicemotion", accelerometerCallback, true);
accelerometerCallback = null;
}
};
require("cordova/tizen/commandProxy").add("Accelerometer", module.exports);
}(window));
|
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://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.
*
*/
(function(win) {
var cordova = require('cordova'),
Acceleration = require('org.apache.cordova.device-motion.Acceleration'),
accelerometerCallback = null;
module.exports = {
start: function (successCallback, errorCallback) {
if (accelerometerCallback) {
win.removeEventListener("devicemotion", accelerometerCallback, true);
}
accelerometerCallback = function (motion) {
successCallback({
x: motion.accelerationIncludingGravity.x,
y: motion.accelerationIncludingGravity.y,
z: motion.accelerationIncludingGravity.z,
timestamp: new Date().getTime()
});
};
win.addEventListener("devicemotion", accelerometerCallback, true);
},
stop: function (successCallback, errorCallback) {
win.removeEventListener("devicemotion", accelerometerCallback, true);
accelerometerCallback = null;
}
};
require("cordova/tizen/commandProxy").add("Accelerometer", module.exports);
}(window));
|
Add license headers to Tizen code
|
CB-6465: Add license headers to Tizen code
|
JavaScript
|
apache-2.0
|
purplecabbage/cordova-plugin-device-motion,corimf/cordova-plugin-device-motion,jomo0825/cordova-plugin-device-motion,jomo0825/cordova-plugin-device-motion,purplecabbage/cordova-plugin-device-motion,blackberry-webworks/cordova-plugin-device-motion,apache/cordova-plugin-device-motion,jomo0825/cordova-plugin-device-motion,purplecabbage/cordova-plugin-device-motion,purplecabbage/cordova-plugin-device-motion,revolunet/cordova-plugin-device-motion,revolunet/cordova-plugin-device-motion,corimf/cordova-plugin-device-motion,blackberry-webworks/cordova-plugin-device-motion,jomo0825/cordova-plugin-device-motion,corimf/cordova-plugin-device-motion,revolunet/cordova-plugin-device-motion,blackberry-webworks/cordova-plugin-device-motion,revolunet/cordova-plugin-device-motion,apache/cordova-plugin-device-motion,corimf/cordova-plugin-device-motion,blackberry-webworks/cordova-plugin-device-motion
|
62aac5749c19a11f797d38ee99cbfba2f6714d46
|
test/spec/pointcloud/pointcloud.service.spec.js
|
test/spec/pointcloud/pointcloud.service.spec.js
|
'use strict';
describe('pointcloud.service', function() {
// load the module
beforeEach(module('pattyApp.pointcloud'));
var PointcloudService;
var Potree;
beforeEach(function() {
inject(function(_PointcloudService_, _Potree_) {
PointcloudService = _PointcloudService_;
Potree = _Potree_;
});
});
describe('initial state', function() {
it('should have settings', function() {
var expected = {
pointCountTarget: 0.4,
pointSize: 0.7,
opacity: 1,
showSkybox: true,
interpolate: false,
pointSizeType: Potree.PointSizeType.ADAPTIVE,
pointSizeTypes: Potree.PointSizeType,
pointColorType: Potree.PointColorType.RGB,
pointColorTypes: Potree.PointColorType,
pointShapes: Potree.PointShape,
pointShape: Potree.PointShape.SQUARE
};
expect(PointcloudService.settings).toEqual(expected);
});
});
});
|
'use strict';
describe('pointcloud.service', function() {
// load the module
beforeEach(module('pattyApp.pointcloud'));
var PointcloudService;
var Potree;
beforeEach(function() {
inject(function(_PointcloudService_, _Potree_) {
PointcloudService = _PointcloudService_;
Potree = _Potree_;
});
});
describe('initial state', function() {
it('should have settings', function() {
var expected = {
pointCountTarget: 0.4,
pointSize: 0.7,
opacity: 1,
showSkybox: true,
interpolate: false,
pointSizeType: Potree.PointSizeType.ADAPTIVE,
pointSizeTypes: Potree.PointSizeType,
pointColorType: Potree.PointColorType.RGB,
pointColorTypes: Potree.PointColorType,
pointShapes: Potree.PointShape,
pointShape: Potree.PointShape.SQUARE,
showStats: false
};
expect(PointcloudService.settings).toEqual(expected);
});
});
});
|
Fix test, showStats was not added to test yet.
|
Fix test, showStats was not added to test yet.
|
JavaScript
|
apache-2.0
|
NLeSC/PattyVis,NLeSC/PattyVis
|
ab46c8e8ac688107a1a7c52a836ac774a10ebb90
|
examples/add-to-basket/index.js
|
examples/add-to-basket/index.js
|
const basketItemViews = {
remove: function remove(el) {
el.addEventListener("click", function() {
el.parentNode.remove();
});
},
addToBasket: function addToBasket(el, props) {
el.addEventListener("click", function() {
fetch(props.file)
.then(res => res.text())
.then(data => {
const wrapper = document.createElement("div");
wrapper.innerHTML = data;
const container = document.querySelector(`.${props.target}`);
container.appendChild(wrapper);
viewloader.execute(views, wrapper, true);
})
.catch(err => console.log(err));
});
}
};
viewloader.execute(basketItemViews);
|
const basketItemViews = {
remove: function remove(el) {
el.addEventListener("click", function() {
el.parentNode.remove();
});
},
addToBasket: function addToBasket(el, props) {
const container = document.querySelector(`.${props.target}`);
el.addEventListener("click", function() {
fetch(props.file)
.then(res => res.text())
.then(data => {
const wrapper = document.createElement("div");
wrapper.innerHTML = data;
container.appendChild(wrapper);
viewloader.execute(basketItemViews, wrapper, true);
})
.catch(err => console.log(err));
});
}
};
viewloader.execute(basketItemViews);
|
Change selector to outside onclik event
|
Change selector to outside onclik event
|
JavaScript
|
mit
|
icelab/viewloader
|
af3d1a81abc124affe3e4f5eabefe6946c635b42
|
addon/initializers/add-modals-container.js
|
addon/initializers/add-modals-container.js
|
/*globals document */
let hasDOM = typeof document !== 'undefined';
function appendContainerElement(rootElementId, id) {
if (!hasDOM) {
return;
}
if (document.getElementById(id)) {
return;
}
let rootEl = document.querySelector(rootElementId);
let modalContainerEl = document.createElement('div');
modalContainerEl.id = id;
rootEl.appendChild(modalContainerEl);
}
export default function(App) {
let emberModalDialog = App.emberModalDialog || {};
let modalContainerElId = emberModalDialog.modalRootElementId || 'modal-overlays';
App.register('config:modals-container-id',
modalContainerElId,
{ instantiate: false });
App.inject('service:modal-dialog',
'destinationElementId',
'config:modals-container-id');
appendContainerElement(App.rootElement, modalContainerElId);
}
|
/*globals document */
let hasDOM = typeof document !== 'undefined';
function appendContainerElement(rootElementOrId, id) {
if (!hasDOM) {
return;
}
if (document.getElementById(id)) {
return;
}
let rootEl = rootElementOrId.appendChild ? rootElementOrId : document.querySelector(rootElementOrId);
let modalContainerEl = document.createElement('div');
modalContainerEl.id = id;
rootEl.appendChild(modalContainerEl);
}
export default function(App) {
let emberModalDialog = App.emberModalDialog || {};
let modalContainerElId = emberModalDialog.modalRootElementId || 'modal-overlays';
App.register('config:modals-container-id',
modalContainerElId,
{ instantiate: false });
App.inject('service:modal-dialog',
'destinationElementId',
'config:modals-container-id');
appendContainerElement(App.rootElement, modalContainerElId);
}
|
Handle when App.rootElement can be a node, rather than an id
|
Handle when App.rootElement can be a node, rather than an id
|
JavaScript
|
mit
|
yapplabs/ember-modal-dialog,yapplabs/ember-modal-dialog
|
d9ca32775708b9d3ede66e4fad902e4b2a7a3966
|
example/konami_code/main.js
|
example/konami_code/main.js
|
(function () {
var codes = [
38, // up
38, // up
40, // down
40, // down
37, // left
39, // right
37, // left
39, // right
66, // b
65 // a
];
kamo.Stream.fromEventHandlerSetter(window, 'onkeyup').map(function (message) {
return message.keyCode;
}).windowWithCount(codes.length).filter(function (message) {
console.log(message);
return JSON.stringify(message) == JSON.stringify(codes);
}).subscribe(function (message) {
alert('Conguraturation!');
});
})();
|
(function () {
var codes = [
38, // up
38, // up
40, // down
40, // down
37, // left
39, // right
37, // left
39, // right
66, // b
65 // a
];
kamo.Stream.fromEventHandlerSetter(window, 'onkeyup').map(function (message) {
return message.keyCode;
}).windowWithCount(codes.length).filter(function (message) {
return JSON.stringify(message) == JSON.stringify(codes);
}).subscribe(function (message) {
alert('Conguraturation!');
});
})();
|
Remove debug code left by mistake
|
Remove debug code left by mistake
|
JavaScript
|
mit
|
r7kamura/kamo.js
|
aca431a35442633f68c052764ae132a7184ca118
|
app/assets/javascripts/bootstrapper.es6.js
|
app/assets/javascripts/bootstrapper.es6.js
|
/*
Bootstrap components and api on DOM Load
*/
import Relay from 'react-relay';
import {
mountComponents,
unmountComponents,
} from './utils/componentMounter';
/* global Turbolinks document */
// Get auth and csrf tokens
import Authentication from './helpers/authentication.es6';
const auth = new Authentication();
// Setup API url, inject csrf token and auth token
const setupNetworkLayer = () => {
Relay.injectNetworkLayer(
new Relay.DefaultNetworkLayer('/graphql', {
credentials: 'same-origin',
fetchTimeout: 30000,
retryDelays: [5000],
headers: {
'X-CSRF-Token': auth.csrfToken(),
Authorization: auth.authToken(),
},
})
);
};
// Finally Render components if available in DOM
document.addEventListener('DOMContentLoaded', () => {
if (typeof Turbolinks !== 'undefined' && typeof Turbolinks.controller !== 'undefined') {
setupNetworkLayer();
document.addEventListener('turbolinks:render', unmountComponents);
document.addEventListener('turbolinks:load', mountComponents);
} else {
setupNetworkLayer();
mountComponents();
}
});
|
/*
Bootstrap components and api on DOM Load
*/
import Relay from 'react-relay';
import {
mountComponents,
unmountComponents,
} from './utils/componentMounter';
/* global Turbolinks document */
// Get auth and csrf tokens
import Authentication from './helpers/authentication.es6';
const auth = new Authentication();
// Setup API url, inject csrf token and auth token
const setupNetworkLayer = () => {
Relay.injectNetworkLayer(
new Relay.DefaultNetworkLayer('/graphql', {
credentials: 'same-origin',
fetchTimeout: 30000,
retryDelays: [5000],
headers: {
'X-CSRF-Token': auth.csrfToken(),
},
})
);
};
// Finally Render components if available in DOM
document.addEventListener('DOMContentLoaded', () => {
if (typeof Turbolinks !== 'undefined' && typeof Turbolinks.controller !== 'undefined') {
setupNetworkLayer();
document.addEventListener('turbolinks:render', unmountComponents);
document.addEventListener('turbolinks:load', mountComponents);
} else {
setupNetworkLayer();
mountComponents();
}
});
|
Remove authrisation token from requests
|
Remove authrisation token from requests
|
JavaScript
|
artistic-2.0
|
Hireables/hireables,Hireables/hireables,gauravtiwari/hireables,Hireables/hireables,gauravtiwari/techhire,gauravtiwari/hireables,gauravtiwari/techhire,gauravtiwari/techhire,gauravtiwari/hireables
|
b3ecee926842a8ffc129e9baf01e82be3b326f71
|
angular-katex.js
|
angular-katex.js
|
/*!
* angular-katex v0.2.1
* https://github.com/tfoxy/angular-katex
*
* Copyright 2015 Tomás Fox
* Released under the MIT license
*/
(function() {
'use strict';
angular.module('katex', [])
.provider('katexConfig', function() {
var self = this;
self.errorTemplate = function(err) {
return '<span class="katex-error">' + err + '</span>';
};
self.errorHandler = function(err, text, element) {
element.html(self.errorTemplate(err, text));
};
self.render = function(element, text) {
try {
katex.render(text || '', element[0]);
} catch (err) {
self.errorHandler(err, text, element);
}
};
//noinspection JSUnusedGlobalSymbols
this.$get = function() {
return this;
};
})
.directive('katex', ['katexConfig', function(katexConfig) {
return {
restrict: 'AE',
compile: function(element) {
katexConfig.render(element, element.html());
}
};
}])
.directive('katexBind', ['katexConfig', function(katexConfig) {
return {
restrict: 'A',
link: function(scope, element, attrs) {
var model = attrs.katexBind;
scope.$watch(model, function(text) {
katexConfig.render(element, text);
});
}
};
}]);
})();
|
/*!
* angular-katex v0.2.1
* https://github.com/tfoxy/angular-katex
*
* Copyright 2015 Tomás Fox
* Released under the MIT license
*/
(function() {
'use strict';
angular.module('katex', [])
.constant('katex', katex)
.provider('katexConfig', ['katex', function(katex) {
var self = this;
self.errorTemplate = function(err) {
return '<span class="katex-error">' + err + '</span>';
};
self.errorHandler = function(err, text, element) {
element.html(self.errorTemplate(err, text));
};
self.render = function(element, text) {
try {
katex.render(text || '', element[0]);
} catch (err) {
self.errorHandler(err, text, element);
}
};
//noinspection JSUnusedGlobalSymbols
this.$get = function() {
return this;
};
}])
.directive('katex', ['katexConfig', function(katexConfig) {
return {
restrict: 'AE',
compile: function(element) {
katexConfig.render(element, element.html());
}
};
}])
.directive('katexBind', ['katexConfig', function(katexConfig) {
return {
restrict: 'A',
link: function(scope, element, attrs) {
var model = attrs.katexBind;
scope.$watch(model, function(text) {
katexConfig.render(element, text);
});
}
};
}]);
})();
|
Add katex as an angular constant
|
Add katex as an angular constant
|
JavaScript
|
mit
|
tfoxy/angular-katex
|
7c4f727f9f3f52ab2a6491740e5e8ddbc3b67aa4
|
public/app/scripts/app.js
|
public/app/scripts/app.js
|
'use strict';
angular.module('publicApp', [
'ngCookies',
'ngResource',
'ngSanitize',
'ngRoute'
])
.config(function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/main.html',
controller: 'MainCtrl'
})
.when('/users', {
templateUrl: 'views/users.html',
controller: 'UsersCtrl'
})
.otherwise({
redirectTo: '/'
});
});
|
'use strict';
angular.module('publicApp', [
'ngCookies',
'ngResource',
'ngSanitize',
'ngRoute'
])
.config(function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/main.html',
controller: 'MainCtrl'
})
.when('/users/:id', {
templateUrl: 'views/user.html',
controller: 'UserCtrl'
})
.when('/admin/users/:id', {
templateUrl: 'views/admin/users/index.html',
controller: 'AdminUserCtrl'
})
.when('/admin/users', {
templateUrl: 'views/admin/users/index.html',
controller: 'AdminUsersCtrl'
})
.when('/admin/users/new', {
templateUrl: 'views/admin/users/new.html',
controller: 'AdminNewUserCtrl'
})
.when('/register', {
templateUrl: 'views/registration.html',
templateUrl: 'RegistrationCtrl'
})
.when('/login', {
templateUrl: 'views/registration.html',
templateUrl: 'LoginCtrl'
})
.otherwise({
redirectTo: '/'
});
});
|
Add routes for login, registration and user admin
|
[FEATURE] Add routes for login, registration and user admin
|
JavaScript
|
isc
|
Parkjeahwan/awegeeks,xdv/gatewayd,zealord/gatewayd,zealord/gatewayd,crazyquark/gatewayd,crazyquark/gatewayd,whotooktwarden/gatewayd,xdv/gatewayd,Parkjeahwan/awegeeks,whotooktwarden/gatewayd
|
c77f36aa39fa95208dd25f9db39abee804aa2c90
|
config/index.js
|
config/index.js
|
'use strict';
let config = {};
config.port = 3000;
config.apiKey = process.env.LFM_API_KEY;
config.apiSecret = process.env.LFM_SECRET;
module.exports = config;
|
'use strict';
let config = {};
config.port = 3000;
config.api_key = process.env.LFM_API_KEY;
config.apiSecret = process.env.LFM_SECRET;
config.sk = process.env.LFM_SESSION_KEY;
module.exports = config;
|
Add session key to config and update api key
|
Add session key to config and update api key
|
JavaScript
|
mit
|
FTLam11/Audio-Station-Scrobbler,FTLam11/Audio-Station-Scrobbler
|
9aadb6e0383e7615b66da3fc1cce659c5a475c86
|
vendor/assets/javascripts/vendor_application.js
|
vendor/assets/javascripts/vendor_application.js
|
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require foundation
//= require ace/ace
//= require ace/mode-ruby
//= require ace/mode-golang
//= require ace/mode-python
//= require ace/mode-c_cpp
//= require ace/mode-csharp
//= require ace/mode-php
//= require ace/theme-tomorrow_night
//= require ace/theme-textmate
//= require ace/theme-monokai
//= require ace/theme-github
//= require ace/keybinding-vim
//= require ace/keybinding-emacs
//
//= require socket.io
|
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require foundation
//= require ace/ace
//= require ace/mode-ruby
//= require ace/mode-golang
//= require ace/mode-python
//= require ace/mode-c_cpp
//= require ace/mode-csharp
//= require ace/mode-php
//= require ace/worker-php
//= require ace/theme-tomorrow_night
//= require ace/theme-textmate
//= require ace/theme-monokai
//= require ace/theme-github
//= require ace/keybinding-vim
//= require ace/keybinding-emacs
//
//= require socket.io
|
Revert "Revert "add missing worker-php for ace editor""
|
Revert "Revert "add missing worker-php for ace editor""
|
JavaScript
|
mit
|
tamzi/grounds.io,foliea/grounds.io,grounds/grounds.io,tamzi/grounds.io,grounds/grounds.io,foliea/grounds.io,tamzi/grounds.io,grounds/grounds.io,grounds/grounds.io,foliea/grounds.io,tamzi/grounds.io,foliea/grounds.io
|
a6f2abe06879273c426ff7c1cf1f4a4e3365e6ed
|
app/js/app/services.js
|
app/js/app/services.js
|
'use strict';
define(["angular", "app/services/LoginChecker", "app/services/FileLoader", "app/services/FigureUploader", "app/services/SnippetLoader", "app/services/TagLoader", "app/services/IdLoader"], function() {
/* Services */
angular.module('scooter.services', [])
.constant('Repo', {
owner: "ucam-cl-dtg",
name: "isaac-content-2"
})
.constant('ApiServer', "https://staging-2.isaacphysics.org/api/any/api")
.service('LoginChecker', require("app/services/LoginChecker"))
.factory('FileLoader', require("app/services/FileLoader"))
.factory('FigureUploader', require("app/services/FigureUploader"))
.service('SnippetLoader', require("app/services/SnippetLoader"))
.factory('TagLoader', require("app/services/TagLoader"))
.factory('IdLoader', require("app/services/IdLoader"))
});
|
'use strict';
define(["angular", "app/services/LoginChecker", "app/services/FileLoader", "app/services/FigureUploader", "app/services/SnippetLoader", "app/services/TagLoader", "app/services/IdLoader"], function() {
/* Services */
angular.module('scooter.services', [])
.constant('Repo', {
owner: "isaacphysics",
name: "isaac-content-2"
})
.constant('ApiServer', "https://staging-2.isaacphysics.org/api/any/api")
.service('LoginChecker', require("app/services/LoginChecker"))
.factory('FileLoader', require("app/services/FileLoader"))
.factory('FigureUploader', require("app/services/FigureUploader"))
.service('SnippetLoader', require("app/services/SnippetLoader"))
.factory('TagLoader', require("app/services/TagLoader"))
.factory('IdLoader', require("app/services/IdLoader"))
});
|
Migrate content repo to @isaacphysics
|
Migrate content repo to @isaacphysics
|
JavaScript
|
mit
|
ucam-cl-dtg/scooter,ucam-cl-dtg/scooter
|
10dce7b80924d70fde48129873be5e63808e30f4
|
js/backends/graphics/graphics.js
|
js/backends/graphics/graphics.js
|
document.write("<canvas>")
var Graphics = new Processing(document.querySelector('canvas'));
|
document.write("<canvas>")
var Graphics = new Processing(document.querySelector('canvas'));
Graphics.keyPressed = function() {
World.query("keyboard").forEach(function(e) {
e.key = Graphics.keyCode;
});
}
Graphics.keyReleased = function() {
World.query("keyboard").forEach(function(e) {
delete e.key;
});
}
|
Add key* functions to Graphics backend
|
Add key* functions to Graphics backend
|
JavaScript
|
mit
|
sangohan/twelve,nasser/twelve,nasser/twelve,sangohan/twelve
|
9bec7b6e05e2b0cdc856959d3358f5cfd3703a7d
|
public/js/worker.js
|
public/js/worker.js
|
importScripts('/js/sha256.js');
onmessage = function(e) {
console.log('received work!');
var date = (new Date()).yyyymmdd();
var bits = 0;
var rand = Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 5);
var name = e.data[0];
var difficulty = e.data[1];
for (var counter = 0; bits < difficulty; counter++) {
var chunks = [
'2', difficulty , 'sha256', date, name, '', rand, counter
];
var cash = chunks.join(':');
hash = CryptoJS.SHA256(cash).toString();
var match = hash.match(/^(0+)/);
bits = (match) ? match[0].length : 0;
}
postMessage(cash);
close();
}
Date.prototype.yyyymmdd = function() {
var yyyy = this.getFullYear().toString();
var mm = (this.getMonth()+1).toString(); // getMonth() is zero-based
var dd = this.getDate().toString();
return yyyy + (mm[1]?mm:'0'+mm[0]) + (dd[1]?dd:'0'+dd[0]); // padding
};
|
importScripts('/js/sha256.js');
onmessage = function(e) {
console.log('received work!');
var date = (new Date()).yyyymmdd();
var bits = 0;
var rand = Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 5);
var name = e.data[0];
var difficulty = e.data[1];
for (var counter = 0; bits < difficulty; counter++) {
var chunks = [
'2', // Hashcash version number. Note that this is 2, as opposed to 1.
difficulty, // asserted number of bits that this cash matches
'sha256', // ADDITION FOR VERSION 2: specify the hash function used
date, // YYYYMMDD format. specification doesn't indicate HHMMSS or lower?
name, // Input format protocol change, recommend casting any input to hex.
'', // empty "meta" field
rand, // random seed
counter // our randomized input, the nonce (actually sequential)
];
var cash = chunks.join(':');
hash = CryptoJS.SHA256(cash).toString();
var match = hash.match(/^(0+)/);
bits = (match) ? match[0].length : 0;
}
postMessage(cash);
close();
}
Date.prototype.yyyymmdd = function() {
var yyyy = this.getFullYear().toString();
var mm = (this.getMonth()+1).toString(); // getMonth() is zero-based
var dd = this.getDate().toString();
return yyyy + (mm[1]?mm:'0'+mm[0]) + (dd[1]?dd:'0'+dd[0]); // padding
};
|
Add comments for cash input.
|
Add comments for cash input.
|
JavaScript
|
mit
|
martindale/converse,martindale/converse,willricketts/converse,willricketts/converse
|
4862fbed37854b9be0fe9271a04d786786c9eca7
|
collections.js
|
collections.js
|
// CHANGE the current collection
var changeCollection=function(new_index){
dbIndex = new_index;
imageDB = DATABASE[dbIndex];
$("#collectionFooter").text(collections[dbIndex]);
localStorage.setItem("last_visited_index",dbIndex); // saves the state AKA the last collection you had open
if(imageDB==null){
imageDB = [];
}
applyChanges();
List();
$('#txtInput').focus();
};
//CREATE a NEW collection
var newCollection = function(){
var new_collection;
new_collection = prompt("Enter a name for your new collection","","New image collection");
// if its bad input, just do nothing:
if(new_collection==""||new_collection==null){ // force the user to give the collection a name
$('#dropdown').prop("selectedIndex",(localStorage.getItem("last_visited_index"))); // a little trick to jump back out of the "new collection..." menu item
return;
}
collections.push(new_collection); // add new collection
localStorage.setItem("collection_names",JSON.stringify(collections)); // update the list of collection names ;
changeCollection(collections.length-1); // Switch over to the new collection
popDropdown();
};
|
// CHANGE the current collection
var changeCollection=function(new_index){
dbIndex = new_index;
imageDB = DATABASE[dbIndex];
$("#collectionFooter").text(collections[dbIndex]);
document.title = collections[dbIndex];
localStorage.setItem("last_visited_index",dbIndex); // saves the state AKA the last collection you had open
if(imageDB==null){
imageDB = [];
}
applyChanges();
List();
$('#txtInput').focus();
};
//CREATE a NEW collection
var newCollection = function(){
var new_collection;
new_collection = prompt("Enter a name for your new collection","","New image collection");
// if its bad input, just do nothing:
if(new_collection==""||new_collection==null){ // force the user to give the collection a name
$('#dropdown').prop("selectedIndex",(localStorage.getItem("last_visited_index"))); // a little trick to jump back out of the "new collection..." menu item
return;
}
collections.push(new_collection); // add new collection
localStorage.setItem("collection_names",JSON.stringify(collections)); // update the list of collection names ;
changeCollection(collections.length-1); // Switch over to the new collection
popDropdown();
};
|
Change window title based on current collection
|
Change window title based on current collection
|
JavaScript
|
cc0-1.0
|
johnprattchristian/imagecollection,johnprattchristian/imagecollection
|
598b062784f68a1fe3c07dfdfeeba89abdc3e148
|
src/components/Markup.js
|
src/components/Markup.js
|
import React, { Component } from 'react';
import Registry from '../utils/Registry';
export default class Markup extends Component {
render() {
return (
<div dangerouslySetInnerHTML={ {__html: this.props.data}}></div>
)
}
}
Registry.set('Markup', Markup);
|
import React, { Component } from 'react';
import Registry from '../utils/Registry';
import { isArray } from 'lodash';
export default class Markup extends Component {
getContent() {
if (this.props.data && isArray(this.props.data) && this.props.data.length > 0) {
return this.props.data[0];
};
if (this.props.data && !isArray(this.props.data)) {
return this.props.data;
};
if (this.props.content) {
return this.props.content;
}
return '';
}
render() {
return (
<div dangerouslySetInnerHTML={ {__html: this.getContent()}}></div>
)
}
}
Registry.set('Markup', Markup);
|
Add getContent method to markup component
|
Add getContent method to markup component
|
JavaScript
|
mit
|
NuCivic/react-dash,NuCivic/react-dashboard,NuCivic/react-dash,NuCivic/react-dash,NuCivic/react-dashboard,NuCivic/react-dashboard
|
fdcd6a46e85cee80cda021b8dad199101b3d888d
|
Gruntfile.js
|
Gruntfile.js
|
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
copy: {
jquery: {
expand: true,
flatten: true,
src: 'bower_components/jquery/dist/jquery.min.js',
dest: 'dist/share/git-webui/webui/js/',
},
bootstrap: {
expand: true,
flatten: true,
src: 'bower_components/bootstrap/dist/js/bootstrap.min.js',
dest: 'dist/share/git-webui/webui/js/',
},
git_webui: {
expand: true,
cwd: 'src',
src: ['lib/**', 'share/**', '!**/less', '!**/*.less'],
dest: 'dist',
},
},
less: {
options: {
paths: 'bower_components/bootstrap/less',
},
files: {
expand: true,
cwd: 'src',
src: 'share/git-webui/webui/css/*.less',
dest: 'dist',
ext: '.css',
},
},
clean: ['dist'],
});
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.registerTask('default', ['copy', 'less']);
};
|
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
copy: {
jquery: {
expand: true,
flatten: true,
src: 'bower_components/jquery/dist/jquery.min.js',
dest: 'dist/share/git-webui/webui/js/',
},
bootstrap: {
expand: true,
flatten: true,
src: 'bower_components/bootstrap/dist/js/bootstrap.min.js',
dest: 'dist/share/git-webui/webui/js/',
},
git_webui: {
options: {
mode: true,
},
expand: true,
cwd: 'src',
src: ['lib/**', 'share/**', '!**/less', '!**/*.less'],
dest: 'dist',
},
},
less: {
options: {
paths: 'bower_components/bootstrap/less',
},
files: {
expand: true,
cwd: 'src',
src: 'share/git-webui/webui/css/*.less',
dest: 'dist',
ext: '.css',
},
},
clean: ['dist'],
});
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.registerTask('default', ['copy', 'less']);
};
|
Copy file permissions for all files
|
Copy file permissions for all files
|
JavaScript
|
apache-2.0
|
PeterDaveHello/git-webui,peter-genesys/git-webui,alberthier/git-webui,desyncr/git-webui,epicagency/git-webui,desyncr/git-webui,epicagency/git-webui,Big-Shark/git-webui,Big-Shark/git-webui,PeterDaveHello/git-webui,PeterDaveHello/git-webui,desyncr/git-webui,alberthier/git-webui,peter-genesys/git-webui,peter-genesys/git-webui,evertonrobertoauler/git-webui,epicagency/git-webui,alberthier/git-webui,desyncr/git-webui,Big-Shark/git-webui,evertonrobertoauler/git-webui,PeterDaveHello/git-webui,Big-Shark/git-webui,evertonrobertoauler/git-webui,peter-genesys/git-webui,alberthier/git-webui,epicagency/git-webui,evertonrobertoauler/git-webui
|
7ca0d5b081b5eefafbca80965d5140f9cc8cef0e
|
Gruntfile.js
|
Gruntfile.js
|
/**
* grunt-dco
*
* Copyright (c) 2014 Rafael Xavier de Souza
* Licensed under the MIT license.
*/
"use strict";
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all: [
"Gruntfile.js",
"tasks/**/*.js"
],
options: {
jshintrc: ".jshintrc",
}
},
dco: {
options: {
exceptionalAuthors: {
"rxaviers@gmail.com": "Rafael Xavier de Souza"
}
}
}
});
grunt.loadNpmTasks("grunt-contrib-jshint");
// Actually load this plugin's task(s).
grunt.loadTasks("tasks");
grunt.registerTask("default", ["jshint", "dco"]);
};
|
/**
* grunt-dco
*
* Copyright (c) 2014 Rafael Xavier de Souza
* Licensed under the MIT license.
*/
"use strict";
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all: [
"Gruntfile.js",
"tasks/**/*.js"
],
options: {
jshintrc: ".jshintrc",
}
},
dco: {
current: {
options: {
exceptionalAuthors: {
"rxaviers@gmail.com": "Rafael Xavier de Souza"
}
}
}
}
});
grunt.loadNpmTasks("grunt-contrib-jshint");
// Actually load this plugin's task(s).
grunt.loadTasks("tasks");
grunt.registerTask("default", ["jshint", "dco"]);
};
|
Set target on dco grunt task configuration
|
Set target on dco grunt task configuration
|
JavaScript
|
mit
|
rxaviers/grunt-dco
|
5aa65c9489168b55c1b936582609ebd3e80f9e32
|
Gruntfile.js
|
Gruntfile.js
|
module.exports = function (grunt) {
var paths = require('./paths');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.initConfig({
paths: paths,
watch: {
src: {
files: ['<%= paths.src.all %>'],
tasks: ['build']
}
},
concat: {
prd: {
src: ['<%= paths.src.prd %>'],
dest: '<%= paths.dest.prd %>'
},
demo: {
src: ['<%= paths.src.demo %>'],
dest: '<%= paths.dest.demo %>'
},
},
mochaTest: {
test: {
src: [
'<%= paths.src.lib %>',
'<%= paths.test.requires %>',
'<%= paths.test.spec %>'
],
options: {
reporter: 'spec'
}
}
}
});
grunt.registerTask('test', [
'mochaTest'
]);
grunt.registerTask('build', [
'concat',
]);
grunt.registerTask('default', [
'build',
'test'
]);
};
|
module.exports = function (grunt) {
var paths = require('./paths');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.initConfig({
paths: paths,
watch: {
src: {
files: ['<%= paths.src.all %>'],
tasks: ['build']
}
},
concat: {
prd: {
src: ['<%= paths.src.prd %>'],
dest: '<%= paths.dest.prd %>'
},
demo: {
src: ['<%= paths.src.demo %>'],
dest: '<%= paths.dest.demo %>'
},
},
mochaTest: {
test: {
src: [
'<%= paths.src.lib %>',
'<%= paths.test.requires %>',
'<%= paths.test.spec %>'
],
options: {
reporter: 'spec'
}
}
}
});
grunt.registerTask('test', [
'build',
'mochaTest'
]);
grunt.registerTask('build', [
'concat',
]);
grunt.registerTask('default', [
'build',
'test'
]);
};
|
Build before every test as a way to keep builds up to date (thanks @hodgestar)
|
Build before every test as a way to keep builds up to date (thanks @hodgestar)
|
JavaScript
|
bsd-3-clause
|
praekelt/vumi-ureport,praekelt/vumi-ureport
|
8aac3f2f829792220578c31ba1df5a308327c1b0
|
Gruntfile.js
|
Gruntfile.js
|
module.exports = function( grunt ) {
'use strict';
// Project configuration.
grunt.initConfig( {
pkg: grunt.file.readJSON( 'package.json' ),
copy: {
main: {
src: [
'includes/**',
'languages/**',
'composer.json',
'CHANGELOG.md',
'LICENSE.txt',
'readme.txt',
'sticky-tax.php'
],
dest: 'dist/'
},
},
makepot: {
target: {
options: {
domainPath: '/languages',
mainFile: 'sticky-tax.php',
potFilename: 'sticky-tax.pot',
potHeaders: {
poedit: true,
'x-poedit-keywordslist': true
},
type: 'wp-plugin',
updateTimestamp: false
}
}
},
} );
grunt.loadNpmTasks( 'grunt-contrib-copy' );
grunt.loadNpmTasks( 'grunt-wp-i18n' );
grunt.registerTask( 'build', [ 'i18n', 'copy' ] );
grunt.registerTask( 'i18n', [ 'makepot' ] );
grunt.util.linefeed = '\n';
};
|
module.exports = function( grunt ) {
'use strict';
// Project configuration.
grunt.initConfig( {
pkg: grunt.file.readJSON( 'package.json' ),
copy: {
main: {
src: [
'includes/**',
'lib/**',
'languages/**',
'composer.json',
'CHANGELOG.md',
'LICENSE.txt',
'readme.txt',
'sticky-tax.php'
],
dest: 'dist/'
},
},
makepot: {
target: {
options: {
domainPath: '/languages',
mainFile: 'sticky-tax.php',
potFilename: 'sticky-tax.pot',
potHeaders: {
poedit: true,
'x-poedit-keywordslist': true
},
type: 'wp-plugin',
updateTimestamp: false
}
}
},
} );
grunt.loadNpmTasks( 'grunt-contrib-copy' );
grunt.loadNpmTasks( 'grunt-wp-i18n' );
grunt.registerTask( 'build', [ 'i18n', 'copy' ] );
grunt.registerTask( 'i18n', [ 'makepot' ] );
grunt.util.linefeed = '\n';
};
|
Include lib/* in the build command
|
Include lib/* in the build command
|
JavaScript
|
mit
|
liquidweb/sticky-tax,liquidweb/sticky-tax,liquidweb/sticky-tax
|
9454a3e4032193b29c498e477a165f04a082afbb
|
Gruntfile.js
|
Gruntfile.js
|
module.exports = function(grunt) {
'use strict';
require('grunt-horde')
.create(grunt)
.demand('projName', 'sinon-doublist')
.demand('instanceName', 'sinonDoublist')
.demand('klassName', 'sinonDoublist')
.loot('node-component-grunt')
.loot('node-lib-grunt')
.loot('./config/grunt')
.attack();
};
|
module.exports = function(grunt) {
'use strict';
require('grunt-horde')
.create(grunt)
.demand('projName', 'sinon-doublist')
.demand('instanceName', 'sinonDoublist')
.demand('klassName', 'sinonDoublist')
.loot('node-component-grunt')
.loot('node-lib-grunt')
.loot('./config/grunt')
.home(__dirname)
.attack();
};
|
Set home dir for TravisCI
|
fix(grunt-horde): Set home dir for TravisCI
|
JavaScript
|
mit
|
codeactual/sinon-doublist
|
63bde0dab0d5cb013e8165ed897af201e0eeb5e1
|
src/client/controller/meta_controller.js
|
src/client/controller/meta_controller.js
|
export default class MetaController {
constructor(PageMetadata) {
this.meta = PageMetadata;
}
}
MetaController.$inject = ['PageMetadata'];
|
class MetaController {
constructor(PageMetadata) {
this.meta = PageMetadata;
}
}
MetaController.$inject = ['PageMetadata'];
export default MetaController;
|
Upgrade MetaController to ES6 syntax
|
Upgrade MetaController to ES6 syntax
|
JavaScript
|
mit
|
demerzel3/desmond,demerzel3/desmond,demerzel3/desmond,demerzel3/desmond
|
35de520dffd5a7e592b44295ae79e5abd117a630
|
app/scripts/models/online-player.js
|
app/scripts/models/online-player.js
|
import AsyncPlayer from './async-player.js';
// An online player whose moves are determined by a remote human user
class OnlinePlayer extends AsyncPlayer {
constructor({ game }) {
game.session.on('receive-next-move', ({ column }) => {
game.emit('online-player:receive-next-move', { column });
});
}
//
getNextMove({ game }) {
return new Promise((resolve) => {
// Finish your turn by yielding to the opponent player, sending the move
// you just made and waiting to receive the move they will make next
game.session.emit('finish-turn', { column: game.grid.lastPlacedChip.column }, ({ status }) => {
game.session.status = status;
// Resolve the promise when the game's TinyEmitter listener receives the move from the opponent
game.once('online-player:receive-next-move', () => {
resolve();
});
});
});
}
}
OnlinePlayer.prototype.type = 'online';
// Do not delay between the time the online player's move is received by the
// client, and when the chip is placed locally
OnlinePlayer.waitDelay = 0;
export default OnlinePlayer;
|
import AsyncPlayer from './async-player.js';
// An online player whose moves are determined by a remote human user
class OnlinePlayer extends AsyncPlayer {
constructor({ game }) {
// Add a global listener here for all moves we will receive from the
// opponent (online) player during the course of the game; when we receive a
// move from the opponent, TinyEmitter will help us resolve the promise
// created in the last call to getNextMove()
game.session.on('receive-next-move', ({ column }) => {
game.emit('online-player:receive-next-move', { column });
});
}
// Declare the end of the local (human) player's turn, communicating its move
// to the opponent (online) player and waiting for the opponent to make the
// next move
getNextMove({ game }) {
return new Promise((resolve) => {
// Finish the local (human) player's turn by yielding to the opponent
// (online) player, sending the human player's latest move and waiting to
// receive the move the online player will make next
game.session.emit('finish-turn', { column: game.grid.lastPlacedChip.column }, ({ status }) => {
game.session.status = status;
// Resolve the promise when the game's TinyEmitter listener receives the
// move from the opponent, passing it to the local (human) player
game.once('online-player:receive-next-move', () => {
resolve();
});
});
});
}
}
OnlinePlayer.prototype.type = 'online';
// Do not delay between the time the online player's move is received by the
// client, and when the chip is placed locally
OnlinePlayer.waitDelay = 0;
export default OnlinePlayer;
|
Comment OnlinePlayer code more thoroughly
|
Comment OnlinePlayer code more thoroughly
|
JavaScript
|
mit
|
caleb531/connect-four
|
ea2d72768aa3eb8f15400ed343662918755df702
|
src/document/nodes/image/ImagePackage.js
|
src/document/nodes/image/ImagePackage.js
|
import Image from 'substance/packages/image/Image'
import ImageComponent from 'substance/packages/image/ImageComponent'
import ImageMarkdownComponent from './ImageMarkdownComponent'
import ImageHTMLConverter from 'substance/packages/image/ImageHTMLConverter'
import ImageXMLConverter from 'substance/packages/image/ImageXMLConverter'
import ImageMacro from './ImageMacro'
import ImageTool from './ImageTool'
export default {
name: 'image',
configure: function (config) {
config.addNode(Image)
config.addComponent('image', ImageComponent)
config.addComponent('image-markdown', ImageMarkdownComponent)
config.addConverter('html', ImageHTMLConverter)
config.addConverter('xml', ImageXMLConverter)
config.addMacro(new ImageMacro())
config.addTool('image', ImageTool)
config.addIcon('image', { 'fontawesome': 'fa-image' })
config.addLabel('image', {
en: 'Image',
de: 'Überschrift'
})
}
}
|
import ImageNode from 'substance/packages/image/ImageNode'
import ImageComponent from 'substance/packages/image/ImageComponent'
import ImageMarkdownComponent from './ImageMarkdownComponent'
import ImageHTMLConverter from 'substance/packages/image/ImageHTMLConverter'
import ImageXMLConverter from 'substance/packages/image/ImageXMLConverter'
import ImageMacro from './ImageMacro'
import ImageTool from './ImageTool'
export default {
name: 'image',
configure: function (config) {
config.addNode(ImageNode)
config.addComponent('image', ImageComponent)
config.addComponent('image-markdown', ImageMarkdownComponent)
config.addConverter('html', ImageHTMLConverter)
config.addConverter('xml', ImageXMLConverter)
config.addMacro(new ImageMacro())
config.addTool('image', ImageTool)
config.addIcon('image', { 'fontawesome': 'fa-image' })
config.addLabel('image', {
en: 'Image',
de: 'Überschrift'
})
}
}
|
Deal with Substance Image -> ImageNode
|
Deal with Substance Image -> ImageNode
|
JavaScript
|
apache-2.0
|
stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila
|
aad192238064aa6546555b3391546ebcbc04c0df
|
src/discord.js
|
src/discord.js
|
const Discord = require('discord.js'),
client = new Discord.Client;
client.run = ctx => {
client.on('ready', () => {
if (client.user.bot) {
client.destroy();
} else {
ctx.gui.put(`{bold}Logged in as ${client.user.tag}{/bold}`);
ctx.gui.put('Use the join command to join a guild, dm, or channel (:join discord api #general)');
}
});
client.login(ctx.token)
.catch(e => {
ctx.gui.put(`{bold}Login error:{/bold} ${e.message}.`);
ctx.gui.put('Try using the :login <token> command to log in.');
});
}
module.exports = client;
|
const Discord = require('discord.js'),
client = new Discord.Client;
client.run = ctx => {
client.on('ready', () => {
if (client.user.bot) {
client.destroy();
} else {
ctx.gui.put(`{bold}Logged in as ${client.user.tag}{/bold}`);
ctx.gui.put('Use the join command to join a guild, dm, or channel (:join discord api #general)');
}
});
client.on('message', msg => {
if (ctx.current.channel && msg.channel.id ==- ctx.current.channel.id) {
ctx.gui.putMessage(msg);
}
})
client.login(ctx.token)
.catch(e => {
ctx.gui.put(`{bold}Login error:{/bold} ${e.message}.`);
ctx.gui.put('Try using the :login <token> command to log in.');
});
}
module.exports = client;
|
Write dynamically created messages to GUI
|
Write dynamically created messages to GUI
|
JavaScript
|
mit
|
wwwg/retrocord-light,wwwg/retrocord-light
|
c9482b9e34a1b2243370d66864f38d9f35d56b79
|
tests/snapshot-helpers.js
|
tests/snapshot-helpers.js
|
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import jsBeautify from 'js-beautify';
import * as Settings from './settings';
/*
* Render React components to markup in order to compare to a Jest Snapshot. Enzyme render with an actual DOM is needed for components that use <Dialog /> and portal mounts.
*
* Please note, Component is the non-JSX component object.
*/
const renderMarkup = (Component, props) => String(
jsBeautify.html(ReactDOMServer.renderToStaticMarkup(React.createElement(Component, props)),
Settings.default.jsBeautify),
'utf-8'
);
export {
renderMarkup // eslint-disable-line import/prefer-default-export
};
|
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import jsBeautify from 'js-beautify';
import * as Settings from './settings';
import { shallow } from 'enzyme';
import toJson from 'enzyme-to-json';
/*
* Render React components to DOM state as a String
*
* Please note, Component is the non-JSX component object.
*/
const renderDOM = (Component, props) => (toJson(shallow(React.createElement(Component, props))));
/*
* Render React components to markup in order to compare to a Jest Snapshot. Enzyme render with an actual DOM is needed for components that use <Dialog /> and portal mounts.
*
* Please note, Component is the non-JSX component object.
*/
const renderMarkup = (Component, props) => String(
jsBeautify.html(ReactDOMServer.renderToStaticMarkup(React.createElement(Component, props)),
Settings.default.jsBeautify),
'utf-8'
);
export {
renderDOM, // eslint-disable-line import/prefer-default-export
renderMarkup // eslint-disable-line import/prefer-default-export
};
|
Add renderDOM to Jest snapshot helpers
|
Add renderDOM to Jest snapshot helpers
|
JavaScript
|
bsd-3-clause
|
salesforce/design-system-react,salesforce/design-system-react,salesforce/design-system-react
|
c5ba74bea4488be4a66ab8a32aa2a314fcfcf03b
|
src/app/utils/preload.js
|
src/app/utils/preload.js
|
define( [ "Ember" ], function( Ember ) {
var concat = [].concat;
var makeArray = Ember.makeArray;
return function preload( withError, list ) {
if ( list === undefined ) {
list = withError;
withError = false;
}
function promiseImage( src ) {
if ( !src ) {
return Promise.resolve();
}
var defer = Promise.defer();
var image = new Image();
image.addEventListener( "load", defer.resolve, false );
image.addEventListener( "error", withError ? defer.reject : defer.resolve, false );
image.src = src;
return defer.promise;
}
return function promisePreload( response ) {
// create a new promise containing all image preload promises
return Promise.all(
// create a flat array out of all traversal strings
makeArray( list ).reduce(function createPromiseList( promises, traverse ) {
// traverse response data
var resources = makeArray( response ).mapBy( traverse );
// data instanceof Ember.Enumerable
resources = resources && resources.toArray
? resources.toArray()
: makeArray( resources );
// preload images
return concat.apply( promises, resources.map( promiseImage ) );
}, [] )
)
// return the original response
.then(function preloadFulfilled() { return response; });
};
};
});
|
define( [ "Ember" ], function( Ember ) {
var concat = [].concat;
var makeArray = Ember.makeArray;
return function preload( withError, list ) {
if ( list === undefined ) {
list = withError;
withError = false;
}
function promiseImage( src ) {
if ( !src ) {
return Promise.resolve();
}
var defer = Promise.defer();
var image = new Image();
image.addEventListener( "load", function() {
image = null;
defer.resolve();
}, false );
image.addEventListener( "error", function() {
image = null;
if ( withError ) {
defer.reject();
} else {
defer.resolve();
}
}, false );
image.src = src;
return defer.promise;
}
return function promisePreload( response ) {
// create a new promise containing all image preload promises
return Promise.all(
// create a flat array out of all traversal strings
makeArray( list ).reduce(function createPromiseList( promises, traverse ) {
// traverse response data
var resources = makeArray( response ).mapBy( traverse );
// data instanceof Ember.Enumerable
resources = resources && resources.toArray
? resources.toArray()
: makeArray( resources );
// preload images
return concat.apply( promises, resources.map( promiseImage ) );
}, [] )
)
// return the original response
.then(function preloadFulfilled() { return response; });
};
};
});
|
Set image to null once it has finished loading
|
Set image to null once it has finished loading
|
JavaScript
|
mit
|
streamlink/streamlink-twitch-gui,chhe/livestreamer-twitch-gui,streamlink/streamlink-twitch-gui,bastimeyer/livestreamer-twitch-gui,bastimeyer/livestreamer-twitch-gui,streamlink/streamlink-twitch-gui,bastimeyer/livestreamer-twitch-gui,chhe/livestreamer-twitch-gui,chhe/livestreamer-twitch-gui
|
538a1fca657d35875ce2a679f39e6b5868627e3e
|
src/js/main.js
|
src/js/main.js
|
/* PSEUDO CODE FOR LOGIN MENU
1. COLLECT DATA ENTERED INTO THE <INPUT>
2. WHEN .LOGIN-SUBMIT IS 'CLICKED' `GET/users/id` TO DATABASE TO BE VERIFIED?
*/
;(function(){
angular.module('Front-Rails', [ ])
.run(function($http, $rootScope) {
$http.get('https://stackundertow.herokuapp.com/questions')
.then(function(response){
// $rootScope.query = "hello";
$rootScope.query = response.data[0].query;
// $rootScope.questions = response.data;
})
})
})();
$('.search a[href]').on('click', function(event){
event.preventDefault();
$(this).add(this.hash)
.toggleClass('active')
.siblings().removeClass('active');
});
$('.redirect a[href]').on('click', function(event){
event.preventDefault();
$(this).add(this.hash)
.toggleClass('active')
.siblings().removeClass('active');
});
|
/* PSEUDO CODE FOR LOGIN MENU
1. COLLECT DATA ENTERED INTO THE <INPUT>
2. WHEN .LOGIN-SUBMIT IS 'CLICKED' `GET/users/id` TO DATABASE TO BE VERIFIED?
*/
;(function(){
angular.module('Front-Rails', [ ])
.run(function($http, $rootScope) {
$http.get('https://stackundertow.herokuapp.com/questions')
.then(function(response){
// $rootScope.query = "hello";
$rootScope.query = response.data[0].query;
// $rootScope.questions = response.data;
})
})
})();
/* Signup and Login menu drop down*/
$('.search a[href]').on('click', function(event){
event.preventDefault();
$(this).add(this.hash)
.toggleClass('active')
.siblings().removeClass('active');
});
$('.redirect a[href]').on('click', function(event){
event.preventDefault();
$(this).add(this.hash)
.toggleClass('active')
.siblings().removeClass('active');
});
$('.list').on('click', function(event){
event.preventDefault();
console.log("HEY");
$('.active').removeClass('active');
});
$('aside').on('click', function(event){
event.preventDefault();
console.log("HEY");
$('.active').removeClass('active');
});
/* Signup and Login menu drop down*/
|
Remove active class when .list or aside is clicked.
|
Remove active class when .list or aside is clicked.
|
JavaScript
|
mit
|
front-rails/GUI,front-rails/GUI
|
2d7acc374a01b4342e35dd86aeabf9eee5a5b72d
|
lib/parse/value_parser.js
|
lib/parse/value_parser.js
|
/**
* @fileOverview
*/
define(['parse/parse',
'ecma/ast/value',
'khepri/parse/token_parser'],
function(parse,
astValue,
token){
"use strict";
// Literal
////////////////////////////////////////
var nullLiteral = parse.Parser('Null Literal',
parse.bind(token.nullLiteral, function(x) {
return parse.always(new astValue.Literal(x.loc, x.value, 'null'));
}));
var booleanLiteral = parse.Parser('Boolean Literal',
parse.bind(token.booleanLiteral, function(x) {
return parse.always(new astValue.Literal(x.loc, x.value, 'boolean'));
}));
var numericLiteral = parse.Parser('Numeric Literal',
parse.bind(token.numericLiteral, function(x) {
return parse.always(new astValue.Literal(x.loc, x.value, 'number'));
}));
var stringLiteral = parse.Parser('String Literal',
parse.bind(token.stringLiteral, function(x) {
return parse.always(new astValue.Literal(x.loc, x.value, 'string'));
}));
var regularExpressionLiteral = parse.Parser('Regular Expression Literal',
parse.bind(token.regularExpressionLiteral, function(x) {
return parse.always(new astValue.Literal(x.loc, x.value, 'RegExp'));
}));
/**
* Parser for a simple ECMAScript literal, excluding array and object literals.
*/
var literal = parse.Parser('Literal',
parse.choice(
nullLiteral,
booleanLiteral,
numericLiteral,
stringLiteral,
regularExpressionLiteral));
// Identifier
////////////////////////////////////////
var identifier = parse.Parser('Identifier',
parse.bind(
parse.token(function(tok) { return (tok.type === 'Identifier'); }),
function(x) {
return parse.always(new astValue.Identifier(x.loc, x.value));
}));
/* Export
******************************************************************************/
return {
// Literal
'nullLiteral': nullLiteral,
'booleanLiteral': booleanLiteral,
'numericLiteral': numericLiteral,
'stringLiteral': stringLiteral,
'regularExpressionLiteral': regularExpressionLiteral,
'literal': literal,
// Identifier
'identifier': identifier
};
});
|
/**
* @fileOverview
*/
define(['ecma/parse/value_parser'],
function(ecma_value){
"use strict";
return ecma_value;
});
|
Use value parser from parse-ecma
|
Use value parser from parse-ecma
|
JavaScript
|
mit
|
mattbierner/khepri
|
72773fb2aa29ab226a5bcb2a8ce7bf468ede0c69
|
src/repositorys/interactionrepository.js
|
src/repositorys/interactionrepository.js
|
const winston = require('winston')
const authorisedRequest = require('../lib/authorisedrequest')
const config = require('../config')
function getInteraction (token, interactionId) {
return authorisedRequest(token, `${config.apiRoot}/interaction/${interactionId}/`)
}
function saveInteraction (token, interaction) {
const options = {
body: interaction
}
if (interaction.id && interaction.id.length > 0) {
// update
options.url = `${config.apiRoot}/interaction/${interaction.id}/`
options.method = 'PUT'
} else {
options.url = `${config.apiRoot}/interaction/`
options.method = 'POST'
}
return authorisedRequest(token, options)
}
/**
* Get all the interactions for a contact
*
* @param {any} token
* @param {any} contactId
* @return {Array[Object]} Returns a promise that resolves to an array of API interaction objects
*/
function getInteractionsForContact (token, contactId) {
return new Promise((resolve) => {
authorisedRequest(token, `${config.apiRoot}/interaction/?contact_id=${contactId}`)
.then((response) => {
resolve(response.results)
})
.catch((error) => {
winston.info(error)
resolve([])
})
})
}
module.exports = {
saveInteraction,
getInteraction,
getInteractionsForContact
}
|
const winston = require('winston')
const authorisedRequest = require('../lib/authorisedrequest')
const config = require('../config')
function getInteraction (token, interactionId) {
return authorisedRequest(token, `${config.apiRoot}/interaction/${interactionId}/`)
}
function saveInteraction (token, interaction) {
const options = {
body: interaction
}
if (interaction.id && interaction.id.length > 0) {
// update
options.url = `${config.apiRoot}/interaction/${interaction.id}/`
options.method = 'PUT'
} else {
options.url = `${config.apiRoot}/interaction/`
options.method = 'POST'
}
return authorisedRequest(token, options)
}
/**
* Get all the interactions for a contact
*
* @param {any} token
* @param {any} contactId
* @return {Array[Object]} Returns a promise that resolves to an array of API interaction objects
*/
function getInteractionsForContact (token, contactId) {
return new Promise((resolve) => {
authorisedRequest(token, `${config.apiRoot}/contact/${contactId}/`)
.then((response) => {
resolve(response.interactions)
})
.catch((error) => {
winston.info(error)
resolve([])
})
})
}
module.exports = {
saveInteraction,
getInteraction,
getInteractionsForContact
}
|
Fix issue causing contacts to list ALL interactions
|
Fix issue causing contacts to list ALL interactions
|
JavaScript
|
mit
|
uktrade/data-hub-frontend,uktrade/data-hub-fe-beta2,uktrade/data-hub-frontend,uktrade/data-hub-frontend,uktrade/data-hub-fe-beta2
|
761819fa974fc7b9d1c5f7ae436b54e08546b2cf
|
lib/settings.js
|
lib/settings.js
|
"use strict";
var cacheManager = require("cache-manager");
module.exports = {
// cache system (see https://github.com/BryanDonovan/node-cache-manager)
Cache: cacheManager.caching({
store: "memory",
max: 5000,
ttl: 60 * 60
}),
// default request timeout values
DefaultOpenTimeout: 10 * 1000, // 10 seconds; timeout in milliseconds
DefaultReadTimeout: 0 * 1000, // 0 seconds; timeout in milliseconds
// socks proxy url to use
ProxyURL: null, // e.g. "socks://127.0.0.1:1080"
// default Park Settings
DefaultParkName: "Default Park",
DefaultParkTimezone: "Europe/London",
DefaultParkTimeFormat: null,
// cache settings (in seconds)
DefaultCacheWaitTimesLength: 60 * 5, // 5 minutes
DefaultCacheOpeningTimesLength: 60 * 60, // 1 hour
// default time return format
DefaultTimeFormat: "YYYY-MM-DDTHH:mm:ssZ",
// default date return format
DefaultDateFormat: "YYYY-MM-DD",
};
|
"use strict";
var cacheManager = require("cache-manager");
module.exports = {
// cache system (see https://github.com/BryanDonovan/node-cache-manager)
Cache: cacheManager.caching({
store: "memory",
max: 5000,
ttl: 60 * 60
}),
// default request timeout values
DefaultOpenTimeout: 10000, // 10 seconds; timeout in milliseconds
DefaultReadTimeout: 0, // 0 seconds; timeout in milliseconds
// socks proxy url to use
ProxyURL: null, // e.g. "socks://127.0.0.1:1080"
// default Park Settings
DefaultParkName: "Default Park",
DefaultParkTimezone: "Europe/London",
DefaultParkTimeFormat: null,
// cache settings (in seconds)
DefaultCacheWaitTimesLength: 60 * 5, // 5 minutes
DefaultCacheOpeningTimesLength: 60 * 60, // 1 hour
// default time return format
DefaultTimeFormat: "YYYY-MM-DDTHH:mm:ssZ",
// default date return format
DefaultDateFormat: "YYYY-MM-DD",
};
|
Use exact default values from needle docs for clarity
|
Use exact default values from needle docs for clarity
|
JavaScript
|
mit
|
cubehouse/themeparks
|
347755aa2c6c280a118005dd06b13a43f5496460
|
chattify.js
|
chattify.js
|
function filterF(i, el) {
var pattern = /(From|To|Subject|Cc|Date):/i;
return el.textContent.match(pattern);
}
$($("blockquote").get().reverse()).each(function(i, el) {
var contents = $(el).contents();
var matches = contents.find("*").filter(filterF).get().reverse();
while (matches.length > 0) {
matches[0].remove();
matches = contents.find("*").filter(filterF).get().reverse();
}
// remove blockquotes but preserve contents
contents.insertAfter($(el));
$(el).remove();
});
|
function filterF(i, el) {
var pattern = /(From|To|Sent|Subject|Cc|Date):/i;
return el.textContent.match(pattern);
}
// convert From...To... blocks into one-liners
var matches = $(document).find("*").filter(filterF).get().reverse();
while (matches.length > 0) {
matches[0].remove();
matches = $(document).find("*").filter(filterF).get().reverse();
}
// remove blockquotes but preserve contents
$($("blockquote").get().reverse()).each(function(i, el) {
var contents = $(el).contents();
contents.insertAfter($(el));
$(el).remove();
});
|
Move pattern matching to the top
|
Move pattern matching to the top
|
JavaScript
|
mit
|
kubkon/email-chattifier,kubkon/email-chattifier
|
17ea0550201dea34b44397eec927e00f575bac5d
|
blueprints/app/files/tests/helpers/module-for-acceptance.js
|
blueprints/app/files/tests/helpers/module-for-acceptance.js
|
import { module } from 'qunit';
import startApp from '../helpers/start-app';
import destroyApp from '../helpers/destroy-app';
export default function(name, options = {}) {
module(name, {
beforeEach() {
this.application = startApp();
if (options.beforeEach) {
options.beforeEach.apply(this, arguments);
}
},
afterEach() {
destroyApp(this.application);
if (options.afterEach) {
options.afterEach.apply(this, arguments);
}
}
});
}
|
import { module } from 'qunit';
import startApp from '../helpers/start-app';
import destroyApp from '../helpers/destroy-app';
export default function(name, options = {}) {
module(name, {
beforeEach() {
this.application = startApp();
if (options.beforeEach) {
options.beforeEach.apply(this, arguments);
}
},
afterEach() {
if (options.afterEach) {
options.afterEach.apply(this, arguments);
}
destroyApp(this.application);
}
});
}
|
Call destroyApp after afterEach options
|
Call destroyApp after afterEach options
As discussed in #5348, destroyApp() should be
called after options.afterEach.apply(...).
|
JavaScript
|
mit
|
martypenner/ember-cli,seawatts/ember-cli,eccegordo/ember-cli,acorncom/ember-cli,kanongil/ember-cli,patocallaghan/ember-cli,nathanhammond/ember-cli,thoov/ember-cli,calderas/ember-cli,johnotander/ember-cli,scalus/ember-cli,jrjohnson/ember-cli,patocallaghan/ember-cli,rtablada/ember-cli,ef4/ember-cli,johnotander/ember-cli,twokul/ember-cli,BrianSipple/ember-cli,romulomachado/ember-cli,balinterdi/ember-cli,seawatts/ember-cli,ef4/ember-cli,jgwhite/ember-cli,kanongil/ember-cli,lazybensch/ember-cli,twokul/ember-cli,yaymukund/ember-cli,trentmwillis/ember-cli,lazybensch/ember-cli,cibernox/ember-cli,romulomachado/ember-cli,johanneswuerbach/ember-cli,fpauser/ember-cli,thoov/ember-cli,nathanhammond/ember-cli,pixelhandler/ember-cli,runspired/ember-cli,johnotander/ember-cli,fpauser/ember-cli,kriswill/ember-cli,martypenner/ember-cli,thoov/ember-cli,williamsbdev/ember-cli,rtablada/ember-cli,kriswill/ember-cli,trabus/ember-cli,seawatts/ember-cli,kellyselden/ember-cli,twokul/ember-cli,kriswill/ember-cli,patocallaghan/ember-cli,runspired/ember-cli,calderas/ember-cli,Turbo87/ember-cli,jrjohnson/ember-cli,nathanhammond/ember-cli,acorncom/ember-cli,sivakumar-kailasam/ember-cli,Turbo87/ember-cli,lazybensch/ember-cli,fpauser/ember-cli,trabus/ember-cli,elwayman02/ember-cli,jasonmit/ember-cli,runspired/ember-cli,pzuraq/ember-cli,scalus/ember-cli,nathanhammond/ember-cli,asakusuma/ember-cli,HeroicEric/ember-cli,kanongil/ember-cli,josemarluedke/ember-cli,kategengler/ember-cli,Turbo87/ember-cli,pixelhandler/ember-cli,mohlek/ember-cli,pzuraq/ember-cli,balinterdi/ember-cli,givanse/ember-cli,HeroicEric/ember-cli,ef4/ember-cli,jgwhite/ember-cli,gfvcastro/ember-cli,akatov/ember-cli,yaymukund/ember-cli,josemarluedke/ember-cli,akatov/ember-cli,gfvcastro/ember-cli,johnotander/ember-cli,raycohen/ember-cli,yaymukund/ember-cli,runspired/ember-cli,buschtoens/ember-cli,BrianSipple/ember-cli,HeroicEric/ember-cli,jasonmit/ember-cli,jasonmit/ember-cli,raycohen/ember-cli,BrianSipple/ember-cli,mohlek/ember-cli,thoov/ember-cli,pzuraq/ember-cli,williamsbdev/ember-cli,HeroicEric/ember-cli,williamsbdev/ember-cli,trentmwillis/ember-cli,akatov/ember-cli,ember-cli/ember-cli,scalus/ember-cli,eccegordo/ember-cli,ef4/ember-cli,elwayman02/ember-cli,ember-cli/ember-cli,mike-north/ember-cli,mike-north/ember-cli,johanneswuerbach/ember-cli,akatov/ember-cli,seawatts/ember-cli,acorncom/ember-cli,trabus/ember-cli,pixelhandler/ember-cli,eccegordo/ember-cli,calderas/ember-cli,lazybensch/ember-cli,pixelhandler/ember-cli,trabus/ember-cli,williamsbdev/ember-cli,xtian/ember-cli,ember-cli/ember-cli,jgwhite/ember-cli,patocallaghan/ember-cli,mohlek/ember-cli,xtian/ember-cli,martypenner/ember-cli,mike-north/ember-cli,kellyselden/ember-cli,martypenner/ember-cli,givanse/ember-cli,sivakumar-kailasam/ember-cli,fpauser/ember-cli,johanneswuerbach/ember-cli,cibernox/ember-cli,twokul/ember-cli,josemarluedke/ember-cli,mohlek/ember-cli,trentmwillis/ember-cli,johanneswuerbach/ember-cli,calderas/ember-cli,jgwhite/ember-cli,kellyselden/ember-cli,kriswill/ember-cli,romulomachado/ember-cli,kanongil/ember-cli,Turbo87/ember-cli,xtian/ember-cli,rtablada/ember-cli,asakusuma/ember-cli,kategengler/ember-cli,pzuraq/ember-cli,romulomachado/ember-cli,sivakumar-kailasam/ember-cli,scalus/ember-cli,givanse/ember-cli,mike-north/ember-cli,yaymukund/ember-cli,buschtoens/ember-cli,givanse/ember-cli,trentmwillis/ember-cli,josemarluedke/ember-cli,sivakumar-kailasam/ember-cli,eccegordo/ember-cli,kellyselden/ember-cli,xtian/ember-cli,gfvcastro/ember-cli,gfvcastro/ember-cli,acorncom/ember-cli,cibernox/ember-cli,jasonmit/ember-cli,rtablada/ember-cli,cibernox/ember-cli,BrianSipple/ember-cli
|
a815c7e9d888053d37d6d98a56c84b3836265331
|
ui/commands/select_all.js
|
ui/commands/select_all.js
|
'use strict';
var Command = require('./command');
var SelectAll = Command.extend({
static: {
name: 'selectAll'
},
execute: function() {
var ctrl = this.getController();
var surface = ctrl.getSurface();
if (surface) {
var editor = ctrl.getSurface().getEditor();
var newSelection = editor.selectAll(ctrl.getDocument(), surface.getSelection());
surface.setSelection(newSelection);
return true;
} else {
console.warn('selectAll command can not be applied since there is no focused surface');
return false;
}
}
});
module.exports = SelectAll;
|
'use strict';
var SurfaceCommand = require('./surface_command');
var SelectAll = SurfaceCommand.extend({
static: {
name: 'selectAll'
},
execute: function() {
var surface = this.getSurface();
if (surface) {
var newSelection = surface.selectAll(surface.getDocument(), surface.getSelection());
surface.setSelection(newSelection);
return true;
} else {
console.warn('selectAll command can not be applied since there is no focused surface');
return false;
}
}
});
module.exports = SelectAll;
|
Fix broken select all command.
|
Fix broken select all command.
|
JavaScript
|
mit
|
TypesetIO/substance,jacwright/substance,andene/substance,substance/substance,abhaga/substance,stencila/substance,substance/substance,michael/substance-1,andene/substance,michael/substance-1,TypesetIO/substance,podviaznikov/substance,abhaga/substance,podviaznikov/substance,jacwright/substance
|
6fea7c2846d3977e2b6549aa3243d582b4c39c78
|
Libraries/react-native/react-native-interface.js
|
Libraries/react-native/react-native-interface.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.
*
* @flow
*/
// see also react-native.js
declare var __DEV__: boolean;
declare var __REACT_DEVTOOLS_GLOBAL_HOOK__: any; /*?{
inject: ?((stuff: Object) => void)
};*/
declare var fetch: any;
declare var Headers: any;
declare var Request: any;
declare var Response: any;
|
/**
* 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.
*
* @flow
*/
// see also react-native.js
declare var __DEV__: boolean;
declare var __REACT_DEVTOOLS_GLOBAL_HOOK__: any; /*?{
inject: ?((stuff: Object) => void)
};*/
declare var fetch: any;
declare var Headers: any;
declare var Request: any;
declare var Response: any;
declare module requestAnimationFrame {
declare var exports: (callback: any) => any;
}
|
Remove all the flow errors
|
[ReactNative] Remove all the flow errors
|
JavaScript
|
mit
|
Applied-Duality/react-native,judastree/react-native,javache/react-native,corbt/react-native,charlesvinette/react-native,sghiassy/react-native,Poplava/react-native,soxunyi/react-native,cez213/react-native,hengcj/react-native,cdlewis/react-native,tarkus/react-native-appletv,peterp/react-native,BretJohnson/react-native,eddiemonge/react-native,hammerandchisel/react-native,honger05/react-native,adamjmcgrath/react-native,pjcabrera/react-native,Poplava/react-native,bowlofstew/react-native,lanceharper/react-native,jaggs6/react-native,MonirAbuHilal/react-native,philikon/react-native,kotdark/react-native,NZAOM/react-native,ChiMarvine/react-native,nathanajah/react-native,tgf229/react-native,ankitsinghania94/react-native,rkumar3147/react-native,LytayTOUCH/react-native,shrimpy/react-native,rebeccahughes/react-native,sonnylazuardi/react-native,gabrielbellamy/react-native,ipmobiletech/react-native,imWildCat/react-native,hanxiaofei/react-native,wangyzyoga/react-native,liangmingjie/react-native,rantianhua/react-native,shadow000902/react-native,olivierlesnicki/react-native,imjerrybao/react-native,makadaw/react-native,Lucifer-Kim/react-native,maskkid/react-native,barakcoh/react-native,htc2u/react-native,fw1121/react-native,abdelouahabb/react-native,zhangxq5012/react-native,rwwarren/react-native,Reparadocs/react-native,tgriesser/react-native,udnisap/react-native,waynett/react-native,sudhirj/react-native,ProjectSeptemberInc/react-native,skevy/react-native,luqin/react-native,milieu/react-native,nathanajah/react-native,levic92/react-native,YueRuo/react-native,dabit3/react-native,narlian/react-native,yangshangde/react-native,jmhdez/react-native,ChristianHersevoort/react-native,rushidesai/react-native,hanxiaofei/react-native,ankitsinghania94/react-native,rickbeerendonk/react-native,unknownexception/react-native,liufeigit/react-native,Guardiannw/react-native,CodeLinkIO/react-native,srounce/react-native,negativetwelve/react-native,folist/react-native,monyxie/react-native,folist/react-native,lucyywang/react-native,jevakallio/react-native,pandiaraj44/react-native,chapinkapa/react-native,levic92/react-native,code0100fun/react-native,PlexChat/react-native,ronak301/react-native,bright-sparks/react-native,clooth/react-native,richardgill/react-native,brentvatne/react-native,mcanthony/react-native,MonirAbuHilal/react-native,jekey/react-native,Zagorakiss/react-native,daveenguyen/react-native,gilesvangruisen/react-native,enaqx/react-native,dimoge/react-native,MattFoley/react-native,MonirAbuHilal/react-native,YinshawnRao/react-native,ldehai/react-native,yjh0502/react-native,unknownexception/react-native,levic92/react-native,Applied-Duality/react-native,bestwpw/react-native,rwwarren/react-native,spicyj/react-native,honger05/react-native,eduardinni/react-native,edward/react-native,nsimmons/react-native,ouyangwenfeng/react-native,shinate/react-native,mukesh-kumar1905/react-native,mrspeaker/react-native,Furzikov/react-native,yiminghe/react-native,peterp/react-native,gegaosong/react-native,pickhardt/react-native,jacobbubu/react-native,jekey/react-native,southasia/react-native,hwsyy/react-native,salanki/react-native,zdsiyan/react-native,Livyli/react-native,narlian/react-native,kesha-antonov/react-native,glovebx/react-native,Maxwell2022/react-native,hzgnpu/react-native,compulim/react-native,jackalchen/react-native,Bhullnatik/react-native,martinbigio/react-native,mqli/react-native,pitatensai/react-native,sitexa/react-native,ktoh/react-native,chsj1/react-native,adamjmcgrath/react-native,farazs/react-native,charmingzuo/react-native,shrimpy/react-native,lmorchard/react-native,kentaromiura/react-native,rainkong/react-native,harrykiselev/react-native,rainkong/react-native,andrewljohnson/react-native,jhen0409/react-native,lanceharper/react-native,beni55/react-native,peterp/react-native,DannyvanderJagt/react-native,lstNull/react-native,josebalius/react-native,evilemon/react-native,aziz-boudi4/react-native,hike2008/react-native,sahat/react-native,lstNull/react-native,narlian/react-native,nanpian/react-native,guanghuili/react-native,ljhsai/react-native,bsansouci/react-native,yjyi/react-native,kesha-antonov/react-native,christopherdro/react-native,lokilandon/react-native,noif/react-native,cdlewis/react-native,charmingzuo/react-native,krock01/react-native,chapinkapa/react-native,ludaye123/react-native,leegilon/react-native,aifeld/react-native,bogdantmm92/react-native,goodheart/react-native,dizlexik/react-native,sahrens/react-native,nbcnews/react-native,Livyli/react-native,codejet/react-native,jmhdez/react-native,JulienThibeaut/react-native,ajwhite/react-native,ktoh/react-native,misakuo/react-native,Shopify/react-native,MattFoley/react-native,tadeuzagallo/react-native,Loke155/react-native,mqli/react-native,Bronts/react-native,xinthink/react-native,leegilon/react-native,luqin/react-native,tarkus/react-native-appletv,ptomasroos/react-native,jackalchen/react-native,rodneyss/react-native,mihaigiurgeanu/react-native,skatpgusskat/react-native,adamterlson/react-native,dimoge/react-native,javache/react-native,garrows/react-native,eduardinni/react-native,tszajna0/react-native,rodneyss/react-native,Flickster42490/react-native,liubko/react-native,Hkmu/react-native,carcer/react-native,yusefnapora/react-native,johnv315/react-native,dvcrn/react-native,catalinmiron/react-native,darrylblake/react-native,krock01/react-native,aaron-goshine/react-native,Guardiannw/react-native,fengshao0907/react-native,zenlambda/react-native,iodine/react-native,pandiaraj44/react-native,machard/react-native,yangchengwork/react-native,wesley1001/react-native,imWildCat/react-native,magnus-bergman/react-native,stan229/react-native,geoffreyfloyd/react-native,roy0914/react-native,tsjing/react-native,hoangpham95/react-native,yimouleng/react-native,hammerandchisel/react-native,sjchakrav/react-native,gs-akhan/react-native,cxfeng1/react-native,appersonlabs/react-native,DannyvanderJagt/react-native,htc2u/react-native,bradbumbalough/react-native,yushiwo/react-native,programming086/react-native,forcedotcom/react-native,jabinwang/react-native,oren/react-native,liuhong1happy/react-native,yangchengwork/react-native,yjyi/react-native,kushal/react-native,dvcrn/react-native,tsdl2013/react-native,darkrishabh/react-native,ldehai/react-native,miracle2k/react-native,facebook/react-native,kassens/react-native,dfala/react-native,mqli/react-native,yiminghe/react-native,xxccll/react-native,lloydho/react-native,pickhardt/react-native,formatlos/react-native,mbrock/react-native,irisli/react-native,mironiasty/react-native,jhen0409/react-native,lendup/react-native,TChengZ/react-native,mtford90/react-native,zdsiyan/react-native,andersryanc/react-native,csatf/react-native,Furzikov/react-native,hesling/react-native,hzgnpu/react-native,browniefed/react-native,sheep902/react-native,quyixia/react-native,liangmingjie/react-native,waynett/react-native,fish24k/react-native,ehd/react-native,alpz5566/react-native,noif/react-native,ptomasroos/react-native,hydraulic/react-native,skatpgusskat/react-native,garydonovan/react-native,Bhullnatik/react-native,1988fei/react-native,wangcan2014/react-native,supercocoa/react-native,TChengZ/react-native,marlonandrade/react-native,bouk/react-native,apprennet/react-native,Shopify/react-native,darkrishabh/react-native,ehd/react-native,rantianhua/react-native,gauribhoite/react-native,NishanthShankar/react-native,RGKzhanglei/react-native,ouyangwenfeng/react-native,quuack/react-native,MetSystem/react-native,yzarubin/react-native,garrows/react-native,shrutic123/react-native,sahrens/react-native,zhangwei001/react-native,garrows/react-native,yjyi/react-native,ipmobiletech/react-native,callstack-io/react-native,clooth/react-native,sunblaze/react-native,MonirAbuHilal/react-native,bestwpw/react-native,philonpang/react-native,mjetek/react-native,adamkrell/react-native,androidgilbert/react-native,Jonekee/react-native,mjetek/react-native,southasia/react-native,BretJohnson/react-native,Serfenia/react-native,brentvatne/react-native,nickhudkins/react-native,mozillo/react-native,spicyj/react-native,hoangpham95/react-native,beni55/react-native,lmorchard/react-native,doochik/react-native,huip/react-native,hassanabidpk/react-native,bradens/react-native,bright-sparks/react-native,leeyeh/react-native,hike2008/react-native,rxb/react-native,chsj1/react-native,billhello/react-native,dvcrn/react-native,NunoEdgarGub1/react-native,shrutic/react-native,Poplava/react-native,ankitsinghania94/react-native,nevir/react-native,ludaye123/react-native,mcanthony/react-native,chentsulin/react-native,sahrens/react-native,DerayGa/react-native,mchinyakov/react-native,nbcnews/react-native,csatf/react-native,hassanabidpk/react-native,alin23/react-native,rickbeerendonk/react-native,wildKids/react-native,DanielMSchmidt/react-native,threepointone/react-native-1,hwsyy/react-native,facebook/react-native,ludaye123/react-native,donyu/react-native,martinbigio/react-native,udnisap/react-native,InterfaceInc/react-native,timfpark/react-native,tahnok/react-native,magnus-bergman/react-native,onesfreedom/react-native,kushal/react-native,marlonandrade/react-native,Rowandjj/react-native,bradbumbalough/react-native,yutail/react-native,ramoslin02/react-native,lightsofapollo/react-native,xiaoking/react-native,sahrens/react-native,DanielMSchmidt/react-native,skatpgusskat/react-native,stan229/react-native,MattFoley/react-native,csudanthi/react-native,eliagrady/react-native,lee-my/react-native,exponentjs/react-native,mariusbutuc/react-native,xxccll/react-native,genome21/react-native,exponent/react-native,Tredsite/react-native,wangyzyoga/react-native,kassens/react-native,zyvas/react-native,cdlewis/react-native,kotdark/react-native,charlesvinette/react-native,ehd/react-native,mrngoitall/react-native,carcer/react-native,wjb12/react-native,udnisap/react-native,spicyj/react-native,clozr/react-native,lokilandon/react-native,j27cai/react-native,goodheart/react-native,woshili1/react-native,urvashi01/react-native,mrngoitall/react-native,machard/react-native,jackeychens/react-native,gs-akhan/react-native,cpunion/react-native,cosmith/react-native,iodine/react-native,ludaye123/react-native,dylanchann/react-native,patoroco/react-native,gitim/react-native,pallyoung/react-native,tsdl2013/react-native,Maxwell2022/react-native,Rowandjj/react-native,ide/react-native,pairyo/react-native,richardgill/react-native,Purii/react-native,wangziqiang/react-native,wangziqiang/react-native,lgengsy/react-native,jasonnoahchoi/react-native,dabit3/react-native,mukesh-kumar1905/react-native,F2EVarMan/react-native,wdxgtsh/react-native,genome21/react-native,bouk/react-native,cdlewis/react-native,YComputer/react-native,genome21/react-native,qingsong-xu/react-native,taydakov/react-native,bistacos/react-native,adamkrell/react-native,sekouperry/react-native,yutail/react-native,spyrx7/react-native,hanxiaofei/react-native,jordanbyron/react-native,christer155/react-native,supercocoa/react-native,Wingie/react-native,andersryanc/react-native,elliottsj/react-native,gabrielbellamy/react-native,ludaye123/react-native,Bronts/react-native,WilliamRen/react-native,jasonals/react-native,rainkong/react-native,MattFoley/react-native,hike2008/react-native,wjb12/react-native,madusankapremaratne/react-native,kassens/react-native,vincentqiu/react-native,yangshangde/react-native,callstack-io/react-native,luqin/react-native,lprhodes/react-native,imDangerous/react-native,futbalguy/react-native,almost/react-native,F2EVarMan/react-native,formatlos/react-native,bodefuwa/react-native,lprhodes/react-native,jhen0409/react-native,thotegowda/react-native,ronak301/react-native,browniefed/react-native,andrewljohnson/react-native,mchinyakov/react-native,jaggs6/react-native,YueRuo/react-native,zenlambda/react-native,xinthink/react-native,mtford90/react-native,strwind/react-native,oren/react-native,esauter5/react-native,kushal/react-native,christer155/react-native,patoroco/react-native,zhangwei001/react-native,southasia/react-native,ide/react-native,frantic/react-native,arbesfeld/react-native,eliagrady/react-native,chnfeeeeeef/react-native,soulcm/react-native,sonnylazuardi/react-native,soxunyi/react-native,taydakov/react-native,mukesh-kumar1905/react-native,simple88/react-native,pletcher/react-native,aaron-goshine/react-native,chengky/react-native,Suninus/react-native,edward/react-native,huip/react-native,jevakallio/react-native,Flickster42490/react-native,xiaoking/react-native,BossKing/react-native,tsdl2013/react-native,strwind/react-native,bistacos/react-native,esauter5/react-native,magnus-bergman/react-native,sospartan/react-native,sekouperry/react-native,jevakallio/react-native,nsimmons/react-native,programming086/react-native,barakcoh/react-native,chirag04/react-native,almost/react-native,apprennet/react-native,Ehesp/react-native,21451061/react-native,formatlos/react-native,ludaye123/react-native,yiminghe/react-native,glovebx/react-native,jasonals/react-native,nickhudkins/react-native,mozillo/react-native,jeffchienzabinet/react-native,Iragne/react-native,Reparadocs/react-native,rxb/react-native,browniefed/react-native,Bhullnatik/react-native,wenpkpk/react-native,happypancake/react-native,cpunion/react-native,elliottsj/react-native,alvarojoao/react-native,chengky/react-native,hengcj/react-native,imjerrybao/react-native,janicduplessis/react-native,elliottsj/react-native,kamronbatman/react-native,bradens/react-native,liuzechen/react-native,Swaagie/react-native,chsj1/react-native,tgf229/react-native,Loke155/react-native,common2015/react-native,corbt/react-native,happypancake/react-native,cpunion/react-native,gauribhoite/react-native,jeanblanchard/react-native,miracle2k/react-native,mqli/react-native,Zagorakiss/react-native,Srikanth4/react-native,androidgilbert/react-native,cazacugmihai/react-native,dut3062796s/react-native,pengleelove/react-native,Lohit9/react-native,programming086/react-native,leeyeh/react-native,JackLeeMing/react-native,oren/react-native,chsj1/react-native,sahat/react-native,ide/react-native,cmhsu/react-native,srounce/react-native,sdiaz/react-native,sheep902/react-native,ortutay/react-native,sjchakrav/react-native,Purii/react-native,hydraulic/react-native,monyxie/react-native,YueRuo/react-native,fish24k/react-native,chengky/react-native,milieu/react-native,jevakallio/react-native,quuack/react-native,cxfeng1/react-native,jevakallio/react-native,negativetwelve/react-native,ortutay/react-native,shrutic123/react-native,chentsulin/react-native,olivierlesnicki/react-native,Intellicode/react-native,soxunyi/react-native,YinshawnRao/react-native,cosmith/react-native,ouyangwenfeng/react-native,callstack-io/react-native,ProjectSeptemberInc/react-native,dvcrn/react-native,Applied-Duality/react-native,timfpark/react-native,lee-my/react-native,BossKing/react-native,strwind/react-native,Ehesp/react-native,sdiaz/react-native,arbesfeld/react-native,Lucifer-Kim/react-native,urvashi01/react-native,YueRuo/react-native,lprhodes/react-native,rkumar3147/react-native,orenklein/react-native,ChristopherSalam/react-native,ldehai/react-native,lgengsy/react-native,sitexa/react-native,machard/react-native,formatlos/react-native,bouk/react-native,sixtomay/react-native,skevy/react-native,barakcoh/react-native,mcanthony/react-native,irisli/react-native,spicyj/react-native,codejet/react-native,ericvera/react-native,garydonovan/react-native,sghiassy/react-native,madusankapremaratne/react-native,oren/react-native,Ehesp/react-native,yjyi/react-native,woshili1/react-native,ramoslin02/react-native,zvona/react-native,jaredly/react-native,satya164/react-native,forcedotcom/react-native,kotdark/react-native,threepointone/react-native-1,lanceharper/react-native,patoroco/react-native,steben/react-native,ordinarybill/react-native,rollokb/react-native,ankitsinghania94/react-native,johnv315/react-native,simple88/react-native,lgengsy/react-native,hzgnpu/react-native,judastree/react-native,pitatensai/react-native,Intellicode/react-native,dralletje/react-native,aziz-boudi4/react-native,fengshao0907/react-native,milieu/react-native,zuolangguo/react-native,lightsofapollo/react-native,timfpark/react-native,imWildCat/react-native,mosch/react-native,liangmingjie/react-native,Swaagie/react-native,wesley1001/react-native,gre/react-native,wlrhnh-David/react-native,philonpang/react-native,pickhardt/react-native,luqin/react-native,ipmobiletech/react-native,naoufal/react-native,sekouperry/react-native,chapinkapa/react-native,vjeux/react-native,Emilios1995/react-native,tsjing/react-native,machard/react-native,ide/react-native,monyxie/react-native,eduardinni/react-native,aziz-boudi4/react-native,eduardinni/react-native,zdsiyan/react-native,jaggs6/react-native,tszajna0/react-native,JasonZ321/react-native,adamterlson/react-native,woshili1/react-native,Zagorakiss/react-native,bestwpw/react-native,imjerrybao/react-native,lee-my/react-native,xinthink/react-native,lelandrichardson/react-native,ptmt/react-native,hassanabidpk/react-native,chenbk85/react-native,jibonpab/react-native,Heart2009/react-native,cdlewis/react-native,hzgnpu/react-native,kundanjadhav/react-native,gitim/react-native,fengshao0907/react-native,hassanabidpk/react-native,chenbk85/react-native,zuolangguo/react-native,formatlos/react-native,ldehai/react-native,Loke155/react-native,enaqx/react-native,ChristianHersevoort/react-native,ordinarybill/react-native,CodeLinkIO/react-native,doochik/react-native,MonirAbuHilal/react-native,daveenguyen/react-native,codejet/react-native,pletcher/react-native,ordinarybill/react-native,tahnok/react-native,Poplava/react-native,bistacos/react-native,vincentqiu/react-native,miracle2k/react-native,jbaumbach/react-native,sonnylazuardi/react-native,yamill/react-native,roy0914/react-native,eduvon0220/react-native,makadaw/react-native,Maxwell2022/react-native,frantic/react-native,Zagorakiss/react-native,clozr/react-native,ludaye123/react-native,darkrishabh/react-native,misakuo/react-native,liufeigit/react-native,olivierlesnicki/react-native,ProjectSeptemberInc/react-native,yushiwo/react-native,carcer/react-native,yusefnapora/react-native,exponentjs/rex,yutail/react-native,1988fei/react-native,mchinyakov/react-native,sekouperry/react-native,alin23/react-native,imWildCat/react-native,trueblue2704/react-native,PhilippKrone/react-native,YinshawnRao/react-native,androidgilbert/react-native,shadow000902/react-native,lwansbrough/react-native,adamterlson/react-native,NunoEdgarGub1/react-native,sjchakrav/react-native,ptmt/react-native-macos,negativetwelve/react-native,sudhirj/react-native,mariusbutuc/react-native,quuack/react-native,satya164/react-native,orenklein/react-native,nickhargreaves/react-native,eduardinni/react-native,chetstone/react-native,mosch/react-native,myntra/react-native,strwind/react-native,Shopify/react-native,jevakallio/react-native,ptomasroos/react-native,kfiroo/react-native,facebook/react-native,Heart2009/react-native,hayeah/react-native,vjeux/react-native,hydraulic/react-native,christopherdro/react-native,ptmt/react-native-macos,frantic/react-native,sdiaz/react-native,ivanph/react-native,goodheart/react-native,arbesfeld/react-native,kfiroo/react-native,aifeld/react-native,alantrrs/react-native,nsimmons/react-native,gegaosong/react-native,aljs/react-native,misakuo/react-native,mariusbutuc/react-native,vlrchtlt/react-native,NunoEdgarGub1/react-native,appersonlabs/react-native,kotdark/react-native,wangjiangwen/react-native,yjh0502/react-native,evilemon/react-native,sdiaz/react-native,andersryanc/react-native,xiangjuntang/react-native,BretJohnson/react-native,hayeah/react-native,21451061/react-native,bsansouci/react-native,jeffchienzabinet/react-native,narlian/react-native,mtford90/react-native,chentsulin/react-native,dimoge/react-native,chetstone/react-native,farazs/react-native,ldehai/react-native,cazacugmihai/react-native,chsj1/react-native,adrie4mac/react-native,timfpark/react-native,tsdl2013/react-native,sitexa/react-native,lanceharper/react-native,guanghuili/react-native,RGKzhanglei/react-native,christer155/react-native,shrutic123/react-native,zvona/react-native,skevy/react-native,pandiaraj44/react-native,jacobbubu/react-native,apprennet/react-native,lwansbrough/react-native,jasonnoahchoi/react-native,alantrrs/react-native,eddiemonge/react-native,urvashi01/react-native,skevy/react-native,doochik/react-native,eliagrady/react-native,threepointone/react-native-1,MattFoley/react-native,javache/react-native,mironiasty/react-native,jibonpab/react-native,nsimmons/react-native,bsansouci/react-native,ptmt/react-native-macos,olivierlesnicki/react-native,doochik/react-native,BretJohnson/react-native,rickbeerendonk/react-native,charmingzuo/react-native,YComputer/react-native,hydraulic/react-native,F2EVarMan/react-native,jaggs6/react-native,yangchengwork/react-native,vincentqiu/react-native,bradbumbalough/react-native,xiayz/react-native,zhangxq5012/react-native,ouyangwenfeng/react-native,tszajna0/react-native,jaggs6/react-native,pletcher/react-native,cazacugmihai/react-native,charlesvinette/react-native,yangshangde/react-native,garydonovan/react-native,gre/react-native,martinbigio/react-native,browniefed/react-native,tarkus/react-native-appletv,yangshangde/react-native,jonesgithub/react-native,brentvatne/react-native,spyrx7/react-native,codejet/react-native,mtford90/react-native,Furzikov/react-native,lgengsy/react-native,chirag04/react-native,jbaumbach/react-native,DerayGa/react-native,irisli/react-native,TChengZ/react-native,wdxgtsh/react-native,slongwang/react-native,MetSystem/react-native,affinityis/react-native,nathanajah/react-native,elliottsj/react-native,adamterlson/react-native,gs-akhan/react-native,bradens/react-native,sixtomay/react-native,imWildCat/react-native,zenlambda/react-native,Tredsite/react-native,adamkrell/react-native,HSFGitHub/react-native,lelandrichardson/react-native,Furzikov/react-native,janicduplessis/react-native,jibonpab/react-native,pallyoung/react-native,j27cai/react-native,wjb12/react-native,srounce/react-native,browniefed/react-native,eliagrady/react-native,lmorchard/react-native,CodeLinkIO/react-native,Srikanth4/react-native,ivanph/react-native,shadow000902/react-native,exponentjs/react-native,Suninus/react-native,YueRuo/react-native,hydraulic/react-native,liuhong1happy/react-native,darkrishabh/react-native,krock01/react-native,jmhdez/react-native,jmhdez/react-native,exponent/react-native,salanki/react-native,Andreyco/react-native,imWildCat/react-native,YComputer/react-native,charmingzuo/react-native,facebook/react-native,thstarshine/react-native,sudhirj/react-native,mjetek/react-native,pglotov/react-native,mcrooks88/react-native,jhen0409/react-native,zdsiyan/react-native,goodheart/react-native,shadow000902/react-native,chengky/react-native,Flickster42490/react-native,Ehesp/react-native,aljs/react-native,narlian/react-native,Flickster42490/react-native,geoffreyfloyd/react-native,imDangerous/react-native,androidgilbert/react-native,adamterlson/react-native,ldehai/react-native,forcedotcom/react-native,nickhudkins/react-native,jabinwang/react-native,dut3062796s/react-native,yusefnapora/react-native,lprhodes/react-native,billhello/react-native,DanielMSchmidt/react-native,tgoldenberg/react-native,hydraulic/react-native,yutail/react-native,rickbeerendonk/react-native,pglotov/react-native,zhaosichao/react-native,Emilios1995/react-native,alin23/react-native,rwwarren/react-native,simple88/react-native,leegilon/react-native,yutail/react-native,rushidesai/react-native,wangjiangwen/react-native,neeraj-singh/react-native,shrimpy/react-native,bright-sparks/react-native,lucyywang/react-native,xiangjuntang/react-native,ptmt/react-native,sunblaze/react-native,mrngoitall/react-native,wangziqiang/react-native,billhello/react-native,chsj1/react-native,DannyvanderJagt/react-native,pandiaraj44/react-native,lucyywang/react-native,dvcrn/react-native,nktpro/react-native,tahnok/react-native,Poplava/react-native,wjb12/react-native,ProjectSeptemberInc/react-native,marlonandrade/react-native,shinate/react-native,javache/react-native,Lohit9/react-native,NunoEdgarGub1/react-native,aljs/react-native,tsdl2013/react-native,strwind/react-native,kentaromiura/react-native,Guardiannw/react-native,wlrhnh-David/react-native,sitexa/react-native,Tredsite/react-native,Shopify/react-native,code0100fun/react-native,darkrishabh/react-native,affinityis/react-native,ajwhite/react-native,mqli/react-native,Bhullnatik/react-native,sunblaze/react-native,jonesgithub/react-native,thotegowda/react-native,oren/react-native,affinityis/react-native,wangjiangwen/react-native,wustxing/react-native,fish24k/react-native,dikaiosune/react-native,ProjectSeptemberInc/react-native,jaredly/react-native,chirag04/react-native,sixtomay/react-native,sixtomay/react-native,NZAOM/react-native,wesley1001/react-native,steben/react-native,glovebx/react-native,huangsongyan/react-native,jekey/react-native,xiayz/react-native,rickbeerendonk/react-native,forcedotcom/react-native,jackeychens/react-native,bradbumbalough/react-native,enaqx/react-native,ide/react-native,Heart2009/react-native,wdxgtsh/react-native,sdiaz/react-native,JackLeeMing/react-native,a2/react-native,madusankapremaratne/react-native,PhilippKrone/react-native,esauter5/react-native,aaron-goshine/react-native,kundanjadhav/react-native,mironiasty/react-native,NishanthShankar/react-native,carcer/react-native,liuzechen/react-native,strwind/react-native,gs-akhan/react-native,hengcj/react-native,YueRuo/react-native,leegilon/react-native,affinityis/react-native,xxccll/react-native,ChristopherSalam/react-native,aljs/react-native,a2/react-native,CntChen/react-native,yushiwo/react-native,Heart2009/react-native,wangjiangwen/react-native,olivierlesnicki/react-native,vjeux/react-native,shinate/react-native,exponent/react-native,csatf/react-native,affinityis/react-native,ordinarybill/react-native,jbaumbach/react-native,huangsongyan/react-native,Livyli/react-native,alpz5566/react-native,esauter5/react-native,iodine/react-native,DerayGa/react-native,dfala/react-native,affinityis/react-native,wangyzyoga/react-native,facebook/react-native,christopherdro/react-native,mrspeaker/react-native,vlrchtlt/react-native,chiefr/react-native,liuzechen/react-native,johnv315/react-native,puf/react-native,orenklein/react-native,tahnok/react-native,aifeld/react-native,pallyoung/react-native,sospartan/react-native,appersonlabs/react-native,apprennet/react-native,chnfeeeeeef/react-native,chsj1/react-native,trueblue2704/react-native,trueblue2704/react-native,Swaagie/react-native,elliottsj/react-native,elliottsj/react-native,popovsh6/react-native,bouk/react-native,tgoldenberg/react-native,htc2u/react-native,xxccll/react-native,kamronbatman/react-native,zenlambda/react-native,pvinis/react-native-desktop,kassens/react-native,jhen0409/react-native,qq644531343/react-native,zuolangguo/react-native,yangchengwork/react-native,BossKing/react-native,gitim/react-native,aziz-boudi4/react-native,DerayGa/react-native,ivanph/react-native,htc2u/react-native,Flickster42490/react-native,NZAOM/react-native,vincentqiu/react-native,zhangwei001/react-native,srounce/react-native,rantianhua/react-native,F2EVarMan/react-native,unknownexception/react-native,steveleec/react-native,xiayz/react-native,alin23/react-native,wangziqiang/react-native,WilliamRen/react-native,mjetek/react-native,dabit3/react-native,mihaigiurgeanu/react-native,tsjing/react-native,andrewljohnson/react-native,Heart2009/react-native,shadow000902/react-native,Intellicode/react-native,chiefr/react-native,ericvera/react-native,cdlewis/react-native,Srikanth4/react-native,kushal/react-native,patoroco/react-native,doochik/react-native,iodine/react-native,CntChen/react-native,timfpark/react-native,cosmith/react-native,jacobbubu/react-native,michaelchucoder/react-native,MetSystem/react-native,bright-sparks/react-native,nickhargreaves/react-native,kushal/react-native,genome21/react-native,jadbox/react-native,tsjing/react-native,Furzikov/react-native,slongwang/react-native,neeraj-singh/react-native,CntChen/react-native,leegilon/react-native,fw1121/react-native,tgoldenberg/react-native,lstNull/react-native,xiangjuntang/react-native,chrisbutcher/react-native,jadbox/react-native,codejet/react-native,supercocoa/react-native,yimouleng/react-native,rickbeerendonk/react-native,rxb/react-native,Esdeath/react-native,HealthyWealthy/react-native,negativetwelve/react-native,gre/react-native,bradbumbalough/react-native,code0100fun/react-native,HSFGitHub/react-native,skevy/react-native,cosmith/react-native,cmhsu/react-native,adamjmcgrath/react-native,farazs/react-native,facebook/react-native,gauribhoite/react-native,jabinwang/react-native,pitatensai/react-native,DerayGa/react-native,happypancake/react-native,donyu/react-native,noif/react-native,compulim/react-native,makadaw/react-native,yusefnapora/react-native,liuzechen/react-native,udnisap/react-native,arthuralee/react-native,iodine/react-native,makadaw/react-native,bowlofstew/react-native,hoangpham95/react-native,hanxiaofei/react-native,hzgnpu/react-native,noif/react-native,mosch/react-native,beni55/react-native,tarkus/react-native-appletv,dabit3/react-native,liuzechen/react-native,TChengZ/react-native,milieu/react-native,mway08/react-native,yushiwo/react-native,dfala/react-native,neeraj-singh/react-native,Swaagie/react-native,programming086/react-native,liduanw/react-native,jibonpab/react-native,NZAOM/react-native,zyvas/react-native,rantianhua/react-native,alantrrs/react-native,Shopify/react-native,code0100fun/react-native,ouyangwenfeng/react-native,BretJohnson/react-native,andrewljohnson/react-native,carcer/react-native,programming086/react-native,YotrolZ/react-native,zyvas/react-native,nevir/react-native,alantrrs/react-native,nevir/react-native,mcanthony/react-native,christer155/react-native,YueRuo/react-native,liubko/react-native,CodeLinkIO/react-native,thotegowda/react-native,ultralame/react-native,tarkus/react-native-appletv,clozr/react-native,supercocoa/react-native,sahat/react-native,fish24k/react-native,Bronts/react-native,Srikanth4/react-native,RGKzhanglei/react-native,kamronbatman/react-native,vlrchtlt/react-native,TChengZ/react-native,frantic/react-native,eduvon0220/react-native,nevir/react-native,esauter5/react-native,zyvas/react-native,mway08/react-native,gilesvangruisen/react-native,mozillo/react-native,oren/react-native,honger05/react-native,aifeld/react-native,geoffreyfloyd/react-native,Esdeath/react-native,gauribhoite/react-native,nickhudkins/react-native,johnv315/react-native,liduanw/react-native,huangsongyan/react-native,MetSystem/react-native,ouyangwenfeng/react-native,mtford90/react-native,spyrx7/react-native,dvcrn/react-native,eduvon0220/react-native,machard/react-native,Jonekee/react-native,misakuo/react-native,jadbox/react-native,jeffchienzabinet/react-native,jibonpab/react-native,BretJohnson/react-native,shinate/react-native,wangcan2014/react-native,wdxgtsh/react-native,mbrock/react-native,jadbox/react-native,xxccll/react-native,christopherdro/react-native,ChristopherSalam/react-native,foghina/react-native,jbaumbach/react-native,Andreyco/react-native,orenklein/react-native,dfala/react-native,salanki/react-native,brentvatne/react-native,Maxwell2022/react-native,soulcm/react-native,androidgilbert/react-native,jonesgithub/react-native,Heart2009/react-native,alpz5566/react-native,pglotov/react-native,pitatensai/react-native,nanpian/react-native,tszajna0/react-native,bouk/react-native,j27cai/react-native,chenbk85/react-native,Maxwell2022/react-native,bright-sparks/react-native,maskkid/react-native,satya164/react-native,wangjiangwen/react-native,trueblue2704/react-native,bouk/react-native,hoangpham95/react-native,YComputer/react-native,arthuralee/react-native,imjerrybao/react-native,hassanabidpk/react-native,ptmt/react-native,taydakov/react-native,billhello/react-native,21451061/react-native,rodneyss/react-native,browniefed/react-native,cez213/react-native,ouyangwenfeng/react-native,alin23/react-native,shrimpy/react-native,imDangerous/react-native,compulim/react-native,soxunyi/react-native,lelandrichardson/react-native,liufeigit/react-native,folist/react-native,farazs/react-native,alpz5566/react-native,happypancake/react-native,pvinis/react-native-desktop,mway08/react-native,YinshawnRao/react-native,sjchakrav/react-native,rwwarren/react-native,bowlofstew/react-native,leopardpan/react-native,lucyywang/react-native,hike2008/react-native,Tredsite/react-native,enaqx/react-native,lelandrichardson/react-native,HealthyWealthy/react-native,Livyli/react-native,Wingie/react-native,lokilandon/react-native,lwansbrough/react-native,Suninus/react-native,skevy/react-native,j27cai/react-native,mrngoitall/react-native,puf/react-native,pengleelove/react-native,adamjmcgrath/react-native,rantianhua/react-native,PhilippKrone/react-native,catalinmiron/react-native,soxunyi/react-native,christopherdro/react-native,Lohit9/react-native,alpz5566/react-native,guanghuili/react-native,kfiroo/react-native,JasonZ321/react-native,xiaoking/react-native,yangchengwork/react-native,sekouperry/react-native,noif/react-native,NishanthShankar/react-native,neeraj-singh/react-native,ljhsai/react-native,folist/react-native,fw1121/react-native,supercocoa/react-native,guanghuili/react-native,xinthink/react-native,eduvon0220/react-native,Hkmu/react-native,Emilios1995/react-native,ajwhite/react-native,lgengsy/react-native,johnv315/react-native,averted/react-native,sekouperry/react-native,imDangerous/react-native,BretJohnson/react-native,timfpark/react-native,leeyeh/react-native,Tredsite/react-native,MonirAbuHilal/react-native,simple88/react-native,jacobbubu/react-native,barakcoh/react-native,Serfenia/react-native,lstNull/react-native,lloydho/react-native,facebook/react-native,barakcoh/react-native,jaredly/react-native,rxb/react-native,krock01/react-native,zvona/react-native,pandiaraj44/react-native,ajwhite/react-native,gabrielbellamy/react-native,jbaumbach/react-native,almost/react-native,Poplava/react-native,daveenguyen/react-native,jeanblanchard/react-native,sahat/react-native,Shopify/react-native,Hkmu/react-native,vlrchtlt/react-native,strwind/react-native,androidgilbert/react-native,liufeigit/react-native,naoufal/react-native,lendup/react-native,catalinmiron/react-native,wlrhnh-David/react-native,sahat/react-native,hassanabidpk/react-native,lokilandon/react-native,janicduplessis/react-native,PlexChat/react-native,glovebx/react-native,DannyvanderJagt/react-native,jmhdez/react-native,zhaosichao/react-native,rainkong/react-native,oren/react-native,Bhullnatik/react-native,folist/react-native,liduanw/react-native,lucyywang/react-native,johnv315/react-native,JulienThibeaut/react-native,myntra/react-native,stan229/react-native,tahnok/react-native,zuolangguo/react-native,bsansouci/react-native,mozillo/react-native,patoroco/react-native,darkrishabh/react-native,glovebx/react-native,zvona/react-native,xiaoking/react-native,yamill/react-native,shrutic123/react-native,bestwpw/react-native,forcedotcom/react-native,ultralame/react-native,simple88/react-native,ljhsai/react-native,Ehesp/react-native,Livyli/react-native,Emilios1995/react-native,ajwhite/react-native,ivanph/react-native,sghiassy/react-native,YinshawnRao/react-native,hzgnpu/react-native,nickhargreaves/react-native,cpunion/react-native,ljhsai/react-native,soulcm/react-native,zhaosichao/react-native,nickhargreaves/react-native,madusankapremaratne/react-native,hzgnpu/react-native,doochik/react-native,wangjiangwen/react-native,orenklein/react-native,a2/react-native,CodeLinkIO/react-native,alvarojoao/react-native,lendup/react-native,javache/react-native,goodheart/react-native,Jonekee/react-native,skatpgusskat/react-native,rantianhua/react-native,dimoge/react-native,eddiemonge/react-native,j27cai/react-native,ktoh/react-native,esauter5/react-native,Flickster42490/react-native,michaelchucoder/react-native,nsimmons/react-native,Serfenia/react-native,xiayz/react-native,gre/react-native,Maxwell2022/react-native,wdxgtsh/react-native,wangziqiang/react-native,averted/react-native,liufeigit/react-native,mihaigiurgeanu/react-native,yjyi/react-native,jabinwang/react-native,zdsiyan/react-native,mariusbutuc/react-native,lucyywang/react-native,barakcoh/react-native,Tredsite/react-native,kentaromiura/react-native,sahat/react-native,sghiassy/react-native,bradbumbalough/react-native,Lucifer-Kim/react-native,enaqx/react-native,cazacugmihai/react-native,exponentjs/rex,yzarubin/react-native,jadbox/react-native,narlian/react-native,zyvas/react-native,gabrielbellamy/react-native,rxb/react-native,almost/react-native,sixtomay/react-native,mironiasty/react-native,sheep902/react-native,htc2u/react-native,jeanblanchard/react-native,sghiassy/react-native,xinthink/react-native,Wingie/react-native,hoastoolshop/react-native,aaron-goshine/react-native,BretJohnson/react-native,dralletje/react-native,vlrchtlt/react-native,charlesvinette/react-native,chapinkapa/react-native,wustxing/react-native,lee-my/react-native,xiayz/react-native,carcer/react-native,PlexChat/react-native,monyxie/react-native,nbcnews/react-native,HealthyWealthy/react-native,Iragne/react-native,jmhdez/react-native,garydonovan/react-native,fish24k/react-native,liduanw/react-native,janicduplessis/react-native,ortutay/react-native,ipmobiletech/react-native,christer155/react-native,enaqx/react-native,pglotov/react-native,ptomasroos/react-native,pitatensai/react-native,rodneyss/react-native,farazs/react-native,code0100fun/react-native,dimoge/react-native,tsjing/react-native,ChiMarvine/react-native,charlesvinette/react-native,hesling/react-native,geoffreyfloyd/react-native,jeffchienzabinet/react-native,kesha-antonov/react-native,thotegowda/react-native,hwsyy/react-native,jhen0409/react-native,mway08/react-native,foghina/react-native,nanpian/react-native,marlonandrade/react-native,ericvera/react-native,imjerrybao/react-native,steben/react-native,yamill/react-native,steveleec/react-native,jasonnoahchoi/react-native,dubert/react-native,alpz5566/react-native,xiangjuntang/react-native,pvinis/react-native-desktop,YotrolZ/react-native,sheep902/react-native,quyixia/react-native,lendup/react-native,mjetek/react-native,shrutic123/react-native,adamjmcgrath/react-native,happypancake/react-native,nsimmons/react-native,taydakov/react-native,michaelchucoder/react-native,jasonnoahchoi/react-native,YueRuo/react-native,mjetek/react-native,janicduplessis/react-native,ndejesus1227/react-native,charlesvinette/react-native,dizlexik/react-native,dikaiosune/react-native,qingsong-xu/react-native,huangsongyan/react-native,roy0914/react-native,hoangpham95/react-native,cez213/react-native,kamronbatman/react-native,Furzikov/react-native,yimouleng/react-native,ChristianHersevoort/react-native,abdelouahabb/react-native,yushiwo/react-native,rwwarren/react-native,chiefr/react-native,strwind/react-native,adamjmcgrath/react-native,yusefnapora/react-native,unknownexception/react-native,rodneyss/react-native,CntChen/react-native,lelandrichardson/react-native,threepointone/react-native-1,wlrhnh-David/react-native,mrngoitall/react-native,gilesvangruisen/react-native,wustxing/react-native,zhaosichao/react-native,ChristianHersevoort/react-native,imjerrybao/react-native,Ehesp/react-native,brentvatne/react-native,garrows/react-native,bowlofstew/react-native,JulienThibeaut/react-native,liuhong1happy/react-native,ptomasroos/react-native,makadaw/react-native,yutail/react-native,Livyli/react-native,esauter5/react-native,callstack-io/react-native,mway08/react-native,Maxwell2022/react-native,common2015/react-native,kamronbatman/react-native,fengshao0907/react-native,huip/react-native,yiminghe/react-native,imjerrybao/react-native,hanxiaofei/react-native,marlonandrade/react-native,WilliamRen/react-native,jaredly/react-native,JulienThibeaut/react-native,wildKids/react-native,alin23/react-native,zvona/react-native,daveenguyen/react-native,almost/react-native,hoastoolshop/react-native,tgf229/react-native,steben/react-native,garydonovan/react-native,leegilon/react-native,shrimpy/react-native,ronak301/react-native,hammerandchisel/react-native,dylanchann/react-native,mariusbutuc/react-native,NZAOM/react-native,Loke155/react-native,csudanthi/react-native,yamill/react-native,thotegowda/react-native,cpunion/react-native,zhaosichao/react-native,charmingzuo/react-native,hesling/react-native,foghina/react-native,michaelchucoder/react-native,jonesgithub/react-native,huip/react-native,shrutic/react-native,tadeuzagallo/react-native,ProjectSeptemberInc/react-native,exponent/react-native,dralletje/react-native,catalinmiron/react-native,alvarojoao/react-native,sghiassy/react-native,mironiasty/react-native,salanki/react-native,cmhsu/react-native,bsansouci/react-native,magnus-bergman/react-native,philonpang/react-native,kushal/react-native,vincentqiu/react-native,wildKids/react-native,rkumar3147/react-native,dabit3/react-native,chiefr/react-native,bsansouci/react-native,maskkid/react-native,folist/react-native,Furzikov/react-native,JackLeeMing/react-native,rkumar3147/react-native,magnus-bergman/react-native,hoastoolshop/react-native,wenpkpk/react-native,apprennet/react-native,chengky/react-native,dubert/react-native,wlrhnh-David/react-native,richardgill/react-native,Emilios1995/react-native,genome21/react-native,bouk/react-native,sheep902/react-native,maskkid/react-native,Emilios1995/react-native,geoffreyfloyd/react-native,popovsh6/react-native,harrykiselev/react-native,zyvas/react-native,yangshangde/react-native,nsimmons/react-native,liduanw/react-native,mqli/react-native,zdsiyan/react-native,Reparadocs/react-native,cdlewis/react-native,bowlofstew/react-native,Jonekee/react-native,javache/react-native,hesling/react-native,rebeccahughes/react-native,hwsyy/react-native,dizlexik/react-native,nathanajah/react-native,PlexChat/react-native,philonpang/react-native,adrie4mac/react-native,Wingie/react-native,leopardpan/react-native,CntChen/react-native,rickbeerendonk/react-native,rodneyss/react-native,NZAOM/react-native,sospartan/react-native,yamill/react-native,irisli/react-native,peterp/react-native,exponentjs/react-native,InterfaceInc/react-native,mosch/react-native,dylanchann/react-native,andersryanc/react-native,dikaiosune/react-native,HealthyWealthy/react-native,tgriesser/react-native,nbcnews/react-native,Poplava/react-native,mosch/react-native,southasia/react-native,sdiaz/react-native,1988fei/react-native,Intellicode/react-native,yangshangde/react-native,tarkus/react-native-appletv,huangsongyan/react-native,skatpgusskat/react-native,dabit3/react-native,chnfeeeeeef/react-native,rebeccahughes/react-native,jaggs6/react-native,billhello/react-native,sdiaz/react-native,pandiaraj44/react-native,jackalchen/react-native,alantrrs/react-native,waynett/react-native,chrisbutcher/react-native,quuack/react-native,DanielMSchmidt/react-native,liubko/react-native,Guardiannw/react-native,futbalguy/react-native,ndejesus1227/react-native,NZAOM/react-native,arbesfeld/react-native,dubert/react-native,alvarojoao/react-native,xinthink/react-native,arbesfeld/react-native,catalinmiron/react-native,patoroco/react-native,gilesvangruisen/react-native,zyvas/react-native,rwwarren/react-native,shadow000902/react-native,onesfreedom/react-native,j27cai/react-native,shrimpy/react-native,Jonekee/react-native,alantrrs/react-native,ouyangwenfeng/react-native,cdlewis/react-native,peterp/react-native,josebalius/react-native,chacbumbum/react-native,jevakallio/react-native,Srikanth4/react-native,wangjiangwen/react-native,kamronbatman/react-native,dikaiosune/react-native,Loke155/react-native,kfiroo/react-native,bodefuwa/react-native,gitim/react-native,CntChen/react-native,liuzechen/react-native,dfala/react-native,andersryanc/react-native,pjcabrera/react-native,lee-my/react-native,guanghuili/react-native,huangsongyan/react-native,shrutic/react-native,bradbumbalough/react-native,CodeLinkIO/react-native,programming086/react-native,miracle2k/react-native,hoangpham95/react-native,dylanchann/react-native,YinshawnRao/react-native,sonnylazuardi/react-native,roy0914/react-native,F2EVarMan/react-native,1988fei/react-native,chacbumbum/react-native,madusankapremaratne/react-native,garrows/react-native,jackalchen/react-native,Heart2009/react-native,lucyywang/react-native,arthuralee/react-native,roy0914/react-native,miracle2k/react-native,enaqx/react-native,happypancake/react-native,wangjiangwen/react-native,code0100fun/react-native,ultralame/react-native,charmingzuo/react-native,averted/react-native,mbrock/react-native,rebeccahughes/react-native,jasonals/react-native,mcrooks88/react-native,kassens/react-native,udnisap/react-native,zhangwei001/react-native,luqin/react-native,InterfaceInc/react-native,kotdark/react-native,tszajna0/react-native,clooth/react-native,liduanw/react-native,rantianhua/react-native,tsjing/react-native,HealthyWealthy/react-native,wenpkpk/react-native,lloydho/react-native,jonesgithub/react-native,quyixia/react-native,hesling/react-native,ortutay/react-native,misakuo/react-native,common2015/react-native,lee-my/react-native,yzarubin/react-native,tgf229/react-native,yjh0502/react-native,mironiasty/react-native,hike2008/react-native,urvashi01/react-native,wangcan2014/react-native,shinate/react-native,roy0914/react-native,pglotov/react-native,sekouperry/react-native,christer155/react-native,nickhudkins/react-native,apprennet/react-native,averted/react-native,myntra/react-native,peterp/react-native,fw1121/react-native,lightsofapollo/react-native,YComputer/react-native,tgoldenberg/react-native,onesfreedom/react-native,dizlexik/react-native,futbalguy/react-native,charmingzuo/react-native,jasonals/react-native,alpz5566/react-native,hassanabidpk/react-native,chrisbutcher/react-native,daveenguyen/react-native,noif/react-native,corbt/react-native,johnv315/react-native,rainkong/react-native,quyixia/react-native,browniefed/react-native,dubert/react-native,iodine/react-native,F2EVarMan/react-native,wlrhnh-David/react-native,brentvatne/react-native,madusankapremaratne/react-native,darrylblake/react-native,MetSystem/react-native,Intellicode/react-native,Hkmu/react-native,gilesvangruisen/react-native,chapinkapa/react-native,hike2008/react-native,tszajna0/react-native,pglotov/react-native,chengky/react-native,farazs/react-native,PlexChat/react-native,kotdark/react-native,eddiemonge/react-native,pglotov/react-native,ndejesus1227/react-native,taydakov/react-native,kamronbatman/react-native,waynett/react-native,ivanph/react-native,almost/react-native,Swaagie/react-native,WilliamRen/react-native,ldehai/react-native,jabinwang/react-native,gabrielbellamy/react-native,tahnok/react-native,tsjing/react-native,bistacos/react-native,lightsofapollo/react-native,wustxing/react-native,yjh0502/react-native,Purii/react-native,xiangjuntang/react-native,xxccll/react-native,zenlambda/react-native,nickhargreaves/react-native,nathanajah/react-native,dizlexik/react-native,krock01/react-native,clooth/react-native,hengcj/react-native,elliottsj/react-native,steveleec/react-native,supercocoa/react-native,taydakov/react-native,jacobbubu/react-native,ptomasroos/react-native,corbt/react-native,appersonlabs/react-native,lgengsy/react-native,madusankapremaratne/react-native,ericvera/react-native,hoastoolshop/react-native,ipmobiletech/react-native,sdiaz/react-native,jackeychens/react-native,ktoh/react-native,rodneyss/react-native,marlonandrade/react-native,andrewljohnson/react-native,eduvon0220/react-native,beni55/react-native,arbesfeld/react-native,maskkid/react-native,urvashi01/react-native,sonnylazuardi/react-native,adamkrell/react-native,popovsh6/react-native,sahat/react-native,j27cai/react-native,DanielMSchmidt/react-native,Shopify/react-native,naoufal/react-native,Ehesp/react-native,lloydho/react-native,csatf/react-native,wdxgtsh/react-native,timfpark/react-native,aljs/react-native,folist/react-native,ptmt/react-native,appersonlabs/react-native,mironiasty/react-native,csudanthi/react-native,zuolangguo/react-native,jadbox/react-native,bodefuwa/react-native,Bronts/react-native,adamjmcgrath/react-native,Zagorakiss/react-native,clooth/react-native,dralletje/react-native,exponentjs/react-native,woshili1/react-native,Intellicode/react-native,yjh0502/react-native,spicyj/react-native,nevir/react-native,Bronts/react-native,YotrolZ/react-native,shlomiatar/react-native,MattFoley/react-native,PhilippKrone/react-native,zenlambda/react-native,charlesvinette/react-native,myntra/react-native,machard/react-native,bsansouci/react-native,liangmingjie/react-native,chengky/react-native,ktoh/react-native,Andreyco/react-native,puf/react-native,LytayTOUCH/react-native,mchinyakov/react-native,xiayz/react-native,aaron-goshine/react-native,krock01/react-native,ankitsinghania94/react-native,zhangxq5012/react-native,arbesfeld/react-native,hammerandchisel/react-native,NunoEdgarGub1/react-native,clozr/react-native,taydakov/react-native,PhilippKrone/react-native,bogdantmm92/react-native,jasonnoahchoi/react-native,negativetwelve/react-native,chetstone/react-native,gs-akhan/react-native,ajwhite/react-native,nbcnews/react-native,christopherdro/react-native,slongwang/react-native,bradens/react-native,hoastoolshop/react-native,liuhong1happy/react-native,vjeux/react-native,liubko/react-native,negativetwelve/react-native,Iragne/react-native,salanki/react-native,bright-sparks/react-native,Lucifer-Kim/react-native,zhangxq5012/react-native,nsimmons/react-native,bestwpw/react-native,roy0914/react-native,naoufal/react-native,bradbumbalough/react-native,pjcabrera/react-native,levic92/react-native,codejet/react-native,InterfaceInc/react-native,leopardpan/react-native,eduvon0220/react-native,Bronts/react-native,exponent/react-native,jeffchienzabinet/react-native,Emilios1995/react-native,tsdl2013/react-native,philonpang/react-native,cpunion/react-native,jekey/react-native,formatlos/react-native,Rowandjj/react-native,a2/react-native,pairyo/react-native,woshili1/react-native,makadaw/react-native,hoangpham95/react-native,zuolangguo/react-native,Intellicode/react-native,corbt/react-native,nathanajah/react-native,spicyj/react-native,kassens/react-native,jeffchienzabinet/react-native,makadaw/react-native,Esdeath/react-native,trueblue2704/react-native,ehd/react-native,liuzechen/react-native,hwsyy/react-native,unknownexception/react-native,ipmobiletech/react-native,codejet/react-native,Wingie/react-native,ptmt/react-native,hoastoolshop/react-native,ajwhite/react-native,eddiemonge/react-native,tgriesser/react-native,dubert/react-native,negativetwelve/react-native,josebalius/react-native,hoastoolshop/react-native,pvinis/react-native-desktop,abdelouahabb/react-native,gitim/react-native,zenlambda/react-native,darkrishabh/react-native,luqin/react-native,esauter5/react-native,kesha-antonov/react-native,rushidesai/react-native,jackalchen/react-native,trueblue2704/react-native,genome21/react-native,mukesh-kumar1905/react-native,wesley1001/react-native,edward/react-native,j27cai/react-native,sitexa/react-native,cazacugmihai/react-native,TChengZ/react-native,jbaumbach/react-native,peterp/react-native,hydraulic/react-native,woshili1/react-native,gauribhoite/react-native,nktpro/react-native,edward/react-native,clooth/react-native,DannyvanderJagt/react-native,gegaosong/react-native,Serfenia/react-native,liufeigit/react-native,tgriesser/react-native,forcedotcom/react-native,jackalchen/react-native,tadeuzagallo/react-native,garydonovan/react-native,thstarshine/react-native,catalinmiron/react-native,gre/react-native,edward/react-native,onesfreedom/react-native,PhilippKrone/react-native,geoffreyfloyd/react-native,ChristopherSalam/react-native,lprhodes/react-native,adamkrell/react-native,pvinis/react-native-desktop,gilesvangruisen/react-native,shinate/react-native,darrylblake/react-native,cpunion/react-native,Bhullnatik/react-native,chenbk85/react-native,Andreyco/react-native,brentvatne/react-native,levic92/react-native,urvashi01/react-native,catalinmiron/react-native,chirag04/react-native,hammerandchisel/react-native,patoroco/react-native,NZAOM/react-native,kfiroo/react-native,wangcan2014/react-native,HSFGitHub/react-native,pairyo/react-native,waynett/react-native,slongwang/react-native,kesha-antonov/react-native,huip/react-native,billhello/react-native,gegaosong/react-native,gegaosong/react-native,shlomiatar/react-native,PhilippKrone/react-native,makadaw/react-native,shrutic123/react-native,gs-akhan/react-native,slongwang/react-native,rwwarren/react-native,misakuo/react-native,mcanthony/react-native,billhello/react-native,hzgnpu/react-native,adamterlson/react-native,jordanbyron/react-native,elliottsj/react-native,MattFoley/react-native,callstack-io/react-native,rushidesai/react-native,abdelouahabb/react-native,taydakov/react-native,qq644531343/react-native,alin23/react-native,Loke155/react-native,Intellicode/react-native,RGKzhanglei/react-native,liubko/react-native,tadeuzagallo/react-native,gabrielbellamy/react-native,southasia/react-native,jasonals/react-native,ericvera/react-native,formatlos/react-native,dylanchann/react-native,adrie4mac/react-native,fw1121/react-native,martinbigio/react-native,bradens/react-native,Reparadocs/react-native,aljs/react-native,dvcrn/react-native,judastree/react-native,ordinarybill/react-native,leegilon/react-native,ChiMarvine/react-native,shlomiatar/react-native,Applied-Duality/react-native,lmorchard/react-native,christopherdro/react-native,sospartan/react-native,yjh0502/react-native,ipmobiletech/react-native,ndejesus1227/react-native,DerayGa/react-native,rantianhua/react-native,YComputer/react-native,adamkrell/react-native,Flickster42490/react-native,bistacos/react-native,udnisap/react-native,peterp/react-native,jackeychens/react-native,yangchengwork/react-native,rxb/react-native,shadow000902/react-native,garrows/react-native,WilliamRen/react-native,ivanph/react-native,shinate/react-native,JulienThibeaut/react-native,skatpgusskat/react-native,tgf229/react-native,richardgill/react-native,andersryanc/react-native,tadeuzagallo/react-native,chirag04/react-native,nanpian/react-native,clozr/react-native,oren/react-native,dvcrn/react-native,puf/react-native,yiminghe/react-native,gabrielbellamy/react-native,Andreyco/react-native,dut3062796s/react-native,yiminghe/react-native,jonesgithub/react-native,farazs/react-native,JasonZ321/react-native,martinbigio/react-native,lstNull/react-native,ankitsinghania94/react-native,evilemon/react-native,pengleelove/react-native,madusankapremaratne/react-native,genome21/react-native,csudanthi/react-native,common2015/react-native,dut3062796s/react-native,naoufal/react-native,DerayGa/react-native,ericvera/react-native,donyu/react-native,ChristopherSalam/react-native,ChiMarvine/react-native,jasonnoahchoi/react-native,jhen0409/react-native,puf/react-native,satya164/react-native,mukesh-kumar1905/react-native,thotegowda/react-native,eliagrady/react-native,spyrx7/react-native,threepointone/react-native-1,appersonlabs/react-native,yamill/react-native,puf/react-native,hassanabidpk/react-native,myntra/react-native,miracle2k/react-native,jaggs6/react-native,pjcabrera/react-native,dikaiosune/react-native,glovebx/react-native,ludaye123/react-native,onesfreedom/react-native,ramoslin02/react-native,thstarshine/react-native,yutail/react-native,zhangwei001/react-native,chsj1/react-native,yushiwo/react-native,mozillo/react-native,ide/react-native,machard/react-native,philikon/react-native,rkumar3147/react-native,orenklein/react-native,chacbumbum/react-native,chapinkapa/react-native,ronak301/react-native,21451061/react-native,pengleelove/react-native,exponent/react-native,sospartan/react-native,zhangxq5012/react-native,jekey/react-native,eduardinni/react-native,thstarshine/react-native,kesha-antonov/react-native,cez213/react-native,gs-akhan/react-native,aaron-goshine/react-native,lmorchard/react-native,jmstout/react-native,rickbeerendonk/react-native,wdxgtsh/react-native,Bhullnatik/react-native,jabinwang/react-native,dut3062796s/react-native,bogdantmm92/react-native,kundanjadhav/react-native,Srikanth4/react-native,rebeccahughes/react-native,philonpang/react-native,hammerandchisel/react-native,tgoldenberg/react-native,mozillo/react-native,clozr/react-native,alantrrs/react-native,csudanthi/react-native,mchinyakov/react-native,noif/react-native,jackeychens/react-native,christopherdro/react-native,billhello/react-native,mcanthony/react-native,kesha-antonov/react-native,soxunyi/react-native,tgoldenberg/react-native,farazs/react-native,sheep902/react-native,bodefuwa/react-native,jeanblanchard/react-native,wangyzyoga/react-native,chirag04/react-native,jeffchienzabinet/react-native,spyrx7/react-native,mqli/react-native,negativetwelve/react-native,ehd/react-native,ide/react-native,bowlofstew/react-native,qq644531343/react-native,compulim/react-native,dabit3/react-native,skatpgusskat/react-native,dylanchann/react-native,a2/react-native,dimoge/react-native,imDangerous/react-native,puf/react-native,JackLeeMing/react-native,jonesgithub/react-native,NishanthShankar/react-native,arthuralee/react-native,naoufal/react-native,DannyvanderJagt/react-native,jordanbyron/react-native,cazacugmihai/react-native,jibonpab/react-native,christer155/react-native,adrie4mac/react-native,mcrooks88/react-native,guanghuili/react-native,onesfreedom/react-native,shrimpy/react-native,quyixia/react-native,doochik/react-native,ajwhite/react-native,lmorchard/react-native,hayeah/react-native,wlrhnh-David/react-native,fw1121/react-native,Guardiannw/react-native,shrutic123/react-native,christer155/react-native,ndejesus1227/react-native,qingsong-xu/react-native,Wingie/react-native,catalinmiron/react-native,ChristianHersevoort/react-native,BossKing/react-native,androidgilbert/react-native,HSFGitHub/react-native,mihaigiurgeanu/react-native,BossKing/react-native,Bronts/react-native,nktpro/react-native,chetstone/react-native,xxccll/react-native,charlesvinette/react-native,ptomasroos/react-native,luqin/react-native,sudhirj/react-native,futbalguy/react-native,DerayGa/react-native,adrie4mac/react-native,TChengZ/react-native,Iragne/react-native,mrngoitall/react-native,Serfenia/react-native,sixtomay/react-native,foghina/react-native,jeffchienzabinet/react-native,csatf/react-native,martinbigio/react-native,F2EVarMan/react-native,wustxing/react-native,dikaiosune/react-native,ordinarybill/react-native,mihaigiurgeanu/react-native,yzarubin/react-native,adamterlson/react-native,zhangxq5012/react-native,hengcj/react-native,tadeuzagallo/react-native,sekouperry/react-native,ProjectSeptemberInc/react-native,mjetek/react-native,sonnylazuardi/react-native,andrewljohnson/react-native,popovsh6/react-native,wangcan2014/react-native,kfiroo/react-native,qq644531343/react-native,cez213/react-native,lwansbrough/react-native,JackLeeMing/react-native,javache/react-native,lloydho/react-native,krock01/react-native,chrisbutcher/react-native,Applied-Duality/react-native,happypancake/react-native,aljs/react-native,rodneyss/react-native,abdelouahabb/react-native,yjyi/react-native,tahnok/react-native,corbt/react-native,rollokb/react-native,alin23/react-native,jackeychens/react-native,JasonZ321/react-native,gre/react-native,spyrx7/react-native,NishanthShankar/react-native,dralletje/react-native,compulim/react-native,mbrock/react-native,salanki/react-native,lprhodes/react-native,programming086/react-native,shlomiatar/react-native,MetSystem/react-native,MonirAbuHilal/react-native,a2/react-native,lgengsy/react-native,andersryanc/react-native,beni55/react-native,lelandrichardson/react-native,gitim/react-native,mrspeaker/react-native,nickhargreaves/react-native,eduvon0220/react-native,fw1121/react-native,harrykiselev/react-native,irisli/react-native,wenpkpk/react-native,thstarshine/react-native,frantic/react-native,Bronts/react-native,philikon/react-native,popovsh6/react-native,stan229/react-native,geoffreyfloyd/react-native,steben/react-native,nathanajah/react-native,zhangwei001/react-native,Hkmu/react-native,jackeychens/react-native,mtford90/react-native,eduardinni/react-native,ptmt/react-native-macos,jasonnoahchoi/react-native,pletcher/react-native,kundanjadhav/react-native,tsdl2013/react-native,lprhodes/react-native,code0100fun/react-native,satya164/react-native,PlexChat/react-native,hwsyy/react-native,tsdl2013/react-native,ldehai/react-native,exponent/react-native,orenklein/react-native,zuolangguo/react-native,common2015/react-native,ktoh/react-native,bsansouci/react-native,kotdark/react-native,huip/react-native,Swaagie/react-native,hesling/react-native,chnfeeeeeef/react-native,mcanthony/react-native,dralletje/react-native,leopardpan/react-native,yangchengwork/react-native,21451061/react-native,wangziqiang/react-native,pglotov/react-native,gauribhoite/react-native,philikon/react-native,HealthyWealthy/react-native,shinate/react-native,HealthyWealthy/react-native,enaqx/react-native,pitatensai/react-native,Lucifer-Kim/react-native,PlexChat/react-native,myntra/react-native,mihaigiurgeanu/react-native,jekey/react-native,jackalchen/react-native,xiayz/react-native,exponentjs/react-native,salanki/react-native,Poplava/react-native,ehd/react-native,ndejesus1227/react-native,yzarubin/react-native,mukesh-kumar1905/react-native,folist/react-native,lokilandon/react-native,soulcm/react-native,edward/react-native,soxunyi/react-native,bestwpw/react-native,kentaromiura/react-native,forcedotcom/react-native,pengleelove/react-native,honger05/react-native,michaelchucoder/react-native,fish24k/react-native,wenpkpk/react-native,sjchakrav/react-native,Bhullnatik/react-native,Applied-Duality/react-native,jhen0409/react-native,janicduplessis/react-native,kassens/react-native,foghina/react-native,ndejesus1227/react-native,mway08/react-native,bogdantmm92/react-native,dralletje/react-native,puf/react-native,guanghuili/react-native,liuhong1happy/react-native,pandiaraj44/react-native,MetSystem/react-native,Purii/react-native,jaredly/react-native,thotegowda/react-native,kesha-antonov/react-native,jadbox/react-native,sospartan/react-native,Jonekee/react-native,yangshangde/react-native,edward/react-native,PlexChat/react-native,CodeLinkIO/react-native,appersonlabs/react-native,adamkrell/react-native,skevy/react-native,CntChen/react-native,ljhsai/react-native,marlonandrade/react-native,sahat/react-native,zhangwei001/react-native,ptmt/react-native-macos,cosmith/react-native,farazs/react-native,richardgill/react-native,simple88/react-native,wdxgtsh/react-native,southasia/react-native,lgengsy/react-native,thotegowda/react-native,ChristianHersevoort/react-native,chetstone/react-native,apprennet/react-native,21451061/react-native,dralletje/react-native,jordanbyron/react-native,kentaromiura/react-native,NunoEdgarGub1/react-native,sheep902/react-native,martinbigio/react-native,shrutic/react-native,andrewljohnson/react-native,Suninus/react-native,InterfaceInc/react-native,mozillo/react-native,HSFGitHub/react-native,Livyli/react-native,clooth/react-native,wesley1001/react-native,Tredsite/react-native,chnfeeeeeef/react-native,facebook/react-native,jibonpab/react-native,bistacos/react-native,wjb12/react-native,rxb/react-native,common2015/react-native,affinityis/react-native,JulienThibeaut/react-native,jibonpab/react-native,skatpgusskat/react-native,Hkmu/react-native,vlrchtlt/react-native,shrutic/react-native,jmstout/react-native,harrykiselev/react-native,callstack-io/react-native,Loke155/react-native,NunoEdgarGub1/react-native,Rowandjj/react-native,lendup/react-native,xiaoking/react-native,judastree/react-native,MetSystem/react-native,Wingie/react-native,brentvatne/react-native,zhangxq5012/react-native,kesha-antonov/react-native,nevir/react-native,RGKzhanglei/react-native,htc2u/react-native,alvarojoao/react-native,RGKzhanglei/react-native,YotrolZ/react-native,jevakallio/react-native,chetstone/react-native,mrspeaker/react-native,ronak301/react-native,philikon/react-native,chacbumbum/react-native,mchinyakov/react-native,srounce/react-native,Wingie/react-native,zuolangguo/react-native,fengshao0907/react-native,genome21/react-native,wustxing/react-native,shlomiatar/react-native,Guardiannw/react-native,xiayz/react-native,mbrock/react-native,zenlambda/react-native,kundanjadhav/react-native,sudhirj/react-native,liangmingjie/react-native,stan229/react-native,imDangerous/react-native,common2015/react-native,mihaigiurgeanu/react-native,pallyoung/react-native,eliagrady/react-native,jadbox/react-native,vincentqiu/react-native,glovebx/react-native,a2/react-native,carcer/react-native,mrngoitall/react-native,garydonovan/react-native,sonnylazuardi/react-native,shrimpy/react-native,tszajna0/react-native,pjcabrera/react-native,DanielMSchmidt/react-native,shrutic/react-native,Esdeath/react-native,jeanblanchard/react-native,kushal/react-native,soxunyi/react-native,foghina/react-native,lloydho/react-native,philikon/react-native,jevakallio/react-native,magnus-bergman/react-native,Rowandjj/react-native,androidgilbert/react-native,ndejesus1227/react-native,Swaagie/react-native,gabrielbellamy/react-native,mironiasty/react-native,waynett/react-native,cazacugmihai/react-native,nevir/react-native,bestwpw/react-native,urvashi01/react-native,jordanbyron/react-native,waynett/react-native,zhangwei001/react-native,xinthink/react-native,pletcher/react-native,Andreyco/react-native,Srikanth4/react-native,huip/react-native,yjyi/react-native,tsjing/react-native,guanghuili/react-native,mukesh-kumar1905/react-native,alpz5566/react-native,myntra/react-native,affinityis/react-native,ankitsinghania94/react-native,hengcj/react-native,dubert/react-native,Hkmu/react-native,lmorchard/react-native,jaredly/react-native,dubert/react-native,exponent/react-native,mrspeaker/react-native,qingsong-xu/react-native,chapinkapa/react-native,jackalchen/react-native,csatf/react-native,gs-akhan/react-native,johnv315/react-native,nktpro/react-native,Andreyco/react-native,quyixia/react-native,almost/react-native,averted/react-native,chnfeeeeeef/react-native,vjeux/react-native,liangmingjie/react-native,Serfenia/react-native,csatf/react-native,corbt/react-native,hoastoolshop/react-native,martinbigio/react-native,lelandrichardson/react-native,bistacos/react-native,a2/react-native,Swaagie/react-native,liangmingjie/react-native,hydraulic/react-native,Flickster42490/react-native,wangcan2014/react-native,fish24k/react-native,garrows/react-native,wenpkpk/react-native,wjb12/react-native,chiefr/react-native,spicyj/react-native,southasia/react-native,HSFGitHub/react-native,milieu/react-native,narlian/react-native,stan229/react-native,cxfeng1/react-native,clozr/react-native,brentvatne/react-native,BossKing/react-native,daveenguyen/react-native,beni55/react-native,janicduplessis/react-native,daveenguyen/react-native,chentsulin/react-native,Emilios1995/react-native,Serfenia/react-native,wesley1001/react-native,josebalius/react-native,makadaw/react-native,dut3062796s/react-native,rwwarren/react-native,sudhirj/react-native,urvashi01/react-native,htc2u/react-native,daveenguyen/react-native,spyrx7/react-native,wangcan2014/react-native,trueblue2704/react-native,tgoldenberg/react-native,adamjmcgrath/react-native,evilemon/react-native,yamill/react-native,mway08/react-native,YinshawnRao/react-native,cpunion/react-native,cdlewis/react-native,philonpang/react-native,jekey/react-native,sixtomay/react-native,donyu/react-native,cosmith/react-native,dut3062796s/react-native,corbt/react-native,simple88/react-native,wlrhnh-David/react-native,ramoslin02/react-native,vlrchtlt/react-native,Lohit9/react-native,dut3062796s/react-native,futbalguy/react-native,aziz-boudi4/react-native,wenpkpk/react-native,pairyo/react-native,steben/react-native,Rowandjj/react-native,wustxing/react-native,gre/react-native,zvona/react-native,ehd/react-native,satya164/react-native,negativetwelve/react-native,liuzechen/react-native,exponentjs/rex,eduvon0220/react-native,lokilandon/react-native,liuhong1happy/react-native,JasonZ321/react-native,wjb12/react-native,Loke155/react-native,jasonals/react-native,wangyzyoga/react-native,jordanbyron/react-native,hayeah/react-native,dylanchann/react-native,myntra/react-native,Purii/react-native,waynett/react-native,liuhong1happy/react-native,pickhardt/react-native,jmstout/react-native,chrisbutcher/react-native,exponentjs/react-native,onesfreedom/react-native,geoffreyfloyd/react-native,udnisap/react-native,nanpian/react-native,ptmt/react-native-macos,tadeuzagallo/react-native,thstarshine/react-native,misakuo/react-native,wesley1001/react-native,nickhargreaves/react-native,chenbk85/react-native,tadeuzagallo/react-native,qingsong-xu/react-native,arbesfeld/react-native,JulienThibeaut/react-native,MonirAbuHilal/react-native,mchinyakov/react-native,Rowandjj/react-native,ktoh/react-native,chirag04/react-native,eddiemonge/react-native,leeyeh/react-native,InterfaceInc/react-native,YComputer/react-native,wesley1001/react-native,woshili1/react-native,Applied-Duality/react-native,srounce/react-native,jekey/react-native,bestwpw/react-native,ptomasroos/react-native,quuack/react-native,jabinwang/react-native,nickhargreaves/react-native,liuhong1happy/react-native,barakcoh/react-native,gre/react-native,jasonals/react-native,Andreyco/react-native,darrylblake/react-native,eliagrady/react-native,lee-my/react-native,lstNull/react-native,YinshawnRao/react-native,apprennet/react-native,Serfenia/react-native,sunblaze/react-native,stan229/react-native,bowlofstew/react-native,jackeychens/react-native,dabit3/react-native,chapinkapa/react-native,bright-sparks/react-native,rickbeerendonk/react-native,gitim/react-native,hammerandchisel/react-native,pandiaraj44/react-native,eddiemonge/react-native,jasonnoahchoi/react-native,qq644531343/react-native,mtford90/react-native,quuack/react-native,patoroco/react-native,wangyzyoga/react-native,luqin/react-native,WilliamRen/react-native,lstNull/react-native,ordinarybill/react-native,jmhdez/react-native,Lohit9/react-native,Reparadocs/react-native,bistacos/react-native,lightsofapollo/react-native,andersryanc/react-native,formatlos/react-native,HealthyWealthy/react-native,levic92/react-native,tgriesser/react-native,misakuo/react-native,Tredsite/react-native,aifeld/react-native,chnfeeeeeef/react-native,huangsongyan/react-native,Srikanth4/react-native,yiminghe/react-native,aljs/react-native,ptmt/react-native-macos,sixtomay/react-native,zvona/react-native,Purii/react-native,codejet/react-native,liufeigit/react-native,steben/react-native,judastree/react-native,CntChen/react-native,gauribhoite/react-native,chetstone/react-native,abdelouahabb/react-native,supercocoa/react-native,TChengZ/react-native,narlian/react-native,yushiwo/react-native,kushal/react-native,levic92/react-native,iodine/react-native,ide/react-native,csatf/react-native,glovebx/react-native,foghina/react-native,philikon/react-native,lokilandon/react-native,woshili1/react-native,JulienThibeaut/react-native,satya164/react-native,gegaosong/react-native,hammerandchisel/react-native,hwsyy/react-native,beni55/react-native,jbaumbach/react-native,mihaigiurgeanu/react-native,carcer/react-native,Iragne/react-native,1988fei/react-native,Guardiannw/react-native,pickhardt/react-native,pairyo/react-native,tszajna0/react-native,judastree/react-native,machard/react-native,ortutay/react-native,neeraj-singh/react-native,huip/react-native,noif/react-native,satya164/react-native,rollokb/react-native,code0100fun/react-native,happypancake/react-native,hayeah/react-native,mcanthony/react-native,popovsh6/react-native,philikon/react-native,srounce/react-native,ultralame/react-native,lstNull/react-native,ivanph/react-native,nickhudkins/react-native,cmhsu/react-native,doochik/react-native,bowlofstew/react-native,RGKzhanglei/react-native,mchinyakov/react-native,ipmobiletech/react-native,popovsh6/react-native,wangcan2014/react-native,foghina/react-native,jacobbubu/react-native,jaredly/react-native,cosmith/react-native,zdsiyan/react-native,shadow000902/react-native,lanceharper/react-native,chnfeeeeeef/react-native,mtford90/react-native,yamill/react-native,rkumar3147/react-native,kfiroo/react-native,miracle2k/react-native,WilliamRen/react-native,doochik/react-native,nanpian/react-native,steveleec/react-native,lprhodes/react-native,mway08/react-native,eduardinni/react-native,soulcm/react-native,nevir/react-native,judastree/react-native,eliagrady/react-native,salanki/react-native,judastree/react-native,yzarubin/react-native,gilesvangruisen/react-native,LytayTOUCH/react-native,popovsh6/react-native,huangsongyan/react-native,DanielMSchmidt/react-native,imDangerous/react-native,zdsiyan/react-native,yangchengwork/react-native,21451061/react-native,thstarshine/react-native,vincentqiu/react-native,wildKids/react-native,nanpian/react-native,tgoldenberg/react-native,lloydho/react-native,gauribhoite/react-native,programming086/react-native,imjerrybao/react-native,darrylblake/react-native,sheep902/react-native,levic92/react-native,yjh0502/react-native,alantrrs/react-native,dimoge/react-native,orenklein/react-native,InterfaceInc/react-native,lokilandon/react-native,cmhsu/react-native,gitim/react-native,pjcabrera/react-native,javache/react-native,Purii/react-native,Hkmu/react-native,harrykiselev/react-native,mcrooks88/react-native,appersonlabs/react-native,yushiwo/react-native,hike2008/react-native,rxb/react-native,andrewljohnson/react-native,sonnylazuardi/react-native,onesfreedom/react-native,wangyzyoga/react-native,yimouleng/react-native,rushidesai/react-native,zhangxq5012/react-native,evilemon/react-native,yjh0502/react-native,pvinis/react-native-desktop,RGKzhanglei/react-native,bodefuwa/react-native,yangshangde/react-native,mironiasty/react-native,leopardpan/react-native,imDangerous/react-native,bright-sparks/react-native,nathanajah/react-native,darkrishabh/react-native,chetstone/react-native,mqli/react-native,magnus-bergman/react-native,abdelouahabb/react-native,lmorchard/react-native,jmstout/react-native,skevy/react-native,steben/react-native,jmhdez/react-native,wustxing/react-native,leegilon/react-native,marlonandrade/react-native,dimoge/react-native,chacbumbum/react-native,yzarubin/react-native,clooth/react-native,DanielMSchmidt/react-native,miracle2k/react-native,chentsulin/react-native,hoangpham95/react-native,sospartan/react-native,quuack/react-native,krock01/react-native,quyixia/react-native,ehd/react-native,nickhudkins/react-native,liduanw/react-native,bogdantmm92/react-native,Heart2009/react-native,nanpian/react-native,YComputer/react-native,rollokb/react-native,fw1121/react-native,pvinis/react-native-desktop,jasonals/react-native,imWildCat/react-native,ptmt/react-native-macos,jaredly/react-native,Maxwell2022/react-native,yimouleng/react-native,naoufal/react-native,exponentjs/react-native,nktpro/react-native,forcedotcom/react-native,YotrolZ/react-native,dylanchann/react-native,kamronbatman/react-native,myntra/react-native,F2EVarMan/react-native,ktoh/react-native,wildKids/react-native,jmstout/react-native,rollokb/react-native,hike2008/react-native,ChiMarvine/react-native,Suninus/react-native,timfpark/react-native,wjb12/react-native,garydonovan/react-native,quuack/react-native,CodeLinkIO/react-native,lee-my/react-native,leeyeh/react-native,kassens/react-native,lelandrichardson/react-native,rkumar3147/react-native,dikaiosune/react-native,WilliamRen/react-native,simple88/react-native,monyxie/react-native,PhilippKrone/react-native,mrspeaker/react-native,lloydho/react-native,hengcj/react-native,DannyvanderJagt/react-native,jbaumbach/react-native,trueblue2704/react-native,Purii/react-native,InterfaceInc/react-native,sghiassy/react-native,callstack-io/react-native,arthuralee/react-native,bouk/react-native,thstarshine/react-native,vlrchtlt/react-native,sunblaze/react-native,pjcabrera/react-native,zyvas/react-native,shrutic/react-native,mrspeaker/react-native,hengcj/react-native,chengky/react-native,ProjectSeptemberInc/react-native,gegaosong/react-native,abdelouahabb/react-native,Esdeath/react-native,liufeigit/react-native,pitatensai/react-native,ChristianHersevoort/react-native,imWildCat/react-native,southasia/react-native,rainkong/react-native,liangmingjie/react-native,htc2u/react-native,fish24k/react-native,rkumar3147/react-native,Rowandjj/react-native,yjyi/react-native,ankitsinghania94/react-native,jeanblanchard/react-native,sudhirj/react-native,cazacugmihai/react-native,ordinarybill/react-native,almost/react-native,callstack-io/react-native,eddiemonge/react-native,wangyzyoga/react-native,tarkus/react-native-appletv,yzarubin/react-native,aaron-goshine/react-native,Livyli/react-native,neeraj-singh/react-native,kfiroo/react-native,aaron-goshine/react-native,mukesh-kumar1905/react-native,browniefed/react-native,srounce/react-native,aifeld/react-native,hesling/react-native,Ehesp/react-native,dikaiosune/react-native,formatlos/react-native,pallyoung/react-native,clozr/react-native,lucyywang/react-native,charmingzuo/react-native,dubert/react-native,garrows/react-native,nickhudkins/react-native,wangziqiang/react-native,shrutic/react-native,naoufal/react-native,yiminghe/react-native,sahrens/react-native,sospartan/react-native,ChristianHersevoort/react-native,gilesvangruisen/react-native,chirag04/react-native,hanxiaofei/react-native,hanxiaofei/react-native,mozillo/react-native,adrie4mac/react-native,ivanph/react-native,vincentqiu/react-native,DannyvanderJagt/react-native,gegaosong/react-native,MattFoley/react-native,spyrx7/react-native,javache/react-native,kotdark/react-native,neeraj-singh/react-native,jeanblanchard/react-native,quyixia/react-native,stan229/react-native,neeraj-singh/react-native,yutail/react-native,tarkus/react-native-appletv,hanxiaofei/react-native,zvona/react-native,lwansbrough/react-native,magnus-bergman/react-native,mcrooks88/react-native,iodine/react-native,Furzikov/react-native,facebook/react-native,supercocoa/react-native,liduanw/react-native,xxccll/react-native,ramoslin02/react-native,xinthink/react-native,ultralame/react-native,wenpkpk/react-native,cosmith/react-native,hesling/react-native,Guardiannw/react-native,beni55/react-native,mrngoitall/react-native,hwsyy/react-native,jonesgithub/react-native,Applied-Duality/react-native,jabinwang/react-native,LytayTOUCH/react-native,pjcabrera/react-native,shrutic123/react-native,exponentjs/react-native,wangziqiang/react-native,NunoEdgarGub1/react-native,steveleec/react-native,josebalius/react-native,tahnok/react-native,barakcoh/react-native,honger05/react-native,LytayTOUCH/react-native,cxfeng1/react-native,mjetek/react-native,21451061/react-native,sghiassy/react-native,mrspeaker/react-native,common2015/react-native,janicduplessis/react-native,roy0914/react-native,jaggs6/react-native,philonpang/react-native,adamkrell/react-native,pitatensai/react-native,jeanblanchard/react-native,spicyj/react-native,udnisap/react-native,Shopify/react-native,adamterlson/react-native,donyu/react-native,cxfeng1/react-native,sudhirj/react-native,edward/react-native
|
792dc7a8405a900c8120739498fc1aaeb5113cf4
|
scripts/iltalehti.user.js
|
scripts/iltalehti.user.js
|
$(function() {
// Body headings
$('h1.juttuotsikko span.otsikko:last-of-type').satanify();
// Left
$('#container_vasen p a:not(.palstakuva)').satanify(' ');
// Right
$('#container_oikea [class$=link-list] p a:not(.palstakuva)').satanify(' ');
$('#container_oikea .widget a .list-title').satanify();
// Footer
$('.footer_luetuimmat_container .list-title').satanify();
});
|
$(function() {
// Body headings
$('h1.juttuotsikko span.otsikko:last-of-type').each(function() {
// Some of the center title spans on Iltalehti have manual <br /> elements
// inside of them, which our satanify plugin isn't smart enough to handle
// yet. Hack around it with this for now.
var contents = $(this).contents();
if (contents != null && contents.length > 0) {
var last = contents.last()[0];
last.textContent = satanify(last.textContent);
}
});
// Left
$('#container_vasen p a:not(.palstakuva)').satanify(' ');
// Right
$('#container_oikea [class$=link-list] p a:not(.palstakuva)').satanify(' ');
$('#container_oikea .widget a .list-title').satanify();
// Footer
$('.footer_luetuimmat_container .list-title').satanify();
});
|
Add a quick hack for broken Iltalehti titles
|
Add a quick hack for broken Iltalehti titles
Needs more testing.
|
JavaScript
|
mit
|
veeti/iltasaatana,veeti/iltasaatana
|
316fa2ac078fdad20deeca235580387821f3b29f
|
src/js/FlexGrid.react.js
|
src/js/FlexGrid.react.js
|
/* @flow */
var React = require('react');
var FlexCell: any = require('./FlexCell.react');
var FlexDetail = require('./FlexDetail.react');
class FlexGrid extends React.Component{
state: {detail: string};
render: Function;
constructor(): void {
super();
this.state = {detail:''};
this.render = this.render.bind(this);
}
handleDetailSelection(title: string) {
console.log(`You picked ${title}`);
this.setState({detail:title});
}
handleDetailClosing(){
this.setState({detail:''});
}
render(): any {
if(this.state.detail){
return (<FlexDetail title={this.state.detail}
closeHandler={this.handleDetailClosing.bind(this)}/>);
} else {
return (
<main className="main">
{this.props.pokemon.map( p => {
if( p.name.indexOf(this.props.filterText.toLowerCase()) === -1){
return;
}
return <FlexCell title={p.name} key={p.name} clickHandler={this.handleDetailSelection.bind(this)}/>
})}</main>);
}
}
};
module.exports = FlexGrid;
|
/* @flow */
var React = require('react');
var FlexCell: any = require('./FlexCell.react');
var FlexDetail = require('./FlexDetail.react');
class FlexGrid extends React.Component{
state: {detail: string};
render: Function;
constructor(): void {
super();
this.state = {detail:''};
this.render = this.render.bind(this);
}
handleDetailSelection(title: string) {
this.setState({detail:title});
}
handleDetailClosing(){
this.setState({detail:''});
}
render(): any {
if(this.state.detail){
return (<FlexDetail title={this.state.detail}
closeHandler={this.handleDetailClosing.bind(this)}/>);
} else {
return (
<main className="main">
{this.props.pokemon.map( p => {
if( p.name.indexOf(this.props.filterText.toLowerCase()) === -1){
return;
}
return <FlexCell
title={p.name}
key={p.name}
clickHandler={this.handleDetailSelection.bind(this)}/>
})}</main>);
}
}
};
module.exports = FlexGrid;
|
Make it cleaner to read
|
Make it cleaner to read
|
JavaScript
|
mit
|
thewazir/pokemon-react,thewazir/pokemon-react
|
f2360e8ac9e7d0ef3c2174df60936c1451daa8d6
|
lib/dice-bag.js
|
lib/dice-bag.js
|
/*
* Copyright (c) 2015 Steven Soloff
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
"use strict";
function DiceBag(randomNumberGenerator) {
this.randomNumberGenerator = randomNumberGenerator || Math.random;
}
DiceBag.prototype.d = function (sides) {
var randomNumberGenerator = this.randomNumberGenerator;
return function () {
return {
source: "d" + sides,
value: Math.floor(randomNumberGenerator() * sides) + 1
};
};
};
module.exports = DiceBag;
|
/*
* Copyright (c) 2015 Steven Soloff
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
"use strict";
function DiceBag(randomNumberGenerator) {
this.randomNumberGenerator = randomNumberGenerator || Math.random;
}
DiceBag.prototype.d = function (sides) {
return function () {
return {
source: "d" + sides,
value: Math.floor(this.randomNumberGenerator() * sides) + 1
};
}.bind(this);
};
module.exports = DiceBag;
|
Create closure around enclosing object instead of local variables referencing enclosing object properties.
|
Create closure around enclosing object instead of local variables referencing enclosing object properties.
|
JavaScript
|
mit
|
ssoloff/dice-server-js,ssoloff/dice-server-js,ssoloff/dice-server-js,ssoloff/dice-server-js
|
96322552efa957b565247b7121a6dcfcd3a037ab
|
lib/resolver.js
|
lib/resolver.js
|
var Module = require('module')
var path = require('path')
var fs = require('fs')
function exists (target, extensions) {
if (fs.existsSync(target)) {
return target
}
if (path.extname(target) === '') {
for (var i = 0; i < extensions.length; i++) {
var resolvedPath = target + extensions[i]
if (fs.existsSync(resolvedPath)) {
return resolvedPath
}
}
}
}
module.exports = function resolver (request, parent) {
if (typeof request !== 'string' || /^[./]/.test(request)) {
return request
}
var resolvedPath
var i = 0
var extensions = Object.keys(Module._extensions)
for (i = 0; i < parent.paths.length; i++) {
resolvedPath = exists(path.resolve(parent.paths[i], request), extensions)
if (resolvedPath) {
return resolvedPath
}
}
for (i = 0; i < parent.paths.length; i++) {
resolvedPath = path.resolve(parent.paths[i].slice(0, parent.paths[i].lastIndexOf('node_modules')), request)
resolvedPath = exists(resolvedPath, extensions)
if (resolvedPath) {
return resolvedPath
}
}
return request
}
|
var Module = require('module')
var path = require('path')
var fs = require('fs')
function exists (target, extensions) {
if (fs.existsSync(target)) {
return target
}
if (path.extname(target) === '') {
for (var i = 0; i < extensions.length; i++) {
var resolvedPath = target + extensions[i]
if (fs.existsSync(resolvedPath)) {
return resolvedPath
}
}
}
}
module.exports = function resolver (request, parent) {
if (typeof request !== 'string' || /^[./]/.test(request)) {
return request
}
// Check if it's a built-in module
if (!Module._resolveLookupPaths(request, parent)[1].length) {
return request
}
var resolvedPath
var i = 0
var extensions = Object.keys(Module._extensions)
for (i = 0; i < parent.paths.length; i++) {
resolvedPath = exists(path.resolve(parent.paths[i], request), extensions)
if (resolvedPath) {
return resolvedPath
}
}
for (i = 0; i < parent.paths.length; i++) {
resolvedPath = path.resolve(parent.paths[i].slice(0, parent.paths[i].lastIndexOf('node_modules')), request)
resolvedPath = exists(resolvedPath, extensions)
if (resolvedPath) {
return resolvedPath
}
}
return request
}
|
Check if request is a built-in module
|
Check if request is a built-in module
|
JavaScript
|
mit
|
chrisyip/requere
|
be619af686fc09d843e90a246fed60fb26524197
|
lib/validate.js
|
lib/validate.js
|
'use strict';
var validate = require('validate.js');
var validateFxoObject = function(type, value, key, options) {
if(options.required) {
if(!value) {
return ' is required';
}
}
if(value && !value.valid) {
return 'is not a valid ' + type + ' input';
}
};
validate.validators.fxoDatetime = function(value, key, options) {
return validateFxoObject('datetime', value, key, options);
};
validate.validators.fxoBoolean = function(value, key, options) {
return validateFxoObject('boolean', value, key, options);
};
validate.options = validate.async.options = {
format: 'flat',
fullMessages: true
};
module.exports = validate;
|
'use strict';
var validate = require('validate.js');
var validateFxoObject = function(type, value, key, options) {
if(options.required) {
if(!value) {
return ' is required';
}
}
if(value && !value.valid) {
return 'is not a valid ' + type + ' input';
}
};
validate.validators.fxoDatetime = function(value, options, key) {
return validateFxoObject('datetime', value, key, options);
};
validate.validators.fxoBoolean = function(value, options, key) {
return validateFxoObject('boolean', value, key, options);
};
validate.options = validate.async.options = {
format: 'flat',
fullMessages: true
};
module.exports = validate;
|
Swap key and options params to correct order in fxo validators functions.
|
Swap key and options params to correct order in fxo validators functions.
|
JavaScript
|
mit
|
marian2js/flowxo-sdk,equus71/flowxo-sdk,flowxo/flowxo-sdk
|
48ff97b172c1c186cbcdacb817f3866a10a1fd58
|
angular-uploadcare.js
|
angular-uploadcare.js
|
'use strict';
/**
* @ngdoc directive
* @name angular-uploadcare.directive:UploadCare
* @description Provides a directive for the Uploadcare widget.
* # UploadCare
*/
angular.module('ng-uploadcare', [])
.directive('uploadcareWidget', function () {
return {
restrict: 'E',
replace: true,
require: 'ngModel',
template: '<input type="hidden" role="ng-uploadcare-uploader" />',
scope: {
onWidgetReady: '&',
onUploadComplete: '&',
onChange: '&',
},
controller: ['$scope', '$log', function($scope, $log) {
if(!uploadcare) {
$log.error('Uploadcare script has not been loaded!.');
return;
}
$scope.widget = uploadcare.Widget('[role=ng-uploadcare-uploader]');
$scope.onWidgetReady({widget: $scope.widget});
$scope.widget.onUploadComplete(function(info) {
$scope.onUploadComplete({info: info});
});
$scope.widget.onChange(function(file) {
$scope.onChange({file: file});
})
}]
};
});
|
'use strict';
/**
* @ngdoc directive
* @name angular-uploadcare.directive:UploadCare
* @description Provides a directive for the Uploadcare widget.
* # UploadCare
*/
angular.module('ng-uploadcare', [])
.directive('uploadcareWidget', function () {
return {
restrict: 'E',
replace: true,
require: 'ngModel',
template: '<input type="hidden" role="ng-uploadcare-uploader" />',
scope: {
onWidgetReady: '&',
onUploadComplete: '&',
onChange: '&',
},
controller: ['$scope', '$element', '$log', function($scope, $element, $log) {
if(!uploadcare) {
$log.error('Uploadcare script has not been loaded!.');
return;
}
$scope.widget = uploadcare.Widget($element);
$scope.onWidgetReady({widget: $scope.widget});
$scope.widget.onUploadComplete(function(info) {
$scope.onUploadComplete({info: info});
});
$scope.widget.onChange(function(file) {
$scope.onChange({file: file});
})
}]
};
});
|
Use current element for widget instead
|
Use current element for widget instead
|
JavaScript
|
mit
|
uploadcare/angular-uploadcare
|
5139a033cc4083fd86416a330e3220babe377341
|
cypress/integration/query_report.js
|
cypress/integration/query_report.js
|
context('Form', () => {
before(() => {
cy.login('Administrator', 'qwe');
cy.visit('/desk');
});
it('add custom column in report', () => {
cy.visit('/desk#query-report/Permitted Documents For User');
cy.get('#page-query-report input[data-fieldname="user"]').as('input');
cy.get('@input').focus().type('test@erpnext.com', { delay: 100 });
cy.get('#page-query-report input[data-fieldname="doctype"]').as('input-test');
cy.get('@input-test').focus().type('Role', { delay: 100 });
cy.get('.menu-btn-group .btn').click();
cy.get('.grey-link:contains("Add Column")').wait(100).click();
cy.get('.modal-dialog select[data-fieldname="doctype"]').select("Role");
cy.get('.modal-dialog select[data-fieldname="field"]').select("Role Name");
cy.get('.modal-dialog select[data-fieldname="insert_after"]').select("Name");
cy.get('.modal-dialog .btn-primary:contains("Submit")').click();
cy.get('.menu-btn-group .btn').click();
cy.get('.grey-link:contains("Save")').click();
cy.get('.modal-dialog input[data-fieldname="report_name"]').type("Test Report");
cy.get('.modal:visible .btn-primary:contains("Submit")').click();
});
});
|
context('Form', () => {
before(() => {
cy.login('Administrator', 'qwe');
cy.visit('/desk');
});
it('add custom column in report', () => {
cy.visit('/desk#query-report/Permitted Documents For User');
cy.get('#page-query-report input[data-fieldname="user"]').as('input');
cy.get('@input').focus().type('test@erpnext.com', { delay: 100 });
cy.get('#page-query-report input[data-fieldname="doctype"]').as('input-test');
cy.get('@input-test').focus().type('Role', { delay: 100 });
cy.get('.menu-btn-group .btn').click({force: true});
cy.get('.grey-link:contains("Add Column")').wait(100).click();
cy.get('.modal-dialog select[data-fieldname="doctype"]').select("Role");
cy.get('.modal-dialog select[data-fieldname="field"]').select("Role Name");
cy.get('.modal-dialog select[data-fieldname="insert_after"]').select("Name");
cy.get('.modal-dialog .btn-primary:contains("Submit")').click();
cy.get('.menu-btn-group .btn').click();
cy.get('.grey-link:contains("Save")').click();
cy.get('.modal-dialog input[data-fieldname="report_name"]').type("Test Report");
cy.get('.modal:visible .btn-primary:contains("Submit")').click();
});
});
|
Use force true for clicking menu
|
fix(test): Use force true for clicking menu
|
JavaScript
|
mit
|
yashodhank/frappe,yashodhank/frappe,mhbu50/frappe,StrellaGroup/frappe,frappe/frappe,StrellaGroup/frappe,frappe/frappe,mhbu50/frappe,vjFaLk/frappe,frappe/frappe,almeidapaulopt/frappe,adityahase/frappe,adityahase/frappe,adityahase/frappe,yashodhank/frappe,mhbu50/frappe,saurabh6790/frappe,saurabh6790/frappe,almeidapaulopt/frappe,saurabh6790/frappe,vjFaLk/frappe,saurabh6790/frappe,almeidapaulopt/frappe,almeidapaulopt/frappe,adityahase/frappe,mhbu50/frappe,vjFaLk/frappe,yashodhank/frappe,StrellaGroup/frappe,vjFaLk/frappe
|
66c0d320a73c792dfeca3a7f783c9f8c180bb1b0
|
app/assets/javascripts/modules/enable-aria-controls.js
|
app/assets/javascripts/modules/enable-aria-controls.js
|
window.GOVUK = window.GOVUK || {}
window.GOVUK.Modules = window.GOVUK.Modules || {};
(function (GOVUK) {
'use strict'
GOVUK.Modules.EnableAriaControls = function EnableAriaControls () {
this.start = function (element) {
element.find('[data-aria-controls]').each(enableAriaControls)
function enableAriaControls () {
var controls = $(this).data('aria-controls')
if (typeof controls === 'string' && $('#' + controls).length > 0) {
$(this).attr('aria-controls', controls)
}
}
}
}
})(window.GOVUK)
|
window.GOVUK = window.GOVUK || {}
window.GOVUK.Modules = window.GOVUK.Modules || {};
(function (GOVUK) {
'use strict'
GOVUK.Modules.EnableAriaControls = function EnableAriaControls () {
this.start = function (element) {
var $controls = element[0].querySelectorAll('[data-aria-controls]')
for (var i = 0; i < $controls.length; i++) {
var control = $controls[i].getAttribute('data-aria-controls')
if (typeof control === 'string' && document.getElementById(control)) {
$controls[i].setAttribute('aria-controls', control)
}
}
}
}
})(window.GOVUK)
|
Remove JQuery from EnableAriaControls module
|
Remove JQuery from EnableAriaControls module
We're using an old and unsupported version of jQuery for browser support
reasons. Rather than upgrade, it's far better to remove our dependence.
jQuery makes writing JavaScript easier, but it doesn't do anything that
you can't do with vanilla JavaScript, because it's all written in
JavaScript.
Once it's removed, we no longer have to worry about upgrading it, and
users don't have to download the jQuery library when they visit GOV.UK.
Co-authored-by: Andy Sellick <36224b9e2437f61134ff54a3123b9a04319bf263@digital.cabinet-office.gov.uk>
|
JavaScript
|
mit
|
alphagov/finder-frontend,alphagov/finder-frontend,alphagov/finder-frontend,alphagov/finder-frontend
|
557c5a62d82c86efed996e468183a4e0688ff987
|
meteor/client/helpers/router.js
|
meteor/client/helpers/router.js
|
/* ---------------------------------------------------- +/
## Client Router ##
Client-side Router.
/+ ---------------------------------------------------- */
// Config
Router.configure({
layoutTemplate: 'layout',
loadingTemplate: 'loading',
notFoundTemplate: 'notFound',
});
// Filters
var filters = {
myFilter: function () {
// do something
},
isLoggedIn: function() {
if (!(Meteor.loggingIn() || Meteor.user())) {
alert('Please Log In First.')
this.stop();
}
}
}
Router.onBeforeAction(filters.myFilter, {only: ['locations']});
// Routes
Router.map(function() {
// Locations
this.route('locations', {
waitOn: function () {
return Meteor.subscribe('allLocations');
},
data: function () {
return {
locations: Locations.find(),
images: Images.find()
}
}
});
this.route('location', {
path: '/location/:_id',
waitOn: function () {
return Meteor.subscribe('singleLocation', this.params._id);
},
data: function () {
return {
location: Locations.findOne(this.params._id)
}
}
});
// Pages
this.route('homepage', {
path: '/'
});
this.route('content');
// Users
this.route('login');
this.route('signup');
this.route('forgot');
});
|
/* ---------------------------------------------------- +/
## Client Router ##
Client-side Router.
/+ ---------------------------------------------------- */
// Config
Router.configure({
layoutTemplate: 'layout',
loadingTemplate: 'loading',
notFoundTemplate: 'notFound',
});
// Filters
var filters = {
myFilter: function () {
// do something
},
isLoggedIn: function() {
if (!(Meteor.loggingIn() || Meteor.user())) {
alert('Please Log In First.')
this.stop();
}
}
}
Router.onBeforeAction(filters.myFilter, {only: ['locations']});
// Routes
Router.map(function() {
// Locations
this.route('locations', {
path: '/',
waitOn: function () {
return Meteor.subscribe('allLocations');
},
data: function () {
return {
locations: Locations.find(),
images: Images.find()
}
}
});
this.route('location', {
path: '/location/:_id',
waitOn: function () {
return Meteor.subscribe('singleLocation', this.params._id);
},
data: function () {
return {
location: Locations.findOne(this.params._id)
}
}
});
this.route('content');
// Users
this.route('login');
this.route('signup');
this.route('forgot');
});
|
Make the locations view the homepage
|
Make the locations view the homepage
This is our main base.
|
JavaScript
|
mit
|
scimusmn/sd-scrapbook,scimusmn/sd-scrapbook,scimusmn/sd-scrapbook
|
51c5761d4d0d7ed74fef80ca9277d529912b862d
|
packages/babel-plugin-relay/getSchemaIntrospection.js
|
packages/babel-plugin-relay/getSchemaIntrospection.js
|
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
* @format
*/
'use strict';
const fs = require('fs');
const path = require('path');
const {SCHEMA_EXTENSION} = require('./GraphQLRelayDirective');
const {parse} = require('graphql');
function getSchemaIntrospection(schemaPath: string, basePath: ?string) {
try {
let fullSchemaPath = schemaPath;
if (!fs.existsSync(fullSchemaPath) && basePath) {
fullSchemaPath = path.join(basePath, schemaPath);
}
const source = fs.readFileSync(fullSchemaPath, 'utf8');
if (source[0] === '{') {
return JSON.parse(source);
}
return parse(SCHEMA_EXTENSION + '\n' + source, {
// TODO(T25914961) remove after schema syncs with the new format.
allowLegacySDLImplementsInterfaces: true,
});
} catch (error) {
// Log a more helpful warning (by including the schema path).
console.error(
'Encountered the following error while loading the GraphQL schema: ' +
schemaPath +
'\n\n' +
error.stack
.split('\n')
.map(line => '> ' + line)
.join('\n'),
);
throw error;
}
}
module.exports = getSchemaIntrospection;
|
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
* @format
*/
'use strict';
const fs = require('fs');
const path = require('path');
const {SCHEMA_EXTENSION} = require('./GraphQLRelayDirective');
const {parse} = require('graphql');
function getSchemaIntrospection(schemaPath: string, basePath: ?string) {
try {
let fullSchemaPath = schemaPath;
if (!fs.existsSync(fullSchemaPath) && basePath) {
fullSchemaPath = path.join(basePath, schemaPath);
}
const source = fs.readFileSync(fullSchemaPath, 'utf8');
if (source[0] === '{') {
return JSON.parse(source);
}
return parse(SCHEMA_EXTENSION + '\n' + source);
} catch (error) {
// Log a more helpful warning (by including the schema path).
console.error(
'Encountered the following error while loading the GraphQL schema: ' +
schemaPath +
'\n\n' +
error.stack
.split('\n')
.map(line => '> ' + line)
.join('\n'),
);
throw error;
}
}
module.exports = getSchemaIntrospection;
|
Remove support for parsing legacy interfaces
|
Remove support for parsing legacy interfaces
Reviewed By: kassens
Differential Revision: D6972027
fbshipit-source-id: 6af12e0fad969b8f0a8348c17347cec07f2047b2
|
JavaScript
|
mit
|
xuorig/relay,facebook/relay,cpojer/relay,xuorig/relay,freiksenet/relay,xuorig/relay,wincent/relay,iamchenxin/relay,cpojer/relay,facebook/relay,kassens/relay,dbslone/relay,voideanvalue/relay,josephsavona/relay,zpao/relay,dbslone/relay,facebook/relay,wincent/relay,atxwebs/relay,yungsters/relay,voideanvalue/relay,atxwebs/relay,josephsavona/relay,voideanvalue/relay,xuorig/relay,facebook/relay,kassens/relay,cpojer/relay,josephsavona/relay,voideanvalue/relay,wincent/relay,zpao/relay,atxwebs/relay,yungsters/relay,kassens/relay,atxwebs/relay,kassens/relay,freiksenet/relay,wincent/relay,wincent/relay,freiksenet/relay,zpao/relay,facebook/relay,kassens/relay,wincent/relay,iamchenxin/relay,voideanvalue/relay,kassens/relay,iamchenxin/relay,cpojer/relay,iamchenxin/relay,voideanvalue/relay,yungsters/relay,xuorig/relay,facebook/relay,xuorig/relay
|
129b28981a813f8965c98f619cc220ca71468343
|
lib/deferredchain.js
|
lib/deferredchain.js
|
function DeferredChain() {
var self = this;
this.chain = new Promise(function(accept, reject) {
self._accept = accept;
self._reject = reject;
});
this.await = new Promise(function() {
self._done = arguments[0];
});
this.started = false;
};
DeferredChain.prototype.then = function(fn) {
var self = this;
this.chain = this.chain.then(function() {
var args = Array.prototype.slice.call(arguments);
return fn.apply(null, args);
});
return this;
};
DeferredChain.prototype.catch = function(fn) {
var self = this;
this.chain = this.chain.catch(function() {
var args = Array.prototype.slice.call(arguments);
return fn.apply(null, args);
});
return this;
};
DeferredChain.prototype.start = function() {
this.started = true;
this.chain = this.chain.then(this._done);
this._accept();
return this.await;
};
module.exports = DeferredChain;
|
function DeferredChain() {
var self = this;
this.chain = new Promise(function(accept, reject) {
self._accept = accept;
self._reject = reject;
});
this.await = new Promise(function() {
self._done = arguments[0];
self._error = arguments[1];
});
this.started = false;
};
DeferredChain.prototype.then = function(fn) {
var self = this;
this.chain = this.chain.then(function() {
var args = Array.prototype.slice.call(arguments);
return fn.apply(null, args);
});
this.chain = this.chain.catch(function(e) {
self._error(e);
});
return this;
};
DeferredChain.prototype.catch = function(fn) {
var self = this;
this.chain = this.chain.catch(function() {
var args = Array.prototype.slice.call(arguments);
return fn.apply(null, args);
});
return this;
};
DeferredChain.prototype.start = function() {
this.started = true;
this.chain = this.chain.then(this._done);
this._accept();
return this.await;
};
module.exports = DeferredChain;
|
Fix issue where errors aren't being propagated.
|
Fix issue where errors aren't being propagated.
|
JavaScript
|
mit
|
prashantpawar/truffle,DigixGlobal/truffle
|
eea12ffb865c76519476e8c339e2bbd56423ab4d
|
source/renderer/app/containers/static/AboutDialog.js
|
source/renderer/app/containers/static/AboutDialog.js
|
// @flow
import React, { Component } from 'react';
import { inject, observer } from 'mobx-react';
import ReactModal from 'react-modal';
import About from '../../components/static/About';
import styles from './AboutDialog.scss';
import type { InjectedDialogContainerProps } from '../../types/injectedPropsType';
type Props = InjectedDialogContainerProps;
@inject('stores', 'actions')
@observer
export default class AboutDialog extends Component<Props> {
static defaultProps = {
actions: null,
stores: null,
children: null,
onClose: () => {},
};
render() {
const { app } = this.props.stores;
const { openExternalLink, environment } = app;
const { apiVersion, build, os, version } = environment;
return (
<ReactModal
isOpen
className={styles.dialog}
overlayClassName={styles.overlay}
ariaHideApp={false}
>
<About
apiVersion={apiVersion}
build={build}
onOpenExternalLink={openExternalLink}
os={os}
version={version}
onClose={this.props.actions.app.closeAboutDialog.trigger}
/>
</ReactModal>
);
}
}
|
// @flow
import React, { Component } from 'react';
import { inject, observer } from 'mobx-react';
import ReactModal from 'react-modal';
import About from '../../components/static/About';
import styles from './AboutDialog.scss';
import type { InjectedDialogContainerProps } from '../../types/injectedPropsType';
type Props = InjectedDialogContainerProps;
@inject('stores', 'actions')
@observer
export default class AboutDialog extends Component<Props> {
static defaultProps = {
actions: null,
stores: null,
children: null,
onClose: () => {},
};
render() {
const { app } = this.props.stores;
const { openExternalLink, environment } = app;
const { apiVersion, build, os, version } = environment;
return (
<ReactModal
isOpen
onRequestClose={this.props.actions.app.closeAboutDialog.trigger}
className={styles.dialog}
overlayClassName={styles.overlay}
ariaHideApp={false}
>
<About
apiVersion={apiVersion}
build={build}
onOpenExternalLink={openExternalLink}
os={os}
version={version}
onClose={this.props.actions.app.closeAboutDialog.trigger}
/>
</ReactModal>
);
}
}
|
Implement new About dialog design
|
[DDW-608] Implement new About dialog design
|
JavaScript
|
apache-2.0
|
input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus
|
9118e1d29e4d3e9d0c6cfb12a02700c39ac8513b
|
etc/notebook/custom/custom.js
|
etc/notebook/custom/custom.js
|
/* JupyROOT JS */
// Terminal button
$(document).ready(function() {
var terminalURL = "/terminals/1";
var re = new RegExp(".+\/user\/([a-z0-9]+)\/.+", "g");
if (re.test(document.URL)) {
// We have been spawned by JupyterHub, add the user name to the URL
var user = document.URL.replace(re, "$1");
terminalURL = "/user/" + user + terminalURL;
}
$('div#header-container').append("<a href='" + terminalURL + "' class='btn btn-default btn-sm navbar-btn pull-right' style='margin-right: 4px; margin-left: 2px;'>Terminal</a>");
});
|
/* JupyROOT JS */
// Terminal button
$(document).ready(function() {
var terminalURL = "/terminals/1";
var re = new RegExp(".+\/user\/([a-z0-9]+)\/.+", "g");
if (re.test(document.URL)) {
// We have been spawned by JupyterHub, add the user name to the URL
var user = document.URL.replace(re, "$1");
terminalURL = "/user/" + user + terminalURL;
}
$('div#header-container').append("<a href='" + terminalURL + "' class='btn btn-default btn-sm navbar-btn pull-right' style='margin-right: 4px; margin-left: 2px;'>Terminal</a>");
});
// Highlighting for %%cpp cells
require(['notebook/js/codecell'], function(codecell) {
codecell.CodeCell.options_default.highlight_modes['magic_text/x-c++src'] = {'reg':[/^%%cpp/]};
});
|
Set %%cpp highlighting for root --notebook
|
Set %%cpp highlighting for root --notebook
|
JavaScript
|
lgpl-2.1
|
mhuwiler/rootauto,root-mirror/root,mhuwiler/rootauto,karies/root,simonpf/root,karies/root,olifre/root,karies/root,simonpf/root,root-mirror/root,zzxuanyuan/root,simonpf/root,mhuwiler/rootauto,olifre/root,zzxuanyuan/root,olifre/root,olifre/root,olifre/root,zzxuanyuan/root,olifre/root,karies/root,simonpf/root,simonpf/root,karies/root,olifre/root,root-mirror/root,zzxuanyuan/root,zzxuanyuan/root,karies/root,mhuwiler/rootauto,karies/root,karies/root,root-mirror/root,zzxuanyuan/root,zzxuanyuan/root,simonpf/root,mhuwiler/rootauto,mhuwiler/rootauto,root-mirror/root,zzxuanyuan/root,karies/root,olifre/root,simonpf/root,zzxuanyuan/root,root-mirror/root,root-mirror/root,simonpf/root,root-mirror/root,mhuwiler/rootauto,karies/root,zzxuanyuan/root,root-mirror/root,zzxuanyuan/root,olifre/root,simonpf/root,simonpf/root,mhuwiler/rootauto,olifre/root,mhuwiler/rootauto,root-mirror/root,simonpf/root,olifre/root,mhuwiler/rootauto,zzxuanyuan/root,mhuwiler/rootauto,root-mirror/root,karies/root
|
fa0c582c42f81d4f94a4e2fdc16ac7df9bf1d1c1
|
packages/vega-parser/schema/spec.js
|
packages/vega-parser/schema/spec.js
|
export default {
"defs": {
"spec": {
"title": "Vega visualization specification",
"type": "object",
"allOf": [
{"$ref": "#/defs/scope"},
{
"properties": {
"$schema": {"type": "string", "format": "uri"},
"description": {"type": "string"},
"width": {"type": "number"},
"height": {"type": "number"},
"padding": {"$ref": "#/defs/padding"},
"autosize": {"$ref": "#/defs/autosize"},
"background": {"$ref": "#/defs/background"}
}
}
]
}
}
};
|
export default {
"defs": {
"spec": {
"title": "Vega visualization specification",
"type": "object",
"allOf": [
{"$ref": "#/defs/scope"},
{
"properties": {
"$schema": {"type": "string", "format": "uri"},
"config": {"type": "object"},
"description": {"type": "string"},
"width": {"type": "number"},
"height": {"type": "number"},
"padding": {"$ref": "#/defs/padding"},
"autosize": {"$ref": "#/defs/autosize"},
"background": {"$ref": "#/defs/background"}
}
}
]
}
}
};
|
Add config object to JSON schema.
|
Add config object to JSON schema.
|
JavaScript
|
bsd-3-clause
|
vega/vega,vega/vega,vega/vega,vega/vega,lgrammel/vega
|
435ca8ef211b92be8222a2aeee44bef7bdd74890
|
rcmet/src/main/ui/test/unit/controllers/SettingsCtrlTest.js
|
rcmet/src/main/ui/test/unit/controllers/SettingsCtrlTest.js
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http: *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.
**/
'use strict';
describe('OCW Controllers', function() {
beforeEach(module('ocw.controllers'));
beforeEach(module('ocw.services'));
describe('SettingsCtrl', function() {
it('should initialize settings object from evaluationSettings service', function() {
inject(function($rootScope, $controller) {
var scope = $rootScope.$new();
var ctrl = $controller("SettingsCtrl", {$scope: scope});
expect(Object.keys(scope.settings)).toEqual(["metrics", "temporal"]);
});
});
});
});
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http: *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.
**/
'use strict';
describe('OCW Controllers', function() {
beforeEach(module('ocw.controllers'));
beforeEach(module('ocw.services'));
describe('SettingsCtrl', function() {
it('should initialize settings object from evaluationSettings service', function() {
inject(function($rootScope, $controller) {
var scope = $rootScope.$new();
var ctrl = $controller("SettingsCtrl", {$scope: scope});
expect(Object.keys(scope.settings)).toEqual(["metrics", "temporal", "spatialSelect"]);
});
});
});
});
|
Update SettingsCtrl test after EvaluationSettings changes
|
Update SettingsCtrl test after EvaluationSettings changes
git-svn-id: https://svn.apache.org/repos/asf/incubator/climate/trunk@1504017 13f79535-47bb-0310-9956-ffa450edef68
Former-commit-id: 92957b0f0e6bba13073b75fe9692f1b1b425f626
|
JavaScript
|
apache-2.0
|
pwcberry/climate,riverma/climate,lewismc/climate,MBoustani/climate,pwcberry/climate,apache/climate,huikyole/climate,Omkar20895/climate,jarifibrahim/climate,jarifibrahim/climate,Omkar20895/climate,pwcberry/climate,riverma/climate,apache/climate,pwcberry/climate,MJJoyce/climate,huikyole/climate,MBoustani/climate,lewismc/climate,huikyole/climate,pwcberry/climate,agoodm/climate,apache/climate,jarifibrahim/climate,MJJoyce/climate,Omkar20895/climate,MBoustani/climate,kwhitehall/climate,MJJoyce/climate,MJJoyce/climate,huikyole/climate,huikyole/climate,lewismc/climate,riverma/climate,riverma/climate,MJJoyce/climate,agoodm/climate,MBoustani/climate,kwhitehall/climate,riverma/climate,MBoustani/climate,agoodm/climate,lewismc/climate,Omkar20895/climate,lewismc/climate,apache/climate,apache/climate,kwhitehall/climate,jarifibrahim/climate,agoodm/climate,jarifibrahim/climate,kwhitehall/climate,agoodm/climate,Omkar20895/climate
|
2b4785dca28b3863353de148a78e4aeed595a98c
|
addon/adapters/ember-loopback.js
|
addon/adapters/ember-loopback.js
|
import DS from 'ember-data';
import Ember from 'ember';
export default DS.RESTAdapter.extend({
defaultSerializer: 'ember-loopback/serializers/ember-loopback',
/**
* Serializes the query params as a json because loopback has some funky crazy syntax
* @see http://docs.strongloop.com/display/public/LB/Querying+data
*
* @private
* @override
*
* @param url The request URL
* @param type request method
* @param options ???
* @returns {object} the modified hash
*/
ajaxOptions: function (url, type, options) {
var hash = this._super(url, type, options);
console.info('ajaxOptions: ', url, type, '-->', hash);
// Loopback accepts all query params as a serialized json I think...
if (type === 'GET' && !!hash.data) {
hash.url = hash.url + '?filter=' + encodeURIComponent(JSON.stringify(hash.data));
delete hash.data;
}
return hash;
},
// @override
pathForType: function (type) {
return Ember.String.underscore(type).pluralize();
},
// @override
ajaxError: function (jqXHR, responseText, errorThrown) {
var error = this._super(jqXHR, responseText, errorThrown);
if (jqXHR && jqXHR.status === 422) {
// 422 Unprocessable Entity, aka validation error.
return new DS.InvalidError(Ember.$.parseJSON(jqXHR.responseText));
} else {
return error;
}
}
});
|
import DS from 'ember-data';
import Ember from 'ember';
export default DS.RESTAdapter.extend({
defaultSerializer: 'ember-loopback/serializers/ember-loopback',
/**
* Serializes the query params as a json because loopback has some funky crazy syntax
* @see http://docs.strongloop.com/display/public/LB/Querying+data
*
* @private
* @override
*
* @param url The request URL
* @param type request method
* @param options ???
* @returns {object} the modified hash
*/
ajaxOptions: function (url, type, options) {
var hash = this._super(url, type, options);
console.info('ajaxOptions: ', url, type, '-->', hash);
// Loopback accepts all query params as a serialized json I think...
if (type === 'GET' && !!hash.data) {
hash.url = hash.url + '?filter=' + encodeURIComponent(JSON.stringify(hash.data));
delete hash.data;
}
return hash;
},
// @override
pathForType: function (type) {
return Ember.String.underscore(type).pluralize();
},
// @override
ajaxError: function (jqXHR, responseText, errorThrown) {
var error = this._super(jqXHR, responseText, errorThrown);
if (jqXHR && jqXHR.status === 422) {
// 422 Unprocessable Entity, aka validation error.
var errors = Ember.$.parseJSON(jqXHR.responseText);
return new DS.InvalidError(errors.error.details.messages);
} else {
return error;
}
}
});
|
Update REST adapter to work with loopback errors
|
Update REST adapter to work with loopback errors
|
JavaScript
|
mit
|
mediasuitenz/ember-loopback,mediasuitenz/ember-loopback
|
c3627324afb753e7b4393e8f2ddd1269768ac8e1
|
src/Data/Foreign.js
|
src/Data/Foreign.js
|
/* global exports */
"use strict";
// module Data.Foreign
// jshint maxparams: 3
exports.parseJSONImpl = function (left, right, str) {
try {
return right(JSON.parse(str));
} catch (e) {
return left(e.toString());
}
};
// jshint maxparams: 1
exports.toForeign = function (value) {
return value;
};
exports.unsafeFromForeign = function (value) {
return value;
};
exports.typeOf = function (value) {
return typeof value;
};
exports.tagOf = function (value) {
return Object.prototype.toString.call(value).slice(8, -1);
};
exports.isNull = function (value) {
return value === null;
};
exports.isUndefined = function (value) {
return value === undefined;
};
exports.isArray = Array.isArray || function (value) {
return Object.prototype.toString.call(value) === "[object Array]";
};
exports.writeObject = function (fields) {
var record = {};
for (var i in fields) {
record[fields[i].key] = fields[i].value;
}
return record;
};
|
/* global exports */
"use strict";
// module Data.Foreign
// jshint maxparams: 3
exports.parseJSONImpl = function (left, right, str) {
try {
return right(JSON.parse(str));
} catch (e) {
return left(e.toString());
}
};
// jshint maxparams: 1
exports.toForeign = function (value) {
return value;
};
exports.unsafeFromForeign = function (value) {
return value;
};
exports.typeOf = function (value) {
return typeof value;
};
exports.tagOf = function (value) {
return Object.prototype.toString.call(value).slice(8, -1);
};
exports.isNull = function (value) {
return value === null;
};
exports.isUndefined = function (value) {
return value === undefined;
};
exports.isArray = Array.isArray || function (value) {
return Object.prototype.toString.call(value) === "[object Array]";
};
exports.writeObject = function (fields) {
var record = {};
for (var i = 0; i < fields.length; i++) {
record[fields[i].key] = fields[i].value;
}
return record;
};
|
Use length instead of property iteration
|
Use length instead of property iteration
|
JavaScript
|
bsd-3-clause
|
purescript/purescript-foreign
|
1cffb363b4456ffc9064479c02c72b96b2deba33
|
covervid.js
|
covervid.js
|
jQuery.fn.extend({
coverVid: function(width, height) {
var $this = this;
$(window).on('resize load', function(){
// Get parent element height and width
var parentHeight = $this.parent().height();
var parentWidth = $this.parent().width();
// Get native video width and height
var nativeWidth = width;
var nativeHeight = height;
// Get the scale factors
var heightScaleFactor = parentHeight / nativeHeight;
var widthScaleFactor = parentWidth / nativeWidth;
// Set necessary styles to position video "center center"
$this.css({
'position': 'absolute',
'top': '50%',
'left': '50%',
'-webkit-transform': 'translate(-50%, -50%)',
'-moz-transform': 'translate(-50%, -50%)',
'-ms-transform': 'translate(-50%, -50%)',
'-o-transform': 'translate(-50%, -50%)',
'transform': 'translate(-50%, -50%)',
});
// Set overflow hidden on parent element
$this.parent().css('overflow', 'hidden');
// Based on highest scale factor set width and height
if(widthScaleFactor > heightScaleFactor) {
$this.css({
'height': 'auto',
'width': parentWidth
});
} else {
$this.css({
'height': parentHeight,
'width': 'auto'
});
}
});
}
});
|
jQuery.fn.extend({
coverVid: function(width, height) {
$(document).ready(sizeVideo);
$(window).resize(sizeVideo);
var $this = this;
function sizeVideo() {
// Get parent element height and width
var parentHeight = $this.parent().height();
var parentWidth = $this.parent().width();
// Get native video width and height
var nativeWidth = width;
var nativeHeight = height;
// Get the scale factors
var heightScaleFactor = parentHeight / nativeHeight;
var widthScaleFactor = parentWidth / nativeWidth;
// Set necessary styles to position video "center center"
$this.css({
'position': 'absolute',
'top': '50%',
'left': '50%',
'-webkit-transform': 'translate(-50%, -50%)',
'-moz-transform': 'translate(-50%, -50%)',
'-ms-transform': 'translate(-50%, -50%)',
'-o-transform': 'translate(-50%, -50%)',
'transform': 'translate(-50%, -50%)',
});
// Set overflow hidden on parent element
$this.parent().css('overflow', 'hidden');
// Based on highest scale factor set width and height
if(widthScaleFactor > heightScaleFactor) {
$this.css({
'height': 'auto',
'width': parentWidth
});
} else {
$this.css({
'height': parentHeight,
'width': 'auto'
});
}
}
}
});
|
Clean up spacing + use document ready
|
Clean up spacing + use document ready
|
JavaScript
|
mit
|
zonayedpca/covervid,tianskyluj/covervid,A11oW/ngCovervid,jfeigel/ngCovervid,gdseller/covervid,space150/covervid,AlptugYaman/covervid,AlptugYaman/covervid,gdseller/covervid,tatygrassini/covervid,kitestudio/covervid,PabloValor/covervid,stefanerickson/covervid,stefanerickson/covervid,kitestudio/covervid,PabloValor/covervid,tianskyluj/covervid,zonayedpca/covervid,tatygrassini/covervid,jfeigel/ngCovervid,space150/covervid,bond-agency/covervid,A11oW/ngCovervid
|
76f678705e608d086b8dc549f180229b787398b4
|
web-client/app/scripts/directives/scrollSpy.js
|
web-client/app/scripts/directives/scrollSpy.js
|
'use strict';
angular.module('webClientApp')
.directive('scrollSpy', ['$window', '$interval',
function ($window, $interval) {
var didScroll;
var lastScroll = 0;
return function(scope) {
angular.element($window).bind('scroll', function() {
didScroll = true;
});
$interval(function(){
if(didScroll) {
scope.yscroll = document.body.scrollTop;
didScroll = false;
if(scope.yscroll < 50) {
scope.moveUp = false;
}
else if(scope.yscroll > lastScroll) {
scope.moveUp = true;
}
else if(scope.yscroll < lastScroll-10) {
scope.moveUp = false;
}
lastScroll = scope.yscroll;
}
}, 30);
};
}]);
|
'use strict';
angular.module('webClientApp')
.directive('scrollSpy', ['$window', '$interval',
function ($window, $interval) {
var didScroll;
var lastScroll = 0;
return function(scope) {
angular.element($window).bind('scroll', function() {
didScroll = true;
});
$interval(function(){
if(didScroll) {
scope.yscroll = document.body.scrollTop || document.documentElement.scrollTop;
didScroll = false;
if(scope.yscroll < 50) {
scope.moveUp = false;
}
else if(scope.yscroll > lastScroll) {
scope.moveUp = true;
}
else if(scope.yscroll < lastScroll-10) {
scope.moveUp = false;
}
lastScroll = scope.yscroll;
}
}, 30);
};
}]);
|
Fix infinite scrolling in firefox
|
Fix infinite scrolling in firefox
|
JavaScript
|
bsd-2-clause
|
ahmgeek/manshar,manshar/manshar,manshar/manshar,manshar/manshar,ahmgeek/manshar,ahmgeek/manshar,ahmgeek/manshar,manshar/manshar
|
12fc327a90f7ff6dcb372728270a6275215bb52a
|
gulpfile.js
|
gulpfile.js
|
var gulp = require('gulp'),
istanbul = require('gulp-istanbul'),
jasmine = require('gulp-jasmine'),
jshint = require('gulp-jshint'),
plumber = require('gulp-plumber');
var paths = {
src: ['index.js'],
test: ['spec/**/*.spec.js'],
coverage: './coverage'
};
gulp.task('lint', function() {
return gulp.src([__filename].concat(paths.src).concat(paths.test))
.pipe(plumber())
.pipe(jshint())
.pipe(jshint.reporter('jshint-stylish'));
});
gulp.task('test', function() {
return gulp.src(paths.test)
.pipe(plumber())
.pipe(jasmine({
verbose: true,
includeStackTrace: true
}));
});
gulp.task('coverage', function(cb) {
return gulp.src(paths.src)
.pipe(plumber())
.pipe(istanbul())
.on('finish', function() {
gulp.src(paths.test)
.pipe(jasmine())
.pipe(istanbul.writeReports({
dir: paths.coverage,
reporters: ['lcov', 'text-summary']
}))
.on('end', cb);
});
});
gulp.task('watch', function() {
gulp.watch(paths.src, [
'lint',
'test',
]);
});
gulp.task('default', [
'lint',
'coverage',
]);
|
var gulp = require('gulp'),
istanbul = require('gulp-istanbul'),
jasmine = require('gulp-jasmine'),
jshint = require('gulp-jshint'),
plumber = require('gulp-plumber');
var paths = {
src: ['index.js'],
test: ['spec/**/*.spec.js'],
coverage: './coverage'
};
gulp.task('lint', function() {
return gulp.src([__filename].concat(paths.src).concat(paths.test))
.pipe(plumber())
.pipe(jshint())
.pipe(jshint.reporter('jshint-stylish'));
});
gulp.task('test', function() {
return gulp.src(paths.test)
.pipe(plumber())
.pipe(jasmine({
verbose: true,
includeStackTrace: true
}));
});
gulp.task('coverage', function() {
return gulp.src(paths.src)
.pipe(plumber())
.pipe(istanbul())
.on('finish', function() {
gulp.src(paths.test)
.pipe(jasmine())
.pipe(istanbul.writeReports({
dir: paths.coverage,
reporters: ['lcov', 'text-summary']
}));
});
});
gulp.task('watch', function() {
gulp.watch(paths.src, [
'lint',
'test',
]);
});
gulp.task('default', [
'lint',
'coverage',
]);
|
Remove task completion callback from the `coverage` task
|
Remove task completion callback from the `coverage` task
|
JavaScript
|
mit
|
yuanqing/mitch
|
d73be27d2bcb8481c1bc86702b82e38445c7e33e
|
gulpfile.js
|
gulpfile.js
|
var gulp = require('gulp');
var sass = require('gulp-sass');
// Common paths.
var paths = {
BootstrapSCSS: 'priv/assets/bootstrap-custom/bootstrap-custom.scss',
BootstrapInclude: 'priv/components/bootstrap-sass/assets/stylesheets',
}
// Build admin CSS from SASS/CSS
gulp.task('bootstrap-sass', function() {
return gulp.src(paths.BootstrapSCSS)
.pipe(sass({
trace: true,
style: 'compressed',
includePaths: [paths.BootstrapInclude]
}))
.pipe(gulp.dest('priv/static/css'));
});
// Watch for changes.
gulp.task('watch', function () {
gulp.watch(paths.BootstrapSCSS, ['bootstrap-sass']);
});
// Default gulp task.
gulp.task('default', ['bootstrap-sass']);
|
var gulp = require('gulp');
var sass = require('gulp-sass');
// Common paths.
var paths = {
BootstrapSCSS: 'priv/assets/bootstrap-custom/bootstrap-custom.scss',
BootstrapInclude: 'priv/components/bootstrap-sass/assets/stylesheets',
}
// Build admin CSS from SASS/CSS
gulp.task('sass', function() {
return gulp.src(paths.BootstrapSCSS)
.pipe(sass({
trace: true,
style: 'compressed',
includePaths: [paths.BootstrapInclude]
}))
.pipe(gulp.dest('priv/static/css'));
});
// Watch for changes.
gulp.task('watch', function () {
gulp.watch(paths.BootstrapSCSS, ['sass']);
});
// Default gulp task.
gulp.task('default', ['sass']);
|
Rename bootstrap-sass Gulp task to 'sass'
|
Rename bootstrap-sass Gulp task to 'sass'
|
JavaScript
|
mit
|
OxySocks/micro,OxySocks/micro
|
be4dd0a0f52aae22e349b9b711ae28d26747add1
|
app/routes/index.js
|
app/routes/index.js
|
import Ember from 'ember';
export default Ember.Route.extend({
beforeModel: function() {
this.transitionTo('dashboard');
}
});
|
import Ember from 'ember';
export default Ember.Route.extend({
beforeModel: function() {
this.replaceWith('dashboard');
}
});
|
Use replaceWith to redirect to dashboard on login
|
Use replaceWith to redirect to dashboard on login
|
JavaScript
|
mit
|
thecoolestguy/frontend,thecoolestguy/frontend,stopfstedt/frontend,gabycampagna/frontend,ilios/frontend,gboushey/frontend,djvoa12/frontend,stopfstedt/frontend,ilios/frontend,jrjohnson/frontend,gboushey/frontend,gabycampagna/frontend,dartajax/frontend,jrjohnson/frontend,djvoa12/frontend,dartajax/frontend
|
8e44961e67fa00f9b97252843423451150f7d215
|
src/application/applicationContainer.js
|
src/application/applicationContainer.js
|
let { isArray } = require('../mindash');
let findApp = require('../core/findApp');
module.exports = function (React) {
let ApplicationContainer = React.createClass({
childContextTypes: {
app: React.PropTypes.object
},
getChildContext() {
return { app: findApp(this) };
},
render() {
let { app, children } = this.props;
if (children) {
if (isArray(children)) {
return <span>{React.Children.map(children, cloneElementWithApp)}</span>;
} else {
return cloneElementWithApp(children);
}
}
function cloneElementWithApp(element) {
return React.addons.cloneWithProps(element, {
app: app
});
}
}
});
return ApplicationContainer;
};
|
let findApp = require('../core/findApp');
let { isArray, extend } = require('../mindash');
module.exports = function (React) {
let ApplicationContainer = React.createClass({
childContextTypes: {
app: React.PropTypes.object
},
getChildContext() {
return { app: findApp(this) };
},
render() {
let { app, children } = this.props;
if (children) {
if (isArray(children)) {
return <span>{React.Children.map(children, cloneWithApp)}</span>;
} else {
return cloneWithApp(children);
}
}
function cloneWithApp(element) {
return React.createElement(element.type, extend({
app: app
}, element.props));
}
}
});
return ApplicationContainer;
};
|
Clone the element without using addons
|
Clone the element without using addons
|
JavaScript
|
mit
|
goldensunliu/marty-lib,KeKs0r/marty-lib,thredup/marty-lib,gmccrackin/marty-lib,CumpsD/marty-lib,martyjs/marty-lib
|
d8b936eabb69ac5fd0cd4cd38cbd54a0ed7d6540
|
app/js/on_config.js
|
app/js/on_config.js
|
function OnConfig($stateProvider, $locationProvider, $urlRouterProvider) {
'ngInject';
$locationProvider.html5Mode(true);
$stateProvider
.state('Home', {
url: '/',
controller: 'ExampleCtrl as home',
templateUrl: 'home.html',
title: 'Home'
});
$urlRouterProvider.otherwise('/');
}
export default OnConfig;
|
function OnConfig($stateProvider, $locationProvider, $urlRouterProvider) {
'ngInject';
$locationProvider.html5Mode(true);
$stateProvider
.state('Home', {
url: '/',
controller: 'ExampleCtrl as home',
templateUrl: 'home.html',
title: 'Home'
})
.state('Page1', {
url: '/page1',
controller: 'ExampleCtrl as home',
templateUrl: 'page1.html',
title: 'Page1'
})
.state('Page2', {
url: '/page2',
controller: 'ExampleCtrl as home',
templateUrl: 'page2.html',
title: 'Page2'
});
$urlRouterProvider.otherwise('/');
}
export default OnConfig;
|
Add basic page1 2 with routing
|
Add basic page1 2 with routing
|
JavaScript
|
mit
|
8bithappy/happyhack,8bithappy/happyhack
|
8742d2bffb4c2f02b2372c9a4be0385c0422411d
|
common/errors.js
|
common/errors.js
|
(function() {
'use strict';
angular.module('chaise.errors', [])
// Factory for each error type
.factory('ErrorService', [function ErrorService() {
function error409(error) {
// retry logic
// passthrough to app for now
}
// Special behavior for handling annotations not found because an
// annotation that wasn't found != a true 404 error. Just means an
// ERMrest resource doesn't have a particular annotation.
function annotationNotFound(error) {
console.log(error);
}
return {
error409: error409,
annotationNotFound: annotationNotFound
};
}]);
})();
|
(function() {
'use strict';
angular.module('chaise.errors', [])
// Factory for each error type
.factory('ErrorService', ['$log', function ErrorService($log) {
function error409(error) {
// retry logic
// passthrough to app for now
}
// Special behavior for handling annotations not found because an
// annotation that wasn't found != a true 404 error. Just means an
// ERMrest resource doesn't have a particular annotation.
function annotationNotFound(error) {
$log.info(error);
}
return {
error409: error409,
annotationNotFound: annotationNotFound
};
}]);
})();
|
Use $log in error service
|
Use $log in error service
|
JavaScript
|
apache-2.0
|
informatics-isi-edu/chaise,informatics-isi-edu/chaise,informatics-isi-edu/chaise,informatics-isi-edu/chaise
|
884e849c8fa169320355c1544ab9e236f56f868e
|
modules/recipes/server/routes/recipes.server.routes.js
|
modules/recipes/server/routes/recipes.server.routes.js
|
'use strict';
/**
* Module dependencies.
*/
var recipesPolicy = require('../policies/recipes.server.policy'),
recipes = require('../controllers/recipes.server.controller');
module.exports = function (app) {
// Recipes collection routes
app.route('/api/recipes').all(recipesPolicy.isAllowed)
.get(recipes.list)
.post(recipes.create);
// Single recipe routes
app.route('/api/recipes/:recipeId').all(recipesPolicy.isAllowed)
.get(recipes.read)
.put(recipes.update)
.delete(recipes.delete);
app.route('/api/usda/:food').get(recipes.returnFoods);
app.route('/api/usda/foodReport/:ndbno').get(recipes.returnFoodReport);
app.route('/api/usda/healthify/:foodObject').get(recipes.returnAlternatives);
// Finish by binding the recipe middleware
app.param('recipeId', recipes.recipeByID);
app.param('food',recipes.getName);
app.param('ndbno', recipes.getFoodReport);
app.param('foodObject',recipes.getAlternatives);
};
|
'use strict';
/**
* Module dependencies.
*/
var recipesPolicy = require('../policies/recipes.server.policy'),
recipes = require('../controllers/recipes.server.controller');
module.exports = function (app) {
// Recipes collection routes
app.route('/api/recipes').all(recipesPolicy.isAllowed)
.get(recipes.list)
.post(recipes.create);
// Single recipe routes
app.route('/api/recipes/:recipeId').all(recipesPolicy.isAllowed)
.get(recipes.read)
.put(recipes.update)
.delete(recipes.delete);
app.route('/api/usda/:food').get(recipes.returnFoods);
app.route('/api/usda/foodReport/:ndbno').get(recipes.returnFoodReport);
// Finish by binding the recipe middleware
app.param('recipeId', recipes.recipeByID);
app.param('food',recipes.getName);
app.param('ndbno', recipes.getFoodReport);
};
|
Revert "finished backend for healthify"
|
Revert "finished backend for healthify"
This reverts commit 6903c2baf7a2716f81add8fcc3b3dd42b1dfb65e.
Trying to fix nodemon crash
|
JavaScript
|
mit
|
SEGroup9b/whatUEatin,SEGroup9b/whatUEatin,SEGroup9b/whatUEatin
|
528a764e786787535ab6d763072cb0550435075b
|
test/lib/prepare-spec.js
|
test/lib/prepare-spec.js
|
var prepare = require('../../lib/prepare');
var expect = require('expect');
var samples = {
'copy': {
'assets': require('../samples/copy/assets'),
'report': require('../samples/copy/report')
},
'compress': {
'assets': require('../samples/compress/assets'),
'report': require('../samples/compress/report')
}
};
describe('Prepare a report', function () {
function T(key, sample) {
it('Normal use: ' + key, function () {
expect(prepare(sample.assets)).toEqual(sample.report);
});
}
for (var key in samples) {
T(key, samples[key]);
}
});
|
var prepare = require('../../lib/prepare');
var expect = require('expect');
var samples = {
'copy': {
'assets': require('../samples/copy/assets'),
'report': require('../samples/copy/report')
},
'compress': {
'assets': require('../samples/compress/assets'),
'report': require('../samples/compress/report')
}
};
describe('Prepare a report', function () {
function sortFiles(report) {
for (var pkgName in report) {
report[pkgName].commands.forEach(function (command) {
command.files.sort();
command.output.sort();
});
}
}
function T(key, sample) {
it('Normal use: ' + key, function () {
var report = prepare(sample.assets);
sortFiles(report);
expect(report).toEqual(sample.report);
});
}
for (var key in samples) {
T(key, samples[key]);
}
});
|
Update test: sort arraies before expecting
|
Update test: sort arraies before expecting
|
JavaScript
|
mit
|
arrowrowe/tam
|
b78aee002c1f991ea02ef734dea40c872a979dc3
|
public/javascripts/lib/model_with_language_mixin.js
|
public/javascripts/lib/model_with_language_mixin.js
|
window.ModelWithLanguageMixin = {
LANGUAGE_CHOICES: {
en: 'English',
es: 'Spanish',
hi: 'Hindi',
pt: 'Portuguese',
ru: 'Russian',
ja: 'Japanese',
de: 'German',
id: 'Malay/Indonesian',
vi: 'Vietnamese',
ko: 'Korean',
fr: 'French',
fa: 'Persian',
tk: 'Turkish',
it: 'Italian',
no: 'Norwegian',
pl: 'Polish',
chi: 'Chinese (simplified)',
zho: 'Chinese (traditional)',
ar: 'Aribic',
th: 'Thai'
},
getLanguageCode: function(){
return this.get('language') || 'en';
},
getLanguageName: function(){
return this.LANGUAGE_CHOICES[ this.getLanguageCode() ];
}
};
|
window.ModelWithLanguageMixin = {
LANGUAGE_CHOICES: {
en: 'English',
es: 'Spanish',
hi: 'Hindi',
pt: 'Portuguese',
ru: 'Russian',
ja: 'Japanese',
de: 'German',
id: 'Malay/Indonesian',
vi: 'Vietnamese',
ko: 'Korean',
fr: 'French',
fa: 'Persian',
tk: 'Turkish',
it: 'Italian',
no: 'Norwegian',
pl: 'Polish',
chi: 'Chinese (simplified)',
zho: 'Chinese (traditional)',
ar: 'Aribic',
th: 'Thai'
},
getLanguageCode: function(){
return this.get('language') || 'en';
},
getLanguageName: function(){
return this.LANGUAGE_CHOICES[ this.getLanguageCode() ];
},
getLanguage: function(){
return { code: this.getLanguageCode(), name: this.getLanguageName() };
}
};
|
Add getLanguage method to languages mixin.
|
Add getLanguage method to languages mixin.
This is more suitable for passing to JST template
|
JavaScript
|
mit
|
ivarvong/documentcloud,dannguyen/documentcloud,roberttdev/dactyl4,gunjanmodi/documentcloud,roberttdev/dactyl,roberttdev/dactyl4,monofox/documentcloud,monofox/documentcloud,dannguyen/documentcloud,Teino1978-Corp/Teino1978-Corp-documentcloud,dannguyen/documentcloud,moodpo/documentcloud,monofox/documentcloud,Teino1978-Corp/Teino1978-Corp-documentcloud,roberttdev/dactyl4,Teino1978-Corp/Teino1978-Corp-documentcloud,monofox/documentcloud,roberttdev/dactyl4,gunjanmodi/documentcloud,documentcloud/documentcloud,dannguyen/documentcloud,moodpo/documentcloud,documentcloud/documentcloud,ivarvong/documentcloud,roberttdev/dactyl,moodpo/documentcloud,roberttdev/dactyl,moodpo/documentcloud,gunjanmodi/documentcloud,gunjanmodi/documentcloud,documentcloud/documentcloud,documentcloud/documentcloud,ivarvong/documentcloud,ivarvong/documentcloud,Teino1978-Corp/Teino1978-Corp-documentcloud
|
6c376933137540938bd869be1dd27ac039108704
|
app/routes/movie.js
|
app/routes/movie.js
|
import Ember from 'ember';
export default Ember.Route.extend({
model(params) {
return Ember.RSVP.hash({
movie: Ember.$.getJSON("https://api.themoviedb.org/3/movie/" + params.movie_id+ "?api_key=0910db5745f86638474ffefa5d3ba687"),
userRating: this.get('firebaseUtil').findRecord(params.movie_id, 'users/8V63eXOsjJhe9oAscvaLw1avxFH3/ratings/' + params.movie_id).catch(error => {
//error
alert(error);
})
});
}
});
|
import Ember from 'ember';
export default Ember.Route.extend({
model(params) {
return Ember.RSVP.hash({
movie: Ember.$.getJSON("https://api.themoviedb.org/3/movie/" + params.movie_id+ "?api_key=0910db5745f86638474ffefa5d3ba687"),
userRating: this.get('firebaseUtil').findRecord(params.movie_id, 'users/' + this.get('session.currentUser.uid') + '/ratings/' + params.movie_id).catch(error => {
//error
alert(error);
})
});
}
});
|
Fix initial user rating display
|
Fix initial user rating display
|
JavaScript
|
mit
|
JaxonWright/CineR8,JaxonWright/CineR8
|
20ba3c4e8995318e1ef937cd57fd9c6304412998
|
index.js
|
index.js
|
var express = require('express');
var app = express();
var redis = require('redis').createClient(process.env.REDIS_URL);
app.get('/', function(req, res){
res.send('hello world');
});
app.get('/sayhello', function (req, res){
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Content-Type', 'application/json');
res.send(JSON.stringify({message: "Hello " + req.query.name}));
});
app.listen(process.env.PORT || 3000);
|
var express = require('express');
var app = express();
var redis = require('redis');
var redis_client = redis.createClient(process.env.REDIS_URL || "redis://h:pe991302eec381b357d57f8089f915c35ac970d0bb4f2c89dba4bc52cbd7bcbb7@ec2-79-125-23-12.eu-west-1.compute.amazonaws.com:15599");
app.get('/', function(req, res){
res.send('hello world');
});
app.get('/sayhello', function (req, res){
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Content-Type', 'application/json');
res.send(JSON.stringify({message: "Hello " + req.query.name}));
});
app.post('/keys', function (req, res){
res.setHeader('Access-Control-Allow-Origin', '*');
redis_client.set(req.query.key, req.query.value, redis.print);
res.send("");
});
app.get('/keys', function (req, res){
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Content-Type', 'application/json');
redis_client.get(req.query.key, function (err, reply){
if (err) { throw err; }
var value = (reply === null ? null : reply.toString());
res.send(JSON.stringify({value: value}));
});
});
app.listen(process.env.PORT || 3000);
|
Add /keys endpoint for setting & getting from Redis
|
Add /keys endpoint for setting & getting from Redis
|
JavaScript
|
mit
|
codehackdays/HelloWorld
|
06347c6e939899854a98f0655df67e5d83ba378a
|
index.js
|
index.js
|
'use strict';
module.exports = function (arr) {
var arch = process.arch === 'x64' ? 'x64' : process.arch === 'arm' ? 'arm' : 'x86';
var platform = process.platform;
if (!arr.length) {
return null;
}
return arr.filter(function (obj) {
if (obj.os === platform && obj.arch === arch) {
delete obj.os;
delete obj.arch;
return obj;
} else if (obj.os === platform && !obj.arch) {
delete obj.os;
return obj;
} else if (obj.arch === arch && !obj.os) {
delete obj.arch;
return obj;
} else if (!obj.os && !obj.arch) {
return obj;
}
});
};
|
'use strict';
module.exports = function (arr) {
var arch = process.arch === 'x64' ? 'x64' : process.arch === 'arm' ? 'arm' : 'x86';
var platform = process.platform;
console.log(arr);
if (!arr || !arr.length) {
return [];
}
return arr.filter(function (obj) {
if (obj.os === platform && obj.arch === arch) {
delete obj.os;
delete obj.arch;
return obj;
} else if (obj.os === platform && !obj.arch) {
delete obj.os;
return obj;
} else if (obj.arch === arch && !obj.os) {
delete obj.arch;
return obj;
} else if (!obj.os && !obj.arch) {
return obj;
}
});
};
|
Return an empty array instead of `null`
|
Return an empty array instead of `null`
|
JavaScript
|
mit
|
kevva/os-filter-obj
|
3f1019a71b7dc636390bffe96bf6a93354739b10
|
index.js
|
index.js
|
const jsonMask = require('json-mask')
module.exports = function (opt) {
opt = opt || {}
function partialResponse(obj, fields) {
if (!fields) return obj
return jsonMask(obj, fields)
}
function wrap(orig) {
return function (obj) {
const param = this.req.query[opt.query || 'fields']
if (1 === arguments.length) {
orig(partialResponse(obj, param))
} else if (2 === arguments.length) {
if ('number' === typeof arguments[1]) {
orig(arguments[1], partialResponse(obj, param))
} else {
orig(obj, partialResponse(arguments[1], param))
}
}
}
}
return function (req, res, next) {
if (!res.__isJSONMaskWrapped) {
res.json = wrap(res.json.bind(res))
if (req.jsonp) res.jsonp = wrap(res.jsonp.bind(res))
res.__isJSONMaskWrapped = true
}
next()
}
}
|
const jsonMask = require('json-mask')
module.exports = function (opt) {
opt = opt || {}
function partialResponse(obj, fields) {
if (!fields) return obj
return jsonMask(obj, fields)
}
function wrap(orig) {
return function (obj) {
const param = this.req.query[opt.query || 'fields']
if (1 === arguments.length) {
orig(partialResponse(obj, param))
} else if (2 === arguments.length) {
if ('number' === typeof arguments[1]) {
// res.json(body, status) backwards compat
orig(arguments[1], partialResponse(obj, param))
} else {
// res.json(status, body) backwards compat
orig(obj, partialResponse(arguments[1], param))
}
}
}
}
return function (req, res, next) {
if (!res.__isJSONMaskWrapped) {
res.json = wrap(res.json.bind(res))
if (req.jsonp) res.jsonp = wrap(res.jsonp.bind(res))
res.__isJSONMaskWrapped = true
}
next()
}
}
|
Add comment about binary res.json()
|
Add comment about binary res.json()
|
JavaScript
|
mit
|
nemtsov/express-partial-response
|
6b7f738fd598b50d3fd021597f3f78e6282a79ce
|
index.js
|
index.js
|
var express = require('express');
var Connection = require('./lib/backend/connection').Connection;
var restAdaptor = require('./lib/frontend/rest-adaptor');
var socketIoAdaptor = require('./lib/frontend/socket.io-adaptor');
var dashboardHandler = require('./lib/frontend/dashboard-handler');
express.application.kotoumi = function(params) {
params = params || {};
params.connection = params.connection || new Connection(params);
var connection = params.connection;
params.prefix = params.prefix || '';
params.prefix = params.prefix.replace(/\/$/, '');
restAdaptor.register(this, params);
if (params.server) {
socketIoAdaptor.register(this, params.server, params);
params.server.on('close', function() {
connection.close();
});
}
dashboardHandler.register(this, params);
this.connection = connection;
this.emitMessage = connection.emitMessage.bind(connection); // shorthand
}
|
var express = require('express');
var Connection = require('./lib/backend/connection').Connection;
var restAdaptor = require('./lib/frontend/rest-adaptor');
var socketIoAdaptor = require('./lib/frontend/socket.io-adaptor');
var dashboardHandler = require('./lib/frontend/dashboard-handler');
express.application.kotoumi = function(params) {
params = params || {};
params.connection = params.connection || new Connection(params);
var connection = params.connection;
params.prefix = params.prefix || '';
params.prefix = params.prefix.replace(/\/$/, '');
restAdaptor.register(this, params);
if (params.server) {
socketIoAdaptor.register(this, params.server, params);
params.server.on('close', function() {
// The connection can be mocked/stubbed. We don't need to close
// such a fake connection.
if (typeof connection.close == 'function')
connection.close();
});
}
dashboardHandler.register(this, params);
this.connection = connection;
this.emitMessage = connection.emitMessage.bind(connection); // shorthand
}
|
Make it easy to use mocked/stubbed connections for testing
|
Make it easy to use mocked/stubbed connections for testing
|
JavaScript
|
mit
|
droonga/express-droonga,KitaitiMakoto/express-droonga,droonga/express-droonga,KitaitiMakoto/express-droonga
|
da7718cb9914f268e62200ab21c8f4a62e9d5899
|
index.js
|
index.js
|
"use strict";
// stdlib
var Fs = require('fs');
// nodeca
var NLib = require('nlib');
// 3rd-party
var StaticLulz = require('static-lulz');
var FsTools = NLib.Vendor.FsTools;
var Async = NLib.Vendor.Async;
module.exports = NLib.Application.create({
root: __dirname,
name: 'nodeca.core',
bootstrap: function (nodeca, callback) {
// empty bootstrap... for now..
callback();
}
});
global.nodeca.hooks.init.after('bundles', function (next) {
nodeca.runtime.assets_server = new StaticLulz();
FsTools.walk(nodeca.runtime.assets_path, function (file, stats, next_file) {
// Fill in Static lulz with files and data
Async.waterfall([
Async.apply(Fs.readFile, file),
function (buffer, callback) {
var rel_path = file.replace(nodeca.runtime.assets_path, '');
nodeca.runtime.assets_server.add(rel_path, buffer);
callback();
}
], next_file);
}, next);
});
global.nodeca.hooks.init.after('initialization', function (next) {
nodeca.runtime.http_server = connect.createServer();
next();
});
////////////////////////////////////////////////////////////////////////////////
// vim:ts=2:sw=2
////////////////////////////////////////////////////////////////////////////////
|
"use strict";
// stdlib
var Fs = require('fs');
// nodeca
var NLib = require('nlib');
// 3rd-party
var StaticLulz = require('static-lulz');
var FsTools = NLib.Vendor.FsTools;
var Async = NLib.Vendor.Async;
module.exports = NLib.Application.create({
root: __dirname,
name: 'nodeca.core',
bootstrap: function (nodeca, callback) {
// empty bootstrap... for now..
callback();
}
});
global.nodeca.hooks.init.after('bundles', function (next) {
nodeca.runtime.assets_server = new StaticLulz();
FsTools.walk(nodeca.runtime.assets_path, function (file, stats, next_file) {
// Fill in Static lulz with files and data
Async.waterfall([
Async.apply(Fs.readFile, file),
function (buffer, callback) {
var rel_path = file.replace(nodeca.runtime.assets_path, '');
nodeca.runtime.assets_server.add(rel_path, buffer);
callback();
}
], next_file);
}, next);
});
global.nodeca.hooks.init.after('initialization', function (next) {
var http_server = connect.createServer();
next();
});
////////////////////////////////////////////////////////////////////////////////
// vim:ts=2:sw=2
////////////////////////////////////////////////////////////////////////////////
|
Remove http_server from nodeca context.
|
Remove http_server from nodeca context.
|
JavaScript
|
mit
|
nodeca/nodeca.core,nodeca/nodeca.core
|
92f8cb2850d9e5148aa309c76b4c87cf1fc18652
|
index.js
|
index.js
|
var gulp = require('gulp'),
gutil = require('gulp-util');
function loadTasks(config) {
var tasks = Object.keys(config);
tasks.forEach(function (name) {
var taskConfig = config[name],
task = require('./tasks/' + name)(taskConfig);
gulp.task(name, task);
});
return gulp;
}
module.exports = function (config) {
if (config) {
return loadTasks(config);
}
return loadTasks;
};
|
var gulp = require('gulp'),
gutil = require('gulp-util');
function loadTasks(config) {
var tasks = Object.keys(config);
tasks.forEach(function (name) {
var taskConfig = config[name],
task = require(taskConfig.def)(taskConfig);
gulp.task(name, task);
});
return gulp;
}
module.exports = function (config) {
if (config) {
return loadTasks(config);
}
return loadTasks;
};
|
Use task property for require func
|
Use task property for require func
|
JavaScript
|
mit
|
gulp-boilerplate/gulp-boilerplate
|
818624b20d08020c5f0ac8f2f8059d2ec7fd1ee0
|
index.js
|
index.js
|
function neymar(type, props, ...children) {
props = props || {}
return {
type,
props,
children: Array.prototype.concat.apply([], children)
}
}
function createElement(node) {
if (typeof node === 'string') {
return document.createTextNode(node)
}
const el = document.createElement(node.type)
node.children
.map(createElement)
.map(el.appendChild.bind(el))
return el
}
function view() {
return (<div id="frase-reflexiva"><h1>Neymar é fera</h1></div>)
}
function render(node) {
node.appendChild(createElement(view()))
}
|
function neymar(type, props, ...children) {
props = props || {}
return {
type,
props,
children: Array.prototype.concat.apply([], children)
}
}
function setProperties(node, props) {
Object.keys(props).map(prop => {
const propName = prop === 'className' ? 'class' : prop
node.setAttribute(propName, props[prop])
})
}
function createElement(node) {
if (typeof node === 'string') {
return document.createTextNode(node)
}
const el = document.createElement(node.type)
setProperties(el, node.props)
node.children
.map(createElement)
.map(el.appendChild.bind(el))
return el
}
function view() {
return (<div id="frase-reflexiva" className="container">
<h1 className="cabecalho-top">O ousado chegou</h1>
<p className="paragrafo-topzera">Tô chegando com os refri rapazeada</p>
</div>)
}
function render(node) {
node.appendChild(createElement(view()))
}
|
Add property assignments to the DOM node being created
|
Add property assignments to the DOM node being created
|
JavaScript
|
mit
|
lucasfcosta/vdom-example,lucasfcosta/vdom-example
|
462cae04fb596a3cd8c05f8a6c472796adbc710b
|
index.js
|
index.js
|
var window = require('global/window');
var nodeCrypto = require('crypto');
function getRandomValues(buf) {
if (window.crypto && window.crypto.getRandomValues) {
window.crypto.getRandomValues(buf);
}
else if (typeof window.msCrypto === 'object' && typeof window.msCrypto.getRandomValues === 'function') {
window.msCrypto.getRandomValues(buf);
}
else if (nodeCrypto) {
if (buf.length > 65536) {
var e = new Error();
e.code = 22;
e.message = 'Failed to execute \'getRandomValues\' on \'Crypto\': The ' +
'ArrayBufferView\'s byte length (' + buf.length + ') exceeds the ' +
'number of bytes of entropy available via this API (65536).';
e.name = 'QuotaExceededError';
throw e;
}
var bytes = nodeCrypto.randomBytes(buf.length);
buf.set(bytes);
}
else {
throw new Error('No secure random number generator available.');
}
};
module.exports = getRandomValues;
|
var window = require('global/window');
var nodeCrypto = require('crypto');
function getRandomValues(buf) {
if (window.crypto && window.crypto.getRandomValues) {
window.crypto.getRandomValues(buf);
}
else if (typeof window.msCrypto === 'object' && typeof window.msCrypto.getRandomValues === 'function') {
window.msCrypto.getRandomValues(buf);
}
else if (nodeCrypto.randomBytes) {
if (buf.length > 65536) {
var e = new Error();
e.code = 22;
e.message = 'Failed to execute \'getRandomValues\' on \'Crypto\': The ' +
'ArrayBufferView\'s byte length (' + buf.length + ') exceeds the ' +
'number of bytes of entropy available via this API (65536).';
e.name = 'QuotaExceededError';
throw e;
}
var bytes = nodeCrypto.randomBytes(buf.length);
buf.set(bytes);
}
else {
throw new Error('No secure random number generator available.');
}
};
module.exports = getRandomValues;
|
Check for `randomBytes` before trying to use Node.js crypto
|
Check for `randomBytes` before trying to use Node.js crypto
Browserify's `require()` will return an empty Object here, which evaluates to
`true`, so check for the function we need before trying to use it.
|
JavaScript
|
mit
|
KenanY/get-random-values
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.