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
39d265f663f47793ad4ac91216b848ec4da9a73a
app/scripts/main.js
app/scripts/main.js
'use strict'; var localforage = require('localforage'); var $body = $('body'); ['theme', 'mode'].forEach(function (property) { localforage.getItem(property, function (value) { if (!value) { value = 'default'; localforage.setItem(property, value); } else { // For non-first time users, we wa...
'use strict'; var localforage = require('localforage'); var $body = $('body'); ['theme', 'mode'].forEach(function (property) { localforage.getItem(property, function (value) { if (!value) { value = 'default'; localforage.setItem(property, value); } else { // For non-first time users, we wa...
Set mode and theme custom dimensions instead of sending event
Set mode and theme custom dimensions instead of sending event
JavaScript
mit
zhouyichen/nusmods,Yunheng/nusmods,nusmodifications/nusmods,nusmodifications/nusmods,nathanajah/nusmods,chunqi/nusmods,chunqi/nusmods,chunqi/nusmods,nathanajah/nusmods,mauris/nusmods,chunqi/nusmods,nathanajah/nusmods,nathanajah/nusmods,nusmodifications/nusmods,zhouyichen/nusmods,Yunheng/nusmods,Yunheng/nusmods,nusmodif...
--- +++ @@ -11,10 +11,12 @@ } else { // For non-first time users, we want to see what modes/themes they are using. if (property === 'theme') { - ga('send', 'event', 'Theme', 'Load page with theme', value); + // Set theme custom dimension + ga('set', 'dimension3', value); ...
22ab2c05c83dc0855a878a34e45b08ebfe3c9f77
blueprints/ember-cli-typescript/index.js
blueprints/ember-cli-typescript/index.js
/* eslint-env node */ const path = require('path'); module.exports = { description: 'Initialize files needed for typescript compilation', files() { return [ path.join(this.path, 'files', 'tsconfig.json'), path.join(this.path, 'files', 'app', 'config', 'environment.d.ts'), ]; }, mapFile()...
/* eslint-env node */ const path = require('path'); module.exports = { description: 'Initialize files needed for typescript compilation', files() { return [ path.join(this.path, 'files', 'tsconfig.json'), path.join(this.path, 'files', 'app', 'config', 'environment.d.ts'), ]; }, mapFile()...
Use 'latest' for typing versions.
Use 'latest' for typing versions.
JavaScript
mit
emberwatch/ember-cli-typescript,emberwatch/ember-cli-typescript,emberwatch/ember-cli-typescript,emberwatch/ember-cli-typescript
--- +++ @@ -28,7 +28,7 @@ locals() { return { - inRepoAddons: (this.project.pkg['ember-addon'] || {}).paths || [] + inRepoAddons: (this.project.pkg['ember-addon'] || {}).paths || [], }; }, @@ -38,10 +38,10 @@ afterInstall() { return this.addPackagesToProject([ - { name: 't...
907620ba91313e95cabcc7104b0d52225cb77e28
src/logger/steps/writing.js
src/logger/steps/writing.js
/** * Step 5 * Where you write the generator specific files (routes, controllers, etc) */ const SOURCE_CONFIG = name => `${name}Config.js`; const DESTINATION_CONFIG = `config/log.js`; export default function () { let logger = this['logger-name']; this.template(SOURCE_CONFIG(logger), DESTINATION_CONFIG, {logg...
/** * Step 5 * Where you write the generator specific files (routes, controllers, etc) */ const SOURCE_CONFIG = name => `${name}Config.js`; const DESTINATION_CONFIG = `config/log.js`; export default function () { let logger = this['logger-name'].toLowerCase(); this.template(SOURCE_CONFIG(logger), DESTINATION...
Fix issue with lower-cased form of logger name
fix(logger): Fix issue with lower-cased form of logger name
JavaScript
mit
ghaiklor/generator-sails-rest-api,konstantinzolotarev/generator-trails,italoag/generator-sails-rest-api,jaumard/generator-trails,ghaiklor/generator-sails-rest-api,tnunes/generator-trails,italoag/generator-sails-rest-api
--- +++ @@ -8,7 +8,7 @@ const DESTINATION_CONFIG = `config/log.js`; export default function () { - let logger = this['logger-name']; + let logger = this['logger-name'].toLowerCase(); this.template(SOURCE_CONFIG(logger), DESTINATION_CONFIG, {logger}); };
1c8c0e06f8b6f89c1a06958a58f5b5e55be63b2b
checkCoverage.js
checkCoverage.js
var data = ''; process.stdin.on('data', function(chunk) { data += chunk; }); process.stdin.on('end', function() { var regExp = /[0-9]+([.][0-9]+)?%/g; var match; do { match = regExp.exec(data); if (match) { var percent = parseFloat(match[0].substring(0, match[0].length - 1)); if (percent < 80)...
var MIN_METRIC_COVERAGE = 90.0; var data = ''; process.stdin.on('data', function(chunk) { data += chunk; }); process.stdin.on('end', function() { var regExp = /[0-9]+([.][0-9]+)?%/g; var match; do { match = regExp.exec(data); if (match) { var percent = parseFloat(match[0].substring(0, match[0].leng...
Raise the bar on test coverage from 80% to 90%
Raise the bar on test coverage from 80% to 90%
JavaScript
apache-2.0
foam-framework/foam2,jacksonic/vjlofvhjfgm,jacksonic/vjlofvhjfgm,TanayParikh/foam2,foam-framework/foam2,TanayParikh/foam2,jacksonic/vjlofvhjfgm,foam-framework/foam2,foam-framework/foam2,foam-framework/foam2,TanayParikh/foam2,TanayParikh/foam2
--- +++ @@ -1,3 +1,5 @@ +var MIN_METRIC_COVERAGE = 90.0; + var data = ''; process.stdin.on('data', function(chunk) { data += chunk; }); process.stdin.on('end', function() { @@ -7,7 +9,7 @@ match = regExp.exec(data); if (match) { var percent = parseFloat(match[0].substring(0, match[0].length - 1));...
50d3aeafe00053c798d4049a0eafa07edb7a42c2
server/src/main/webui/app/components/contextItem.js
server/src/main/webui/app/components/contextItem.js
import React from "react" import { Nav, NavItem, Collapse } from "react-bootstrap" var threadNavStyle = { backgroundColor: 'rgb(220, 220, 220)', color: 'black' }; export default React.createClass({ getInitialState: function() { return {} }, render: function() { var { title, ...oth...
import React from "react" import { Button, ButtonGroup, NavItem, Collapse } from "react-bootstrap" export default React.createClass({ getInitialState: function() { return {} }, render: function() { var { title, ...other } = this.props; return ( <NavItem {...other}> ...
Switch to using a button group for the context selector.
Switch to using a button group for the context selector.
JavaScript
mpl-2.0
mcnulty/udidb,mcnulty/udidb,mcnulty/udidb,mcnulty/udidb,mcnulty/udidb
--- +++ @@ -1,10 +1,5 @@ import React from "react" -import { Nav, NavItem, Collapse } from "react-bootstrap" - -var threadNavStyle = { - backgroundColor: 'rgb(220, 220, 220)', - color: 'black' -}; +import { Button, ButtonGroup, NavItem, Collapse } from "react-bootstrap" export default React.createClass({ ...
ed29712fac2ec580c3e0030f96a5c77bf1e1ece2
spec/arethusa.core/directives/lang_specific_spec.js
spec/arethusa.core/directives/lang_specific_spec.js
"use strict"; describe('lang-specific directive', function() { var element; var documentStore; function createDocumentStore() { return { store: { treebank: { json: { treebank: {} } } } }; } beforeEach(module('arethusa.core')); var create...
"use strict"; describe('lang-specific directive', function() { var element; var documentStore; function createLanguageSettingsWith(settings) { return { getFor: function(doc) { return settings; } }; } beforeEach(module('arethusa.core')); var createElement = function() { inj...
Update lang-specific specs to stub languageSettings
Update lang-specific specs to stub languageSettings
JavaScript
mit
alpheios-project/arethusa,PonteIneptique/arethusa,latin-language-toolkit/arethusa,Masoumeh/arethusa,fbaumgardt/arethusa,latin-language-toolkit/arethusa,alpheios-project/arethusa,fbaumgardt/arethusa,fbaumgardt/arethusa,alpheios-project/arethusa,Masoumeh/arethusa,PonteIneptique/arethusa
--- +++ @@ -3,14 +3,10 @@ describe('lang-specific directive', function() { var element; var documentStore; - function createDocumentStore() { + function createLanguageSettingsWith(settings) { return { - store: { - treebank: { - json: { - treebank: {} - } - ...
7691964f1a2afd88154514548145d760778b71c4
packages/soya-next/config/default.js
packages/soya-next/config/default.js
const config = require("config"); let basePath; if (config.basePath) { if (typeof config.basePath === "string") { basePath = { test: config.basePath }; } basePath = config.basePath; } config.assetPrefix = config.assetPrefix || basePath || ""; config.configOrigin = config.configOrigin || "default"; c...
const config = require("config"); let basePath; if (config.basePath) { if (typeof config.basePath === "string") { basePath = config.basePath; } else { basePath = config.basePath && config.basePath.test; } } config.assetPrefix = config.assetPrefix || basePath || ""; config.configOrigin = config.configOrigi...
Fix wrong assetPrefix when using basePath as object
Fix wrong assetPrefix when using basePath as object
JavaScript
mit
traveloka/soya-next
--- +++ @@ -2,11 +2,10 @@ let basePath; if (config.basePath) { if (typeof config.basePath === "string") { - basePath = { - test: config.basePath - }; + basePath = config.basePath; + } else { + basePath = config.basePath && config.basePath.test; } - basePath = config.basePath; } config.ass...
41c4683e6b4c967aaeaa6a676dd252b6182dea52
app/assets/javascripts/controllers/NavController.js
app/assets/javascripts/controllers/NavController.js
function NavController($scope, Auth) { $scope.signedIn = Auth.isAuthenticated; $scope.logout = Auth.logout; Auth.currentUser().then(function (user) { $scope.user = user; }); $scope.$on('devise:new-registration', function (e, user) { $scope.user = user; }); $scope.$on('devise:login', function (e...
function NavController($scope, $state, Auth) { $scope.signedIn = Auth.isAuthenticated; $scope.logout = Auth.logout; Auth.currentUser().then(function (user) { $scope.user = user; }); $scope.$on('devise:new-registration', function (e, user) { $scope.user = user; }); $scope.$on('devise:login', fun...
Load home page on logout
Load home page on logout
JavaScript
mit
davdkm/whats-good,davdkm/whats-good,davdkm/whats-good
--- +++ @@ -1,4 +1,4 @@ -function NavController($scope, Auth) { +function NavController($scope, $state, Auth) { $scope.signedIn = Auth.isAuthenticated; $scope.logout = Auth.logout; @@ -14,12 +14,13 @@ $scope.user = user; }); - $scope.$on()('devise:logout', function (e, user) { + $scope.$on('devise...
2ddea6322f9f3a1522899c19903e49476346bac9
js/components/developer/job-preview-screen/jobTypeCardPreview.js
js/components/developer/job-preview-screen/jobTypeCardPreview.js
import React, { Component } from 'react'; import { Card } from 'native-base'; import CardImageHeader from '../../common/card-image-header/cardImageHeader'; import SimpleCardBody from '../../common/simple-card-body/simpleCardBody'; export default class JobTypeCardPreview extends Component { static propTypes = { ...
import React, { Component } from 'react'; import { Card } from 'native-base'; import CardImageHeader from '../../common/card-image-header/cardImageHeader'; import SimpleCardBody from '../../common/simple-card-body/simpleCardBody'; import { imageProp } from '../../common/propTypes'; export default class JobTypeCardPre...
Make JobTypeCardPreview use imageProp from propTypes
Make JobTypeCardPreview use imageProp from propTypes
JavaScript
mit
justarrived/p2p-client,justarrived/p2p-client,justarrived/p2p-client,justarrived/p2p-client
--- +++ @@ -3,12 +3,13 @@ import CardImageHeader from '../../common/card-image-header/cardImageHeader'; import SimpleCardBody from '../../common/simple-card-body/simpleCardBody'; +import { imageProp } from '../../common/propTypes'; export default class JobTypeCardPreview extends Component { static propTypes...
f283ed1c9df5b8daee0fe32d9670d23100733d33
test/style-examples.test.js
test/style-examples.test.js
var test = require('tape'); var tm = require('../lib/tm'); var style = require('../lib/style'); var source = require('../lib/source'); var mockOauth = require('../lib/mapbox-mock')(require('express')()); var tmppath = tm.join(require('os').tmpdir(), 'Examples ШЖФ -' + (+new Date)); var server; test('setup', function(t...
var test = require('tape'); var tm = require('../lib/tm'); var style = require('../lib/style'); var source = require('../lib/source'); var mockOauth = require('../lib/mapbox-mock')(require('express')()); var tmppath = tm.join(require('os').tmpdir(), 'Examples ШЖФ -' + (+new Date)); var server; test('setup', function(t...
Test that no mapid is set on example styles.
Test that no mapid is set on example styles.
JavaScript
bsd-3-clause
wakermahmud/mapbox-studio,tizzybec/mapbox-studio,wakermahmud/mapbox-studio,tizzybec/mapbox-studio,adozenlines/mapbox-studio,mapbox/mapbox-studio-classic,wakermahmud/mapbox-studio,crowdcover/mapbox-studio,danieljoppi/mapbox-studio,Zhao-Qi/mapbox-studio-classic,AbelSu131/mapbox-studio,Zhao-Qi/mapbox-studio-classic,ali/ma...
--- +++ @@ -30,6 +30,7 @@ test(key, function(t) { style(style.examples[key], function(err, s) { t.ifError(err); + t.ok(!s.data._prefs.mapid, 'no mapid set'); t.end(); }); });
68b3c1b5a93b20ffcbeffb051b3c4fdf6c1eab23
client/desktop/app/components/Profile.js
client/desktop/app/components/Profile.js
import React from 'react' import {Route, RouteHandler, Link, Button} from 'react-router' class Profile extends React.Component { constructor(props){ super(props); this.state = { teacherData: { name: 'Teachy McTeacherton', email: 'teachy@teach.er' } }; } render(){ retu...
import React from 'react' import {Route, RouteHandler, Link, Button} from 'react-router' var auth = require('./../utils/auth'); class Profile extends React.Component { constructor(props){ super(props); this.state = { teacherData: { name: 'Teachy McTeacherton', email: 'teachy@teach.er' ...
Add functionality to logout button
Add functionality to logout button
JavaScript
mit
absurdSquid/thumbroll,Jakeyrob/thumbroll,Jakeyrob/thumbroll,shanemcgraw/thumbroll,Jakeyrob/thumbroll,shanemcgraw/thumbroll,shanemcgraw/thumbroll,absurdSquid/thumbroll
--- +++ @@ -1,5 +1,6 @@ import React from 'react' import {Route, RouteHandler, Link, Button} from 'react-router' +var auth = require('./../utils/auth'); class Profile extends React.Component { constructor(props){ @@ -10,6 +11,13 @@ email: 'teachy@teach.er' } }; + } + + handleLogout() { ...
459775e9dd3d8b0c0119315615d6a4583de43503
test/test_dummy/test_api.js
test/test_dummy/test_api.js
var assert = require("assert"); var Q = require("q"); var api = require("../../lib/dummy/api"); var DummyApi = api.DummyApi; var resources = require("../../lib/dummy/resources"); var DummyResource = resources.DummyResource; var ToyResource = DummyResource.extend(function(self) { DummyResource.call(self); s...
var assert = require("assert"); var vumigo = require("../../lib"); var test_utils = vumigo.test_utils; var DummyApi = vumigo.dummy.api.DummyApi; var DummyResource = vumigo.dummy.resources.DummyResource; var ToyResource = DummyResource.extend(function(self) { DummyResource.call(self); self.name = 'toy'; ...
Remove old parts of DummyApi tests
Remove old parts of DummyApi tests
JavaScript
bsd-3-clause
GeekFreaker/vumi-jssandbox-toolkit,GeekFreaker/vumi-jssandbox-toolkit
--- +++ @@ -1,11 +1,9 @@ var assert = require("assert"); -var Q = require("q"); -var api = require("../../lib/dummy/api"); -var DummyApi = api.DummyApi; - -var resources = require("../../lib/dummy/resources"); -var DummyResource = resources.DummyResource; +var vumigo = require("../../lib"); +var test_utils = vumig...
583efbc9c4751605f63b5ec181e3328900c93b85
app/javascript/src/componentLoader/index.js
app/javascript/src/componentLoader/index.js
import { createLoader } from 'react-hijack'; const componentLoader = createLoader((module) => import('' + module)); export default componentLoader;
import { createLoader } from 'react-hijack'; const componentLoader = createLoader((module) => import('./components/' + module)); export default componentLoader;
Add component path at module level
refactor(componentLoader): Add component path at module level Instead of forcing this knowledge on the add-on, we inserted it here. The benefit is that we are able to point the core to whatever directory we choose, without modifying each addon in turn.
JavaScript
mpl-2.0
mlorb/scinote-web,Ducz0r/scinote-web,Ducz0r/scinote-web,Ducz0r/scinote-web,mlorb/scinote-web,mlorb/scinote-web
--- +++ @@ -1,6 +1,5 @@ import { createLoader } from 'react-hijack'; -const componentLoader = createLoader((module) => import('' + module)); +const componentLoader = createLoader((module) => import('./components/' + module)); export default componentLoader; -
d095feef61adc341ec526414997031849517928e
src/client/webpack.config.js
src/client/webpack.config.js
const path = require('path'); const webpackConfig = { entry: path.join(__dirname, 'index.js'), output: { path: path.join(__dirname, '../server/static'), filename: 'bundle.js' }, devtool: 'source-map', module: { loaders: [ { test: /\.jsx?$/, loader: 'babel', exclude: ...
const path = require('path'); const webpackConfig = { entry: path.join(__dirname, 'index.js'), output: { path: path.join(__dirname, '../server/static'), filename: 'bundle.js' }, devtool: 'source-map', module: { loaders: [ { test: /\.jsx?$/, loader: 'babel', exclude: ...
Bring back regular css loading
Bring back regular css loading
JavaScript
mit
hkal/timeworthy,hkal/timeworthy
--- +++ @@ -22,6 +22,10 @@ loader: 'url-loader' }, { + test: /\.css$/, + loader: 'style-loader!css-loader' + }, + { test: /\.scss$/, loader: 'style-loader!css-loader!sass-loader' }
44f0851bc77e3469da2bd00dbe8fcd5ac2341691
input/composites/line.js
input/composites/line.js
'use strict'; var sepItems = require('es5-ext/array/#/sep-items') , d = require('d/d') , DOMInput = require('./_observable') , resolveTriggers = require('dbjs/_setup/utils/resolve-static-triggers') , Input; module.exports = Input = function (document, ns/*, options*/) { DOMInput....
'use strict'; var sepItems = require('es5-ext/array/#/sep-items') , d = require('d/d') , memoize = require('memoizee/lib/primitive') , DOMInput = require('./_observable') , resolveProps = require('esniff/accessed-properties')('this') , re = new RegExp('^\\s*function\\s*(?:[\\0-\'\\)-...
Update up to changes in dbjs
Update up to changes in dbjs
JavaScript
mit
medikoo/dbjs-dom
--- +++ @@ -1,11 +1,20 @@ 'use strict'; -var sepItems = require('es5-ext/array/#/sep-items') - , d = require('d/d') - , DOMInput = require('./_observable') - , resolveTriggers = require('dbjs/_setup/utils/resolve-static-triggers') +var sepItems = require('es5-ext/array/#/sep-item...
53ad668e0393db9f9aff42c86756a4dc8c5d21f4
src/containers/search_bar.js
src/containers/search_bar.js
import React, { Component } from 'react'; export default class SearchBar extends Component { render() { return ( <form className='input-group'> <input /> <span className='input-group-btn'> <button type='submit' className='btn btn-secondary'>Submit</button> </span> </...
import React, { Component } from 'react'; export default class SearchBar extends Component { constructor(props) { super(props); this.state = {term: ''} this.onInputChange = this.onInputChange.bind(this); } onInputChange(event) { this.setState({term: event.target.value}); } onFormSubmit(eve...
Add Form submit handler to search bar
Add Form submit handler to search bar
JavaScript
mit
StephanYu/modern_redux_weather_forecast,StephanYu/modern_redux_weather_forecast
--- +++ @@ -1,10 +1,31 @@ import React, { Component } from 'react'; export default class SearchBar extends Component { + constructor(props) { + super(props); + + this.state = {term: ''} + this.onInputChange = this.onInputChange.bind(this); + } + + onInputChange(event) { + this.setState({term: event...
650881eeb7df87e5405fc964c17eea59f0d052af
public/javascripts/endless_scroll.js
public/javascripts/endless_scroll.js
var scroll_lock = false; var last_page = false; var current_page = 1; function checkScroll() { if(!last_page && !scroll_lock && nearBottomOfPage()) { scroll_lock = true; current_page++; var qs = $H(location.search.toQueryParams()); qs.each(function(pair) { qs.set(pair.key, pair.value.re...
var scroll_lock = false; var last_page = false; var current_page = 1; function checkScroll() { if(!last_page && !scroll_lock && nearBottomOfPage()) { scroll_lock = true; current_page++; var qs = $H(location.search.toQueryParams()); qs.each(function(pair) { qs.set(pair.key, pair.value.re...
Make lightwindow work after ajax load
Make lightwindow work after ajax load
JavaScript
mit
bloopletech/mangar,bloopletech/pictures,bloopletech/mangar,bloopletech/pictures,bloopletech/mangar,bloopletech/mangar
--- +++ @@ -20,10 +20,8 @@ new Ajax.Request(url, { asynchronous: true, evalScripts: true, method: 'get', onSuccess: function(req) { - setTimeout(function() - { - scroll_lock = false; - }, 500); + scroll_lock = false; + myLightWindow._setupLinks(); } }); } }
bee8d8033cd299ab8dea04168739bc09ee1bc17e
assets/javascript/controllers/chartsController.js
assets/javascript/controllers/chartsController.js
'use strict'; var ChartsController = function($scope, $rootScope) { $scope.drawChart = function() { if ($scope.geoAggData && $scope.geoAggData.length > 0) { console.log('$scope.geoAggData', $scope.geoAggData, 'length', $scope.geoAggData); // instantiate d3plus d3plus.viz() .container('#...
'use strict'; var ChartsController = function($scope, $rootScope) { $scope.drawChart = function() { if ($scope.geoAggData && $scope.geoAggData.length > 0) { var length = $scope.geoAggData.length; var height = 320; var width = 370; var margin = '-40px 10px 0px 0px'; if (length == 1)...
Reduce size of chart with query
Reduce size of chart with query
JavaScript
apache-2.0
gogeolbs/police-uk,gogeolbs/police-uk
--- +++ @@ -3,7 +3,17 @@ var ChartsController = function($scope, $rootScope) { $scope.drawChart = function() { if ($scope.geoAggData && $scope.geoAggData.length > 0) { - console.log('$scope.geoAggData', $scope.geoAggData, 'length', $scope.geoAggData); + var length = $scope.geoAggData.length; + ...
0739d7571aa85c9173486a4746579b660565c17e
assets/js/googlesitekit/widgets/util/constants.js
assets/js/googlesitekit/widgets/util/constants.js
/** * Widgets layout constants. * * Site Kit by Google, Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 ...
/** * Widgets layout constants. * * Site Kit by Google, Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 ...
Add RecoverableModules as special widget state.
Add RecoverableModules as special widget state.
JavaScript
apache-2.0
google/site-kit-wp,google/site-kit-wp,google/site-kit-wp,google/site-kit-wp
--- +++ @@ -21,6 +21,7 @@ */ import { WIDGET_WIDTHS } from '../datastore/constants'; import ReportZero from '../../../components/ReportZero'; +import RecoverableModules from '../../../components/RecoverableModules'; import CompleteModuleActivationCTA from '../../../components/CompleteModuleActivationCTA'; impor...
cc9217416427e9418c698ae61ff5366f148babc7
src/stats/getChunkModules.js
src/stats/getChunkModules.js
/* * @flow */ import type {RawStats, Module} from '../types/Stats'; import type {Child} from './getEntryHeirarchy'; import getModulesByChunk from './getModulesByChunk'; export default function getChunkModules( stats: RawStats, parentChunks: ?Array<Child>, ): ?Array<Module> { if (!parentChunks) { return ...
/* * @flow */ import type {RawStats, Module} from '../types/Stats'; import type {Child} from './getEntryHeirarchy'; import getModulesByChunk from './getModulesByChunk'; export default function getChunkModules( stats: RawStats, parentChunks: ?Array<Child>, ): ?Array<Module> { if (!parentChunks) { return ...
Check for undefined when fetching a chunkWithModules by chunk.id
Check for undefined when fetching a chunkWithModules by chunk.id
JavaScript
apache-2.0
pinterest/bonsai,pinterest/bonsai,pinterest/bonsai
--- +++ @@ -22,7 +22,10 @@ ); return parentChunks.reduce( - (modules, chunk) => modules.concat(modulesByChunk[chunk.id].modules), + (modules, chunk) => { + const chunkWithModules = modulesByChunk[chunk.id] || {modules: []}; + return modules.concat(chunkWithModules.modules); + }, [], ...
71b03e948d5b28dd6f3b6fe5704682087e43d843
scripts/webpack/webpack.dev.babel.js
scripts/webpack/webpack.dev.babel.js
/** * In development we assume that the code generated is going to be consumed by * webpack dev server and we are bundling into a single js file. */ import webpack from 'webpack'; import webpackConfigBase from './webpack.base.babel'; import HtmlWebpackPlugin from 'html-webpack-plugin'; const plugins = [ new Html...
/** * In development we assume that the code generated is going to be consumed by * webpack dev server and we are bundling into a single js file. */ import webpack from 'webpack'; import webpackConfigBase from './webpack.base.babel'; import HtmlWebpackPlugin from 'html-webpack-plugin'; const plugins = [ new Html...
Allow any host connection to local dev
feat(tooling): Allow any host connection to local dev
JavaScript
mit
adamweeks/react-ciscospark-1,bzang/react-ciscospark,bzang/react-ciscospark,ciscospark/react-ciscospark,adamweeks/react-ciscospark-1,Altocloud/alto-react-ciscospark,ciscospark/react-ciscospark,ciscospark/react-ciscospark,bzang/react-ciscospark,adamweeks/react-ciscospark-1,Altocloud/alto-react-ciscospark,Altocloud/alto-r...
--- +++ @@ -26,6 +26,7 @@ plugins, devtool: `source-map`, devServer: { + host: `0.0.0.0`, port: 8000, stats: { colors: true,
7438f9092bff0b6098a27c67f8af33dee8e61d30
public/js/views/sidebar_view.js
public/js/views/sidebar_view.js
chorus.views.Sidebar = chorus.views.Base.extend({ constructorName: "SidebarView", preRender:function () { this._super("preRender", arguments); // We don't want to deal with having multiple declarations of `events`, // so we unbind click in preRender and bind it in postRender. $(...
chorus.views.Sidebar = chorus.views.Base.extend({ constructorName: "SidebarView", preRender:function () { this._super("preRender", arguments); // We don't want to deal with having multiple declarations of `events`, // so we unbind click in preRender and bind it in postRender. $(...
Add data attr for sidebar template higher up in DOM
Add data attr for sidebar template higher up in DOM
JavaScript
apache-2.0
hewtest/chorus,hewtest/chorus,prakash-alpine/chorus,atul-alpine/chorus,jamesblunt/chorus,prakash-alpine/chorus,jamesblunt/chorus,atul-alpine/chorus,mpushpav/chorus,jamesblunt/chorus,atul-alpine/chorus,atul-alpine/chorus,mpushpav/chorus,atul-alpine/chorus,jamesblunt/chorus,mpushpav/chorus,hewtest/chorus,mpushpav/chorus,...
--- +++ @@ -28,6 +28,10 @@ $(this).removeClass("clickable"); } }); + + if (chorus.isDevMode) { + $("#sidebar_wrapper").attr("data-sidebar-template", this.className); + } }, onMouseWheel:function (event, d) {
6810534719c1d413d132c1bef1ec90d94db9f48e
lib/config/type/starts.js
lib/config/type/starts.js
'use babel' export default { eslintrc: { config: { description: '.eslint', icons: [ 'ESLint' ], title: 'ESLint', }, match: [ '.eslint' ], }, git: { config: { description: '.git', icons: [ 'Git', 'GitHub', 'GitHubAlt' ], title: 'Git', }, match: [ '.git' ...
'use babel' export default { eslintrc: { config: { description: '.eslint', icons: [ 'ESLint' ], title: 'ESLint', }, match: [ '.eslint' ], }, git: { config: { description: '.git', icons: [ 'Git', 'GitHub', 'GitHubAlt' ], title: 'Git', }, match: [ '.git' ...
Add icon for .npm files
Add icon for .npm files Refs #1
JavaScript
mit
wyze/atom-flexicons
--- +++ @@ -25,4 +25,12 @@ }, match: [ 'license' ], }, + npm: { + config: { + description: '.npm', + icons: [ 'npm', 'npmAlt' ], + title: 'npm', + }, + match: [ '.npm' ], + }, }
393c8b0632b71ed8f034f2f5bbc3e2d424eaf0e7
src/components/BoardgameListItem/BoardgameListItem.js
src/components/BoardgameListItem/BoardgameListItem.js
import React, { Component, PropTypes } from 'react'; export default class BoardgameListItem extends Component { static propTypes = { name: PropTypes.string.isRequired, year: PropTypes.string } render() { const { name, year } = this.props; return ( <div className="media"> <div class...
import React, { Component, PropTypes } from 'react'; export default class BoardgameListItem extends Component { static propTypes = { name: PropTypes.string.isRequired, year: PropTypes.number, thumbnail: PropTypes.string, score: PropTypes.number } render() { const { name, year, thumbnail, sco...
Update BoardgameListComponent to accept more input
Update BoardgameListComponent to accept more input
JavaScript
mit
fuczak/pipsy
--- +++ @@ -3,19 +3,23 @@ export default class BoardgameListItem extends Component { static propTypes = { name: PropTypes.string.isRequired, - year: PropTypes.string + year: PropTypes.number, + thumbnail: PropTypes.string, + score: PropTypes.number } render() { - const { name, year } =...
bb75be39c8b74229f40d39c9a3c3ddf27dadc34e
shared/login/signup/success/index.js
shared/login/signup/success/index.js
/* @flow */ import React, {Component} from 'react' import {connect} from 'react-redux' import HiddenString from '../../../util/hidden-string' import {sawPaperKey} from '../../../actions/signup' import Render from './index.render' class Success extends Component { render () { return ( <Render titl...
/* @flow */ import React, {Component} from 'react' import {connect} from 'react-redux' import HiddenString from '../../../util/hidden-string' import {sawPaperKey} from '../../../actions/signup' import Render from './index.render' class Success extends Component { render () { return ( <Render titl...
Fix not waiting for paper key approval
Fix not waiting for paper key approval
JavaScript
bsd-3-clause
keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client
--- +++ @@ -28,7 +28,7 @@ export default connect( state => ({paperkey: state.signup.paperkey}), dispatch => ({ - onFinish: dispatch(sawPaperKey()), + onFinish: () => dispatch(sawPaperKey()), onBack: () => {} }) )(Success)
302e046fc864e88380efb390521bc1ed0dbe98d7
lib/loaders/typescript.js
lib/loaders/typescript.js
'use strict'; module.exports = isAngularProject => ({ test: /\.tsx?$/, exclude: /(node_modules)/, loaders: [...isAngularProject ? ['ng-annotate'] : [], 'ts'], query: { logInfoToStdOut: true } });
'use strict'; module.exports = isAngularProject => ({ test: /\.tsx?$/, exclude: /(node_modules)/, loaders: [...isAngularProject ? ['ng-annotate'] : [], 'ts'] });
Revert Lod ts-loader info to stdout
Revert Lod ts-loader info to stdout
JavaScript
mit
kupriyanenko/wix-node-build,kupriyanenko/wix-node-build
--- +++ @@ -3,8 +3,5 @@ module.exports = isAngularProject => ({ test: /\.tsx?$/, exclude: /(node_modules)/, - loaders: [...isAngularProject ? ['ng-annotate'] : [], 'ts'], - query: { - logInfoToStdOut: true - } + loaders: [...isAngularProject ? ['ng-annotate'] : [], 'ts'] });
670b7abfd5edeea6359f4ff3f66adc0b91648e06
rcmet/src/main/ui/config/karma.conf.js
rcmet/src/main/ui/config/karma.conf.js
basePath = '../'; files = [ JASMINE, JASMINE_ADAPTER, 'app/js/jquery-1.9.1.min.js', 'app/js/bootstrap.js', 'app/lib/angular/angular.js', 'app/lib/angular/angular-*.js', 'test/lib/angular/angular-mocks.js', 'app/js/leaflet.js', 'app/js/**/*.js', 'test/unit/**/*.js' ]; autoWatch = true; browsers = ...
basePath = '../'; files = [ JASMINE, JASMINE_ADAPTER, 'app/lib/jquery/jquery-1.10.1.js', 'app/lib/jquery/jquery-ui/jquery-ui-1.10.3.min.js', 'app/lib/bootstrap/bootstrap.js', 'app/lib/angular/angular.js', 'app/lib/angular/angular-*.js', 'test/lib/angular/angular-mocks.js', 'app/lib/jquery/jquery-ui/d...
Resolve CLIMATE-112 - Unit tests don't run after refactoring
Resolve CLIMATE-112 - Unit tests don't run after refactoring - The unit tests now run properly. That being said, they're still outdated and useless. This will be addressed in a future issue. git-svn-id: https://svn.apache.org/repos/asf/incubator/climate/trunk@1493995 13f79535-47bb-0310-9956-ffa450edef68 Former-com...
JavaScript
apache-2.0
MBoustani/climate,kwhitehall/climate,apache/climate,lewismc/climate,pwcberry/climate,agoodm/climate,riverma/climate,huikyole/climate,MBoustani/climate,jarifibrahim/climate,huikyole/climate,jarifibrahim/climate,pwcberry/climate,kwhitehall/climate,apache/climate,kwhitehall/climate,riverma/climate,pwcberry/climate,agoodm/...
--- +++ @@ -3,13 +3,18 @@ files = [ JASMINE, JASMINE_ADAPTER, - 'app/js/jquery-1.9.1.min.js', - 'app/js/bootstrap.js', + 'app/lib/jquery/jquery-1.10.1.js', + 'app/lib/jquery/jquery-ui/jquery-ui-1.10.3.min.js', + 'app/lib/bootstrap/bootstrap.js', 'app/lib/angular/angular.js', 'app/lib/angular/angular...
8d0020a666b26cbc577a19d82d3ae16153602f6f
ui/EditInlineNodeCommand.js
ui/EditInlineNodeCommand.js
import Command from './Command' class EditInlineNodeCommand extends Command { constructor(...args) { super(...args) if (!this.config.nodeType) { throw new Error('Every AnnotationCommand must have a nodeType') } } getCommandState(params) { let sel = params.selection let newState = { ...
import Command from './Command' class EditInlineNodeCommand extends Command { constructor(...args) { super(...args) if (!this.config.nodeType) { throw new Error('Every AnnotationCommand must have a nodeType') } } getCommandState(params) { let sel = params.selection let newState = { ...
Use primitive command state for EditInlineCommand.
Use primitive command state for EditInlineCommand.
JavaScript
mit
michael/substance-1,substance/substance,michael/substance-1,substance/substance
--- +++ @@ -17,7 +17,7 @@ let annos = this._getAnnotationsForSelection(params) if (annos.length === 1 && annos[0].getSelection().equals(sel)) { newState.disabled = false - newState.node = annos[0] + newState.nodeId = annos[0].id } return newState }
27054c88376e37c69ef385346705f409adb5346b
source/assets/javascripts/enhance.js
source/assets/javascripts/enhance.js
import debug from 'debug'; const log = debug('app:enhance'); // ServiceWorker is a progressive technology. Ignore unsupported browsers if ('serviceWorker' in navigator) { navigator.serviceWorker.getRegistrations().then((registrations) => { registrations.forEach(registration => registration.unregister()); }); ...
import debug from 'debug' const log = debug('app:enhance') // ServiceWorker is a progressive technology. Ignore unsupported browsers if ('serviceWorker' in navigator) { navigator.serviceWorker.getRegistrations().then(registrations => { registrations.forEach(registration => registration.unregister()) }) } else...
Change async form input type
Change async form input type
JavaScript
mit
rossta/rossta.github.com,rossta/rossta.github.com,rossta/rossta.github.com
--- +++ @@ -1,26 +1,32 @@ -import debug from 'debug'; +import debug from 'debug' -const log = debug('app:enhance'); +const log = debug('app:enhance') // ServiceWorker is a progressive technology. Ignore unsupported browsers if ('serviceWorker' in navigator) { - navigator.serviceWorker.getRegistrations().then((...
4194e00f48567d7f4928e6d645ed2382791fad73
bin/extension.js
bin/extension.js
const fs = require('fs'); const path = require('path'); const filePath = path.join(__dirname, '../dist/devpanel.tmpl.html'); const distPath = path.join(__dirname, '../dist/devpanel.html'); const startRemoteDev = require('remotedev-server'); const html = fs.readFileSync(filePath, 'utf-8'); module.exports = function(ar...
const fs = require('fs'); const path = require('path'); const filePath = path.join(__dirname, '../dist/devpanel.tmpl.html'); const distPath = path.join(__dirname, '../dist/devpanel.html'); const startRemoteDev = require('remotedev-server'); const html = fs.readFileSync(filePath, 'utf-8'); module.exports = argv => { ...
Apply runserver option will return socketcluster server
Apply runserver option will return socketcluster server
JavaScript
mit
jhen0409/remotedev-extension,jhen0409/remotedev-extension
--- +++ @@ -6,11 +6,7 @@ const html = fs.readFileSync(filePath, 'utf-8'); -module.exports = function(argv) { - if (argv.runserver) { - argv.port = argv.port || 8000; - startRemoteDev(argv); - } +module.exports = argv => { if (argv.hostname || argv.port) { fs.writeFileSync( distPath, @@ -26...
97f57d91c2ee46e31dafe33eb4955261bb68fce3
bin/pure-cjs.js
bin/pure-cjs.js
#!/usr/bin/env node var program = require('commander'), cjs = require(__dirname + '/../lib/'); program .version(require(__dirname + '/../package.json').version) .option('-i, --input <file>', 'input file (required)') .option('-o, --output <file>', 'output file (defaults to <input>.out.js)') .option('-x, --extensi...
#!/usr/bin/env node var program = require('commander'), cjs = require(__dirname + '/../lib/'); program .version(require(__dirname + '/../package.json').version) .option('-i, --input <file>', 'input file (required)') .option('-o, --output <file>', 'output file (defaults to <input>.out.js)') .option('-x, --extensi...
Fix support for specifying module-dir
Fix support for specifying module-dir
JavaScript
mit
RReverser/pure-cjs
--- +++ @@ -11,6 +11,7 @@ .option('-m, --map [file]', 'file to store source map to (optional)') .option('-c, --comments', 'preserve comments in output') .option('-e, --exports <id>', 'top module exports destination (optional)') + .option('-d, --module-dir <dir>', 'top level location to search for external modul...
6db20c4e950083fc9a91027f5d01e87b86d0a607
test/app.js
test/app.js
var path = require('path'), assert = require('yeoman-generator').assert, helpers = require('yeoman-generator').test, os = require('os'); describe('sails-rest-api:app', function () { before(function (done) { helpers.run(path.join(__dirname, '../app')) .inDir(path.join(os.tmpdir(), '....
var path = require('path'), assert = require('yeoman-generator').assert, helpers = require('yeoman-generator').test, os = require('os'); describe('sails-rest-api:app', function () { before(function (done) { helpers.run(path.join(__dirname, '../app')) .inDir(path.join(os.tmpdir(), '....
Add todo in generator tests
Add todo in generator tests
JavaScript
mit
ghaiklor/generator-sails-rest-api,italoag/generator-sails-rest-api,eithewliter5518/generator-sails-rest-api,mhipo1364/generator-sails-rest-api,jaumard/generator-trails,italoag/generator-sails-rest-api,synergycns/generator-sails-rest-api,ghaiklor/generator-sails-rest-api,konstantinzolotarev/generator-trails,tnunes/gener...
--- +++ @@ -11,6 +11,8 @@ .on('end', done); }); + // TODO: write normal tests for generator + it('Should properly create root files', function () { assert.file([ '.editorconfig',
80bb4337e39162c72ad6bbd00493d24dc9381588
script/lib/dependencies-fingerprint.js
script/lib/dependencies-fingerprint.js
const crypto = require('crypto') const fs = require('fs') const path = require('path') const CONFIG = require('../config') const FINGERPRINT_PATH = path.join(CONFIG.repositoryRootPath, 'node_modules', '.dependencies-fingerprint') module.exports = { write: function () { const fingerprint = this.compute() fs....
const crypto = require('crypto') const fs = require('fs') const path = require('path') const CONFIG = require('../config') const FINGERPRINT_PATH = path.join(CONFIG.repositoryRootPath, 'node_modules', '.dependencies-fingerprint') module.exports = { write: function () { const fingerprint = this.compute() fs....
Include arch in dependency cache key
Include arch in dependency cache key
JavaScript
mit
liuderchi/atom,me-benni/atom,sotayamashita/atom,stinsonga/atom,liuderchi/atom,stinsonga/atom,bsmr-x-script/atom,t9md/atom,andrewleverette/atom,atom/atom,bsmr-x-script/atom,Mokolea/atom,brettle/atom,brettle/atom,Mokolea/atom,bsmr-x-script/atom,decaffeinate-examples/atom,PKRoma/atom,AdrianVovk/substance-ide,xream/atom,ke...
--- +++ @@ -22,7 +22,7 @@ // Include the electron minor version in the fingerprint since that changing requires a re-install const electronVersion = CONFIG.appMetadata.electronVersion.replace(/\.\d+$/, '') const apmVersion = CONFIG.apmMetadata.dependencies['atom-package-manager'] - const body = elec...
91ece4ef4118eb2dc9dee0986bc046b73b86636e
server/auth/hawk/hawkAuth.js
server/auth/hawk/hawkAuth.js
/** * Created by Omnius on 6/15/16. */ 'use strict'; const Boom = require('boom'); exports.register = (server, options, next) => { server.auth.strategy('hawk-login-auth-strategy', 'hawk', { getCredentialsFunc: (sessionId, callback) => { const redis = server.app.redis; const met...
/** * Created by Omnius on 6/15/16. */ 'use strict'; const Boom = require('boom'); exports.register = (server, options, next) => { server.auth.strategy('hawk-login-auth-strategy', 'hawk', { getCredentialsFunc: (sessionId, callback) => { const redis = server.app.redis; const met...
Change to empty port in hapi-auth-hawk
Change to empty port in hapi-auth-hawk
JavaScript
mit
identityclash/hapi-login-test,identityclash/hapi-login-test
--- +++ @@ -38,7 +38,7 @@ }); }, hawk: { - port: 443 + port: '' } });
8667d03442552cc21eff51529d8d9860f3428ee8
server/import/server_sync.js
server/import/server_sync.js
var Event = require('../models/Event.js'); exports.sync = function(events) { events.map(function(evt) { var query = { 'title': evt.title, 'startAt': evt.startAt }; Event.findOne( query, function(err, doc) { if(!doc){ ...
var Event = require('../models/Event.js'); var Venue = require('../models/Venue.js'); exports.sync = function(events) { events.map(function(evt) { var eventquery = { 'title': evt.title, 'startAt': evt.startAt }; Event.findOne( eventquery, func...
Add support for getting venues from scripts
Add support for getting venues from scripts
JavaScript
apache-2.0
Studentmediene/Barteguiden,Studentmediene/Barteguiden
--- +++ @@ -1,13 +1,14 @@ var Event = require('../models/Event.js'); +var Venue = require('../models/Venue.js'); exports.sync = function(events) { events.map(function(evt) { - var query = { + var eventquery = { 'title': evt.title, 'startAt': evt.startAt }; ...
9cd1761826af0028568223343a58c34663c6c104
main.js
main.js
const electron = require('electron') const app = electron.app // Module to control application life. const BrowserWindow = electron.BrowserWindow // Module to create native browser window. let mainWindow function createWindow () { // Create the browser window. mainWindow = new BrowserWindow({ width: 800, ...
const electron = require('electron') const app = electron.app // Module to control application life. const BrowserWindow = electron.BrowserWindow // Module to create native browser window. let mainWindow function createWindow () { // Create the browser window. mainWindow = new BrowserWindow({ width: 800, ...
Stop opening devtools on launch
Stop opening devtools on launch
JavaScript
agpl-3.0
briandk/transcriptase,briandk/transcriptase
--- +++ @@ -13,7 +13,7 @@ }) mainWindow.loadURL(`file://${__dirname}/index.html`) - mainWindow.webContents.openDevTools() // Open the DevTools. + // mainWindow.webContents.openDevTools() // Open the DevTools. mainWindow.on('closed', function () { mainWindow = null
b560a5710ca240a499c1bcfaf643dfab458fe59c
server/routes/subscribers.js
server/routes/subscribers.js
var Joi = require("joi"); var DB = require("../db"); exports.list = { handler: function(request, reply) { DB.smembers("subscribers", function(err, members) { reply({ subscribers: members }); }) } }; exports.add = { validate: { payload: { email: Joi.string().email() } ...
var Joi = require("joi"); var DB = require("../db"); var Hapi = require("hapi"); var Util = require("util"); exports.list = { handler: function(request, reply) { DB.smembers("subscribers", function(err, members) { reply({ subscribers: members }); }) } }; exports.add = { validate: { ...
Handle errors trying to add email for subscriber action.
Handle errors trying to add email for subscriber action. - Add callback for sadd to check for error. - Return a 500 error to client. - Log to stderr when there is an issue.
JavaScript
mit
borwahs/natalieandrob.com,borwahs/natalieandrob.com
--- +++ @@ -1,5 +1,7 @@ var Joi = require("joi"); var DB = require("../db"); +var Hapi = require("hapi"); +var Util = require("util"); exports.list = { handler: function(request, reply) { @@ -20,7 +22,15 @@ handler: function (request, reply) { var email = request.payload.email; console.log("Subsc...
f4fd4985c77b5f24fc0e3db757376fd67a38c579
main.js
main.js
if(!(/Android|iPhone|iPad|iPod|BlackBerry|Windows Phone/i).test(navigator.userAgent || navigator.vendor || window.opera)){ skrollr.init({ forceHeight: false, smoothScrolling: false }); } $(function(){ var windowH = $(window).height(); $(window).on('resize', function(){ windowH = $(windo...
if(!(/Android|iPhone|iPad|iPod|BlackBerry|Windows Phone/i).test(navigator.userAgent || navigator.vendor || window.opera)){ skrollr.init({ forceHeight: false, smoothScrolling: false }); } $(function(){ var windowH = $(window).height() - 60; $(window).on('resize', function(){ windowH = $(...
Fix scroll transition for navbar
Fix scroll transition for navbar
JavaScript
agpl-3.0
BoilerCamp/site-F15,BoilerCamp/site-F15
--- +++ @@ -6,9 +6,9 @@ } $(function(){ - var windowH = $(window).height(); + var windowH = $(window).height() - 60; $(window).on('resize', function(){ - windowH = $(window).height(); + windowH = $(window).height() - 60; }); $(window).scroll(function() {
d30cb455eb066c5711b903b682f00dd752bedaf7
main.js
main.js
const accounts = {}; $('#go').click(function () { const networkId = $('#networkId').val(); const accessToken = $('#accessToken').val(); const filter = '!0S2A5ipm(pczxWJLGNzYzyy4l'; const key = 'c8aSGAR0rp5RUK)dVriyCA(('; $.getJSON(`http://api.stackexchange.com/2.2/users/${networkId}/associated`, function (j...
function getPosts(user, site, page, cb) { const accessToken = $('#accessToken').val(); const filter = '!0S2A5ipm(pczxWJLGNzYzyy4l'; const key = 'c8aSGAR0rp5RUK)dVriyCA(('; $.getJSON(`https://api.stackexchange.com/2.2/users/${user}/posts?filter=${filter}&key=${key}&access_token=${accessToken}&site=${site}&page=...
Use more modern JS; Add pagination to SE API calls
Use more modern JS; Add pagination to SE API calls
JavaScript
mit
shu8/SE-PostUrlDump,shu8/SE-PostUrlDump
--- +++ @@ -1,23 +1,30 @@ -const accounts = {}; - -$('#go').click(function () { - const networkId = $('#networkId').val(); +function getPosts(user, site, page, cb) { const accessToken = $('#accessToken').val(); const filter = '!0S2A5ipm(pczxWJLGNzYzyy4l'; const key = 'c8aSGAR0rp5RUK)dVriyCA(('; - $.getJS...
359b2349389e48bac826c37594ef13ae9eba0c64
app.js
app.js
var express = require('express'); var mysql = require('mysql'); var app = express(); app.use(express.static('public')); var connection = mysql.createConnection({ host : process.env.MYSQL_HOST, user : process.env.MYSQL_USER, password : process.env.MYSQL_PASS, database : process.env.MYSQL_DB }); connec...
var express = require('express'); var mysql = require('mysql'); var app = express(); app.use(express.static('public')); var connection = mysql.createConnection({ host : process.env.MYSQL_HOST ||, user : process.env.MYSQL_USER ||, password : process.env.MYSQL_PASS ||, database : process.env.MYSQL_DB ||...
Correct code to match db scheme
Correct code to match db scheme
JavaScript
mit
ProjectMOA/noTeRayesCo,ProjectMOA/noTeRayesCo
--- +++ @@ -5,10 +5,10 @@ app.use(express.static('public')); var connection = mysql.createConnection({ - host : process.env.MYSQL_HOST, - user : process.env.MYSQL_USER, - password : process.env.MYSQL_PASS, - database : process.env.MYSQL_DB + host : process.env.MYSQL_HOST ||, + user : process...
074e9ebddbd392ee68c117c1d69fdecb7730dddb
src/DataTable/utils/convertSchema.js
src/DataTable/utils/convertSchema.js
import { startCase } from "lodash"; export default schema => { let schemaToUse = schema; if (!schemaToUse.fields && Array.isArray(schema)) { schemaToUse = { fields: schema }; } schemaToUse = { ...schemaToUse }; schemaToUse.fields = schemaToUse.fields.map((field, i) => { let fieldToUse...
import { startCase } from "lodash"; export default schema => { let schemaToUse = schema; if (!schemaToUse.fields && Array.isArray(schema)) { schemaToUse = { fields: schema }; } schemaToUse = { ...schemaToUse }; schemaToUse.fields = schemaToUse.fields.map((field, i) => { let fieldToUse...
Disable filtering and sorting if not providing path
Disable filtering and sorting if not providing path
JavaScript
mit
TeselaGen/teselagen-react-components,TeselaGen/teselagen-react-components
--- +++ @@ -34,6 +34,8 @@ if (!fieldToUse.path) { fieldToUse = { ...fieldToUse, + filterDisabled: true, + sortDisabled: true, path: "fake-path" + i }; }
eb6c818767f671f02732267d7493c36749d5edf4
config/models.js
config/models.js
/** * Default model configuration * (sails.config.models) * * Unless you override them, the following properties will be included * in each of your models. * * For more info on Sails models, see: * http://sailsjs.org/#!/documentation/concepts/ORM */ module.exports.models = { /******************************...
/** * Default model configuration * (sails.config.models) * * Unless you override them, the following properties will be included * in each of your models. * * For more info on Sails models, see: * http://sailsjs.org/#!/documentation/concepts/ORM */ module.exports.models = { /******************************...
Create missing tables when lifting sails
Create missing tables when lifting sails
JavaScript
mit
joschaefer/online-shop-api
--- +++ @@ -29,7 +29,7 @@ * * ***************************************************************************/ - migrate: 'safe', + migrate: 'alter', schema: true, autoPK: true,
eba8df01c6ed74e1be4a1e03bf1160b1c8a2bcd3
apps/storage/main.js
apps/storage/main.js
var handleRequest = loadModule('helma.simpleweb').handleRequest; var render = loadModule('helma.skin').render; var webapp = loadModule('helma.webapp'); // db model var model = loadModule('model'); // the main action is invoked for http://localhost:8080/ // this also shows simple skin rendering function main_action() ...
var webapp = loadModule('helma.webapp'); var handleRequest = loadModule('helma.webapp.handler').handleRequest; // db model var model = loadModule('model'); // the main action is invoked for http://localhost:8080/ // this also shows simple skin rendering function main_action(req, res) { if (req.data.save) { ...
Update to new webapp and skin rendering (I like it better than before!)
Update to new webapp and skin rendering (I like it better than before!) git-svn-id: fac99be8204c57f0935f741ea919b5bf0077cdf6@9248 688a9155-6ab5-4160-a077-9df41f55a9e9
JavaScript
apache-2.0
ringo/ringojs,ringo/ringojs,ringo/ringojs,oberhamsi/ringojs,Transcordia/ringojs,oberhamsi/ringojs,Transcordia/ringojs,Transcordia/ringojs,ashwinrayaprolu1984/ringojs,oberhamsi/ringojs,ashwinrayaprolu1984/ringojs,ringo/ringojs,ashwinrayaprolu1984/ringojs,ashwinrayaprolu1984/ringojs,Transcordia/ringojs
--- +++ @@ -1,32 +1,33 @@ -var handleRequest = loadModule('helma.simpleweb').handleRequest; -var render = loadModule('helma.skin').render; var webapp = loadModule('helma.webapp'); +var handleRequest = loadModule('helma.webapp.handler').handleRequest; // db model var model = loadModule('model'); // the main ac...
350cf06afe2d841fa309bf60155cb831235ae757
landing/utils/auth/login/login.controller.js
landing/utils/auth/login/login.controller.js
(() => { 'use strict'; angular .module('app') .controller('LoginController', LoginController); LoginController.$inject = ['growl', '$window', '$http', '$routeSegment', 'TokenService', 'Endpoints']; function LoginController(growl, $window, $http, $routeSegment, TokenService, Endpoints)...
(() => { 'use strict'; angular .module('app') .controller('LoginController', LoginController); LoginController.$inject = ['growl', '$window', '$http', '$routeSegment', 'TokenService', 'Endpoints', '$localStorage']; function LoginController(growl, $window, $http, $routeSegment, TokenSe...
Add simple test for token on landig with redirect on app
Add simple test for token on landig with redirect on app
JavaScript
mit
royalrangers-ck/rr-web-app,royalrangers-ck/rr-web-app,royalrangers-ck/rr-web-app,royalrangers-ck/rr-web-app
--- +++ @@ -6,14 +6,19 @@ .module('app') .controller('LoginController', LoginController); - LoginController.$inject = ['growl', '$window', '$http', '$routeSegment', 'TokenService', 'Endpoints']; - function LoginController(growl, $window, $http, $routeSegment, TokenService, Endpoints) { + ...
acc5692d93fb34fcb134165e966f0e18ab9d436b
lumify-web-war/src/main/webapp/js/service/config.js
lumify-web-war/src/main/webapp/js/service/config.js
define([ 'service/serviceBase' ], function(ServiceBase) { 'use strict'; // Override in configuration.properties with `web.ui` prefix var DEFAULTS = { 'vertex.loadRelatedMaxBeforePrompt': 50, 'vertex.loadRelatedMaxForceSearch': 250, 'ontology.iri.artifactHasEntity': 'http://lumif...
define([ 'service/serviceBase' ], function(ServiceBase) { 'use strict'; // Override in configuration.properties with `web.ui` prefix var DEFAULTS = { 'vertex.loadRelatedMaxBeforePrompt': 50, 'vertex.loadRelatedMaxForceSearch': 250, 'ontology.iri.artifactHasEntity': 'http://lumif...
Use service base get method
Use service base get method
JavaScript
apache-2.0
lumifyio/lumify,RavenB/lumify,bings/lumify,RavenB/lumify,dvdnglnd/lumify,dvdnglnd/lumify,Steimel/lumify,Steimel/lumify,lumifyio/lumify,Steimel/lumify,RavenB/lumify,RavenB/lumify,dvdnglnd/lumify,TeamUDS/lumify,bings/lumify,j-bernardo/lumify,bings/lumify,Steimel/lumify,j-bernardo/lumify,RavenB/lumify,lumifyio/lumify,bing...
--- +++ @@ -29,9 +29,15 @@ ConfigService.prototype = Object.create(ServiceBase.prototype); ConfigService.prototype.getProperties = function(refresh) { - if (!refresh && this.cachedProperties) return this.cachedProperties; + if (!refresh && this.cachedProperties) { + return this.ca...
99bdf00e945acc12c110fe2cd1fa941907153b54
website/app/index/navbar.js
website/app/index/navbar.js
Application.Directives.directive("navbar", navbarDirective); function navbarDirective() { return { scope: true, restrict: "AE", replace: true, templateUrl: "index/navbar.html", controller: "navbarDirectiveController" }; } Application.Controllers.controller("navbarDirect...
Application.Directives.directive("navbar", navbarDirective); function navbarDirective() { return { scope: true, restrict: "AE", replace: true, templateUrl: "index/navbar.html", controller: "navbarDirectiveController" }; } Application.Controllers.controller("navbarDirect...
Fix New menu to work with state.
Fix New menu to work with state.
JavaScript
mit
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
--- +++ @@ -11,10 +11,10 @@ } Application.Controllers.controller("navbarDirectiveController", - ["$scope", "ui", "current", "$state", + ["$scope", "current", "$state", "projectState", navbarDirectiveController...
759c0af7d313740b52da4e0fedf200b542e5b905
bin/iterm-colors.js
bin/iterm-colors.js
#!/usr/bin/env node // Requires var _ = require('underscore'); var fs = require('fs'); // Comannder var prog = require('commander'); // etcd-dump's package.json file var pkg = require('../package.json'); // Dumper class var parser = require('../'); // General options prog .version(pkg.version); // Parse and fall...
#!/usr/bin/env node // Requires var _ = require('underscore'); var fs = require('fs'); var path = require('path'); // Comannder var prog = require('commander'); // etcd-dump's package.json file var pkg = require('../package.json'); // Dumper class var parser = require('../'); // General options prog .version(pkg....
Add bundle and compile commands to binary
Add bundle and compile commands to binary
JavaScript
apache-2.0
AaronO/iterm-colors,AaronO/iterm-colors
--- +++ @@ -4,6 +4,7 @@ var _ = require('underscore'); var fs = require('fs'); +var path = require('path'); // Comannder var prog = require('commander'); @@ -18,17 +19,41 @@ prog .version(pkg.version); -// Parse and fallback to help if no args -if(_.isEmpty(prog.parse(process.argv).args)) { return prog.he...
6fe802feb9386289c62f13f1aef64bd5d5d866ad
test.js
test.js
var isArray = require('./'); var test = require('tape'); test('is array', function(t){ t.ok(isArray([])); t.notOk(isArray({})); t.notOk(isArray(null)); t.notOk(isArray(false)); t.notOk(isArray("")); var obj = {}; obj[0] = true; t.notOk(isArray(obj)); var arr = []; arr.foo = 'bar'; t.ok(isArray(...
var isArray = require('./'); var test = require('tape'); var nativeIsArray = Array.isArray; test('is array (only polyfill)', function(t){ delete Array.isArray; t.ok(isArray([])); t.notOk(isArray({})); t.notOk(isArray(null)); t.notOk(isArray(false)); t.notOk(isArray("")); var obj = {}; obj[0] = true; ...
Test the package with explicitly removed Array.isArray
Test the package with explicitly removed Array.isArray try at making #3 mergeable
JavaScript
mit
juliangruber/isarray
--- +++ @@ -1,7 +1,10 @@ var isArray = require('./'); var test = require('tape'); -test('is array', function(t){ +var nativeIsArray = Array.isArray; + +test('is array (only polyfill)', function(t){ + delete Array.isArray; t.ok(isArray([])); t.notOk(isArray({})); t.notOk(isArray(null)); @@ -19,3 +22,21 @...
b630c298f89b51bd8319f9452548ab811232cdd3
src/js/vendor/jquery.onfontresize.js
src/js/vendor/jquery.onfontresize.js
'use strict'; (function($, window, document, undefined) { $.onFontResize = { delay: 250, timer: null, on: true, box: null, boxHeight: 0, init: function() { this.box = document.createElement('DIV'); $(this.box).html('Détection du zoom').css({ ...
'use strict'; (function($, window, document, undefined) { $.onFontResize = { delay: 250, timer: null, on: true, box: null, boxHeight: 0, init: function() { this.box = document.createElement('DIV'); $(this.box).html('Détection du zoom').css({ ...
Add aria-hidden to zoom detection div
Add aria-hidden to zoom detection div
JavaScript
agpl-3.0
libeo-vtt/vtt,libeo-vtt/vtt
--- +++ @@ -15,7 +15,7 @@ left: '-9999px', display: 'inline', lineHeight: 1 - }).appendTo('body'); + }).attr('aria-hidden', 'true').appendTo('body'); this.boxHeight = $(this.box).height(); },
9bd3040d14d5be10b9d32d017fb93b6ee31b5af1
build/connect.js
build/connect.js
const rewrite = require('connect-modrewrite'); const serveIndex = require('serve-index'); const serveStatic = require('serve-static'); module.exports = function (grunt) { return { livereload: { options: { hostname : '127.0.0.1', port : 443, ...
const rewrite = require('connect-modrewrite'); const serveIndex = require('serve-index'); const serveStatic = require('serve-static'); module.exports = function (grunt) { return { livereload: { options: { hostname : '127.0.0.1', port : 443, ...
Handle 404 on local server
Handle 404 on local server
JavaScript
apache-2.0
4p00rv/binary-static,negar-binary/binary-static,binary-com/binary-static,binary-static-deployed/binary-static,ashkanx/binary-static,ashkanx/binary-static,raunakkathuria/binary-static,negar-binary/binary-static,binary-com/binary-static,4p00rv/binary-static,raunakkathuria/binary-static,kellybinary/binary-static,binary-co...
--- +++ @@ -32,6 +32,16 @@ const directory = options.directory || options.base[options.base.length - 1]; middlewares.push(serveIndex(directory)); + middlewares.push((req, res) => { + const path_404 = `${options.base[0]}/404.html`; +...
17d1f4b4fed07f5a0025041d68e9bfaf661aa495
locales/en_US/company.js
locales/en_US/company.js
module.exports = { whoshiring: { title: "Who's Hiring?", subtitle: "These companies are looking for JavaScript and Node.js developers", addCompany: "To add your company to this list, email <a href='mailto:whoshiring@npmjs.org'>whoshiring@npmjs.org</a> for pricing options." } }
module.exports = { whoshiring: { title: "Who's Hiring?", subtitle: "These companies are looking for JavaScript and Node.js developers", addCompany: "To add your company to this list, email <a href='mailto:whoshiring@npmjs.com'>whoshiring@npmjs.com</a> for pricing options." } }
Update whoshiring email address to .com
Update whoshiring email address to .com
JavaScript
isc
kemitchell/newww,DanielBarnes/newww,marcellodesales/newww,AgtLucas/newww,tiandavis/newww,Constructor-io/newww,jonathanmarvens/npm-newww,AgtLucas/newww,rutaihwa/newww,rutaihwa/newww,Constructor-io/newww,imshivs/newww,nexdrew/newww,nexdrew/newww,whitneyit/newww,ChALkeR/newww,psalaets/newww,jonathanmarvens/npm-newww,zeusd...
--- +++ @@ -2,6 +2,6 @@ whoshiring: { title: "Who's Hiring?", subtitle: "These companies are looking for JavaScript and Node.js developers", - addCompany: "To add your company to this list, email <a href='mailto:whoshiring@npmjs.org'>whoshiring@npmjs.org</a> for pricing options." + addCompany: "To ...
1b076fbce5ef391fcbbe813c7cde0906cc3278fd
src/Input/LevelController.js
src/Input/LevelController.js
function LevelController(onComplete, level) { this.onComplete = onComplete; this.level = level; }; LevelController.prototype.left = function() { if( this.index === 0 ) { return; } this.level.index -= 1; }; LevelController.prototype.right = function() { if(this.index === this.level.puzzle.board.columns...
function LevelController(onComplete, level) { this.onComplete = onComplete; this.level = level; }; LevelController.prototype.left = function() { if(this.level.index === 0) { return; } this.level.index -= 1; }; LevelController.prototype.right = function() { if(this.level.index === this.level.puzzle.boa...
Fix number going outside of level issue
Fix number going outside of level issue
JavaScript
mit
mnito/factors-game,mnito/factors-game
--- +++ @@ -4,14 +4,14 @@ }; LevelController.prototype.left = function() { - if( this.index === 0 ) { + if(this.level.index === 0) { return; } this.level.index -= 1; }; LevelController.prototype.right = function() { - if(this.index === this.level.puzzle.board.columns - 1) { + if(this.level.inde...
af9ed6b7826b218d353b216517294f98549d5e0f
lib/themes/dosomething/paraneue_dosomething/tasks/options/copy.js
lib/themes/dosomething/paraneue_dosomething/tasks/options/copy.js
module.exports = { assets: { files: [ {expand: true, src: ["images/**"], dest: "dist/"}, {expand: true, src: ["bower_components/**"], dest: "dist/"}, ] } }
module.exports = { assets: { files: [ {expand: true, src: ["images/**"], dest: "dist/"}, {expand: true, src: ["bower_components/**"], dest: "dist/"}, ] }, source: { files: [ {expand: true, src: ["scss/**"], dest: "dist/"}, {expand: true, src: ["js/**"], dest: "dist/"}, ] ...
Copy assets into dist build so they can be used for source maps.
Copy assets into dist build so they can be used for source maps.
JavaScript
mit
chloealee/dosomething,jonuy/dosomething,DoSomething/dosomething,chloealee/dosomething,sergii-tkachenko/phoenix,chloealee/dosomething,angaither/dosomething,deadlybutter/phoenix,DoSomething/phoenix,jonuy/dosomething,DoSomething/phoenix,chloealee/dosomething,jonuy/dosomething,angaither/dosomething,sergii-tkachenko/phoenix...
--- +++ @@ -4,5 +4,11 @@ {expand: true, src: ["images/**"], dest: "dist/"}, {expand: true, src: ["bower_components/**"], dest: "dist/"}, ] + }, + source: { + files: [ + {expand: true, src: ["scss/**"], dest: "dist/"}, + {expand: true, src: ["js/**"], dest: "dist/"}, + ] } }
9b7b848544f84c19169098e503ae0f4779887d7d
src/reducers/initialState.js
src/reducers/initialState.js
export default { oauths: { oauthReturnedTempCode: "", oauthReturnedToken: "", authenticatedUser: {} }, commitStatuses: [], repos: null };
export default { oauths: { oauthReturnedTempCode: "", oauthReturnedToken: "", authenticatedUser: {} }, commitStatuses: null, repos: null };
Modify initial state for commitStatuses to be 'null'
Modify initial state for commitStatuses to be 'null'
JavaScript
mit
compumike08/GitHub_Status_API_GUI,compumike08/GitHub_Status_API_GUI
--- +++ @@ -4,6 +4,6 @@ oauthReturnedToken: "", authenticatedUser: {} }, - commitStatuses: [], + commitStatuses: null, repos: null };
2f07ce896e1d3d8d20ddd627c10b3e42ba0bac1a
src/actions/startup/win32.js
src/actions/startup/win32.js
let fs = require('fs') let mkdirp = require('mkdirp') let untildify = require('untildify') let spawn = require('./spawn') let dir = untildify('~\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup') export function getFile (name) { return `${dir}\\${name}.vbs` } export function create (name, cmd, ...
let fs = require('fs') let cp = require('child_process') let mkdirp = require('mkdirp') let untildify = require('untildify') let dir = untildify('~\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup') export function getFile (name) { return `${dir}\\${name}.vbs` } export function create (name, cm...
Fix hotel start on Windows
Fix hotel start on Windows
JavaScript
mit
typicode/hotel,jhliberty/hotel,typicode/hotel,jhliberty/hotel,typicode/hotel
--- +++ @@ -1,7 +1,7 @@ let fs = require('fs') +let cp = require('child_process') let mkdirp = require('mkdirp') let untildify = require('untildify') -let spawn = require('./spawn') let dir = untildify('~\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup') @@ -23,7 +23,11 @@ mkdirp.sync(...
cca155e68433c146291343511d32e2002d7ef72b
js/app.js
js/app.js
(function (root, $) { var $button = $('button.nav'), $nav = $('.side ul'); $('.js').show(); $('.no-js').hide(); $button.on('click', function () { $nav.slideToggle(); }); }(window, jQuery));
(function (root, $) { var $button = $('button.nav'), $nav = $('.side ul'); $('.js-mobile').show(); $('.no-js-mobile').hide(); $button.on('click', function () { $nav.slideToggle(); }); }(window, jQuery));
Switch JS to use mobile class for hiding
Switch JS to use mobile class for hiding
JavaScript
mit
jdavis/jdavis.github.com,jdavis/jdavis.github.com,jdavis/jdavis.github.com
--- +++ @@ -2,8 +2,8 @@ var $button = $('button.nav'), $nav = $('.side ul'); - $('.js').show(); - $('.no-js').hide(); + $('.js-mobile').show(); + $('.no-js-mobile').hide(); $button.on('click', function () { $nav.slideToggle();
ec978cd0dd5da0019ce646a0654f072fbfe95d24
wct.conf.js
wct.conf.js
var args = require('yargs').argv; module.exports = { extraScripts: args.dom === 'shadow' ? ['test/enable-shadow-dom.js'] : [], registerHooks: function(context) { // The Good var crossPlatforms = [ 'Windows 10/chrome@55', 'Windows 10/firefox@50' ]; // The Bad var otherPlatforms = [ ...
var args = require('yargs').argv; module.exports = { extraScripts: args.dom === 'shadow' ? ['test/enable-shadow-dom.js'] : [], registerHooks: function(context) { // The Good var crossPlatforms = [ 'Windows 10/chrome@55', 'Windows 10/firefox@50' ]; // The Bad var otherPlatforms = [ ...
Remove Linux/android@5.1 from automated tests
Remove Linux/android@5.1 from automated tests
JavaScript
apache-2.0
vaadin/vaadin-combo-box,vaadin/vaadin-combo-box
--- +++ @@ -13,7 +13,6 @@ var otherPlatforms = [ 'OS X 10.11/iphone@9.3', 'OS X 10.11/ipad@9.3', - 'Linux/android@5.1', 'Windows 10/microsoftedge@13', 'Windows 10/internet explorer@11', 'OS X 10.11/safari@10.0'
c1fa71a64f4a14bb918c3e21aee32877f917f138
namuhub/static/namuhub.js
namuhub/static/namuhub.js
var SearchBox = React.createClass({ getInitialState: function() { return { user: this.props.user }; }, render: function() { return ( <form className="ui"> <div className="ui action center aligned input"> <input type="text" ...
var ContribBox = React.createClass({ render: function() { return <div />; } }); var SearchBox = React.createClass({ getInitialState: function () { console.log(this.props); return { user: this.props.user || '' }; }, submit: function(e) { var uri =...
Add form submit event that replaces current page's uri
Add form submit event that replaces current page's uri
JavaScript
apache-2.0
ssut/namuhub,ssut/namuhub,ssut/namuhub
--- +++ @@ -1,15 +1,36 @@ +var ContribBox = React.createClass({ + render: function() { + return <div />; + } +}); + var SearchBox = React.createClass({ - getInitialState: function() { + getInitialState: function () { + console.log(this.props); return { - user: this.props...
bdb66b3483aaaffefa61eaa1a52c886a08dc28ef
Gruntfile.js
Gruntfile.js
/* eslint-disable camelcase, global-require */ 'use strict'; module.exports = function(grunt) { require('jit-grunt')(grunt); grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), jsonlint: { all: ['*.json'], }, eslint: { all: { src: ['*.js', 'test/*.js'], igno...
/* eslint-disable camelcase, global-require */ 'use strict'; module.exports = function(grunt) { require('jit-grunt')(grunt); grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), jsonlint: { all: ['*.json'], }, eslint: { all: { src: '**/*.js', ignore: '**/node...
Update glob for files to lint with ESLint
grunt: Update glob for files to lint with ESLint Now linting .js files in benchmark/
JavaScript
mit
woollybogger/string-natural-compare,nwoltman/string-natural-compare
--- +++ @@ -14,8 +14,8 @@ eslint: { all: { - src: ['*.js', 'test/*.js'], - ignore: '*.min.js', + src: '**/*.js', + ignore: '**/node_modules/**', }, },
b1cd0b8560f5a64e806d6ae7bdc0d1c5f278b5dd
config/index.js
config/index.js
// see http://vuejs-templates.github.io/webpack for documentation. var path = require('path') module.exports = { build: { env: require('./prod.env'), index: path.resolve(__dirname, '../dist/index.html'), assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', assetsPublicPat...
// see http://vuejs-templates.github.io/webpack for documentation. var path = require('path') module.exports = { build: { env: require('./prod.env'), assetsRoot: path.resolve(__dirname, '../dist'), assetsPublicPath: '/', productionSourceMap: true, // Gzip off by default as many popular static hos...
Remove static folder from configs
:fire: Remove static folder from configs
JavaScript
mit
kimuraz/vue-rest
--- +++ @@ -4,9 +4,7 @@ module.exports = { build: { env: require('./prod.env'), - index: path.resolve(__dirname, '../dist/index.html'), assetsRoot: path.resolve(__dirname, '../dist'), - assetsSubDirectory: 'static', assetsPublicPath: '/', productionSourceMap: true, // Gzip off by de...
e5467aed56658fc1e929226f3f8015efae213e59
src/scripts/app/cms/concepts/directives/conceptForm.controller.js
src/scripts/app/cms/concepts/directives/conceptForm.controller.js
'use strict'; module.exports = /* * This directive expects concept and processConceptForm * to be set in scope. */ /*@ngInject*/ function ConceptsFormCtrl ( $scope, _, ConceptService ) { if (_.isUndefined($scope.concept) || !_.isObject($scope.concept)) { throw new Error('Please define concept obje...
'use strict'; module.exports = /* * This directive expects concept and processConceptForm * to be set in scope. */ /*@ngInject*/ function ConceptsFormCtrl ( $scope, _, ConceptService, StandardService, StandardLevelService ) { if (_.isUndefined($scope.concept) || !_.isObject($scope.concept)) { th...
Add standards and standard levels to concepts create
Add standards and standard levels to concepts create
JavaScript
agpl-3.0
ddmck/Quill-Grammar,ddmck/Quill-Grammar,empirical-org/Quill-Grammar,empirical-org/Quill-Grammar,ddmck/Quill-Grammar,empirical-org/Quill-Grammar
--- +++ @@ -9,7 +9,8 @@ /*@ngInject*/ function ConceptsFormCtrl ( - $scope, _, ConceptService + $scope, _, ConceptService, StandardService, + StandardLevelService ) { if (_.isUndefined($scope.concept) || !_.isObject($scope.concept)) { throw new Error('Please define concept object in controller scope')...
6b14d5f10c1550c43530484a73508ea87691d47e
src/dicebluff-client/app/main.js
src/dicebluff-client/app/main.js
;(function(windowReference, documentReference) { 'use strict'; // })(window, document);
;(function(windowReference, documentReference) { 'use strict'; var consoleNode = documentReference.querySelector('.console'), console = new Console(consoleNode, 72, 18, (18 * 10)), localPlayer = new LocalPlayer(console); localPlayer.evaluateClaim(40, [ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4...
Add testing code for the local player evaluation method
Add testing code for the local player evaluation method
JavaScript
mit
doubtingreality/dicebluff,doubtingreality/dicebluff
--- +++ @@ -1,5 +1,9 @@ ;(function(windowReference, documentReference) { 'use strict'; - // + var consoleNode = documentReference.querySelector('.console'), + console = new Console(consoleNode, 72, 18, (18 * 10)), + localPlayer = new LocalPlayer(console); + + localPlayer.evaluateClaim(4...
5d09ecba94778245f2f59514786c58fbf4e406e1
client/hubub.js
client/hubub.js
// HubBub client code // From: https://github.com/almost/hubbub/ (function () { // Just a very rough demo, needs a lot more work var form = document.querySelector('form[data-hubbub]'); form.addEventListener('submit', function (evt) { evt.preventDefault(); var comment = form.querySelector('[name=comment]...
// HubBub client code // From: https://github.com/almost/hubbub/ (function () { // Just a very rough demo, needs a lot more work var form = document.querySelector('form[data-hubbub]'); form.addEventListener('submit', function (evt) { evt.preventDefault(); var comment = form.querySelector('[name=comment]...
Add comment to special pendingcomments bit after its sent
Add comment to special pendingcomments bit after its sent
JavaScript
mit
milessabin/hubbub,almost/hubbub
--- +++ @@ -19,7 +19,7 @@ if (xmlhttp.readyState === 4) { if (xmlhttp.status >= 200 && xmlhttp.status < 300) { var response = JSON.parse(xhr.responseText); - var commentsContainer = document.querySelector('form[data-comments]'); + var commentsContainer = document....
a67b9d72030639923820c9a74636e360d27fe778
.eslintrc.js
.eslintrc.js
module.exports = { "env": { "browser": true, "es6": true, "node": true }, "extends": "eslint:recommended", "parserOptions": { "ecmaVersion": 2017, "sourceType": "module" }, "rules": { "indent": [ "error", 2 ], "linebreak-style": [ "error", "unix" ]...
module.exports = { "env": { "browser": true, "es6": true, "node": true }, "extends": "eslint:recommended", "parserOptions": { "ecmaVersion": 2017, "sourceType": "module" }, "rules": { "indent": [ "error", 2 ], "linebreak-style": [ "error", "unix" ]...
Update eslint globals to include mocha functions
Update eslint globals to include mocha functions
JavaScript
mit
albertyw/base-flask,albertyw/base-flask,albertyw/base-flask,albertyw/base-flask
--- +++ @@ -27,5 +27,14 @@ "always" ] }, - "globals": {} + "globals": { + "describe": true, + "context": true, + "it": true, + "specify": true, + "before": true, + "after": true, + "beforeEach": true, + "afterEach": true + } };
6e277b764fffcdbe17867409e6b3efded6e94662
src/workers/ingress/index.js
src/workers/ingress/index.js
import BaseWorker from '../base' import utils from 'async' import uuid from 'uuid' import redis from 'redis' export class IngressWorker extends BaseWorker { constructor (rsmq) { super('ingress', rsmq) this.rsmq = rsmq this.redisClient = redis.createClient({ host: 'redis' }) } store (sessi...
import BaseWorker from '../base' import redis from 'redis' export class IngressWorker extends BaseWorker { constructor (rsmq) { super('ingress', rsmq) this.rsmq = rsmq this.redisClient = redis.createClient({ host: 'redis' }) } store (session, body) { return new Promise((resolve, rejec...
Update ingress to use new async render
Update ingress to use new async render
JavaScript
mit
craftship/phonebox,craftship/phonebox,craftship/phonebox
--- +++ @@ -1,6 +1,4 @@ import BaseWorker from '../base' -import utils from 'async' -import uuid from 'uuid' import redis from 'redis' export class IngressWorker extends BaseWorker { @@ -15,7 +13,7 @@ store (session, body) { return new Promise((resolve, reject) => { - this.redisClient.set(`phonebo...
808cabc32999237e3f278c8c0b56d7bfec43886d
client/src/utils.js
client/src/utils.js
import * as changeCase from 'change-case' import pluralize from 'pluralize' export default { ...changeCase, pluralize, resourceize: function(string) { return pluralize(changeCase.camel(string)) } } Object.map = function(source, func) { return Object.keys(source).map(key => { let value = source[key] return ...
import * as changeCase from 'change-case' import pluralize from 'pluralize' export default { ...changeCase, pluralize, resourceize: function(string) { return pluralize(changeCase.camel(string)) } } Object.map = function(source, func) { return Object.keys(source).map(key => { let value = source[key] return ...
Fix lint errors in Object.get
Fix lint errors in Object.get
JavaScript
mit
NCI-Agency/anet,NCI-Agency/anet,NCI-Agency/anet,NCI-Agency/anet,NCI-Agency/anet
--- +++ @@ -18,8 +18,8 @@ Object.get = function(source, keypath) { const keys = keypath.split('.') - let key - while (key = keys.shift()) { + while (keys[1]) { + let key = keys.shift() source = source[key] if (typeof source === 'undefined') return source
2f9b997f7138be1f6ab4243210ee039239e8bea6
karma.conf.js
karma.conf.js
/*eslint-env node */ /*eslint no-var: 0 */ module.exports = function(config) { config.set({ frameworks: ['mocha', 'chai-sinon'], reporters: ['mocha', 'coverage'], coverageReporter: { reporters: [ { type: 'text-summary' }, { type: 'html', dir: 'coverage' } ] }, browsers...
/*eslint-env node */ /*eslint no-var: 0 */ var coverage = String(process.env.COVERAGE)!=='false'; module.exports = function(config) { config.set({ frameworks: ['mocha', 'chai-sinon'], reporters: ['mocha'].concat(coverage ? 'coverage' : []), coverageReporter: { reporters: [ { type: 'text-summary' ...
Allow turning off coverage reporting for performance tests
Allow turning off coverage reporting for performance tests
JavaScript
mit
neeharv/preact,developit/preact,neeharv/preact,developit/preact,gogoyqj/preact
--- +++ @@ -1,11 +1,14 @@ /*eslint-env node */ /*eslint no-var: 0 */ + +var coverage = String(process.env.COVERAGE)!=='false'; module.exports = function(config) { config.set({ frameworks: ['mocha', 'chai-sinon'], - reporters: ['mocha', 'coverage'], + reporters: ['mocha'].concat(coverage ? 'coverage' : [...
bfceb2acdfc101fbf0f6448ffced75a36ae0ecab
client/app/movies/movies.js
client/app/movies/movies.js
'use strict'; angular.module('mementoMovieApp') .config(function ($stateProvider) { $stateProvider .state('movies', { url: '/?year&director&actor', templateUrl: 'app/movies/movies.html', controller: 'MoviesCtrl', resolve: { PaginatedMovies: function(Movies, Paginat...
'use strict'; angular.module('mementoMovieApp') .config(function ($stateProvider) { $stateProvider .state('movies', { url: '/?year&director&actor', templateUrl: 'app/movies/movies.html', controller: 'MoviesCtrl', resolve: { PaginatedMovies: ['Movies', 'Pagination',...
Fix ui-router dependencies resolving in production.
Fix ui-router dependencies resolving in production.
JavaScript
mit
ssidorchick/mementomovie
--- +++ @@ -8,9 +8,9 @@ templateUrl: 'app/movies/movies.html', controller: 'MoviesCtrl', resolve: { - PaginatedMovies: function(Movies, Pagination) { + PaginatedMovies: ['Movies', 'Pagination', function(Movies, Pagination) { return new Pagination(Movies); - ...
cfb399ab88b5201984e138f89602dc2f96bfbba2
app/lib/initializePlugins.js
app/lib/initializePlugins.js
import plugins from '../main/plugins/' import { send } from 'lib/rpc/events' export default () => { // Run plugin initializers only when main window is loaded Object.keys(plugins).forEach(name => { const { initializeAsync } = plugins[name] if (!initializeAsync) return initializeAsync(data => { //...
import plugins from '../main/plugins/' import { send } from 'lib/rpc/events' export default () => { // Run plugin initializers only when main window is loaded Object.keys(plugins).forEach(name => { const { initializeAsync } = plugins[name] if (!initializeAsync) return initializeAsync(data => { //...
Fix error after plugins initialization in background window
Fix error after plugins initialization in background window
JavaScript
mit
KELiON/cerebro,KELiON/cerebro
--- +++ @@ -14,4 +14,5 @@ }) }) }) + return Promise.resolve() }
e2c2efc7d38e4de0b9af7dfc87ff4deedab42cd8
polyfills/duktape-isfastint.js
polyfills/duktape-isfastint.js
/* * Helper to check if a number is internally represented as a fastint: * * if (Duktape.isFastint(x)) { * print('fastint'); * } else { * print('not a fastint (or not a number)'); * } * * NOTE: This helper depends on the internal tag numbering (defined in * duk_tval.h) which is both ...
/* * Helper to check if a number is internally represented as a fastint: * * if (Duktape.isFastint(x)) { * print('fastint'); * } else { * print('not a fastint (or not a number)'); * } * * NOTE: This helper depends on the internal tag numbering (defined in * duk_tval.h) which is both ...
Fix isFastint() polyfill to use revised info()
Fix isFastint() polyfill to use revised info()
JavaScript
mit
markand/duktape,markand/duktape,markand/duktape,harold-b/duktape,harold-b/duktape,markand/duktape,harold-b/duktape,markand/duktape,harold-b/duktape,svaarala/duktape,svaarala/duktape,svaarala/duktape,harold-b/duktape,harold-b/duktape,markand/duktape,svaarala/duktape,svaarala/duktape,harold-b/duktape,markand/duktape,svaa...
--- +++ @@ -16,7 +16,7 @@ if (typeof Duktape.fastintTag === 'undefined') { Object.defineProperty(Duktape, 'fastintTag', { /* Tag number depends on duk_tval packing. */ - value: (Duktape.info(true)[1] >= 0xfff0) ? + value: (Duktape.info(true).itag >= 0xfff0) ? ...
96f1f5c0f0485f9e21ffd3de26e6e23937643de0
app/routes/StoreRouter.js
app/routes/StoreRouter.js
import React from 'react'; import { ThemeProvider } from 'styled-components'; import { Switch, Route } from 'react-router-dom'; import defaultTheme from 'app/themes/store/default'; import HomeRoute from 'app/components/Store/Routes/HomeRoute'; export default () => ( <ThemeProvider theme={defaultTheme}> <Switch>...
import React from 'react'; import { ThemeProvider } from 'styled-components'; import { Switch, Route } from 'react-router-dom'; import defaultTheme from 'app/themes/store/default'; import BrandsRoute from 'app/components/Store/Routes/BrandsRoute'; import BrandRoute from 'app/components/Store/Routes/BrandRoute'; import...
Add routes to store router
Add routes to store router
JavaScript
mit
VineRelay/VineRelayStore,VineRelay/VineRelayStore
--- +++ @@ -3,6 +3,11 @@ import { Switch, Route } from 'react-router-dom'; import defaultTheme from 'app/themes/store/default'; +import BrandsRoute from 'app/components/Store/Routes/BrandsRoute'; +import BrandRoute from 'app/components/Store/Routes/BrandRoute'; +import CategoriesRoute from 'app/components/Store/R...
0ae469f1f501af8e2eaacef91973988594601dcf
src/containers/App/App.js
src/containers/App/App.js
import React from 'react'; import sharedStyles from 'components/shared/styles.scss'; export default ({ children }) => ( <div className={sharedStyles.fullSize}> { children } </div> );
import React, { PropTypes } from 'react'; import sharedStyles from 'components/shared/styles.scss'; const App = ({ children }) => ( <div className={sharedStyles.fullSize}> { children } </div> ); App.propTypes = { children: PropTypes.node, }; export default App;
Fix eslint error no proptypes for children
Fix eslint error no proptypes for children
JavaScript
mit
inooid/react-redux-card-game,inooid/react-redux-card-game
--- +++ @@ -1,8 +1,14 @@ -import React from 'react'; +import React, { PropTypes } from 'react'; import sharedStyles from 'components/shared/styles.scss'; -export default ({ children }) => ( +const App = ({ children }) => ( <div className={sharedStyles.fullSize}> { children } </div> ); + +App.propTypes ...
b5f81886a919cd45206295ecc81f7f231d6ca8aa
Home.js
Home.js
import React from 'react'; import { StyleSheet, Text, View, TextInput, Button } from 'react-native'; import Login from './components/Login/Login.js'; // TODO Use prod server in prod mode // const server = 'https://satoshi-api.herokuapp.com' const server = 'http://localhost:8080' export default class HomeScreen exten...
import React from 'react'; import { StyleSheet, Text, View, TextInput, Button } from 'react-native'; import Login from './components/Login/Login.js'; // TODO Use prod server in prod mode const server = 'https://satoshi-api.herokuapp.com' // const server = 'http://localhost:8080' export default class HomeScreen exten...
Use heroku api by default
Use heroku api by default
JavaScript
mit
ripper234/satoshi
--- +++ @@ -3,8 +3,8 @@ import Login from './components/Login/Login.js'; // TODO Use prod server in prod mode -// const server = 'https://satoshi-api.herokuapp.com' -const server = 'http://localhost:8080' +const server = 'https://satoshi-api.herokuapp.com' +// const server = 'http://localhost:8080' export def...
01f8ab9dcc4cce24b401691a770ec42f973f5de2
db/seedUtils.js
db/seedUtils.js
import uuid from 'uuid'; import flatten from 'ramda/src/flatten'; import times from 'ramda/src/times'; import createDBConnectionPool from '../server/db'; const db = createDBConnectionPool(); const generateValueBetween = (min, max) => // eslint-disable-next-line Number((Math.random() * (max - min) + min).toFixed(...
import uuid from 'uuid'; import createDBConnectionPool from '../server/db'; const db = createDBConnectionPool(); const generateValueBetween = (min, max) => // eslint-disable-next-line Number((Math.random() * (max - min) + min).toFixed(2)); const generateViper = () => { const nomisId = uuid().substring(0, 10);...
Use a for loop instead of recursion
CSRA-496: Use a for loop instead of recursion
JavaScript
mit
noms-digital-studio/csra-app,noms-digital-studio/csra-app,noms-digital-studio/csra-app
--- +++ @@ -1,6 +1,4 @@ import uuid from 'uuid'; -import flatten from 'ramda/src/flatten'; -import times from 'ramda/src/times'; import createDBConnectionPool from '../server/db'; @@ -19,35 +17,20 @@ }; }; -const generateViperRows = (iterations, rows = []) => { - if (iterations === 0) return rows; +const...
6b9efcf61bb32e89e6b5eddfda7aa410caa46254
project/src/js/socket.js
project/src/js/socket.js
var StrongSocket = require('./StrongSocket'); var session = require('./session'); var i18n = require('./i18n'); var socketInstance; function createGameSocket(url, version, receiveHandler) { socketInstance = new StrongSocket(url, version, { options: { name: "game", debug: true, ignoreUnknownMes...
var StrongSocket = require('./StrongSocket'); var session = require('./session'); var i18n = require('./i18n'); var socketInstance; function createGameSocket(url, version, receiveHandler) { socketInstance = new StrongSocket(url, version, { options: { name: "game", debug: true, ignoreUnknownMes...
Add a todo comment in ws onerror
Add a todo comment in ws onerror
JavaScript
mit
garawaa/lichobile,btrent/lichobile,garawaa/lichobile,garawaa/lichobile,btrent/lichobile,btrent/lichobile,btrent/lichobile
--- +++ @@ -11,7 +11,8 @@ debug: true, ignoreUnknownMessages: true, onError: function() { - // probably opening a user game while logged out + // TODO find a way to get the real error + // for now we assume it comes from opening a user game while logged out if (!sess...
2f7dcc7770ceeffc419c0650bbb9ae1e9b88cf62
client/index.js
client/index.js
module.exports = { canvas: window.document.getElementById('gesso-target') };
function getCanvas() { // TODO: Read the project settings use the right ID var canvas = window.document.getElementById('gesso-target'); if (!canvas) { var canvases = window.document.getElementsByTagName('canvas'); if (canvases.length === 1) { canvas = canvases[0]; } } if (!canvas) { th...
Switch to getCanvas to load canvases lazily.
Switch to getCanvas to load canvases lazily.
JavaScript
mit
gessojs/gessojs,gessojs/gessojs
--- +++ @@ -1,3 +1,22 @@ +function getCanvas() { + // TODO: Read the project settings use the right ID + var canvas = window.document.getElementById('gesso-target'); + + if (!canvas) { + var canvases = window.document.getElementsByTagName('canvas'); + if (canvases.length === 1) { + canvas = canvases[0];...
4f6bc241aee80e1784c651c917964dadd1f853bf
server/bin/studio-bridge.js
server/bin/studio-bridge.js
#! /usr/bin/env node const path = require('path'); const fs = require('fs'); const program = require('commander'); const pkg = require('../package.json'); const server = require('../lib/server.js'); function failWithHelp(msg) { console.log(msg); program.help(); process.exit(1); } program .version(pkg.versi...
#! /usr/bin/env node const path = require('path'); const fs = require('fs'); const program = require('commander'); const pkg = require('../package.json'); const server = require('../lib/server.js'); function failWithHelp(msg) { console.log(msg); program.help(); process.exit(1); } program .version(pkg.versi...
Make note of the need to change the plugin's port when changing the server's
Make note of the need to change the plugin's port when changing the server's
JavaScript
mit
vocksel/studio-bridge-cli
--- +++ @@ -17,7 +17,8 @@ program .version(pkg.version) .arguments('<dir>') - .option('-p, --port <port>', 'the port to run the server off of. defaults to 8080.', 8080) + .option('-p, --port <port>', 'the port to run the server off of. defaults ' + + 'to 8080. you also need to change the port that the plu...
7b87547701d24660b9d6c9895a10e17eaced5a62
examples/add.js
examples/add.js
var solr = require('./../lib/solr'); var client = solr.createClient(); var callback = function(err,res){ if(err) console.log('Error:' + err); if(res) console.log('res:' + res); } client.autoCommit = true; client.updateEach = 4; for(var i = 0; i <= 2 ; i++){ var doc = { id : 82893 + i, title ...
/** * Load dependency */ var solr = require('./../lib/solr'); // Create a client var client = solr.createClient(); // function executed when the Solr server responds var callback = function(err,json){ if(err){ console.log(err); }else{ console.log('JSON response:' + json); } } // Auto commit ...
Add comments to explain important LOC.
NEW: Add comments to explain important LOC.
JavaScript
mit
kfitzgerald/solr-node-client,Bangsheng/solr-node-client,nicolasembleton/solr-node-client,chhams/solr-node-client,luketaverne/solr-node-client,godong9/solr-node-client,tpphu/solr-node-client,yanxi-com/solr-node-client,lbdremy/solr-node-client,lbdremy/solr-node-client,CondeNast/solr-node-client
--- +++ @@ -1,21 +1,37 @@ - var solr = require('./../lib/solr'); +/** + * Load dependency + */ +var solr = require('./../lib/solr'); +// Create a client var client = solr.createClient(); -var callback = function(err,res){ - if(err) console.log('Error:' + err); - if(res) console.log('res:' + res); +// func...
8fdea24745ba5a9fa62fd955d15b2de837f8abf6
client/lecturer/app/lecturer.factory.js
client/lecturer/app/lecturer.factory.js
(function() { 'use strict'; angular .module('lecturer') .factory('lecturerFactory', lecturerFactory); /* @ngInject */ function lecturerFactory(lecturerService, $location) { var username = ''; var observerCallbacks = []; var Login = false; var se...
(function() { 'use strict'; angular .module('lecturer') .factory('lecturerFactory', lecturerFactory); /* @ngInject */ function lecturerFactory(lecturerService, $location) { var username = ''; var observerCallbacks = []; var Login = false; var se...
Fix password being spelled wrong for the API call in lecturerFactory
Fix password being spelled wrong for the API call in lecturerFactory
JavaScript
mit
MACSIFS/IFS,MACSIFS/IFS,MACSIFS/IFS,MACSIFS/IFS
--- +++ @@ -31,7 +31,7 @@ // Prevent binding the hashed password into the input. var form = { email: credentials.email, - passsword: SHA256.hex(credentials.password) + password: SHA256.hex(credentials.password) }; ...
564216319c53b88f835c415ea81a744f0bab552a
test/spec/lateralus.component.js
test/spec/lateralus.component.js
/* global describe, it */ define([ 'chai' ,'underscore' ,'backbone' ,'lateralus' ,'../utils' ], function ( chai ,_ ,Backbone ,Lateralus ,utils ) { 'use strict'; var assert = chai.assert; var getLateraralusApp = utils.getLateraralusApp; return function () { describe('Lateralus.Compo...
/* global describe, it */ define([ 'chai' ,'underscore' ,'backbone' ,'lateralus' ,'../utils' ], function ( chai ,_ ,Backbone ,Lateralus ,utils ) { 'use strict'; var assert = chai.assert; var getLateraralusApp = utils.getLateraralusApp; return function () { describe('Lateralus.Compo...
Add a breaking test for lateralusEvent map inheritance.
Add a breaking test for lateralusEvent map inheritance.
JavaScript
mit
Jellyvision/lateralus,Jellyvision/lateralus
--- +++ @@ -41,6 +41,40 @@ }); }); }); + + describe('mixins', function () { + describe('delegateLateralusEvents', function () { + describe('Inheritance', function () { + var App = getLateraralusApp(); + var app = new App(); + var testWas...
52d1084cb1895326e072b5bc94a338488d57d795
app/assets/javascripts/app/views/back_to_top_view.js
app/assets/javascripts/app/views/back_to_top_view.js
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later app.views.BackToTop = Backbone.View.extend({ events: { "click #back-to-top": "backToTop" }, initialize: function() { var throttledScroll = _.throttle(this.toggleVisibility, 250); $(window).scrol...
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later app.views.BackToTop = Backbone.View.extend({ events: { "click #back-to-top": "backToTop" }, initialize: function() { var throttledScroll = _.throttle(this.toggleVisibility, 250); $(window).scrol...
Fix back to top icon not appearing on webkit browsers
Fix back to top icon not appearing on webkit browsers
JavaScript
agpl-3.0
geraspora/diaspora,Muhannes/diaspora,Flaburgan/diaspora,Amadren/diaspora,spixi/diaspora,jhass/diaspora,despora/diaspora,jhass/diaspora,geraspora/diaspora,geraspora/diaspora,KentShikama/diaspora,spixi/diaspora,jhass/diaspora,Amadren/diaspora,diaspora/diaspora,KentShikama/diaspora,spixi/diaspora,diaspora/diaspora,SuperTu...
--- +++ @@ -16,7 +16,7 @@ }, toggleVisibility: function() { - if($("html, body").scrollTop() > 1000) { + if($(document).scrollTop() > 1000) { $("#back-to-top").addClass("visible"); } else { $("#back-to-top").removeClass("visible");
606afcb84b7c85f941d6b39c6a8cec96072e795f
lib/buster-util.js
lib/buster-util.js
if (typeof buster == "undefined") { var buster = {}; } buster.util = (function () { var toString = Object.prototype.toString; var div = typeof document != "undefined" && document.createElement("div"); return { isNode: function (obj) { if (!div) { return false; ...
if (typeof buster == "undefined") { var buster = {}; } buster.util = (function () { var toString = Object.prototype.toString; var div = typeof document != "undefined" && document.createElement("div"); return { isNode: function (obj) { if (!div) { return false; ...
Add util.keys as Object.keys shim
Add util.keys as Object.keys shim
JavaScript
bsd-3-clause
busterjs/buster-core,busterjs/buster-core,geddski/buster-core
--- +++ @@ -44,6 +44,18 @@ } return false; + }, + + keys: Object.keys || function (object) { + var keys = []; + + for (var prop in object) { + if (Object.prototype.hasOwnProperty.call(object, prop)) { + keys.push(prop); ...
704c3b1e773f3c807c45d1bbd234746f268b7ef0
lib/ViewBase.js
lib/ViewBase.js
/* * Base View. Defines the basic methods every view is expected to have so * we can attach hooks to them. */ var hooks = require('hooks'); function ViewBase() { this.data = function() {}; this.mode = function() {}; this.render = function() {}; for (var k in hooks) { this[k] = hooks[k]; } } module....
/* * Base View. Defines the basic methods every view is expected to have so * we can attach hooks to them. */ var hooks = require('hooks'); function ViewBase() { this.data = this.data || function() { return this; }; this.mode = this.mode || function() { return this; }; this.render = this.render || function(c...
Stop clobbering view methods when they call the base constructor
Stop clobbering view methods when they call the base constructor
JavaScript
mit
jay-depot/turnpike,jay-depot/turnpike
--- +++ @@ -6,9 +6,9 @@ var hooks = require('hooks'); function ViewBase() { - this.data = function() {}; - this.mode = function() {}; - this.render = function() {}; + this.data = this.data || function() { return this; }; + this.mode = this.mode || function() { return this; }; + this.render = this.render || ...
a881668b389ab2ef8c830f3ef6200270004b96d4
src/main/windows/about.js
src/main/windows/about.js
const about = module.exports = { init, win: null } const config = require('../../config') const electron = require('electron') function init () { if (about.win) { return about.win.show() } const win = about.win = new electron.BrowserWindow({ backgroundColor: '#ECECEC', center: true, fullscr...
const about = module.exports = { init, win: null } const config = require('../../config') const electron = require('electron') function init () { if (about.win) { return about.win.show() } const win = about.win = new electron.BrowserWindow({ backgroundColor: '#ECECEC', center: true, fullscr...
Increase height of 'About' window
Fix: Increase height of 'About' window
JavaScript
mit
feross/webtorrent-app,webtorrent/webtorrent-desktop,feross/webtorrent-app,webtorrent/webtorrent-desktop,feross/webtorrent-app,webtorrent/webtorrent-desktop
--- +++ @@ -15,7 +15,7 @@ backgroundColor: '#ECECEC', center: true, fullscreen: false, - height: 170, + height: 220, icon: getIconPath(), maximizable: false, minimizable: false,
479fea5b3c0d971e2eebac0857f361264139f37a
lib/get-by-time.js
lib/get-by-time.js
'use strict'; // To make id smaller we get microgseconds count from more recent date var start = Date.UTC(2011, 8, 21) * 1000 // Prefix with number, it reduces chances of collision with variable names // (helpful if used as property names on objects) , prefix = String(Math.floor(Math.random() * 10)) // Make it mor...
'use strict'; // To make id smaller we get microseconds count from more recent date var start = Date.UTC(2012, 12, 21, 12, 0, 0, 0) * 1000 // Prefix with number, it reduces chances of collision with variable names // (helpful if used as property names on objects) , prefix = String(Math.floor(Math.random() * 10)) /...
Make recent date even more recent
Make recent date even more recent
JavaScript
mit
medikoo/time-uuid
--- +++ @@ -1,7 +1,7 @@ 'use strict'; -// To make id smaller we get microgseconds count from more recent date -var start = Date.UTC(2011, 8, 21) * 1000 +// To make id smaller we get microseconds count from more recent date +var start = Date.UTC(2012, 12, 21, 12, 0, 0, 0) * 1000 // Prefix with number, it reduces...
c1a80c6b9dab389a88f06bd99c58762e0bc3d92c
lib/mongoose.js
lib/mongoose.js
var mongoose = require('mongoose'); var log = require('lib/logger')(module); var config = require('../config'); // Установим соединение с базой log.info('Connecting to MongoDB uri: ' + config.get('mongoose:uri')); mongoose.connect(config.get('mongoose:uri'), config.get('mongoose:options')); mongoose.connection.on('c...
var mongoose = require('mongoose'); var log = require('lib/logger')(module); var config = require('../config'); log.info('Connecting to MongoDB uri: ' + config.get('mongoose:uri')); mongoose.connect(config.get('mongoose:uri'), config.get('mongoose:options')); mongoose.connection.on('connected', function() { log.in...
Add logging on Mongoose 'disconnected' event
Add logging on Mongoose 'disconnected' event
JavaScript
apache-2.0
koof90/srengine,ostinru/srengine,koof90/srengine,ostinru/srengine
--- +++ @@ -2,13 +2,16 @@ var log = require('lib/logger')(module); var config = require('../config'); -// Установим соединение с базой log.info('Connecting to MongoDB uri: ' + config.get('mongoose:uri')); mongoose.connect(config.get('mongoose:uri'), config.get('mongoose:options')); mongoose.connection.on('...
411bd57a7b1f0f82cf17f18b214d003601676359
src/foam/foamlink/FoamlinkNodeModelFileFetcher.js
src/foam/foamlink/FoamlinkNodeModelFileFetcher.js
/** * @license * Copyright 2019 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.foamlink', name: 'FoamlinkNodeModelFileFetcher', properties: [ 'root', 'foamlinkData_' ], methods: [ function init() { // TODO: error handli...
/** * @license * Copyright 2019 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.foamlink', name: 'FoamlinkNodeModelFileFetcher', properties: [ 'root', 'foamlinkData_' ], methods: [ function init() { // TODO: error handli...
Fix foamlink ModelFileFetcher path resolution
Fix foamlink ModelFileFetcher path resolution
JavaScript
apache-2.0
jacksonic/vjlofvhjfgm,foam-framework/foam2,jacksonic/vjlofvhjfgm,foam-framework/foam2,foam-framework/foam2,foam-framework/foam2,foam-framework/foam2,jacksonic/vjlofvhjfgm
--- +++ @@ -31,7 +31,7 @@ // TODO: anything but this terrible array thing ret(['withsource', { text: js, - source: path + source: require('path').relative(process.cwd(), path) }]); } catch(e) { console.error(e);
9318dc748e011c3ff07a8f2e6d23e9f797484e9f
blueprints/model/files/__root__/__path__/__name__.js
blueprints/model/files/__root__/__path__/__name__.js
import DS from 'ember-data'; const { <%= importedModules %> } = DS; export default Model.extend({ <%= attrs.length ? ' ' + attrs : '' %> });
import DS from 'ember-data'; const { <%= importedModules %> } = DS; export default Model.extend({ <%= attrs.length ? attrs : '' %> });
Fix wrong indentation on Model Blueprint for Classic apps
Fix wrong indentation on Model Blueprint for Classic apps
JavaScript
mit
HeroicEric/data,arenoir/data,HeroicEric/data,HeroicEric/data,arenoir/data,HeroicEric/data,arenoir/data,arenoir/data
--- +++ @@ -2,5 +2,5 @@ const { <%= importedModules %> } = DS; export default Model.extend({ -<%= attrs.length ? ' ' + attrs : '' %> +<%= attrs.length ? attrs : '' %> });
ae55f65c2d2822ad9f77e47fcbd2becd98dfbeda
server/main.js
server/main.js
import { Meteor } from 'meteor/meteor'; Meteor.startup(() => { // code to run on server at startup // Creating comment schema CommentSchema = new SimpleSchema({ email: { type: String, unique: true }, text: { type: String } }); //...
import { Meteor } from 'meteor/meteor'; Meteor.startup(() => { // code to run on server at startup // Creating comment schema CommentSchema = new SimpleSchema({ email: { type: String, unique: true }, text: { type: String } }); //...
Insert to collection - sample comment object
Insert to collection - sample comment object
JavaScript
mit
ArunMichaelDsouza/meteor-discussion-board,ArunMichaelDsouza/meteor-discussion-board
--- +++ @@ -20,13 +20,19 @@ // Attaching CommentSchema to Comments collection Comments.attachSchema(CommentSchema); - var obj = { + var commentObj = { "email": "a@a.com", "text": "test" } // Validating sample object - var isValid = Comments.simpleSchema().namedConte...
e758f14827b54a9ea7cf17190eca35b64c498170
webapp/templates/thing.js
webapp/templates/thing.js
$(document).ready(function() { %('#led_on').click(function() { console.log('LED on!'); }); %('#led_off').click(function() { console.log('LED off!'); }); });
$(document).ready(function() { $('#led_on').click(function() { console.log('LED on!'); }); $('#led_off').click(function() { console.log('LED off!'); }); });
Fix syntax error change % to $
Fix syntax error change % to $
JavaScript
mit
beepscore/pi_thing,beepscore/pi_thing,beepscore/pi_thing
--- +++ @@ -1,8 +1,8 @@ $(document).ready(function() { - %('#led_on').click(function() { + $('#led_on').click(function() { console.log('LED on!'); }); - %('#led_off').click(function() { + $('#led_off').click(function() { console.log('LED off!'); }); });
ac1ce2e19868df6c0d96a626aeee83b70bf503dd
backend/server/resources/projects-routes.js
backend/server/resources/projects-routes.js
module.exports = function(model) { 'use strict'; let validateProjectAccess = require('./project-access')(model.access); let schema = require('.././schema')(model); let router = require('koa-router')(); let projects = require('./projects')(model.projects); let samples = require('./samples')(mode...
module.exports = function(model) { 'use strict'; let validateProjectAccess = require('./project-access')(model.access); let schema = require('.././schema')(model); let router = require('koa-router')(); let projects = require('./projects')(model.projects); let samples = require('./samples')(mode...
Add REST call for files.
Add REST call for files.
JavaScript
mit
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
--- +++ @@ -6,13 +6,18 @@ let router = require('koa-router')(); let projects = require('./projects')(model.projects); let samples = require('./samples')(model.samples, schema); + let files = require('./files')(model.files); let processes = require('./processes')(model.processes, schema); ...
f019469201eebdbb85880f871101da65599557e0
assets/js/jquery.ghostHunter-init.js
assets/js/jquery.ghostHunter-init.js
$("#search-field").ghostHunter({ results : "#search-results", onKeyUp : true, info_template : "<p>Found {{amount}} posts</p>", result_template : "<a href='{{link}}'><p><h2>{{title}}</h2><h4>{{pubDate}}</h4>{{description}}</p></a>" });
$("#search-field").ghostHunter({ results : "#search-results", onKeyUp : true, info_template : "<p>Results: {{amount}}</p>", result_template : "<a href='{{link}}'><p><h2>{{title}}</h2><h4>{{pubDate}}</h4>{{description}}</p></a>" });
Change search result count text
Change search result count text
JavaScript
mit
dlecina/StayPuft,dlecina/StayPuft
--- +++ @@ -1,6 +1,6 @@ $("#search-field").ghostHunter({ results : "#search-results", onKeyUp : true, - info_template : "<p>Found {{amount}} posts</p>", + info_template : "<p>Results: {{amount}}</p>", result_template : "<a href='{{link}}'><p><h2>{{title}}</h2><h4>{{pubDate}}</h4>{{descriptio...
b670c79377c6a4dc7cbfbf0a73418992f2bf09a7
src/ggrc/assets/javascripts/components/lazy_open_close.js
src/ggrc/assets/javascripts/components/lazy_open_close.js
/*! Copyright (C) 2016 Google Inc., authors, and contributors <see AUTHORS file> Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> Created By: ivan@reciprocitylabs.com Maintained By: ivan@reciprocitylabs.com */ (function (can, $) { 'use strict'; can.Component.extend({ tag: '...
/*! Copyright (C) 2016 Google Inc., authors, and contributors <see AUTHORS file> Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> Created By: ivan@reciprocitylabs.com Maintained By: ivan@reciprocitylabs.com */ (function (can, $) { 'use strict'; GGRC.Components('lazyOpenClose', ...
Move lazy-openclose component to GGRC.Component
Move lazy-openclose component to GGRC.Component
JavaScript
apache-2.0
prasannav7/ggrc-core,josthkko/ggrc-core,prasannav7/ggrc-core,selahssea/ggrc-core,andrei-karalionak/ggrc-core,andrei-karalionak/ggrc-core,NejcZupec/ggrc-core,kr41/ggrc-core,plamut/ggrc-core,AleksNeStu/ggrc-core,selahssea/ggrc-core,VinnieJohns/ggrc-core,j0gurt/ggrc-core,selahssea/ggrc-core,josthkko/ggrc-core,kr41/ggrc-co...
--- +++ @@ -8,7 +8,7 @@ (function (can, $) { 'use strict'; - can.Component.extend({ + GGRC.Components('lazyOpenClose', { tag: 'lazy-openclose', scope: { show: false
4fbd03a93149df18f10610214926284a39447d22
services.js
services.js
function confirmReboot () { if (confirm('Are you sure you want to reboot the system?')) { window.location.href = 'shellscripts/reboot.php?system=y'; } else { // Do nothing } } function checkUpdate () { document.getElementById('update_display').style.display = "block"; document.getElementById('check_update_bu...
function confirmReboot () { if (confirm('Are you sure you want to reboot the system?')) { window.location.href = 'shellscripts/reboot.php?system=y'; } else { // Do nothing } } function checkUpdate () { document.getElementById('update_display').style.display = "block"; document.getElementById('check_update_bu...
Check updates button trial II
Check updates button trial II
JavaScript
mit
virajchitnis/linux-webui,virajchitnis/linux-webui,virajchitnis/linux-webui
--- +++ @@ -16,4 +16,6 @@ function hideUpdate () { document.getElementById('update_display').src = ""; document.getElementById('update_display').style.display = "none"; + document.getElementById('check_update_button').onclick = checkUpdate; + document.getElementById('check_update_button').innerHTML = "Check for ...
9a2cc7d6763f822cc86deae5a28395e9e9b35546
settings.js
settings.js
module.exports = { HOST: process.env.HOST || null, PORT: process.env.PORT || 5000, DEFAULT_SHOT_WIDTH: process.env.DEFAULT_SHOT_WIDTH || 768, DEFAULT_SHOT_MIN_HEIGHT: process.env.DEFAULT_SHOT_MIN_HEIGHT || 700, WEBSHOTS_QUALITY: process.env.WEBSHOTS_QUALITY || 75, };
module.exports = { HOST: process.env.HOST || null, PORT: process.env.PORT || 5000, DEFAULT_SHOT_WIDTH: process.env.DEFAULT_SHOT_WIDTH || 768, DEFAULT_SHOT_MIN_HEIGHT: process.env.DEFAULT_SHOT_MIN_HEIGHT || 1, WEBSHOTS_QUALITY: process.env.WEBSHOTS_QUALITY || 75, };
Use min height of 1px.
Use min height of 1px.
JavaScript
mit
joeyespo/iwidgets.aggrenda.com
--- +++ @@ -2,6 +2,6 @@ HOST: process.env.HOST || null, PORT: process.env.PORT || 5000, DEFAULT_SHOT_WIDTH: process.env.DEFAULT_SHOT_WIDTH || 768, - DEFAULT_SHOT_MIN_HEIGHT: process.env.DEFAULT_SHOT_MIN_HEIGHT || 700, + DEFAULT_SHOT_MIN_HEIGHT: process.env.DEFAULT_SHOT_MIN_HEIGHT || 1, WEBSHOTS_QUALITY:...
ff5365a0f50527aa6e73b3c0874977d677b5a0eb
pulsar.js
pulsar.js
var p5 = require('p5'); var sketch = function (p) { var Receiver = require('./Receiver.js'); var receiver = new Receiver(); var Processor = require('./Processor.js'); var processor = new Processor(); var DrawingManager = require('./DrawingManager.js'); var dM = new DrawingManager(p); p.setup = functi...
var p5 = require('p5'); var sketch = function (p) { var Receiver = require('./Receiver.js'); var receiver = new Receiver(); var Processor = require('./Processor.js'); var processor = new Processor(); var DrawingManager = require('./DrawingManager.js'); var dM = new DrawingManager(p); p.setup = functi...
Move drawing manager call to be in front of the background
Move drawing manager call to be in front of the background
JavaScript
mit
Dermah/pulsar,Dermah/pulsar
--- +++ @@ -27,15 +27,16 @@ } p.draw = function() { - dM.drawAll(); p.background(0); p.textSize(15); - p.fill(150); + p.fill(175); p.textStyle(p.BOLD); var verWidth = p.textWidth("PULSAR - v0.0.1"); p.text("PULSAR - v0.0.1", p.windowWidth - verWidth - 10, p.windowHeight -...
3d9ef5c648f8ee9d10ea2221d4b86101264cac50
lib/websocket-wrapper.js
lib/websocket-wrapper.js
const EventEmitter = require('events'); // wrapper around the Node.js ws module // for use in browsers class WebSocketWrapper extends EventEmitter { constructor(url) { super(); this._ws = new WebSocket(url); this._ws.onopen = () => { this.emit('open'); }; this._w...
const EventEmitter = require('events'); // wrapper around the Node.js ws module // for use in browsers class WebSocketWrapper extends EventEmitter { constructor(url) { super(); this._ws = new WebSocket(url); this._ws.onopen = () => { this.emit('open'); }; this._w...
Add missing callback to WebSocket 'send' wrapper
Add missing callback to WebSocket 'send' wrapper Fix #301.
JavaScript
mit
cyrus-and/chrome-remote-interface,cyrus-and/chrome-remote-interface
--- +++ @@ -24,8 +24,13 @@ this._ws.close(); } - send(data) { - this._ws.send(data); + send(data, callback) { + try { + this._ws.send(data); + callback(); + } catch (err) { + callback(err); + } } }
d810081c17d8eb3adcfce7621a014d7aed51a9af
site.js
site.js
L.Control.Attribution.prototype.options.prefix = ''; var map = L.map('map', {minZoom: 14}).setView([38.9, -76.99], 13); var attr = '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors (this is <a href="http://github.com/tmcw/gpstile/">gpstile, and it is open source</a>)'; map.addHash(); (new mapbox...
L.Control.Attribution.prototype.options.prefix = ''; var map = L.map('map', {minZoom: 14}).setView([38.9, -76.99], 13); var attr = '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors (this is <a href="https://github.com/osmlab/osm-gpx-tile/">gpstile, and it is open source</a>)'; map.addHash(); (ne...
Change github like to point to osmlab org
Change github like to point to osmlab org
JavaScript
bsd-3-clause
osmlab/osm-gpx-tile,osmlab/osm-gpx-tile
--- +++ @@ -1,6 +1,6 @@ L.Control.Attribution.prototype.options.prefix = ''; var map = L.map('map', {minZoom: 14}).setView([38.9, -76.99], 13); -var attr = '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors (this is <a href="http://github.com/tmcw/gpstile/">gpstile, and it is open source</a>)...
54f5f70204b4dd26613f8f9a36757d5c3dc38474
lib/models/PayInPaymentDetailsCard.js
lib/models/PayInPaymentDetailsCard.js
var _ = require('underscore'); var PayInPaymentDetails = require('./PayInPaymentDetails'); var PayInPaymentDetailsCard = PayInPaymentDetails.extend({ defaults: { /** * CardType { CB_VISA_MASTERCARD, AMEX } */ CardType: null, CardId: null } }); module.exports = PayInP...
var _ = require('underscore'); var PayInPaymentDetails = require('./PayInPaymentDetails'); var PayInPaymentDetailsCard = PayInPaymentDetails.extend({ defaults: { /** * CardType { CB_VISA_MASTERCARD, AMEX } */ CardType: null, CardId: null, StatementDescriptor: null...
Add StatementDescriptor for card payins
Add StatementDescriptor for card payins
JavaScript
mit
Mangopay/mangopay2-nodejs-sdk,Mangopay/mangopay2-nodejs-sdk
--- +++ @@ -7,7 +7,8 @@ * CardType { CB_VISA_MASTERCARD, AMEX } */ CardType: null, - CardId: null + CardId: null, + StatementDescriptor: null } });
7e1b3afc32af4e72fa2c6feb043d36f395cfa5c4
apps/store/themes/store/js/asset.js
apps/store/themes/store/js/asset.js
$(function () { $('#btn-add-gadget').click(function () { var elem = $(this); asset.process(elem.data('type'), elem.data('aid'), location.href, elem); }); $('#btn-remove-subscribe').click(function () { var elem = $(this); asset.unsubscribeBookmark(elem.data('type'), elem.data...
$(function () { $('#btn-add-gadget').click(function () { var elem = $(this); asset.process(elem.data('type'), elem.data('aid'), location.href, elem); }); $('#btn-remove-subscribe').click(function () { var elem = $(this); asset.unsubscribeBookmark(elem.data('type'), elem.data...
Fix for STORE-1330: Add hover method to impiles that bookmark is removable
Fix for STORE-1330: Add hover method to impiles that bookmark is removable
JavaScript
apache-2.0
prasa7/carbon-store,Rajith90/carbon-store,Rajith90/carbon-store,jeradrutnam/carbon-store,splinter/carbon-store,cnapagoda/carbon-store,thushara35/carbon-store,Rajith90/carbon-store,jeradrutnam/carbon-store,madawas/carbon-store,splinter/carbon-store,wso2/carbon-store,madawas/carbon-store,wso2/carbon-store,wso2/carbon-sto...
--- +++ @@ -8,6 +8,14 @@ var elem = $(this); asset.unsubscribeBookmark(elem.data('type'), elem.data('aid'), location.href, elem); }); + + $('#btn-remove-subscribe').hover( + function () { + $(this).find("i").removeClass().addClass("fa fa-remove"); + }, + funct...