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
429317e11c1c9f4394b3fc27de0b5da23bdbb0d5
app/js/arethusa.relation/directives/nested_menu_collection.js
app/js/arethusa.relation/directives/nested_menu_collection.js
"use strict"; angular.module('arethusa.relation').directive('nestedMenuCollection', function() { return { restrict: 'A', replace: 'true', scope: { current: '=', all: '=', property: '=', ancestors: '=', emptyVal: '@', labelAs: "=", change: "&" }, link: fun...
"use strict"; angular.module('arethusa.relation').directive('nestedMenuCollection', function() { return { restrict: 'A', replace: 'true', scope: { current: '=', all: '=', property: '=', ancestors: '=', emptyVal: '@', labelAs: "=", }, link: function(scope, eleme...
Remove change fn from nestedMenuCollection
Remove change fn from nestedMenuCollection
JavaScript
mit
Masoumeh/arethusa,Masoumeh/arethusa,alpheios-project/arethusa,alpheios-project/arethusa,alpheios-project/arethusa,latin-language-toolkit/arethusa,fbaumgardt/arethusa,fbaumgardt/arethusa,PonteIneptique/arethusa,fbaumgardt/arethusa,latin-language-toolkit/arethusa,PonteIneptique/arethusa
--- +++ @@ -11,16 +11,10 @@ ancestors: '=', emptyVal: '@', labelAs: "=", - change: "&" }, link: function(scope, element, attrs) { scope.emptyLabel = ""; scope.emptyObj = {}; - scope.$watch('current[property]', function(newVal, oldVal) { - if (newVal !== ol...
b740bdf7394e7325e174d7d4ccab1e1c185240f7
app/scripts/components/issues/comments/issue-comments-form.js
app/scripts/components/issues/comments/issue-comments-form.js
import template from './issue-comments-form.html'; class IssueCommentsFormController { // @ngInject constructor($rootScope, issueCommentsService) { this.$rootScope = $rootScope; this.issueCommentsService = issueCommentsService; } submit() { var form = this.issueCommentsService.$create(this.issue.u...
import template from './issue-comments-form.html'; class IssueCommentsFormController { // @ngInject constructor($rootScope, issueCommentsService, ncUtilsFlash) { this.$rootScope = $rootScope; this.issueCommentsService = issueCommentsService; this.ncUtilsFlash = ncUtilsFlash; } submit() { var f...
Add notifications for comment create processing [WAL-1036].
Add notifications for comment create processing [WAL-1036].
JavaScript
mit
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
--- +++ @@ -2,9 +2,10 @@ class IssueCommentsFormController { // @ngInject - constructor($rootScope, issueCommentsService) { + constructor($rootScope, issueCommentsService, ncUtilsFlash) { this.$rootScope = $rootScope; this.issueCommentsService = issueCommentsService; + this.ncUtilsFlash = ncUtils...
8b321a6c8a960f222477682e447e405971c4548e
website/addons/figshare/static/figshareFangornConfig.js
website/addons/figshare/static/figshareFangornConfig.js
var m = require('mithril'); var Fangorn = require('fangorn'); // Although this is empty it should stay here. Fangorn is going to look for figshare in it's config file. Fangorn.config.figshare = { };
var m = require('mithril'); var Fangorn = require('fangorn'); // Define Fangorn Button Actions function _fangornActionColumn (item, col) { var self = this; var buttons = []; if (item.kind === 'folder') { buttons.push( { 'name' : '', 'tooltip' : 'Upload...
Repair removed figshare checks for action buttons
Repair removed figshare checks for action buttons
JavaScript
apache-2.0
hmoco/osf.io,cldershem/osf.io,barbour-em/osf.io,binoculars/osf.io,bdyetton/prettychart,sbt9uc/osf.io,SSJohns/osf.io,brandonPurvis/osf.io,samchrisinger/osf.io,bdyetton/prettychart,mfraezz/osf.io,baylee-d/osf.io,asanfilippo7/osf.io,felliott/osf.io,binoculars/osf.io,brandonPurvis/osf.io,wearpants/osf.io,monikagrabowska/os...
--- +++ @@ -3,8 +3,57 @@ var Fangorn = require('fangorn'); -// Although this is empty it should stay here. Fangorn is going to look for figshare in it's config file. +// Define Fangorn Button Actions +function _fangornActionColumn (item, col) { + var self = this; + var buttons = []; + + if (item.kind =...
05eb13e445bd7adb0a7ca0d0fbb44968093a3f9f
lib/query/query.server.js
lib/query/query.server.js
import createGraph from './lib/createGraph.js'; import prepareForProcess from './lib/prepareForProcess.js'; import hypernova from './hypernova/hypernova.js'; import Base from './query.base'; export default class Query extends Base { /** * Retrieves the data. * @param context * @returns {*} */ ...
import createGraph from './lib/createGraph.js'; import prepareForProcess from './lib/prepareForProcess.js'; import hypernova from './hypernova/hypernova.js'; import Base from './query.base'; export default class Query extends Base { /** * Retrieves the data. * @param context * @returns {*} */ ...
Improve fetchOne to only return 1 result
Improve fetchOne to only return 1 result Inspired by meteor's findOne
JavaScript
mit
cult-of-coders/grapher
--- +++ @@ -19,11 +19,13 @@ } /** - * @param args + * @param context * @returns {*} */ - fetchOne(...args) { - return _.first(this.fetch(...args)); + fetchOne(context = {}) { + context.$options = context.$options || {}; + context.$options.limit = 1; + ...
6215189a16e91c771ed0d4a2f1a83493625480ee
api/server/boot/install.js
api/server/boot/install.js
'use strict'; var installed=true; module.exports = function (app) { if (!installed) { var User = app.models.User; var Role = app.models.Role; var RoleMapping = app.models.RoleMapping; var cb = function (m) { console.log(m) }; User.create([ {us...
'use strict'; var installed=true; module.exports = function (app) { if (!installed) { var Account = app.models.Account; var Role = app.models.Role; var RoleMapping = app.models.RoleMapping; var cb = function (m) { console.log(m) }; Account.create([ ...
Use new Account model to create admin user
Use new Account model to create admin user
JavaScript
mpl-2.0
enimiste/ng4-loopback-blog-tutorial,enimiste/ng4-loopback-blog-tutorial,enimiste/ng4-loopback-blog-tutorial
--- +++ @@ -2,16 +2,16 @@ var installed=true; module.exports = function (app) { if (!installed) { - var User = app.models.User; + var Account = app.models.Account; var Role = app.models.Role; var RoleMapping = app.models.RoleMapping; var cb = function (m) { ...
0ab09a056a19f798fae9582f92da5087b79b67a8
sections/advanced/refs.js
sections/advanced/refs.js
import md from 'components/md' const Refs = () => md` ## Refs Passing a \`ref\` prop to a styled component will give you an instance of the \`StyledComponent\` wrapper, but not to the underlying DOM node. This is due to how refs work. It's not possible to call DOM methods, like \`focus\`, on our wrappers di...
import md from 'components/md' const Refs = () => md` ## Refs Passing a \`ref\` prop to a styled component will give you an instance of the \`StyledComponent\` wrapper, but not to the underlying DOM node. This is due to how refs work. It's not possible to call DOM methods, like \`focus\`, on our wrappers di...
Add function body around ref assignment
Add function body around ref assignment
JavaScript
mit
styled-components/styled-components-website,styled-components/styled-components-website
--- +++ @@ -30,7 +30,7 @@ return ( <Input placeholder="Hover here..." - innerRef={x => this.input = x} + innerRef={x => { this.input = x }} onMouseEnter={() => this.input.focus()} /> );
deff306984bfb46dec7d5ac494a7f2bcb18cfc53
app/resonant-reference-app/views/widgets/MappingView/index.js
app/resonant-reference-app/views/widgets/MappingView/index.js
import Backbone from 'backbone'; import myTemplate from './index.jade'; let MappingView = Backbone.View.extend({ initialize: function () { }, render: function () { this.$el.html(myTemplate()); } }); export default MappingView;
import Backbone from 'backbone'; import myTemplate from './index.jade'; import candela from '../../../../../src'; let MappingView = Backbone.View.extend({ initialize: function () { }, render: function () { const spec = candela.components.Scatter.options; const fields = spec.filter((opt) => opt.selector &...
Gather some information about field selectors
Gather some information about field selectors
JavaScript
apache-2.0
Kitware/candela,Kitware/candela,Kitware/candela,Kitware/candela,Kitware/candela
--- +++ @@ -1,10 +1,16 @@ import Backbone from 'backbone'; import myTemplate from './index.jade'; +import candela from '../../../../../src'; let MappingView = Backbone.View.extend({ initialize: function () { }, render: function () { + const spec = candela.components.Scatter.options; + const fields...
bf3bdbe2b7dd247b0854f980f03c9270a6d026b7
client/mobrender/redux/action-creators/async-update-widget.js
client/mobrender/redux/action-creators/async-update-widget.js
import { createAction } from './create-action' import * as t from '../action-types' import AuthSelectors from '~authenticate/redux/selectors' import Selectors from '../selectors' export default widget => (dispatch, getState, { api }) => { dispatch(createAction(t.UPDATE_WIDGET_REQUEST)) const credentials = AuthSel...
import { createAction } from './create-action' import * as t from '../action-types' import AuthSelectors from '~authenticate/redux/selectors' import Selectors from '../selectors' export default widget => (dispatch, getState, { api }) => { dispatch(createAction(t.UPDATE_WIDGET_REQUEST)) const credentials = AuthSel...
Fix error update widget action
Fix error update widget action
JavaScript
agpl-3.0
nossas/bonde-client,nossas/bonde-client,nossas/bonde-client
--- +++ @@ -15,7 +15,7 @@ dispatch(createAction(t.UPDATE_WIDGET_SUCCESS, res.data)) }) .catch(ex => { - dispatch(createAction(t.UPDATE_WIDGET_FAILURE, error)) + dispatch(createAction(t.UPDATE_WIDGET_FAILURE, ex)) return Promise.reject(ex) }) }
7e9b2abdd8fb3fbd799f8300a4b22269643831f0
client/components/Location/Entriex/Creation/index.js
client/components/Location/Entriex/Creation/index.js
var ui = require('tresdb-ui'); var emitter = require('component-emitter'); var template = require('./template.ejs'); var FormView = require('../../../Entry/Form'); // Remember contents of unsubmitted forms during the session. // Cases where necessary: // - user fills the form but then exits to the map to search releva...
var ui = require('tresdb-ui'); var emitter = require('component-emitter'); var template = require('./template.ejs'); var FormView = require('../../../Entry/Form'); module.exports = function (location) { // Parameters: // location // location object // NOTE only location id is needed but the view ge...
Remove duplicate draft saving features at Location Entries Creation
Remove duplicate draft saving features at Location Entries Creation
JavaScript
mit
axelpale/tresdb,axelpale/tresdb
--- +++ @@ -2,20 +2,13 @@ var emitter = require('component-emitter'); var template = require('./template.ejs'); var FormView = require('../../../Entry/Form'); - -// Remember contents of unsubmitted forms during the session. -// Cases where necessary: -// - user fills the form but then exits to the map to search re...
358406f12becb20701ad28ec28da3fd974fd4e95
test/reject-spec.js
test/reject-spec.js
import { expect } from 'chai'; import u from '../lib'; describe('u.reject', () => { it('freezes the result', () => { expect(Object.isFrozen(u.reject('a', []))).to.be.true; }); });
import { expect } from 'chai'; import u from '../lib'; describe('u.reject', () => { it('can reject by index', () => { const result = u.reject((_, index) => index === 1, [3, 4, 5]); expect(result).to.eql([3, 5]); }); it('freezes the result', () => { expect(Object.isFrozen(u.reject('a', []))).to.be.t...
Add spec for reject by index
Add spec for reject by index
JavaScript
mit
substantial/updeep,substantial/updeep
--- +++ @@ -2,6 +2,12 @@ import u from '../lib'; describe('u.reject', () => { + it('can reject by index', () => { + const result = u.reject((_, index) => index === 1, [3, 4, 5]); + + expect(result).to.eql([3, 5]); + }); + it('freezes the result', () => { expect(Object.isFrozen(u.reject('a', [])))....
b0966f22c8ff90a61d87215f3f1e588f4171895c
jest.config.js
jest.config.js
// For a detailed explanation regarding each configuration property, visit: // https://jestjs.io/docs/en/configuration.html module.exports = { roots: ["<rootDir>/src/main/javascript"], collectCoverage: false, collectCoverageFrom: ["**/*.js", "!**/*.{test,spec}.js", "!**/__tests__/**", "!**/WEB-INF/**"], covera...
// For a detailed explanation regarding each configuration property, visit: // https://jestjs.io/docs/en/configuration.html module.exports = { roots: ["<rootDir>/src/main/javascript"], collectCoverage: false, collectCoverageFrom: ["**/*.js", "!**/*.{test,spec}.js", "!**/__tests__/**", "!**/WEB-INF/**"], covera...
Migrate deprecated jest testUrl to testEnvironmentOptions.url
Migrate deprecated jest testUrl to testEnvironmentOptions.url
JavaScript
apache-2.0
synyx/urlaubsverwaltung,synyx/urlaubsverwaltung,synyx/urlaubsverwaltung,synyx/urlaubsverwaltung
--- +++ @@ -6,8 +6,10 @@ collectCoverage: false, collectCoverageFrom: ["**/*.js", "!**/*.{test,spec}.js", "!**/__tests__/**", "!**/WEB-INF/**"], coverageDirectory: "<rootDir>/target/js-coverage", - testURL: "http://localhost", testEnvironment: "jsdom", + testEnvironmentOptions: { + url: "http://local...
1c99a4bcf99b3af5563bed97beedca61727ae3b7
js/src/util.js
js/src/util.js
const path = (props, obj) => { let nested = obj; const properties = typeof props === 'string' ? props.split('.') : props; for (let i = 0; i < properties.length; i++) { nested = nested[properties[i]]; if (nested === undefined) { return nested; } } return nested; }; module.exports = { pat...
/** Wrap DOM selector methods: * document.querySelector, * document.getElementById, * document.getElementsByClassName] */ const dom = { query(...args) { return document.querySelector(args); }, id(...args) { return document.getElementById(args); }, class(...args) { return document.getElementsBy...
Update dom methods to avoid illegal invocation error.
Update dom methods to avoid illegal invocation error.
JavaScript
mit
adrice727/accelerator-core-js,opentok/accelerator-core-js,opentok/accelerator-core-js,adrice727/accelerator-core-js
--- +++ @@ -1,3 +1,25 @@ +/** Wrap DOM selector methods: + * document.querySelector, + * document.getElementById, + * document.getElementsByClassName] + */ +const dom = { + query(...args) { + return document.querySelector(args); + }, + id(...args) { + return document.getElementById(args); + }, + class(...a...
b26979135e1d39a8294abd664b8bb23c8b135748
Gulpfile.js
Gulpfile.js
var gulp = require('gulp'); var concat = require('gulp-concat'); var uglify = require('gulp-uglify'); var rename = require('gulp-rename'); var template = require('gulp-template'); var bower = require('./bower.json'); var dist_dir = './' var dist_file = 'launchpad.js'; gulp.task('version', function(){ return gulp...
var gulp = require('gulp'); var concat = require('gulp-concat'); var uglify = require('gulp-uglify'); var rename = require('gulp-rename'); var template = require('gulp-template'); var KarmaServer = require('karma').Server; var bower = require('./bower.json'); var dist_dir = './' var dist_file = 'launchpad.js'; gulp....
Create a gulp test target
Create a gulp test target
JavaScript
mit
dvberkel/LaunchpadJS
--- +++ @@ -3,6 +3,7 @@ var uglify = require('gulp-uglify'); var rename = require('gulp-rename'); var template = require('gulp-template'); +var KarmaServer = require('karma').Server; var bower = require('./bower.json'); @@ -28,6 +29,13 @@ .pipe(gulp.dest(dist_dir)); }); +gulp.task('test', ['compre...
2e79e9b49dd49fb72923a45f44ced0608394c409
qml/js/logic/channelPageLogic.js
qml/js/logic/channelPageLogic.js
.import "../applicationShared.js" as Globals function workerOnMessage(messageObject) { if(messageObject.apiMethod === 'channels.history') { addMessagesToModel(messageObject.data); } else if(messageObject.apiMethod === 'channels.info') { addChannelInfoToPage(messageObject.data); } else { ...
.import "../applicationShared.js" as Globals function workerOnMessage(messageObject) { if(messageObject.apiMethod === 'channels.history') { addMessagesToModel(messageObject.data); } else if(messageObject.apiMethod === 'channels.info') { addChannelInfoToPage(messageObject.data); } else { ...
Remove invalid argument of channel.info method
Remove invalid argument of channel.info method
JavaScript
mit
neversun/Slackfish,neversun/Slackfish
--- +++ @@ -12,8 +12,7 @@ function loadChannelInfo() { var arguments = { - channel: channelPage.channelID, - count: 42 + channel: channelPage.channelID } slackWorker.sendMessage({'apiMethod': "channels.info", 'token': Globals.slackToken, 'arguments': arguments }); }
1452ae94cec46f13e888a3e80e2ce54ee552bf3f
dist/babelify-config.js
dist/babelify-config.js
const babelifyConfig = { presets: [ ['@babel/preset-env', { 'useBuiltIns': 'entry', }], ], extensions: '.ts', } module.exports = babelifyConfig;
const babelifyConfig = { presets: [ ['@babel/preset-env', { 'useBuiltIns': 'entry', 'targets': { 'firefox': 50, 'chrome': 45, 'opera': 32, 'safari': 11, }, }], ], extensions: '.ts', } module....
Use explicit targets for babel-preset-env
Use explicit targets for babel-preset-env This reduces bundle size by 5 KiB.
JavaScript
agpl-3.0
threema-ch/threema-web,threema-ch/threema-web,threema-ch/threema-web,threema-ch/threema-web,threema-ch/threema-web
--- +++ @@ -2,6 +2,12 @@ presets: [ ['@babel/preset-env', { 'useBuiltIns': 'entry', + 'targets': { + 'firefox': 50, + 'chrome': 45, + 'opera': 32, + 'safari': 11, + }, }], ], extensions: '.t...
2f9a1ff18cd8a495b94dfe9104aa56a2697c3534
chrome/test/data/extensions/samples/subscribe/feed_finder.js
chrome/test/data/extensions/samples/subscribe/feed_finder.js
find(); window.addEventListener("focus", find); function find() { if (window == top) { // Find all the RSS link elements. var result = document.evaluate( '//link[@rel="alternate"][contains(@type, "rss") or ' + 'contains(@type, "atom") or contains(@type, "rdf")]', document, nu...
find(); window.addEventListener("focus", find); function find() { if (window == top) { // Find all the RSS link elements. var result = document.evaluate( '//link[@rel="alternate"][contains(@type, "rss") or ' + 'contains(@type, "atom") or contains(@type, "rdf")]', document, nu...
Fix an occurence of 'chromium' that didn't get changed to 'chrome'
Fix an occurence of 'chromium' that didn't get changed to 'chrome' Review URL: http://codereview.chromium.org/115049 git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@15486 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
JavaScript
bsd-3-clause
wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser
--- +++ @@ -14,6 +14,6 @@ while (item = result.iterateNext()) feeds.push(item.href); - chromium.extension.connect().postMessage(feeds); + chrome.extension.connect().postMessage(feeds); } }
f45f0d1e7420f22d92382eb58422c990d8e913d9
_data/split-aggregated.js
_data/split-aggregated.js
/** * Splits the aggregated JSON file into individual JSON files per EIN * Files are then available to Jekyll in the _data folder * * TODO Lots of opportunities to simplify - good first pull request 😉 */ const {chain} = require('stream-chain'); const {parser} = require('stream-json'); const {streamArray} = requ...
/** * Splits the aggregated JSON file into individual JSON files per EIN * Files are then available to Jekyll in the _data folder * * TODO Lots of opportunities to simplify - good first pull request 😉 */ const {chain} = require('stream-chain'); const {parser} = require('stream-json'); const {streamArray} = requ...
Improve handling of large objects in pre-jekyll processes (cont'd)
Improve handling of large objects in pre-jekyll processes (cont'd) Reduce grants arrays across all profiles. Goal is to reduce memory spikes when Jekyll attempts to sort the grants array during build time.
JavaScript
mit
grantmakers/profiles,grantmakers/profiles,grantmakers/profiles
--- +++ @@ -16,6 +16,10 @@ streamArray(), data => { const doc = data.value; + // Mutute the array and keep only the largest 50 grants + doc.grants.sort((a, b) => b.amount - a.amount); + doc.grants.splice(50); + return doc; }, ]);
32697b5e5783148d518017943077814c63725257
webpack.config.js
webpack.config.js
const path = require('path'); const CopyWebpackPlugin = require('copy-webpack-plugin'); module.exports = { entry: './app/src/app.js', output: { path: path.resolve(__dirname, 'build'), filename: 'app.js' }, plugins: [ // Copy our app's index.html to the build folder. new ...
const path = require('path'); const CopyWebpackPlugin = require('copy-webpack-plugin'); module.exports = { entry: './app/src/app.js', output: { path: path.resolve(__dirname, 'build'), filename: 'app.js' }, plugins: [ // Copy our app's index.html to the build folder. new ...
Add support for otf fonts
Add support for otf fonts
JavaScript
mit
Neufund/Contracts
--- +++ @@ -42,7 +42,7 @@ } }, { - test: /\.(ttf|svg|eot)$/, + test: /\.(ttf|svg|eot|otf)$/, loader: 'file-loader', options: { name: 'fonts/[hash].[ext]',
7da24658d59dcb5c64d0777c147ebeba80071489
express-web-app-example.js
express-web-app-example.js
var compression = require("compression"); var express = require("express"); var handlebars = require("express-handlebars"); // Initialize Express var app = express(); // Treat "/foo" and "/Foo" as different URLs app.set("case sensitive routing", true); // Treat "/foo" and "/foo/" as different URLs app.set("stri...
var compression = require("compression"); var express = require("express"); var handlebars = require("express-handlebars"); // Initialize Express var app = express(); // Treat "/foo" and "/Foo" as different URLs app.set("case sensitive routing", true); // Treat "/foo" and "/foo/" as different URLs app.set("stri...
Set the default port to 3001 so it doesn't conflict with the default 3000 of express-rest-api-example.
Set the default port to 3001 so it doesn't conflict with the default 3000 of express-rest-api-example.
JavaScript
mit
stevecochrane/express-web-app-example,stevecochrane/express-web-app-example
--- +++ @@ -11,8 +11,8 @@ // Treat "/foo" and "/foo/" as different URLs app.set("strict routing", true); -// Default to port 3000 -app.set("port", process.env.PORT || 3000); +// Default to port 3001 +app.set("port", process.env.PORT || 3001); // Compress all requests app.use(compression());
fa5c360cd1b642ea6ebc696052e321a7b5e62de1
Assets/scripts/SplashClickHandler.js
Assets/scripts/SplashClickHandler.js
#pragma strict private var _gameManager : GameManager; private var _isTriggered = false; function Start() { _gameManager = GameManager.Instance(); } function Update() { } function OnMouseDown() { if (!_isTriggered) { rollAway(); _isTriggered = true; } } private function rollAway() { iTween.RotateB...
#pragma strict private var _gameManager : GameManager; private var _isTriggered = false; function Start() { _gameManager = GameManager.Instance(); } function Update() { } function OnMouseDown() { if (!_isTriggered) { rollAway(); _isTriggered = true; } } private function rollAway() { iTween.RotateB...
Move splash screen farther afield on click.
Move splash screen farther afield on click.
JavaScript
mit
mildmojo/bombay-intervention,mildmojo/bombay-intervention
--- +++ @@ -25,7 +25,7 @@ ,'time', 1.0 )); iTween.MoveTo(gameObject, iTween.Hash( - 'position', transform.position + Vector3(-Screen2D.worldWidth(),0,0) + 'position', transform.position + Vector3(-Screen2D.worldWidth() * 1.5,0,0) ,'easetype', 'easeInOutBack' ,'time', 1.0 ));
3a270f06122001df0204cce8dbd7697748659183
app/assets/javascripts/student_profile_v2/academic_summary.js
app/assets/javascripts/student_profile_v2/academic_summary.js
(function() { window.shared || (window.shared = {}); var dom = window.shared.ReactHelpers.dom; var createEl = window.shared.ReactHelpers.createEl; var merge = window.shared.ReactHelpers.merge; var PropTypes = window.shared.PropTypes; var styles = { caption: { marginRight: 5 }, value: { ...
(function() { window.shared || (window.shared = {}); var dom = window.shared.ReactHelpers.dom; var createEl = window.shared.ReactHelpers.createEl; var merge = window.shared.ReactHelpers.merge; var PropTypes = window.shared.PropTypes; var styles = { caption: { marginRight: 5 }, value: { ...
Tweak padding on summary text
Tweak padding on summary text
JavaScript
mit
studentinsights/studentinsights,studentinsights/studentinsights,jhilde/studentinsights,erose/studentinsights,erose/studentinsights,jhilde/studentinsights,erose/studentinsights,studentinsights/studentinsights,erose/studentinsights,jhilde/studentinsights,jhilde/studentinsights,studentinsights/studentinsights
--- +++ @@ -15,6 +15,9 @@ sparklineContainer: { paddingLeft: 15, paddingRight: 15 + }, + textContainer: { + paddingBottom: 5 } }; @@ -29,7 +32,7 @@ render: function() { return dom.div({ className: 'AcademicSummary' }, - dom.div({}, + dom.div({ styl...
725c60ab2f75a085cde14843ad2f6a73eab8cb76
src/Oro/Bundle/FilterBundle/Resources/public/js/map-filter-module-name.js
src/Oro/Bundle/FilterBundle/Resources/public/js/map-filter-module-name.js
define(function() { 'use strict'; var moduleNameTemplate = 'oro/filter/{{type}}-filter'; var types = { string: 'choice', choice: 'select', single_choice: 'select', selectrow: 'select-row', multichoice: 'multiselect', boolea...
define(function() { 'use strict'; var moduleNameTemplate = 'oro/filter/{{type}}-filter'; var types = { string: 'choice', choice: 'select', single_choice: 'select', selectrow: 'select-row', multichoice: 'multiselect', boolea...
Modify frontend component to load proper filters for both enum and dictionary types
BAP-8615: Modify frontend component to load proper filters for both enum and dictionary types
JavaScript
mit
geoffroycochard/platform,orocrm/platform,hugeval/platform,Djamy/platform,hugeval/platform,northdakota/platform,ramunasd/platform,trustify/oroplatform,trustify/oroplatform,2ndkauboy/platform,northdakota/platform,ramunasd/platform,orocrm/platform,trustify/oroplatform,Djamy/platform,geoffroycochard/platform,2ndkauboy/plat...
--- +++ @@ -8,7 +8,8 @@ single_choice: 'select', selectrow: 'select-row', multichoice: 'multiselect', - boolean: 'select' + boolean: 'select', + dictionary: 'dictionary' }; return function(type) {
f0b4e3cc48e61b221fe2db7aa8be38d506dfd69e
lib/disproperty.js
lib/disproperty.js
/** * Disproperty: Disposable properties. * Copyright (c) 2015 Vladislav Zarakovsky * MIT license https://github.com/vlazar/disproperty/blob/master/LICENSE */ (function(root) { function disproperty(obj, prop, value) { return Object.defineProperty(obj, prop, { configurable: true, get: function() ...
/** * Disproperty: Disposable properties. * Copyright (c) 2015 Vladislav Zarakovsky * MIT license https://github.com/vlazar/disproperty/blob/master/LICENSE */ (function(root) { function disproperty(obj, prop, value) { return Object.defineProperty(obj, prop, { configurable: true, get: function() ...
Fix AMD and CommonJS were mixed up
Fix AMD and CommonJS were mixed up
JavaScript
mit
vlazar/disproperty
--- +++ @@ -22,9 +22,9 @@ // Exports: AMD, CommonJS, <script> tag if (typeof define === 'function' && define.amd) { + define(function() { return disproperty }); + } else if (typeof exports === 'object') { module.exports = disproperty; - } else if (typeof exports === 'object') { - define(function(...
adc14a177ba3c37618b2f63f8f4ca272cdc94586
lib/updateModel.js
lib/updateModel.js
var _ = require('underscore'), async = require('async'), curry = require('curry'), Dependency = require('../models').Dependency, compHelper = require('./componentHelper'), compInstall = compHelper.install, compBuild = compHelper.build; module.exports = function updateModel (mode...
var _ = require('underscore'), async = require('async'), curry = require('curry'), Dependency = require('../models').Dependency, compHelper = require('./componentHelper'), compInstall = compHelper.install, compBuild = compHelper.build; module.exports = function updateModel (mode...
Return model when finishing updating model
Return model when finishing updating model
JavaScript
mit
web-audio-components/web-audio-components-service
--- +++ @@ -29,5 +29,7 @@ function () { model.save.apply(model, arguments); } - ], callback); + ], function (err) { + callback(err, model); + }); };
347d62cc1eac9d5b58729000df03dc43313708cd
api/script-rules-rule.vm.js
api/script-rules-rule.vm.js
(function() { var rule = data.rules[parseInt(request.param.num, 10)] || null; if (rule === null) return response.error(404); switch (request.method) { case 'GET': response.head(200); response.end(JSON.stringify(rule, null, ' ')); return; case 'PUT': if (request.headers['content-type'].match...
(function() { var num = parseInt(request.param.num, 10).toString(10); var rule = data.rules[num] || null; if (rule === null) return response.error(404); switch (request.method) { case 'GET': response.head(200); response.end(JSON.stringify(rule, null, ' ')); return; case 'PUT': if (request....
Fix rule number parameter check
Fix rule number parameter check A parameter validation of rule number must be effective in preventing OS command execution.
JavaScript
mit
polamjag/Chinachu,kanreisa/Chinachu,kounoike/Chinachu,wangjun/Chinachu,tdenc/Chinachu,wangjun/Chinachu,valda/Chinachu,upsilon/Chinachu,xtne6f/Chinachu,xtne6f/Chinachu,miyukki/Chinachu,kounoike/Chinachu,upsilon/Chinachu,wangjun/Chinachu,xtne6f/Chinachu,polamjag/Chinachu,tdenc/Chinachu,miyukki/Chinachu,valda/Chinachu,ups...
--- +++ @@ -1,6 +1,7 @@ (function() { - var rule = data.rules[parseInt(request.param.num, 10)] || null; + var num = parseInt(request.param.num, 10).toString(10); + var rule = data.rules[num] || null; if (rule === null) return response.error(404); @@ -30,7 +31,7 @@ return; case 'DELETE': - chi...
505fd5d747f1be4c35397b2821559d21147f5fdb
gui/js/main.js
gui/js/main.js
/** * main.js * * Only runs in modern browsers via feature detection * Requires support for querySelector, classList and addEventListener */ if('querySelector' in document && 'classList' in document.createElement('a') && 'addEventListener' in window) { // Add class "js" to html element document.querySelector...
Add JS class to html element
Add JS class to html element
JavaScript
isc
frippz/valleoptik-prototype,frippz/valleoptik-prototype
--- +++ @@ -0,0 +1,14 @@ +/** + * main.js + * + * Only runs in modern browsers via feature detection + * Requires support for querySelector, classList and addEventListener + */ + +if('querySelector' in document && 'classList' in document.createElement('a') && 'addEventListener' in window) { + + // Add class "js" to ...
4b25bf1240a13fec21cb6a2b1b4a48aa54588716
gulp/config.js
gulp/config.js
'use strict'; module.exports = { 'browserPort' : 3000, 'UIPort' : 3001, 'serverPort' : 3002, 'styles': { 'src' : 'app/styles/**/*.scss', 'dest': 'build/css', 'prodSourcemap' : true }, 'scripts': { 'src' : 'app/js/**/*.js', 'dest': 'build/js' }, 'images': { 'src' : '...
'use strict'; module.exports = { 'browserPort' : 3000, 'UIPort' : 3001, 'serverPort' : 3002, 'styles': { 'src' : 'app/styles/**/*.scss', 'dest': 'build/css', 'prodSourcemap' : false }, 'scripts': { 'src' : 'app/js/**/*.js', 'dest': 'build/js' }, 'images': { 'src' : ...
Disable sourcemaps in production, by default
Disable sourcemaps in production, by default
JavaScript
mit
jakemmarsh/angularjs-gulp-browserify-boilerplate,dandiellie/starter,Mojility/angularjs-gulp-browserify-boilerplate,hoodsy/resurgent,dkim-95112/infosys,shoaibkalsekar/angularjs-gulp-browserify-boilerplate,jakemmarsh/angularjs-gulp-browserify-boilerplate,jfarribillaga/angular16,mjpoteet/youtubeapi,Deftunk/TestCircleCi,da...
--- +++ @@ -9,7 +9,7 @@ 'styles': { 'src' : 'app/styles/**/*.scss', 'dest': 'build/css', - 'prodSourcemap' : true + 'prodSourcemap' : false }, 'scripts': { @@ -49,7 +49,7 @@ 'browserify': { 'entries' : ['./app/js/main.js'], 'bundleName': 'main.js', - 'prodSourcemap' : true...
8ccebea0f071952a40efe56b55853df7b5e21246
app/models/sequence-item.js
app/models/sequence-item.js
import DS from "ember-data"; export default DS.Model.extend({ page: DS.belongsTo('page'), section: DS.belongsTo('section'), sequence: DS.belongsTo('sequence'), title: DS.attr('string'), commentary: DS.hasOneFragment('markdown') });
import DS from "ember-data"; export default DS.Model.extend({ page: DS.belongsTo('page'), section: DS.belongsTo('section', {async: true}), sequence: DS.belongsTo('sequence'), title: DS.attr('string'), commentary: DS.hasOneFragment('markdown') });
Allow async loading of sections
Allow async loading of sections
JavaScript
mit
artzte/fightbook-app
--- +++ @@ -2,7 +2,7 @@ export default DS.Model.extend({ page: DS.belongsTo('page'), - section: DS.belongsTo('section'), + section: DS.belongsTo('section', {async: true}), sequence: DS.belongsTo('sequence'), title: DS.attr('string'), commentary: DS.hasOneFragment('markdown')
0c410708be0bd112391b0f6f34d0a1cfca39ea85
addon/engine.js
addon/engine.js
import Engine from 'ember-engines/engine'; import Resolver from 'ember-resolver'; import loadInitializers from 'ember-load-initializers'; import config from './config/environment'; const { modulePrefix } = config; const Eng = Engine.extend({ modulePrefix, Resolver, dependencies: { services: [ 'store',...
import Engine from 'ember-engines/engine'; import Resolver from 'ember-resolver'; import loadInitializers from 'ember-load-initializers'; import config from './config/environment'; const { modulePrefix } = config; const Eng = Engine.extend({ modulePrefix, Resolver }); loadInitializers(Eng, modulePrefix); export ...
Revert "recieving store and sessions services"
Revert "recieving store and sessions services" This reverts commit 185961492fca2d78bc8d8372c7d08aae08d2a166.
JavaScript
mit
scottharris86/external-admin,scottharris86/external-admin
--- +++ @@ -6,15 +6,7 @@ const { modulePrefix } = config; const Eng = Engine.extend({ modulePrefix, - Resolver, - - dependencies: { - services: [ - 'store', - 'session' - ] - } - + Resolver }); loadInitializers(Eng, modulePrefix);
fe04cf7da47cb7cec0f127d54dcaa3ad17a960bb
dev/app/components/main/reports/reports.controller.js
dev/app/components/main/reports/reports.controller.js
ReportsController.$inject = [ '$rootScope', 'TbUtils', 'reports' ]; function ReportsController ($rootScope, TbUtils, reports) { var vm = this; vm.reports = [ { title: 'Reporte de Costos', url: 'http://fiasps.unitec.edu:8085/api/Reports/CostsReport/2015' }, { title: 'Reporte de Horas de Estudiantes', url: 'http:...
ReportsController.$inject = [ '$rootScope', 'TbUtils', 'reports', '$state' ]; function ReportsController ($rootScope, TbUtils, reports, $state) { if ($rootScope.Role !== 'Admin') $state.go('main.projects'); var vm = this; vm.reports = [ { title: 'Reporte de Costos', url: 'http://fiasps.unitec.edu:8085/api/Repor...
Fix who can access reports state
Fix who can access reports state
JavaScript
mit
Tribu-Anal/Vinculacion-Front-End,Tribu-Anal/Vinculacion-Front-End,Tribu-Anal/Manejo-Horas-de-Vinculacion-UNITEC,Tribu-Anal/Manejo-Horas-de-Vinculacion-UNITEC
--- +++ @@ -1,6 +1,8 @@ -ReportsController.$inject = [ '$rootScope', 'TbUtils', 'reports' ]; +ReportsController.$inject = [ '$rootScope', 'TbUtils', 'reports', '$state' ]; -function ReportsController ($rootScope, TbUtils, reports) { +function ReportsController ($rootScope, TbUtils, reports, $state) { + if ($rootSco...
e78f92680c92e0dcde41875741ea707ad1031172
addon/initializers/syncer.js
addon/initializers/syncer.js
import Syncer from '../syncer'; export function initialize(application) { application.register('syncer:main', Syncer); } export default { name: 'syncer', before: 'store', initialize };
import Syncer from '../syncer'; export function initialize(application) { //Register factory for Syncer. application.register('syncer:main', Syncer); } export default { name: 'syncer', before: 'ember-data', initialize };
Fix using of `store` initializer
Fix using of `store` initializer `store` initializer was added to keep backwards compatibility since ember-data 2.5.0
JavaScript
mit
Flexberry/ember-flexberry-offline,Flexberry/ember-flexberry-offline
--- +++ @@ -1,11 +1,12 @@ import Syncer from '../syncer'; export function initialize(application) { + //Register factory for Syncer. application.register('syncer:main', Syncer); } export default { name: 'syncer', - before: 'store', + before: 'ember-data', initialize };
b1c0ed1868d8d1aabeb8d76f4fe8d6db10403516
logic/setting/campaign/writeCampaignSettingModelLogic.js
logic/setting/campaign/writeCampaignSettingModelLogic.js
var configuration = require('../../../config/configuration.json') var utility = require('../../../public/method/utility') module.exports = { setCampaignSettingModel: function (redisClient, campaignHashID, payload, callback) { } }
var configuration = require('../../../config/configuration.json') var utility = require('../../../public/method/utility') module.exports = { setCampaignSettingModel: function (redisClient, accountHashID, campaignHashID, payload, callback) { var table var score = utility.getUnixTimeStamp() var multi = red...
Implement Create a Campaign Model Setting Dynamically
Implement Create a Campaign Model Setting Dynamically
JavaScript
mit
Flieral/Announcer-Service,Flieral/Announcer-Service
--- +++ @@ -2,7 +2,79 @@ var utility = require('../../../public/method/utility') module.exports = { - setCampaignSettingModel: function (redisClient, campaignHashID, payload, callback) { + setCampaignSettingModel: function (redisClient, accountHashID, campaignHashID, payload, callback) { + var table + var...
3b3d8b40a5b4dda16440a0262246aa6ff8da4332
gulp/watch.js
gulp/watch.js
import gulp from 'gulp'; import {build} from './build'; import {test} from './test'; import {makeParser, fixParser} from './parse'; const allSrcGlob = [ 'src/**/*.js', '!src/static/antlr4/parsers/**/*.js', 'test/**/*.js', ]; const allBuildGlob = [ 'build/src/*.js', 'build/test/**/*.js', ]; const grammarGlob ...
import gulp from 'gulp'; import {build} from './build'; import {test} from './test'; import {makeParser, fixParser} from './parse'; const allSrcGlob = [ 'src/**/*.js', '!src/static/antlr4/parsers/**/*.js', 'test/**/*.js', ]; const allBuildGlob = [ 'build/src/*.js', 'build/test/**/*.js', ]; const grammarGlob ...
Test again when TestudocParser is recreated
Test again when TestudocParser is recreated
JavaScript
mit
jlenoble/ecmascript-parser
--- +++ @@ -18,6 +18,7 @@ ]; const dataGlob = [ 'src/static/data/**/*.*', + 'src/static/antlr4/parsers/TestudocParser.js', ]; export const watch = done => {
dc39fb557e985ee534bc8ae2e12d0c6c83efe4fe
gulp/build.js
gulp/build.js
'use strict'; var gulp = require('gulp'); var config = require('./_config.js'); var paths = config.paths; var $ = config.plugins; var source = require('vinyl-source-stream'); var browserify = require('browserify'); var istanbul = require('browserify-istanbul'); gulp.task('clean', function () { return gulp.src(pat...
'use strict'; var gulp = require('gulp'); var config = require('./_config.js'); var paths = config.paths; var $ = config.plugins; var source = require('vinyl-source-stream'); var browserify = require('browserify'); var istanbul = require('browserify-istanbul'); gulp.task('clean', function () { return gulp.src(pat...
Fix JS task to be async. Should fix travis.
Fix JS task to be async. Should fix travis.
JavaScript
mpl-2.0
learnfwd/learnfwd.com,learnfwd/learnfwd.com,learnfwd/learnfwd.com
--- +++ @@ -35,7 +35,7 @@ .transform(istanbul) .bundle(); - bundleStream + return bundleStream .pipe(source(paths.app + '/js/main.js')) .pipe($.rename('main.js')) .pipe(gulp.dest(paths.tmp + '/js/'));
cac5bc79f106a67c56c00448a8b4408c0f31f6f3
lib/request.js
lib/request.js
var api = require('../config/api.json'); var appId = process.env.APPLICATION_ID; var https = require('https'); var querystring = require('querystring'); module.exports = function requestExports(config) { return request.bind(null, api[config]); }; function request(config, endpoint, body, callback) { body.applicati...
var api = require('../config/api.json'); var appId = process.env.APPLICATION_ID; var https = require('https'); var querystring = require('querystring'); var util = require('util'); module.exports = function requestExports(config) { return request.bind(null, api[config]); }; function request(config, endpoint, body, ...
Include all the fields of a wargaming error.
Include all the fields of a wargaming error.
JavaScript
isc
CodeMan99/wotblitz.js
--- +++ @@ -2,6 +2,7 @@ var appId = process.env.APPLICATION_ID; var https = require('https'); var querystring = require('querystring'); +var util = require('util'); module.exports = function requestExports(config) { return request.bind(null, api[config]); @@ -34,7 +35,15 @@ callback(null, result.dat...
37dc947297bb6b630e3442cd93451ab2a88a791b
app/instance-initializers/ember-href-to.js
app/instance-initializers/ember-href-to.js
import Em from 'ember'; function _getNormalisedRootUrl(router) { let rootURL = router.rootURL; if(rootURL.charAt(rootURL.length - 1) !== '/') { rootURL = rootURL + '/'; } return rootURL; } export default { name: 'ember-href-to', initialize: function(applicationInstance) { let router = applicationI...
import Em from 'ember'; function _getNormalisedRootUrl(router) { let rootURL = router.rootURL; if(rootURL.charAt(rootURL.length - 1) !== '/') { rootURL = rootURL + '/'; } return rootURL; } function _lookupRouter(applicationInstance) { const container = 'lookup' in applicationInstance ? applicationInstan...
Fix router lookup to avoid deprecations in ember >= 2
Fix router lookup to avoid deprecations in ember >= 2
JavaScript
apache-2.0
intercom/ember-href-to,intercom/ember-href-to
--- +++ @@ -8,10 +8,15 @@ return rootURL; } +function _lookupRouter(applicationInstance) { + const container = 'lookup' in applicationInstance ? applicationInstance : applicationInstance.container; + return container.lookup('router:main'); +} + export default { name: 'ember-href-to', initialize: functi...
8a199d43edacae40ea7c1f6395dc861f196a59ba
app/GUI/Filter/activeTags.js
app/GUI/Filter/activeTags.js
import React, { Component, PropTypes } from 'react'; import { Button, ButtonGroup } from 'react-bootstrap'; export default class ActiveTags extends Component { removeTag(tag) { const { filterObject, position, setFilter } = this.props; const temp = filterObject[position]; temp.delete(tag); const newFi...
import React, { Component, PropTypes } from 'react'; import { Button, ButtonGroup } from 'react-bootstrap'; export default class ActiveTags extends Component { removeTag(tag) { const { filterObject, position, setFilter } = this.props; const temp = filterObject[position]; temp.delete(tag); const newFi...
Change active tags button layout.
Change active tags button layout.
JavaScript
mit
bgrsquared/places,bgrsquared/places,bgrsquared/places
--- +++ @@ -19,6 +19,7 @@ buttons.push( <Button bsSize={'xsmall'} key={'tag' + i} + style={{ marginTop: '-1px', borderRadius: '0px' }} onClick={() => { this.removeTag(t); }} > &times; {t}
b3ee9cd866a0669bfe3776b66a2e2edc7f64931d
app/components/Views/Home.js
app/components/Views/Home.js
/** * Poster v0.1.0 * A React webapp to list upcoming movies and maintain a watchlist, powered by TMDb * * Author: Kushal Pandya <kushalspandya@gmail.com> (https://doublslash.com) * Date: 01 June, 2016 * License: MIT * * React App Main Layout Component */ import React from "react"; import Header from "./Head...
/** * Poster v0.1.0 * A React webapp to list upcoming movies and maintain a watchlist, powered by TMDb * * Author: Kushal Pandya <kushalspandya@gmail.com> (https://doublslash.com) * Date: 01 June, 2016 * License: MIT * * React App Main Layout Component */ import React from "react"; import Header from "./Head...
Hide Jumbotron on movie details page.
Hide Jumbotron on movie details page.
JavaScript
mit
kushalpandya/poster,kushalpandya/poster
--- +++ @@ -26,7 +26,7 @@ <div> <Header/> <section class="container poster-section"> - <Jumbotron/> + <Jumbotron hide={this.props.params.movieId ? true : false}/> {this.props.children} </section>...
d9504ba850c26c779bceae62ea5c903c8f505126
library/Denkmal/library/Denkmal/Component/MessageList/All.js
library/Denkmal/library/Denkmal/Component/MessageList/All.js
/** * @class Denkmal_Component_MessageList_All * @extends Denkmal_Component_MessageList_Abstract */ var Denkmal_Component_MessageList_All = Denkmal_Component_MessageList_Abstract.extend({ /** @type String */ _class: 'Denkmal_Component_MessageList_All', ready: function() { this.bindStream('global-internal...
/** * @class Denkmal_Component_MessageList_All * @extends Denkmal_Component_MessageList_Abstract */ var Denkmal_Component_MessageList_All = Denkmal_Component_MessageList_Abstract.extend({ /** @type String */ _class: 'Denkmal_Component_MessageList_All', ready: function() { this.bindStream('global-internal...
Add check to not add messages twice
Add check to not add messages twice
JavaScript
mit
njam/denkmal.org,njam/denkmal.org,denkmal/denkmal.org,njam/denkmal.org,fvovan/denkmal.org,fvovan/denkmal.org,denkmal/denkmal.org,njam/denkmal.org,fvovan/denkmal.org,fvovan/denkmal.org,denkmal/denkmal.org,denkmal/denkmal.org,fvovan/denkmal.org,njam/denkmal.org,denkmal/denkmal.org
--- +++ @@ -17,6 +17,9 @@ * @param {Object} message */ _addMessage: function(message) { + if (this.$('.messageList > .message[data-id="' + message.id + '"]').length > 0) { + return; + } this.renderTemplate('template-message', { id: message.id, created: message.created,
979fc3418b738838ee7187a11cf28ac65371cfb6
app/components/validations-errors.js
app/components/validations-errors.js
import Ember from 'ember'; export default Ember.Component.extend({ classNames: ['error-messages'], didInsertElement: function () { this._super(); Ember.run.next(function(){ var errors = this.get('validationErrors') , errorsKeys = Ember.keys(errors); errorsKeys.forEach(function(property...
import Ember from 'ember'; export default Ember.Component.extend({ classNames: ['error-messages'], didInsertElement: function () { this._super(); Ember.run.next(function(){ var errors = this.get('validationErrors') , errorsKeys = Ember.keys(errors); errorsKeys.forEach(function(property...
Fix problem if it takes long to valdiate
Fix problem if it takes long to valdiate
JavaScript
mit
alexferreira/ember-cli-validations-errors
--- +++ @@ -10,7 +10,9 @@ errorsKeys.forEach(function(property){ Ember.addObserver(errors, property, this, function(){ - this.validationsErrorsChanged(property); + Ember.run.debounce(this, function (){ + this.validationsErrorsChanged(property); + }, 200); ...
26cd6df2d95a4d81968d01b06144d6aeddcf5863
index.js
index.js
module.exports = compressible compressible.specs = compressible.specifications = require('./specifications.json') compressible.regex = compressible.regexp = /json|text|javascript|dart|ecmascript|xml/ compressible.get = get function compressible(type) { if (!type || typeof type !== "string") return false var i =...
module.exports = compressible compressible.specs = compressible.specifications = require('./specifications.json') compressible.regex = compressible.regexp = /json|text|javascript|dart|ecmascript|xml/ compressible.get = get function compressible(type) { if (!type || typeof type !== "string") return false var i =...
Use ~ operator to check for -1
[minor] Use ~ operator to check for -1 This is mainly a style change as other expressjs modules use this. Performance is mostly indifferent. However, this tests specifically for -1.
JavaScript
mit
jshttp/compressible
--- +++ @@ -11,7 +11,7 @@ function compressible(type) { if (!type || typeof type !== "string") return false var i = type.indexOf(';') - , spec = compressible.specs[i < 0 ? type : type.slice(0, i)] + , spec = compressible.specs[~i ? type.slice(0, i) : type] return spec ? spec.compressible : compressibl...
683737e2e6bc4689c26afdb573d8ca0b581fa5c6
client/config/bootstrap.js
client/config/bootstrap.js
/** * Bootstrap * Client entry point * @flow */ // Polyfills import 'babel/polyfill' // Modules import React from 'react' import ReactDOM from 'react-dom' import { Router } from 'react-router' import { createHistory } from 'history' import ReactRouterRelay from 'react-router-relay' // Routes import routes from '...
/** * Bootstrap * Client entry point * @flow */ // Polyfills import 'babel/polyfill' // Modules import React from 'react' import Relay from 'react-relay' import ReactDOM from 'react-dom' import { Router } from 'react-router' import { createHistory } from 'history' import ReactRouterRelay from 'react-router-relay'...
Update Relay to send cookies
Update Relay to send cookies
JavaScript
apache-2.0
cesarandreu/bshed,cesarandreu/bshed
--- +++ @@ -9,6 +9,7 @@ // Modules import React from 'react' +import Relay from 'react-relay' import ReactDOM from 'react-dom' import { Router } from 'react-router' import { createHistory } from 'history' @@ -16,6 +17,13 @@ // Routes import routes from './routes' + +// Configure Relay's network layer to in...
67aaa90ac0564920d8a65db7129a0e32804bdaea
index.js
index.js
import express from 'express'; import http from 'http'; import {renderFile} from 'ejs'; import request from 'superagent'; var app = express(); var FRIGG_API = process.env.FRIGG_API || 'https://ci.frigg.io'; app.engine('html', renderFile); app.set('view engine', 'html'); app.set('views', '' + __dirname); app.use('/st...
import express from 'express'; import http from 'http'; import {renderFile} from 'ejs'; import request from 'superagent'; var app = express(); var FRIGG_API = process.env.FRIGG_API || 'https://ci.frigg.io'; app.engine('html', renderFile); app.set('view engine', 'html'); app.set('views', '' + __dirname); app.use('/st...
Add caching of proxy requests in dev server
Add caching of proxy requests in dev server
JavaScript
mit
frigg/frigg-hq-frontend,frigg/frigg-hq-frontend
--- +++ @@ -12,10 +12,17 @@ app.set('views', '' + __dirname); app.use('/static', express.static(__dirname + '/public')); +var responses = {}; + app.get('/api/*', (req, res, next) => { - request(FRIGG_API + req.originalUrl) + var url = req.originalUrl; + if (responses.hasOwnProperty(url)) { + return res.jso...
c39d828243e5e00b997c703e6ed41912ea7da6c5
packages/@sanity/base/src/preview/PreviewMaterializer.js
packages/@sanity/base/src/preview/PreviewMaterializer.js
import React, {PropTypes} from 'react' import observeForPreview from './observeForPreview' import shallowEquals from 'shallow-equals' export default class PreviewMaterializer extends React.PureComponent { static propTypes = { value: PropTypes.any.isRequired, type: PropTypes.shape({ preview: PropTypes.s...
import React, {PropTypes} from 'react' import observeForPreview from './observeForPreview' import shallowEquals from 'shallow-equals' export default class PreviewMaterializer extends React.PureComponent { static propTypes = { value: PropTypes.any.isRequired, type: PropTypes.shape({ preview: PropTypes.s...
Set subscription to null after unsubscribe
[preview] Set subscription to null after unsubscribe
JavaScript
mit
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
--- +++ @@ -32,6 +32,7 @@ unsubscribe() { if (this.subscription) { this.subscription.unsubscribe() + this.subscription = null } }
8e7bfe3b0c136794de0be1802fdf9e8a90f7645d
embeds/buffer-tpc-check.js
embeds/buffer-tpc-check.js
/* globals self, bufferpm, chrome */ // buffer-tpc-check.js // (c) 2013 Sunil Sadasivan // Check if third party cookies are disabled // ;(function () { if (window !== window.top) return; ;(function check() { if((self.port) || (xt && xt.options)) { //if the 3rd party cookies check is disabled, store ...
/* globals self, bufferpm, chrome */ // buffer-tpc-check.js // (c) 2013 Sunil Sadasivan // Check if third party cookies are disabled // ;(function () { if (window !== window.top) return; ;(function check() { if((self.port) || (xt && xt.options)) { //if the 3rd party cookies check is disabled, store ...
Add info inside TPC check iframe attribute for curious eyes
Add info inside TPC check iframe attribute for curious eyes
JavaScript
mit
bufferapp/buffer-extension-shared,bufferapp/buffer-extension-shared
--- +++ @@ -23,6 +23,8 @@ iframe.id = 'buffer_tpc_check'; iframe.src = xt.data.get('data/shared/tpc-check.html'); iframe.style.display="none"; + iframe.setAttribute('data-info', 'The Buffer extension uses this iframe to automatically ' + + 'detect the browser\'s third-party cookies se...
683ba6fcaf2072bfe7f7884b81bf04a3899c6d60
Response.js
Response.js
'use strict' class Response { constructor(messenger, msg) { this.messenger = messenger this.queue = msg.properties.replyTo this.corr = msg.properties.correlationId } send (msg) { if(this.queue){ this.messenger.publish(this.queue, msg) } } ok (payload) { this.send({ stat...
'use strict' class Response { constructor(messenger, msg) { this.messenger = messenger this.queue = msg.properties.replyTo this.corr = msg.properties.correlationId } send (msg) { if(this.queue){ this.messenger.publish(this.queue, msg) } } ok (payload) { this.send({ stat...
Add notify to actor service
Add notify to actor service
JavaScript
mit
domino-logic/domino-actor-service
--- +++ @@ -22,6 +22,14 @@ }) } + notify (payload) { + this.send({ + status: 'notify', + correlationId: this.corr, + content: payload + }) + } + error (payload) { this.send({ status: 'error',
d01d51c6e3d8d7dcc7a72384277bee95db813474
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({ });
import Ember from 'ember'; export default Ember.Component.extend({ actions: { setKontaktinfoGruppeById: function (id) { var model = this.get('model'); if (typeof model.setKontaktinfoGruppeById) { model.setKontaktinfoGruppeById(id); } } } });
Add action for setting kontaktinfo by group id
Add action for setting kontaktinfo by group id
JavaScript
mit
Turistforeningen/Hytteadmin,Turistforeningen/Hytteadmin
--- +++ @@ -1,4 +1,13 @@ import Ember from 'ember'; export default Ember.Component.extend({ + actions: { + setKontaktinfoGruppeById: function (id) { + var model = this.get('model'); + if (typeof model.setKontaktinfoGruppeById) { + model.setKontaktinfoGruppeById(id); + } + } + } + })...
9d576f6f805f5a6a72319fc1f690d9520abd215a
packages/redux-resource/src/action-types/action-types.js
packages/redux-resource/src/action-types/action-types.js
export default { REQUEST_IDLE: 'REQUEST_IDLE', REQUEST_PENDING: 'REQUEST_PENDING', REQUEST_FAILED: 'REQUEST_FAILED', REQUEST_SUCCEEDED: 'REQUEST_SUCCEEDED', UPDATE_RESOURCES: 'UPDATE_RESOURCES', };
export default { REQUEST_IDLE: 'REQUEST_IDLE', // These will be used in Redux Resource v3.1.0. For now, // they are reserved action types. // REQUEST_PENDING: 'REQUEST_PENDING', // REQUEST_FAILED: 'REQUEST_FAILED', // REQUEST_SUCCEEDED: 'REQUEST_SUCCEEDED', // UPDATE_RESOURCES: 'UPDATE_RESOURCES', };
Comment out reserved action types
Comment out reserved action types
JavaScript
mit
jmeas/resourceful-redux,jmeas/resourceful-redux
--- +++ @@ -1,7 +1,10 @@ export default { REQUEST_IDLE: 'REQUEST_IDLE', - REQUEST_PENDING: 'REQUEST_PENDING', - REQUEST_FAILED: 'REQUEST_FAILED', - REQUEST_SUCCEEDED: 'REQUEST_SUCCEEDED', - UPDATE_RESOURCES: 'UPDATE_RESOURCES', + + // These will be used in Redux Resource v3.1.0. For now, + // they are reser...
223b0dd3ba63184336d615150c945bb52941c17a
packages/create-universal-package/lib/config/build-shared.js
packages/create-universal-package/lib/config/build-shared.js
const template = ({env, format, esEdition}) => `${env}.${format}.${esEdition}.js`; const formats = ['es', 'cjs']; module.exports = { template, formats, };
const template = ({env, format, esEdition}) => `${env}.${format}${esEdition ? `.${esEdition}` : ''}.js`; const formats = ['es', 'cjs']; module.exports = { template, formats, };
Fix output filepath in non-ES2015 bundles
Fix output filepath in non-ES2015 bundles
JavaScript
mit
rtsao/create-universal-package,rtsao/create-universal-package
--- +++ @@ -1,4 +1,4 @@ -const template = ({env, format, esEdition}) => `${env}.${format}.${esEdition}.js`; +const template = ({env, format, esEdition}) => `${env}.${format}${esEdition ? `.${esEdition}` : ''}.js`; const formats = ['es', 'cjs']; module.exports = {
c2765365104001dc4e2277c6a45c175cbb0750fe
_static/documentation_options.js
_static/documentation_options.js
var DOCUMENTATION_OPTIONS = { URL_ROOT: '', VERSION: '0.1.10', LANGUAGE: 'None', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true, SOURCELINK_SUFFIX: '.txt' };
var DOCUMENTATION_OPTIONS = { URL_ROOT: '', VERSION: '0.1.11', LANGUAGE: 'None', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true, SOURCELINK_SUFFIX: '.txt' };
Update docs after building Travis build 224 of regro/regolith
Update docs after building Travis build 224 of regro/regolith The docs were built from the branch 'master' against the commit 2cae806beee82e089f843dfbb254603d838475f7. The Travis build that generated this commit is at https://travis-ci.org/regro/regolith/jobs/355514019. The doctr command that was run is /home/t...
JavaScript
bsd-2-clause
scopatz/regolith-docs,scopatz/regolith-docs
--- +++ @@ -1,6 +1,6 @@ var DOCUMENTATION_OPTIONS = { URL_ROOT: '', - VERSION: '0.1.10', + VERSION: '0.1.11', LANGUAGE: 'None', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html',
a392baf961f197b8268ec0666b898f82d33b35fa
app/assets/javascripts/les/profile_matrix_editor/template_updater/battery_template_updater.js
app/assets/javascripts/les/profile_matrix_editor/template_updater/battery_template_updater.js
var BatteryTemplateUpdater = (function () { 'use strict'; var defaultPercentage = 20.0, batteryToggles = ".editable.profile", batteries = [ "congestion_battery", "households_flexibility_p2p_electricity" ], sliderSettings = { tooltip: 'hide', ...
var BatteryTemplateUpdater = (function () { 'use strict'; var defaultPercentage = 20.0, batteryToggles = ".editable.profile", batteries = [ "congestion_battery", "households_flexibility_p2p_electricity" ], sliderSettings = { tooltip: 'hide', ...
Set slider value when adding a new congestion battery
Set slider value when adding a new congestion battery This would work when editing an existing battery, but without triggering the event manually it would default to 0% when adding a new battery.
JavaScript
mit
quintel/etmoses,quintel/etmoses,quintel/etmoses,quintel/etmoses,quintel/etmoses
--- +++ @@ -34,7 +34,9 @@ if (isCongestionBattery) { sliderInput.slider(sliderSettings) .slider('setValue', defaultPercentage) - .on('slide', setSlideStopValue); + .on('slide', setSlideStopValue) + .trigger('sl...
cbb2235784307d250b6320ab8bb262da3c2fb686
client/app/scripts/services/application.js
client/app/scripts/services/application.js
angular.module('app').factory('applicationService', ['$http', 'MARLINAPI_CONFIG', function($http, MARLINAPI_CONFIG) { var url = MARLINAPI_CONFIG.base_url; // create and expose service methods var exports = {}; // get all items exports.getAll = function() { retu...
angular.module('app').factory('applicationService', ['$http', 'MARLINAPI_CONFIG', function($http, MARLINAPI_CONFIG) { var url = MARLINAPI_CONFIG.base_url; // create and expose service methods var exports = {}; // Generic find functionality exports.find = function(query) { ...
Add flexible find Application service
Add flexible find Application service
JavaScript
mit
brettshollenberger/mrl001,brettshollenberger/mrl001
--- +++ @@ -5,6 +5,16 @@ // create and expose service methods var exports = {}; + + // Generic find functionality + exports.find = function(query) { + + query = JSON.stringify(query); + + return $http.post(url + 'applications/find', {params: query}).then(functio...
4758be5962095ad86055cd0083fa9f8961f11fb7
app/components/RecipeList.js
app/components/RecipeList.js
var React = require('react'); var Parse = require('parse'); var ParseReact = require('parse-react'); var RecipeList = new React.createClass({ mixins: [ParseReact.Mixin], observe: function() { return { recipes: (new Parse.Query('Recipe')).equalTo("createdBy", Parse.User.current().id) }; }, render: functi...
var React = require('react'); var Parse = require('parse'); var RecipeStore = require('../stores/RecipeStore'); var RecipeItem = require('./RecipeItem'); var RecipeList = new React.createClass({ getInitialState: function() { return { ownedRecipes: null }; }, componentDidMount: function() { RecipeStore.g...
Add recipe list to overview view
Add recipe list to overview view
JavaScript
mit
bspride/ModernCookbook,bspride/ModernCookbook,bspride/ModernCookbook
--- +++ @@ -1,31 +1,41 @@ var React = require('react'); var Parse = require('parse'); -var ParseReact = require('parse-react'); +var RecipeStore = require('../stores/RecipeStore'); +var RecipeItem = require('./RecipeItem'); var RecipeList = new React.createClass({ - mixins: [ParseReact.Mixin], - observe: func...
157db3722cc41586c41c115227be619ea62a0788
desktop/app/main-window.js
desktop/app/main-window.js
import Window from './window' import {ipcMain} from 'electron' import resolveRoot from '../resolve-root' import hotPath from '../hot-path' import flags from '../shared/util/feature-flags' import {globalResizing} from '../shared/styles/style-guide' export default function () { const mainWindow = new Window( resol...
import Window from './window' import {ipcMain} from 'electron' import resolveRoot from '../resolve-root' import hotPath from '../hot-path' import flags from '../shared/util/feature-flags' import {globalResizing} from '../shared/styles/style-guide' export default function () { const mainWindow = new Window( resol...
Use content size when creating the main window
Use content size when creating the main window
JavaScript
bsd-3-clause
keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client
--- +++ @@ -8,6 +8,7 @@ export default function () { const mainWindow = new Window( resolveRoot(`renderer/index.html?src=${hotPath('index.bundle.js')}`), { + useContentSize: true, width: globalResizing.login.width, height: globalResizing.login.height, show: flags.login
a99f9dd83e0a15dfd923ab0ae873f84755f99b0e
feedpaper-web/params.js
feedpaper-web/params.js
var fs = require('fs'); var p = require('path'); var slug = require('slug'); var url = require('url'); var util = require('util'); slug.defaults.mode ='rfc3986'; var env = process.env['FEEDPAPER_ENV']; var feedsCategories = JSON.parse(fs.readFileSync(p.join('..', 'conf', env, 'feeds.json'))); var conf = JSON.pa...
var fs = require('fs'); var p = require('path'); var slug = require('slug'); var url = require('url'); var util = require('util'); slug.defaults.mode ='rfc3986'; var env = process.env['FEEDPAPER_ENV']; var feedsCategories = JSON.parse(fs.readFileSync(p.join('..', 'conf', env, 'feeds.json'))); var conf = JSON.pa...
Add encode on global.js file read. node v4.x compat.
Add encode on global.js file read. node v4.x compat.
JavaScript
mit
cliffano/feedpaper,cliffano/feedpaper,cliffano/feedpaper
--- +++ @@ -16,7 +16,7 @@ hostname: conf.api.host, pathname: util.format('v%d/%s', conf.api.version, conf.api.path) }); -var globalJs = fs.readFileSync(p.join('static', 'scripts', 'global.js')); +var globalJs = fs.readFileSync(p.join('static', 'scripts', 'global.js'), 'utf-8'); globalJs = globalJs.replace(/va...
4709f623b41dffe1ad227908e3f92782987bbfa9
server/models/card/card.js
server/models/card/card.js
'use strict'; var mongoose = require('mongoose'); const WAITING_FOR_PRINT = 'WAITING_FOR_PRINT'; const PRINTED_WAITING_FOR_SEND = 'PRINTED_WAITING_FOR_SEND'; const SENT = 'SENT'; var statusKeys = [ WAITING_FOR_PRINT, PRINTED_WAITING_FOR_SEND, SENT ]; var cardSchema = mongoose.Schema({ message: Stri...
'use strict'; var mongoose = require('mongoose'); const WAITING_FOR_PRINT = 'WAITING_FOR_PRINT'; const PRINTED_WAITING_FOR_SEND = 'PRINTED_WAITING_FOR_SEND'; const SENT = 'SENT'; var statusKeys = [ WAITING_FOR_PRINT, PRINTED_WAITING_FOR_SEND, SENT ]; var cardSchema = mongoose.Schema({ message: { typ...
Make message field as required
Make message field as required
JavaScript
mit
denisnarush/postcard,denisnarush/postcard
--- +++ @@ -13,9 +13,9 @@ ]; var cardSchema = mongoose.Schema({ - message: String, - senderAddress: { type:String, required: true }, - receiverAddress: { type:String, required: true }, + message: { type: String, required: true }, + senderAddress: { type: String, required: true }, + receiverAddr...
dfb7fd375cc6e073df2add406c9ca3e81fe211d0
js/scripts.js
js/scripts.js
// DOM Ready $(function() { // SVG fallback // toddmotto.com/mastering-svg-use-for-a-retina-web-fallbacks-with-png-script#update if (!Modernizr.svg) { var imgs = document.getElementsByTagName('img'); for (var i = 0; i < imgs.length; i++) { if (/.*\.svg$/.test(imgs[i].src)) { imgs[i].src = imgs[i].src.sli...
// DOM Ready jQuery(document).ready(function($) { // SVG fallback // toddmotto.com/mastering-svg-use-for-a-retina-web-fallbacks-with-png-script#update if (!Modernizr.svg) { var imgs = document.getElementsByTagName('img'); for (var i = 0; i < imgs.length; i++) { if (/.*\.svg$/.test(imgs[i].src)) { imgs[i]...
Handle jQuery in noConflict mode.
Handle jQuery in noConflict mode. See: http://api.jquery.com/ready/
JavaScript
mit
martinleopold/prcs-website,martinleopold/prcs-website
--- +++ @@ -1,5 +1,5 @@ // DOM Ready -$(function() { +jQuery(document).ready(function($) { // SVG fallback // toddmotto.com/mastering-svg-use-for-a-retina-web-fallbacks-with-png-script#update
a774ca427a200270c770dd278d55119cb31de65c
src/containers/Console.js
src/containers/Console.js
import {connect} from 'react-redux'; import Console from '../components/Console'; import { getCurrentCompiledProjectKey, getConsoleHistory, getCurrentProjectKey, getHiddenUIComponents, getRequestedFocusedLine, isCurrentProjectSyntacticallyValid, isExperimental, isTextSizeLarge, } from '../selectors'; im...
import {connect} from 'react-redux'; import Console from '../components/Console'; import { getCurrentCompiledProjectKey, getConsoleHistory, getCurrentProjectKey, getHiddenUIComponents, getRequestedFocusedLine, isCurrentProjectSyntacticallyValid, isExperimental, isTextSizeLarge, } from '../selectors'; im...
Fix console input focus on clearing.
Fix console input focus on clearing.
JavaScript
mit
outoftime/learnpad,outoftime/learnpad,jwang1919/popcode,jwang1919/popcode,popcodeorg/popcode,jwang1919/popcode,popcodeorg/popcode,jwang1919/popcode,popcodeorg/popcode,popcodeorg/popcode
--- +++ @@ -35,6 +35,7 @@ return { onClearConsoleEntries() { dispatch(clearConsoleEntries()); + dispatch(focusLine('console', 0, 0)); }, onInput(input) {
98216fdd8b2cbd8d62b2c04884939923e5719437
examples/src/controller.js
examples/src/controller.js
import inputData from './data.js'; import infiniteDivs from '../../lib/infinitedivs.js'; let rootElement = document.body; function divGenerator(item) { let div = document.createElement('div'), img = document.createElement('img'), span = document.createElement('span'); img.setAttribute('src', item.img); ...
import inputData from './data.js'; import infiniteDivs from '../../lib/infinitedivs.js'; let rootElement = document.body; function divGenerator(item) { let div = document.createElement('div'), img = document.createElement('img'), span = document.createElement('span'); img.setAttribute('src', item.img); ...
Add border bottom to divs.
Add border bottom to divs.
JavaScript
mit
supreetpal/infinite-divs,supreetpal/infinite-divs
--- +++ @@ -13,6 +13,7 @@ img.setAttribute('alt', 'avatar'); span.textContent = item.name; span.setAttribute('style', 'text-decoration: underline'); + div.setAttribute('style', 'border-bottom: 1px dotted'); div.appendChild(img); div.appendChild(span); return div; @@ -33,4 +34,5 @@ function scrollL...
17beb5e36f014b3cab661981b00ad65fc2ed988d
example/index.js
example/index.js
const http = require("http") const url = require("url") const namor = require("namor") const server = http.createServer((req, res) => { const { query } = url.parse(req.url, true) const payload = JSON.stringify( { generated_name: namor.generate({ words: query.words, saltLength: query.saltLength, sal...
const http = require("http") const url = require("url") const namor = require("namor") const server = http.createServer((req, res) => { const { query } = url.parse(req.url, true) const payload = JSON.stringify( { generated_name: namor.generate({ words: query.words, saltLength: query.saltLength, sal...
Add cors header to example
Add cors header to example
JavaScript
mit
jsonmaur/namor,jsonmaur/namor
--- +++ @@ -21,7 +21,7 @@ res.setHeader("Content-Type", "application/json") res.setHeader("Content-Length", Buffer.byteLength(payload)) - res.setHeader("Access-Control-Allow-Headers", "*") + res.setHeader("Access-Control-Allow-Origin", "*") res.end(payload) })
68fd319b09b021742ad309255d6a444a655a6fee
babel.config.js
babel.config.js
module.exports = { presets: ["es2015-node4", "stage-0", "react"], plugins: [ "add-module-exports", ["transform-async-to-module-method", { module: "bluebird", method: "coroutine" }] ], ignore: false, only: /.es$/ }
module.exports = { presets: ["es2015-node4", "react"], plugins: [ "add-module-exports", ["transform-async-to-module-method", { module: "bluebird", method: "coroutine" }] ], ignore: false, only: /.es$/ }
Remove babel-stage-0 preset to prevent crash in Electron 1.x
Remove babel-stage-0 preset to prevent crash in Electron 1.x
JavaScript
mit
PHELiOX/poi,poooi/poi,syncsyncsynchalt/poi,yudachi/poi,syncsyncsynchalt/poi,KagamiChan/poi,poooi/poi,poooi/poi,poooi/poi,gnattu/poi,syncsyncsynchalt/poi,syncsyncsynchalt/poi,yudachi/poi,yudachi/poi,gnattu/poi,PHELiOX/poi,KagamiChan/poi,nagatoyk/poi,nagatoyk/poi
--- +++ @@ -1,5 +1,5 @@ module.exports = { - presets: ["es2015-node4", "stage-0", "react"], + presets: ["es2015-node4", "react"], plugins: [ "add-module-exports", ["transform-async-to-module-method", {
86b3ad30b978d227bd3b596d176c8d11b2a1995d
forum-web-app/src/ui.js
forum-web-app/src/ui.js
"use strict"; // src/ui.js let ui = { renderPosts(posts) { console.log(posts); } }; export { ui };
"use strict"; // src/ui.js let ui = { renderPosts(posts) { let elements = posts.map( (post) => { let { title, lastReply } = post; return articleTemplate(title, lastReply); }); let target = document.querySelector(".container"); target.innerHTML = elements.join(""); } }; function arti...
Add articleTemplate method. Edit renderPosts
Add articleTemplate method. Edit renderPosts
JavaScript
mit
var-bin/reactjs-training,var-bin/reactjs-training,var-bin/reactjs-training
--- +++ @@ -4,8 +4,29 @@ let ui = { renderPosts(posts) { - console.log(posts); + let elements = posts.map( (post) => { + let { title, lastReply } = post; + + return articleTemplate(title, lastReply); + }); + + let target = document.querySelector(".container"); + target.innerHTML = eleme...
cf0cb38ea897541e667193ca2699ecf5e3caaacc
app/src/js/modules/events.js
app/src/js/modules/events.js
/** * Events. * * @mixin * @namespace Bolt.events * * @param {Object} bolt - The Bolt module. */ (function (bolt) { 'use strict'; /* * Bolt.events mixin container. * * @private * @type {Object} */ var events = {}; /* * Event broker object. * * @private ...
/** * Events. * * @mixin * @namespace Bolt.events * * @param {Object} bolt - The Bolt module. */ (function (bolt) { 'use strict'; /* * Bolt.events mixin container. * * @private * @type {Object} */ var events = {}; /* * Event broker object. * * @private ...
Use jQuery nomenclature (event => eventType)
Use jQuery nomenclature (event => eventType)
JavaScript
mit
GawainLynch/bolt,nikgo/bolt,rarila/bolt,CarsonF/bolt,lenvanessen/bolt,romulo1984/bolt,electrolinux/bolt,Intendit/bolt,bolt/bolt,rarila/bolt,lenvanessen/bolt,electrolinux/bolt,Raistlfiren/bolt,GawainLynch/bolt,romulo1984/bolt,Raistlfiren/bolt,GawainLynch/bolt,lenvanessen/bolt,Raistlfiren/bolt,HonzaMikula/masivnipostele,...
--- +++ @@ -32,11 +32,11 @@ * @function fire * @memberof Bolt.events * - * @param {string} event - Event type + * @param {string} eventType - Event type * @param {object} [parameter] - Additional parameters to pass along to the event handler */ - events.fire = function...
a1b0d42fa832c518466d4a9502dd1543ac155bfd
spec/filesize-view-spec.js
spec/filesize-view-spec.js
'use babel'; import filesizeView from '../lib/filesize-view'; describe('View', () => { // Disable tooltip, only enable on tests when needed atom.config.set('filesize.EnablePopupAppearance', false); const workspaceView = atom.views.getView(atom.workspace); const view = filesizeView(workspaceView); describe...
'use babel'; import filesizeView from '../lib/filesize-view'; describe('View', () => { // Disable tooltip, only enable on tests when needed atom.config.set('filesize.EnablePopupAppearance', false); const workspaceView = atom.views.getView(atom.workspace); const view = filesizeView(workspaceView); describe...
Remove extra line in the end of file
Remove extra line in the end of file
JavaScript
mit
mkautzmann/atom-filesize
--- +++ @@ -40,4 +40,3 @@ }); }); }); -
30a6393c9ea13501afbaae3cd349310645ce7c4a
lib/tilelive/mappool.js
lib/tilelive/mappool.js
/** * Small wrapper around node-pool. Establishes a pool of 5 mapnik map objects * per mapfile. * @TODO: Make pool size configurable. */ module.exports = new function() { return { pools: {}, acquire: function(mapfile, options, callback) { if (!this.pools[mapfile]) { ...
/** * Small wrapper around node-pool. Establishes a pool of 5 mapnik map objects * per mapfile. * @TODO: Make pool size configurable. */ module.exports = new function() { return { pools: {}, acquire: function(mapfile, options, callback) { if (!this.pools[mapfile]) { ...
Use try/catch for loading mapfiles.
Use try/catch for loading mapfiles.
JavaScript
bsd-3-clause
topwood/tilelive,mapbox/tilelive,Norkart/tilelive.js,tomhughes/tilelive.js,kyroskoh/tilelive,paulovieira/tilelive,mapbox/tilelive.js,nyurik/tilelive.js,gravitystorm/tilelive.js
--- +++ @@ -16,9 +16,13 @@ height = options.height || 256, Map = require('mapnik').Map, map = new Map(width, height); - map.load(mapfile); - map.buffer_size(128); - ...
7d84aa5b1d0c2af75abf70e556470cb67b79b19a
spec/filesize-view-spec.js
spec/filesize-view-spec.js
'use babel'; import filesizeView from '../lib/filesize-view'; describe('View', () => { // Disable tooltip for these tests atom.config.set('filesize.EnablePopupAppearance', false); const workspaceView = atom.views.getView(atom.workspace); const view = filesizeView(workspaceView); describe('when refreshing t...
'use babel'; import filesizeView from '../lib/filesize-view'; describe('View', () => { const workspaceView = atom.views.getView(atom.workspace); const view = filesizeView(workspaceView); describe('when refreshing the view', () => { it('should display the human readable size', () => { workspaceView.ap...
Add config change test to the View spec
Add config change test to the View spec
JavaScript
mit
mkautzmann/atom-filesize
--- +++ @@ -3,8 +3,6 @@ import filesizeView from '../lib/filesize-view'; describe('View', () => { - // Disable tooltip for these tests - atom.config.set('filesize.EnablePopupAppearance', false); const workspaceView = atom.views.getView(atom.workspace); const view = filesizeView(workspaceView); @@ -14,6 ...
05b14b3f817f0cffb06ade8f1ff82bfff177c6bd
starting-angular/starting-angular/cards/cards_usesStaticJSON_cleanestVersion/js/directives.js
starting-angular/starting-angular/cards/cards_usesStaticJSON_cleanestVersion/js/directives.js
/*global cardApp*/ /*jslint unparam: true */ (function () { 'use strict'; // Implements custom validation for card number. var INTEGER_REGEXP = /^([aAkKjJQq23456789]{1}|(10){1})$/; cardApp.directive('integer', function () { return { require: 'ngModel', link: function (s...
/*global cardApp*/ /*jslint unparam: true */ cardApp.directive('integer', function () { 'use strict'; // Implements custom validation for card number. var INTEGER_REGEXP = /^([aAkKjJQq23456789]{1}|(10){1})$/; return { require: 'ngModel', link: function (scope, elm, attrs, ctrl) { ...
Use the angular module pattern instead of using a closure.
Use the angular module pattern instead of using a closure.
JavaScript
unlicense
bigfont/DevTeach2013,bigfont/DevTeach2013
--- +++ @@ -1,29 +1,29 @@ /*global cardApp*/ /*jslint unparam: true */ -(function () { + +cardApp.directive('integer', function () { 'use strict'; // Implements custom validation for card number. var INTEGER_REGEXP = /^([aAkKjJQq23456789]{1}|(10){1})$/; - cardApp.directive('integer', function ...
749b9d4b89c9e34808b4d4e8ce5600703ce16464
clientapp/views/pathway.js
clientapp/views/pathway.js
var HumanView = require('human-view'); var templates = require('../templates'); module.exports = HumanView.extend({ template: templates.pathway, events: { 'dragstart .columns': 'drag', 'dragover .columns': 'over', 'dragenter .columns': 'enter', 'dragleave .columns': 'leave', 'drop .columns': 'd...
var HumanView = require('human-view'); var templates = require('../templates'); module.exports = HumanView.extend({ template: templates.pathway, events: { 'dragstart .columns': 'drag', 'dragover .columns': 'over', 'dragenter .columns': 'enter', 'dragleave .columns': 'leave', 'drop .columns': 'd...
Make it work in IE10
Make it work in IE10
JavaScript
mpl-2.0
mozilla/openbadges-discovery
--- +++ @@ -17,14 +17,14 @@ }, drag: function (e) { var start = $(e.currentTarget).data('cell-coords'); - e.originalEvent.dataTransfer.setData('text/plain', start); + e.originalEvent.dataTransfer.setData('Text', start); }, over: function (e) { e.originalEvent.dataTransfer.effectAllowed = '...
19a0c4401e5185b71d5ca715d54d13c31cab7559
lib/sequence/binlog.js
lib/sequence/binlog.js
var Util = require('util'); var Packet = require('../packet'); var capture = require('../capture'); module.exports = function(options) { var self = this; // ZongJi instance var Sequence = capture(self.connection).Sequence; var BinlogHeader = Packet.initBinlogHeader.call(self, options); function Binlog(callbac...
var Util = require('util'); var Packet = require('../packet'); var capture = require('../capture'); module.exports = function(options) { var self = this; // ZongJi instance var Sequence = capture(self.connection).Sequence; var BinlogHeader = Packet.initBinlogHeader.call(self, options); function Binlog(callbac...
Add TODO to remove console.log from non-dump functions
Add TODO to remove console.log from non-dump functions
JavaScript
mit
jmealo/zongji,jmealo/zongji
--- +++ @@ -29,6 +29,7 @@ }; Binlog.prototype['OkPacket'] = function(packet) { + // TODO: Remove console statements to make module ready for widespread use console.log('Received one OkPacket ...'); };
85168befaaab2563b91345867087d51789a88dff
client/app/common/global-events/global-events.factory.js
client/app/common/global-events/global-events.factory.js
let GlobalEvents = () => { let events = {}; return { off: (eventHandle) => { let index = events[eventHandle.eventName].findIndex((singleEventHandler) => { return singleEventHandler.id !== eventHandle.handlerId; }); events[eventHandle.eventName].splic...
let GlobalEvents = () => { let events = {}; return { off: (eventHandle) => { let index = events[eventHandle.eventName].findIndex((singleEventHandler) => { return singleEventHandler.id !== eventHandle.handlerId; }); events[eventHandle.eventName].splic...
Fix trigger exception when no listeners specified
Fix trigger exception when no listeners specified
JavaScript
apache-2.0
zbicin/word-game,zbicin/word-game
--- +++ @@ -25,9 +25,11 @@ }; }, trigger: (eventName, data) => { - events[eventName].forEach((singleHandler) => { - singleHandler.callback(data); - }); + if (events[eventName]) { + events[eventName].forEach((singleHandler) =...
2eeb2979a6d7dc1ce5f5559f7437b90b2246c72f
src/DynamicCodeRegistry.js
src/DynamicCodeRegistry.js
/* Keep track of */ import Backbone from "backbone" import _ from "underscore" export default class DynamicCodeRegistry { constructor(){ _.extend(this, Backbone.Events) this._content = {}; this._origins = {} } register(filename, content, origin){ this._content[filename]...
/* Keep track of */ import Backbone from "backbone" import _ from "underscore" export default class DynamicCodeRegistry { constructor(){ _.extend(this, Backbone.Events) this._content = {}; this._origins = {} } register(filename, content, origin){ this._content[filename]...
Fix detecting if it's a dynamic files... script tags from the original html were previously incorrectly identified as dynamic files.
Fix detecting if it's a dynamic files... script tags from the original html were previously incorrectly identified as dynamic files.
JavaScript
mit
mattzeunert/FromJS,mattzeunert/FromJS,mattzeunert/FromJS,mattzeunert/FromJS
--- +++ @@ -27,6 +27,6 @@ return this._origins[filename] } fileIsDynamicCode(filename){ - return this._content[filename] !== undefined + return filename.indexOf("DynamicFunction") !== -1; } }
efd680a34c23ec2727a3033e37517e309ba29a0c
client/webcomponents/nn-annotable.js
client/webcomponents/nn-annotable.js
/* jshint camelcase:false */ Polymer('nn-annotable', { ready: function(){ this.baseapi = this.baseapi || window.location.origin; this.tokens = this.baseapi.split('://'); this.wsurl = this.tokens.shift() === 'https' ? 'wss' : 'ws' + '://' + this.tokens.shift(); this.domain = window.location.hostname; ...
/* jshint camelcase:false */ Polymer('nn-annotable', { ready: function(){ this.baseapi = this.baseapi || window.location.origin; this.tokens = this.baseapi.split('://'); this.wsurl = (this.tokens.shift() === 'https' ? 'wss' : 'ws') + '://' + this.tokens.shift(); this.domain = window.location.hostname...
Fix how to calculate ws URL from baseapi URL
Fix how to calculate ws URL from baseapi URL
JavaScript
mit
sandropaganotti/annotate
--- +++ @@ -4,7 +4,7 @@ ready: function(){ this.baseapi = this.baseapi || window.location.origin; this.tokens = this.baseapi.split('://'); - this.wsurl = this.tokens.shift() === 'https' ? 'wss' : 'ws' + '://' + this.tokens.shift(); + this.wsurl = (this.tokens.shift() === 'https' ? 'wss' : 'ws') + '...
447241fc88b42a03b9091da7066e7e58a414e3a2
src/geojson.js
src/geojson.js
module.exports.point = justType('Point', 'POINT'); module.exports.line = justType('LineString', 'POLYLINE'); module.exports.polygon = justType('Polygon', 'POLYGON'); function justType(type, TYPE) { return function(gj) { var oftype = gj.features.filter(isType(type)); return { geometries:...
module.exports.point = justType('Point', 'POINT'); module.exports.line = justType('LineString', 'POLYLINE'); module.exports.polygon = justType('Polygon', 'POLYGON'); function justType(type, TYPE) { return function(gj) { var oftype = gj.features.filter(isType(type)); return { geometries:...
Add type check for polygon and polyline arrays
fix(output): Add type check for polygon and polyline arrays Added a type check to properly wrap polygon and polyline arrays
JavaScript
bsd-3-clause
mapbox/shp-write,mapbox/shp-write
--- +++ @@ -6,7 +6,7 @@ return function(gj) { var oftype = gj.features.filter(isType(type)); return { - geometries: oftype.map(justCoords), + geometries: (TYPE === 'POLYGON' || TYPE === 'POLYLINE') ? [oftype.map(justCoords)] : oftype.map(justCoords), propertie...
d62ccfd234f702b66124a673e54076dbdfe693be
lib/util/endpointParser.js
lib/util/endpointParser.js
var semver = require('semver'); var createError = require('./createError'); function decompose(endpoint) { var regExp = /^(?:([\w\-]|(?:[\w\.\-]+[\w\-])?)\|)?([^\|#]+)(?:#(.*))?$/; var matches = endpoint.match(regExp); if (!matches) { throw createError('Invalid endpoint: "' + endpoint + '"', 'EINV...
var semver = require('semver'); var createError = require('./createError'); function decompose(endpoint) { var regExp = /^(?:([\w\-]|(?:[\w\.\-]+[\w\-])?)=)?([^\|#]+)(?:#(.*))?$/; var matches = endpoint.match(regExp); if (!matches) { throw createError('Invalid endpoint: "' + endpoint + '"', 'EINVE...
Change name separator of the endpoint (can't use pipe duh).
Change name separator of the endpoint (can't use pipe duh).
JavaScript
mit
dreamauya/bower,jisaacks/bower,Blackbaud-EricSlater/bower,DrRataplan/bower,rlugojr/bower,grigorkh/bower,omurbilgili/bower,yinhe007/bower,XCage15/bower,gronke/bower,amilaonbitlab/bower,jodytate/bower,Teino1978-Corp/bower,prometheansacrifice/bower,adriaanthomas/bower,unilynx/bower,watilde/bower,rajzshkr/bower,jvkops/bowe...
--- +++ @@ -2,7 +2,7 @@ var createError = require('./createError'); function decompose(endpoint) { - var regExp = /^(?:([\w\-]|(?:[\w\.\-]+[\w\-])?)\|)?([^\|#]+)(?:#(.*))?$/; + var regExp = /^(?:([\w\-]|(?:[\w\.\-]+[\w\-])?)=)?([^\|#]+)(?:#(.*))?$/; var matches = endpoint.match(regExp); if (!mat...
0b7ec05717cf6c89e9cbe307bec611326c19ae43
js/metronome.js
js/metronome.js
function Metronome(tempo, beatsPerMeasure){ this.tempo = Number(tempo); this.beatsPerMeasure = Number(beatsPerMeasure); this.interval = null; } Metronome.prototype.start = function(){ var millisecondsToWait = this.tempoToMilliseconds(this.tempo); this.interval = window.setInterval(soundAndCounter, millisecon...
function Metronome(tempo, beatsPerMeasure){ this.tempo = Number(tempo); this.beatsPerMeasure = Number(beatsPerMeasure); this.interval = null; } Metronome.prototype.start = function(){ var millisecondsToWait = this.tempoToMilliseconds(this.tempo); this.interval = window.setInterval(soundAndCounter, millisecon...
Add reference to counter in stop method
Add reference to counter in stop method
JavaScript
mit
dmilburn/beatrice,dmilburn/beatrice
--- +++ @@ -11,6 +11,12 @@ Metronome.prototype.tempoToMilliseconds = function(tempo){ return (1000 * 60)/tempo; +} + +Metronome.prototype.stop = function(){ + window.clearInterval(this.interval); + var counter = document.getElementById("metronome-counter"); + counter.innerHTML = ""; } soundAndCounter = f...
ab53bc3e982b21a24fa7a0b36d43d98213ffbb7c
lib/winston-syslog-ain2.js
lib/winston-syslog-ain2.js
/* * MIT LICENCE */ var util = require('util'), winston = require('winston'), SysLogger = require("ain2"); var ain; var SyslogAin2 = exports.SyslogAin2 = function (options) { winston.Transport.call(this, options); options = options || {}; ain = new SysLogger(options); }; util.inherits(SyslogAin2, wi...
/* * MIT LICENCE */ var util = require('util'), winston = require('winston'), SysLogger = require("ain2"); var SyslogAin2 = exports.SyslogAin2 = function (options) { winston.Transport.call(this, options); options = options || {}; this.ain = new SysLogger(options); }; util.inherits(SyslogAin2, winston...
Fix bug that the old settings of the ain2 is got replaced
Fix bug that the old settings of the ain2 is got replaced
JavaScript
mit
lamtha/winston-syslog-ain2
--- +++ @@ -6,12 +6,10 @@ winston = require('winston'), SysLogger = require("ain2"); -var ain; - var SyslogAin2 = exports.SyslogAin2 = function (options) { winston.Transport.call(this, options); options = options || {}; - ain = new SysLogger(options); + this.ain = new SysLogger(options); }; u...
ec7c6848b01a3e6288b3d5326ca9df677052f7da
lib/action.js
lib/action.js
var _ = require('lodash-node'); var Action = function(name, two, three, four) { var options, run, helpers; // Syntax .extend('action#method', function() { ... }, {}) if ( typeof two == 'function' ) { options = {}; run = two; helpers = three; } // Syntax .extend('action#method', {}, function() {...
var _ = require('lodash-node'); var Action = function(name, two, three, four) { var options, run, helpers; // Syntax .extend('action#method', function() { ... }, {}) if ( typeof two == 'function' ) { options = {}; run = two; helpers = three; } // Syntax .extend('action#method', {}, function() {...
Add connection parameter and change req to request
Add connection parameter and change req to request
JavaScript
mit
alexparker/actionpack
--- +++ @@ -35,12 +35,13 @@ run: function(api, conn, next){ this.api = api; + this.connection = conn; this.next = function(success) { next(conn, success); }; this.json = conn.response; this.params = conn.params; - this.req = conn.request; + this.reques...
cd0341613c11d07d2c9990adb12635f4e7809dfc
list/source/package.js
list/source/package.js
enyo.depends( "Selection.js", "FlyweightRepeater.js", "List.css", "List.js", "PulldownList.css", "PulldownList.js" );
enyo.depends( "FlyweightRepeater.js", "List.css", "List.js", "PulldownList.css", "PulldownList.js" );
Remove enyo.Selection from layout library, moved into enyo base-UI
Remove enyo.Selection from layout library, moved into enyo base-UI
JavaScript
apache-2.0
enyojs/layout
--- +++ @@ -1,5 +1,4 @@ enyo.depends( - "Selection.js", "FlyweightRepeater.js", "List.css", "List.js",
465e33e170a10ad39c3948cb9bcb852bd5705f91
src/ol/style/fillstyle.js
src/ol/style/fillstyle.js
goog.provide('ol.style.Fill'); goog.require('ol.color'); /** * @constructor * @param {olx.style.FillOptions} options Options. */ ol.style.Fill = function(options) { /** * @type {ol.Color|string} */ this.color = goog.isDef(options.color) ? options.color : null; };
goog.provide('ol.style.Fill'); goog.require('ol.color'); /** * @constructor * @param {olx.style.FillOptions=} opt_options Options. */ ol.style.Fill = function(opt_options) { var options = goog.isDef(opt_options) ? opt_options : {}; /** * @type {ol.Color|string} */ this.color = goog.isDef(options.co...
Make options argument to ol.style.Fill optional
Make options argument to ol.style.Fill optional
JavaScript
bsd-2-clause
das-peter/ol3,adube/ol3,mzur/ol3,xiaoqqchen/ol3,Distem/ol3,gingerik/ol3,antonio83moura/ol3,gingerik/ol3,itayod/ol3,bjornharrtell/ol3,tsauerwein/ol3,Antreasgr/ol3,klokantech/ol3raster,pmlrsg/ol3,das-peter/ol3,landonb/ol3,t27/ol3,kkuunnddaannkk/ol3,freylis/ol3,fredj/ol3,Andrey-Pavlov/ol3,kjelderg/ol3,geonux/ol3,elemoine/...
--- +++ @@ -6,9 +6,11 @@ /** * @constructor - * @param {olx.style.FillOptions} options Options. + * @param {olx.style.FillOptions=} opt_options Options. */ -ol.style.Fill = function(options) { +ol.style.Fill = function(opt_options) { + + var options = goog.isDef(opt_options) ? opt_options : {}; /** *...
4f2ecb38e7eed9706dd4709915a532bdb5a943f2
rcmet/src/main/ui/test/unit/services/RegionSelectParamsTest.js
rcmet/src/main/ui/test/unit/services/RegionSelectParamsTest.js
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
Resolve CLIMATE-147 - Add tests for regionSelectParams service
Resolve CLIMATE-147 - Add tests for regionSelectParams service - Add getParameters test. git-svn-id: https://svn.apache.org/repos/asf/incubator/climate/trunk@1496037 13f79535-47bb-0310-9956-ffa450edef68 Former-commit-id: 3d2be98562f344323a5532ca5757850d175ba25c
JavaScript
apache-2.0
jarifibrahim/climate,apache/climate,Omkar20895/climate,huikyole/climate,MJJoyce/climate,lewismc/climate,MJJoyce/climate,jarifibrahim/climate,kwhitehall/climate,pwcberry/climate,riverma/climate,MJJoyce/climate,agoodm/climate,riverma/climate,agoodm/climate,MBoustani/climate,MBoustani/climate,riverma/climate,lewismc/clima...
--- +++ @@ -30,6 +30,12 @@ expect(regionSelectParams).not.toEqual(null); }); }); + + it('should provide the getParameters function', function() { + inject(function(regionSelectParams) { + expect(regionSelectParams.getParameters()).not.toEqual(null); + }); + }); }); });
9750b5683e1a545a66251e78e07ef6b362a8b6d8
browser/main.js
browser/main.js
const electron = require('electron'); const app = electron.app; const BrowserWindow = electron.BrowserWindow; const Menu = electron.Menu; var menu = require('./menu'); var argv = require('optimist').argv; let mainWindow; app.on('ready', function() { mainWindow = new BrowserWindow({ center: true, ...
const electron = require('electron'); const app = electron.app; const BrowserWindow = electron.BrowserWindow; const Menu = electron.Menu; var menu = require('./menu'); var argv = require('optimist').argv; let mainWindow; app.on('ready', function() { mainWindow = new BrowserWindow({ center: true, ...
Add icon that works for linux apps also
Add icon that works for linux apps also
JavaScript
lgpl-2.1
GMOD/jbrowse,GMOD/jbrowse,GMOD/jbrowse,nathandunn/jbrowse,nathandunn/jbrowse,nathandunn/jbrowse,GMOD/jbrowse,GMOD/jbrowse,nathandunn/jbrowse,nathandunn/jbrowse
--- +++ @@ -13,7 +13,8 @@ center: true, title: 'JBrowseDesktop', width: 1024, - height: 768 + height: 768, + icon: require('path').resolve(__dirname, 'icons/jbrowse.png') }); var queryString = Object.keys(argv).map(key => key + '=' + argv[key]).join('&');
f5d144abff50c9044cbfeeec16c8169a361aec1c
packages/@sanity/server/src/configs/postcssPlugins.js
packages/@sanity/server/src/configs/postcssPlugins.js
import lost from 'lost' import postcssUrl from 'postcss-url' import postcssImport from 'postcss-import' import postcssCssnext from 'postcss-cssnext' import resolveStyleImport from '../util/resolveStyleImport' export default options => { const styleResolver = resolveStyleImport({from: options.basePath}) const impor...
import path from 'path' import lost from 'lost' import postcssUrl from 'postcss-url' import postcssImport from 'postcss-import' import postcssCssnext from 'postcss-cssnext' import resolveStyleImport from '../util/resolveStyleImport' const absolute = /^(\/|\w+:\/\/)/ const isAbsolute = url => absolute.test(url) export...
Use custom way to resolve URLs for file assets that are relative
[server] Use custom way to resolve URLs for file assets that are relative
JavaScript
mit
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
--- +++ @@ -1,18 +1,26 @@ +import path from 'path' import lost from 'lost' import postcssUrl from 'postcss-url' import postcssImport from 'postcss-import' import postcssCssnext from 'postcss-cssnext' import resolveStyleImport from '../util/resolveStyleImport' +const absolute = /^(\/|\w+:\/\/)/ +const isAbsolut...
f0d73e072691c7ae4ee848c7ef0868aebd6c8ce4
components/prism-docker.js
components/prism-docker.js
Prism.languages.docker = { 'keyword': { pattern: /(^\s*)(?:ONBUILD|FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|COPY|VOLUME|USER|WORKDIR|CMD|LABEL|ENTRYPOINT)(?=\s)/mi, lookbehind: true }, 'string': /("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*?\1/, 'comment': /#.*/, 'punctuation': /---|\.\.\.|[:[\]{}\-,|>?]/ }; Prism.l...
Prism.languages.docker = { 'keyword': { pattern: /(^\s*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)/mi, lookbehind: true }, 'string': /("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*?\1/, 'comment': /#.*/, 'punctuation': /---|\...
Update the list of keywords for dockerfiles
Update the list of keywords for dockerfiles
JavaScript
mit
PrismJS/prism,mAAdhaTTah/prism,PrismJS/prism,CupOfTea696/prism,mAAdhaTTah/prism,PrismJS/prism,byverdu/prism,PrismJS/prism,byverdu/prism,CupOfTea696/prism,mAAdhaTTah/prism,mAAdhaTTah/prism,mAAdhaTTah/prism,PrismJS/prism,CupOfTea696/prism,byverdu/prism,byverdu/prism,CupOfTea696/prism,CupOfTea696/prism,byverdu/prism
--- +++ @@ -1,6 +1,6 @@ Prism.languages.docker = { 'keyword': { - pattern: /(^\s*)(?:ONBUILD|FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|COPY|VOLUME|USER|WORKDIR|CMD|LABEL|ENTRYPOINT)(?=\s)/mi, + pattern: /(^\s*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|...
c6db2d07bbda721d18ebce6c3526ec393b61e5b2
src/ol/geom.js
src/ol/geom.js
/** * @module ol/geom */ export {default as Circle} from './geom/Circle.js'; export {default as Geometry} from './geom/Geometry.js'; export {default as GeometryCollection} from './geom/GeometryCollection'; export {default as LineString} from './geom/LineString.js'; export {default as MultiLineString} from './geom/Mu...
/** * @module ol/geom */ export {default as Circle} from './geom/Circle.js'; export {default as Geometry} from './geom/Geometry.js'; export {default as GeometryCollection} from './geom/GeometryCollection.js'; export {default as LineString} from './geom/LineString.js'; export {default as MultiLineString} from './geom...
Use .js extension for import
Use .js extension for import Co-Authored-By: ahocevar <02d02e811da4fb4f389e866b67c0fe930c3e5051@gmail.com>
JavaScript
bsd-2-clause
adube/ol3,tschaub/ol3,stweil/openlayers,bjornharrtell/ol3,tschaub/ol3,tschaub/ol3,openlayers/openlayers,stweil/openlayers,stweil/ol3,bjornharrtell/ol3,geekdenz/openlayers,geekdenz/openlayers,geekdenz/ol3,oterral/ol3,oterral/ol3,ahocevar/ol3,geekdenz/ol3,ahocevar/openlayers,geekdenz/ol3,adube/ol3,geekdenz/ol3,bjornharrt...
--- +++ @@ -4,7 +4,7 @@ export {default as Circle} from './geom/Circle.js'; export {default as Geometry} from './geom/Geometry.js'; -export {default as GeometryCollection} from './geom/GeometryCollection'; +export {default as GeometryCollection} from './geom/GeometryCollection.js'; export {default as LineString}...
030b97c50a57e1487b8459f91ee4a220810a8a63
babel.config.js
babel.config.js
require("@babel/register")({ only: [ "src", /node_modules\/alekhine/ ] }) module.exports = { presets: [ "@babel/preset-env" ], plugins: [ "@babel/plugin-transform-runtime", "@babel/plugin-proposal-object-rest-spread", "add-filehash", [ "transform-imports", { vueti...
module.exports = { presets: [ "@babel/preset-env" ], plugins: [ "@babel/plugin-transform-runtime", "@babel/plugin-proposal-object-rest-spread", "add-filehash", [ "transform-imports", { vuetify: { transform: "vuetify/src/components/${member}", preventFullImp...
Revert "compile alekhine as needed in development"
Revert "compile alekhine as needed in development" This reverts commit 917d5d50fd6ef0bbf845efa0bf13a2adba2fe58a.
JavaScript
mit
sonnym/bughouse,sonnym/bughouse
--- +++ @@ -1,10 +1,3 @@ -require("@babel/register")({ - only: [ - "src", - /node_modules\/alekhine/ - ] -}) - module.exports = { presets: [ "@babel/preset-env"
27982b6392b8dcd2adc22fb0db7eb0aecab0f62a
test/algorithms/sorting/testHeapSort.js
test/algorithms/sorting/testHeapSort.js
/* eslint-env mocha */ const HeapSort = require('../../../src').algorithms.Sorting.HeapSort; const assert = require('assert'); describe('HeapSort', () => { it('should have no data when empty initialization', () => { const inst = new HeapSort(); assert.equal(inst.size, 0); assert.deepEqual(inst.unsortedLi...
/* eslint-env mocha */ const HeapSort = require('../../../src').algorithms.Sorting.HeapSort; const assert = require('assert'); describe('HeapSort', () => { it('should have no data when empty initialization', () => { const inst = new HeapSort(); assert.equal(inst.size, 0); assert.deepEqual(inst.unsortedLi...
Test Heap Sort: Sort array with equal vals
Test Heap Sort: Sort array with equal vals
JavaScript
mit
ManrajGrover/algorithms-js
--- +++ @@ -19,4 +19,12 @@ assert.equal(inst.toString(), '1, 2, 3, 4'); }); + it('should sort the array in ascending order with few equal vals', () => { + const inst = new HeapSort([2, 1, 3, 4, 2], (a, b) => a < b); + assert.equal(inst.size, 5); + + assert.deepEqual(inst.unsortedList, [2, 1, 3, 4,...
6a408d16822f596bedeb524912471845ced74048
ckanext/ckanext-apicatalog_ui/ckanext/apicatalog_ui/fanstatic/cookieconsent/ckan-cookieconsent.js
ckanext/ckanext-apicatalog_ui/ckanext/apicatalog_ui/fanstatic/cookieconsent/ckan-cookieconsent.js
window.cookieconsent.initialise({ container: document.getElementById("cookie_consent"), position: "top", type: "opt-in", static: false, theme: "suomifi", onInitialise: function (status){ let type = this.options.type; let didConsent = this.hasConsented(); if (type === 'opt...
ckan.module('cookie_consent', function (jQuery){ return { initialize: function() { window.cookieconsent.initialise({ container: document.getElementById("cookie_consent"), position: "top", type: "opt-in", static: false, ...
Add translations to cookie popup
LIKA-244: Add translations to cookie popup
JavaScript
mit
vrk-kpa/api-catalog,vrk-kpa/api-catalog,vrk-kpa/api-catalog,vrk-kpa/api-catalog
--- +++ @@ -1,29 +1,33 @@ -window.cookieconsent.initialise({ - container: document.getElementById("cookie_consent"), - position: "top", - type: "opt-in", - static: false, - theme: "suomifi", - onInitialise: function (status){ - let type = this.options.type; - let didConsent = this.hasC...
771e7c0d485a6a0e45d550d555beb500e256ebde
react/react-practice/src/actions/lifeCycleActions.js
react/react-practice/src/actions/lifeCycleActions.js
import {firebaseApp,firebaseAuth,firebaseDb, firebaseStorage, firebaseAuthInstance } from '../components/Firebase.js' import { browserHistory } from 'react-router'; export function goToNextState() { return function(dispatch) { dispatch({type: "GET_SCHEDULE"}) } } export function testPromise() { let response = ne...
import {firebaseApp,firebaseAuth,firebaseDb, firebaseStorage, firebaseAuthInstance } from '../components/Firebase.js' import { browserHistory } from 'react-router'; export function goToNextState() { return function(dispatch) { dispatch({type: "GET_SCHEDULE"}) } } export function testPromise() { let response = ne...
Test promise in the actions
Test promise in the actions
JavaScript
mit
jeremykid/FunAlgorithm,jeremykid/FunAlgorithm,jeremykid/FunAlgorithm,jeremykid/FunAlgorithm
--- +++ @@ -8,7 +8,11 @@ } export function testPromise() { - let response = new Promise() + let response = new Promise((resolve, reject) => { + function(dispatch) { + dispatch({type: "TEST_PROMISE"}) + } + }) return function(dispatch) { dispatch({type: "TEST_PROMISE"}) }
b9ed588780e616228d133b91117b80930d658140
src/components/PlaybackCtrl/PlaybackCtrlContainer.js
src/components/PlaybackCtrl/PlaybackCtrlContainer.js
import { connect } from 'react-redux' import PlaybackCtrl from './PlaybackCtrl' import { requestPlay, requestPause, requestVolume, requestPlayNext } from 'store/modules/status' // Object of action creators (can also be function that returns object). const mapActionCreators = { requestPlay, requestPlayNext, requ...
import { connect } from 'react-redux' import PlaybackCtrl from './PlaybackCtrl' import { requestPlay, requestPause, requestVolume, requestPlayNext } from 'store/modules/status' // Object of action creators (can also be function that returns object). const mapActionCreators = { requestPlay, requestPlayNext, requ...
Add missing status prop for PlaybackCtrl
Add missing status prop for PlaybackCtrl
JavaScript
isc
bhj/karaoke-forever,bhj/karaoke-forever
--- +++ @@ -17,6 +17,7 @@ isPlaying: state.status.isPlaying, isAtQueueEnd: state.status.isAtQueueEnd, volume: state.status.volume, + isPlayerPresent: state.status.isPlayerPresent, } }
66b91190f513893efbe7eef9beba1925e32a44d5
lib/build-navigation/index.js
lib/build-navigation/index.js
'use strict'; const path = require('path'); const buildNavigation = function(styleguideArray) { let options = this; options.navigation = {}; styleguideArray.forEach((obj) => { let fileName = (obj.writeName || obj.title).replace(/ /g, '_').toLowerCase() + '.html'; options.navigation[obj.title] = fileN...
'use strict'; const buildNavigation = function(styleguideArray) { let options = this, _nav = {}; options.navigation = {}; styleguideArray.forEach((obj) => { let fileName = (obj.writeName || obj.title).replace(/ /g, '_').toLowerCase() + '.html'; _nav[obj.title] = fileName; }); Object.keys(_nav...
Update navigation to be in alphabetical order
Update navigation to be in alphabetical order
JavaScript
mit
tbremer/live-guide,tbremer/live-guide
--- +++ @@ -1,17 +1,22 @@ 'use strict'; -const path = require('path'); - const buildNavigation = function(styleguideArray) { - let options = this; + let options = this, + _nav = {}; options.navigation = {}; styleguideArray.forEach((obj) => { let fileName = (obj.writeName || obj.title).replace(...
de7a0b64dcd24892e0333f9e77f56ca6117cae5a
cli/main.js
cli/main.js
#!/usr/bin/env node 'use strict' process.title = 'ucompiler' require('debug').enable('UCompiler:*') const UCompiler = require('..') const knownCommands = ['go', 'watch'] const parameters = process.argv.slice(2) if (!parameters.length || knownCommands.indexOf(parameters[0]) === -1) { console.log('Usage: ucompiler go...
#!/usr/bin/env node 'use strict' process.title = 'ucompiler' require('debug').enable('UCompiler:*') var UCompiler = require('..') var knownCommands = ['go', 'watch'] var parameters = process.argv.slice(2) if (!parameters.length || knownCommands.indexOf(parameters[0]) === -1) { console.log('Usage: ucompiler go|watch...
Use art instead of const in cli file
:art: Use art instead of const in cli file
JavaScript
mit
steelbrain/UCompiler
--- +++ @@ -3,9 +3,9 @@ process.title = 'ucompiler' require('debug').enable('UCompiler:*') -const UCompiler = require('..') -const knownCommands = ['go', 'watch'] -const parameters = process.argv.slice(2) +var UCompiler = require('..') +var knownCommands = ['go', 'watch'] +var parameters = process.argv.slice(2) ...
ac0c31a94428c1180ef7b309c79410bfc28ccdf0
config.js
config.js
var env = process.env.NODE_ENV || 'development'; var defaults = { "static": { port: 3003 }, "socket": { options: { origins: '*:*', log: true, heartbeats: false, authorization: false, transports: [ 'websocket', 'flashsocket', 'htmlfile', 'xhr-p...
var env = process.env.NODE_ENV || 'development'; var defaults = { "static": { port: 3003 }, "socket": { options: { origins: '*:*', log: true, heartbeats: false, authorization: false, transports: [ 'websocket', 'flashsocket', 'htmlfile', 'xhr-p...
Remove prod/staging ports so people don't get the idea to run this on these environments
Remove prod/staging ports so people don't get the idea to run this on these environments
JavaScript
mit
maritz/nohm-admin,maritz/nohm-admin
--- +++ @@ -44,12 +44,4 @@ } }; -if (env === 'production' || env === 'staging') { - defaults["static"].port = 80; -} - -if (env === 'staging') { - defaults['static'].port = 3004; -} - module.exports = defaults;
fb0993fb10b597884fb37f819743bce9d63accb0
src/main/webapp/resources/js/apis/galaxy/galaxy.js
src/main/webapp/resources/js/apis/galaxy/galaxy.js
import axios from "axios"; export const getGalaxyClientAuthentication = clientId => axios .get( `${window.TL.BASE_URL}ajax/galaxy-export/authorized?clientId=${clientId}` ) .then(({ data }) => data); export const getGalaxySamples = () => axios .get(`${window.TL.BASE_URL}ajax/galaxy-export/sam...
import axios from "axios"; export const getGalaxyClientAuthentication = clientId => axios .get( `${window.TL.BASE_URL}ajax/galaxy-export/authorized?clientId=${clientId}` ) .then(({ data }) => data); export const getGalaxySamples = () => axios .get(`${window.TL.BASE_URL}ajax/galaxy-export/sam...
Update library name to be a timestamp
Update library name to be a timestamp Signed-off-by: Josh Adam <8493dc4643ddc08e2ef6b4cf76c12d4ffb7203d1@canada.ca>
JavaScript
apache-2.0
phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida
--- +++ @@ -19,9 +19,11 @@ oauthRedirect, samples ) => { - const name = `IRIDA-${Math.random() - .toString() - .slice(2, 14)}`; + const name = `IRIDA-${Date.now()}`; + + /* + This structure is expected by galaxy. + */ const params = { _embedded: { library: { name },
6c8ce552cf95452c35a9e5d4a322960bfdf94572
src/helpers/replacePath.js
src/helpers/replacePath.js
import resolveNode from "../helpers/resolveNode"; import match from "../helpers/matchRedirect"; import {relative, dirname} from "path"; export default function (t, originalPath, {opts: {root, extensions}, file: {opts: {filename}}}, regexps) { const requiredFilename = resolveNode(dirname(filename), originalPath.node.v...
import resolveNode from "../helpers/resolveNode"; import match from "../helpers/matchRedirect"; import {relative, dirname, extname} from "path"; export default function (t, originalPath, {opts: {root, extensions}, file: {opts: {filename}}}, regexps) { const requiredFilename = resolveNode(dirname(filename), originalPa...
Fix file extension added when redirect didn't have one
fix(replacement): Fix file extension added when redirect didn't have one
JavaScript
mit
Velenir/babel-plugin-import-redirect
--- +++ @@ -1,6 +1,6 @@ import resolveNode from "../helpers/resolveNode"; import match from "../helpers/matchRedirect"; -import {relative, dirname} from "path"; +import {relative, dirname, extname} from "path"; export default function (t, originalPath, {opts: {root, extensions}, file: {opts: {filename}}}, regexp...
3ba06c96a3181c46b2c52a1849bfc284f05e9596
experiments/GitHubGistUserCreator.js
experiments/GitHubGistUserCreator.js
const bcrypt = require('bcrypt'); const GitHub = require('github-api'); const crypto = require('crypto'); const { User } = require('../models'); const { email } = require('../utils'); const GITHUB_API_TOKEN = process.env.GITHUB_TOKEN; const GITHUB_GIST_ID = process.env.GITHUB_GIST_ID; // Authenticate using a GitHub ...
const bcrypt = require('bcrypt'); const GitHub = require('github-api'); const crypto = require('crypto'); const { Spot, User } = require('../models'); const { email } = require('../utils'); const GITHUB_API_TOKEN = process.env.GITHUB_TOKEN; const GITHUB_GIST_ID = process.env.GITHUB_GIST_ID; // Authenticate using a G...
Create spot along with user
Create spot along with user
JavaScript
mit
osumb/challenges,osumb/challenges,osumb/challenges,osumb/challenges
--- +++ @@ -2,7 +2,7 @@ const GitHub = require('github-api'); const crypto = require('crypto'); -const { User } = require('../models'); +const { Spot, User } = require('../models'); const { email } = require('../utils'); const GITHUB_API_TOKEN = process.env.GITHUB_TOKEN; @@ -27,11 +27,15 @@ const passwor...
b4801f092fde031842c4858dda1794863ecaf2d9
app/assets/javascripts/replies.js
app/assets/javascripts/replies.js
jQuery(function() { jQuery('a[href=#preview]').click(function(e) { var form = jQuery('#new_reply'); jQuery.ajax({ url: form.attr('action'), type: 'post', data: { reply: { content: form.find('#reply_content').val() } }, success: function(data) { ...
jQuery(function() { jQuery('a[href=#preview]').click(function(e) { var form = jQuery(this).parents('form'); jQuery.ajax({ url: '/previews/new', type: 'get', data: { content: form.find('textarea').val(), }, success: function(data) { jQuery('#preview').html(data); ...
Switch to preview rendering in seperate controller
Switch to preview rendering in seperate controller
JavaScript
agpl-3.0
paradime/brimir,Gitlab11/brimir,johnsmithpoten/brimir,mbchandar/brimir,himeshp/brimir,viddypiddy/brimir,git-jls/brimir,hadifarnoud/brimir,ask4prasath/brimir_clone,Gitlab11/brimir,fiedl/brimir,johnsmithpoten/brimir,viddypiddy/brimir,fiedl/brimir,Gitlab11/brimir,ask4prasath/madGeeksAimWeb,paradime/brimir,mbchandar/brimir...
--- +++ @@ -1,19 +1,15 @@ jQuery(function() { - + jQuery('a[href=#preview]').click(function(e) { - var form = jQuery('#new_reply'); + var form = jQuery(this).parents('form'); jQuery.ajax({ - url: form.attr('action'), - type: 'post', + url: '/previews/new', + type: 'get', da...
3c84d34e41b14f43b8229fadbce86312ac19f964
ast/call.js
ast/call.js
module.exports = class Call { constructor(callee, args) { this.callee = callee; this.args = args; } analyze(context) { this.callee.analyze(context); context.assertIsFunction(this.callee.referent); this.checkNumberOfArguments(this.callee.referent); this.checkArgumentNamesAndPositionalRules...
module.exports = class Call { constructor(callee, args) { this.callee = callee; this.args = args; } analyze(context) { this.callee.analyze(context); context.assertIsFunction(this.callee.referent); this.checkArgumentMatching(this.callee.referent); } checkArgumentMatching(callee) { let...
Implement proper parameter matching rules
Implement proper parameter matching rules
JavaScript
mit
rtoal/plainscript
--- +++ @@ -7,37 +7,35 @@ analyze(context) { this.callee.analyze(context); context.assertIsFunction(this.callee.referent); - this.checkNumberOfArguments(this.callee.referent); - this.checkArgumentNamesAndPositionalRules(this.callee.referent); + this.checkArgumentMatching(this.callee.referent); ...
1d59470c25001556346e252ca344fa7f4d26c453
jquery.observe_field.js
jquery.observe_field.js
// jquery.observe_field.js (function( $ ){ jQuery.fn.observe_field = function(frequency, callback) { frequency = frequency * 1000; // translate to milliseconds return this.each(function(){ var $this = $(this); var prev = $this.val(); var check = function() { var val = $this.val...
// jquery.observe_field.js (function( $ ){ jQuery.fn.observe_field = function(frequency, callback) { frequency = frequency * 1000; // translate to milliseconds return this.each(function(){ var $this = $(this); var prev = $this.val(); var check = function() { if(removed()){ // i...
Fix bug in IE9 when observed elements are removed from the DOM
Fix bug in IE9 when observed elements are removed from the DOM
JavaScript
mit
splendeo/jquery.observe_field,splendeo/jquery.observe_field
--- +++ @@ -12,11 +12,20 @@ var prev = $this.val(); var check = function() { + if(removed()){ // if removed clear the interval and don't fire the callback + if(ti) clearInterval(ti); + return; + } + var val = $this.val(); if(prev != val){ pr...
30a3ce599413db184f2ccc19ec362ea8d88f60e6
js/component-graphic.js
js/component-graphic.js
define([], function () { 'use strict'; var ComponentGraphic = function (options) { this.color = options.color || "#dc322f"; }; ComponentGraphic.prototype.paint = function paint(gc) { gc.fillStyle = this.color; gc.fillRect(0, 0, 15, 15); }; return ComponentGraphic; });
define([], function () { 'use strict'; var ComponentGraphic = function (options) { options = options || {}; this.color = options.color || "#dc322f"; }; ComponentGraphic.prototype.paint = function paint(gc) { gc.fillStyle = this.color; gc.fillRect(0, 0, 15, 15); }; return ComponentGraphic;...
Set default options for graphic component
Set default options for graphic component
JavaScript
mit
floriico/onyx,floriico/onyx
--- +++ @@ -2,6 +2,7 @@ 'use strict'; var ComponentGraphic = function (options) { + options = options || {}; this.color = options.color || "#dc322f"; };
69d2d2a7450b91b3533a18ad2c51e009dd3c58f7
frontend/webpack.config.js
frontend/webpack.config.js
const webpack = require('webpack'); const ExtractTextPlugin = require("extract-text-webpack-plugin"); const path = require('path'); // Extract CSS into a separate file const extractSass = new ExtractTextPlugin({ filename: "../css/main.css", }); // Minify JavaScript const UglifyJsPlugin = new webpack.optimize.Ugli...
const webpack = require('webpack'); const ExtractTextPlugin = require("extract-text-webpack-plugin"); const path = require('path'); // Extract CSS into a separate file const extractSass = new ExtractTextPlugin({ filename: "../css/main.css", }); // Minify JavaScript const UglifyJsPlugin = new webpack.optimize.Ugli...
Fix Webpack entry module path
Fix Webpack entry module path
JavaScript
bsd-2-clause
rub/alessiorapini.me,rub/alessiorapini.me
--- +++ @@ -14,7 +14,7 @@ module.exports = { devtool: 'cheap-module-eval-source-map', - entry: './client/js/index.js', + entry: './js/index.js', output: { filename: 'bundle.js', path: path.resolve(__dirname, 'static/js'),