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
688e2647dc85c0743fb2c16f27705077fb478999
app/default/services/storage.js
app/default/services/storage.js
/* global angular */ angular.module('app') .factory('Storage', function ($window) { 'use strict'; function getItem(key) { var value = $window.localStorage.getItem(key); if (value) { return JSON.parse(value); } else { return null; } } function setItem(key, value) { $window.localStorage.setItem(key...
/* global angular */ angular.module('app') .factory('Storage', function ($window) { 'use strict'; function getItem(key) { var value = $window.localStorage.getItem(key); if (value) { return JSON.parse(value); } else { return null; } } function setItem(key, value) { $window.localStorage.setItem(key...
Fix issue with startsWith not existing(?)
Fix issue with startsWith not existing(?)
JavaScript
agpl-3.0
johansten/stargazer,johansten/stargazer,johansten/stargazer
--- +++ @@ -15,7 +15,7 @@ function setItem(key, value) { $window.localStorage.setItem(key, JSON.stringify(value, function (key, value) { - if (key.startsWith('$$')) { + if (key.slice(0, 2) === '$$') { return undefined; }
df03e27de9f58ace8a49486bd2eb690db085845f
app/initializers/app-version.js
app/initializers/app-version.js
import config from '../config/environment'; import Ember from 'ember'; export default { name: 'App Version', initialize: function() { Ember.libraries.register('App', config.APP.version); } }
import config from '../config/environment'; import Ember from 'ember'; var capitalize = Ember.String.capitalize; export default { name: 'App Version', initialize: function(container, application) { var appName = capitalize(application.toString()); Ember.libraries.register(appName, config.APP.version); } ...
Use the app's real name instead of 'App'
Use the app's real name instead of 'App'
JavaScript
mit
atsjj/ember-cli-app-version,stefanpenner/ember-cli-app-version,joliss/ember-cli-app-version,jelhan/ember-cli-app-version,stefanpenner/ember-cli-app-version,atsjj/ember-cli-app-version,cibernox/ember-cli-app-version,cibernox/ember-cli-app-version,philipbjorge/ember-cli-app-version,jelhan/ember-cli-app-version,philipbjor...
--- +++ @@ -1,9 +1,11 @@ import config from '../config/environment'; import Ember from 'ember'; +var capitalize = Ember.String.capitalize; export default { name: 'App Version', - initialize: function() { - Ember.libraries.register('App', config.APP.version); + initialize: function(container, application)...
83848b882034a54d88d6c0a5a6ad1891ac66f2eb
public/index.js
public/index.js
(function() { const backKey = 37; const backSpaceKey = 8; const forwardKey = 39; const spaceKey = 32; const content = [ '<h1>async @ async</h1>', '<h1>Test 1</h1>', '<h1>Test 2</h1>' ] function setPageContent(index) { document.body.innerHTML = content[index]; } function navigate(by)...
(function () { var backKey = 37; var backSpaceKey = 8; var forwardKey = 39; var spaceKey = 32; var content = [ '<h1>async @ async</h1>', '<h1>Test 1</h1>', '<h1>Test 2</h1>' ] function setPageContent(index) { document.body.innerHTML = content[index]; } function navigate(by) { va...
Update frontend code to work on ES5 only.
Update frontend code to work on ES5 only.
JavaScript
mit
qubyte/toisu-talk,qubyte/toisu-talk
--- +++ @@ -1,10 +1,10 @@ -(function() { - const backKey = 37; - const backSpaceKey = 8; - const forwardKey = 39; - const spaceKey = 32; +(function () { + var backKey = 37; + var backSpaceKey = 8; + var forwardKey = 39; + var spaceKey = 32; - const content = [ + var content = [ '<h1>async @ async</h1...
ba57b490524be1982abeaaa141117e28a4dab4fc
raspberry-worker/app.js
raspberry-worker/app.js
var util = require('util'); var teleinfo = require('./teleinfo.js'); var request = require('request'); var trameEvents = teleinfo.teleinfo('/dev/ttyAMA0'); // Handle elec information trameEvents.on('tramedecodee', function (data) { sendData(data); }); /** * Sends the buffered data to the API and empty the buffe...
var util = require('util'); var teleinfo = require('./teleinfo.js'); var request = require('request'); var trameEvents = teleinfo.teleinfo('/dev/ttyAMA0'); // Handle elec information trameEvents.on('onDecodedFrame', function (data) { sendData(data); }); /** * Sends the buffered data to the API and empty the buf...
Fix registering to the teleinfo service event.
Fix registering to the teleinfo service event.
JavaScript
mit
florianleger/pitou
--- +++ @@ -5,7 +5,7 @@ var trameEvents = teleinfo.teleinfo('/dev/ttyAMA0'); // Handle elec information -trameEvents.on('tramedecodee', function (data) { +trameEvents.on('onDecodedFrame', function (data) { sendData(data); });
8e17841c078aa869372f6cec1dd1790455efbc8c
js/id/svg/tag_classes.js
js/id/svg/tag_classes.js
iD.svg.TagClasses = function() { var keys = iD.util.trueObj([ 'highway', 'railway', 'motorway', 'amenity', 'natural', 'landuse', 'building', 'oneway', 'bridge' ]), tagClassRe = /^tag-/; return function(selection) { selection.each(function(d, i) { var classes, value = thi...
iD.svg.TagClasses = function() { var keys = iD.util.trueObj([ 'highway', 'railway', 'motorway', 'amenity', 'natural', 'landuse', 'building', 'oneway', 'bridge' ]), tagClassRe = /^tag-/; return function tagClassesSelection(selection) { selection.each(function tagClassesEach(d, i) { ...
Make tag classes functions non-anonymous
Make tag classes functions non-anonymous
JavaScript
isc
edpop/iD,1ec5/iD,mapmeld/iD,kartta-labs/iD,AndreasHae/iD,kartta-labs/iD,AndreasHae/iD,1ec5/iD,zbycz/iD,edpop/iD,bagage/iD,tbicr/iD,openstreetmap/iD,openstreetmap/iD,edpop/iD,energiekollektiv/openmod.sh-id,mapmeld/iD,bagage/iD,andreic-telenav/iD,morray/iD,digidem/iD,morray/iD,ngageoint/hootenanny-ui,kartta-labs/iD,ngage...
--- +++ @@ -4,8 +4,8 @@ 'landuse', 'building', 'oneway', 'bridge' ]), tagClassRe = /^tag-/; - return function(selection) { - selection.each(function(d, i) { + return function tagClassesSelection(selection) { + selection.each(function tagClassesEach(d, i) { var classes,...
91b7d0ed5bea6b478e3735e7f6941f04f25c69f9
app/aboutDialog.js
app/aboutDialog.js
const electron = require('electron') const app = require('electron').app const dialog = electron.dialog const Channel = require('./channel') const path = require('path') module.exports.showAbout = function () { dialog.showMessageBox({ title: 'Brave', message: 'Version: ' + app.getVersion() + '\n' + 'El...
const electron = require('electron') const app = require('electron').app const dialog = electron.dialog const Channel = require('./channel') const path = require('path') module.exports.showAbout = function () { dialog.showMessageBox({ title: 'Brave', message: 'Brave: ' + app.getVersion() + '\n' + 'Elec...
Add more info to about box
Add more info to about box Auditors: da39a3ee5e6b4b0d3255bfef95601890afd80709@diracdeltas
JavaScript
mpl-2.0
timborden/browser-laptop,pmkary/braver,diasdavid/browser-laptop,darkdh/browser-laptop,willy-b/browser-laptop,Sh1d0w/browser-laptop,manninglucas/browser-laptop,darkdh/browser-laptop,diasdavid/browser-laptop,MKuenzi/browser-laptop,luixxiul/browser-laptop,manninglucas/browser-laptop,MKuenzi/browser-laptop,jonathansampson/...
--- +++ @@ -7,10 +7,13 @@ module.exports.showAbout = function () { dialog.showMessageBox({ title: 'Brave', - message: 'Version: ' + app.getVersion() + '\n' + + message: 'Brave: ' + app.getVersion() + '\n' + 'Electron: ' + process.versions['atom-shell'] + '\n' + 'libchromiumcontent: ' + pr...
0ccf9b2d7c98c0da7210ac5eb4431d8586e305fe
app/reducers/ui.js
app/reducers/ui.js
/* global document */ import { Map } from 'immutable'; import { handleActions } from 'redux-actions'; import { SIDEBAR_TOGGLE, PANE_TOGGLE, PANE_RESIZE, SIDEBAR_RESIZE } from '../actions/ui'; import { FOLDER_OPEN } from '../actions/files'; const initialState = Map({ sidebarVisible: false, paneVisible: true, pan...
/* global document */ import { Map } from 'immutable'; import { handleActions } from 'redux-actions'; import { SIDEBAR_TOGGLE, PANE_TOGGLE, PANE_RESIZE, SIDEBAR_RESIZE } from '../actions/ui'; import { FOLDER_OPEN } from '../actions/files'; const initialState = Map({ sidebarVisible: false, paneVisible: true, pan...
Adjust the other pains on sidebar toggle
Adjust the other pains on sidebar toggle
JavaScript
bsd-3-clause
Mobelux/docdown-editor,Mobelux/docdown-editor
--- +++ @@ -8,12 +8,22 @@ const initialState = Map({ sidebarVisible: false, paneVisible: true, - paneSize: ((document.documentElement.clientWidth - 250) / 2), + paneSize: (document.documentElement.clientWidth / 2), sidebarSize: 250 }); const uiReducer = handleActions({ - [SIDEBAR_TOGGLE]: state => (s...
b4c35d82964091a811f0fca5950298df3117566e
src/sagas/DevNullApi.js
src/sagas/DevNullApi.js
import config from '../config' export const feedback: (feedback) => any = (feedback) => { const options = { method: 'POST', headers: { 'Content-Type': "application/json", "Voter-ID": feedback.uuid }, body: JSON.stringify(feedback.feedback) } return fetch(`${config...
import config from '../config' export const feedback: (feedback) => any = (feedback) => { const options = { method: 'POST', headers: { 'Content-Type': "application/json", "Voter-ID": feedback.uuid }, body: JSON.stringify(feedback.feedback) } return fetch(`${config...
Add feedback for unidentified errors
Add feedback for unidentified errors
JavaScript
mit
javaBin/appZone,javaBin/appZone,javaBin/appZone,javaBin/appZone,javaBin/appZone,javaBin/appZone,javaBin/appZone
--- +++ @@ -17,7 +17,7 @@ } else if(res.status === 403) { return { message : 'Please try again. Feedback opens 10 min before session ends.' } } else { - return res.status + return { message: 'Ops somthing went wrong.' } } } )
caedfe69291165ddedb0a041be3eb65a9a12442a
koans/AboutGenerators.js
koans/AboutGenerators.js
describe("About Generators", function () { describe("Basic usage", function () { it("should understand concept", function () { function* createGenerator() { //`yield` keyword exits function execution yield 1; } var generator = createGenerator(); expect(generator.next()....
describe("About Generators", function () { describe("Basic usage", function () { it("should understand syntax", function () { // `*` immediately after `function` denotes a generator function* createGenerator() { //`yield` keyword exits function execution yield 1; } // i...
Add helper comments in generators koans
docs: Add helper comments in generators koans
JavaScript
mit
tawashley/es6-javascript-koans,tawashley/es6-javascript-koans,tawashley/es6-javascript-koans
--- +++ @@ -2,18 +2,23 @@ describe("Basic usage", function () { - it("should understand concept", function () { + it("should understand syntax", function () { + + // `*` immediately after `function` denotes a generator function* createGenerator() { //`yield` keyword exits function ex...
9327492da4820fe23b5b54e055add59f53209ff7
src/firefox-preamble.js
src/firefox-preamble.js
Components.utils.import("resource://gre/modules/devtools/Console.jsm"); Components.utils.import("resource://gre/modules/Timer.jsm"); // This module does not support all of es6 promise functionality. // Components.utils.import("resource://gre/modules/Promise.jsm"); const XMLHttpRequest = Components.Constructor("@mozilla...
Components.utils.import("resource://gre/modules/devtools/Console.jsm"); Components.utils.import("resource://gre/modules/Timer.jsm"); // This module does not support all of es6 promise functionality. // Components.utils.import("resource://gre/modules/Promise.jsm"); const XMLHttpRequest = Components.Constructor("@mozilla...
Remove options argument to setupFreedom.
Remove options argument to setupFreedom.
JavaScript
apache-2.0
freedomjs/freedom-for-firefox,freedomjs/freedom-for-firefox
--- +++ @@ -7,7 +7,7 @@ var freedom; -function setupFreedom(options, manifest) { +function setupFreedom(manifest) { if (this.freedom) { return this.freedom; }
9389a381553b1c613e6467be78e8a4ce3bb1f729
src/lib/launchDarkly.js
src/lib/launchDarkly.js
import launchDarklyBrowser from "ldclient-js"; export function ldBrowserInit (key, user) { return launchDarklyBrowser.initialize(key, user); } export function getAllFeatureFlags (key, user) { const ldClient = ldBrowserInit(key, user); return ldClient.allFlags(); }
import launchDarklyBrowser from "ldclient-js"; export function ldBrowserInit (key, user) { return launchDarklyBrowser.initialize(key, user); } export function getAllFeatureFlags (key, user) { const ldClient = ldBrowserInit(key, user); return new Promise((resolve, reject) => { ldClient.on("ready", () => { ...
Refactor grabbing all feature flags to implement a promise
Refactor grabbing all feature flags to implement a promise
JavaScript
mit
TrueCar/react-launch-darkly
--- +++ @@ -6,5 +6,9 @@ export function getAllFeatureFlags (key, user) { const ldClient = ldBrowserInit(key, user); - return ldClient.allFlags(); + return new Promise((resolve, reject) => { + ldClient.on("ready", () => { + resolve(ldClient.allFlags()); + }); + }); }
abdcfb2985a8e6ddf0781d6dd4b8063ced47f1c9
src/lib/require-auth.js
src/lib/require-auth.js
"use strict"; var m = require("mithril"), db = require("./firebase"); module.exports = function(component) { return { controller : function() { var auth = db.getAuth(); // Unauthed or expired auth? BOUNCED if(!auth || (auth.expires * 1000) < Date.now(...
"use strict"; var m = require("mithril"), db = require("./firebase"); module.exports = function(component) { return { controller : function() { var auth = db.getAuth(); // Unauthed or expired auth? BOUNCED if(global.crucible.auth && (!auth || (auth.ex...
Fix the rest of the auth brouhaha
Fix the rest of the auth brouhaha
JavaScript
mit
Ryan-McMillan/crucible,kevinkace/crucible,tivac/anthracite,Ryan-McMillan/crucible,tivac/crucible,kevinkace/crucible,tivac/anthracite,tivac/crucible
--- +++ @@ -10,7 +10,7 @@ var auth = db.getAuth(); // Unauthed or expired auth? BOUNCED - if(!auth || (auth.expires * 1000) < Date.now()) { + if(global.crucible.auth && (!auth || (auth.expires * 1000) < Date.now())) { return m.route("/logi...
c7dcb0bb57dd3ce0ec39c67e4e3eb2c298361971
common/lib/xmodule/xmodule/js/src/capa/imageinput.js
common/lib/xmodule/xmodule/js/src/capa/imageinput.js
///////////////////////////////////////////////////////////////////////////// // // Simple image input // //////////////////////////////////////////////////////////////////////////////// // click on image, return coordinates // put a dot at location of click, on imag // window.image_input_click = function(id,event)...
///////////////////////////////////////////////////////////////////////////// // // Simple image input // //////////////////////////////////////////////////////////////////////////////// // click on image, return coordinates // put a dot at location of click, on imag window.image_input_click = function(id,event){ ...
Attach image_input_click function to window object
Attach image_input_click function to window object So other parts of the page can access it
JavaScript
agpl-3.0
franosincic/edx-platform,Edraak/edx-platform,chauhanhardik/populo,vismartltd/edx-platform,jjmiranda/edx-platform,xinjiguaike/edx-platform,unicri/edx-platform,arifsetiawan/edx-platform,arifsetiawan/edx-platform,eestay/edx-platform,cpennington/edx-platform,ak2703/edx-platform,kamalx/edx-platform,antoviaque/edx-platform,E...
--- +++ @@ -1,15 +1,13 @@ ///////////////////////////////////////////////////////////////////////////// // -// Simple image input +// Simple image input // //////////////////////////////////////////////////////////////////////////////// // click on image, return coordinates // put a dot at location of clic...
98b618c24161bbcefefdcce0680bbbd2ad7e8237
src/main/web/app/app.js
src/main/web/app/app.js
import Ui from "./Ui"; import Generator from "./Generator"; Ui.initializeDefaults(); $.getJSON("/features.json").done(displayFeatures); $.getJSON("/formats.json").done(displayFormats); function displayFeatures(features) { features.forEach(function (feature) { var checkbox = createFeatureCheckbox(feature)...
import Ui from "./Ui"; import Generator from "./Generator"; Ui.initializeDefaults(); $.getJSON("/features.json").done(displayFeatures); $.getJSON("/formats.json").done(displayFormats); function displayFeatures(features) { features.forEach(function (feature) { var checkbox = createFeatureCheckbox(feature)...
Use .some instead of ES6 .find
Use .some instead of ES6 .find
JavaScript
mit
VisualDataWeb/OntoBench,VisualDataWeb/OntoBench,VisualDataWeb/OntoBench
--- +++ @@ -30,5 +30,10 @@ option.appendTo("#format-list"); }); - Ui.initializeFormats(formats.find(format => format.default)); + formats.some(value => { + if (value.default) { + Ui.initializeFormats(value); + return true; + } + }); }
3199b01803f0b1b0f19367f40f627e6e795c5c0e
routes/index.js
routes/index.js
'use strict' const express = require ('express') const api = express.Router() const UserController = require ('../Controllers/UserController') const MatchController = require ('../Controllers/MatchController') const GunsController = require ('../Controllers/GunController') const DisparoController = require ('../Contr...
'use strict' const express = require ('express') const api = express.Router() const UserController = require ('../Controllers/UserController') const MatchController = require ('../Controllers/MatchController') const GunsController = require ('../Controllers/GunController') const DisparoController = require ('../Contr...
Index con todas las rutinas
Index con todas las rutinas
JavaScript
mit
javigines/LaserTagBackend
--- +++ @@ -23,8 +23,12 @@ //rutina de pistolas api.get('/getGuns', GunsController.getGuns) +api.get('/getGun', GunsController.getGun) +api.post('/createGun', GunsController.createGun) //rutina de disparos api.get('/getDisparo', DisparoController.getDisparo) +api.get('/getOneDisparo', DisparoController.getOne...
493616dcacbbf5d05ee3a6454e27cf111fe90192
vendor/ember-resolver/legacy-shims.js
vendor/ember-resolver/legacy-shims.js
/* globals define */ function createDeprecatedModule(moduleId) { define(moduleId, ['exports', 'ember-resolver/resolver', 'ember'], function(exports, Resolver, Ember) { Ember['default'].deprecate( 'Usage of `' + moduleId + '` module is deprecated, please update to `ember-resolver`.', false, { id...
/* globals define */ function createDeprecatedModule(moduleId) { define(moduleId, ['exports', 'dangerously-set-unified-resolver/resolver', 'ember'], function(exports, Resolver, Ember) { Ember['default'].deprecate( 'Usage of `' + moduleId + '` module is deprecated, please update to `ember-resolver`.', ...
Add proper lookup for new name to shims
Add proper lookup for new name to shims
JavaScript
mit
201-created/dangerously-set-unified-resolver,201-created/dangerously-set-unified-resolver
--- +++ @@ -1,7 +1,7 @@ /* globals define */ function createDeprecatedModule(moduleId) { - define(moduleId, ['exports', 'ember-resolver/resolver', 'ember'], function(exports, Resolver, Ember) { + define(moduleId, ['exports', 'dangerously-set-unified-resolver/resolver', 'ember'], function(exports, Resolver, Embe...
9387ea6745e1d16fb9db4bde8ea3907775ac1ca1
src/websocket-client.js
src/websocket-client.js
/** * @module src/websocket-client */ 'use strict' const Base = require('./base') const payload = 'a'.repeat(process.env.PB_PAYLOAD_BYTES) // ~1kb payload var count = 0 const limit = 5000 var start class WebsocketClient extends Base { constructor () { super() this._initWebsocketClient() start = new...
/** * @module src/websocket-client */ 'use strict' const Base = require('./base') const payload = 'a'.repeat(process.env.PB_PAYLOAD_BYTES) // ~1kb payload var count = 0 const limit = 5000 var start class WebsocketClient extends Base { constructor () { super() this._initWebsocketClient() this._ws.on...
Set start time after socket client connect event fires
Set start time after socket client connect event fires
JavaScript
mit
cflynn07/http-websockets-rabbitmq-perf-battle
--- +++ @@ -16,8 +16,11 @@ constructor () { super() this._initWebsocketClient() - start = new Date() - this._sendMessage() + this._ws.on('connect', () => { + start = new Date() + console.log('connect') + this._sendMessage() + }) } _sendMessage () {
bf891428f6312e500fbcf4387a5ddcd2f71c367e
addons/Dexie.Syncable/src/apply-changes.js
addons/Dexie.Syncable/src/apply-changes.js
import { CREATE, DELETE, UPDATE } from './change_types'; import bulkUpdate from './bulk-update'; export default function initApplyChanges(db) { return function applyChanges(changes, offset) { const length = changes.length; if (offset >= length) return Promise.resolve(null); const firstChange = changes[of...
import Dexie from 'dexie'; import { CREATE, DELETE, UPDATE } from './change_types'; import bulkUpdate from './bulk-update'; export default function initApplyChanges(db) { return function applyChanges(changes, offset) { const length = changes.length; if (offset >= length) return Dexie.Promise.resolve(null); ...
Use Dexie.Promise not the global Promise
Use Dexie.Promise not the global Promise
JavaScript
apache-2.0
chrahunt/Dexie.js,jimmywarting/Dexie.js,dfahlander/Dexie.js,dfahlander/Dexie.js,dfahlander/Dexie.js,chrahunt/Dexie.js,jimmywarting/Dexie.js,jimmywarting/Dexie.js,dfahlander/Dexie.js,jimmywarting/Dexie.js,chrahunt/Dexie.js,chrahunt/Dexie.js
--- +++ @@ -1,10 +1,11 @@ +import Dexie from 'dexie'; import { CREATE, DELETE, UPDATE } from './change_types'; import bulkUpdate from './bulk-update'; export default function initApplyChanges(db) { return function applyChanges(changes, offset) { const length = changes.length; - if (offset >= length) r...
e8c42800fa8045523beada8346684fa7f9beb252
client/js/mini-app/components/footer.js
client/js/mini-app/components/footer.js
import React from 'react' import { Link } from 'react-router-dom' import injectSheet from 'react-jss' import Spacer from '../../components/spacer' const MiniAppFooter = ({ classes }) => { return ( <div> <Spacer height="100px" /> <div className={classes.footerRoot}> <Link to="/about" className={classes.na...
import React from 'react' import { Link } from 'react-router-dom' import injectSheet from 'react-jss' import Spacer from '../../components/spacer' import LogoBetaWhite from '../../components/icons/icon-components/logo-beta-white' const MiniAppFooter = ({ classes }) => { return ( <div> <Spacer height="100px" /> ...
Add logo and fix styling
Add logo and fix styling
JavaScript
mit
HelpAssistHer/help-assist-her,HelpAssistHer/help-assist-her,HelpAssistHer/help-assist-her,HelpAssistHer/help-assist-her
--- +++ @@ -3,12 +3,14 @@ import injectSheet from 'react-jss' import Spacer from '../../components/spacer' +import LogoBetaWhite from '../../components/icons/icon-components/logo-beta-white' const MiniAppFooter = ({ classes }) => { return ( <div> <Spacer height="100px" /> <div className={classes.f...
fe58f040f946b86e91cc1028e7b0c3b537c35a41
Resources/public/openlayers.extension.js
Resources/public/openlayers.extension.js
(function () { "use strict"; $(document).ready(function () { OpenLayers.Feature.prototype.equals = function (feature) { return this.fid === feature.fid; }; OpenLayers.Feature.prototype.isNew = false; OpenLayers.Feature.prototype.isChanged = false; OpenLayers...
(function () { "use strict"; $(document).ready(function () { OpenLayers.Feature.prototype.equals = function (feature) { return this.fid === feature.fid; }; OpenLayers.Feature.prototype.isNew = false; OpenLayers.Feature.prototype.isChanged = false; OpenLayers...
Allow setting invisible for styled features
Allow setting invisible for styled features
JavaScript
mit
mapbender/mapbender-digitizer,mapbender/mapbender-digitizer
--- +++ @@ -32,7 +32,13 @@ if (!feature.visible) { feature.renderIntent = 'invisible'; + feature.deactivatedStyle = feature.style; + feature.style = null; + } else { + feature.style = feature.deactivatedStyle; } + + ...
d43f28c3782a5546f89b031d7ef7d9171fd000b1
src/App.js
src/App.js
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <h1>A12 Map</h1> </div> <p className="App-intro"> <div> </...
import React, { Component } from 'react'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <h1>A12 Map</h1> </div> <p className="App-intro"> <div> </div> </p> </div> ...
Remove import - test commit
Remove import - test commit
JavaScript
isc
a12map/a12-map,a12map/a12-map
--- +++ @@ -1,5 +1,4 @@ import React, { Component } from 'react'; -import logo from './logo.svg'; import './App.css'; class App extends Component {
3cb6ac2df454c2c7235972aad437f38473129d00
client/app/serializers/cabin.js
client/app/serializers/cabin.js
import DS from 'ember-data'; import ApplicationSerializer from '../serializers/application'; export default ApplicationSerializer.extend({ normalize: function (modelClass, resourceHash, prop) { var normalizedHash = resourceHash; var normalizedFasiliteter = []; // Maps `fasiliteter` object to an array o...
import DS from 'ember-data'; import ApplicationSerializer from '../serializers/application'; export default ApplicationSerializer.extend({ normalize: function (modelClass, resourceHash, prop) { var normalizedHash = resourceHash; var normalizedFasiliteter = []; // Maps `fasiliteter` object to an array o...
Fix bug occuring if fasiliteter is empty or does not exist
Fix bug occuring if fasiliteter is empty or does not exist
JavaScript
mit
Turistforeningen/Hytteadmin,Turistforeningen/Hytteadmin
--- +++ @@ -22,11 +22,14 @@ var json = this._super(snapshot, options); // Maps `fasiliteter` array back to object - var serializedFasiliteter = {}; - for (var i = 0; i < json.fasiliteter.length; i++) { - serializedFasiliteter[json.fasiliteter[i]['type']] = json.fasiliteter[i]['kommentar'] || ''...
620fd80afaaa89475ae9f4061cbd2071446c65d2
webpack.config.dev.js
webpack.config.dev.js
var path = require('path'); var webpack = require('webpack'); module.exports = { devtool: 'cheap-module-eval-source-map', entry: [ 'eventsource-polyfill', // necessary for hot reloading with IE 'webpack-hot-middleware/client', './src/index' ], output: { path: path.join(__dirname, 'dist'), f...
var path = require('path'); var webpack = require('webpack'); module.exports = { devtool: 'cheap-module-eval-source-map', entry: [ 'eventsource-polyfill', // necessary for hot reloading with IE 'webpack-hot-middleware/client', './src/index' ], output: { path: path.join(__dirname, 'dist'), f...
Allow JSX files to be included
Allow JSX files to be included
JavaScript
cc0-1.0
briandixn/react_fork,mtomcal/react-transform-boilerplate,babizhu/you-you,l2silver/react-redux-rest,JakeElder/m-s,rtablada/react-router-redux-boilerplate,osener/redux-purescript-example,leiming/pcgame-react-boilerplate,MarshalW/news-demo,JakeElder/m-s,mtomcal/react-transform-boilerplate,Neil-G/InspectionLog,gbezyuk/redu...
--- +++ @@ -19,7 +19,7 @@ ], module: { loaders: [{ - test: /\.js$/, + test: /\.jsx?/, loaders: ['babel'], include: path.join(__dirname, 'src') }]
15d5a67d65900272a117daea97e853355d72169d
squanch.js
squanch.js
const squanch = (...patterns) => { return v => { const primitives = ['Number', 'String', 'Boolean', 'Symbol']; const isIdentical = (p, v) => p === v; const isNull = (p, v) => isIdentical(null, p) && isIdentical(p, v); const isUndefined = (p, v) => isIdentical(undefined, p) && isIdentical(p, v); const isPrim...
const squanch = (...patterns) => { return v => { const primitives = ['Number', 'String', 'Boolean', 'Symbol']; const isIdentical = (p, v) => p === v; const isNull = (p, v) => isIdentical(null, p) && isIdentical(p, v); const isUndefined = (p, v) => isIdentical(undefined, p) && isIdentical(p, v); const isPrim...
Check if type is undefined first
Check if type is undefined first
JavaScript
mit
magbicaleman/squanch
--- +++ @@ -19,8 +19,8 @@ for (let sequence of patterns) { let [pattern, fn] = sequence; switch(true) { + case (isUndefined(pattern, v)) : case (isNull(pattern, v)) : - case (isUndefined(pattern, v)) : case (isIdentical(pattern, v)) : case (isPrimitiveWithValue(primitives, pattern, v))...
4f7626d98595cdabb90022879429f6e0fdcce9b2
examples/jquery/http-request.js
examples/jquery/http-request.js
/*global $:true */ // jQuery built with "grunt custom:-ajax/script,-ajax/jsonp,-css,-deprecated,-dimensions,-effects,-event,-event/alias,-offset,-wrap,-ready,-deferred,-exports/amd,-sizzle" // https://github.com/jquery/jquery#how-to-build-your-own-jquery tabris.load(function() { var MARGIN = 12; var lastLabel; ...
/*global $:true */ // jQuery built with "grunt custom:-ajax/script,-ajax/jsonp,-css,-deprecated,-dimensions,-effects,-event,-event/alias,-offset,-wrap,-ready,-deferred,-exports/amd,-sizzle" // https://github.com/jquery/jquery#how-to-build-your-own-jquery tabris.load(function() { var MARGIN = 12; var lastLabel; ...
Integrate recent changes in jquery demo
Integrate recent changes in jquery demo * Make use of the new append syntax which allows appending of multiple widgets. * Change obsolete "createPage" method invokation to "create". * Format the code. Change-Id: I67f617ae6a7cfd7896ac899719da3021d6b84744
JavaScript
bsd-3-clause
mkostikov/tabris-js,softnep0531/tabrisjs,eclipsesource/tabris-js,eclipsesource/tabris-js,eclipsesource/tabris-js,moham3d/tabris-js,softnep0531/tabrisjs,mkostikov/tabris-js,paulvi/tabris-js,pimaxdev/tabris,pimaxdev/tabris,moham3d/tabris-js
--- +++ @@ -6,18 +6,19 @@ var MARGIN = 12; var lastLabel; - var page = tabris.createPage({ + var page = tabris.create("Page", { title: "XMLHttpRequest", topLevel: true }); var createLabel = function(labelText) { - lastLabel = page.append("Label", { + lastLabel = tabris.create("Label"...
abf33d3feb7a0d488b13b895b7d6b7827bc29b45
src/peg.js
src/peg.js
/* * PEG.js @VERSION * * http://pegjs.majda.cz/ * * Copyright (c) 2010-2012 David Majda * Licensend under the MIT license. */ var PEG = (function(undefined) { var PEG = { /* PEG.js version. */ VERSION: "@VERSION", /* * Generates a parser from a specified grammar and returns it. * * The grammar m...
/* * PEG.js @VERSION * * http://pegjs.majda.cz/ * * Copyright (c) 2010-2012 David Majda * Licensend under the MIT license. */ var PEG = (function(undefined) { var PEG = { /* PEG.js version (uses semantic versioning). */ VERSION: "@VERSION", /* * Generates a parser from a specified grammar and returns ...
Add a note about semantic versioning to |PEG.VERSION| comment
Add a note about semantic versioning to |PEG.VERSION| comment
JavaScript
mit
GerHobbelt/pegjs,pegjs/pegjs,crguezl/pegjs,Mingun/pegjs,wwall/pegjs-fn,luisvt/pegjs,mcanthony/pegjs,jlturner/pegjs,Sciumo/pegjs,luisvt/pegjs,pegjs/pegjs,jlturner/pegjs,crguezl/pegjs,GerHobbelt/pegjs,wwall/pegjs-fn,Sciumo/pegjs,mcanthony/pegjs,Mingun/pegjs
--- +++ @@ -9,7 +9,7 @@ var PEG = (function(undefined) { var PEG = { - /* PEG.js version. */ + /* PEG.js version (uses semantic versioning). */ VERSION: "@VERSION", /*
ff163bfb68caf00240a345426be033e86b60da92
app/users/users.service.js
app/users/users.service.js
{ class UsersService { create(user) { console.log('CREATED!'); console.log(user); } } angular.module('meganote.users') .service('UsersService', UsersService); }
{ angular.module('meganote.users') .service('UsersService', [ '$http', 'API_BASE', ($http, API_BASE) => { class UsersService { create(user) { return $http.post(`${API_BASE}users`, { user, }) .then( res => { ...
Make a POST request to create a user.
Make a POST request to create a user.
JavaScript
mit
xternbootcamp16/meganote,xternbootcamp16/meganote
--- +++ @@ -1,11 +1,24 @@ { - class UsersService { - create(user) { - console.log('CREATED!'); - console.log(user); - } - } + angular.module('meganote.users') + .service('UsersService', [ + '$http', + 'API_BASE', + ($http, API_BASE) => { - angular.module('meganote.users') - ...
049cf58b08c8208ad970aa62665e90af971424df
feature-detects/notification.js
feature-detects/notification.js
/*! { "name": "Notifications", "property": "notification", "caniuse": "notifications", "authors": ["Theodoor van Donge"], "notes": [{ "name": "HTML5 Rocks tutorial", "href": "http://www.html5rocks.com/en/tutorials/notifications/quick/" },{ "name": "W3C spec", "href": "http://dev.w3.org/2006/...
/*! { "name": "Notification", "property": "notification", "caniuse": "notifications", "authors": ["Theodoor van Donge", "Hendrik Beskow"], "notes": [{ "name": "HTML5 Rocks tutorial", "href": "http://www.html5rocks.com/en/tutorials/notifications/quick/" },{ "name": "W3C spec", "href": "www.w3...
Check for useable Notification Api
Check for useable Notification Api
JavaScript
mit
Modernizr/Modernizr,Modernizr/Modernizr
--- +++ @@ -1,24 +1,24 @@ /*! { - "name": "Notifications", + "name": "Notification", "property": "notification", "caniuse": "notifications", - "authors": ["Theodoor van Donge"], + "authors": ["Theodoor van Donge", "Hendrik Beskow"], "notes": [{ "name": "HTML5 Rocks tutorial", "href": "http://...
38abd989fde3c3cef15042944bddb798e93b8820
Js/Core/Lib/Core/Page.js
Js/Core/Lib/Core/Page.js
import _ from 'lodash'; class Page { loadScript(url) { return new Promise(resolve => { const s = document.createElement('script'); s.type = 'text/javascript'; s.src = url; s.async = true; s.onload = resolve; document.body.appendChild(s...
import _ from 'lodash'; class Page { loadScript(url) { return new Promise(resolve => { // Is it already inserted, possibly with server-side rendering? if (document.querySelectorAll(`script[src="${url}"]`).length) { return; } const s = document...
Check - don't insert script tags twice.
Check - don't insert script tags twice.
JavaScript
mit
Webiny/Webiny,Webiny/Webiny,Webiny/Webiny
--- +++ @@ -3,6 +3,10 @@ class Page { loadScript(url) { return new Promise(resolve => { + // Is it already inserted, possibly with server-side rendering? + if (document.querySelectorAll(`script[src="${url}"]`).length) { + return; + } const s ...
beeaf2f6431f76f58e1488cee7c0f8b64876a8fc
mixmind/static/js/collapse_remember.js
mixmind/static/js/collapse_remember.js
/* Collapse remember * Use a cookie to "remember" the state of bootstrap collapse divs * use the 'collapse-remember' class to get this functionality */ $(document).ready(function () { const state_cookie_c = 'collapse-remember'; var page = window.location.pathname; var state = Cookies.getJSON(state_cookie...
/* Collapse remember * Use a cookie to "remember" the state of bootstrap collapse divs * use the 'collapse-remember' class to get this functionality */ $(document).ready(function () { const state_cookie_c = 'collapse-remember'; var page = window.location.pathname; var state = Cookies.getJSON(state_cookie...
Use more updated api methods
Use more updated api methods
JavaScript
apache-2.0
twschum/mix-mind,twschum/mix-mind,twschum/mix-mind,twschum/mix-mind
--- +++ @@ -14,11 +14,11 @@ Object.keys(state[page]).forEach(function (collapse_id) { if (state[page][collapse_id]) { console.log('showing: '+collapse_id); - $('#'+collapse_id).addClass('show'); + $('#'+collapse_id).collapse('show'); } ...
9827a836cc32bbe225cd335a1a1c36d91ab89ee8
server/utils.js
server/utils.js
const mergePermanentAndMetadata = (perm, meta) => Object.assign(perm, meta); const broadcast = (socket, channel, payload, metadata) => { const obj = mergePermanentAndMetadata({ type: channel, }, metadata); obj.data = payload; socket.broadcast.emit('action', obj); }; const emit = (socket, channel, payload,...
const mergePermanentAndMetadata = (perm, meta) => Object.assign(perm, meta); const createSocketObject = (channel, payload, metadata) => { const obj = mergePermanentAndMetadata({ type: channel, }, metadata); obj.data = payload; return obj; }; const broadcast = (socket, channel, payload, metadata) => { so...
Reduce code duplication in emit and broadcast
Reduce code duplication in emit and broadcast
JavaScript
mit
dotkom/super-duper-fiesta,dotkom/super-duper-fiesta,dotkom/super-duper-fiesta
--- +++ @@ -1,19 +1,19 @@ const mergePermanentAndMetadata = (perm, meta) => Object.assign(perm, meta); -const broadcast = (socket, channel, payload, metadata) => { +const createSocketObject = (channel, payload, metadata) => { const obj = mergePermanentAndMetadata({ type: channel, }, metadata); obj.da...
b3c1ba0a91527c3ba4fcff15d578d91c373965d9
src/fix.js
src/fix.js
"use strict"; /** * Fix operator that continuously resolves next promise returned from the function that consumes * resolved previous value. * * ```javascript * fix(fn)(promise).catch(errorHandler); * ``` * * is equivalent to: * * ```javascript * promise.then(fn).then(fn).then(fn) ... * .catch(errorHandl...
"use strict"; /** * Fix operator that continuously resolves next promise returned from the function that consumes * resolved previous value. * * ```javascript * fix(fn)(promise).catch(errorHandler); * ``` * * is equivalent to: * * ```javascript * promise.then(fn).then(fn).then(fn) ... * .catch(errorHandl...
Remove unnecessary branching and pass reject handler as second args to then()
Remove unnecessary branching and pass reject handler as second args to then()
JavaScript
apache-2.0
google/chained-promise
--- +++ @@ -24,20 +24,14 @@ var resolver = (v) => { try { var nextPromise = fn(v); - nextPromise.then(resolver); - if (nextPromise.catch) { - nextPromise.catch(rejecter); - } + nextPromise.then(resolver, rejecter); } catch(err) { rejecter(err); } }; ret...
6f84cac688110a14ff91643b5ec287f06977908d
test/test-functional.js
test/test-functional.js
var _ = require('lodash'); var assert = require("assert"); var exec = require('child_process').exec; describe('githours', function() { describe('cli', function() { it('should output json', function(done) { exec('node index.js', function(err, stdout, stderr) { if (err !== null)...
var _ = require('lodash'); var assert = require("assert"); var exec = require('child_process').exec; describe('githours', function() { describe('cli', function() { it('should output json', function(done) { exec('node index.js', function(err, stdout, stderr) { if (err !== null)...
Add console.log to test to find out travis problem
Add console.log to test to find out travis problem
JavaScript
mit
mrPjer/git-hours,qgustavor/git-hours,kimmobrunfeldt/git-hours
--- +++ @@ -12,6 +12,7 @@ throw new Error(stderr); } + console.log('output json', stdout); var work = JSON.parse(stdout); assert.notEqual(work.total.hours.length, 0); assert.notEqual(work.total.commits.length, 0)...
711c564e7975141c7f9c594e45fc7c9ae72ce12b
route-urls.js
route-urls.js
angular.module("routeUrls", []) .factory("urls", function($route) { var pathsByName = {}; angular.forEach($route.routes, function (route, path) { if (route.name) { pathsByName[route.name] = path; } }); var regexs = {}; var path = function (name, params) { var ...
angular.module("routeUrls", []) .factory("urls", function($route) { // Cache the routing paths for any named routes. var pathsByName = {}; angular.forEach($route.routes, function (route, path) { if (route.name) { pathsByName[route.name] = path; } }); // Param name to r...
Add a few comments and make whitespace more consistent.
Add a few comments and make whitespace more consistent. I realise 2 spaces is common in JS-land but I started using 4 so I win for now ;).
JavaScript
mit
emgee/angular-route-urls,emgee/angular-route-urls
--- +++ @@ -2,6 +2,7 @@ .factory("urls", function($route) { + // Cache the routing paths for any named routes. var pathsByName = {}; angular.forEach($route.routes, function (route, path) { if (route.name) { @@ -9,15 +10,17 @@ } }); + // Param name to replacement regex cac...
ce75ba9a99e5fc3012822d6159beac34f6fbb86d
generators/app/steps/install.js
generators/app/steps/install.js
/** * Step 7 * Where installation are run (npm, bower) */ module.exports = { /** * Install npm dependencies */ installNpmDependencies: function () { if (!(this.options['skip-project-install'] || this.options["skip-all"])) { this.log(chalk.yellow("Start installing npm dependenci...
/** * Step 7 * Where installation are run (npm, bower) */ var chalk = require('chalk'); module.exports = { /** * Install npm dependencies */ installNpmDependencies: function () { if (!(this.options['skip-project-install'] || this.options["skip-all"])) { this.log(chalk.yellow("...
Fix bug with chalk undefined
Fix bug with chalk undefined
JavaScript
mit
ghaiklor/generator-sails-rest-api,konstantinzolotarev/generator-trails,jaumard/generator-trails,synergycns/generator-sails-rest-api,italoag/generator-sails-rest-api,italoag/generator-sails-rest-api,ghaiklor/generator-sails-rest-api,tnunes/generator-trails,eithewliter5518/generator-sails-rest-api,mhipo1364/generator-sai...
--- +++ @@ -2,6 +2,8 @@ * Step 7 * Where installation are run (npm, bower) */ + +var chalk = require('chalk'); module.exports = { /**
f6a31edd9064612e90c42c007e72bac4508ee66c
bracket-push/bracket_push_test.spec.js
bracket-push/bracket_push_test.spec.js
var bracket = require('./bracket_push'); describe('bracket push', function() { it('checks for appropriate bracketing in a set of brackets', function() { expect(bracket('{}')).toEqual(true); }); xit('returns false for unclosed brackets', function() { expect(bracket('{{')).toEqual(false); }); xit('re...
var bracket = require('./bracket_push'); describe('bracket push', function() { it('checks for appropriate bracketing in a set of brackets', function() { expect(bracket('{}')).toEqual(true); }); xit('returns false for unclosed brackets', function() { expect(bracket('{{')).toEqual(false); }); xit('re...
Add test for proper nesting
bracket-push: Add test for proper nesting This rules out solutions that simply count the number of open/close brackets without regard for whether they are properly nested. I submitted a solution (in another language track) that would have failed this test and did not realize it until looking at others' solutions. It ...
JavaScript
mit
marcCanipel/xjavascript,exercism/xjavascript,exercism/xjavascript,cloudleo/xjavascript,marcCanipel/xjavascript,cloudleo/xjavascript
--- +++ @@ -21,6 +21,10 @@ expect(bracket('{[]}')).toEqual(true); }); + xit('rejects brackets that are properly balanced but improperly nested', function() { + expect(bracket('{[}]')).toEqual(false); + }); + xit('checks bracket closure with deeper nesting', function() { expect(bracket('{[)][]}'...
224b6d4018466cbd3a6b174a89cf03668c64762e
stylish.js
stylish.js
'use strict'; var chalk = require('chalk'); var table = require('text-table'); module.exports = { reporter: function (result, config, options) { var total = result.length; var ret = ''; var headers = []; var prevfile; options = options || {}; ret += table(result.map(function (el, i) { var err = el.er...
'use strict'; var chalk = require('chalk'); var table = require('text-table'); module.exports = { reporter: function (result, config, options) { var total = result.length; var ret = ''; var headers = []; var prevfile; options = options || {}; ret += table(result.map(function (el, i) { var err = el.er...
Improve output when there are no lint problems
Improve output when there are no lint problems
JavaScript
mit
jasonkarns/jshint-stylish,sindresorhus/jshint-stylish,southan/jshint-stylish,sterpe/jshint-stylish
--- +++ @@ -36,11 +36,12 @@ }).join('\n') + '\n\n'; if (total > 0) { - ret += chalk.red.bold('✖ ' + total + ' problem' + (total === 1 ? '' : 's') + '\n'); + ret += chalk.red.bold('✖ ' + total + ' problem' + (total === 1 ? '' : 's')); } else { - ret += chalk.green.bold('✔ No problems\n'); + ret += c...
1615e6726c0c03273be21a43a9e084cb1af3c658
randomize.js
randomize.js
/** * Name: Randomize * Author: Matheus Lucca do Carmo (matheuslc) * @version: 0.1 * @module randomize */ 'use strict' /** * Select a random item in a range. * * @param {Number} firstvalue First value of range. * @param {Number} secondvalue Second value of range. * @returns {Number} A random number beetween first...
/** * Name: Randomize * Author: Matheus Lucca do Carmo (matheuslc) * @version: 0.1 * @module randomize */ /** * Select a random item in a range. * * @param {Number} firstvalue First value of range. * @param {Number} secondvalue Second value of range. * @returns {Number} A random number beetween f...
Add support to decimal number
Add support to decimal number
JavaScript
mit
matheuslc/js-tools
--- +++ @@ -6,14 +6,15 @@ */ -'use strict' + + /** * Select a random item in a range. * -* @param {Number} firstvalue First value of range. -* @param {Number} secondvalue Second value of range. -* @returns {Number} A random number beetween first and second range. +* @param {Number} firstvalue First v...
d2faeb720f2ca9dc10dff8dba8e229b7fbe3004c
addons/knobs/src/components/PropField.js
addons/knobs/src/components/PropField.js
import PropTypes from 'prop-types'; import React from 'react'; import styled from 'react-emotion'; import TypeMap from './types'; const InvalidType = () => <span>Invalid Type</span>; const Field = styled('div')({ display: 'table-row', padding: '5px', }); const Label = styled('label')({ display: 'table-cell', ...
import PropTypes from 'prop-types'; import React from 'react'; import { Field } from '@storybook/components'; import TypeMap from './types'; const InvalidType = () => <span>Invalid Type</span>; export default function PropField({ onChange, onClick, knob }) { const InputType = TypeMap[knob.type] || InvalidType; r...
REFACTOR knobs field to use field component
REFACTOR knobs field to use field component
JavaScript
mit
storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook
--- +++ @@ -1,32 +1,15 @@ import PropTypes from 'prop-types'; import React from 'react'; -import styled from 'react-emotion'; +import { Field } from '@storybook/components'; import TypeMap from './types'; const InvalidType = () => <span>Invalid Type</span>; -const Field = styled('div')({ - display: 'table-...
30b483bc0d02cf0659c937c83c87824859c64452
packages/app/source/client/components/registration-form/registration-form.js
packages/app/source/client/components/registration-form/registration-form.js
Space.flux.BlazeComponent.extend(Donations, 'OrgRegistrationForm', { dependencies: { store: 'Donations.OrgRegistrationsStore' }, state() { return this.store; }, isCountry(country) { return this.store.orgCountry() === country ? true : false; }, events() { return [{ 'keyup input': ...
Space.flux.BlazeComponent.extend(Donations, 'OrgRegistrationForm', { ENTER: 13, dependencies: { store: 'Donations.OrgRegistrationsStore' }, state() { return this.store; }, isCountry(country) { return this.store.orgCountry() === country ? true : false; }, events() { return [{ '...
Add enter keymap to OrgRegistration
Add enter keymap to OrgRegistration
JavaScript
mit
meteor-space/donations,meteor-space/donations,meteor-space/donations
--- +++ @@ -1,4 +1,6 @@ Space.flux.BlazeComponent.extend(Donations, 'OrgRegistrationForm', { + + ENTER: 13, dependencies: { store: 'Donations.OrgRegistrationsStore' @@ -20,7 +22,10 @@ }]; }, - _onInputChange() { + _onInputChange(event) { + if(event.keyCode === this.ENTER) { + this._onS...
b6d9b41f4d31008f8bafdc1b03f7abb00a1b0f32
scripts/lib/hbs2html.js
scripts/lib/hbs2html.js
const CleanCss = require(`clean-css`); const Handlebars = require(`handlebars`); const htmlclean = require(`htmlclean`); const path = require(`path`); const uncss = require(`uncss`); const fixPreIdentation = require(`./fix-pre-identation.js`); const handlebarsRegisterPartials = require(`./handlebars-register-partials....
const CleanCss = require(`clean-css`); const Handlebars = require(`handlebars`); const htmlclean = require(`htmlclean`); const path = require(`path`); const uncss = require(`uncss`); const fixPreIdentation = require(`./fix-pre-identation.js`); const handlebarsRegisterPartials = require(`./handlebars-register-partials....
Enable semantic merging for clean css
Enable semantic merging for clean css
JavaScript
mit
avalanchesass/avalanche-website,avalanchesass/avalanche-website
--- +++ @@ -17,7 +17,9 @@ if (minify) { uncss(html, { htmlroot: `dist` }, (error, output) => { - const minifiedCss = new CleanCss().minify(output).styles; + const minifiedCss = new CleanCss({ + semanticMerging: true + }).minify(output).styles; // eslint-disable-next-line no-para...
e2821b56fb7cc4f3917e6c124f0e025c60a234a2
integration_tests/setupStore.js
integration_tests/setupStore.js
// @flow import { createStore, combineReducers, applyMiddleware } from 'redux' import { routerReducer, routerMiddleware } from 'react-router-redux' import { createMemoryHistory } from 'history' import { createReducer } from 'redux-orm' import createSagaMiddleware from 'redux-saga' import sinon from 'sinon' import orm f...
// @flow import { createStore, combineReducers, applyMiddleware } from 'redux' import { routerReducer, routerMiddleware } from 'react-router-redux' import { createMemoryHistory } from 'history' import { createReducer } from 'redux-orm' import createSagaMiddleware from 'redux-saga' import sinon from 'sinon' import orm f...
Fix flow error in test store setup.
fix(flow): Fix flow error in test store setup.
JavaScript
mit
jsonnull/aleamancer,jsonnull/aleamancer
--- +++ @@ -29,6 +29,7 @@ const sagaMiddleware = createSagaMiddleware() const middleware = [routerMiddleware(history), sagaMiddleware] + // $FlowFixMe: This is erroring for some reason let store = createStore(reducer, applyMiddleware(...middleware)) sagaMiddleware.run(sagas)
7982778a48bbc37bfb2ec2faccdde9ba7185d772
server/config/routes.js
server/config/routes.js
'use strict'; const passport = require('passport'); const main = require('../app/controllers/main'); const api = require('../app/controllers/api'); const auth = require('../app/controllers/auth'); /** * Expose routes */ module.exports = function applyRoutes(app) { app.get('/', main.index); app.post('/auth/tok...
'use strict'; const passport = require('passport'); const main = require('../app/controllers/main'); const api = require('../app/controllers/api'); const auth = require('../app/controllers/auth'); /** * Expose routes */ module.exports = function applyRoutes(app) { app.get('/', main.index); app.post('/auth/tok...
Add api endpoint to delete portion
Add api endpoint to delete portion
JavaScript
mit
yandex-shri-minsk-2016/yummy-time,yandex-shri-minsk-2016/yummy-time,yandex-shri-minsk-2016/yummy-time
--- +++ @@ -18,6 +18,7 @@ app.get('/:type(orders|accounts|portions|vendors)', passport.authenticate('jwt'), api); app.get('/:type(orders|accounts|portions|vendors)/:id', passport.authenticate('jwt'), api); app.patch('/:type(orders|portions)/:id', passport.authenticate('jwt'), api); + app.delete('/:type(port...
3306cc641858b74932cc80de9ff3fc69bf54d6f1
run_tests.js
run_tests.js
#!/usr/bin/env node try { const reporter = require('nodeunit').reporters.default; } catch(e) { console.log("Cannot find nodeunit module."); console.log("Make sure to run 'npm install nodeunit'"); process.exit(); } process.chdir(__dirname); reporter.run(['test/'], null, function(failure) { process.ex...
#!/usr/bin/env node let reporter; try { reporter = require('nodeunit').reporters.default; } catch(e) { console.log("Cannot find nodeunit module."); console.log("Make sure to run 'npm install nodeunit'"); process.exit(); } process.chdir(__dirname); reporter.run(['test/'], null, function(failure) { pr...
Correct reporter decleration in test runner
Correct reporter decleration in test runner
JavaScript
mit
etsy/statsd,etsy/statsd,etsy/statsd
--- +++ @@ -1,6 +1,7 @@ #!/usr/bin/env node +let reporter; try { - const reporter = require('nodeunit').reporters.default; + reporter = require('nodeunit').reporters.default; } catch(e) { console.log("Cannot find nodeunit module.");
d4a3b8492abef145294e5cb86e0e467b6777af1b
extension/js/insert.js
extension/js/insert.js
helloTest(); function helloTest() { var elems = document.getElementsByTagName('input'); for(var i=0; i< elems.length; i++) { console.log(elems[i].id); } var amazonBox = document.getElementById("twotabsearchtextbox"); amazonBox.value="Hello"; }
helloTest(); function helloTest() { var elems = document.getElementsByTagName('input'); for(var i=0; i< elems.length; i++) { console.log(elems[i].id); } var amazonBox = document.getElementById("gcpromoinput"); amazonBox.value="Hello"; }
Insert 'hello' into the amazon voucher code box.
Insert 'hello' into the amazon voucher code box.
JavaScript
mit
npentrel/couper,npentrel/couper,npentrel/couper
--- +++ @@ -6,6 +6,6 @@ console.log(elems[i].id); } - var amazonBox = document.getElementById("twotabsearchtextbox"); + var amazonBox = document.getElementById("gcpromoinput"); amazonBox.value="Hello"; }
19255e40dbd9c234be4b87d199a1a1bae49392f0
packages/base/resources/js/main_page.js
packages/base/resources/js/main_page.js
function generate_board_page(that, board_id){ var bp_node = that.nodeById('board_page'); }
function generate_board_page(that, board_id){ /* Generate the board page */ // Gets the node of board page var bp_node = that.nodeById('board_page'); // Make a serverCall to gets lists and cards related // to the board. var result = genro.serverCall( 'get_lists_cards', {board_i...
Make a serverCall and set returned values to the datapath
Make a serverCall and set returned values to the datapath
JavaScript
mit
mkshid/genrello,mkshid/genrello,mkshid/genrello
--- +++ @@ -1,4 +1,17 @@ function generate_board_page(that, board_id){ + /* Generate the board page */ + + // Gets the node of board page var bp_node = that.nodeById('board_page'); - + + // Make a serverCall to gets lists and cards related + // to the board. + var result = genro.serverCall( +...
9a48444a052443c72b57a5ca57f54635d900d5e7
commands/reload.js
commands/reload.js
exports.names = ['reload']; exports.hidden = true; exports.enabled = true; exports.cdAll = 60; exports.cdUser = 60; exports.cdStaff = 60; exports.minRole = PERMISSIONS.MANAGER; exports.handler = function (data) { loadCommands(); loadResponses(); };
exports.names = ['reload']; exports.hidden = true; exports.enabled = true; exports.cdAll = 60; exports.cdUser = 60; exports.cdStaff = 60; exports.minRole = PERMISSIONS.MANAGER; exports.handler = function (data) { config = require(dpath.resolve(__dirname, 'config.json')); loadEvents(bot); loadCommands(bot)...
Fix lookup for username to try to use the db value
Fix lookup for username to try to use the db value
JavaScript
mit
avatarkava/beavisbot-dubtrack-fm,avatarkava/beavisbot-dubtrack-fm,avatarkava/BeavisBot,avatarkava/BeavisBot
--- +++ @@ -6,7 +6,11 @@ exports.cdStaff = 60; exports.minRole = PERMISSIONS.MANAGER; exports.handler = function (data) { - loadCommands(); - loadResponses(); + + config = require(dpath.resolve(__dirname, 'config.json')); + + loadEvents(bot); + loadCommands(bot); + loadExtensions(bot); };
42ecee42a196d3e336ae6c0ac5c8a15c33ed51cc
js/lib/utils/patchMithril.js
js/lib/utils/patchMithril.js
import Component from '../Component'; export default function patchMithril(global) { const mo = global.m; const m = function(comp, ...args) { if (comp.prototype && comp.prototype instanceof Component) { return comp.component(...args); } const node = mo.apply(this, arguments); if (node.attr...
import Component from '../Component'; export default function patchMithril(global) { const mo = global.m; const m = function(comp, ...args) { if (comp.prototype && comp.prototype instanceof Component) { return comp.component(args[0], args.slice(1)); } const node = mo.apply(this, arguments); ...
Make sure components receive all children properly
Make sure components receive all children properly
JavaScript
mit
flarum/core,malayladu/core,malayladu/core,datitisev/core,datitisev/core,Luceos/core,Luceos/core,flarum/core,malayladu/core,Luceos/core,flarum/core,datitisev/core,malayladu/core,datitisev/core,Luceos/core
--- +++ @@ -5,7 +5,7 @@ const m = function(comp, ...args) { if (comp.prototype && comp.prototype instanceof Component) { - return comp.component(...args); + return comp.component(args[0], args.slice(1)); } const node = mo.apply(this, arguments);
0180745e31241aa17938edc84ae7708b88940bf3
documentation/.eslintrc.js
documentation/.eslintrc.js
module.exports = { root: false, plugins: ['markdown'], globals: { expect: false }, rules: { 'no-unused-vars': 0, 'no-undef': 0 } };
module.exports = { root: false, plugins: ['markdown'], globals: { expect: false }, rules: { 'no-unused-vars': 0, 'no-undef': 0 }, parser: 'esprima', parserOptions: { tolerant: true } };
Switch to esprima and parse in tolerant mode to allow global return
Switch to esprima and parse in tolerant mode to allow global return
JavaScript
mit
unexpectedjs/unexpected
--- +++ @@ -7,5 +7,9 @@ rules: { 'no-unused-vars': 0, 'no-undef': 0 + }, + parser: 'esprima', + parserOptions: { + tolerant: true } };
c6364cdec25535a69fc835f7f448870f81e9d698
src/app/directives/passwordInput.directive.js
src/app/directives/passwordInput.directive.js
import nem from "nem-sdk"; function PasswordInput() { 'ngInject'; return { restrict:'E', scope: { common: '=' }, template: '<ng-include src="templatePasswordInput"/>', link: (scope) => { scope.templatePasswordInput = 'layout/partials/passwordInput.html...
import nem from "nem-sdk"; function PasswordInput(Wallet) { 'ngInject'; return { restrict:'E', scope: { common: '=' }, template: '<ng-include src="templatePasswordInput"/>', link: (scope) => { scope.Wallet = Wallet; scope.templatePasswordIn...
Fix password input showing in trezor
Fix password input showing in trezor
JavaScript
mit
mizunashi/NanoWallet,mizunashi/NanoWallet
--- +++ @@ -1,6 +1,6 @@ import nem from "nem-sdk"; -function PasswordInput() { +function PasswordInput(Wallet) { 'ngInject'; return { @@ -10,6 +10,7 @@ }, template: '<ng-include src="templatePasswordInput"/>', link: (scope) => { + scope.Wallet = Wallet; s...
3fc461c7427b9a883e4c2bb0230648fc2a77f425
server/modules/generate-wishlist.js
server/modules/generate-wishlist.js
const _generate_wishlist = (max) => { let wishlist = []; for (let i=0; i<max; i++) { wishlist.push(faker.lorem.sentence()); } return wishlist; }; Modules.server.generateWishlist = _generate_wishlist; Meteor.methods({ generateWishlist(max) { check(max, Number); return Modules.server.generateWishl...
const _generate_wishlist = (max) => { let wishlist = []; for (let i=0; i<max; i++) { wishlist.push( {title: faker.lorem.sentence()} ); } return wishlist; }; Modules.server.generateWishlist = _generate_wishlist; Meteor.methods({ generateWishlist(max) { check(max, Number); return Modules.server.ge...
Return faked wishlist as object array.
Return faked wishlist as object array.
JavaScript
mit
lnwKodeDotCom/WeWish,lnwKodeDotCom/WeWish
--- +++ @@ -1,7 +1,7 @@ const _generate_wishlist = (max) => { let wishlist = []; for (let i=0; i<max; i++) { - wishlist.push(faker.lorem.sentence()); + wishlist.push( {title: faker.lorem.sentence()} ); } return wishlist; };
e494ed7ba855be36cca325d398635e38f5bb7e0e
src/String.js
src/String.js
/** * Has Vowels * * hasVowel tests if the String calling the function has a vowels * * @param {void} * @return {Boolean} returns true or false indicating if the string * has a vowel or not */ String.prototype.hasVowels = function() { var inputString = this; return /[aeiou]/gi.test(inputString); }; /...
/** * Has Vowels * * hasVowel tests if the String calling the function has a vowels * * @param {void} * @return {Boolean} returns true or false indicating if the string * has a vowel or not */ String.prototype.hasVowels = function() { var inputString = this; return /[aeiou]/gi.test(inputString); }; /...
Fix a tab/space issue coming up on github
Fix a tab/space issue coming up on github
JavaScript
mit
andela-oolutola/string-class,andela-oolutola/string-class
--- +++ @@ -44,7 +44,8 @@ * capitalised */ String.prototype.ucFirst = function() { - return this.replace(/^[a-z]/g, function(item, position, string) { + // get the first character + return this.replace(/^[a-z]/g, function(item, position, string) { return item.toUpper(); }); };
67eb5244817c1475a7f4832932cc59ae8daceded
src/javascript/binary_japan/knowledge_test.js
src/javascript/binary_japan/knowledge_test.js
pjax_config_page_require_auth("account/knowledgetest", function(){ return { onLoad: function() { KnowledgeTest.init(); } }; });
pjax_config_page_require_auth("account/knowledgetest", function(){ // TODO: show meaningful msg var cannotTakeKnowledgeTest = function() { window.location.href = page.url.url_for('user/my_accountws'); }; return { onLoad: function() { BinarySocket.init({ onme...
Integrate with backend for status checking
Integrate with backend for status checking
JavaScript
apache-2.0
junbon/binary-static-www2,junbon/binary-static-www2
--- +++ @@ -1,7 +1,41 @@ pjax_config_page_require_auth("account/knowledgetest", function(){ + + // TODO: show meaningful msg + var cannotTakeKnowledgeTest = function() { + window.location.href = page.url.url_for('user/my_accountws'); + }; + return { onLoad: function() { - Kno...
abf757a2ee1b6f2c196627bd9b1c8f1374b04e3d
initializers/_project.js
initializers/_project.js
exports._project = function(api, next){ var mongoose = require('mongoose'); var uri = process.env.MONGOLAB_URI || 'mongodb://localhost/forest'; var orgSchema = { name: String, printers: [ mongoose.Schema.Types.ObjectId ], users: [ mongoose.Schema.Types.ObjectId ], public: Boolean...
exports._project = function(api, next){ var mongoose = require('mongoose'); var uri = process.env.MONGOLAB_URI || 'mongodb://localhost/forest'; var orgSchema = { name: String, printers: [ mongoose.Schema.Types.ObjectId ], users: [ mongoose.Schema.Types.ObjectId ], public: Boolean...
Add ObjectId to api for more concise code
Add ObjectId to api for more concise code
JavaScript
mit
printerSystemCSI210/api-server
--- +++ @@ -49,6 +49,7 @@ mongoose.model('App', appSchema); api.mongoose = mongoose; + api.ObjectId = mongoose.Types.ObjectId; next(); };
644ec4e541f1db7f8b229148e5d19c495a5ff4c5
ode/public/js/browser.js
ode/public/js/browser.js
$(document).ready(function() { $('.rule-item').on('mouseenter', function() { $(this).addClass('highlighted'); var controls = $('<span>').addClass('pull-right controls'); controls.append($.editButton($(this).attr('id'))); controls.append($.removeButton($(this).attr('id'))); $(this).find('h2').appe...
var Rule = Backbone.Model.extend({ initialize: function() { this.urlRoot = '/rules'; }, }); $(document).ready(function() { $('.rule-item').on('mouseenter', function() { $(this).addClass('highlighted'); var controls = $('<span>').addClass('pull-right controls'); controls.append($.editButton($(t...
Delete feature when clicking its `.remove-button` in Rule Browser.
Delete feature when clicking its `.remove-button` in Rule Browser.
JavaScript
agpl-3.0
itsjeyd/ODE,itsjeyd/ODE,itsjeyd/ODE,itsjeyd/ODE
--- +++ @@ -1,3 +1,11 @@ +var Rule = Backbone.Model.extend({ + + initialize: function() { + this.urlRoot = '/rules'; + }, + +}); + $(document).ready(function() { $('.rule-item').on('mouseenter', function() { @@ -11,7 +19,12 @@ window.location.href = document.URL + '/' + ruleID + '/input'; ...
41f3e20cdd44942a0783739f31e7e261622d5113
templates/app/_gulpfile.config.js
templates/app/_gulpfile.config.js
module.exports = function () { var outputPath = "./<%= outFolder %>/"; var src = "./<%= srcFolder %>/"; var config = { vendor: { destPath: outputPath + "js", src: [] }, templates: src + "**/*.tpl.html", scss: { entry: src + "styles/<%= app...
module.exports = function () { var outputPath = "./<%= outFolder %>/"; var src = "./<%= srcFolder %>/"; var config = { vendor: { destPath: outputPath + "js", src: [] }, templates: src + "**/*.tpl.html", scss: { entry: src + "styles/<%= hAp...
Fix an error causing the css not being generated
Fix an error causing the css not being generated
JavaScript
mit
Kurtz1993/ngts-cli,Kurtz1993/ngts-cli,Kurtz1993/ngts-cli
--- +++ @@ -9,7 +9,7 @@ }, templates: src + "**/*.tpl.html", scss: { - entry: src + "styles/<%= appName %>.scss", + entry: src + "styles/<%= hAppName %>.scss", src: [src + "**/*.scss"], destPath: outputPath + "css" },
2e150a8214e181730cce297b2e0fcf3a7965cec0
app/components/search.js
app/components/search.js
const React = require('react') const Search = React.createClass({ propTypes: { value: React.PropTypes.string.isRequired, handleQueryChange: React.PropTypes.func.isRequired, }, getInitialState () { return { input: null, } }, focus () { this.state.input && this.state.input.focus() ...
const React = require('react') const Search = React.createClass({ propTypes: { value: React.PropTypes.string.isRequired, handleQueryChange: React.PropTypes.func.isRequired, }, getInitialState () { return { input: null, } }, focus () { this.state.input && this.state.input.focus() ...
Revert "Fix alert beep on osx"
Revert "Fix alert beep on osx"
JavaScript
mit
tinytacoteam/zazu,tinytacoteam/zazu
--- +++ @@ -26,12 +26,6 @@ } }, - handleKeyPress (event) { - if (event.keyCode === 13 && event.keyCode === 27) { - return false - } - }, - handleQueryChange (event) { const query = event.target.value this.props.handleQueryChange(query) @@ -52,7 +46,6 @@ className='mousetra...
bb3f72f192c02522a36b1797c5a2b0677add8086
client/app/scripts/controllers/login.js
client/app/scripts/controllers/login.js
'use strict'; GLClient.controller('LoginCtrl', ['$scope', '$location', '$routeParams', 'Authentication', 'Receivers', function($scope, $location, $routeParams, Authentication, Receivers) { var src = $routeParams['src']; $scope.loginUsername = ""; $scope.loginPassword = ""; $scope...
'use strict'; GLClient.controller('LoginCtrl', ['$scope', '$location', '$routeParams', 'Authentication', 'Receivers', function($scope, $location, $routeParams, Authentication) { var src = $routeParams['src']; $scope.loginUsername = ""; $scope.loginPassword = ""; $scope.loginRole ...
Remove unused resource fetching of receivers
Remove unused resource fetching of receivers
JavaScript
agpl-3.0
vodkina/GlobaLeaks,vodkina/GlobaLeaks,vodkina/GlobaLeaks,vodkina/GlobaLeaks
--- +++ @@ -2,16 +2,12 @@ GLClient.controller('LoginCtrl', ['$scope', '$location', '$routeParams', 'Authentication', 'Receivers', - function($scope, $location, $routeParams, Authentication, Receivers) { + function($scope, $location, $routeParams, Authentication) { var src = $routeParams...
e2eadee1d412885a701f2f7b25222d3762f696e2
packages/less/package.js
packages/less/package.js
Package.describe({ summary: "The dynamic stylesheet language." }); var less = require('less'); var fs = require('fs'); Package.register_extension( "less", function (bundle, source_path, serve_path, where) { serve_path = serve_path + '.css'; var contents = fs.readFileSync(source_path); try { le...
Package.describe({ summary: "The dynamic stylesheet language." }); var less = require('less'); var fs = require('fs'); Package.register_extension( "less", function (bundle, source_path, serve_path, where) { serve_path = serve_path + '.css'; var contents = fs.readFileSync(source_path); try { le...
Use correct variable name when logging a less error
Use correct variable name when logging a less error
JavaScript
mit
sclausen/meteor,qscripter/meteor,zdd910/meteor,zdd910/meteor,benstoltz/meteor,planet-training/meteor,framewr/meteor,benstoltz/meteor,kengchau/meteor,LWHTarena/meteor,johnthepink/meteor,judsonbsilva/meteor,somallg/meteor,chmac/meteor,lassombra/meteor,TribeMedia/meteor,Ken-Liu/meteor,sitexa/meteor,nuvipannu/meteor,shrop/...
--- +++ @@ -30,7 +30,7 @@ // less.render() is supposed to report any errors via its // callback. But sometimes, it throws them instead. This is // probably a bug in less. Be prepared for either behavior. - bundle.error(source_path + ": Less compiler error: " + err.message); + bundle.err...
420127e99561a75e87e6ef77805063c514aaa039
pages/home/QuickStart.js
pages/home/QuickStart.js
import React from 'react'; import './QuickStart.scss'; const QuickStart = () => ( <div className="quick-start"> <h1>Documentation</h1> <p className="quick-start-hint">New to Skygear?</p> <p> <form action="/guides/get-started/ios/"> <button className="quick-start-button">Quick Start</button>...
import React from 'react'; import './QuickStart.scss'; const QuickStart = () => ( <div className="quick-start"> <h1>Documentation</h1> <p className="quick-start-hint">New to Skygear?</p> <p> <form action="/guides/quickstart/ios/"> <button className="quick-start-button">Quick Start</button> ...
Update Quickstart button at index to new Quick start guide
Update Quickstart button at index to new Quick start guide
JavaScript
mit
ben181231/skygear-doc,ben181231/skygear-doc,ben181231/skygear-doc
--- +++ @@ -6,7 +6,7 @@ <h1>Documentation</h1> <p className="quick-start-hint">New to Skygear?</p> <p> - <form action="/guides/get-started/ios/"> + <form action="/guides/quickstart/ios/"> <button className="quick-start-button">Quick Start</button> </form> </p>
c30f509fe6de4b9a3c10327cf675e22b49ca2cc5
app/routes/post_login.js
app/routes/post_login.js
import Ember from 'ember'; import preloadDataMixin from '../mixins/preload_data'; export default Ember.Route.extend(preloadDataMixin, { cordova: Ember.inject.service(), beforeModel() { Ember.run(() => this.controllerFor('application').send('logMeIn')); return this.preloadData().catch(error => { if (...
import Ember from 'ember'; import preloadDataMixin from '../mixins/preload_data'; export default Ember.Route.extend(preloadDataMixin, { cordova: Ember.inject.service(), beforeModel() { Ember.run(() => this.controllerFor('application').send('logMeIn')); return this.preloadData().catch(error => { if (...
Revert "GCW- 2473- Replace Admin Offers UI with Dashboard and Search Filters"
Revert "GCW- 2473- Replace Admin Offers UI with Dashboard and Search Filters"
JavaScript
mit
crossroads/shared.goodcity,crossroads/shared.goodcity
--- +++ @@ -35,7 +35,12 @@ } else { var currentUser = this.get('session.currentUser'); if (this.get('session.isAdminApp')) { - this.transitionTo('dashboard'); + var myOffers = this.store.peekAll('offer').filterBy('reviewedBy.id', currentUser.get('id')); + if (myOffers.get('leng...
4166b2fdd2b701b67b7cad78eb1de9b7a1e52555
components/prism-python.js
components/prism-python.js
Prism.languages.python= { 'comment': { pattern: /(^|[^\\])#.*?(\r?\n|$)/g, lookbehind: true }, 'string': /"""[\s\S]+?"""|("|')(\\?.)*?\1/g, 'keyword' : /\b(as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|pass|print|raise|return|try|while|with|yield)\b...
Prism.languages.python= { 'comment': { pattern: /(^|[^\\])#.*?(\r?\n|$)/g, lookbehind: true }, 'string': /"""[\s\S]+?"""|'''[\s\S]+?'''|("|')(\\?.)*?\1/g, 'keyword' : /\b(as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|pass|print|raise|return|try|whil...
Add support for single quoted multi-line strings in Python
Add support for single quoted multi-line strings in Python
JavaScript
mit
Conaclos/prism,murtaugh/prism,codedogfish/prism,Golmote/prism,iwatakeshi/prism,iwatakeshi/prism,UnityTech/prism,MakeNowJust/prism,1st1/prism,RobLoach/prism,mcanthony/prism,desertjim/prism,danielberkompas/prism,UnityTech/prism,Golmote/prism,markcarver/prism,desertjim/prism,PrismJS/prism,mooreInteractive/prism,lgiraudel/...
--- +++ @@ -3,7 +3,7 @@ pattern: /(^|[^\\])#.*?(\r?\n|$)/g, lookbehind: true }, - 'string': /"""[\s\S]+?"""|("|')(\\?.)*?\1/g, + 'string': /"""[\s\S]+?"""|'''[\s\S]+?'''|("|')(\\?.)*?\1/g, 'keyword' : /\b(as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|la...
92ea30a750cc604cf72df36d8a18a95eb52946e6
src/app/core/constants/constants.js
src/app/core/constants/constants.js
'use strict'; angular.module('koastAdminApp.core.constants', []) .factory('constants', function() { return { adminPath: 'http://localhost:3000/admin', // TODO make this a server side configuration option and add endpoints to // facilitate selection awsBucket: 'rvaiya-development' }; ...
'use strict'; angular.module('koastAdminApp.core.constants', []) .factory('constants', function () { return { adminPath: 'http://localhost:3000/admin', // TODO make this a server side configuration option and add endpoints to // facilitate selection awsBucket: 'test-koast' }; });
Update aws-bucket to use koast test
Update aws-bucket to use koast test
JavaScript
mit
rangle/koast-admin-app
--- +++ @@ -1,11 +1,11 @@ 'use strict'; angular.module('koastAdminApp.core.constants', []) - .factory('constants', function() { + .factory('constants', function () { return { adminPath: 'http://localhost:3000/admin', // TODO make this a server side configuration option and add endpoints to ...
5593f17adeb3e8e0e8342aa807c97593ad87884c
src/angular-humanize.js
src/angular-humanize.js
(function( angular ) { 'use strict'; angular.module('angular-humanize', []). filter('humanizeFilesize', function () { return function ( input, decimals, decPoint, thousandsSep ) { if ( isNaN(parseInt(input)) ) { return input; } return humanize.filesize(parseInt(input, decimals || 2, decPo...
(function( angular ) { 'use strict'; angular.module('angular-humanize', []). filter('humanizeFilesize', function () { return function ( input, kilo, decimals, decPoint, thousandsSep ) { if ( isNaN(parseInt(input)) ) { return input; } return humanize.filesize(parseInt(input, kilo || undefi...
Fix 'kilo' arg was missing'
Fix 'kilo' arg was missing'
JavaScript
mit
sirap-group/angularjs-humanize,rbecheras/angularjs-humanize,rbecheras/angularjs-humanize,sirap-group/angularjs-humanize
--- +++ @@ -3,9 +3,9 @@ angular.module('angular-humanize', []). filter('humanizeFilesize', function () { - return function ( input, decimals, decPoint, thousandsSep ) { + return function ( input, kilo, decimals, decPoint, thousandsSep ) { if ( isNaN(parseInt(input)) ) { return input; } - ...
6d75199c8a7c31556b6c08d66775ee2f875b8868
lib/plugins/renderer/swig.js
lib/plugins/renderer/swig.js
var swig = require('swig'); swig.setDefaults({ cache: false }); module.exports = function(data, locals){ return swig.render(data.text, { locals: locals, filename: data.path }); };
var swig = require('swig'), forTag = require('swig/lib/tags/for'); swig.setDefaults({ cache: false }); // Hack: Override for tag of Swig swig.setTag('for', forTag.parse, function(compiler, args, content, parents, options, blockName){ var compile = forTag.compile.apply(this, arguments).split('\n'); compile.sp...
Make Swig capable for Warehouse query instance
Make Swig capable for Warehouse query instance
JavaScript
mit
G-g-beringei/hexo,delkyd/hexo,luodengxiong/hexo,elegantwww/hexo,DevinLow/DevinLow.github.io,ppker/hexo,SaiNadh001/hexo,zhangg/hexo,r4-keisuke/hexo,zongkelong/hexo,liuhongjiang/hexo,hugoxia/hexo,maominghui/hexo,fuchao2012/hexo,JasonMPE/hexo,aulphar/hexo,wangjordy/wangjordy.github.io,wenzhucjy/hexo,kennethlyn/hexo,zhi1on...
--- +++ @@ -1,8 +1,18 @@ -var swig = require('swig'); +var swig = require('swig'), + forTag = require('swig/lib/tags/for'); swig.setDefaults({ cache: false }); + +// Hack: Override for tag of Swig +swig.setTag('for', forTag.parse, function(compiler, args, content, parents, options, blockName){ + var compile ...
99a504052b88d736944dd507d36fa8e6b822660c
content.js
content.js
// Obtain ALL anchors on the page. var links = document.links; // The previous/next urls if they exist. var previous = findHref("prev"); var next = findHref("next"); /** * Find the href for a given name. * @param {String} The name of the anchor to search for. * @return {String} The href for a given tag, otherwise ...
// Obtain ALL anchors on the page. var links = document.links; // The previous/next urls if they exist. var prev = findHref("prev"); var next = findHref("next"); /** * Find the href for a given name. * @param {String} The name of the anchor to search for. * @return {String} The href for a given tag, otherwise an e...
Rename previous to prev for consistency.
Rename previous to prev for consistency.
JavaScript
mit
jawrainey/leftyrighty
--- +++ @@ -2,7 +2,7 @@ var links = document.links; // The previous/next urls if they exist. -var previous = findHref("prev"); +var prev = findHref("prev"); var next = findHref("next"); /** @@ -27,7 +27,7 @@ // Go to the next/previous pages using the arrow keys. document.addEventListener('keydown', function...
7b3d58e1a8f357954a131fcc313a1e11888fe849
src/index.js
src/index.js
// Loaded ready states const loadedStates = ['interactive', 'complete']; // Return Promise module.exports = (cb, doc) => new Promise(resolve => { // Allow doc to be passed in as the lone first param if (cb && typeof cb !== 'function') { doc = cb; cb = null; } // Use global document if we don't have one doc =...
// Loaded ready states const loadedStates = ['interactive', 'complete']; // Return Promise const domLoaded = (cb, doc) => new Promise(resolve => { // Allow doc to be passed in as the lone first param if (cb && typeof cb !== 'function') { doc = cb; cb = null; } // Use global document if we don't have one doc ...
Add Promise chain helper method
Add Promise chain helper method
JavaScript
mit
lukechilds/when-dom-ready
--- +++ @@ -2,7 +2,7 @@ const loadedStates = ['interactive', 'complete']; // Return Promise -module.exports = (cb, doc) => new Promise(resolve => { +const domLoaded = (cb, doc) => new Promise(resolve => { // Allow doc to be passed in as the lone first param if (cb && typeof cb !== 'function') { doc = cb; @...
5ca3f353dabbd9f0d44277f8ecba6a895a4a4468
src/index.js
src/index.js
module.exports = function mutableProxyFactory(defaultTarget) { let mutableHandler; let mutableTarget; function setTarget(target) { if (!(target instanceof Object)) { throw new Error(`Target "${target}" is not an object`); } mutableTarget = target; } function setHandler(handler) { Objec...
module.exports = function mutableProxyFactory(defaultTarget) { let mutableHandler; let mutableTarget; function setTarget(target) { if (!(target instanceof Object)) { throw new Error(`Target "${target}" is not an object`); } mutableTarget = target; } function setHandler(handler) { Objec...
Revert to setting target with noOp
Revert to setting target with noOp
JavaScript
mit
Griffingj/mutable-proxy
--- +++ @@ -23,6 +23,7 @@ }); mutableHandler = handler; } + setTarget(() => {}); if (defaultTarget) { setTarget(defaultTarget); @@ -46,6 +47,6 @@ getHandler() { return mutableHandler; }, - proxy: new Proxy(() => {}, handler) + proxy: new Proxy(mutableTarget, handler) ...
acbd27582dd9c9ff1572fe06d37d740452a6631d
src/index.js
src/index.js
'use strict'; import assign from 'lodash.assign'; import ResultList from './result-list'; const requiredDefaults = { page: 1, per_page: 20, }; const pixabayjs = { _auth: {}, _makeConfig: function(url, opts) { const urlObj = { url }; return assign({}, requiredDefaults, urlObj, this.defaults, this._au...
'use strict'; import assign from 'lodash.assign'; import path from 'path'; import url from 'url'; import ResultList from './result-list'; const requiredDefaults = { page: 1, per_page: 20, url: 'https://pixabay.com/api' }; const pixabayjs = { _auth: {}, _makeConfig: function(endpoint, opts) { const co...
Enable overriding of the default url
Enable overriding of the default url
JavaScript
mit
yola/pixabayjs
--- +++ @@ -1,20 +1,28 @@ 'use strict'; import assign from 'lodash.assign'; +import path from 'path'; +import url from 'url'; + import ResultList from './result-list'; const requiredDefaults = { page: 1, per_page: 20, + url: 'https://pixabay.com/api' }; const pixabayjs = { _auth: {}, - _makeC...
5804f9be7d4fbe5a5347cd65c15d4d66dfef6cfd
src/index.js
src/index.js
import postcss from 'postcss'; import Core from 'css-modules-loader-core'; import Parser from 'css-modules-loader-core/lib/parser'; import FileSystemLoader from 'css-modules-loader-core/lib/file-system-loader'; import generateScopedName from './generateScopedName'; import saveJSON...
import postcss from 'postcss'; import Core from 'css-modules-loader-core'; import Parser from 'css-modules-loader-core/lib/parser'; import FileSystemLoader from 'css-modules-loader-core/lib/file-system-loader'; import generateScopedName from './generateScopedName'; import saveJSON...
Add support for custom `Loader` via `opts`
Add support for custom `Loader` via `opts` Allow for a custom `Loader` implementation to be passed in via `opts`.
JavaScript
mit
css-modules/postcss-modules,outpunk/postcss-modules
--- +++ @@ -22,7 +22,10 @@ ...resultPlugins, ]; - const loader = new FileSystemLoader('/', plugins); + const loader = typeof opts.Loader === 'function' ? + new opts.Loader('/', plugins) : + new FileSystemLoader('/', plugins); + const parser = new Parser(loader.fetch.bind(loader))...
1a596251f5d13bdf38b010a010b02a3fcaefd053
resources/assets/components/Users/UserInformation.js
resources/assets/components/Users/UserInformation.js
import React from 'react'; import { map } from 'lodash'; import { displayUserInfo, displayCityState } from '../../helpers'; const UserInformation = (props) => ( <div> {props.user.length ? <div className="container -padded"> {props.linkSignup ? <h2 className="heading"><a href={`/signups/${...
import React from 'react'; import { map, isEmpty } from 'lodash'; import { displayUserInfo, displayCityState } from '../../helpers'; const UserInformation = (props) => ( <div> {!isEmpty(props.user) ? <div className="container -padded"> {props.linkSignup ? <h2 className="heading"><a href={...
Check for empty user properly
Check for empty user properly
JavaScript
mit
DoSomething/rogue,DoSomething/rogue,DoSomething/rogue
--- +++ @@ -1,10 +1,10 @@ import React from 'react'; -import { map } from 'lodash'; +import { map, isEmpty } from 'lodash'; import { displayUserInfo, displayCityState } from '../../helpers'; const UserInformation = (props) => ( <div> - {props.user.length ? + {!isEmpty(props.user) ? <div className...
617fe4c293901b24ccade140ca18cc246fec7fe6
saiku-bi-platform-plugin-p5/src/main/plugin/components/saikuWidget/SaikuWidgetComponent.js
saiku-bi-platform-plugin-p5/src/main/plugin/components/saikuWidget/SaikuWidgetComponent.js
var saikuWidgetComponent = BaseComponent.extend({ update : function() { var myself=this; var htmlId = "#" + myself.htmlObject; if (myself.saikuFilePath.substr(0,1) == "/") { myself.saikuFilePath = myself.saikuFilePath.substr(1,myself.saikuFilePath.length - 1 ); } var parameters = {}; if (myself.parame...
var saikuWidgetComponent = BaseComponent.extend({ update : function() { var myself=this; var htmlId = "#" + myself.htmlObject; if (myself.saikuFilePath.substr(0,1) == "/") { myself.saikuFilePath = myself.saikuFilePath.substr(1,myself.saikuFilePath.length - 1 ); } var parameters = {}; if (myself.parame...
Use full path to api in stead of relatieve path
Use full path to api in stead of relatieve path At this moment a relative path is used (../../../), for the cde saikuWidget. But the preview of the dashboard and the 'normal' view are on a different directory level, so one of them needs an extra ../ Fixed by using the full path /pentaho/plugin/saiku/api But this won't...
JavaScript
apache-2.0
hengyuan/saiku,newenter/saiku,hengyuan/saiku,hengyuan/saiku,OSBI/saiku,qixiaobo/saiku-self,customme/saiku,customme/saiku,hengyuan/saiku,OSBI/saiku,qixiaobo/saiku-self,OSBI/saiku,qixiaobo/saiku-self,newenter/saiku,customme/saiku,OSBI/saiku,newenter/saiku,newenter/saiku,qixiaobo/saiku-self,customme/saiku,OSBI/saiku
--- +++ @@ -32,7 +32,7 @@ htmlId = t; } var myClient = new SaikuClient({ - server: "../../../plugin/saiku/api", + server: "/pentaho/plugin/saiku/api", path: "/cde-component" });
770088f5505b3e26347373909f03c000a63e6374
lib/jsdom/browser/utils.js
lib/jsdom/browser/utils.js
"use strict"; exports.NOT_IMPLEMENTED = function (target, nameForErrorMessage) { return function () { var raise = target ? target.raise : this.raise; raise.call(this, "error", "NOT IMPLEMENTED" + (nameForErrorMessage ? ": " + nameForErrorMessage : "")); }; };
"use strict"; exports.NOT_IMPLEMENTED = function (target, nameForErrorMessage) { return function () { var raise; var message = "Called NOT_IMPLEMENTED without an element to raise on" + (nameForErrorMessage ? ": " + nameForErrorMessage : ""); target = target || this; if (target) { raise ...
Fix NOT_IMPLEMENTED to not crash user-code if no target is given
Fix NOT_IMPLEMENTED to not crash user-code if no target is given
JavaScript
mit
janusnic/jsdom,Ye-Yong-Chi/jsdom,mbostock/jsdom,AshCoolman/jsdom,selam/jsdom,mzgol/jsdom,nicolashenry/jsdom,kevinold/jsdom,nicolashenry/jsdom,sebmck/jsdom,susaing/jsdom,evanlucas/jsdom,snuggs/jsdom,mzgol/jsdom,Joris-van-der-Wel/jsdom,beni55/jsdom,kevinold/jsdom,cpojer/jsdom,aduyng/jsdom,evdevgit/jsdom,aduyng/jsdom,tmpv...
--- +++ @@ -2,7 +2,22 @@ exports.NOT_IMPLEMENTED = function (target, nameForErrorMessage) { return function () { - var raise = target ? target.raise : this.raise; - raise.call(this, "error", "NOT IMPLEMENTED" + (nameForErrorMessage ? ": " + nameForErrorMessage : "")); + var raise; + + var message = ...
95ee51ea2400d8a30b61adce05b0288652235ec7
localization/jquery-ui-timepicker-pl.js
localization/jquery-ui-timepicker-pl.js
/* German translation for the jQuery Timepicker Addon */ /* Written by Michał Pena */ (function($) { $.timepicker.regional['pl'] = { timeOnlyTitle: 'Wybierz godzinę', timeText: 'Czas', hourText: 'Godzina', minuteText: 'Minuta', secondText: 'Sekunda', millisecText: 'Milisekunda', timezoneText: 'Strefa cza...
/* Polish translation for the jQuery Timepicker Addon */ /* Written by Michał Pena */ (function($) { $.timepicker.regional['pl'] = { timeOnlyTitle: 'Wybierz godzinę', timeText: 'Czas', hourText: 'Godzina', minuteText: 'Minuta', secondText: 'Sekunda', millisecText: 'Milisekunda', timezoneText: 'Strefa cza...
Add `amNames`/`pmNames` for Polish translation.
Add `amNames`/`pmNames` for Polish translation.
JavaScript
mit
Jaspersoft/jQuery-Timepicker-Addon,Youraiseme/jQuery-Timepicker-Addon,Jaspersoft/jQuery-Timepicker-Addon,pyonnuka/jQuery-Timepicker-Addon,gaissa/jQuery-Timepicker-Addon,brenosilver/jQuery-Timepicker-Addon,pyonnuka/jQuery-Timepicker-Addon,ssyang0102/jQuery-Timepicker-Addon,brenosilver/jQuery-Timepicker-Addon,trentrichar...
--- +++ @@ -1,4 +1,4 @@ -/* German translation for the jQuery Timepicker Addon */ +/* Polish translation for the jQuery Timepicker Addon */ /* Written by Michał Pena */ (function($) { $.timepicker.regional['pl'] = { @@ -12,6 +12,8 @@ currentText: 'Teraz', closeText: 'Gotowe', timeFormat: 'hh:mm tt', + a...
06fa595c5552c3584815d86175663a12d6ead5fa
test/index.js
test/index.js
require('babel/register')({ ignore: false, only: /.+(?:(?:\.es6\.js)|(?:.jsx))$/, extensions: ['.js', '.es6.js', '.jsx' ], sourceMap: true, }); // lib require('./lib/titleCase'); require('./lib/formatDifference'); // Even with shallow rendering react currently looks for document when setState is used. // see ...
require('babel/register')({ ignore: false, only: /.+(?:(?:\.es6\.js)|(?:.jsx))$/, extensions: ['.js', '.es6.js', '.jsx' ], sourceMap: true, stage: 0 }); // lib require('./lib/titleCase'); require('./lib/formatDifference'); // Even with shallow rendering react currently looks for document when setState is us...
Use stage 0 for tests like everything else
Use stage 0 for tests like everything else
JavaScript
mit
uzi/reddit-mobile,curioussavage/reddit-mobile,madbook/reddit-mobile,DogPawHat/reddit-mobile,uzi/reddit-mobile,uzi/reddit-mobile,DogPawHat/reddit-mobile,madbook/reddit-mobile,curioussavage/reddit-mobile,madbook/reddit-mobile
--- +++ @@ -3,6 +3,7 @@ only: /.+(?:(?:\.es6\.js)|(?:.jsx))$/, extensions: ['.js', '.es6.js', '.jsx' ], sourceMap: true, + stage: 0 }); // lib
e3c9a45adf6d1d339dee4f370752b3271117bc53
test/index.js
test/index.js
import { join } from 'path' import assert from 'yeoman-assert' import helpers from 'yeoman-test' import pify from 'pify' import test from 'ava' test('generates expected files', async t => { await pify(helpers.testDirectory)(join(__dirname, '..', 'temp')) const generator = helpers.createGenerator( 'wyze-nm:app...
import { join } from 'path' import assert from 'yeoman-assert' import helpers from 'yeoman-test' import pify from 'pify' import test from 'ava' test('generates expected files', async t => { await pify(helpers.testDirectory)(join(__dirname, '..', 'temp')) const generator = helpers.createGenerator( 'wyze-nm:app...
Update test to pass in git name/email for Travis
Update test to pass in git name/email for Travis
JavaScript
mit
wyze/generator-wyze-nm
--- +++ @@ -16,6 +16,9 @@ description: 'test', github: 'test', url: 'test.com', + // Pass in git name/email for Travis + name: 'travis', + email: 'travis@travis-ci.org', }) await pify(generator.run.bind(generator))()
e2e0ca3f0585ab245bae91c7a48178454fe96a44
lib/plugins/__tests__/resolveVersion.js
lib/plugins/__tests__/resolveVersion.js
var PluginDependency = require('../../models/pluginDependency'); var resolveVersion = require('../resolveVersion'); describe('resolveVersion', function() { it('must skip resolving and return non-semver versions', function(done) { var plugin = PluginDependency.createFromString('plugin-ga@git+ssh://samy@gith...
var PluginDependency = require('../../models/pluginDependency'); var resolveVersion = require('../resolveVersion'); describe('resolveVersion', function() { it('must skip resolving and return non-semver versions', function() { var plugin = PluginDependency.createFromString('ga@git+ssh://samy@github.com/Gitb...
Add test for plugin version resolution
Add test for plugin version resolution
JavaScript
apache-2.0
strawluffy/gitbook,GitbookIO/gitbook,gencer/gitbook,gencer/gitbook,tshoper/gitbook,tshoper/gitbook
--- +++ @@ -2,13 +2,21 @@ var resolveVersion = require('../resolveVersion'); describe('resolveVersion', function() { - it('must skip resolving and return non-semver versions', function(done) { - var plugin = PluginDependency.createFromString('plugin-ga@git+ssh://samy@github.com/GitbookIO/plugin-ga.git')...
80a66fe8bc8faf3a556486c212d0b7a7beae55fd
workshop/www/js/ClickListeners.js
workshop/www/js/ClickListeners.js
var getRecipeEvent = function(apiRequest){ $('.container').on('click', '.recipe-container', function(event) { var $target = $(event.target); var recipeId = $target.closest('.recipe-container')[0].dataset.recipeid; apiRequest(recipeId); }); };
var getRecipeEvent = function(apiRequest){ $('.container').on('click', '.recipe-container', function(event) { var $target = $(event.target); var recipeId = $target.closest('.recipe-container')[0].dataset.recipeid; apiRequest(recipeId); }); }; var getSignUpFormEvent = function(){ $('.container').on('...
Add getSignUpFormEvent function to clickListeners.js
Add getSignUpFormEvent function to clickListeners.js
JavaScript
mit
danasselin/line-cook,danasselin/line-cook,nyc-rock-doves-2015/line-cook,danasselin/line-cook,nyc-rock-doves-2015/line-cook,danasselin/line-cook,danasselin/line-cook,nyc-rock-doves-2015/line-cook,nyc-rock-doves-2015/line-cook,nyc-rock-doves-2015/line-cook,danasselin/line-cook,nyc-rock-doves-2015/line-cook,danasselin/lin...
--- +++ @@ -5,3 +5,12 @@ apiRequest(recipeId); }); }; + +var getSignUpFormEvent = function(){ + $('.container').on('click', '.signup-link', function(event) { + event.preventDefault(); + var loginTemplate = Mustache.render($('#sign-up-template').html()); + $('.navbar-collapse').collapse('toggle') + ...
f1ff39a9ddc93b1c24c080b536e608c75dad0d32
test/server/middleware/correlation-id.spec.js
test/server/middleware/correlation-id.spec.js
/* * Copyright (c) 2015-2017 Steven Soloff * * This is free software: you can redistribute it and/or modify it under the * terms of the MIT License (https://opensource.org/licenses/MIT). * This software comes with ABSOLUTELY NO WARRANTY. */ 'use strict' const correlationId = require('../../../src/server/middlew...
/* * Copyright (c) 2015-2017 Steven Soloff * * This is free software: you can redistribute it and/or modify it under the * terms of the MIT License (https://opensource.org/licenses/MIT). * This software comes with ABSOLUTELY NO WARRANTY. */ 'use strict' const middleware = require('../../../src/server/middleware...
Access individual middleware through aggregating module
Access individual middleware through aggregating module
JavaScript
mit
ssoloff/dice-server-js,ssoloff/dice-server-js,ssoloff/dice-server-js,ssoloff/dice-server-js
--- +++ @@ -8,7 +8,7 @@ 'use strict' -const correlationId = require('../../../src/server/middleware/correlation-id') +const middleware = require('../../../src/server/middleware') describe('correlationId', () => { describe('correlator', () => { @@ -18,7 +18,7 @@ let res beforeEach(() => { - ...
b501809dc65e10454c15a871301b9791ac53202d
Gulpfile.js
Gulpfile.js
var Gulp = require('gulp'), Linoleum = require('linoleum'); var $jsFiles = Linoleum.jsFiles; Linoleum.jsFiles = function() { return $jsFiles().concat('tasks/*.js', 'index.js'); }; require('./index'); Gulp.task('build', ['clean', 'lint'], function(done) { Linoleum.runTask('babel', done); }); Gulp.task('test'...
var Gulp = require('gulp'), Linoleum = require('linoleum'); require('./index'); Gulp.task('build', ['clean', 'lint'], function(done) { Linoleum.runTask('babel', done); }); Gulp.task('test', ['build'], function(done) { Linoleum.runTask('test:mocha', done); }); Gulp.task('cover', ['build'], function(done) { ...
Use gulp local for self test
Use gulp local for self test
JavaScript
mit
kpdecker/linoleum-node
--- +++ @@ -1,11 +1,6 @@ var Gulp = require('gulp'), Linoleum = require('linoleum'); - -var $jsFiles = Linoleum.jsFiles; -Linoleum.jsFiles = function() { - return $jsFiles().concat('tasks/*.js', 'index.js'); -}; require('./index'); @@ -27,3 +22,4 @@ }); Gulp.task('default', ['cover']); +require('lin...
c4affba6c1794ac80bf5b88bb84001c96d94470c
graphql/utils/redis.js
graphql/utils/redis.js
// FIXME: debugging only. /* eslint-disable */ // import fetch from 'node-fetch' const callRedis = async data => { try { console.log( '===== Calling Redis service =====', process.env.redisServiceEndpoint ) } catch (e) { console.log('Error calling Redis service', e) } } export default cal...
// FIXME: debugging only. /* eslint-disable */ import fetch from 'node-fetch' const callRedis = async data => { let responseData try { console.log( '===== Calling Redis service =====', process.env.redisServiceEndpoint ) const response = await fetch(process.env.redisServiceEndpoint, { ...
Add test request to Redis service
Add test request to Redis service
JavaScript
mpl-2.0
gladly-team/tab,gladly-team/tab,gladly-team/tab
--- +++ @@ -1,16 +1,22 @@ // FIXME: debugging only. /* eslint-disable */ -// import fetch from 'node-fetch' +import fetch from 'node-fetch' const callRedis = async data => { + let responseData try { console.log( '===== Calling Redis service =====', process.env.redisServiceEndpoint ) +...
b980aa73e21676414e9ac75d7138483d1de922a6
app/static/main.js
app/static/main.js
// Main Module for searchthedocs demo define(function (require) { var _ = require('underscore'), $ = require('jquery'), SearchTheDocsView = require('searchthedocs/src/searchthedocs'); var searchthedocs_main = function() { window.searchtd = new SearchTheDocsView({ el: '#searchthedocs', }); ...
// Main Module for searchthedocs demo define(function (require) { var _ = require('underscore'), $ = require('jquery'), SearchTheDocsView = require('searchthedocs/src/searchthedocs'); var searchthedocs_main = function() { window.searchtd = new SearchTheDocsView({ el: '#searchthedocs', bran...
Send brand and brand_href into SearchTheDocsView
Send brand and brand_href into SearchTheDocsView
JavaScript
mit
searchthedocs/searchthedocs-rtd,searchthedocs/searchthedocs-rtd
--- +++ @@ -8,6 +8,8 @@ window.searchtd = new SearchTheDocsView({ el: '#searchthedocs', + brand: 'searchthedocs', + brand_href: '#' }); };
b05662b9ef789d58867ce62de041ce59434107c7
addon/adapters/user.js
addon/adapters/user.js
import OsfAdapter from './osf-adapter'; import Ember from 'ember'; export default OsfAdapter.extend({ findHasMany(store, snapshot, url, relationship) { var id = snapshot.id; var type = snapshot.modelName; url = this.urlPrefix(url, this.buildURL(type, id, snapshot, 'findHasMany')); ...
import OsfAdapter from './osf-adapter'; import Ember from 'ember'; export default OsfAdapter.extend({ });
Remove unused findHasMany method on osfadapter
Remove unused findHasMany method on osfadapter
JavaScript
apache-2.0
baylee-d/ember-osf,CenterForOpenScience/ember-osf,baylee-d/ember-osf,jamescdavis/ember-osf,binoculars/ember-osf,CenterForOpenScience/ember-osf,jamescdavis/ember-osf,binoculars/ember-osf
--- +++ @@ -2,22 +2,4 @@ import Ember from 'ember'; export default OsfAdapter.extend({ - findHasMany(store, snapshot, url, relationship) { - var id = snapshot.id; - var type = snapshot.modelName; - - url = this.urlPrefix(url, this.buildURL(type, id, snapshot, 'findHasMany')); - - //...
95e83e97d10964c5463dcded647d096bbdb5acbf
test/vendor/scripts/test-helper.js
test/vendor/scripts/test-helper.js
// Create `window.describe` etc. for our BDD-like tests. mocha.setup({ui: 'bdd'}); mocha.reporter('html'); // Create another global variable for simpler syntax. window.expect = chai.expect;
// Create `window.describe` etc. for our BDD-like tests. mocha.setup({ui: 'bdd'}) mocha.reporter('html') // initialize chai.should (@see http://chaijs.com/guide/styles/#should) window.should = chai.should() // Create another global variable for simpler syntax. window.expect = chai.expect
Add chai.should to tests and remove semicolons
Add chai.should to tests and remove semicolons
JavaScript
apache-2.0
despairblue/scegratoo
--- +++ @@ -1,6 +1,9 @@ // Create `window.describe` etc. for our BDD-like tests. -mocha.setup({ui: 'bdd'}); -mocha.reporter('html'); +mocha.setup({ui: 'bdd'}) +mocha.reporter('html') + +// initialize chai.should (@see http://chaijs.com/guide/styles/#should) +window.should = chai.should() // Create another global ...
cf31e8f9186e51ff5f3256ba9c0dcb0afb844a7f
packages/vulcan-lib/lib/modules/intl.js
packages/vulcan-lib/lib/modules/intl.js
import SimpleSchema from 'simpl-schema'; /* Look for type name in a few different places Note: look into simplifying this */ export const isIntlField = fieldSchema => { const typeProperty = fieldSchema.type; let type; if (Array.isArray(typeProperty)) { type = typeProperty[0].type; } else { type = typ...
import SimpleSchema from 'simpl-schema'; import { Strings } from './strings'; /* Look for type name in a few different places Note: look into simplifying this */ export const isIntlField = fieldSchema => { const typeProperty = fieldSchema.type; let type; if (Array.isArray(typeProperty)) { type = typeProper...
Use function to get IntlString type
Use function to get IntlString type
JavaScript
mit
VulcanJS/Vulcan,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Lesswrong2,VulcanJS/Vulcan,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Telescope,Discordius/Telescope,Discordius/Lesswrong2
--- +++ @@ -1,4 +1,5 @@ import SimpleSchema from 'simpl-schema'; +import { Strings } from './strings'; /* @@ -20,17 +21,20 @@ /* Generate custom IntlString SimpleSchema type -TODO: WIP (languages hardcoded) */ -const schema = {}; +export const getIntlString = () => { + + const schema = {}; -['en', '...
a1c9b93751265f56e22dd32537763ea79486a05f
kboard/static/js/main.js
kboard/static/js/main.js
$(document).ready(function() { $(".delete-comment").click(function(){ var form = $(this).parent().find('form'); form.submit(); }); $(".redirection-button").click(function(){ var path = $(this).attr('path'); location.href = path; }); $('.comment-iframe').on('load...
$(document).ready(function() { $(".delete-comment").click(function(){ var form = $(this).parent().find('form'); form.submit(); }); $(".redirection-button").click(function(){ var path = $(this).attr('path'); location.href = path; }); $('.comment-iframe').on('load...
Set summernote iframe body height
Set summernote iframe body height
JavaScript
mit
kboard/kboard,cjh5414/kboard,hyesun03/k-board,guswnsxodlf/k-board,cjh5414/kboard,kboard/kboard,hyesun03/k-board,guswnsxodlf/k-board,kboard/kboard,cjh5414/kboard,guswnsxodlf/k-board,hyesun03/k-board,darjeeling/k-board
--- +++ @@ -13,4 +13,10 @@ var height = this.contentWindow.document.body.offsetHeight; $(this).height(height); }); + + $('#id_content_iframe').on('load', function () { + var height = this.contentWindow.document.body.offsetHeight; + $(this).height(height); + $(this).attr(...
fe85f9e66d9dcf5a05a5eb989e10740c4aea254e
lib/extract/extractViewBox.js
lib/extract/extractViewBox.js
const meetOrSliceTypes = { meet: 0, slice: 1, none: 2, }; const alignEnum = [ "xMinYMin", "xMidYMin", "xMaxYMin", "xMinYMid", "xMidYMid", "xMaxYMid", "xMinYMax", "xMidYMax", "xMaxYMax", "none", ].reduce((prev, name) => { prev[name] = name; return prev; }, {})...
const meetOrSliceTypes = { meet: 0, slice: 1, none: 2, }; const alignEnum = [ "xMinYMin", "xMidYMin", "xMaxYMin", "xMinYMid", "xMidYMid", "xMaxYMid", "xMinYMax", "xMidYMax", "xMaxYMax", "none", ].reduce((prev, name) => { prev[name] = name; return prev; }, {})...
Fix viewBox pre condition warning
Fix viewBox pre condition warning
JavaScript
mit
magicismight/react-native-svg,magicismight/react-native-svg,react-native-community/react-native-svg,react-native-community/react-native-svg,msand/react-native-svg,react-native-community/react-native-svg,magicismight/react-native-svg,magicismight/react-native-svg,msand/react-native-svg,magicismight/react-native-svg,magi...
--- +++ @@ -34,7 +34,7 @@ .split(spacesRegExp) .map(Number); - if (params.length === 4 && params.some(isNaN)) { + if (params.length !== 4 || params.some(isNaN)) { console.warn("Invalid `viewBox` prop:" + viewBox); return null; }
42ace408bcf62cb0c3bb873f9ab00323f923c21e
sashimi-webapp/test/unit/karma.conf.js
sashimi-webapp/test/unit/karma.conf.js
// This is a karma config file. For more details see // http://karma-runner.github.io/0.13/config/configuration-file.html // we are also using it with karma-webpack // https://github.com/webpack/karma-webpack var webpackConfig = require('../../build/webpack.test.conf'); module.exports = function (config) { conf...
// This is a karma config file. For more details see // http://karma-runner.github.io/0.13/config/configuration-file.html // we are also using it with karma-webpack // https://github.com/webpack/karma-webpack let webpackConfig = require('../../build/webpack.test.conf'); module.exports = function(config) { confi...
Add additional timeout for travis
Add additional timeout for travis
JavaScript
mit
nus-mtp/sashimi-note,nus-mtp/sashimi-note,nus-mtp/sashimi-note
--- +++ @@ -3,15 +3,16 @@ // we are also using it with karma-webpack // https://github.com/webpack/karma-webpack -var webpackConfig = require('../../build/webpack.test.conf'); +let webpackConfig = require('../../build/webpack.test.conf'); -module.exports = function (config) { +module.exports = function(config...
692a9dfa1c13cfae5c7e93866339fb5c88e65a47
camera_barcode_reader.js
camera_barcode_reader.js
var dbr = require('./build/Release/dbr'); var v4l2camera = require("v4l2camera"); var barcodeTypes = 0x3FF | 0x2000000 | 0x8000000 | 0x4000000; // 1D, QRCODE, PDF417, DataMatrix var cam = new v4l2camera.Camera("/dev/video0"); // list all supported formats console.log(cam.formats); // set frame format as YUYV var for...
var dbr = require('./build/Release/dbr'); var v4l2camera = require("v4l2camera"); var barcodeTypes = 0x3FF | 0x2000000 | 0x8000000 | 0x4000000; // 1D, QRCODE, PDF417, DataMatrix var cam = new v4l2camera.Camera("/dev/video0"); // list all supported formats console.log(cam.formats); // set frame format as YUYV var for...
Initialize DBR license before using camera preview
Initialize DBR license before using camera preview
JavaScript
mit
dynamsoftlabs/raspberry-pi-nodejs-barcode-reader-,dynamsoftlabs/raspberry-pi-nodejs-barcode-reader-,dynamsoftlabs/raspberry-pi-nodejs-barcode-reader-,dynamsoftlabs/raspberry-pi-nodejs-barcode-reader-
--- +++ @@ -15,6 +15,8 @@ console.log("YUYV camera required"); process.exit(1); } + +dbr.initLicense("BE3F70D6536894C4E7758E43934C92A6"); // This is trial license. To use full license, please contact support@dynamsoft.com cam.start();
6f608f696783634589b6e610ab95ef0b885dfa6e
imports/server/seed-data/seed-posts.js
imports/server/seed-data/seed-posts.js
import moment from 'moment'; import { Posts } from '../../api/collections'; const seedPosts = () => { const post = Posts.findOne(); if (!post) { for (let i = 0; i < 50; i++) { Posts.insert({ userId: 'QBgyG7MsqswQmvm7J', username: 'evancorl', createdAt: moment().utc().toDate(), ...
import moment from 'moment'; import { Posts } from '../../api/collections'; const seedPosts = () => { const post = Posts.findOne(); if (!post) { for (let i = 0; i < 50; i++) { Posts.insert({ userId: 'QBgyG7MsqswQmvm7J', username: 'evancorl', avatar: '/images/avatar.jpg', ...
Restructure fields in post seed data
Restructure fields in post seed data
JavaScript
apache-2.0
evancorl/portfolio,evancorl/skate-scenes,evancorl/skate-scenes,evancorl/portfolio,evancorl/portfolio,evancorl/skate-scenes
--- +++ @@ -10,12 +10,14 @@ Posts.insert({ userId: 'QBgyG7MsqswQmvm7J', username: 'evancorl', + avatar: '/images/avatar.jpg', createdAt: moment().utc().toDate(), + type: 'Video', + title: 'This is a sample title', message: 'Lorem ipsum dolor sit amet, co...
a351adb9a02fd9979e5785af2d5caf48065a2eff
lib/ssh/connection-handler.js
lib/ssh/connection-handler.js
const authHandler = require('./auth-handler'), sessionHandler = require('./session-handler'); function connectionHandler(client, clientInfo){ let user = {}; user.keys = []; client.on('authentication', (context) => { authHandler(context, clientInfo, user); }); client.on('ready', () => { client.once('se...
const authHandler = require('./auth-handler'), sessionHandler = require('./session-handler'); function connectionHandler(client, clientInfo){ let user = {}; user.keys = []; client.on('authentication', (context) => { authHandler(context, clientInfo, user); }); client.on('ready', () => { client.once('se...
Fix a reversion caused by cleanup
Fix a reversion caused by cleanup
JavaScript
isc
hashbang/new.hashbang.sh,hashbang/new.hashbang.sh
--- +++ @@ -19,7 +19,7 @@ console.log("Client disconnected"); }); - client.on('error', () => { + client.on('error', (err) => { // what's an error? });
4222aea93590baa17473526144b09a85ec1ed4e7
src/App.js
src/App.js
import React from 'react' import { createStore, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import createSagaMiddleware from 'redux-saga' import 'tachyons/css/tachyons.min.css' import { ShellContainer } from './containers' import { rootReducer } from './reducers' import { saga } from './sagas...
import React from 'react' import { createStore, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import createSagaMiddleware from 'redux-saga' import 'tachyons/css/tachyons.min.css' import { ShellContainer } from './containers' import { rootReducer } from './reducers' import { saga } from './sagas...
Fix import of root saga
Fix import of root saga
JavaScript
mit
joelgeorgev/file-hash-verifier,joelgeorgev/file-hash-verifier
--- +++ @@ -6,7 +6,7 @@ import { ShellContainer } from './containers' import { rootReducer } from './reducers' -import { saga } from './sagas/saga' +import { saga } from './sagas' import github from './assets/github.svg' const sagaMiddleware = createSagaMiddleware()
5650e40da0f98008a86ab01d69325ad36882e539
lib/en/sentence-start.js
lib/en/sentence-start.js
// Sentences should be preceded by a space var tokenize = require("../tokenize"); var levels = require("../levels"); var english = require("tokenize-english")(tokenize); module.exports = tokenize.check( // Tokenize as sentences english.sentences(), // Output tokenize.define(function(sentence, current...
// Sentences should be preceded by a space var tokenize = require("../tokenize"); var levels = require("../levels"); var english = require("tokenize-english")(tokenize); module.exports = tokenize.check( // Tokenize as sentences english.sentences(), // Output tokenize.define(function(sentence, current...
Fix sentence:start warning when preceded by a line
Fix sentence:start warning when preceded by a line
JavaScript
apache-2.0
GitbookIO/rousseau
--- +++ @@ -10,7 +10,7 @@ // Output tokenize.define(function(sentence, current, prev) { - if (!prev || sentence[0] == ' ') return null; + if (!prev || (prev.index + prev.offset) < current.index || sentence[0] == ' ') return null; return { index: 0,
46b38f990afb4d6af0d45b5467f2f089b556eedf
lib/experiments/index.js
lib/experiments/index.js
'use strict'; const symbol = require('../utilities/symbol'); let experiments = { MODULE_UNIFICATION: symbol('module-unification'), }; Object.freeze(experiments); module.exports = experiments;
'use strict'; let experiments = {}; Object.freeze(experiments); module.exports = experiments;
Disable in-progress experiments for beta.
Disable in-progress experiments for beta.
JavaScript
mit
balinterdi/ember-cli,ember-cli/ember-cli,sivakumar-kailasam/ember-cli,raycohen/ember-cli,mike-north/ember-cli,kellyselden/ember-cli,HeroicEric/ember-cli,mike-north/ember-cli,fpauser/ember-cli,patocallaghan/ember-cli,Turbo87/ember-cli,HeroicEric/ember-cli,Turbo87/ember-cli,patocallaghan/ember-cli,jrjohnson/ember-cli,gfv...
--- +++ @@ -1,9 +1,6 @@ 'use strict'; -const symbol = require('../utilities/symbol'); -let experiments = { - MODULE_UNIFICATION: symbol('module-unification'), -}; +let experiments = {}; Object.freeze(experiments);
709a282e95f0bbe4fe45616780e8f7032a5fb83f
res/WebGL.js
res/WebGL.js
/** * @fileoverview WebGL.js - Set up WebGL context * @author Ben Brooks (beb12@aber.ac.uk) * @version 1.0 */ /** * Initialise the WebGL context and return it * @params canvas - HTML5 Canvas element */ function initWebGL(canvas) { glContext = canvas.getContext("webgl") || canvas.getContext("exp...
/** * @fileoverview WebGL.js - Set up WebGL context * @author Ben Brooks (beb12@aber.ac.uk) * @version 1.0 */ /** * Initialise the WebGL context and return it * @params canvas - HTML5 Canvas element */ function initWebGL(canvas) { var devicePixelRatio = window.devicePixelRatio || 1; var width = canvas.clie...
Add retina support for canvas
Add retina support for canvas
JavaScript
mit
bbrks/webgl-orrery,bbrks/webgl-orrery
--- +++ @@ -10,6 +10,18 @@ */ function initWebGL(canvas) { + var devicePixelRatio = window.devicePixelRatio || 1; + var width = canvas.clientWidth; + var height = canvas.clientHeight; + + // set the display size of the canvas. + canvas.style.width = width + "px"; + canvas.style.height = height + "px"; + ...
0a9db3c329175d3db9ad75553f0c07e6d2fecf9e
client/app/components/dnt-hytteadmin-editor-section-kontakt.js
client/app/components/dnt-hytteadmin-editor-section-kontakt.js
import Ember from 'ember'; export default Ember.Component.extend({ actions: { setKontaktinfoGruppeById: function (id) { var model = this.get('model'); if (Ember.typeOf(model.setKontaktinfoGruppeById) === 'function') { model.setKontaktinfoGruppeById(id); } } } });
import Ember from 'ember'; export default Ember.Component.extend({ actions: { setKontaktinfoGruppeById: function (id) { var model = this.get('model'); if (Ember.typeOf(model.setKontaktinfoGruppeById) === 'function') { model.setKontaktinfoGruppeById(id); } } }, init: function (e...
Call setKontaktinfoGruppeById on kontaktinfo component init, to get latest kontaktinfo from Turbasen
Call setKontaktinfoGruppeById on kontaktinfo component init, to get latest kontaktinfo from Turbasen
JavaScript
mit
Turistforeningen/Hytteadmin,Turistforeningen/Hytteadmin
--- +++ @@ -8,6 +8,15 @@ model.setKontaktinfoGruppeById(id); } } + }, + + init: function (e) { + this._super(...arguments); + const kontaktinfoGruppeId = this.get('model.kontaktinfo_gruppe.gruppe_id'); + + if (kontaktinfoGruppeId) { + this.send('setKontaktinfoGruppeById', kontakti...
4f3e6ab6c46b4332bab3d61f6fa75cda3c5579fa
lib/shared/user-utils.js
lib/shared/user-utils.js
// @flow import type { RelativeUserInfo } from '../types/user-types'; import type { RelativeMemberInfo } from '../types/thread-types'; import ashoat from '../facts/ashoat'; import friends from '../facts/friends'; function stringForUser(user: RelativeUserInfo | RelativeMemberInfo): string { if (user.isViewer) { ...
// @flow import type { RelativeUserInfo } from '../types/user-types'; import type { RelativeMemberInfo } from '../types/thread-types'; import ashoat from '../facts/ashoat'; import friends from '../facts/friends'; import bots from '../facts/bots'; function stringForUser(user: RelativeUserInfo | RelativeMemberInfo): s...
Include all bots in isStaff
[lib] Include all bots in isStaff
JavaScript
bsd-3-clause
Ashoat/squadcal,Ashoat/squadcal,Ashoat/squadcal,Ashoat/squadcal,Ashoat/squadcal,Ashoat/squadcal,Ashoat/squadcal
--- +++ @@ -5,6 +5,7 @@ import ashoat from '../facts/ashoat'; import friends from '../facts/friends'; +import bots from '../facts/bots'; function stringForUser(user: RelativeUserInfo | RelativeMemberInfo): string { if (user.isViewer) { @@ -17,7 +18,16 @@ } function isStaff(userID: string) { - return us...
f0d80b076312e97f2233816ee6767df8ca7a434a
Jakefile.js
Jakefile.js
var build = require('./build/build.js'), version = require('./src/polarmap.js').version; desc('Combine and compress PolarMap source files'); task('build', {async: true}, function (compsBase32, buildName) { var v; jake.exec('git log -1 --pretty=format:"%h"', {breakOnError: false}, function () { build.build...
var build = require('./build/build.js'), version = require('./src/polarmap.js').version; desc('Combine and compress PolarMap source files'); task('build', {async: true}, function (compsBase32, buildName) { var v; jake.exec('git log -1 --pretty=format:"%h"', {breakOnError: false}, function () { build.build...
Add support for auto-build on file change
Add support for auto-build on file change Use `jake watch` command
JavaScript
bsd-2-clause
GeoSensorWebLab/polarmap.js,GeoSensorWebLab/polarmap.js,johan--/polarmap.js,johan--/polarmap.js
--- +++ @@ -15,8 +15,10 @@ }); }); +watchTask(['build'], function () { + this.watchFiles.include([ + './src/**/*.js' + ]); +}); + task('default', ['build']); - -jake.addListener('complete', function () { - process.exit(); -});
9eeffb7b18e741e58a73c2abd011fd4bfa846029
ui/src/dashboards/actions/index.js
ui/src/dashboards/actions/index.js
import { getDashboards as getDashboardsAJAX, updateDashboard as updateDashboardAJAX, } from 'src/dashboards/apis' export function loadDashboards(dashboards, dashboardID) { return { type: 'LOAD_DASHBOARDS', payload: { dashboards, dashboardID, }, } } export function setDashboard(dashboar...
import { getDashboards as getDashboardsAJAX, updateDashboard as updateDashboardAJAX, } from 'src/dashboards/apis' export const loadDashboards = (dashboards, dashboardID) => ({ type: 'LOAD_DASHBOARDS', payload: { dashboards, dashboardID, }, }) export const setDashboard = (dashboardID) => ({ type: '...
Use implicit returns for dashboard action creators
Use implicit returns for dashboard action creators Implicit returns are more concise here, and considered more idiomatic. Also, async action creators have been collected together and moved towards the end of the file for ease of navigation.
JavaScript
mit
influxdb/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,li-ang/influxdb,influxdb/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,nooproblem/influxdb,nooproblem/influxdb,nooproblem/influxdb,influxdb/influxdb,influxdata/influxdb,influxdata/influxd...
--- +++ @@ -3,64 +3,53 @@ updateDashboard as updateDashboardAJAX, } from 'src/dashboards/apis' -export function loadDashboards(dashboards, dashboardID) { - return { - type: 'LOAD_DASHBOARDS', - payload: { - dashboards, - dashboardID, - }, - } +export const loadDashboards = (dashboards, dash...
611eb17e6d61dd98c3864652e4543c5c76d697aa
js/bespin/tree/init.js
js/bespin/tree/init.js
jQuery(document).ready( function($) { function resizeTree() { $('#fileTree').height($(window).height()); // window.top.console.debug('resize', $(window).width(), $(window).height()); } function onFileClick(path) { bespin.get("editor").openFile(bespin.get('editSession').project, path, {});...
jQuery(document).ready( function($) { function resizeTree() { $('#fileTree').height($(window).height()); } function onFileClick(path) { bespin.get("editor").openFile(bespin.get('editSession').project, path, {}); } $('#fileTree').fileTree({ root: '.', script: 'cmd/php/ls/' }, onFileClick)...
Remove commented lines of code
Remove commented lines of code
JavaScript
mit
marcuswestin/alderaan,marcuswestin/alderaan
--- +++ @@ -2,12 +2,10 @@ function resizeTree() { $('#fileTree').height($(window).height()); - // window.top.console.debug('resize', $(window).width(), $(window).height()); } function onFileClick(path) { bespin.get("editor").openFile(bespin.get('editSession').project, path, {}); -...