commit
stringlengths
40
40
subject
stringlengths
1
3.25k
old_file
stringlengths
4
311
new_file
stringlengths
4
311
old_contents
stringlengths
0
26.3k
lang
stringclasses
3 values
proba
float64
0
1
diff
stringlengths
0
7.82k
42fe7899906acda34fbc56954c65590137c10fc3
Change mobile menu to toggle rather than slide
assets/js/main.js
assets/js/main.js
$(document).ready(function(){ // Toggle mobile nav var nav = $('.main-nav'); $('.toggle-nav').click(function(e){ e.preventDefault(); nav.slideToggle(); }); // Reset when window switches to desktop view $(window).resize(function() { if ($(window).width() > 750) { ...
JavaScript
0.000001
@@ -165,14 +165,9 @@ nav. -slideT +t oggl
d64efc2271cd2b420c0c9ad37d92d4446314821b
Improve fetch
fetch-stocks.js
fetch-stocks.js
'use strict'; const debug = require('debug')('stocks:fetch'); module.exports = fetchStocks; function fetchStocks(symbols, cb) { const parse = require('csv-parse/lib/sync'); const request = require('request'); const qs = require('querystring'); const url = 'http://download.finance.yahoo.com/d/quotes.csv?' + ...
JavaScript
0.000005
@@ -209,24 +209,25 @@ uest');%0A +%0A const qs = req @@ -222,38 +222,180 @@ nst -qs = require('querystring' +fields = %7B%0A name: 'n',%0A symbol: 's',%0A price: 'l1',%0A sma50d: 'm3',%0A sma200d: 'm4',%0A lo52w: 'j',%0A hi52w: 'k'%0A %7D;%0A const columns = Object.keys(fields );%0A -%0A...
b9ce0eb5dae1e74fc211b36172ca0bc2c2d5f859
Use without instead of omit for filtered propKeys
src/react-sane-contenteditable.js
src/react-sane-contenteditable.js
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { omit, isEqual, pick } from 'lodash'; const propTypes = { content: PropTypes.string, editable: PropTypes.bool, maxLength: PropTypes.number, multiLine: PropTypes.bool, onChange: PropTypes.func, sanitise: PropTypes.bool, ...
JavaScript
0
@@ -99,16 +99,25 @@ al, pick +, without %7D from @@ -1080,19 +1080,22 @@ pKeys = -omi +withou t(Object
b5231fbc3f716aee62508fc47bde1dcff6847d95
Replace version in the other places too
script/download-node.js
script/download-node.js
#!/usr/bin/env node var fs = require('fs'); var mv = require('mv'); var zlib = require('zlib'); var path = require('path'); // Use whichever version of the local request helper is available // This might be the JavaScript or CoffeeScript version depending // on whether this module is being installed explictly or // `n...
JavaScript
0.000001
@@ -1649,17 +1649,17 @@ js-v2.3. -0 +2 -linux-a @@ -2995,17 +2995,17 @@ e('v2.3. -0 +2 ', funct
c39c88aeddd003220d242022a64bb8bb78b3ffa7
Simplify schema
app/graphql/schema.js
app/graphql/schema.js
const { makeExecutableSchema } = require('graphql-tools') const rootSchema = [` type Query { getFoo( # Any String. bar: String! ): String } type Mutation { # Set something setFoo( # Any String. bar: String! ): String } schema { query: Query mutation: Mutation } `]; const rootResolvers ...
JavaScript
0.000383
@@ -58,26 +58,24 @@ %0A%0Aconst -rootSchema +typeDefs = %5B%60%0Aty @@ -298,20 +298,16 @@ %0Aconst r -ootR esolvers @@ -522,94 +522,22 @@ %0A%7D%0A%0A -const schema = %5B...rootSchema%5D%0Aconst resolvers = rootResolvers%0A%0Aconst executableSchema +module.exports = m @@ -572,16 +572,8 @@ Defs -: schema ,%0A...
10743ea6f028d59e462d51ebcf4bc8ec116a2211
Change reply data delete
src/renderer/store/modules/app.js
src/renderer/store/modules/app.js
const state = { activeIndex: 1, tweetItemDialogVisible: false, idStr: '', screenName: '', favorited: false } const mutations = { CHANGE_ACTIVE_INDEX (state, index) { state.activeIndex = index }, OPEN_TWEET_ITEM_DIALOG (state) { state.tweetItemDialogVisible = true }, CLOSE_TWEET_ITEM_DIALOG ...
JavaScript
0
@@ -1022,32 +1022,69 @@ (%7B commit %7D) %7B%0A + if (state.activeIndex !== 0) %7B%0A commit('SET_ @@ -1101,24 +1101,26 @@ E', '')%0A + commit('SET_ @@ -1132,16 +1132,22 @@ R', '')%0A + %7D%0A %7D%0A%7D%0A%0Ae
2240e62d7927064dbe618c1a5b1e77cd16130297
Update controllers.js
app/js/controllers.js
app/js/controllers.js
'use strict'; var carApp = angular.module('carApp', ['ngRoute']); carApp.config(['$routeProvider', function($routeProvider){ $routeProvider .when('/buy',{ templateUrl: 'template/buy.html', controller: 'BuyController' }) .when('/',{ templateUrl: 'template/home.html', controller: 'HomeCon...
JavaScript
0.000001
@@ -834,11 +834,8 @@ et(' -../ cars
478e4bb281aa2b1441e34c09769256068c12f37a
Remove unused "selected" scope property
app/js/controllers.js
app/js/controllers.js
'use strict'; /* Controllers */ angular.module('musicAlbumApp.controllers', ['ui.bootstrap']). controller('SearchCtrl', ['$scope', 'searchService', function ($scope, searchService) { $scope.maxSize = 5; $scope.currentPage = 1; $scope.pageSizes = [ {count: 5, label: '5 ' + $scop...
JavaScript
0.000001
@@ -1516,45 +1516,8 @@ %7D;%0A%0A - $scope.selected = undefined;%0A
93af1c31ab7f67ad17541bfab9c1344df4963e8f
clear inconsistent wording
assets/widgets.js
assets/widgets.js
(function() { 'use strict'; var loadTwitterWidget = once(function() { window.twttr = (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0], t = window.twttr || {}; if (d.getElementById(id)) return t; js = d.createElement(s); js.id = id; js.src = "https://platfor...
JavaScript
0.001183
@@ -1245,24 +1245,13 @@ e: ' -Share on Twitter +Tweet ',%0A
833efc7e93fa371244fd99674edf832ba135a53d
Use the last user-requested enddt
app/js/controllers.js
app/js/controllers.js
'use strict'; /* Controllers */ var myApp = angular.module('myApp.controllers', ['ngQuickDate']); myApp.controller('MyCtrl1', ['$scope', '$http', function($scope, $http) { $http.get('sysadmin.json').success(function(data) { $scope.messages = data; }); }]); myApp.controller('MyCtrl2', ['$scope', 'ChatMessage...
JavaScript
0
@@ -844,32 +844,59 @@ s.enddt = null;%0A + this.nextenddt = null;%0A this.prepend @@ -2396,32 +2396,143 @@ etchFrom, dir);%0A + if (fetchTo %3C this.nextenddt) %7B%0A fetchTo = this.nextenddt;%0A this.nextenddt = null;%0A %7D%0A %7D%0A else i @@ -4225,32 +4225,69 @@ %3C this.e...
3ff3de74af09698f51d602f906d59046bd8d7919
update DraggableCourse's props syntax
modules/gob-web/modules/course/draggable.js
modules/gob-web/modules/course/draggable.js
import React from 'react' import styled from 'styled-components' import {DragSource} from 'react-dnd' import cx from 'classnames' import {IDENT_COURSE} from '@gob/object-student' import CourseWithModal from './with-modal' type PropTypes = { className?: string, connectDragSource: () => any, // react-dnd isDragging: ...
JavaScript
0
@@ -225,20 +225,16 @@ ype Prop -Type s = %7B%0A%09c @@ -466,29 +466,17 @@ nent - %7B%0A%09props: PropTypes%0A +%3CProps%3E %7B %0A%09re
df7af3aadc74e453eaccca46855511d2b0506de2
Add skeleton controllers
app/js/controllers.js
app/js/controllers.js
'use strict'; /* Controllers */ angular.module('myApp.controllers', []) .controller('HomeController', [function() { }]) .controller('RecordsController', [function() { }]);
JavaScript
0
@@ -138,14 +138,178 @@ er(' -Record +AlbumsController', %5Bfunction() %7B%0A %7D%5D)%0A .controller('ArtistsController', %5Bfunction() %7B%0A %7D%5D)%0A .controller('SongsController', %5Bfunction() %7B%0A %7D%5D)%0A .controller('Favorite sCon
babac817744f52a1b1fa9c8f318f10c03069a572
add scripts/hatchingLine.js (fix comment)
scripts/hatchingLine.js
scripts/hatchingLine.js
// juzu // for plainCanvas v.1.1.2 or later (function() { paper.setup("canvas"); with(paper){ var tool = new Tool(); var lastPoint; var gr; var opts = { lineWidth : 0.5, hatchWidth : 3, interval : 1, angle_multiplier :...
JavaScript
0
@@ -1,11 +1,19 @@ // -juzu +hatchingLine %0D%0A//
1089be3ed74d800f73f6d151a9d0eb1d4aaddec4
Extend error.js example.
examples/error.js
examples/error.js
phantom.onError2 = function(msg, stack, url, line, column, error) { console.log(msg); console.log(stack); console.log(url); console.log(line); }; function foo() { asdfasdf(); } function bar() { foo(); } bar();
JavaScript
0
@@ -12,9 +12,8 @@ rror -2 = f @@ -143,16 +143,61 @@ (line);%0A + console.log(column);%0A console.log(error);%0A %7D;%0A%0Afunc
26be0969bd27faacae384a112296243c7868c4e6
Modify setting model to include segmented links for microservices
app/models/setting.js
app/models/setting.js
import attr from 'ember-data/attr'; import ModelBase from 'open-event-frontend/models/base'; import { computedSegmentedLink } from 'open-event-frontend/utils/computed-helpers'; export default ModelBase.extend({ /** * Attributes */ appEnvironment : attr('string'), appName : attr('st...
JavaScript
0
@@ -2400,24 +2400,26 @@ SupportUrl + : computedSe @@ -2479,16 +2479,18 @@ bookUrl + : comput @@ -2551,24 +2551,26 @@ TwitterUrl + : computedSe @@ -2626,24 +2626,26 @@ GoogleUrl + : computedSe @@ -2704,16 +2704,18 @@ ubeUrl + + : comput @@ -2775,24 +2775,26 @@ GithubUrl + + : compute...
5555523f103317f141d6e879d5cbe65456f1a3cf
migrate backbone-waffle-spec to es6
test/extensions/backbone/backbone-waffle-spec.js
test/extensions/backbone/backbone-waffle-spec.js
/** * The MIT License (MIT) * * Copyright (c) 2015 Mickael Jeanroy * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to ...
JavaScript
0.000003
@@ -1171,26 +1171,21 @@ affle', -function() +() =%3E %7B%0A%0A it @@ -1222,18 +1222,13 @@ e', -function() +() =%3E %7B%0A @@ -1273,13 +1273,12 @@ ;%0A %7D);%0A -%0A %7D);%0A
627295ad1a9e12d51e3e6a65928f7caa77446a9f
Fix computer-provisions-computer case
shared/login/register/code-page/index.render.desktop.js
shared/login/register/code-page/index.render.desktop.js
// @flow /* * Screen to scan/show qrcode/text code. Goes into various modes with various options depending on if * you're a phone/computer and if you're the existing device or the new device */ import Container from '../../forms/container.desktop' import React, {Component} from 'react' import type {Props} from './i...
JavaScript
0.999189
@@ -3413,32 +3413,57 @@ ext)%7D /%3E%0A + %7Bthis._otherIsPhone() && %3Cp style=%7B%7B...g @@ -3788,32 +3788,42 @@ t%3E%0A %3C/p%3E%0A + %7D%0A %3C/Containe
6aa0812d824f82b2dcd20c44daa18d2242b68805
Modify examples
examples/index.js
examples/index.js
import React from 'react' import ReactDOM from 'react-dom' import UiRadio from '../src/index' const datas = [ { name: '按钮1', value: 's1', }, { name: '按钮2', value: 's2', }, ] class App extends React.Component { constructor(props) { super(props) this.state = { disabled: false, ...
JavaScript
0.000001
@@ -669,16 +669,46 @@ isabled%7D + datas=%7Bdatas%7D defValue=%7B's1'%7D /%3E%0A
23e53a6c9cc0de55f702a34b35e8030457a72804
Add usage to example
examples/index.js
examples/index.js
#! /usr/bin/env node // Ref: http://docopt.org/ /* Chain commands Positional arguments Named arguments Required arguments Limit arguments options Set option type (e.g. string, number) Set number of options (exact, min, & max) Nest commands & arguments Adjust kwarg scope (global / children) (Help and Version classes ...
JavaScript
0.000001
@@ -779,12 +779,49 @@ -null +%7Busage: 'npm command %3Clibrary%3E %5B--flag%5D'%7D ,%0A
10c6adf7399416c383512487d8dd8b1f044a3a16
add schedule
app/routes/auction.js
app/routes/auction.js
var express = require('express'); var router = express.Router(); //var auctionModel = require('../models/auction.js'); var couch = require('../couch.js'); var userModel = require('../models/user.js'); var auctionModel = require('../models/auction.js'); /* Open a page to create a new auction */ router.get('/', function...
JavaScript
0.000002
@@ -245,16 +245,57 @@ on.js'); +%0Avar schedule = require('node-schedule'); %0A%0A/* Ope
6a039cabe95aa52092a52eaa27cb0f1f530b9ad5
change api group party to parties
app/routes/parties.js
app/routes/parties.js
var express = require('express'); var router = express.Router(); var common = require('../common.js'); var ctrlCommon = require('../controllers/common.js'); var Q = require('q'); /** * * @api {get} /parcels/:id/resources Get party resources * @apiName GetPartyResources * @apiGroup Party * * @apiDescription Get a...
JavaScript
0
@@ -284,17 +284,19 @@ oup Part -y +ies %0A *%0A * @
964c4021d389616eeda5e6bfec4375b865d1dec8
test vim
app/scripts/router.js
app/scripts/router.js
'use strict'; angular.module('iconnectApp').config(['$stateProvider', '$urlRouterProvider', '$urlMatcherFactoryProvider', function ($stateProvider, $urlRouterProvider,$urlMatcherFactoryProvider) { $urlMatcherFactoryProvider.caseInsensitive(true); $urlMatcherFactoryProvider.strictMode(false); /* $urlMatche...
JavaScript
0.000003
@@ -300,12 +300,8 @@ ;%0A%0A%0A - /* %0A $ @@ -767,10 +767,8 @@ %7D); -*/ %0A%0A
b9ffd75420ad759f3e17408665449c3987c7929e
optimize app logger file writing
app/service/logger.js
app/service/logger.js
const path = require('path'); const AbstractService = require('../abstract-service'); class Logger extends AbstractService { constructor(config) { super(); this._config = { directory : 'var/logs', levels : { 0 : { name : 'emergency', ...
JavaScript
0.000001
@@ -1547,35 +1547,36 @@ console : -tru +fals e,%0A @@ -3151,309 +3151,56 @@ -let consoleOutput = message + ' ';%0A consoleOutput += '%5B' + moduleString + '%5D ';%0A if(meta.length %3E 0) consoleOutput += '%5B' + meta + '%5D ';%0A consoleOutput += '%5B' + stack + '%5D';%...
d19f321597f972060d8a9f7b0d403dd504f5bad3
stop crons
app/src/cronLoader.js
app/src/cronLoader.js
'use strict'; var co = require('co'); var logger = require('logger'); var moment = require('moment'); var CronJob = require('cron').CronJob; var config = require('config'); var UpdateService = require('services/updateService'); var taskConfig = require('../../config/cron.json'); var SubscriptionEvent = require('mode...
JavaScript
0.000001
@@ -639,16 +639,51 @@ on() %7B%0A + logger.info('Stopped crons');%0A // taskCon @@ -711,18 +711,25 @@ task) %7B%0A -%0A + //%0A // /* TH @@ -751,16 +751,19 @@ EST */%0A + // logge @@ -809,19 +809,30 @@ .name);%0A -%0A%0A + //%0A //%0A // new C @@ -862,24 +862,27 @@ nction() %7B%0A + // ...
9348cb3201ebaae68d15d17a7a871310ee75d337
fix bug where qif option wasn't being read. added padding to right of download url
app/src/pdf-to-csv.js
app/src/pdf-to-csv.js
var pdfToTextArray = require('./pdf-to-text-array'); var TransactionConverter = require('./transaction-converter'); var pdfparser = require('./betterment-pdf-array-parser'); var $ = require('jquery'); var MutationSummary = require('mutation-summary'); /* * ElementLocation */ const ElementLocation = Object.freeze({'...
JavaScript
0
@@ -591,16 +591,17 @@ sion = ' +. csv';%0A @@ -696,16 +696,17 @@ sion = ' +. qif';%0A @@ -2202,29 +2202,30 @@ SV);%0A %7D - else +%0A if (items.q @@ -2301,67 +2301,8 @@ %7D - else %7B%0A throw 'Unrecognized output format';%0A %7D %0A%0A @@ -4708,14 +4708,14 @@ ause - we %0A// +...
adb7f6e6a9a245cd0c4ae08ae2652ec42d4d337e
Fix code style errors
src/scripts/services/analytics.js
src/scripts/services/analytics.js
/* global _ */ /* global _ */ /* global _ */ /* global atatus */ /* jshint unused: vars */ 'use strict'; // Encapsulate analytics logic for the app. module.exports = angular.module('quill-grammar.services.analytics', [ 'angulartics', ]) .factory('AnalyticsService', function ($q, $analytics) { /* * Function to...
JavaScript
0.001384
@@ -235,16 +235,17 @@ cs',%0A%5D)%0A +%0A .factory @@ -914,16 +914,17 @@ %7D;%0A%7D)%0A +%0A .factory @@ -1043,16 +1043,17 @@ nseError + (rejecti @@ -1419,16 +1419,17 @@ %7D;%0A%7D%5D)%0A +%0A .config( @@ -1454,16 +1454,17 @@ function + ($httpPr @@ -1473,18 +1473,16 @@ ider) %7B%0A - $httpP @@ -153...
67832fd7f3dbd79462b0b616f47aef8109c3b67a
update trello oauth
scripts/trello-oauth.js
scripts/trello-oauth.js
module.exports = function(robot) { robot.respond(/trello/i, function(res_r) { var express = require('express'); var http = require('http') var OAuth = require('oauth').OAuth var url = require('url') /* / Express Server Setup */ var app = express(); app.use(express...
JavaScript
0.000001
@@ -425,27 +425,24 @@ /sock');%0A - // var server @@ -493,27 +493,24 @@ ion () %7B%0A - // console.l @@ -542,27 +542,24 @@ ...%F0%9F%8F%83%F0%9F%8F%83');%0A - // console.l @@ -608,27 +608,24 @@ ).port);%0A - // %7D);%0A%0A /*
45cf0b866b717a54e51b91f7819cdde8a365187a
fix alt deserializer
src/serializers/xml/serializer.js
src/serializers/xml/serializer.js
'use strict'; import 'handlebars'; import {equals} from './helpers'; import {InfoboxData} from '../../models/infobox-data'; import {xmlString} from './template'; import {isString} from '../../validators'; window.Handlebars.registerHelper('equals', equals); function createElements(child) { const {nodeName} = child; ...
JavaScript
0.000003
@@ -663,24 +663,92 @@ tor('alt');%0A +%09%09%09const altDefaultTag = altTag && altTag.querySelector('default');%0A %09%09%09const cap @@ -785,24 +785,24 @@ 'caption');%0A - %09%09%09const cap @@ -918,16 +918,33 @@ %0A%09%09%09%09alt +BoundVariableName : altTa @@ -951,24 +951,100 @@ g && altTag. +getAttribute('s...
0950c44b38265991d162df446041b0133c01d479
update trello token
scripts/trello-token.js
scripts/trello-token.js
module.exports = function (robot) { robot.respond(/trello get token/i, function (res_r) { var slackMsgs = require('./slackMsgs.js'); var key = process.env.HUBOT_TRELLO_KEY; let scope = 'read,write,account'; let name = 'Hubot'; let expr = '30days'; let cb_method = ''; let return_url = ''; let url = ...
JavaScript
0
@@ -1262,34 +1262,8 @@ en %0A -%09%09robot.logger.info(res);%0A %09%09// @@ -1358,19 +1358,16 @@ fined%0A%09%09 -// var type @@ -1403,16 +1403,41 @@ r(1);%0A%09%09 +robot.logger.info(type);%0A %0A%09%09res.s @@ -1550,116 +1550,47 @@ ue=%22 -window.location.hash.substr(1)%22 onclick=%22window.location.href='http...
6940d1fb200e866282ba2587c8a6995ff37e5bc8
Enable wait-saving test
tests/integration/components/wait-saving-test.js
tests/integration/components/wait-saving-test.js
import { moduleForComponent, test } from 'ember-qunit'; // import hbs from 'htmlbars-inline-precompile'; import tHelper from "ember-i18n/helper"; moduleForComponent('wait-saving', 'Integration | Component | wait saving', { integration: true, beforeEach: function() { this.container.lookup('service:i18n').set('l...
JavaScript
0.000002
@@ -49,19 +49,16 @@ qunit';%0A -// import h @@ -447,136 +447,197 @@ ;%0A -assert.ok(true);%0A %0A //waiting for resolution of https://github.com/yapplabs/ember-modal-dialog/issues/78%0A // this.render(hbs%60 +let modalDialogService = this.container.lookup('service:modal-dialog');%0A modalDialogService.destina...
df4235d1c5cf5d8b73375424592a90c31eb38dcf
Increase scanner status throttling
server/Prefs/Scanner.js
server/Prefs/Scanner.js
const throttle = require('@jcoreio/async-throttle') const Library = require('../Library') const { LIBRARY_PUSH, SCANNER_WORKER_STATUS, } = require('../../constants/actions') class Scanner { constructor () { this.isCanceling = false this.emitLibrary = this.getMediaEmitter() this.emitStatus = this.get...
JavaScript
0
@@ -733,9 +733,10 @@ %7D, -5 +10 00)%0A @@ -904,9 +904,9 @@ %7D, -2 +5 000)
3413af498934a8cd5d901a6c4dcbeb812a4bb392
Change useBuiltIns to uglify and let it be configured by the developer
packages/babel-preset-jolt/src/getPreset.js
packages/babel-preset-jolt/src/getPreset.js
// Modules const resolveDependencies = require('./resolveDependencies'); const getEnv = ({target, uglify}) => { switch (target) { case 'node': return [['env', {targets: {node: 4}, useBuiltIns: true}]]; case 'web': return [['env', {targets: {browsers: ['last 2 versions', 'safari >= 7'], uglify}}]...
JavaScript
0
@@ -192,24 +192,13 @@ %7D, u -seBuiltIns: true +glify %7D%5D%5D;
44ba8d10c1dcdaee99327446b6a915f225ed9ef0
add dependency back to complaint tool helper (#8152)
src/applications/edu-benefits/complaint-tool/helpers.js
src/applications/edu-benefits/complaint-tool/helpers.js
import { apiRequest } from '../../../platform/utilities/api'; import appendQuery from 'append-query'; import { transformForSubmit } from 'us-forms-system/lib/js/helpers'; import Raven from 'raven-js'; import recordEvent from '../../../platform/monitoring/record-event'; import conditionalStorage from '../../../platform/...
JavaScript
0
@@ -55,16 +55,83 @@ s/api';%0A +import environment from '../../../platform/utilities/environment';%0A import a
7d4f5ce1760419bbb6f13dfbecdd4ab6aeb2488f
update semver sorting logic
packages/build-tools/utils/bolt-versions.js
packages/build-tools/utils/bolt-versions.js
#!/usr/bin/env node const url = require('url'); const querystring = require('querystring'); const { promisify } = require('util'); const gitSemverTags = require('git-semver-tags'); const promisifyGitTags = promisify(gitSemverTags); const fs = require('fs'); const urlExists = require('url-exists'); const path = require(...
JavaScript
0
@@ -247,24 +247,58 @@ uire('fs');%0A +const semver = require('semver');%0A const urlExi @@ -549,19 +549,16 @@ Data;%0A%0A - // version @@ -590,65 +590,39 @@ %7B%0A -// if (a.label %3C b.label) return -1;%0A // if + return semver.compare (a.label %3E b @@ -621,10 +621,9 @@ abel - %3E +, b.l @@ -631...
51b9041d1f5977f22ee23c7e68bcd6b12999c2c4
add chakra-ui (#28013)
packages/gatsby-recipes/src/recipes-list.js
packages/gatsby-recipes/src/recipes-list.js
export default [ { label: `Add a custom ESLint config`, value: `eslint`, }, { label: `Add Jest`, value: `jest`, }, { label: `Add Gatsby Image`, value: `gatsby-image`, }, // Waiting on joi2graphql support for Joi.object().unknown() // with a JSON type. // { // label: "Automati...
JavaScript
0
@@ -804,32 +804,93 @@ e-ui%60,%0A %7D,%0A %7B%0A + label: %60Add Chakra UI%60,%0A value: %60chakra-ui%60,%0A %7D,%0A %7B%0A label: %60Add
2de2f2da47298c13e2f6e231907cb5a295463bd4
Add support for AWS cross-account access patterrn
packages/nexrender-provider-s3/src/index.js
packages/nexrender-provider-s3/src/index.js
const fs = require('fs') const uri = require('amazon-s3-uri') const AWS = require('aws-sdk/global') const S3 = require('aws-sdk/clients/s3') let regions = {} let endpoints = {} /* return a credentials object if possible, otherwise return false */ const getCredentials = params => { if (params && params.profile) {...
JavaScript
0
@@ -611,16 +611,205 @@ ssKey %7D%0A + // Cross-account role access pattern%0A %7D else if (params && params.RoleArn && params.RoleSessionName) %7B%0A return new AWS.ChainableTemporaryCredentials(%7B params: %7B ...params %7D%7D)%0A %7D el
f9a221490bc59c4e8e5618e5afb7f9a070d0d840
fix import
src/components/Dialogs/LoginDialog/ResetPasswordForm.js
src/components/Dialogs/LoginDialog/ResetPasswordForm.js
import React from 'react'; import EmailIcon from 'material-ui/lib/svg-icons/communication/email'; import Loader from '../../Loader'; import Form from '../../Form'; import FormGroup from '../../Form/Group'; import TextField from '../../Form/TextField'; import Button from '../../Form/Button'; export default class ResetP...
JavaScript
0.000001
@@ -59,12 +59,8 @@ -ui/ -lib/ svg-
8459adb18de61a8dd5c4ceb72a3cdea2100864da
Use the state variable for the password when deactivating
src/components/views/dialogs/DeactivateAccountDialog.js
src/components/views/dialogs/DeactivateAccountDialog.js
/* Copyright 2016 OpenMarket Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
JavaScript
0.000015
@@ -2062,33 +2062,38 @@ sword: this. -_ +state. password Field.value, @@ -2084,19 +2084,8 @@ word -Field.value ,%0A @@ -2343,16 +2343,17 @@ tatus == += 401 %7C%7C @@ -2369,16 +2369,17 @@ tatus == += 403) %7B%0A
8fa1e3cfe6c22a4482bdc2564bb4304bcaa1b300
Fix docstring of spaceCamelCase function
src/ggrc/assets/javascripts/plugins/canjs_extensions.js
src/ggrc/assets/javascripts/plugins/canjs_extensions.js
/*! Copyright (C) 2016 Google Inc. Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> */ (function ($, can) { // a few core CanJS extensions below. // Core validation for fields not being "blank", i.e. // having no content when outside spaces are trimmed away. can.Model.validat...
JavaScript
0.012508
@@ -2920,20 +2920,33 @@ rn camel -Spac +Case or snake-cas e string
7c9f91a009f42b0470edf211f6274d7c5849c00d
Update treeview.js
src/main/resources/public/js/highlight-treeview.pack.js
src/main/resources/public/js/highlight-treeview.pack.js
/** * Treeview syntax highlighting based on highlight.js * Copyright (c) 2014-2015, Asciidocfx Team, (MIT Licensed) * https://github.com/asciidocfx/highlight-treeview.js */ hljs.registerLanguage('treeview',function(e){return{c:[{cN:'folder-last-branch win',b:/(\\|\└)(\-|\─){3}/,r:0},{cN:'folder-last-branch',b:/(\`|...
JavaScript
0.000001
@@ -500,12 +500,12 @@ le p -hoto +lain ',b: @@ -524,116 +524,30 @@ +%5C.( -bmp%7Ceps%7Cgif%7Cjpg%7Cjpe(g)?%7Cpng%7Csvg%7Ctif(f)?%7Cico%7Ctga%7Ctarga%7Cj2(k%7Cc)%7Cjng)/,r:0%7D,%7BcN:'file plain',b:/%5B%5E %5Cn%5Ct%C2%A0%C2%A0%5D.+%5C.( +epub(3)?%7Cmobi%7Cazw(3)?%7C cfg%7C @@ -578,16 +578,25 @@ %7Clog%7Cmd%7C +mark...
1fd2fbbc6a39d79d4662dcf7083a961877527a42
Handle the double event change for tracks. Fixes #2604
src/renderer/windows/GPMWebView/interface/pauseAfter.js
src/renderer/windows/GPMWebView/interface/pauseAfter.js
let pauseAfter = false; window.wait(() => { GPM.on('change:track', () => { if (pauseAfter) { GPM.playback.playPause(); Emitter.fireAtGoogle('pauseAfter:hide', null); } }); }); Emitter.on('pauseAfter:show', () => { if (!pauseAfter) { window.showToast(TranslationProvider.query('message-pau...
JavaScript
0.000001
@@ -1,8 +1,76 @@ +const DONT_PAUSE = 0;%0Aconst PAUSE_NEXT = 1;%0Aconst PAUSE_AFTER = 2;%0A%0A let paus @@ -78,21 +78,26 @@ After = -false +DONT_PAUSE ;%0A%0Awindo @@ -154,32 +154,47 @@ if (pauseAfter + === PAUSE_NEXT ) %7B%0A GPM.pl @@ -272,16 +272,91 @@ ;%0A %7D%0A + if (pauseAfter === PAUSE_AFTER...
a6e0e915f2c9cbdb93cc4811fe42d426bab9ebe0
Fix GraphQL queries with no nesting
src/rpc/handlers/graphql/handler/definition/populate.js
src/rpc/handlers/graphql/handler/definition/populate.js
'use strict'; const { uniq } = require('../../../../../utilities'); // Retrieve `rpcDef.args.populate` using GraphQL selection sets const addPopulate = function ({ args, args: { select }, commandName }) { if (!commandName.startsWith('find_')) { return args; } const selects = select .split(',') .map(selec...
JavaScript
0.017636
@@ -436,16 +436,64 @@ lects);%0A +%0A if (selectsA.length === 0) %7B return args; %7D%0A%0A const
323da1297404a0fef1637dd6d262ecaab3147307
Update map.js
about/traveling/map.js
about/traveling/map.js
'use strict'; var w = window.innerWidth; var h = window.innerHeight; //var mapUrl = 'https://gist.githubusercontent.com/thepeted/60242378d8c825281ea695c572ab4d51/raw/00685152c5cb34093aabc22b2c06e3df052cc981/world110m.json'; //var dataUrl = 'https://raw.githubusercontent.com/FreeCodeCamp/ProjectReferenceData/master/me...
JavaScript
0.000001
@@ -1660,17 +1660,17 @@ onent(0. -4 +8 ).domain @@ -1765,10 +1765,10 @@ %5B2, -12 +30 %5D);%0A
1f063f17e047020c8531c82232165209558c6394
Use https
jobs/facebook-etl.js
jobs/facebook-etl.js
const Event = require('../models/osdi/event'); const Facebook = require('../lib/facebook'); const cloudinary = require('cloudinary'); const config = require('../config'); const http = require('http'); const url = require('url'); const async = require('async'); require('../lib/database'); // Has side effect of connecti...
JavaScript
0
@@ -329,16 +329,68 @@ tabase%0A%0A +const CLOUDINARY_URL_OPTIONS = %7B%0A secure: true%0A%7D;%0A%0A module.e @@ -3214,16 +3214,40 @@ dinaryId +, CLOUDINARY_URL_OPTIONS );%0A c
7162ad58222c3918e6db8df3ffccbf3acb131033
Add support for older Browsers
jquery.cssanimate.js
jquery.cssanimate.js
/*! Copyright (c) 2012 Nicholas White (http://www.nickandjerry.com/) * Licensed under the MIT License (see LICENSE). If the LICENSE was not * included along with this source code, it can be obtained via: * http://www.opensource.org/licenses/mit-license.php * * Version: 1.0.0 * * Requires: 1.4.3+ (might work for ...
JavaScript
0
@@ -4113,24 +4113,219 @@ s_params);%0A%0A + // support for older Browsers%0A if (!Date.now()) %7B%0A Date.now = function () %7B%0A return new Date().valueOf();%0A %7D%0A %7D%0A @@ -4333,32 +4333,37 @@ ar start_time = +Dat...
6b0888c6c4ed7e67405ff033a6732d8d187fa3fb
Handle empty cookies and return values on set.
jquery.jsoncookie.js
jquery.jsoncookie.js
/*! * jQuery JSON Cookie * * Version: @VERSION * Released: @DATE * Source: http://github.com/appendto/jquery-jsoncookie * * Copyright 2010 appendTo LLC. (http://appendto.com/team) * Dual licensed under the MIT or GPL licenses. * http://appendto.com/open-source-licenses */ (function( $ ) { var encode = enco...
JavaScript
0
@@ -533,16 +533,24 @@ %09%09result + = value ;%0A%0A%09// g @@ -659,16 +659,53 @@ kie ) %7B%0A +%09%09%09if ( !cookie ) %7B%0A%09%09%09%09return;%0A%09%09%09%7D%0A %09%09%09var p @@ -1488,16 +1488,33 @@ %22%22 );%0A%09%7D +%0A%0A%09return result; %0A%7D;%0A%0A//
b5e4e2c32fa63c662a5c020c4a2d2957b99c08bb
country codes as array
backend/twitta.js
backend/twitta.js
//IMPORTS var Twit = require("twit"); var timer = require("timer"); var mongodb = require("mongodb"); var Geode =require('geode'); var conf = require('./config'); var util = require('util') var io = require('socket.io').listen(conf.sockets.port-1); // temp for test module.exports = function(con, bd, twit) { // Tw...
JavaScript
0.999971
@@ -1986,24 +1986,95 @@ keywords) %7B%0A + // For every keyword return a string paired with city name%0A @@ -2122,16 +2122,41 @@ tryCode%5D +.map(function(a)%7Breturn a +%22 %22+cit @@ -2152,24 +2152,26 @@ n a+%22 %22+city +%7D) ;%0A %7D
08c86702b098d20d128f2c5129b72e50a9e58be8
Add JWT to views and watches index route
api/index.js
api/index.js
'use strict'; const Router = require('koa-router'); const api = module.exports = new Router({prefix: '/api'}); const config = require('config').get('jwt'); const ctrl = require('./controllers'); // middleware const Body = require('koa-body'); const body = Body(); const multi = Body({ multipart: true, formidable: ...
JavaScript
0
@@ -3385,16 +3385,48 @@ /views', + jwt, roles.can('edit content'), ctrl.vi @@ -3455,16 +3455,48 @@ atches', + jwt, roles.can('edit content'), ctrl.wa
ea4b864283eae1e9a5a4fc17251c174ff16b1da1
Add tests to parse selector
test/h.js
test/h.js
"use strict"; /** * Copyright (c) 2016 Nikolai Mavrenkov <koluch@koluch.ru> * * Distributed under the MIT License (See accompanying file LICENSE or copy at http://opensource.org/licenses/MIT). * * Created: 06.03.2016 15:36 */ let assert = require('chai').assert; let markup = require('../lib/index') let h = marku...
JavaScript
0.000001
@@ -1039,32 +1039,1623 @@ );%0A %7D);%0A%0A + it('should properly parse id selector', () =%3E %7B%0A assert.equal(%0A byRender(%0A h(%22div#container%22)%0A ),%0A byText(%0A '%3Cdiv id=%22container%22%3E%3C/div%...
8555cabca3aed93a9d923c79fe258c32e233190c
Remove the gray background from the image in article previews
js/ArticlePreview.js
js/ArticlePreview.js
/*$ * Author: Arthur Thornton * License: MIT Open Source * Source copyright Arthur Thornton */ /********************************* * WOR.ArticlePreview kind based * * off of the Control kind * *********************************/ enyo.kind({ kind: enyo.Control, name: "WOR.ArticlePreview", /* use a Horizont...
JavaScript
0.000003
@@ -1870,26 +1870,8 @@ 000; - background: #eee; wid
60559e8bf445e8b358266b582ab1b2405cbf37ef
test value updates
test/transactions_create_void_adjust.spec.js
test/transactions_create_void_adjust.spec.js
/** * Created by brian.hunter on 4/11/17. * Jest test file for testing creation, adjustment, and voiding of a transaction in the REST API */ /*Import sample data and expected responses*/ import Avatax from '../lib/AvaTaxClient'; import loadCreds from './helpers/load_creds'; import nock from 'nock'; import transacti...
JavaScript
0.000001
@@ -1278,32 +1278,96 @@ ned();%0A + // TODO: set travis-ci avatax account nexus config%0A // expect(res.tota @@ -2225,32 +2225,98 @@ d();%0A + // TODO: set travis-ci avatax account nexus config%0A // expect(res.tota @@ -2456,32 +2456,98 @@ d();%0A + // TODO: set...
67f7fedca7285fdcff12b370db673183fea06ff7
Add permission icon
js/admin/src/main.js
js/admin/src/main.js
import { extend } from 'flarum/extend'; import app from 'flarum/app'; import PermissionGrid from 'flarum/components/PermissionGrid'; app.initializers.add('likes', () => { extend(PermissionGrid.prototype, 'replyItems', items => { items.add('likePosts', { label: 'Like posts', permission: 'discussion.li...
JavaScript
0
@@ -254,16 +254,43 @@ sts', %7B%0A + icon: 'thumbs-o-up',%0A la
06e461b51c4f3b36d8ffbeb3c65f806c92600754
Fixed up whitespace
intermine/webapp/main/resources/webapp/js/historyBagView.js
intermine/webapp/main/resources/webapp/js/historyBagView.js
function filterByTag(tag) { filterTableName = 'bagTable'; if (tag != '') { var callBack = filterTable; AjaxServices.filterByTag("bag", tag, callBack); } else { showAllTable(filterTableName); } } function showAllTable(tableName) { var els = getTableRows(tableName); for (var i = 0; i < els.length; i++) { s...
JavaScript
0.999971
@@ -21,17 +21,20 @@ (tag) %7B%0A -%09 + filterTa @@ -55,17 +55,20 @@ Table';%0A -%09 + if (tag @@ -76,18 +76,24 @@ = '') %7B%0A -%09%09 + var call @@ -112,18 +112,24 @@ rTable;%0A -%09%09 + AjaxServ @@ -168,17 +168,20 @@ lBack);%0A -%09 + %7D else %7B @@ -181,18 +181,24 @@ else ...
06cda6bced68a9a2d6b55d6dd3607b7aea148b4f
Add no sandbox
testem.js
testem.js
module.exports = { test_page: 'tests/index.html?hidepassed', disable_watching: true, launch_in_ci: [ 'Chrome' ], launch_in_dev: [ 'Chrome' ], browser_args: { Chrome: { mode: 'ci', args: [ '--disable-gpu', '--headless', '--remote-debugging-port=0', '-...
JavaScript
0.000008
@@ -215,24 +215,150 @@ args: %5B%0A + // --no-sandbox is needed when running Chrome inside a container%0A process.env.TRAVIS ? '--no-sandbox' : null,%0A%0A '--d @@ -370,16 +370,16 @@ e-gpu',%0A - @@ -469,16 +469,32 @@ %0A %5D +.filter(Boolean) %0A %7D%0A @@ -500,7 +500,...
ae8dd311af9c2a8f76500e77ad1f419ac618b004
Fix testem to use Chrome headless exclusive. Should fix all builds.
testem.js
testem.js
/* eslint-env node */ module.exports = { test_page: 'tests/index.html?hidepassed', disable_watching: true, launch_in_ci: [ 'PhantomJS' ], launch_in_dev: [ 'PhantomJS', 'Chrome' ] };
JavaScript
0
@@ -127,25 +127,22 @@ %5B%0A ' -PhantomJS +Chrome '%0A %5D,%0A @@ -168,36 +168,174 @@ ' -PhantomJS',%0A ' +Chrome'%0A %5D,%0A browser_args: %7B%0A Chrome -'%0A %5D +: %5B%0A '--headless',%0A '--window-size=1440,900',%0A '--disable-gpu',%0A '--remote-debugging-port=9222'%0A ...
f9d6866d1d40a040972dabe80e7b055856286b0c
remove Fraction.fraction, replace with 'new Fraction', phetsims/phetcommon#19
js/model/Fraction.js
js/model/Fraction.js
// Copyright 2002-2014, University of Colorado Boulder /** * Data structure for a fraction (possibly improper). * * NOTE: The common version of this class in the PhET Java code base has a number of additional methods. These methods * should be ported into this file as needed. Please see edu.colorado.phet.fractio...
JavaScript
0.9986
@@ -1771,171 +1771,8 @@ %7D%0A - %7D,%0A%0A // Static values and methods%0A %7B%0A fraction: function( numerator, denominator ) %7B%0A return new Fraction( numerator, denominator );%0A %7D%0A
1ae827d8a4368af2e2cc004b1cba7081816bd7bc
Revert to default transition next frame instead of anim duration.
shared/page/PageLayout.js
shared/page/PageLayout.js
var React = require("react"); var ReactCSSTransitionGroup = require("react-addons-css-transition-group"); var Navigation = require("../component/Navigation"); var defaultState = { transitionName: "in-from-right", transitionDuration: 1000, }; class PageLayout extends React.Component { constructor (props) { ...
JavaScript
0
@@ -1139,17 +1139,24 @@ ult -when done +for next request %0A @@ -1254,37 +1254,9 @@ %7D, -this.state.transitionDuration +0 );%0A
6d8923cff18458061d172ab47991898dda62de87
improved formatting of the string of 24hrs time
js/models/bedtime.js
js/models/bedtime.js
TrueColours.Models = TrueColours.Models || {}; (function (ns) { 'use strict'; var BedTime = ns.BedTime = function (hours, minutes) { this.hours = hours || 0; this.minutes = minutes || 0; }; _.extend(BedTime.prototype, { getTime: function () { return this.minutes + ...
JavaScript
0.999805
@@ -295,46 +295,291 @@ -return this.minutes + ': +var hrs = this.hours.toString();%0A var min = this.minutes.toString();%0A%0A if (this.hours %3C 10) %7B%0A hrs = '0 ' + -this.hours +hrs;%0A %7D%0A%0A if (this.minutes %3C 10) %7B%0A min =...
2d4e73fdac08ea2585029526e4d842f2d2d19474
Update testip.js to recent changes
testip.js
testip.js
var qrcode = require('qrcode-terminal'); var request = require('request'); var jwt = require("jsonwebtoken"); var fs = require('fs'); var iprequest = { data: "foobar", timeout: 60, request: { "credentials": [ { "credential": "MijnOverheid.ageLower", "vali...
JavaScript
0
@@ -1479,11 +1479,8 @@ + %22/ -get stat @@ -1594,16 +1594,17 @@ body == +' %22INITIAL @@ -1608,16 +1608,17 @@ IALIZED%22 +' %7C%7C body @@ -1621,16 +1621,17 @@ body == +' %22CONNECT @@ -1633,16 +1633,17 @@ NNECTED%22 +' )%0A
21725dcf2c42952523c675f4ee9720e2c6927e7a
Use inline form vs block expression.
tests/integration/components/sl-span-test.js
tests/integration/components/sl-span-test.js
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent( 'sl-span', 'Integration | Component | sl span', { integration: true }); test( '"value" property is supported', function( assert ) { this.render( hbs` {{#sl-span value="Test content...
JavaScript
0
@@ -277,33 +277,32 @@ hbs%60%0A %7B%7B -# sl-span value=%22T @@ -316,37 +316,16 @@ tent%22%7D%7D%0A - %7B%7B/sl-span%7D%7D%0A %60 ); @@ -561,30 +561,8 @@ %7B%7B -#sl-span%7D%7D%0A %7B%7B/ sl-s @@ -761,33 +761,32 @@ hbs%60%0A %7B%7B -# sl-span loading= @@ -792,37 +792,16 @@ =...
19a525df220293555929b84a217fa0a9cd20d097
Add failing Chai helpers
goal.js
goal.js
// Start with a webdriver instance: var sw = require('selenium-webdriver'); var driver = new sw.Builder() .withCapabilities(sw.Capabilities.firefox()) .build() // And then... var chai = require('chai'); var chaiWebdriver = require('chai-webdriver'); chai.use(chaiWebdriver(driver)); // And you're good to go! ...
JavaScript
0.000015
@@ -283,16 +283,852 @@ river)); +%0A%0Asizzle = require('webdriver-sizzle')%0Avar $ = sizzle(driver, sw);%0A%0Achai.use(function (chai, utils) %7B%0A chai.Assertion.addMethod('leftAligned', function(done) %7B%0A var self = this;%0A if (!utils.flag(this, 'dom')) %7B%0A throw new Error('Can only test alignme...
d8887340b517d7996be04e6d1613d4728779dba5
Add x of y for pod container display
pkg/kubernetes/app.js
pkg/kubernetes/app.js
define([ "jquery", "kubernetes/angular", "kubernetes/client" ], function($, angular, kubernetes) { 'use strict'; function KubernetesService(client) { var self = this; var version; var service = { }; var calculated = { }; function calculate() { i...
JavaScript
0
@@ -281,419 +281,2001 @@ -function calculate() %7B%0A if (version !== client.resourceVersion) %7B%0A version = client.resourceVersion;%0A%0A calculated.containers = %220%22;%0A%0A if (service.spec && service.spec.selector) %7B%0A var pods ...
75815dacfeb05b5b4a7d9dbb6ec05bf470e15dfa
fix fetching transactions for user
src/services/graphql/resolvers.js
src/services/graphql/resolvers.js
const request = require('request-promise') module.exports = function Resolvers () { let app = this let Transactions = () => app.service('transaction') let Users = () => app.service('users') let Viewer = () => app.service('viewer') const localRequest = request.defaults({ baseUrl: `http://${app.get('host...
JavaScript
0.000003
@@ -528,24 +528,61 @@ %0A %7D)%0A + .then(result =%3E result.data)%0A %7D%0A
c6c20e2d6f22b42c6b723f7894357436c1b04243
add optional message to start, verbose mode to setdropdown
tests/nightwatch/modules/common-functions.js
tests/nightwatch/modules/common-functions.js
'use strict'; var util = require('util'); var ABOUT_YOU_QUESTIONS = require('../modules/constants').ABOUT_YOU_QUESTIONS; var SAVINGS_QUESTIONS = require('../modules/constants').SAVINGS_QUESTIONS; SAVINGS_QUESTIONS.ALL = SAVINGS_QUESTIONS.MONEY.concat(SAVINGS_QUESTIONS.VALUABLES); module.exports = { // skip start pa...
JavaScript
0
@@ -336,32 +336,37 @@ function(client +, msg ) %7B%0A client%0A @@ -490,16 +490,108 @@ a#start' +, function() %7B%0A if(msg) %7B%0A console.log('%5Cn' + msg + '%5Cn');%0A %7D%0A %7D )%0A ;%0A @@ -3185,16 +3185,25 @@ e, value +, verbose ) %7B%0A @@ -3429,16 +3429,153 @@ ys....
20c3b706ad5520f198391a4bbcfc66327265c973
use const keyword
benchmark/index.js
benchmark/index.js
var benchmarked, format, pad, chalk, bold, dim, grey, ask benchmarked = require('benchmarked') format = require('comma-number') pad = require('pad') chalk = require('chalk') bold = chalk.bold dim = chalk.dim grey = chalk.grey ask = require('readline').createInterface({ input : process.stdin,...
JavaScript
0.000001
@@ -1,63 +1,11 @@ -var benchmarked, format, pad, chalk, bold, dim, grey, ask%0A%0A +%0Aconst benc @@ -37,16 +37,22 @@ arked')%0A +const format @@ -81,16 +81,22 @@ umber')%0A +const pad @@ -116,16 +116,22 @@ ('pad')%0A +const chalk @@ -154,16 +154,22 @@ halk')%0A%0A +const bold = @@ -179,16 +17...
fb0a9fec003e7e400a2e066f402b40286fcbe83e
add the game lead
data/connectors.js
data/connectors.js
import Sequelize from 'sequelize'; import casual from 'casual'; import _ from 'lodash'; import rp from 'request-promise'; import bridge from 'bridge.js'; const db = new Sequelize('blog', null, null, { dialect: 'sqlite', storage: './blog.sqlite', }); const ClubModel = db.define('club', { name: { type: Sequelize....
JavaScript
0.000002
@@ -5062,16 +5062,46 @@ de: -1,%0A + lead: 'SK',%0A @@ -5395,16 +5395,45 @@ de: -2,%0A + lead: 'D8'%0A
318b661af615eb689f6a758f0174621718457c39
Fix sitemap error
internal/common/sitemap/generate.js
internal/common/sitemap/generate.js
// Generate sitemap // 'use strict'; const _ = require('lodash'); const eos = require('end-of-stream'); const pump = require('pump'); const pumpify = require('pumpify'); const through2 = require('through2'); const zlib = require('zlib'); // limit urls per sitemap file, sitemap specification sets ...
JavaScript
0.000049
@@ -114,42 +114,8 @@ ');%0A -const pump = require('pump');%0A cons @@ -4427,13 +4427,8 @@ -pump( stre @@ -4441,18 +4441,45 @@ o.stream -, +.pipe(out_stream);%0A eos( out_stre
8ddbfdccdea665df56274abaf550021f42bbdec9
Fix stringification
addon/lib/validator.js
addon/lib/validator.js
import Ember from 'ember'; var get = Ember.get; var set = Ember.set; var fmt = Ember.String.fmt; export default Ember.Object.extend({ options: null, errors: null, errorMessages: { main: 'Base validator cannot be used.' }, call: function() { this.clearErrors(); this.addError(); return fal...
JavaScript
0.999713
@@ -810,24 +810,153 @@ on(value) %7B%0A + if(value && typeof value !== %22string%22 && value.toString instanceof Function) %7B%0A return value.toString();%0A %7D else %7B%0A var stri @@ -985,24 +985,26 @@ fy(value);%0A%0A + return s @@ -1057,16 +1057,23 @@ gified;%0A + %7D%0A%0A %7D%0A...
dbd07cb5dfac4c50ec9b95f2014cc11e6ad74df6
Modify sample module for the unit test
js/sandbox/circle.js
js/sandbox/circle.js
'use strict'; module.exports = (function() { var PI = Math.PI; let area = function(r) { return PI * r * r; }; let circumference = function(r) { return 2 * PI * r; }; }());
JavaScript
0
@@ -180,14 +180,79 @@ ;%0A %7D;%0A%0A + return %7B%0A area: area,%0A circumference: circumference%0A %7D;%0A %7D());%0A
250f5784e9e071aa39903006da92ea5ec90175f3
fix DataTable.js
src/components/DataTable/DataTable.js
src/components/DataTable/DataTable.js
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'dva' import { Table } from 'antd' import classnames from 'classnames' import TableBodyWrapper from './TableBodyWrapper' function DataTable ({ dispatch, location, className, pagination, onPageChange, animate, ...props }) { const get...
JavaScript
0.000004
@@ -5,16 +5,31 @@ rt React +, %7B Component %7D from 'r @@ -215,24 +215,21 @@ apper'%0A%0A -function +class DataTab @@ -235,306 +235,563 @@ ble -(%7B dispatch, location, className, pagination, onPageChange, animate, ...props %7D) %7B%0A const getBodyWrapperProps = %7B%0A page: location.query.current %7C%7C ...
bb7bbf210afe85a77fd6abbb14eb978ec2582b0c
Remove space
src/components/Layout/Header/index.js
src/components/Layout/Header/index.js
import React from "react"; import {IndexLink, Link} from 'react-router'; export default class Header extends React.Component { render() { return ( <div className="ui text container" style={{ marginTop: '50px' }}> <h1 className="ui dividing header">Redux universal boilerplate</h1> <div cla...
JavaScript
0.030089
@@ -147,17 +147,16 @@ eturn (%0A -%0A %3Cd
cec1f5165192c3cb36f0e9cddfc2e35ae01e5cd4
update "new tribe" text to "new circle" (#1615)
modules/tribes/client/components/Tribe.js
modules/tribes/client/components/Tribe.js
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { useTranslation } from 'react-i18next'; import styled from 'styled-components'; import JoinButton from './JoinButton'; import getTribeBackgroundStyle from './helpers/getTribeBackgroundStyle'; const Container =...
JavaScript
0
@@ -1195,20 +1195,21 @@ %7Bt('New -trib +circl e!')%7D%3C/s
08bbf3f29e2740dcd2a1335dce8bbed031fa50ce
Test the value passed to the growl manager component
tests/unit/components/growl-instance-test.js
tests/unit/components/growl-instance-test.js
import Ember from 'ember'; import { test, moduleForComponent } from 'ember-qunit'; var testNotification = {options: {type: 'error', twitch: true}}; moduleForComponent('growl-instance', 'Growl Instance'); test('assert that the element class exists', function() { expect(1); ok(this.subject().classNames.index...
JavaScript
0
@@ -728,9 +728,9 @@ ect( -2 +3 );%0A%0A @@ -761,16 +761,65 @@ ject();%0A + subject.set('notification', testNotification);%0A subjec @@ -912,24 +912,111 @@ s called');%0A + equal(value, testNotification, 'The notification is passed to the parent action');%0A %7D;%0A%0A subj
476e9f02347ea6bc53ddf08ab4994c7bbd7d9c73
Update baseview.js
js/views/baseview.js
js/views/baseview.js
define(['jquery', 'underscore', 'backbone', 'globals/utils', 'globals/eventbus', 'jquery.autosize', 'bootstrap', 'bootstrap.mods', 'bootbox'], function($, _, Backbone, Utils, EventBus) { "use strict"; console.log("BaseView."); var BaseView = Backbone.View.extend({ utils: Utils, options: {...
JavaScript
0.000001
@@ -137,18 +137,16 @@ box'%5D, %0A - function
14be31fed4917aebb8fccc613e0ea0a46d592e0d
Validate with all fields required
src/components/forms/groups/Create.js
src/components/forms/groups/Create.js
import React, { Component, PropTypes } from 'react'; import { compose } from 'redux'; import { connect } from 'react-redux'; import { reduxForm, Field, stopSubmit } from 'redux-form'; import styles from './styles/index.scss'; import Button from 'components/Button'; const CREATE_GROUP_FORM = 'createGroup'; const rend...
JavaScript
0.000002
@@ -624,24 +624,30 @@ const render +Select Field = (%7B i @@ -1306,555 +1306,576 @@ ;%0A%0Ac -lass CreateGroupForm extends Component %7B%0A static propTypes = %7B%0A handleSubmit: PropTypes.func.isRequired,%0A stopSubmit: PropTypes.func.isRequired,%0A errors: PropTypes.object,%0A submitting: PropTypes.b...
abc456e50828c0b8be59ff8e8a62118d6b626fed
fix storybook theme for managed tree (#3739)
src/components/stories/ManagedTree.js
src/components/stories/ManagedTree.js
import React, { DOM as dom } from "react"; import { storiesOf } from "@storybook/react"; import _ManagedTree from "../shared/ManagedTree"; const ManagedTree = React.createFactory(_ManagedTree); import { L10N } from "devtools-launchpad"; import prefs from "../../utils/prefs"; import "../App.css"; import "devtools-launc...
JavaScript
0
@@ -312,25 +312,19 @@ ols- -launchpad/src/lib +modules/src /the
474889dfacfe404e1444392449fc4697fb348d7a
remove sounds from build includes
game.profile.js
game.profile.js
var profile = (function(){ 'use strict'; var miniExcludes = { }; return { releaseDir: "libs", action: "release", layerOptimize: "closure", mini: true, selectorEngine: "acme", dojoBootText: "(function(){ require({cache:{}}); require.boot && require.apply(null, require.boot); })();", ...
JavaScript
0
@@ -1628,188 +1628,8 @@ ame' -,%0A // Sounds are loaded dynamically, so include them in build - remove these if no sounds are used%0A 'frozen/sounds/WebAudio',%0A 'frozen/sounds/HTML5Audio' %0A
607c758ef24fc0ef449c10d26237dcc25ccb1747
Allow nodejs backend to mostly delete projects (doesn't delete highest-level dir yet). Does not complete #30
jsServer/tilemill.js
jsServer/tilemill.js
var express = require('express'), fs = require('fs'), path = require('path'), wrench = require('wrench'), _ = require('./underscore')._; var app = module.exports = express.createServer(); app.use(express.bodyDecoder()); var files = '/Users/tmcw/Code/js/TileMill/project/'; // TODO: put in config func...
JavaScript
0
@@ -1437,24 +1437,442 @@ %0A %7D);%0A%7D);%0A%0A +var rmRf = function(dir, callback) %7B%0A fs.readdir(dir, function(err, files) %7B%0A files.forEach(function(file) %7B%0A fs.stat(path.join(dir, file), function(err, stats) %7B%0A if (stats.isDirectory()) %7B%0A rmRf(file);...
33c3492eced6f940f3be66bf84f1176f514ea0b7
remove debug code.
website-guts/assets/js/om/utils/oform-globals.js
website-guts/assets/js/om/utils/oform-globals.js
w.optly.mrkt.Oform = {}; w.optly.mrkt.Oform.before = function(){ $('body').addClass('oform-processing'); return true; }; w.optly.mrkt.Oform.validationError = function(element){ w.optly.mrkt.formHadError = true; var elementValue = $(element).val(); var elementHasValue = elementValue ? 'has value' : 'no...
JavaScript
0.000007
@@ -2040,63 +2040,8 @@ %7D;%0A%0A - console.log('reporting object: ', reportingObject);%0A%0A $. @@ -2411,66 +2411,8 @@ );%0A%0A - console.log('sourceCookie', $.cookie('sourceCookie'));%0A%0A fo @@ -2522,60 +2522,8 @@ %7D%0A%0A - console.log('reportingObject', reportingObject);%0A%0A w.
9954fa5089a49cb8d4a597fc40e40535d0284c62
Check whether topChannel is destroyed too
client.js
client.js
// Copyright (c) 2015 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
JavaScript
0
@@ -1404,16 +1404,39 @@ ndpoint: + null,%0A channelType: null%0A%7D) @@ -3585,16 +3585,327 @@ endpoint +,%0A channelType: 'subChannel'%0A %7D));%0A %7D);%0A return;%0A %7D%0A%0A if (this.subChannel.topChannel.destroyed) %7B%0A process.nextTick(function onTick(...
4050430d13f160d362342252d2b3ca45dd7ca2f6
Use chrome.runtime.onMessage
background/service.js
background/service.js
import handleMessage from "./handle-message.js"; chrome.runtime.onInstalled.addListener(function() { chrome.extension.onMessage.addListener(function(action, sender, sendResponse) { handleMessage(action); }); });
JavaScript
0.000001
@@ -108,17 +108,15 @@ ome. -extension +runtime .onM
a06ec625248d6dd318299122cf7f19fc1baed015
Revert to Ember.merge so 1.13 tests pass
tests/helpers/start-app.js
tests/helpers/start-app.js
import Ember from 'ember'; import Application from '../../app'; import config from '../../config/environment'; export default function startApp(attrs) { let application; let attributes = Ember.assign({}, config.APP); attributes = Ember.assign(attributes, attrs); // use defaults, but you can override; Ember.r...
JavaScript
0
@@ -192,22 +192,21 @@ = Ember. -assign +merge (%7B%7D, con @@ -240,14 +240,13 @@ ber. -assign +merge (att
b7deccca03622eafc13d2b73c54c78d483f291dc
add delete project client method
client.js
client.js
import $ from 'jquery' var Client = function (opt) { this.host = opt.host this.prefix = opt.prefix || '' this.endpoints = { newProject: '/project' , deleteProject: '/project' , listProject: '/projects' , saveFiles: '/project/files' , deleteFiles: '/project/files' } } Client.prototype.newProject = ...
JavaScript
0.000001
@@ -604,34 +604,152 @@ pt, cb) %7B%0A -// body... +$.ajax(%7B%0A url: this.host + this.prefix + this.endpoints.deleteProject%0A , method: 'DELETE'%0A , data: opt%0A , success: cb%0A %7D) %0A%7D%0A%0AClient.p
79b201bc6e9f5a84eb8876029101a0e7ec35d509
Correct lastUpdated
client.js
client.js
// Initalizes map var mymap = L.map('mapid').setView([51.505, -0.09], 13); // Sets the default view of the map mymap.setView(new L.LatLng(38.1711269, -97.5383369), 5); // Sets the tile layer from Mapbox L.tileLayer('https://api.mapbox.com/styles/v1/brandonyates/cj5tvlwng020z2qr7ws0ylg1o/tiles/256/{z}/{x}/{y}?access_t...
JavaScript
0.000063
@@ -1283,16 +1283,17 @@ Map() %7B%0A +%0A var la @@ -1332,17 +1332,17 @@ Updated -= +! = null) @@ -1403,16 +1403,52 @@ d;%0A %7D%0A%0A + lastUpdated = new Date() / 1000;%0A%0A $.ajax(%7B @@ -1509,16 +1509,16 @@ String,%0A + succes @@ -1545,71 +1545,8 @@ ) %7B%0A - console.log(result);%0A lastUpda...
71409bb51cbe398e40533a9230d7dd989382f471
Align legend to right
client.js
client.js
// Initalizes map var mymap = L.map('mapid').setView([51.505, -0.09], 13); // Sets the default view of the map mymap.setView(new L.LatLng(38.1711269, -97.5383369), 5); // Sets the tile layer from Mapbox L.tileLayer('https://api.mapbox.com/styles/v1/brandonyates/cj5tvlwng020z2qr7ws0ylg1o/tiles/256/{z}/{x}/{y}?access_t...
JavaScript
0
@@ -1034,33 +1034,87 @@ '%3Ch1 -%3EJesusCares today%3C/h1%3E%3Ch4 + style=%22text-align: right%22;%3EJesusCares today%3C/h1%3E%3Ch4 style=%22text-align: right%22; %3E%3Cp
b821f03f8b6d774ebf73734342eaa419bcef66c1
fix issues
jasmine/spec/inverted-index-test.js
jasmine/spec/inverted-index-test.js
// Test data that will used in testing.It is like a JSON mock file // Most of validations references are done on this file const testData = [ { "title": "Alice in Wonderland", "text": "Alice falls into a rabbit hole and enters a world full of imagination." }, { "title": "The Lord of the Rings: The F...
JavaScript
0.000003
@@ -475,18 +475,16 @@ ndex();%0A -%0A%0A describe @@ -514,16 +514,8 @@ %3E %7B%0A - %0A %0A @@ -636,20 +636,8 @@ ); %0A - %0A %0A @@ -753,21 +753,16 @@ %7D);%0A - %0A it(%22 @@ -860,30 +860,34 @@ ect( -Array.isArray(testData +(testData instanceof Array )).t @@ -907,20 +907,16 ...
7f3a7ccecb081b7d6660037bb4c1f8d66e6c48b6
Test Bubble Sort: Sort in descending order
test/algorithms/sorting/testBubbleSort.js
test/algorithms/sorting/testBubbleSort.js
/* eslint-env mocha */ const BubbleSort = require('../../../src').Algorithms.Sorting.BubbleSort; const assert = require('assert'); describe('BubbleSort', () => { it('should have no data when empty initialization', () => { const inst = new BubbleSort(); assert.equal(inst.size, 0); assert.deepEqual(inst.un...
JavaScript
0.000003
@@ -1526,13 +1526,681 @@ );%0A %7D); +%0A%0A it('should sort the array in decending order', () =%3E %7B%0A const inst = new BubbleSort(%5B2, 1, 3, 4%5D, (a, b) =%3E a %3E b);%0A assert.equal(inst.size, 4);%0A%0A assert.deepEqual(inst.unsortedList, %5B2, 1, 3, 4%5D);%0A assert.deepEqual(inst.sortedList, %...
b3ec43af8f2eeb6175d7814bf995b40fed0f1231
rename DEFAULT_WAIT_FOR_IFRAME_TIMEOUT to WAIT_FOR_IFRAME_TIMEOUT
src/templates/globals.mustache.js
src/templates/globals.mustache.js
var Promise = require('pinkie'); var WAIT_TIMEOUT = 3000; var DEFAULT_WAIT_FOR_IFRAME_TIMEOUT = 10000; var CHECK_PREDICATE_INTERVAL = 50; window.QUnitGlobals = { _taskId: '{{{taskId}}}', _path: '{{{path}}}', _fullPath: '{{{testFullPath}}}', hostname: '{{{hos...
JavaScript
0.999772
@@ -56,23 +56,16 @@ - = 3000;%0A @@ -68,24 +68,16 @@ 00;%0Avar -DEFAULT_ WAIT_FOR @@ -92,16 +92,17 @@ TIMEOUT + = 10000; @@ -131,23 +131,16 @@ NTERVAL - = 50;%0A%0Aw @@ -2201,24 +2201,16 @@ eout %7C%7C -DEFAULT_ WAIT_FOR @@ -2836,24 +2836,16 @@ %7D,%0A%0A -DEFAULT_ WAIT_FOR @...
e966bbca3ab4ab2e0ae189fed2078ec7ba40c5b8
Document trigger
gyps.js
gyps.js
const Gyps = _ => { const gyps = Object.create(null); let last; /* Emit an event, calling all observers. * @param data Data object to be used on calling observers */ gyps.emit = data => { last = data; return gyps; }; /* Add a new observer. If an event was emitted before, the observer is cal...
JavaScript
0.000001
@@ -2168,22 +2168,219 @@ %0A%0A /* T -rigger +akes an observable of values, each time the original observable emits,%0A * this observable emits the last value emitted by the observable of values.%0A * @param value$ Observable of values to be emitted %0A */%0A
bf9be14ef6d0c86de2ed2441567031079c85b2ed
use 64 bit version of openssl
bin/install_prerequisite.js
bin/install_prerequisite.js
// --------------------------------------------------------------------------------------------------------------------- // node-opcua // --------------------------------------------------------------------------------------------------------------------- // Copyright (c) 2014-2015 - Etienne Rossignon - etienne.rossign...
JavaScript
0
@@ -2848,18 +2848,20 @@ 0.2- -i3 +x64_ 86-win -32 +64 .zip @@ -2911,359 +2911,8 @@ rl); -%0A //xx var url = %22https://github.com/msysgit/msysgit/releases/download/Git-1.9.5-preview20141217/Git-1.9.5-preview20141217.exe%22%0A //xx var url = %22http://slproweb.com/download/Win32OpenSSL_Light-1_0_2.exe%22%0A...
e88a77a26cc613b922be5ed540b2710929c56f3a
Add row to accommodate for columns in a inline layout and duplicate name to id
styleguide/form-generator.js
styleguide/form-generator.js
(function() { var _this = this; var $el = $('.js-generator'); var rowTemplate = $('#generator-row').html(); var $addRow = $('.js-generator-add'); var formType = ''; var labelClass = ''; var inputClass = ''; function init() { $el.append(rowTemplate); $addRow.on('click', function(e) { e.pr...
JavaScript
0
@@ -497,16 +497,366 @@ %0A %7D); +%0A%0A $el.on('keyup', '%5Bname=%22name%22%5D', function() %7B%0A var $el = $(this);%0A var $row = $el.parents('.st-generator-row');%0A var $id = $row.find('%5Bname=%22id%22%5D');%0A%0A if (!$id.hasClass('is-changed')) %7B%0A $id.val($el.val());%0A ...
2726593ea863f8bd03028f2fadfb87facf610c12
add comment on travis login error
test/e2e/utils/protractor.parameterize.js
test/e2e/utils/protractor.parameterize.js
var Q = require("q"); var fs = require("fs"); exports.parameterize = function(config, configParams) { if ((typeof configParams != 'object')) { throw new Error("Invalid testConfiguration path provided for protractor parameterization in protractor config"); } var testConfiguration = configParams.testConfigur...
JavaScript
0
@@ -3465,32 +3465,124 @@ %7D else %7B%0A + console.log(%22error occured while trying to get authCookie of dummy user.%22);%0A
7394ed5d7470a753b386a2438e0c722e7528be91
Add example for background layer
site/js/Customizations.js
site/js/Customizations.js
// customInit() is called before any map initialization function customInit() { // // I create a new control click event class // OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { // defaultHandlerOptions: { // 'single': true, // 'double': false, // ...
JavaScript
0
@@ -1081,16 +1081,660 @@ nit() %7B%0A +// Example how to use a WMS layer as background layer:%0A// create an OpenLayers.Layer.WMS object, see OpenLayers documentation for details%0A// var myBackgroundLayer = new OpenLayers.Layer.WMS(%22myName%22,%0A// %22myURL%22, %7B%0A// layers: %22myLayer%22,%0A// ...
74c89f91666fd875ebe732ec24eb5bd74e07a59c
Update filldb.js
backend/filldb.js
backend/filldb.js
var mysql = require('mysql'), crypto = require('crypto'), problemStatus = ['нова', 'в процесі', 'вірішена'], problemType = ['проблеми лісів', 'сміттєзвалища', 'незаконна забудова', 'проблеми водойм', 'загрози біорізноманіттю', 'браконьєрство', 'інші проблеми'], title = ['problem1', 'problem2', 'problem3...
JavaScript
0.000001
@@ -1577,24 +1577,24 @@ RT INTO -p +P roblem -s +S tatus SE @@ -1765,16 +1765,16 @@ NTO -p +P roblem -t +T ypes @@ -2049,17 +2049,17 @@ RT INTO -p +P roblems @@ -2707,25 +2707,25 @@ INSERT INTO -a +A ctivities SE @@ -3061,17 +3061,17 @@ RT INTO -u +U sers SET @@ -3377,17 +3377,17 @@ RT INTO -a +A c...
b821af099d48011528d2e982a511ec0d7e0f8e68
refactor times-out test to pass
node/test/hyperbahn/autobahn-times-out.js
node/test/hyperbahn/autobahn-times-out.js
'use strict'; var DebugLogtron = require('debug-logtron'); var AutobahnClient = require('../index.js'); var allocCluster = require('autobahn/test/lib/test-cluster.js'); allocCluster.test('register with timed out autobahn', { size: 2 }, function t(cluster, assert) { MockBahn(cluster.dummies[0]); var cli...
JavaScript
0.000016
@@ -58,20 +58,21 @@ );%0A%0Avar -Auto +Hyper bahnClie @@ -88,16 +88,29 @@ ire('../ +../hyperbahn/ index.js @@ -117,18 +117,21 @@ ');%0A -%0A var -alloc +Hyperbahn Clus @@ -149,30 +149,24 @@ re(' -autobahn/test/lib/test +../lib/hyperbahn -clu @@ -173,29 +173,33 @@ ster.js');%0A%0A -alloc +Hyperbahn Cluster....
623fa6fe138b7c4ab8cbdfa0e65129bb6f4c4604
Add empty P if spytext field element is empty.
field.js
field.js
/** * A Backbone.View for Spytext fields. * * @module spytext/field */ var Snapback = require('./snapback'); var selectron = require('./selectron'); var commands = require('./commands'); /** * @readonly */ var blockTags = [ 'P', 'H1', 'H2', 'H3', 'H4', 'H5', 'H6', 'LI' ]; module.exports = { /** * @...
JavaScript
0
@@ -684,32 +684,97 @@ ments(this.el);%0A +%09%09if($(this.el).is(':empty')) %7B%0A%09%09%09$(this.el).append('%3Cp%3E');%0A%09%09%7D%0A %09%09commands.setBR
a710cb9d3aa34dacf3125515cccf469766e3efee
Add affix to profile page
website/static/js/pages/profile-settings-page.js
website/static/js/pages/profile-settings-page.js
var profile = require('../profile.js'); var ctx = window.contextVars; new profile.Names('#names', ctx.nameUrls, ['edit']); new profile.Social('#social', ctx.socialUrls, ['edit']); new profile.Jobs('#jobs', ctx.jobsUrls, ['edit']); new profile.Schools('#schools', ctx.schoolsUrls, ['edit']);
JavaScript
0.000001
@@ -270,24 +270,481 @@ schoolsUrls, %5B'edit'%5D);%0A +%0A// Reusable function to fix affix widths to columns. %0Afunction fixAffixWidth() %7B%0A $('.affix, .affix-top, .affix-bottom').each(function ()%7B%0A var el = $(this);%0A var colsize = el.parent('.affix-parent').width();%0A el.outerWidt...
a878bb15d3a3ee9780ad1532112d762562a24a6a
Fix basic/threejs example
examples/basic/threejs/script.js
examples/basic/threejs/script.js
import * as UTILS from '../../globals'; const world = new WHS.World({ ...UTILS.$world, physics: { ammo: process.ammoPath }, camera: { far: 10000, position: [0, 2, 12] }, modules: { scene: false } }); const scene = new THREE.Scene(); const material = new THREE.MeshPhongMaterial({color:...
JavaScript
0.195595
@@ -60,176 +60,78 @@ WHS. -World(%7B%0A ...UTILS.$world,%0A%0A physics: %7B%0A ammo: process.ammoPath%0A %7D,%0A%0A camera: %7B%0A far: 10000,%0A position: %5B0, 2, 12%5D%0A %7D,%0A%0A modules: %7B%0A scene: false%0A %7D%0A%7D +App(%5B%0A new WHS.app.ElementModule(),%0A new WHS.app.SceneModule(tru...
dbb58f6cb1cd6dbf204db4021f00f5409e6a91fc
Reset values between label operations
lib/LanguagePicker.js
lib/LanguagePicker.js
const ls = require('language-scripts'); const dataOverrides = require('./overrides.json'); function LanguagePicker(lang = 'en', config = {}) { let fallbackMap = {}; let fallbacks = []; const scripts = ls.adjust({ override: dataOverrides }); this.userLang = lang; this.values = {}; this.nameTag = config.nam...
JavaScript
0.000005
@@ -270,28 +270,8 @@ ng;%0A - this.values = %7B%7D;%0A th @@ -1795,24 +1795,29 @@ tChoiceValue + = '' ;%0A const pr @@ -1926,16 +1926,37 @@ ipt%7D%60;%0A%0A + this.values = %7B%7D;%0A%0A return
18a00bcdce53cdea1385d82c08f8077b074bdc1f
Remove unused code. Refs #2727.
base/Container.js
base/Container.js
dojo.provide("dijit.base.Container"); dojo.require("dijit.util.manager"); dojo.declare("dijit.base.Contained", null, { // summary // Mixin for widgets that are children of a container widget getParent: function(){ // summary: // returns parent widget for(var p=this.domNode.parentNode; p; p=p.paren...
JavaScript
0.000932
@@ -441,269 +441,8 @@ %7D,%0A%0A -/*FIXME: is this used anywhere?%0A%09%09getSiblings: function()%7B%0A%09%09%09// summary: gets an array of all children of our parent, including %22this%22%0A%09%09%09var container = this.getParent();%0A%09%09%09if(!container)%7B return %5Bthis%5D; %7D%0A%09%09%09return container.getC...