commit stringlengths 40 40 | old_file stringlengths 4 150 | new_file stringlengths 4 150 | old_contents stringlengths 0 3.26k | new_contents stringlengths 1 4.43k | subject stringlengths 15 501 | message stringlengths 15 4.06k | lang stringclasses 4 values | license stringclasses 13 values | repos stringlengths 5 91.5k | diff stringlengths 0 4.35k |
|---|---|---|---|---|---|---|---|---|---|---|
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 | ---
+++
@@ -5,22 +5,28 @@
module.exports = (propToBind, dispatch) => {
resources.forEach(resource => {
- propToBind[resource.name] = query =>
- new Promise((resolve, reject) => {
- let config = { params: querySyntax(query) }
+ 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' }
}
- let resourceURL = resource.name
- if (query.id) {
- resourceURL += '/' + query.id
+ 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)
})
+ }
})
} |
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 | ---
+++
@@ -27,6 +27,7 @@
})
gulp.task('test', function() {
+ //Creates local server, runs mocha tests, then exits process (therefore killing server)
connect.server({
root: '',
port: 4000 |
853fcd169a4fea0d8efcfc2be789ee535e49e423 | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var browserify = require('browserify');
var source = require('vinyl-source-stream');
var imagemin = require('gulp-imagemin');
var open = require('gulp-open');
gulp.task('scripts', function () {
return browserify('./js/main.js')
.bundle()
.pipe(source('bundle.js'))
.pipe(gulp.dest('./build/js'));
});
gulp.task('css', function () {
return gulp.src('./css/**/*.css')
.pipe(gulp.dest('./build/css'));
});
gulp.task('html', function () {
return gulp.src('./*.html')
.pipe(gulp.dest('./build'));
});
gulp.task('images', function () {
return gulp.src('./public/images/**/*')
.pipe(imagemin())
.pipe(gulp.dest('./build/public/images'))
});
gulp.task('watch', function () {
gulp.watch('./js/**/*.js', ['scripts']);
gulp.watch('./css/**/*.css', ['css']);
gulp.watch('./*.html', ['html']);
});
gulp.task('open', function () {
var options = {
app: 'google chrome'
};
return gulp.src("./build/index.html").pipe(open('./build/index.html', options));
});
gulp.task('default', ['scripts', 'css', 'html', 'images', 'watch', 'open']);
| var gulp = require('gulp');
var browserify = require('browserify');
var source = require('vinyl-source-stream');
var imagemin = require('gulp-imagemin');
var open = require('gulp-open');
gulp.task('scripts', function () {
return browserify('./js/main.js')
.bundle()
.pipe(source('bundle.js'))
.pipe(gulp.dest('./build/js'));
});
gulp.task('css', function () {
return gulp.src('./css/**/*.css')
.pipe(gulp.dest('./build/css'));
});
gulp.task('html', function () {
return gulp.src('./*.html')
.pipe(gulp.dest('./build'));
});
gulp.task('images', function () {
return gulp.src('./public/images/**/*')
.pipe(imagemin())
.pipe(gulp.dest('./build/public/images'))
});
gulp.task('watch', function () {
gulp.watch('./js/**/*.js', ['scripts']);
gulp.watch('./css/**/*.css', ['css']);
gulp.watch('./*.html', ['html']);
});
gulp.task('open', function () {
var options = {
app: 'google chrome'
};
return gulp.src('./build/index.html')
.pipe(open('./build/index.html', options));
});
gulp.task('default', ['scripts', 'css', 'html', 'images', 'watch', 'open']);
| Break chaining into different lines and change string to single quotes | Break chaining into different lines and change string to single quotes
* Keep styling in file consistent..
| JavaScript | mit | brunops/zombies-game,brunops/zombies-game | ---
+++
@@ -38,7 +38,8 @@
app: 'google chrome'
};
- return gulp.src("./build/index.html").pipe(open('./build/index.html', options));
+ return gulp.src('./build/index.html')
+ .pipe(open('./build/index.html', options));
});
gulp.task('default', ['scripts', 'css', 'html', 'images', 'watch', 'open']); |
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 | ---
+++
@@ -34,4 +34,5 @@
gulp.watch( paths.sass.src, ['sass']);
});
-gulp.task('default', ['js', 'sass', 'watch']);
+gulp.task('build', ['js', 'sass']);
+gulp.task('default', ['build', 'watch']); |
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 | ---
+++
@@ -20,6 +20,18 @@
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>
);
} |
d3c9b44d1567eb4f7cd4b6f067d5bc859deb28b1 | src/js/api/QuestionAPI.js | src/js/api/QuestionAPI.js | import { fetchAnswers, fetchQuestion, fetchComparedAnswers, postAnswer, postSkipQuestion } from '../utils/APIUtils';
export function getAnswers(url = `answers`){
return fetchAnswers(url);
}
export function getComparedAnswers(otherUserId, filters, url = `answers/compare-new/${otherUserId}?locale=es${filters.map(filter => '&'+filter+'=1')}`){
return fetchComparedAnswers(url);
}
export function getQuestion(questionId, url = `questions/${questionId}?locale=es`){
return fetchQuestion(url);
}
export function getNextQuestion(url = `questions/next?locale=es`){
return fetchQuestion(url);
}
export function answerQuestion(questionId, answerId, acceptedAnswers, rating, url = `answers`){
return postAnswer(url, questionId, answerId, acceptedAnswers, rating);
}
export function skipQuestion(questionId, url = `questions/${questionId}/skip`){
return postSkipQuestion(url);
} | import { fetchAnswers, fetchQuestion, fetchComparedAnswers, postAnswer, postSkipQuestion } from '../utils/APIUtils';
export function getAnswers(url = `answers`){
return fetchAnswers(url);
}
export function getComparedAnswers(otherUserId, filters, url = `answers/compare/${otherUserId}?locale=es${filters.map(filter => '&'+filter+'=1')}`){
return fetchComparedAnswers(url);
}
export function getQuestion(questionId, url = `questions/${questionId}?locale=es`){
return fetchQuestion(url);
}
export function getNextQuestion(url = `questions/next?locale=es`){
return fetchQuestion(url);
}
export function answerQuestion(questionId, answerId, acceptedAnswers, rating, url = `answers`){
return postAnswer(url, questionId, answerId, acceptedAnswers, rating);
}
export function skipQuestion(questionId, url = `questions/${questionId}/skip`){
return postSkipQuestion(url);
} | Rename compare route to use definitive one as 'compare' | QS-935: Rename compare route to use definitive one as 'compare'
| JavaScript | agpl-3.0 | nekuno/client,nekuno/client | ---
+++
@@ -4,7 +4,7 @@
return fetchAnswers(url);
}
-export function getComparedAnswers(otherUserId, filters, url = `answers/compare-new/${otherUserId}?locale=es${filters.map(filter => '&'+filter+'=1')}`){
+export function getComparedAnswers(otherUserId, filters, url = `answers/compare/${otherUserId}?locale=es${filters.map(filter => '&'+filter+'=1')}`){
return fetchComparedAnswers(url);
}
|
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 | ---
+++
@@ -23,7 +23,8 @@
font: 'bold 10px Monospace',
pointerEvents: 'none',
background: 'rgba(0, 0, 0, 0.08)',
- margin: '10px 10px 0 10px'
+ margin: '10px 0',
+ padding: '0 10px',
},
wrapper: {
display: 'flex', |
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 | ---
+++
@@ -9,6 +9,8 @@
// Configure scrolling when navigation trigger clicked
document.getElementById('navigation-trigger').addEventListener('click', () => {
- window.scrollTo({ top: window.innerHeight / 2, behavior: 'smooth' });
+ // 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' });
});
}); |
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 | ---
+++
@@ -4,20 +4,18 @@
* @return LandRightsLayer class (extends CartoDBLayerClass)
*/
define([
- 'abstract/layer/CartoDBLayerClass',
- 'text!map/cartocss/land_rights.cartocss'
-], function(CartoDBLayerClass, LandRightsCartocss) {
+ 'abstract/layer/CartoDBLayerClass'
+], function(CartoDBLayerClass) {
'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",
+ 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, source, doc_status, analysis',
- analysis: true,
- cartocss: LandRightsCartocss
+ interactivity: 'cartodb_id, tablename, layer, name, country, legal_term, legal_recognition, area_ha, analysis',
+ analysis: true
}
}); |
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 | ---
+++
@@ -1,12 +1,38 @@
'use strict';
+const specHelper = require('../../support/specHelper'),
+ Branch = specHelper.models.Branch,
+ Group = specHelper.models.Group;
let request = require('supertest-as-promised');
-const instance_url = process.env.INSTANCE_URL;
+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');
}
};
@@ -17,14 +43,29 @@
.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(() => {
- app = instance_url ? instance_url : require('../../../src/backend/app');
+ 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);
+ .then(done, done.fail);
}, 60000);
+
+ it('should return a list of groups for a branch', (done) => {
+ getGroupsForBranch()
+ .then(done, done.fail);
+ }, 60000);
+
}); |
ca9ae7313050e9ff873e04d532a99d5ea3969cba | src/sanity/preview/Reference.js | src/sanity/preview/Reference.js | import {materializeReference} from '../data/fetch'
import {ReferencePreview} from '../../..'
export default ReferencePreview.create(materializeReference)
| import {materializeReference} from '../data/fetch'
import {ReferencePreview} from '../../index'
export default ReferencePreview.create(materializeReference)
| Change path to reference preview | Change path to reference preview
| JavaScript | mit | sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity | ---
+++
@@ -1,4 +1,4 @@
import {materializeReference} from '../data/fetch'
-import {ReferencePreview} from '../../..'
+import {ReferencePreview} from '../../index'
export default ReferencePreview.create(materializeReference) |
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 | ---
+++
@@ -34,6 +34,7 @@
// 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. |
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 | ---
+++
@@ -17,8 +17,10 @@
if (dirs[i].indexOf('node_modules') !== -1) {
continue;
}
- console.log('Building: ' + dirs[i] + '...');
+ console.log('\n***********\nBuilding: ' + dirs[i] + '...');
process.chdir('examples/' + dirs[i]);
childProcess.execSync('npm run build', { stdio: 'inherit' });
process.chdir('../..');
+
}
+console.log('\n********\nDone!'); |
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 | ---
+++
@@ -1,3 +1,24 @@
+/*
+ *
+ * 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'), |
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 | ---
+++
@@ -29,7 +29,8 @@
pointColorType: Potree.PointColorType.RGB,
pointColorTypes: Potree.PointColorType,
pointShapes: Potree.PointShape,
- pointShape: Potree.PointShape.SQUARE
+ pointShape: Potree.PointShape.SQUARE,
+ showStats: false
};
expect(PointcloudService.settings).toEqual(expected); |
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 | ---
+++
@@ -6,16 +6,16 @@
},
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;
- const container = document.querySelector(`.${props.target}`);
container.appendChild(wrapper);
-
- viewloader.execute(views, wrapper, true);
+ viewloader.execute(basketItemViews, wrapper, true);
})
.catch(err => console.log(err));
}); |
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 | ---
+++
@@ -1,7 +1,7 @@
/*globals document */
let hasDOM = typeof document !== 'undefined';
-function appendContainerElement(rootElementId, id) {
+function appendContainerElement(rootElementOrId, id) {
if (!hasDOM) {
return;
}
@@ -10,7 +10,7 @@
return;
}
- let rootEl = document.querySelector(rootElementId);
+ let rootEl = rootElementOrId.appendChild ? rootElementOrId : document.querySelector(rootElementOrId);
let modalContainerEl = document.createElement('div');
modalContainerEl.id = id;
rootEl.appendChild(modalContainerEl); |
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 | ---
+++
@@ -15,7 +15,6 @@
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!'); |
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 | ---
+++
@@ -24,7 +24,6 @@
retryDelays: [5000],
headers: {
'X-CSRF-Token': auth.csrfToken(),
- Authorization: auth.authToken(),
},
})
); |
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 | ---
+++
@@ -10,7 +10,8 @@
'use strict';
angular.module('katex', [])
- .provider('katexConfig', function() {
+ .constant('katex', katex)
+ .provider('katexConfig', ['katex', function(katex) {
var self = this;
self.errorTemplate = function(err) {
@@ -32,7 +33,7 @@
this.$get = function() {
return this;
};
- })
+ }])
.directive('katex', ['katexConfig', function(katexConfig) {
return {
restrict: 'AE', |
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 | ---
+++
@@ -12,9 +12,29 @@
templateUrl: 'views/main.html',
controller: 'MainCtrl'
})
- .when('/users', {
- templateUrl: 'views/users.html',
- controller: 'UsersCtrl'
+ .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: '/' |
ad7e5373322aa618b2e7374a8699c054b84b2d64 | packages/ember-views/tests/compat/attrs_proxy_test.js | packages/ember-views/tests/compat/attrs_proxy_test.js | import View from "ember-views/views/view";
import { runAppend, runDestroy } from "ember-runtime/tests/utils";
import compile from "ember-template-compiler/system/compile";
import Registry from "container/registry";
var view, registry, container;
QUnit.module("ember-views: attrs-proxy", {
setup() {
registry = new Registry();
container = registry.container();
},
teardown() {
runDestroy(view);
}
});
QUnit.skip('works with properties setup in root of view', function() {
registry.register('view:foo', View.extend({
bar: 'qux',
template: compile('{{bar}}')
}));
view = View.extend({
container: registry.container(),
template: compile('{{view "foo" bar="baz"}}')
}).create();
runAppend(view);
equal(view.$().text(), 'baz', 'value specified in the template is used');
});
| import View from "ember-views/views/view";
import { runAppend, runDestroy } from "ember-runtime/tests/utils";
import compile from "ember-template-compiler/system/compile";
import Registry from "container/registry";
var view, registry, container;
QUnit.module("ember-views: attrs-proxy", {
setup() {
registry = new Registry();
container = registry.container();
},
teardown() {
runDestroy(view);
}
});
QUnit.skip('works with properties setup in root of view', function() {
registry.register('view:foo', View.extend({
bar: 'qux',
template: compile('{{view.bar}}')
}));
view = View.extend({
container: registry.container(),
template: compile('{{view "foo" bar="baz"}}')
}).create();
runAppend(view);
equal(view.$().text(), 'baz', 'value specified in the template is used');
});
| Fix typo in compat mode attrs test. | Fix typo in compat mode attrs test.
| JavaScript | mit | mfeckie/ember.js,lan0/ember.js,olivierchatry/ember.js,tofanelli/ember.js,miguelcobain/ember.js,mdehoog/ember.js,mitchlloyd/ember.js,Krasnyanskiy/ember.js,femi-saliu/ember.js,nicklv/ember.js,pangratz/ember.js,delftswa2016/ember.js,xtian/ember.js,topaxi/ember.js,cdl/ember.js,vikram7/ember.js,tricknotes/ember.js,selvagsz/ember.js,delftswa2016/ember.js,ianstarz/ember.js,martndemus/ember.js,ianstarz/ember.js,mfeckie/ember.js,duggiefresh/ember.js,thoov/ember.js,davidpett/ember.js,Turbo87/ember.js,Eric-Guo/ember.js,jaswilli/ember.js,blimmer/ember.js,bmac/ember.js,jaswilli/ember.js,cdl/ember.js,lazybensch/ember.js,nathanhammond/ember.js,Patsy-issa/ember.js,pixelhandler/ember.js,howtolearntocode/ember.js,nicklv/ember.js,jerel/ember.js,eliotsykes/ember.js,patricksrobertson/ember.js,trek/ember.js,blimmer/ember.js,fouzelddin/ember.js,intercom/ember.js,SaladFork/ember.js,howtolearntocode/ember.js,sharma1nitish/ember.js,cgvarela/ember.js,Zagorakiss/ember.js,howtolearntocode/ember.js,mitchlloyd/ember.js,jaswilli/ember.js,rodrigo-morais/ember.js,gfvcastro/ember.js,Trendy/ember.js,njagadeesh/ember.js,johanneswuerbach/ember.js,adatapost/ember.js,xcskier56/ember.js,thejameskyle/ember.js,kanongil/ember.js,xcskier56/ember.js,Trendy/ember.js,kigsmtua/ember.js,simudream/ember.js,davidpett/ember.js,pangratz/ember.js,ThiagoGarciaAlves/ember.js,blimmer/ember.js,cyjia/ember.js,koriroys/ember.js,vikram7/ember.js,quaertym/ember.js,soulcutter/ember.js,xiujunma/ember.js,cbou/ember.js,HipsterBrown/ember.js,lazybensch/ember.js,asakusuma/ember.js,udhayam/ember.js,visualjeff/ember.js,kennethdavidbuck/ember.js,fxkr/ember.js,marijaselakovic/ember.js,Kuzirashi/ember.js,tildeio/ember.js,topaxi/ember.js,emberjs/ember.js,aihua/ember.js,emberjs/ember.js,nathanhammond/ember.js,Eric-Guo/ember.js,mrjavascript/ember.js,furkanayhan/ember.js,duggiefresh/ember.js,thoov/ember.js,marcioj/ember.js,eliotsykes/ember.js,qaiken/ember.js,Vassi/ember.js,jerel/ember.js,rodrigo-morais/ember.js,cyjia/ember.js,pixelhandler/ember.js,SaladFork/ember.js,seanjohnson08/ember.js,MatrixZ/ember.js,rlugojr/ember.js,amk221/ember.js,nickiaconis/ember.js,sandstrom/ember.js,fpauser/ember.js,code0100fun/ember.js,amk221/ember.js,rlugojr/ember.js,acburdine/ember.js,opichals/ember.js,JKGisMe/ember.js,artfuldodger/ember.js,HeroicEric/ember.js,boztek/ember.js,loadimpact/ember.js,GavinJoyce/ember.js,boztek/ember.js,Gaurav0/ember.js,mfeckie/ember.js,artfuldodger/ember.js,Leooo/ember.js,jackiewung/ember.js,danielgynn/ember.js,Turbo87/ember.js,jish/ember.js,knownasilya/ember.js,williamsbdev/ember.js,tianxiangbing/ember.js,jasonmit/ember.js,cjc343/ember.js,jaswilli/ember.js,eliotsykes/ember.js,cibernox/ember.js,claimsmall/ember.js,MatrixZ/ember.js,simudream/ember.js,XrXr/ember.js,thejameskyle/ember.js,elwayman02/ember.js,seanjohnson08/ember.js,cjc343/ember.js,tofanelli/ember.js,martndemus/ember.js,njagadeesh/ember.js,Krasnyanskiy/ember.js,workmanw/ember.js,wecc/ember.js,Robdel12/ember.js,kidaa/ember.js,intercom/ember.js,marcioj/ember.js,tricknotes/ember.js,JesseQin/ember.js,fpauser/ember.js,wecc/ember.js,swarmbox/ember.js,koriroys/ember.js,tildeio/ember.js,cibernox/ember.js,zenefits/ember.js,selvagsz/ember.js,sly7-7/ember.js,faizaanshamsi/ember.js,Turbo87/ember.js,cowboyd/ember.js,code0100fun/ember.js,martndemus/ember.js,faizaanshamsi/ember.js,code0100fun/ember.js,twokul/ember.js,danielgynn/ember.js,kidaa/ember.js,workmanw/ember.js,Serabe/ember.js,loadimpact/ember.js,johanneswuerbach/ember.js,elwayman02/ember.js,alexdiliberto/ember.js,intercom/ember.js,cowboyd/ember.js,greyhwndz/ember.js,asakusuma/ember.js,olivierchatry/ember.js,visualjeff/ember.js,twokul/ember.js,JKGisMe/ember.js,mdehoog/ember.js,schreiaj/ember.js,kaeufl/ember.js,jasonmit/ember.js,Trendy/ember.js,workmanw/ember.js,Kuzirashi/ember.js,givanse/ember.js,kaeufl/ember.js,vikram7/ember.js,mike-north/ember.js,tricknotes/ember.js,kmiyashiro/ember.js,zenefits/ember.js,Trendy/ember.js,marijaselakovic/ember.js,jherdman/ember.js,Gaurav0/ember.js,nruth/ember.js,lsthornt/ember.js,qaiken/ember.js,delftswa2016/ember.js,practicefusion/ember.js,rot26/ember.js,raytiley/ember.js,greyhwndz/ember.js,KevinTCoughlin/ember.js,max-konin/ember.js,green-arrow/ember.js,miguelcobain/ember.js,amk221/ember.js,cowboyd/ember.js,chadhietala/ember.js,lan0/ember.js,cyberkoi/ember.js,aihua/ember.js,kennethdavidbuck/ember.js,miguelcobain/ember.js,xiujunma/ember.js,Vassi/ember.js,XrXr/ember.js,kwight/ember.js,jcope2013/ember.js,kublaj/ember.js,yonjah/ember.js,xtian/ember.js,kwight/ember.js,bantic/ember.js,nruth/ember.js,SaladFork/ember.js,howmuchcomputer/ember.js,mdehoog/ember.js,kennethdavidbuck/ember.js,ThiagoGarciaAlves/ember.js,trentmwillis/ember.js,tofanelli/ember.js,raytiley/ember.js,bekzod/ember.js,tsing80/ember.js,lan0/ember.js,joeruello/ember.js,rfsv/ember.js,topaxi/ember.js,NLincoln/ember.js,cbou/ember.js,claimsmall/ember.js,max-konin/ember.js,toddjordan/ember.js,antigremlin/ember.js,opichals/ember.js,Serabe/ember.js,femi-saliu/ember.js,sandstrom/ember.js,udhayam/ember.js,ef4/ember.js,bekzod/ember.js,toddjordan/ember.js,cyjia/ember.js,GavinJoyce/ember.js,rfsv/ember.js,cjc343/ember.js,omurbilgili/ember.js,patricksrobertson/ember.js,mixonic/ember.js,howtolearntocode/ember.js,schreiaj/ember.js,tiegz/ember.js,kellyselden/ember.js,soulcutter/ember.js,visualjeff/ember.js,jayphelps/ember.js,Patsy-issa/ember.js,fpauser/ember.js,cgvarela/ember.js,simudream/ember.js,asakusuma/ember.js,BrianSipple/ember.js,kaeufl/ember.js,quaertym/ember.js,emberjs/ember.js,sivakumar-kailasam/ember.js,mallikarjunayaddala/ember.js,HipsterBrown/ember.js,lsthornt/ember.js,nickiaconis/ember.js,Gaurav0/ember.js,benstoltz/ember.js,MatrixZ/ember.js,cdl/ember.js,yaymukund/ember.js,runspired/ember.js,rubenrp81/ember.js,mrjavascript/ember.js,jplwood/ember.js,EricSchank/ember.js,csantero/ember.js,kwight/ember.js,cbou/ember.js,yaymukund/ember.js,Serabe/ember.js,mrjavascript/ember.js,cyberkoi/ember.js,ryanlabouve/ember.js,jerel/ember.js,rot26/ember.js,thoov/ember.js,ThiagoGarciaAlves/ember.js,aihua/ember.js,karthiick/ember.js,pangratz/ember.js,cyberkoi/ember.js,cesarizu/ember.js,jasonmit/ember.js,fpauser/ember.js,nicklv/ember.js,KevinTCoughlin/ember.js,nathanhammond/ember.js,HeroicEric/ember.js,pangratz/ember.js,swarmbox/ember.js,xtian/ember.js,anilmaurya/ember.js,xcskier56/ember.js,thoov/ember.js,howmuchcomputer/ember.js,swarmbox/ember.js,thejameskyle/ember.js,BrianSipple/ember.js,kigsmtua/ember.js,njagadeesh/ember.js,HeroicEric/ember.js,TriumphantAkash/ember.js,ef4/ember.js,JesseQin/ember.js,yuhualingfeng/ember.js,yonjah/ember.js,MatrixZ/ember.js,ryanlabouve/ember.js,rodrigo-morais/ember.js,martndemus/ember.js,aihua/ember.js,opichals/ember.js,acburdine/ember.js,Eric-Guo/ember.js,mallikarjunayaddala/ember.js,tiegz/ember.js,lazybensch/ember.js,jherdman/ember.js,jcope2013/ember.js,marcioj/ember.js,tsing80/ember.js,yonjah/ember.js,zenefits/ember.js,nipunas/ember.js,max-konin/ember.js,benstoltz/ember.js,quaertym/ember.js,pixelhandler/ember.js,jerel/ember.js,Vassi/ember.js,kidaa/ember.js,Leooo/ember.js,lsthornt/ember.js,ridixcr/ember.js,szines/ember.js,kigsmtua/ember.js,yaymukund/ember.js,omurbilgili/ember.js,Krasnyanskiy/ember.js,givanse/ember.js,max-konin/ember.js,csantero/ember.js,jcope2013/ember.js,davidpett/ember.js,jasonmit/ember.js,cesarizu/ember.js,cjc343/ember.js,trek/ember.js,stefanpenner/ember.js,kmiyashiro/ember.js,givanse/ember.js,kublaj/ember.js,jish/ember.js,blimmer/ember.js,jackiewung/ember.js,TriumphantAkash/ember.js,ianstarz/ember.js,marijaselakovic/ember.js,GavinJoyce/ember.js,jasonmit/ember.js,lan0/ember.js,TriumphantAkash/ember.js,asakusuma/ember.js,eliotsykes/ember.js,omurbilgili/ember.js,sivakumar-kailasam/ember.js,wecc/ember.js,topaxi/ember.js,davidpett/ember.js,bmac/ember.js,johnnyshields/ember.js,johanneswuerbach/ember.js,ThiagoGarciaAlves/ember.js,artfuldodger/ember.js,Zagorakiss/ember.js,anilmaurya/ember.js,selvagsz/ember.js,artfuldodger/ember.js,sivakumar-kailasam/ember.js,marcioj/ember.js,elwayman02/ember.js,johanneswuerbach/ember.js,szines/ember.js,tianxiangbing/ember.js,rwjblue/ember.js,kanongil/ember.js,seanpdoyle/ember.js,mike-north/ember.js,HipsterBrown/ember.js,antigremlin/ember.js,raytiley/ember.js,trentmwillis/ember.js,stefanpenner/ember.js,fxkr/ember.js,rot26/ember.js,knownasilya/ember.js,cyjia/ember.js,rwjblue/ember.js,williamsbdev/ember.js,mixonic/ember.js,kellyselden/ember.js,kigsmtua/ember.js,howmuchcomputer/ember.js,elwayman02/ember.js,femi-saliu/ember.js,vikram7/ember.js,cyberkoi/ember.js,runspired/ember.js,Gaurav0/ember.js,mfeckie/ember.js,nipunas/ember.js,loadimpact/ember.js,adatapost/ember.js,jamesarosen/ember.js,runspired/ember.js,rubenrp81/ember.js,ridixcr/ember.js,jherdman/ember.js,koriroys/ember.js,udhayam/ember.js,olivierchatry/ember.js,nightire/ember.js,nipunas/ember.js,ubuntuvim/ember.js,ianstarz/ember.js,patricksrobertson/ember.js,rfsv/ember.js,szines/ember.js,Eric-Guo/ember.js,green-arrow/ember.js,adatapost/ember.js,raytiley/ember.js,yonjah/ember.js,BrianSipple/ember.js,trek/ember.js,rodrigo-morais/ember.js,cowboyd/ember.js,furkanayhan/ember.js,johnnyshields/ember.js,acburdine/ember.js,kidaa/ember.js,szines/ember.js,antigremlin/ember.js,nathanhammond/ember.js,claimsmall/ember.js,gfvcastro/ember.js,nickiaconis/ember.js,karthiick/ember.js,mixonic/ember.js,jish/ember.js,sivakumar-kailasam/ember.js,bekzod/ember.js,rot26/ember.js,nruth/ember.js,intercom/ember.js,zenefits/ember.js,tsing80/ember.js,furkanayhan/ember.js,nicklv/ember.js,delftswa2016/ember.js,karthiick/ember.js,rfsv/ember.js,VictorChaun/ember.js,cgvarela/ember.js,mike-north/ember.js,ubuntuvim/ember.js,cgvarela/ember.js,fxkr/ember.js,HipsterBrown/ember.js,jamesarosen/ember.js,joeruello/ember.js,danielgynn/ember.js,workmanw/ember.js,jish/ember.js,xtian/ember.js,lazybensch/ember.js,tricknotes/ember.js,Zagorakiss/ember.js,Patsy-issa/ember.js,selvagsz/ember.js,ryanlabouve/ember.js,EricSchank/ember.js,toddjordan/ember.js,udhayam/ember.js,cesarizu/ember.js,mallikarjunayaddala/ember.js,kellyselden/ember.js,acburdine/ember.js,bantic/ember.js,GavinJoyce/ember.js,chadhietala/ember.js,njagadeesh/ember.js,XrXr/ember.js,quaertym/ember.js,schreiaj/ember.js,adatapost/ember.js,mrjavascript/ember.js,nightire/ember.js,Leooo/ember.js,soulcutter/ember.js,cdl/ember.js,simudream/ember.js,kaeufl/ember.js,fouzelddin/ember.js,SaladFork/ember.js,howmuchcomputer/ember.js,williamsbdev/ember.js,NLincoln/ember.js,givanse/ember.js,twokul/ember.js,kmiyashiro/ember.js,tofanelli/ember.js,jackiewung/ember.js,Robdel12/ember.js,kennethdavidbuck/ember.js,rubenrp81/ember.js,nipunas/ember.js,chadhietala/ember.js,mdehoog/ember.js,swarmbox/ember.js,kublaj/ember.js,cesarizu/ember.js,danielgynn/ember.js,femi-saliu/ember.js,KevinTCoughlin/ember.js,pixelhandler/ember.js,johnnyshields/ember.js,yuhualingfeng/ember.js,sivakumar-kailasam/ember.js,KevinTCoughlin/ember.js,kmiyashiro/ember.js,XrXr/ember.js,nickiaconis/ember.js,JKGisMe/ember.js,olivierchatry/ember.js,omurbilgili/ember.js,mitchlloyd/ember.js,boztek/ember.js,trentmwillis/ember.js,Robdel12/ember.js,bantic/ember.js,tianxiangbing/ember.js,mallikarjunayaddala/ember.js,jherdman/ember.js,BrianSipple/ember.js,tildeio/ember.js,skeate/ember.js,patricksrobertson/ember.js,ridixcr/ember.js,seanpdoyle/ember.js,fouzelddin/ember.js,soulcutter/ember.js,kanongil/ember.js,jplwood/ember.js,rlugojr/ember.js,trek/ember.js,EricSchank/ember.js,antigremlin/ember.js,ef4/ember.js,ryanlabouve/ember.js,mitchlloyd/ember.js,benstoltz/ember.js,rubenrp81/ember.js,TriumphantAkash/ember.js,johnnyshields/ember.js,sandstrom/ember.js,green-arrow/ember.js,Serabe/ember.js,cibernox/ember.js,VictorChaun/ember.js,stefanpenner/ember.js,tiegz/ember.js,NLincoln/ember.js,seanpdoyle/ember.js,practicefusion/ember.js,Vassi/ember.js,claimsmall/ember.js,yaymukund/ember.js,sharma1nitish/ember.js,alexdiliberto/ember.js,qaiken/ember.js,greyhwndz/ember.js,code0100fun/ember.js,practicefusion/ember.js,rwjblue/ember.js,tsing80/ember.js,lsthornt/ember.js,kanongil/ember.js,jcope2013/ember.js,duggiefresh/ember.js,marijaselakovic/ember.js,williamsbdev/ember.js,NLincoln/ember.js,skeate/ember.js,kwight/ember.js,Leooo/ember.js,rwjblue/ember.js,Krasnyanskiy/ember.js,nightire/ember.js,skeate/ember.js,VictorChaun/ember.js,jplwood/ember.js,bmac/ember.js,yuhualingfeng/ember.js,yuhualingfeng/ember.js,green-arrow/ember.js,JesseQin/ember.js,loadimpact/ember.js,jamesarosen/ember.js,boztek/ember.js,VictorChaun/ember.js,Kuzirashi/ember.js,faizaanshamsi/ember.js,koriroys/ember.js,opichals/ember.js,kublaj/ember.js,miguelcobain/ember.js,alexdiliberto/ember.js,bantic/ember.js,jayphelps/ember.js,jayphelps/ember.js,wecc/ember.js,benstoltz/ember.js,practicefusion/ember.js,chadhietala/ember.js,EricSchank/ember.js,bmac/ember.js,jplwood/ember.js,karthiick/ember.js,anilmaurya/ember.js,gfvcastro/ember.js,knownasilya/ember.js,Zagorakiss/ember.js,runspired/ember.js,furkanayhan/ember.js,seanjohnson08/ember.js,rlugojr/ember.js,ef4/ember.js,Turbo87/ember.js,jayphelps/ember.js,kellyselden/ember.js,sharma1nitish/ember.js,seanpdoyle/ember.js,visualjeff/ember.js,faizaanshamsi/ember.js,trentmwillis/ember.js,xiujunma/ember.js,seanjohnson08/ember.js,schreiaj/ember.js,greyhwndz/ember.js,bekzod/ember.js,tianxiangbing/ember.js,skeate/ember.js,ubuntuvim/ember.js,fxkr/ember.js,sly7-7/ember.js,anilmaurya/ember.js,alexdiliberto/ember.js,nruth/ember.js,gfvcastro/ember.js,qaiken/ember.js,twokul/ember.js,JKGisMe/ember.js,jackiewung/ember.js,csantero/ember.js,csantero/ember.js,JesseQin/ember.js,duggiefresh/ember.js,tiegz/ember.js,thejameskyle/ember.js,sly7-7/ember.js,fouzelddin/ember.js,joeruello/ember.js,nightire/ember.js,Kuzirashi/ember.js,jamesarosen/ember.js,sharma1nitish/ember.js,HeroicEric/ember.js,ridixcr/ember.js,cbou/ember.js,joeruello/ember.js,toddjordan/ember.js,mike-north/ember.js,cibernox/ember.js,amk221/ember.js,xcskier56/ember.js,ubuntuvim/ember.js,Robdel12/ember.js,xiujunma/ember.js,Patsy-issa/ember.js | ---
+++
@@ -20,7 +20,7 @@
registry.register('view:foo', View.extend({
bar: 'qux',
- template: compile('{{bar}}')
+ template: compile('{{view.bar}}')
}));
view = View.extend({ |
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 | ---
+++
@@ -3,7 +3,8 @@
let config = {};
config.port = 3000;
-config.apiKey = process.env.LFM_API_KEY;
+config.api_key = process.env.LFM_API_KEY;
config.apiSecret = process.env.LFM_SECRET;
+config.sk = process.env.LFM_SESSION_KEY;
module.exports = config; |
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 | ---
+++
@@ -11,6 +11,8 @@
//= 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 |
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 | ---
+++
@@ -7,7 +7,7 @@
angular.module('scooter.services', [])
.constant('Repo', {
- owner: "ucam-cl-dtg",
+ owner: "isaacphysics",
name: "isaac-content-2"
})
|
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 | ---
+++
@@ -1,2 +1,14 @@
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;
+ });
+} |
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 | ---
+++
@@ -12,7 +12,14 @@
for (var counter = 0; bits < difficulty; counter++) {
var chunks = [
- '2', difficulty , 'sha256', date, name, '', rand, counter
+ '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(); |
14db2d58cd866166e047e4c50c12bd88e5f64cd3 | push-rich/server.js | push-rich/server.js | // Use the web-push library to hide the implementation details of the communication
// between the application server and the push service.
// For details, see https://tools.ietf.org/html/draft-ietf-webpush-protocol and
// https://tools.ietf.org/html/draft-ietf-webpush-encryption.
var webPush = require('web-push');
webPush.setGCMAPIKey(process.env.GCM_API_KEY);
module.exports = function(app, route) {
app.post(route + 'register', function(req, res) {
// A real world application would store the subscription info.
res.sendStatus(201);
});
app.post(route + 'sendNotification', function(req, res) {
setTimeout(function() {
webPush.sendNotification({
endpoint: req.query.endpoint,
TTL: req.query.ttl,
})
.then(function() {
res.sendStatus(201);
})
.catch(function(error) {
res.sendStatus(500);
console.log(error);
})
}, req.query.delay * 1000);
});
};
| // Use the web-push library to hide the implementation details of the communication
// between the application server and the push service.
// For details, see https://tools.ietf.org/html/draft-ietf-webpush-protocol and
// https://tools.ietf.org/html/draft-ietf-webpush-encryption.
var webPush = require('web-push');
webPush.setGCMAPIKey(process.env.GCM_API_KEY || null);
module.exports = function(app, route) {
app.post(route + 'register', function(req, res) {
// A real world application would store the subscription info.
res.sendStatus(201);
});
app.post(route + 'sendNotification', function(req, res) {
setTimeout(function() {
webPush.sendNotification({
endpoint: req.query.endpoint,
TTL: req.query.ttl,
})
.then(function() {
res.sendStatus(201);
})
.catch(function(error) {
res.sendStatus(500);
console.log(error);
})
}, req.query.delay * 1000);
});
};
| Allow startup without setting GCM API key | Allow startup without setting GCM API key
| JavaScript | mit | mozilla/serviceworker-cookbook,mozilla/serviceworker-cookbook | ---
+++
@@ -4,7 +4,7 @@
// https://tools.ietf.org/html/draft-ietf-webpush-encryption.
var webPush = require('web-push');
-webPush.setGCMAPIKey(process.env.GCM_API_KEY);
+webPush.setGCMAPIKey(process.env.GCM_API_KEY || null);
module.exports = function(app, route) {
app.post(route + 'register', function(req, res) { |
41991574f6105df69ac940cc6aa27885ec76d503 | js/dictionary.js | js/dictionary.js | var Dictionary = function() {
var jsonURL = './json/dictionary.json';
this._wordList = (function() {
var json = null;
$.ajax({
'async': false,
'global': false,
'url': jsonURL,
'dataType': 'json',
'success': function( data ) {
json = data;
}
});
return json;
}) ();
};
Dictionary.prototype.getRandomWord = function() {
return this._wordList[ Math.floor( Math.random() * ( this._wordList.length + 1 ) ) ];
};
Dictionary.prototype.getSubWords = function( word ) {
};
Dictionary.prototype.createMap = function() {
};
Dictionary.prototype.isWord = function( word ) {
return this._wordList.lastIndexOf( word );
}
| var Dictionary = function() {
var jsonURL = './json/dictionary.json';
this._wordList = (function() {
var json = null;
$.ajax({
'async': false,
'global': false,
'url': jsonURL,
'dataType': 'json',
'success': function( data ) {
json = data;
}
});
return json;
}) ();
};
Dictionary.prototype.getRandomWord = function() {
return this._wordList[ Math.floor( Math.random() * ( this._wordList.length + 1 ) ) ];
};
Dictionary.prototype.getSubWords = function( word ) {
};
Dictionary.prototype.createMap = function() {
};
Dictionary.prototype.isWord = function( word ) {
return this._wordList.lastIndexOf( word ) !== -1;
}
| Fix word search returning the index instead of whether the word exists. | Fix word search returning the index instead of whether the word exists.
| JavaScript | mit | razh/spellquest | ---
+++
@@ -31,5 +31,5 @@
Dictionary.prototype.isWord = function( word ) {
- return this._wordList.lastIndexOf( word );
+ return this._wordList.lastIndexOf( word ) !== -1;
} |
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 | ---
+++
@@ -3,6 +3,7 @@
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 = []; |
1e26d91c9706abb49ee0d5b5224b30ce8ce629b8 | test/helpers/mock-htmlmerger.js | test/helpers/mock-htmlmerger.js | (function () {
var server = sinon.fakeServer.create();
server.xhr.useFilters = true;
server.xhr.addFilter(function (method, url) {
//whenever the this returns true the request will not faked
return !url.match(/starcounter\//);
});
server.respondWith('GET', /htmlmerger/, [200, {"Content-Type": "text/html"}, 'fake response']);
}());
| (function () {
var server = sinon.fakeServer.create();
server.xhr.useFilters = true;
server.xhr.addFilter(function (method, url) {
//whenever the this returns true the request will not faked
return !url.match(/sc\//);
});
server.respondWith('GET', /htmlmerger/, [200, {"Content-Type": "text/html"}, 'fake response']);
}());
| Update mock server path in test helper for FF and IE | Update mock server path in test helper for FF and IE
| JavaScript | mit | Starcounter/starcounter-include,Starcounter/starcounter-include | ---
+++
@@ -3,7 +3,7 @@
server.xhr.useFilters = true;
server.xhr.addFilter(function (method, url) {
//whenever the this returns true the request will not faked
- return !url.match(/starcounter\//);
+ return !url.match(/sc\//);
});
server.respondWith('GET', /htmlmerger/, [200, {"Content-Type": "text/html"}, 'fake response']);
}()); |
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 | ---
+++
@@ -1,10 +1,27 @@
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.props.data}}></div>
+ <div dangerouslySetInnerHTML={ {__html: this.getContent()}}></div>
)
}
} |
63afc625a808e66ac2bc1159557fc1547628a23a | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
// Add the grunt-mocha-test tasks.
[
'grunt-mocha-test',
'grunt-contrib-watch'
]
.forEach( grunt.loadNpmTasks );
grunt.initConfig({
// Configure a mochaTest task
mochaTest: {
test: {
options: {
reporter: 'spec'
},
src: ['test/**/*.js' ]
},
},
watch: {
scripts: {
files: [ 'src/**/*.js' , 'test/**/*.js' ],
tasks: ['eslint', 'mochaTest' ]
}
},
eslint: {
target: ['src/**/*.js']
}
});
grunt.registerTask( 'default' , [ 'eslint' , 'mochaTest' , 'watch' ]);
};
| module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
// Add the grunt-mocha-test tasks.
[
'grunt-mocha-test',
'grunt-contrib-watch'
]
.forEach( grunt.loadNpmTasks );
grunt.initConfig({
// Configure a mochaTest task
mochaTest: {
test: {
options: {
reporter: 'spec'
},
src: ['test/**/*.js' ]
},
},
watch: {
options: {
atBegin: true
},
scripts: {
files: [ 'src/**/*.js', 'test/**/*.js' ],
tasks: ['eslint', 'mochaTest' ]
}
},
eslint: {
target: ['src/**/*.js']
}
});
grunt.registerTask( 'default', [ 'eslint' ]);
grunt.registerTask( 'debug', [ 'watch' ]);
};
| Break watch task into separate task | Break watch task into separate task
| JavaScript | mit | BrianSilvia/http-fs-node,BrianSilvia/http-fs-node | ---
+++
@@ -21,8 +21,11 @@
},
watch: {
+ options: {
+ atBegin: true
+ },
scripts: {
- files: [ 'src/**/*.js' , 'test/**/*.js' ],
+ files: [ 'src/**/*.js', 'test/**/*.js' ],
tasks: ['eslint', 'mochaTest' ]
}
},
@@ -32,5 +35,6 @@
}
});
- grunt.registerTask( 'default' , [ 'eslint' , 'mochaTest' , 'watch' ]);
+ grunt.registerTask( 'default', [ 'eslint' ]);
+ grunt.registerTask( 'debug', [ 'watch' ]);
}; |
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 | ---
+++
@@ -16,6 +16,9 @@
dest: 'dist/share/git-webui/webui/js/',
},
git_webui: {
+ options: {
+ mode: true,
+ },
expand: true,
cwd: 'src',
src: ['lib/**', 'share/**', '!**/less', '!**/*.less'], |
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 | ---
+++
@@ -21,9 +21,11 @@
}
},
dco: {
- options: {
- exceptionalAuthors: {
- "rxaviers@gmail.com": "Rafael Xavier de Souza"
+ current: {
+ options: {
+ exceptionalAuthors: {
+ "rxaviers@gmail.com": "Rafael Xavier de Souza"
+ }
}
}
} |
cd931b99fdb37f549ac0362baabc2dbfaab3de3b | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
// Add the grunt-mocha-test tasks.
[
'grunt-mocha-test',
'grunt-contrib-watch'
]
.forEach( grunt.loadNpmTasks );
grunt.initConfig({
// Configure a mochaTest task
mochaTest: {
test: {
options: {
reporter: 'spec'
},
src: ['test/**/*.js' ]
},
},
watch: {
options: {
atBegin: true
},
scripts: {
files: [ 'src/**/*.js', 'test/**/*.js' ],
tasks: ['eslint', 'mochaTest' ]
}
},
eslint: {
target: ['src/**/*.js']
}
});
grunt.registerTask( 'default', [ 'eslint' ]);
grunt.registerTask( 'debug', [ 'watch' ]);
};
| module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
// Add the grunt-mocha-test tasks.
[
'grunt-mocha-test',
'grunt-contrib-watch'
]
.forEach( grunt.loadNpmTasks );
grunt.initConfig({
// Configure a mochaTest task
mochaTest: {
test: {
options: {
reporter: 'spec'
},
src: ['test/**/*.js' ]
},
},
watch: {
options: {
atBegin: true
},
scripts: {
files: [ 'src/**/*.js', 'test/**/*.js' ],
tasks: ['eslint', 'mochaTest' ]
}
},
eslint: {
target: ['src/**/*.js']
}
});
grunt.registerTask( 'default', [ 'eslint' , 'mochaTest' ]);
grunt.registerTask( 'debug', [ 'watch' ]);
};
| Add unit tests back to default grunt task | Add unit tests back to default grunt task
| JavaScript | mit | BrianSilvia/http-fs-node,BrianSilvia/http-fs-node | ---
+++
@@ -35,6 +35,6 @@
}
});
- grunt.registerTask( 'default', [ 'eslint' ]);
+ grunt.registerTask( 'default', [ 'eslint' , 'mochaTest' ]);
grunt.registerTask( 'debug', [ 'watch' ]);
}; |
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 | ---
+++
@@ -42,6 +42,7 @@
});
grunt.registerTask('test', [
+ 'build',
'mochaTest'
]);
|
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 | ---
+++
@@ -10,6 +10,7 @@
main: {
src: [
'includes/**',
+ 'lib/**',
'languages/**',
'composer.json',
'CHANGELOG.md', |
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 | ---
+++
@@ -9,5 +9,6 @@
.loot('node-component-grunt')
.loot('node-lib-grunt')
.loot('./config/grunt')
+ .home(__dirname)
.attack();
}; |
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 | ---
+++
@@ -1,6 +1,8 @@
-export default class MetaController {
+class MetaController {
constructor(PageMetadata) {
this.meta = PageMetadata;
}
}
MetaController.$inject = ['PageMetadata'];
+
+export default MetaController; |
c9e083cc8b431390042b744d7252e64ce758b50a | apps/acalc/bg.js | apps/acalc/bg.js | /**
* @license
* Copyright 2014 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* 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 launchCalc() {
chrome.app.window.create('AppCalc.html', {
id: 'Calculator',
innerBounds: {
minWidth: 510,
minHeight: 440,
width: 500,
height: 600
}
});
}
chrome.app.runtime.onLaunched.addListener(launchCalc);
| /**
* @license
* Copyright 2014 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* 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 launchCalc() {
chrome.app.window.create('AppCalc.html', {
id: 'Calculator',
innerBounds: {
minWidth: 330,
minHeight: 340,
width: 350,
height: 450
}
});
}
chrome.app.runtime.onLaunched.addListener(launchCalc);
| Revert "ACalc: Increased minimum and starting calculator size." | Revert "ACalc: Increased minimum and starting calculator size."
This reverts commit 1747c7b05b30630358a58603da0d1878cf9b2a57.
| JavaScript | apache-2.0 | foam-framework/foam,mdittmer/foam,foam-framework/foam,jlhughes/foam,osric-the-knight/foam,jlhughes/foam,osric-the-knight/foam,jacksonic/foam,foam-framework/foam,jlhughes/foam,mdittmer/foam,jlhughes/foam,osric-the-knight/foam,foam-framework/foam,osric-the-knight/foam,jacksonic/foam,foam-framework/foam,mdittmer/foam,mdittmer/foam,jacksonic/foam,jacksonic/foam | ---
+++
@@ -19,10 +19,10 @@
chrome.app.window.create('AppCalc.html', {
id: 'Calculator',
innerBounds: {
- minWidth: 510,
- minHeight: 440,
- width: 500,
- height: 600
+ minWidth: 330,
+ minHeight: 340,
+ width: 350,
+ height: 450
}
});
} |
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 | ---
+++
@@ -4,19 +4,27 @@
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 your turn by yielding to the opponent player, sending the move
- // you just made and waiting to receive the move they will make next
+ // 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
+ // 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();
}); |
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 | ---
+++
@@ -1,4 +1,4 @@
-import Image from 'substance/packages/image/Image'
+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'
@@ -9,7 +9,7 @@
export default {
name: 'image',
configure: function (config) {
- config.addNode(Image)
+ config.addNode(ImageNode)
config.addComponent('image', ImageComponent)
config.addComponent('image-markdown', ImageMarkdownComponent)
config.addConverter('html', ImageHTMLConverter) |
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 | ---
+++
@@ -10,7 +10,11 @@
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}.`); |
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 | ---
+++
@@ -2,6 +2,17 @@
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.
@@ -16,5 +27,6 @@
);
export {
+ renderDOM, // eslint-disable-line import/prefer-default-export
renderMarkup // eslint-disable-line import/prefer-default-export
}; |
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 | ---
+++
@@ -16,9 +16,23 @@
var defer = Promise.defer();
var image = new Image();
- image.addEventListener( "load", defer.resolve, false );
- image.addEventListener( "error", withError ? defer.reject : defer.resolve, false );
+
+ 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;
}
|
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 | ---
+++
@@ -23,7 +23,7 @@
})();
-
+/* Signup and Login menu drop down*/
$('.search a[href]').on('click', function(event){
event.preventDefault();
$(this).add(this.hash)
@@ -37,3 +37,16 @@
.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*/ |
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 | ---
+++
@@ -1,74 +1,9 @@
/**
* @fileOverview
*/
-define(['parse/parse',
- 'ecma/ast/value',
- 'khepri/parse/token_parser'],
-function(parse,
- astValue,
- token){
+define(['ecma/parse/value_parser'],
+function(ecma_value){
"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
-};
-
+return ecma_value;
}); |
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 | ---
+++
@@ -32,9 +32,9 @@
*/
function getInteractionsForContact (token, contactId) {
return new Promise((resolve) => {
- authorisedRequest(token, `${config.apiRoot}/interaction/?contact_id=${contactId}`)
+ authorisedRequest(token, `${config.apiRoot}/contact/${contactId}/`)
.then((response) => {
- resolve(response.results)
+ resolve(response.interactions)
})
.catch((error) => {
winston.info(error) |
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 | ---
+++
@@ -10,8 +10,8 @@
ttl: 60 * 60
}),
// default request timeout values
- DefaultOpenTimeout: 10 * 1000, // 10 seconds; timeout in milliseconds
- DefaultReadTimeout: 0 * 1000, // 0 seconds; timeout in milliseconds
+ 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 |
775532063ca4c85d3217bd25d7476460fe778308 | packages/antwar/src/core/paths/parse-section-name.js | packages/antwar/src/core/paths/parse-section-name.js | const _ = require('lodash');
module.exports = function parseSectionName(sectionName, name) {
const ret = sectionName + name;
// Root exception (/)
return ret.length > 1 ? _.trimStart(ret, '/') : ret;
};
| const _ = require('lodash');
module.exports = function parseSectionName(sectionName, name = '') {
const ret = sectionName + name;
// Root exception (/)
return ret.length > 1 ? _.trimStart(ret, '/') : ret;
};
| Set default value for `parseSectionName` name | fix: Set default value for `parseSectionName` name
Otherwise this can lead to concat with `undefined` which results in
`undefined`. This needs better tests.
| JavaScript | mit | antwarjs/antwar | ---
+++
@@ -1,6 +1,6 @@
const _ = require('lodash');
-module.exports = function parseSectionName(sectionName, name) {
+module.exports = function parseSectionName(sectionName, name = '') {
const ret = sectionName + name;
// Root exception (/) |
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 | ---
+++
@@ -1,18 +1,19 @@
function filterF(i, el) {
- var pattern = /(From|To|Subject|Cc|Date):/i;
+ 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();
- 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();
}); |
6dac4d26fde402813c1ad6431d8f9f961d488454 | test/_stubs.js | test/_stubs.js | import sinon from 'sinon';
import config from '../config.default.json';
import DataStoreHolder from '../lib/data-store-holder';
export { getGithubClient } from './_github-client';
const getIssue = (content = 'lorem ipsum') => {
//TODO should use an actual issue instance instead with a no-op github client.
const labels = new Set();
return {
content,
addLabel: sinon.spy((label) => labels.add(label)),
hasLabel: sinon.spy((label) => labels.has(label)),
removeLabel: sinon.spy((label) => labels.delete(label)),
comment: sinon.spy()
};
};
const getConfig = () => config[0];
const getDataStoreHolder = () => {
const Dsh = class extends DataStoreHolder {
constructor() {
super();
this.updateSpy = sinon.stub();
}
async update() {
this.updateSpy();
return super.update();
}
};
return new Dsh();
};
const getIssueData = () => ({
id: 0,
number: 1,
owner: "test",
repo: "foo",
content: 'lorem ipsum',
updated_at: new Date().toString(),
assignee: null,
labels: [],
title: 'bar',
state: true
});
export {
getIssue,
getConfig,
getDataStoreHolder,
getIssueData
};
| import sinon from 'sinon';
import config from '../config.default.json';
import DataStoreHolder from '../lib/data-store-holder';
import getGithubClient from './_github-client';
const getIssue = (content = 'lorem ipsum') => {
//TODO should use an actual issue instance instead with a no-op github client.
const labels = new Set();
return {
content,
addLabel: sinon.spy((label) => labels.add(label)),
hasLabel: sinon.spy((label) => labels.has(label)),
removeLabel: sinon.spy((label) => labels.delete(label)),
comment: sinon.spy()
};
};
const getConfig = () => config[0];
const getDataStoreHolder = () => {
const Dsh = class extends DataStoreHolder {
constructor() {
super();
this.updateSpy = sinon.stub();
}
async update() {
this.updateSpy();
return super.update();
}
};
return new Dsh();
};
const getIssueData = () => ({
id: 0,
number: 1,
owner: "test",
repo: "foo",
content: 'lorem ipsum',
updated_at: new Date().toString(),
assignee: null,
labels: [],
title: 'bar',
state: true
});
export {
getIssue,
getConfig,
getDataStoreHolder,
getGithubClient,
getIssueData
};
| Revert "tests: Use exports syntax directly" | Revert "tests: Use exports syntax directly"
This reverts commit 5c2697713268ad03612e93d1c0b285a9b7f9986e.
| JavaScript | mpl-2.0 | mozillach/gh-projects-content-queue | ---
+++
@@ -1,7 +1,7 @@
import sinon from 'sinon';
import config from '../config.default.json';
import DataStoreHolder from '../lib/data-store-holder';
-export { getGithubClient } from './_github-client';
+import getGithubClient from './_github-client';
const getIssue = (content = 'lorem ipsum') => {
//TODO should use an actual issue instance instead with a no-op github client.
@@ -48,5 +48,6 @@
getIssue,
getConfig,
getDataStoreHolder,
+ getGithubClient,
getIssueData
}; |
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 | ---
+++
@@ -13,11 +13,11 @@
},
afterEach() {
- destroyApp(this.application);
-
if (options.afterEach) {
options.afterEach.apply(this, arguments);
}
+
+ destroyApp(this.application);
}
});
} |
532d59bddb0f38a3d440c1cdabd4ac92d9105b13 | modules/static/plugins/flexboxIE.js | modules/static/plugins/flexboxIE.js | /* @flow */
const alternativeValues = {
'space-around': 'distribute',
'space-between': 'justify',
'flex-start': 'start',
'flex-end': 'end'
}
const alternativeProps = {
alignContent: 'msFlexLinePack',
alignSelf: 'msFlexItemAlign',
alignItems: 'msFlexAlign',
justifyContent: 'msFlexPack',
order: 'msFlexOrder',
flexGrow: 'msFlexPositive',
flexShrink: 'msFlexNegative',
flexBasis: 'msPreferredSize'
}
export default function flexboxIE(property: string, value: any, style: Object): void {
if (alternativeProps.hasOwnProperty(property)) {
style[alternativeProps[property]] = alternativeValues[value] || value
}
}
| /* @flow */
const alternativeValues = {
'space-around': 'distribute',
'space-between': 'justify',
'flex-start': 'start',
'flex-end': 'end'
}
const alternativeProps = {
alignContent: 'msFlexLinePack',
alignSelf: 'msFlexItemAlign',
alignItems: 'msFlexAlign',
justifyContent: 'msFlexPack',
order: 'msFlexOrder',
flexGrow: 'msFlexPositive',
flexShrink: 'msFlexNegative',
flexBasis: 'msFlexPreferredSize'
}
export default function flexboxIE(property: string, value: any, style: Object): void {
if (alternativeProps.hasOwnProperty(property)) {
style[alternativeProps[property]] = alternativeValues[value] || value
}
}
| Fix flexBasis property for IE | Fix flexBasis property for IE | JavaScript | mit | rofrischmann/inline-style-prefixer | ---
+++
@@ -13,7 +13,7 @@
order: 'msFlexOrder',
flexGrow: 'msFlexPositive',
flexShrink: 'msFlexNegative',
- flexBasis: 'msPreferredSize'
+ flexBasis: 'msFlexPreferredSize'
}
export default function flexboxIE(property: string, value: any, style: Object): void { |
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 | ---
+++
@@ -1,18 +1,16 @@
'use strict';
-var Command = require('./command');
+var SurfaceCommand = require('./surface_command');
-var SelectAll = Command.extend({
+var SelectAll = SurfaceCommand.extend({
static: {
name: 'selectAll'
},
execute: function() {
- var ctrl = this.getController();
- var surface = ctrl.getSurface();
+ var surface = this.getSurface();
if (surface) {
- var editor = ctrl.getSurface().getEditor();
- var newSelection = editor.selectAll(ctrl.getDocument(), surface.getSelection());
+ var newSelection = surface.selectAll(surface.getDocument(), surface.getSelection());
surface.setSelection(newSelection);
return true;
} else { |
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 | ---
+++
@@ -21,3 +21,6 @@
declare var Headers: any;
declare var Request: any;
declare var Response: any;
+declare module requestAnimationFrame {
+ declare var exports: (callback: any) => any;
+} |
0353d63465f9a393600708c19b158cdf20a817d3 | app/assets/javascripts/autocomplete_point_fields.js | app/assets/javascripts/autocomplete_point_fields.js | $(function () {
$.get("/point_types.json", function (typeList) {
$("#point_type").autocomplete({
source: typeList, delay: 0, minLength: 0, autoFocus: true
});
$("#point_type").focus(function () {
$(this).autocomplete("search", "");
});
});
$.get("/sayges", function (saygeList) {
$("#to_user").autocomplete({
source: saygeList, delay: 0, autoFocus: true
});
});
}); | $(function () {
$.get("/point_types.json", function (typeList) {
$("#point_type").autocomplete({
source: typeList, delay: 0, minLength: 0, autoFocus: true
});
$("#point_type").focus(function () {
$(this).autocomplete("search", "");
});
});
$.get("/sayges.json", function (saygeList) {
$("#to_user").autocomplete({
source: saygeList, delay: 0, autoFocus: true
});
});
}); | Use explicit json url on user autocomplete | Use explicit json url on user autocomplete
| JavaScript | bsd-2-clause | Sayhired/SaygePoints,Sayhired/SaygePoints | ---
+++
@@ -9,7 +9,7 @@
});
});
- $.get("/sayges", function (saygeList) {
+ $.get("/sayges.json", function (saygeList) {
$("#to_user").autocomplete({
source: saygeList, delay: 0, autoFocus: true
}); |
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 | ---
+++
@@ -1,6 +1,15 @@
$(function() {
// Body headings
- $('h1.juttuotsikko span.otsikko:last-of-type').satanify();
+ $('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(' '); |
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 | ---
+++
@@ -12,7 +12,6 @@
this.render = this.render.bind(this);
}
handleDetailSelection(title: string) {
- console.log(`You picked ${title}`);
this.setState({detail:title});
}
handleDetailClosing(){
@@ -29,7 +28,10 @@
if( p.name.indexOf(this.props.filterText.toLowerCase()) === -1){
return;
}
- return <FlexCell title={p.name} key={p.name} clickHandler={this.handleDetailSelection.bind(this)}/>
+ return <FlexCell
+ title={p.name}
+ key={p.name}
+ clickHandler={this.handleDetailSelection.bind(this)}/>
})}</main>);
}
} |
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 | ---
+++
@@ -27,13 +27,12 @@
}
DiceBag.prototype.d = function (sides) {
- var randomNumberGenerator = this.randomNumberGenerator;
return function () {
return {
source: "d" + sides,
- value: Math.floor(randomNumberGenerator() * sides) + 1
+ value: Math.floor(this.randomNumberGenerator() * sides) + 1
};
- };
+ }.bind(this);
};
module.exports = DiceBag; |
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 | ---
+++
@@ -22,6 +22,11 @@
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) |
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 | ---
+++
@@ -14,11 +14,11 @@
}
};
-validate.validators.fxoDatetime = function(value, key, options) {
+validate.validators.fxoDatetime = function(value, options, key) {
return validateFxoObject('datetime', value, key, options);
};
-validate.validators.fxoBoolean = function(value, key, options) {
+validate.validators.fxoBoolean = function(value, options, key) {
return validateFxoObject('boolean', value, key, options);
};
|
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 | ---
+++
@@ -18,12 +18,12 @@
onUploadComplete: '&',
onChange: '&',
},
- controller: ['$scope', '$log', function($scope, $log) {
+ controller: ['$scope', '$element', '$log', function($scope, $element, $log) {
if(!uploadcare) {
$log.error('Uploadcare script has not been loaded!.');
return;
}
- $scope.widget = uploadcare.Widget('[role=ng-uploadcare-uploader]');
+ $scope.widget = uploadcare.Widget($element);
$scope.onWidgetReady({widget: $scope.widget});
$scope.widget.onUploadComplete(function(info) {
$scope.onUploadComplete({info: info}); |
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 | ---
+++
@@ -11,7 +11,7 @@
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('.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"); |
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 | ---
+++
@@ -6,12 +6,11 @@
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)
+ 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)
}
}
} |
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 | ---
+++
@@ -40,6 +40,7 @@
// Locations
this.route('locations', {
+ path: '/',
waitOn: function () {
return Meteor.subscribe('allLocations');
},
@@ -63,13 +64,6 @@
}
});
-
- // Pages
-
- this.route('homepage', {
- path: '/'
- });
-
this.route('content');
// Users |
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 | ---
+++
@@ -26,10 +26,7 @@
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,
- });
+ return parse(SCHEMA_EXTENSION + '\n' + source);
} catch (error) {
// Log a more helpful warning (by including the schema path).
console.error( |
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 | ---
+++
@@ -7,6 +7,7 @@
this.await = new Promise(function() {
self._done = arguments[0];
+ self._error = arguments[1];
});
this.started = false;
};
@@ -17,6 +18,9 @@
var args = Array.prototype.slice.call(arguments);
return fn.apply(null, args);
+ });
+ this.chain = this.chain.catch(function(e) {
+ self._error(e);
});
return this; |
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 | ---
+++
@@ -26,6 +26,7 @@
return (
<ReactModal
isOpen
+ onRequestClose={this.props.actions.app.closeAboutDialog.trigger}
className={styles.dialog}
overlayClassName={styles.overlay}
ariaHideApp={false} |
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 | ---
+++
@@ -11,3 +11,8 @@
}
$('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/]};
+}); |
99d332faca68dedf51f31b9fda60ea9672b66126 | app/assets/javascripts/global/views/questions.js | app/assets/javascripts/global/views/questions.js | app = app || {};
app.QuestionView = Backbone.View.extend({
template: _.template( $('#question_template').html() ),
events: {},
initialize: function(){},
render: function(){}
}); | Add basic outline to Backbone question view -define template -empty events -empty initialize -empty render | Add basic outline to Backbone question view
-define template
-empty events
-empty initialize
-empty render
| JavaScript | cc0-1.0 | red-spotted-newts-2014/food-overflow,red-spotted-newts-2014/food-overflow | ---
+++
@@ -0,0 +1,14 @@
+app = app || {};
+
+app.QuestionView = Backbone.View.extend({
+
+ template: _.template( $('#question_template').html() ),
+
+ events: {},
+
+ initialize: function(){},
+
+ render: function(){}
+
+
+}); | |
47bd5107690ab5b34cd210a6a45942b4b469e6ba | src/utils/data3d/load.js | src/utils/data3d/load.js | import fetch from '../io/fetch.js'
import decodeBuffer from './decode-buffer.js'
export default function loadData3d (url, options) {
return fetch(url, options).then(function(res){
return res.arrayBuffer()
}).then(function(buffer){
return decodeBuffer(buffer, { url: url })
})
} | import fetch from '../io/fetch.js'
import decodeBuffer from './decode-buffer.js'
export default function loadData3d (url, options) {
return fetch(url, options).then(function(res){
return res.buffer()
}).then(function(buffer){
return decodeBuffer(buffer, { url: url })
})
} | Use buffer() instead of arrayBuffer() | Use buffer() instead of arrayBuffer()
| JavaScript | mit | archilogic-com/3dio-js,archilogic-com/3dio-js | ---
+++
@@ -3,7 +3,7 @@
export default function loadData3d (url, options) {
return fetch(url, options).then(function(res){
- return res.arrayBuffer()
+ return res.buffer()
}).then(function(buffer){
return decodeBuffer(buffer, { url: url })
}) |
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 | ---
+++
@@ -8,6 +8,7 @@
{
"properties": {
"$schema": {"type": "string", "format": "uri"},
+ "config": {"type": "object"},
"description": {"type": "string"},
"width": {"type": "number"},
"height": {"type": "number"}, |
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 | ---
+++
@@ -30,7 +30,7 @@
var scope = $rootScope.$new();
var ctrl = $controller("SettingsCtrl", {$scope: scope});
- expect(Object.keys(scope.settings)).toEqual(["metrics", "temporal"]);
+ expect(Object.keys(scope.settings)).toEqual(["metrics", "temporal", "spatialSelect"]);
});
});
}); |
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 | ---
+++
@@ -41,7 +41,8 @@
if (jqXHR && jqXHR.status === 422) {
// 422 Unprocessable Entity, aka validation error.
- return new DS.InvalidError(Ember.$.parseJSON(jqXHR.responseText));
+ var errors = Ember.$.parseJSON(jqXHR.responseText);
+ return new DS.InvalidError(errors.error.details.messages);
} else {
return error;
} |
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 | ---
+++
@@ -43,7 +43,7 @@
exports.writeObject = function (fields) {
var record = {};
- for (var i in fields) {
+ for (var i = 0; i < fields.length; i++) {
record[fields[i].key] = fields[i].value;
}
return record; |
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 | ---
+++
@@ -1,50 +1,53 @@
jQuery.fn.extend({
- coverVid: function(width, height) {
+coverVid: function(width, height) {
+
+ $(document).ready(sizeVideo);
+ $(window).resize(sizeVideo);
var $this = this;
- $(window).on('resize load', function(){
+ function sizeVideo() {
- // Get parent element height and width
- var parentHeight = $this.parent().height();
- var parentWidth = $this.parent().width();
+ // 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 native video width and height
+ var nativeWidth = width;
+ var nativeHeight = height;
- // Get the scale factors
- var heightScaleFactor = parentHeight / nativeHeight;
- var widthScaleFactor = parentWidth / nativeWidth;
+ // 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 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');
+ // 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'
- });
- }
-
- });
- }
+ // 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'
+ });
+ }
+
+ }
+}
}); |
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 | ---
+++
@@ -13,7 +13,7 @@
$interval(function(){
if(didScroll) {
- scope.yscroll = document.body.scrollTop;
+ scope.yscroll = document.body.scrollTop || document.documentElement.scrollTop;
didScroll = false;
if(scope.yscroll < 50) { |
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 | ---
+++
@@ -26,7 +26,7 @@
}));
});
-gulp.task('coverage', function(cb) {
+gulp.task('coverage', function() {
return gulp.src(paths.src)
.pipe(plumber())
.pipe(istanbul())
@@ -36,8 +36,7 @@
.pipe(istanbul.writeReports({
dir: paths.coverage,
reporters: ['lcov', 'text-summary']
- }))
- .on('end', cb);
+ }));
});
});
|
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 | ---
+++
@@ -8,7 +8,7 @@
}
// Build admin CSS from SASS/CSS
-gulp.task('bootstrap-sass', function() {
+gulp.task('sass', function() {
return gulp.src(paths.BootstrapSCSS)
.pipe(sass({
trace: true,
@@ -20,8 +20,8 @@
// Watch for changes.
gulp.task('watch', function () {
- gulp.watch(paths.BootstrapSCSS, ['bootstrap-sass']);
+ gulp.watch(paths.BootstrapSCSS, ['sass']);
});
// Default gulp task.
-gulp.task('default', ['bootstrap-sass']);
+gulp.task('default', ['sass']); |
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 | ---
+++
@@ -2,6 +2,6 @@
export default Ember.Route.extend({
beforeModel: function() {
- this.transitionTo('dashboard');
+ this.replaceWith('dashboard');
}
}); |
27606e9ed8891f71c4cdab341d77ce0aa4c0bc8e | src/javascripts/ng-admin/Crud/field/maReferenceManyField.js | src/javascripts/ng-admin/Crud/field/maReferenceManyField.js | function maReferenceManyField(ReferenceRefresher) {
'use strict';
return {
scope: {
'field': '&',
'value': '=',
'entry': '=?',
'datastore': '&?'
},
restrict: 'E',
link: function(scope) {
var field = scope.field();
scope.name = field.name();
scope.v = field.validation();
scope.choices = [];
function refresh(search) {
return ReferenceRefresher.refresh(field, scope.value, search)
.then(formattedResults => {
scope.$broadcast('choices:update', { choices: formattedResults });
});
}
// if value is set, we should retrieve references label from server
if (scope.value && scope.value.length) {
ReferenceRefresher.getInitialChoices(field, scope.value)
.then(options => {
scope.$broadcast('choices:update', { choices: options });
if (field.remoteComplete()) {
scope.refresh = refresh;
} else {
refresh();
}
});
} else {
if (field.remoteComplete()) {
scope.refresh = refresh;
} else {
refresh();
}
}
},
template: `<ma-choices-field
field="field()"
datastore="datastore()"
refresh="refresh($search)"
value="value">
</ma-choice-field>`
};
}
maReferenceManyField.$inject = ['ReferenceRefresher'];
module.exports = maReferenceManyField;
| function maReferenceManyField(ReferenceRefresher) {
'use strict';
return {
scope: {
'field': '&',
'value': '=',
'entry': '=?',
'datastore': '&?'
},
restrict: 'E',
link: function(scope) {
var field = scope.field();
scope.name = field.name();
scope.v = field.validation();
scope.choices = [];
function refresh(search) {
return ReferenceRefresher.refresh(field, scope.value, search)
.then(formattedResults => {
scope.$broadcast('choices:update', { choices: formattedResults });
});
}
// if value is set, we should retrieve references label from server
if (scope.value && scope.value.length) {
ReferenceRefresher.getInitialChoices(field, scope.value)
.then(options => {
scope.$broadcast('choices:update', { choices: options });
if (field.remoteComplete()) {
scope.refresh = refresh;
} else {
refresh();
}
});
} else {
if (field.remoteComplete()) {
scope.refresh = refresh;
} else {
refresh();
}
}
},
template: `<ma-choices-field
field="field()"
datastore="datastore()"
refresh="refresh($search)"
value="value">
</ma-choices-field>`
};
}
maReferenceManyField.$inject = ['ReferenceRefresher'];
module.exports = maReferenceManyField;
| Fix typo in template definition | Fix typo in template definition
| JavaScript | mit | Benew/ng-admin,thachp/ng-admin,marmelab/ng-admin,LuckeyHomes/ng-admin,marmelab/ng-admin,heliodor/ng-admin,ahgittin/ng-admin,gxr1028/ng-admin,manekinekko/ng-admin,arturbrasil/ng-admin,jainpiyush111/ng-admin,arturbrasil/ng-admin,vasiakorobkin/ng-admin,jainpiyush111/ng-admin,janusnic/ng-admin,rao1219/ng-admin,eBoutik/ng-admin,manuelnaranjo/ng-admin,gxr1028/ng-admin,SebLours/ng-admin,ahgittin/ng-admin,bericonsulting/ng-admin,ulrobix/ng-admin,jainpiyush111/ng-admin,shekhardesigner/ng-admin,rifer/ng-admin,Benew/ng-admin,eBoutik/ng-admin,spfjr/ng-admin,maninga/ng-admin,ronal2do/ng-admin,manuelnaranjo/ng-admin,heliodor/ng-admin,eBoutik/ng-admin,rifer/ng-admin,marmelab/ng-admin,spfjr/ng-admin,ulrobix/ng-admin,shekhardesigner/ng-admin,ulrobix/ng-admin,rao1219/ng-admin,LuckeyHomes/ng-admin,janusnic/ng-admin,ronal2do/ng-admin,jainpiyush111/ng-admin,LuckeyHomes/ng-admin,vasiakorobkin/ng-admin,bericonsulting/ng-admin,manekinekko/ng-admin,thachp/ng-admin,maninga/ng-admin,SebLours/ng-admin | ---
+++
@@ -47,7 +47,7 @@
datastore="datastore()"
refresh="refresh($search)"
value="value">
- </ma-choice-field>`
+ </ma-choices-field>`
};
}
|
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 | ---
+++
@@ -1,5 +1,5 @@
-let { isArray } = require('../mindash');
let findApp = require('../core/findApp');
+let { isArray, extend } = require('../mindash');
module.exports = function (React) {
let ApplicationContainer = React.createClass({
@@ -14,16 +14,16 @@
if (children) {
if (isArray(children)) {
- return <span>{React.Children.map(children, cloneElementWithApp)}</span>;
+ return <span>{React.Children.map(children, cloneWithApp)}</span>;
} else {
- return cloneElementWithApp(children);
+ return cloneWithApp(children);
}
}
- function cloneElementWithApp(element) {
- return React.addons.cloneWithProps(element, {
+ function cloneWithApp(element) {
+ return React.createElement(element.type, extend({
app: app
- });
+ }, element.props));
}
}
}); |
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 | ---
+++
@@ -9,6 +9,18 @@
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('/'); |
5349a3f6b0ff47b4d0be4d9b291d3c9e9c1a0718 | lib/node_modules/@stdlib/assert/is-browser/lib/global_scope.js | lib/node_modules/@stdlib/assert/is-browser/lib/global_scope.js | /* eslint-disable no-new-func */
'use strict';
/**
* Test if the global scope is bound to the "window" variable present in browser environments. When creating a new function using the `function(){}` constructor, the execution scope aliased by the `this` variable is the global scope.
*
* @private
* @returns {boolean} boolean indicating if global scope is bound to "window" variable
*/
function globalScope() {
var fcn = '';
fcn += 'try {';
fcn += 'return this === window;';
fcn += '} catch ( err ) {';
fcn += 'return false;';
fcn += '}';
return (new Function( fcn ))();
} // end FUNCTION globalScope()
// EXPORTS //
module.exports = globalScope();
| /* eslint-disable no-new-func */
'use strict';
/**
* Test if the global scope is bound to the "window" variable present in browser environments. When creating a new function using the `Function(){}` constructor, the execution scope aliased by the `this` variable is the global scope.
*
* @private
* @returns {boolean} boolean indicating if global scope is bound to "window" variable
*/
function globalScope() {
var fcn = '';
fcn += 'try {';
fcn += 'return this === window;';
fcn += '} catch ( err ) {';
fcn += 'return false;';
fcn += '}';
return (new Function( fcn ))();
} // end FUNCTION globalScope()
// EXPORTS //
module.exports = globalScope();
| Revert regression by capitalizing constructor again | Revert regression by capitalizing constructor again
| JavaScript | apache-2.0 | stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib | ---
+++
@@ -2,7 +2,7 @@
'use strict';
/**
-* Test if the global scope is bound to the "window" variable present in browser environments. When creating a new function using the `function(){}` constructor, the execution scope aliased by the `this` variable is the global scope.
+* Test if the global scope is bound to the "window" variable present in browser environments. When creating a new function using the `Function(){}` constructor, the execution scope aliased by the `this` variable is the global scope.
*
* @private
* @returns {boolean} boolean indicating if global scope is bound to "window" variable |
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 | ---
+++
@@ -4,7 +4,7 @@
angular.module('chaise.errors', [])
// Factory for each error type
- .factory('ErrorService', [function ErrorService() {
+ .factory('ErrorService', ['$log', function ErrorService($log) {
function error409(error) {
// retry logic
@@ -15,7 +15,7 @@
// 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);
+ $log.info(error);
}
return { |
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 | ---
+++
@@ -21,11 +21,8 @@
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);
}; |
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 | ---
+++
@@ -14,9 +14,20 @@
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 () {
- expect(prepare(sample.assets)).toEqual(sample.report);
+ var report = prepare(sample.assets);
+ sortFiles(report);
+ expect(report).toEqual(sample.report);
});
}
|
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 | ---
+++
@@ -29,6 +29,10 @@
getLanguageName: function(){
return this.LANGUAGE_CHOICES[ this.getLanguageCode() ];
+ },
+
+ getLanguage: function(){
+ return { code: this.getLanguageCode(), name: this.getLanguageName() };
}
}; |
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 | ---
+++
@@ -4,7 +4,7 @@
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 => {
+ userRating: this.get('firebaseUtil').findRecord(params.movie_id, 'users/' + this.get('session.currentUser.uid') + '/ratings/' + params.movie_id).catch(error => {
//error
alert(error);
}) |
bad1014c435b94e2c18515ae619152adcc392dcc | project.config.js | project.config.js | const path = require('path')
const NODE_ENV = process.env.NODE_ENV || 'production'
const KF_USER_PATH = process.env.KF_USER_PATH || __dirname
const KF_SERVER_PORT = parseInt(process.env.KF_SERVER_PORT, 10)
const KF_LOG_LEVEL = parseInt(process.env.KF_LOG_LEVEL, 10)
module.exports = {
// environment to use when building the project
env: NODE_ENV,
// full path to the project's root directory
basePath: __dirname,
// location of index.html (relative to website public_html)
publicPath: '/',
// http server host: https://nodejs.org/api/net.html#net_server_listen_port_host_backlog_callback
serverHost: '0.0.0.0',
// http server port: https://nodejs.org/api/net.html#net_server_listen_port_host_backlog_callback
serverPort: isNaN(KF_SERVER_PORT) ? 0 : KF_SERVER_PORT,
// full path to database file
database: path.join(KF_USER_PATH, 'database.sqlite3'),
// log file level (0=off, 1=error, 2=warn, 3=info, 4=verbose, 5=debug)
logLevel: NODE_ENV === 'development' ? 0 : KF_LOG_LEVEL || 2,
}
| const path = require('path')
const NODE_ENV = process.env.NODE_ENV || 'production'
const KF_USER_PATH = process.env.KF_USER_PATH || __dirname
const KF_SERVER_PORT = parseInt(process.env.KF_SERVER_PORT, 10)
const KF_LOG_LEVEL = parseInt(process.env.KF_LOG_LEVEL, 10)
module.exports = {
// environment to use when building the project
env: NODE_ENV,
// full path to the project's root directory
basePath: __dirname,
// location of index.html (relative to website public_html)
publicPath: '/',
// http server host: https://nodejs.org/api/net.html#net_server_listen_port_host_backlog_callback
serverHost: '0.0.0.0',
// http server port: https://nodejs.org/api/net.html#net_server_listen_port_host_backlog_callback
serverPort: NODE_ENV === 'development' ? 3000 : isNaN(KF_SERVER_PORT) ? 0 : KF_SERVER_PORT,
// full path to database file
database: path.join(KF_USER_PATH, 'database.sqlite3'),
// log file level (0=off, 1=error, 2=warn, 3=info, 4=verbose, 5=debug)
logLevel: NODE_ENV === 'development' ? 0 : KF_LOG_LEVEL || 2,
}
| Fix dev port at 3000 again | Fix dev port at 3000 again
| JavaScript | isc | bhj/karaoke-forever,bhj/karaoke-forever | ---
+++
@@ -14,7 +14,7 @@
// http server host: https://nodejs.org/api/net.html#net_server_listen_port_host_backlog_callback
serverHost: '0.0.0.0',
// http server port: https://nodejs.org/api/net.html#net_server_listen_port_host_backlog_callback
- serverPort: isNaN(KF_SERVER_PORT) ? 0 : KF_SERVER_PORT,
+ serverPort: NODE_ENV === 'development' ? 3000 : isNaN(KF_SERVER_PORT) ? 0 : KF_SERVER_PORT,
// full path to database file
database: path.join(KF_USER_PATH, 'database.sqlite3'),
// log file level (0=off, 1=error, 2=warn, 3=info, 4=verbose, 5=debug) |
cfa1f1741701930afa9813dc11674c15bd83849e | src/builder/javascript.js | src/builder/javascript.js | import { transformFile } from 'babel-core'
import { then } from '../util/async'
import { debug } from '../util/stdio'
import { default as es2015 } from 'babel-preset-es2015'
import { default as amd } from 'babel-plugin-transform-es2015-modules-amd'
export default function configure(pkg, opts) {
return (name, file, done) => {
transformFile(file
, { moduleIds: true
, moduleRoot: `${pkg.name}/${opts.lib}`
, sourceRoot: opts.src
, presets: [es2015]
, plugins: [amd]
, babelrc: true
, sourceMaps: !!opts.debug
, sourceFileName: file
, sourceMapTarget: file
}
, (error, result) => {
if (error) {
done(error)
} else {
let output = { files: { [`${name}.js`]: result.code } }
if (opts.debug) {
output.files[`${name}.js.map`] = JSON.stringify(result.map)
}
done(null, output)
}
}
)
}
} | import { transformFile } from 'babel-core'
import { debug } from '../util/stdio'
import { default as es2015 } from 'babel-preset-es2015'
import { default as amd } from 'babel-plugin-transform-es2015-modules-amd'
export default function configure(pkg, opts) {
return (name, file, done) => {
transformFile(file
, { moduleIds: true
, moduleRoot: `${pkg.name}/${opts.lib}`
, sourceRoot: opts.src
, presets: [es2015]
, plugins: [amd]
, babelrc: true
, sourceMaps: !!opts.debug
, sourceFileName: file
, sourceMapTarget: file
}
, (error, result) => {
if (error) {
done(error)
} else {
let output = { files: { [`${name}.js`]: result.code } }
if (opts.debug) {
output.files[`${name}.js.map`] = JSON.stringify(result.map)
}
done(null, output)
}
}
)
}
} | Remove obsolute async util import | Remove obsolute async util import
| JavaScript | mit | zambezi/ez-build,zambezi/ez-build | ---
+++
@@ -1,5 +1,4 @@
import { transformFile } from 'babel-core'
-import { then } from '../util/async'
import { debug } from '../util/stdio'
import { default as es2015 } from 'babel-preset-es2015'
import { default as amd } from 'babel-plugin-transform-es2015-modules-amd' |
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 | ---
+++
@@ -1,6 +1,7 @@
var express = require('express');
var app = express();
-var redis = require('redis').createClient(process.env.REDIS_URL);
+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');
@@ -12,4 +13,20 @@
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); |
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 | ---
+++
@@ -4,8 +4,10 @@
var arch = process.arch === 'x64' ? 'x64' : process.arch === 'arm' ? 'arm' : 'x86';
var platform = process.platform;
- if (!arr.length) {
- return null;
+ console.log(arr);
+
+ if (!arr || !arr.length) {
+ return [];
}
return arr.filter(function (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 | ---
+++
@@ -15,8 +15,10 @@
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))
}
} |
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 | ---
+++
@@ -18,7 +18,10 @@
if (params.server) {
socketIoAdaptor.register(this, params.server, params);
params.server.on('close', function() {
- connection.close();
+ // The connection can be mocked/stubbed. We don't need to close
+ // such a fake connection.
+ if (typeof connection.close == 'function')
+ connection.close();
});
}
|
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 | ---
+++
@@ -43,7 +43,7 @@
global.nodeca.hooks.init.after('initialization', function (next) {
- nodeca.runtime.http_server = connect.createServer();
+ var http_server = connect.createServer();
next();
});
|
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 | ---
+++
@@ -5,7 +5,7 @@
var tasks = Object.keys(config);
tasks.forEach(function (name) {
var taskConfig = config[name],
- task = require('./tasks/' + name)(taskConfig);
+ task = require(taskConfig.def)(taskConfig);
gulp.task(name, task);
}); |
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 | ---
+++
@@ -7,12 +7,21 @@
}
}
+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))
@@ -21,7 +30,10 @@
}
function view() {
- return (<div id="frase-reflexiva"><h1>Neymar é fera</h1></div>)
+ 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) { |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.