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
853a3f6409a6b8cd94d3f950377930a4989214cc
Validate config.websocket
src/helpers/validate.js
src/helpers/validate.js
const defaultConfig = require('./default-config'); module.exports = (config) => { if (!config) { return defaultConfig; } config.title = (typeof config.title === 'string') ? config.title : defaultConfig.title; config.path = (typeof config.path === 'string') ? config.path : defaultConfig.path; config.sp...
JavaScript
0.000008
@@ -393,16 +393,104 @@ spans;%0A%0A + config.websocket = (typeof config.websocket === 'object') ? config.websocket : null;%0A%0A return
3267ae695c7c3879861a0f8bc2e438b20c33269b
Make a skeleton of drag event listeners of sidebar-module
js/components/sidebar-module.js
js/components/sidebar-module.js
(function(app) { 'use strict'; var helper = app.helper || require('../helper.js'); var dom = app.dom || require('../dom.js'); var Component = app.Component || require('./component.js'); var SidebarModule = helper.inherits(function(props) { SidebarModule.super_.call(this, props); this.title = this.p...
JavaScript
0.000001
@@ -418,16 +418,54 @@ (null);%0A + this.draggable = this.prop(null);%0A %7D, Com @@ -473,16 +473,16 @@ onent);%0A - %0A Sideb @@ -671,32 +671,478 @@ nt(), 1);%0A %7D;%0A%0A + SidebarModule.prototype.registerDragListener = function() %7B%0A this.draggable(new dom.Draggable(%7B%0A element: this.eleme...
c0bb8ac0241dafd9f9d81086b5a343cd4056d08c
add support to obj[attrs][]
lib/assets/javascripts/esphinx/attribute.js
lib/assets/javascripts/esphinx/attribute.js
//= require ./main "use strict"; var esPhinx; (function ($) { $.extend({ prototype: { removeAttr: function (attrName) { var self = this; self.each(function (node) { node.removeAttribute(attrName); })...
JavaScript
0
@@ -3329,30 +3329,38 @@ -// it's missing attr%5B%5D +structure = %22%7B%5C%22%22 + structure; %0A @@ -3506,32 +3506,24 @@ structure = - %22%7B%5C%22%22 + structure%0A @@ -3954,32 +3954,24 @@ structure = - %22%7B%5C%22%22 + structure%0A @@ -4188,24 +4188,372 @@ %22%5C%22%7D%7D%7D%7D%22);%0A + ...
a6b57a6070cc2105d501f57017b7f24d3aa0ffbb
Add test for facilityconfigpage
kolibri/plugins/facility_management/assets/test/views/facility-config-page.spec.js
kolibri/plugins/facility_management/assets/test/views/facility-config-page.spec.js
import { mount } from '@vue/test-utils'; import ConfigPage from '../../src/views/FacilityConfigPage'; import makeStore from '../makeStore'; function makeWrapper(propsData = {}) { const store = makeStore(); store.commit('facilityConfig/SET_STATE', { settings: { learner_can_edit_username: false, }, }...
JavaScript
0
@@ -1224,16 +1224,732 @@ );%0A %7D%0A%0A + it('has all of the settings', () =%3E %7B%0A const wrapper = makeWrapper();%0A const checkboxes = wrapper.findAll(%7B name: 'KCheckbox' %7D);%0A expect(checkboxes.length).toEqual(7);%0A const labels = %5B%0A 'Allow learners and coaches to edit their usernam...
a55df66db4c205bad9a06709bd537969c64c5bc9
Fix incorrect usage of Boom for server/service unavailable error; remove handling of error in separate "if" block of code for Bcrypt compare
server/auth/basic/basicValidation.js
server/auth/basic/basicValidation.js
/** * Created by Omnius on 6/18/16. */ 'use strict'; const Async = require('async'); const Bcrypt = require('bcryptjs'); const Boom = require('boom'); const generateToken = require(process.cwd() + '/server/helpers/hkdfTokenGenerator').generateToken; const internals = {}; exports.validate = (request, usernameOrEmai...
JavaScript
0
@@ -537,24 +537,25 @@ : (cb) =%3E %7B%0A +%0A @@ -1329,32 +1329,33 @@ edentials) =%3E %7B%0A +%0A @@ -1678,25 +1678,16 @@ oom. -serverUnavailable +internal (err @@ -1690,24 +1690,30 @@ (err), false +, null );%0A %7D @@ -1738,19 +1738,20 @@ allback( -err +null , true, @@ -...
0d72db9e350b4335e8615fc915454b230701025a
Remove unused header prop
source/views/calendar/event-detail.ios.js
source/views/calendar/event-detail.ios.js
// @flow import React from 'react' import {Text, ScrollView, StyleSheet, Share} from 'react-native' import {Cell, Section, TableView} from 'react-native-tableview-simple' import type {EventType} from './types' import type {TopLevelViewPropsType} from '../types' import {ShareButton} from '../components/nav-buttons' impo...
JavaScript
0
@@ -2971,18 +2971,8 @@ tion - header=%22%22 foo
6ecf14a495a215d1920ce1b2c389ac61efad5ef7
update layer name
plugins/basemap-kartverket.js
plugins/basemap-kartverket.js
// @author johnd0e // @name Kartverket.no maps (Norway) // @category Map Tiles // @version 0.2.0 // @description Add Kartverket.no map layers. function setup () { L.TileLayer.Kartverket = L.TileLayer.extend({ baseUrl: 'https://opencache{s}.statkart.no/gatekeeper/gk/gk.open_g...
JavaScript
0
@@ -120,17 +120,17 @@ 0.2. -0 +1 %0A// @des @@ -567,24 +567,73 @@ 2: 'topo4',%0A + matrikkel_bakgrunn: 'matrikkel_bakgrunn2',%0A norges @@ -833,18 +833,18 @@ bakgrunn +2 : - 'Matrikk
c90c33bc6edb3d20500ef894a7eef852e29a5f1a
support inline-style with camel case
jDollarX.js
jDollarX.js
void function (root, factory) { if (typeof define === 'function' && define.amd) { define(['jquery'], factory) } else if (typeof module === 'object' && module.exports) { module.exports = factory(require('jquery')) } else { root.J$X = factory(root.jQuery) } } (this, function ($) { var KEY_ALIASES = ...
JavaScript
0
@@ -1965,20 +1965,203 @@ -$el.css(valu +var style = %7B%7D%0A for (var k in value) %7B%0A style%5Bk.replace(/%5BA-Z%5D/g, function (val) %7B%0A return '-'+val.toLowerCase()%0A %7D)%5D = value%5Bk%5D%0A %7D%0A $el.css(styl e)%0A
c31cb63168da019716a943336b0eee6b45b791f1
Add HTML mapping test for empty attributes.
src/htmlMapping.spec.js
src/htmlMapping.spec.js
import {enableTracing, disableTracing} from "./tracing/tracing" import getRootOriginAtChar from "./getRootOriginAtChar" import {disableProcessHTMLOnInitialLoad} from "./tracing/processElementsAvailableOnInitialLoad" disableProcessHTMLOnInitialLoad() fdescribe("HTML Mapping", function(){ beforeEach(function(){ ...
JavaScript
0
@@ -112,16 +112,76 @@ nAtChar%22 +%0Aimport whereDoesCharComeFrom from %22./whereDoesCharComeFrom%22 %0A%0Aimport @@ -1372,12 +1372,1032 @@ )%0A %7D) +%0A%0A it(%22Traces nested HTML assignments%22, function(done)%7B%0A var el = document.createElement(%22div%22)%0A el.innerHTML = '%3Cspan hello%3...
322d244ac54a7de25eb8d7470c6454cd7480228b
rename to radius
renderer/SvgLineSelection.js
renderer/SvgLineSelection.js
import React, {Component, PropTypes} from 'react' const P_COLOR = '#FFEB3B' const Q_COLOR = '#FF9800' const LINE_COLOR = '#9C27B0' const SELECTION_WIDTH = 10 export default class LineSelection extends Component { static get propTypes() { return { viewport: PropTypes.shape({ w: PropTypes.number.is...
JavaScript
0.99997
@@ -141,21 +141,22 @@ LECTION_ -WIDTH +RADIUS = 10%0A%0Ae @@ -700,21 +700,22 @@ LECTION_ -WIDTH +RADIUS %0A%0A le @@ -1390,21 +1390,22 @@ LECTION_ -WIDTH +RADIUS %0A ret @@ -1956,21 +1956,22 @@ LECTION_ -WIDTH +RADIUS - 0.1) @@ -2587,13 +2587,14 @@ ION_ -WIDTH +RADIUS * 1
936978aea7894c0aca2d28025de3c75353b6e797
Remove old MySQL connection settings
parse-vk.js
parse-vk.js
/*================================= = Bootstrap = =================================*/ 'use strict'; const fetch = require('node-fetch'); const fs = require('fs'); // https://github.com/mysqljs/mysql const mysql = require('mysql'); const config = require('./db.config.js'); ...
JavaScript
0.000001
@@ -230,16 +230,19 @@ s/mysql%0A +// const my @@ -266,24 +266,27 @@ e('mysql');%0A +// const config @@ -315,24 +315,27 @@ onfig.js');%0A +// const connec
8a7544e4ffd26fc3d04cdbc709c477c40a83f92d
Support rendering values when no backing data source is present.
js/controls/KendoMultiSelect.js
js/controls/KendoMultiSelect.js
define([ 'underscore', 'react', '../ReactCommon', '../ImmutableOptimizations' ], function (_, React, Common, ImmutableOptimizations) { 'use strict'; var PropTypes = React.PropTypes; function rawValue(props) { var value = props.value; if (_.isEmpty(value)) { return...
JavaScript
0
@@ -348,17 +348,21 @@ value = -_ +Array .isArray @@ -584,24 +584,248 @@ N();%0A %7D%0A%0A + function dataSource(props) %7B%0A if (!_.isEmpty(props.dataSource)) %7B%0A return props.dataSource;%0A %7D%0A return Array.isArray(props.value) ? Array.from(props.value) : Array.of(props...
3c54301b65b43034a5555904f54bc795742f3ddd
Translate to AAP prefered month abreviations
client/app/translations.js
client/app/translations.js
angular.module('gettext').run(['gettextCatalog', function (gettextCatalog) { gettextCatalog.setStrings('en', { "URGENCY": "NEWS VALUE", "Urgency": "News Value", "urgency": "news value", "Urgency stats": "News Value stats", "SERVICE": "CATEGORY" }); }]);
JavaScript
0.999999
@@ -281,16 +281,141 @@ ATEGORY%22 +,%0A %22Mar%22: %22March%22,%0A %22Apr%22: %22April%22,%0A %22Jun%22: %22June%22,%0A %22Jul%22: %22July%22,%0A %22Sep%22: %22Sept%22 %0A %7D);
f98e013aa10ed21af39c3d08b119107602683128
Complete insertion sort
sort/insertion_sort.js
sort/insertion_sort.js
var insert = function(array, rightIndex, value) { for(var index = rightIndex; index >= 0 && array[index] > value; index--){ array[index + 1] = array[index]; } array[index + 1] = value; };
JavaScript
0.000001
@@ -207,8 +207,313 @@ alue;%0A%7D; +%0A%0Avar insertionSort = function(array) %7B%0A for(var i = 1; i %3C array.length; i++)%7B%0A var value = array%5Bi%5D;%0A var rightIndex = i - 1;%0A insert(array, rightIndex, value);%0A %7D%0A%7D;%0A%0Avar array = %5B22, 11, 99, 88, 9, 7, 42%5D;%0Ainsert...
0acb35dc23b2d14d6782bce624017ee6f1b0f13b
Update end to end tests
test/end-to-end-tests/src/usecases/signup.js
test/end-to-end-tests/src/usecases/signup.js
/* Copyright 2018 New Vector Ltd Copyright 2019 The Matrix.org Foundation C.I.C. 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 ...
JavaScript
0
@@ -3896,946 +3896,68 @@ // -plow through cross-signing setup by entering arbitrary details%0A //TODO: It's probably important for the tests to know the passphrase%0A const xsigningPassphrase = 'a7eaXcjpa9!Yl7#V%5Eh$B%5E%25dovHUVX'; // https://xkcd.com/221/%0A let passphraseField = await session.query('.mx_...
74e2f38d427a77cfcfb7bec1a8557d9033ea576d
increase timeout again
jest.env.js
jest.env.js
jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000;
JavaScript
0.000001
@@ -32,9 +32,9 @@ L = -3 +6 0000
9d2597660f1b42e217e37481007db9cb300fb87a
Allow transition chaining.
monster.js
monster.js
// vim: tw=79 cc=+1 var EventEmitter = require('events').EventEmitter, util = require('util'); function InvalidTransition (msg) { this.message = msg; } InvalidTransition.prototype.toString = function () { return this.message; }; function State (name) { this.name = name; } util.inherits(State, EventE...
JavaScript
0
@@ -1809,16 +1809,33 @@ ;%0A %7D%0A + return this;%0A %7D;%0A%0AMons @@ -2163,16 +2163,23 @@ +return self.tra @@ -2206,16 +2206,33 @@ %0A %7D;%0A + return this;%0A %7D;%0A%0Aexpo
59fb97c2f21a37e2c9033791f53552d2c26732d7
Revert "unexpectedAlertBehaviour: accept"
test/acceptance/index.js
test/acceptance/index.js
// Docs aren't that great to find. Mostly JAVA based. Here are few helpful resources: // - https://www.browserstack.com/automate/node#testing-frameworks // - http://seleniumhq.github.io/selenium/docs/api/javascript/module/selenium-webdriver/firefox/index_exports_Driver.html // - https://github.com/SeleniumHQ/selenium/b...
JavaScript
0
@@ -3179,52 +3179,8 @@ sKey -,%0A 'unexpectedAlertBehaviour': 'accept' %0A
75c2f7f3dd2663219dfe6ea78af6ee529e5f0a74
Update comment
source/scripts/main.js
source/scripts/main.js
// App Main Entry // ============== // // Import Modules // -------------- // // ### NPM Modules import 'babel-core/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; // Define <App/> // ------------- class App extends React.Component { render () { return ( <div>Hello, world!</div> ...
JavaScript
0
@@ -1,14 +1,17 @@ // +%3C App +/%3E Main En @@ -13,20 +13,43 @@ in Entry -%0A// + Component%0A// ============= ========
64fd4c8a73d4d05c7b602b1946d56984d16a034b
tweak the test controller to test github ssh access
demo/testcontroller.js
demo/testcontroller.js
JavaScript
0
@@ -1 +1,84 @@ %0A +LOG = %5B%5D;%0A%0Aonfetch = function(event) %7B%0A LOG.push(%5B%22Fetch event: %22, event%5D);%0A%0A%7D;%0A
3ef856b79d54dec416d7180e408ad76cddb0ec2e
switch to use include_geometry: false
app/isochrones/route.js
app/isochrones/route.js
import Ember from 'ember'; import setLoading from 'mobility-playground/mixins/set-loading'; export default Ember.Route.extend(setLoading, { queryParams: { isochrone_mode: { replace: true, refreshModel: true, }, pin: { replace: true, refreshModel: true }, departure_time: { replace: true, r...
JavaScript
0.999939
@@ -4584,18 +4584,18 @@ rators, -ex +in clude_ge @@ -4594,35 +4594,36 @@ clude_geometry: -tru +fals e%7D);%0A%09%09%09%7D else %7B @@ -4699,18 +4699,18 @@ s.bbox, -ex +in clude_ge @@ -4717,19 +4717,20 @@ ometry: -tru +fals e%7D);%0A%09%09%09
4da081a66e905a93f2623c229f6a5d08ef9ee3b7
Reset joint source view in explore when updated
scripts/explore/ExploreJointSourceController.js
scripts/explore/ExploreJointSourceController.js
var ExploreJointSourceController = JointSourceController.createComponent("ExploreJointSourceController"); ExploreJointSourceController.createViewFragment = function () { return cloneTemplate("#template-explore-jointsource"); }; ExploreJointSourceController.defineAlias("model", "jointSource"); ExploreJointSourceCo...
JavaScript
0
@@ -1740,16 +1740,303 @@ eturn;%0A%0A + // Reset view%0A var parentNode = this.view.parentNode;%0A var fragment = this.constructor.createViewFragment();%0A var element = fragment.querySelector(%22.jointsource%22);%0A parentNode.replaceChild(fragment, this.view);%0A this.uninitView();%0A this._view = element;%0A...
b5f577438d5593a82f69e5e01ede4e9914f35fd9
Support falsy expressions
jquery.k.js
jquery.k.js
/** * Lightweight Jade/HAML-like DOM builder for jQuery. */ (function() { var re = { tag: /^(\w+)/, id: /#(\w+)/, cls: /\.([^#]+)/ }; $.K = function(s) { var tag = (re.tag.exec(s)||[,'div'])[1]; var el = document.createElement(tag); var id = re.id.exec(s); var cls = re.cls.exec(s); if (id) (el.id = ...
JavaScript
0.000004
@@ -183,16 +183,20 @@ g.exec(s +%7C%7C'' )%7C%7C%5B,'di
c6215ff8cef5329d4f48fc43d15a68dbf1c29974
优化和密度分析测试案例,将真实请求服务改为mork review by sunxiaoyu
test/leaflet/services/DensityAnalysisSpec.js
test/leaflet/services/DensityAnalysisSpec.js
import {spatialAnalystService} from '../../../src/leaflet/services/SpatialAnalystService'; import {DensityKernelAnalystParameters} from '../../../src/common/iServer/DensityKernelAnalystParameters'; import request from 'request'; var spatialAnalystURL = GlobeParameter.spatialAnalystURL_Changchun; var options = { se...
JavaScript
0
@@ -221,16 +221,71 @@ equest'; +%0Aimport %7BFetchRequest%7D from %22@supermap/iclient-common%22; %0A%0Avar sp @@ -1429,320 +1429,711 @@ -densityAnalystService.densityAnalysis(densityAnalystParameters, (densityServiceResult) =%3E %7B%0A serviceResult = densityServiceResult;%0A %7D);%0A ...
cb91df43b84ec38ecbc88dc8b5a534e814a899f4
Stop tracking session if not logged in
client/js/app/auth/auth.js
client/js/app/auth/auth.js
angular.module('auth', ['flash']) .controller("LoginCtrl", ["$scope", "authentication", function ($scope, authentication) { $scope.login = function () { authentication.login($scope.username, $scope.password); }; }]) .controller("LogoutCtrl", ["authentica...
JavaScript
0
@@ -4035,16 +4035,37 @@ timeout( +%0A function @@ -4062,32 +4062,140 @@ function () %7B%0A + if (!userInfo) %7B%0A return;%0A %7D%0A%0A @@ -4256,24 +4256,28 @@ + + if (tokenAge @@ -...
42bf745ad768637698bb8682bb08b7a0cb549234
handle local templates correctly
src/init/init-custom.js
src/init/init-custom.js
import debug from 'debug'; import fs from 'fs-promise'; import glob from 'glob'; import resolvePackage from 'resolve-package'; import ora from 'ora'; import path from 'path'; import { copy } from './init-starter-files'; import asyncOra from '../util/ora-handler'; import installDepList from '../util/install-dependencie...
JavaScript
0
@@ -719,16 +719,24 @@ require +.resolve (%60electr
57a783df7c6e25d9e7a3b25a8b39811f27df01a0
remove TODO for instancing tests.
test/batch-attributes.js
test/batch-attributes.js
var tape = require('tape') var createContext = require('./util/create-context') var createREGL = require('../regl') tape('batch mode attributes', function (t) { var gl = createContext(5, 5) var regl = createREGL(gl) var command = regl({ frag: [ 'precision mediump float;', 'void main() {', ...
JavaScript
0
@@ -2880,98 +2880,8 @@ ')%0A%0A - // check instancing%0A if (gl.getExtension('angle_instanced_arrays')) %7B%0A // todo%0A %7D%0A%0A re
04ea890098808c05d870a74779c9d8d697404ad3
add requestAnimationFrame polyfill test cases
test/polyfills/requestAnimationFrame.spec.js
test/polyfills/requestAnimationFrame.spec.js
/* global describe, it, expect */ import requestAnimationFrame from '../../src/polyfills/requestAnimationFrame'; describe('Polyfills', () => { describe('requestAnimationFrame()', () => { it('should be function', () => { const result = requestAnimationFrame; expect(result).to.be.a('function'); }...
JavaScript
0
@@ -23,16 +23,23 @@ , expect +, sinon */%0Aimpo @@ -41,37 +41,28 @@ %0Aimport -requestAnimationFrame +%7B polyfill %7D from '. @@ -230,85 +230,236 @@ -const result = requestAnimationFrame;%0A expect(result).to.be.a('function' +expect(polyfill).to.be.a('function');%0A %7D);%0A%0A it('should invok...
f943a4be1d2e3185004305ec0d036be20a823264
Implement #jump, #kick, #toggle methods
src/interdimensional.js
src/interdimensional.js
!(function(window, document) { 'use strict'; var isCharged = false; var isOn = false; var lastAlpha; var lastBeta; var control; var settings = { speed: 150, insensitivity: 5 }; function calcShift(lastAngle, newAngle) { var diff = newAngle - lastAngle; var absDiff = Math.abs(diff); ...
JavaScript
0.000001
@@ -545,87 +545,32 @@ -isOn = !isOn;%0A control.classList.toggle('interdimensional-control-is-active' +Interdimensional.toggle( );%0A @@ -1392,32 +1392,115 @@ rn this;%0A %7D%0A%0A + isOn = true;%0A control.classList.add('interdimensional-control-is-active');%0A%0A return this; @@ -1593,35 +15...
4beceae6d8e821d8520657a3eda924c75821355f
Update the GMail message producer to support the new tokenstore.
lib/producers/gmail/GMailMessageProducer.js
lib/producers/gmail/GMailMessageProducer.js
var base = require( '../ProducerBase.js' ); var ImapService = require( '../imap/ImapService.js' ); function GMailMessageProducer( fetcher ) { this.fetcher = fetcher; base.init( this ); } base.inherit( GMailMessageProducer ); GMailMessageProducer.prototype.getMatchPatterns = function() { return [ '^acct:((ima...
JavaScript
0
@@ -422,16 +422,28 @@ unction( + tokenStore, uri, ow @@ -627,16 +627,257 @@ %5B1%5D );%0A%0A + try %7B%0A tokenStore.getUserTokens( owner, source, function( error, data ) %7B%0A if( error )%0A %7B%0A callback( error );%0A %7D%0A else%0A ...
43d25fdb280957ec382c88404b1a81c3101825ec
Remove body styles on unmount
src/components/Modal.js
src/components/Modal.js
import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import { CSSTransitionGroup } from 'react-transition-group'; import blacklist from 'blacklist'; import classNames from 'classnames'; import createReactClass from 'create-react-class'; import { canUseDOM } from '../constant...
JavaScript
0
@@ -1884,16 +1884,180 @@ %09%09%7D%0A%09%7D,%0A +%09componentWillUnmount: function () %7B%0A%09%09if (!canUseDOM) return;%0A%0A%09%09const target = document.body;%0A%09%09target.style.overflow = '';%0A%09%09target.style.paddingRight = '';%0A%09%7D,%0A %09/*%0A%09han
19becb72112efcc3df23c75a120ddca053e18b08
Add a primary key to JavaDemo
test/browser/JavaDemo.js
test/browser/JavaDemo.js
foam.CLASS({ package: 'com.example', name: 'Person', properties: [ { class: 'String', name: 'name' }, { class: 'Boolean', name: 'employed' } ] }); var cls = foam.java.Class.create(); com.example.Person.buildJavaClass(cls); var output = foam.java.Outputter.create(); ou...
JavaScript
0.000001
@@ -51,16 +51,33 @@ erson',%0A + ids: %5B'name'%5D,%0A proper
ea3fc2d83744be6306bf3ba9d7147aa957613f20
test written for max temp during power save
spec/thermostatSpec.js
spec/thermostatSpec.js
describe("Thermostat", function(){ var thermostat; beforeEach(function(){ thermostat = new Thermostat(); }); describe("by default", function(){ it("thermostat should start at 20 degrees", function(){ expect(thermostat.temperature).toEqual(20) }); }); describe("changing temperature", function(){ ...
JavaScript
0
@@ -1502,12 +1502,224 @@ ;%0A%0A%7D);%0A%0A +describe(%22power save mode%22, function()%7B%0A%0A it(%22should have a maximum temperature of 25 degrees when power save is on%22, function()%7B%0A thermostat.powerSave()%0A expect(thermostat.maxTemp).toEqual(25)%0A %7D);%0A%7D);%0A%0A %0A%7D);
4bc117d042b072a5cb791dd83eaab925b1700d8e
add two test for childNodeType and rootNodeType attributes
jasmine/spec/NotesPresenterSpec.js
jasmine/spec/NotesPresenterSpec.js
describe("NotePresenter", function(){ beforeEach(function() { dummyNote = { noteTime: "0:30", noteContent: "I'm a dummy note" }; notePresenter = new PinPoint.NotePresenter(dummyNote); }); it("should be defined.", function(){ expect(notePresenter).toBeDefined(); }); it("should con...
JavaScript
0
@@ -511,12 +511,248 @@ ;%0A %7D)%0A%0A + it(%22should contain a rootNodeType of 'tr'%22,function() %7B%0A expect(notePresenter.rootNodeType).toEqual('tr');%0A %7D)%0A it(%22should contain a childNodeType of 'td'%22,function() %7B%0A expect(notePresenter.childNodeType).toEqual('td');%0A %7D)%0A%0A %7D); -%0...
e458fb231a811e748c0b20d281caf770e2164c4a
Add week-begins-on-monday option
src/ionic-datepicker.js
src/ionic-datepicker.js
//By Rajeshwar Patlolla //https://github.com/rajeshwarpatlolla 'use strict'; angular.module('ionic-datepicker', ['ionic', 'ionic-datepicker.templates']) .directive('ionicDatepicker', ['$ionicPopup', function ($ionicPopup) { return { restrict: 'AE', replace: true, scope: { value: '=valu...
JavaScript
0.999975
@@ -309,21 +309,49 @@ alue: '= -value +',%0A weekBeginsOnMonday: '@ '%0A @@ -676,16 +676,136 @@ ', 'S'%5D; +%0A if (scope.weekBeginsOnMonday %7C%7C false) %7B%0A scope.dayInitials.push(scope.dayInitials.shift());%0A %7D %0A%0A @@ -1559,24 +1559,111 @@ e.getDay();%0A + ...
7c7f56293f24e63060fc1912c97a135567e2e347
Improve getQueueBindings() comments
lib/RabbitManagement.js
lib/RabbitManagement.js
'use strict'; require('isomorphic-fetch'); const URL = require('url'); class RabbitManagement { constructor({ protocol, hostname, port, username, password, vhost }) { this.baseURL = URL.format({ protocol, hostname, port, // Plugin rabbitmq_management API always lives under /api/ pa...
JavaScript
0
@@ -1108,23 +1108,11 @@ // -Response always +API ret @@ -1128,47 +1128,27 @@ and -valid JSON.%0A // Return false +empty array when no t bi @@ -1143,17 +1143,16 @@ when no -t binding @@ -1187,24 +1187,162 @@ ngth %3C 1) %7B%0A + // Return false if queue is not bound to its exchange:%0A // by ...
d0a1118bf64348e234dc5d932654b98a3d8e2308
Use absolute URL
ideascube/static/ideascube/js/ideascube.js
ideascube/static/ideascube/js/ideascube.js
/*global document window Pikaday console gettext*/ /* eslint new-cap:0, strict:0, quotes:[2, "single"] global-strict:0, no-underscore-dangle:0, curly:0, consistent-return:0, no-new:0, no-console:0, space-before-function-paren:[2, "always"] */ 'use strict'; ID.http = { _ajax: function (settings) { var xhr ...
JavaScript
0.999999
@@ -6811,24 +6811,59 @@ age-code'),%0A + relative_urls : false,%0A
0e6844dd45078377bac659169117fa382dc66091
Make Net Change first widget of Forest Change tab
components/widgets/forest-change/net-change/index.js
components/widgets/forest-change/net-change/index.js
import { getNetChange } from 'services/analysis-cached'; import { getYearsRangeFromData } from 'components/widgets/utils/data'; import { POLITICAL_BOUNDARIES_DATASET, NET_CHANGE_DATASET, } from 'data/datasets'; import { DISPUTED_POLITICAL_BOUNDARIES, POLITICAL_BOUNDARIES, NET_CHANGE, } from 'data/layers'; ...
JavaScript
0
@@ -1878,17 +1878,18 @@ Change: -1 +-2 ,%0A %7D,%0A
1da96b1a2ea97cb3f482dc07b22c346b3017b601
change comments styling
src/components/Topic.js
src/components/Topic.js
import React from 'react-native'; import relativeDate from '../utils/relative-date'; import Api from '../api'; let { View, Text, StyleSheet, Image, ListView, ScrollView } = React; var styles = StyleSheet.create({ container: { flex: 1, backgroundColor: 'white', flexDirection: 'column' }, ...
JavaScript
0
@@ -156,30 +156,32 @@ ,%0A -ListView,%0A ScrollView +ScrollView,%0A PixelRatio %0A%7D = @@ -449,35 +449,188 @@ %0A%0A -comments: %7B%0A padding: 10 +row: %7B%0A paddingTop: 5,%0A paddingBottom: 5%0A %7D,%0A%0A comments: %7B%0A padding: 10%0A %7D,%0A%0A cellBorder: %7B%0A backgroundColor: 'rg...
48f9cf93deb6f6629ab026d205376045dec0db5b
Fix clone example to use new api
examples/clone.js
examples/clone.js
// Bootstrap the platform to run on node.js require('../lib/platform.js')(require('./node')); // Load the libraries var fsDb = require('../lib/fs-db.js'); var wrap = require('../lib/repo.js'); var each = require('../helpers/each.js'); var autoProto = require('../protocols/auto.js'); var urlParse = require('url').parse...
JavaScript
0
@@ -853,17 +853,13 @@ ion. -negotiate +fetch (wan
b6cd3888c64556bafcba9bf9978cdd0b93db3280
remove console
client/src/utils/hightChartOptionsFactory.js
client/src/utils/hightChartOptionsFactory.js
export const hightChartCommon = ( subject, yName, year, data, handleHoverDate = () => {} ) => ({ title: { text: `${year} ${subject}`, x: -20 // center }, subtitle: { text: '', x: -20 }, yAxis: { title: { text: yName }, plotLines: [ { value: 0, ...
JavaScript
0.000002
@@ -611,32 +611,8 @@ ) %7B%0A - console.log(this)%0A
cee6009e13a9c8ed1d089f9b036f88f58dc8d247
Fix for Issue #7: Remove any padding set directly on the table as part of init.
js/jquery.stickytableheaders.js
js/jquery.stickytableheaders.js
/*! Copyright (c) 2011 by Jonas Mosbech - https://github.com/jmosbech/StickyTableHeaders MIT license info: https://github.com/jmosbech/StickyTableHeaders/blob/master/license.txt */ (function ($) { $.StickyTableHeaders = function (el, options) { // To avoid scope issues, use 'base' instead of 'this' // ...
JavaScript
0
@@ -885,24 +885,108 @@ = $(this);%0D%0A +%0D%0A%09%09%09%09// remove padding on %3Ctable%3E to fix issue #7%0D%0A%09%09%09%09$this.css('padding', 0);%0D%0A%0D%0A %09%09%09%09$this.wr
97f0404f592b406fff42a4718ddd995b45af5762
Update main.js
data/main.js
data/main.js
/*@pjs preload="data/images/logo1.png";*/ var sketchProc=function(processingInstance){ with (processingInstance){ //Setup var wi = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; var he = window.innerHeight || document.documentElement.clientHeight || ...
JavaScript
0.000001
@@ -1943,116 +1943,50 @@ %09%0A%09%09 -if (%22/Android%7CwebOS%7CiPhone%7CiPad%7CiPod%7CBlackBerry%7CBB%7CPlayBook%7CIEMobile%7CWindows Phone%7CKindle%7CSilk%7COpera Mini +var isMobile = /iPhone%7CiPad%7CiPod%7CAndroid /i -%22 .tes @@ -2007,17 +2007,32 @@ erAgent) -) +;%0A%09%09if (isMobile && (mou @@ -2104,16 +2...
a54c1399a7d74af798af0132c56bcbb531b702d5
fix test description
test/commandLineTests.js
test/commandLineTests.js
var shelljs = require('shelljs'); var path = require('path'); describe('Command Line', function () { describe('searchForExecutable', function () { it('Should run ./commandTest.sh', function (done) { var cliTestCommand = 'echo "Hello\nWorld" | ' + path.join('./', 'bin', 'index.js') + ' --reporter gitdiff -...
JavaScript
0.002419
@@ -102,89 +102,58 @@ %0A%0A -describe('searchForExecutable', function () %7B%0A it('Should run ./commandTest.sh +it('Should run approvals CLI with basic text input ', f @@ -165,26 +165,24 @@ on (done) %7B%0A - var cliT @@ -318,18 +318,16 @@ ';%0A%0A - - shelljs. @@ -393,18 +393,16 @@ %7B%0A ...
de7245c2ad454aed3d5f1f899d3462660b2d8f15
remove unecessary code
src/strings/trim/trim.js
src/strings/trim/trim.js
/** * Removes whitespace from both ends of a string. * @param {String} str The string to trim. */ function trim(str) { 'use strict'; return String.prototype.trim ? str.trim() : str.replace(/(^\s*|\s*$)/g, ''); } // Required for building process. // You can ommit if just need the function. i...
JavaScript
0.999992
@@ -237,167 +237,4 @@ ;%0A%7D%0A -%0A// Required for building process.%0A// You can ommit if just need the function.%0Aif (typeof module !== 'undefined' && module.exports) %7B%0A module.exports = trim;%0A%7D%0A
c230098a3f8098d34d8473431f1f85660987fbe6
Configure logo
src/js/app.constants.js
src/js/app.constants.js
//Copyright ©2013-2014 Memba® Sarl. All rights reserved. /*jslint browser:true*/ /*jshint browser:true*/ (function ($, undefined) { "use strict"; var fn = Function, global = fn('return this')(), app = global.app = global.app || {}; /** * IMPORTANT: Nothing in this file should be lan...
JavaScript
0.000001
@@ -2381,32 +2381,52 @@ p.tags %7C%7C %7B%7D, %7B%0A + ALT: 'alt',%0A BODY: 'b @@ -2427,24 +2427,24 @@ DY: 'body',%0A - DATA @@ -2556,24 +2556,44 @@ ID: 'id',%0A + IMG: 'img',%0A INPU @@ -2693,24 +2693,24 @@ AN: 'span',%0A - SPAN @@ -2726,24 +2726,44 @@ '%3Cspan...
b14a115ea445cf11fa268a505450c081a8fa994c
Update to use receiveDishonorToken
server/game/cards/08-MotC/MakerOfKeepsakes.js
server/game/cards/08-MotC/MakerOfKeepsakes.js
const DrawCard = require('../../drawcard.js'); const AbilityDsl = require('../../abilitydsl'); class MakerOfKeepsakes extends DrawCard { setupCardAbilities() { this.persistentEffect({ effect: AbilityDsl.effects.cardCannot('becomeDishonored') }); } } MakerOfKeepsakes.id = 'maker-of-...
JavaScript
0
@@ -245,13 +245,14 @@ ot(' -becom +receiv eDis @@ -260,10 +260,13 @@ onor -ed +Token ')%0A
a14740957979d5fa3e093bd064c6561ed9b10669
Disable qtip while dropdown is open
indico/htdocs/js/indico/jquery/dropdown.js
indico/htdocs/js/indico/jquery/dropdown.js
/* This file is part of Indico. * Copyright (C) 2002 - 2017 European Organization for Nuclear Research (CERN). * * Indico is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 3 of the * License...
JavaScript
0
@@ -1302,32 +1302,80 @@ veClass('open'); +%0A elem.removeData('no-auto-tooltip'); %0A%0A th @@ -2018,16 +2018,99 @@ 'open'); +%0A elem.data('no-auto-tooltip', true).trigger('indico:closeAutoTooltip'); %0A%0A
61f6ee4436732297508d8af2fbeda8b91bf21b29
fix tooltip so it does not get cut off by tree
src/Umbraco.Web.UI.Client/src/common/directives/components/umbtooltip.directive.js
src/Umbraco.Web.UI.Client/src/common/directives/components/umbtooltip.directive.js
(function() { 'use strict'; function TooltipDirective($timeout) { function link(scope, el, attr, ctrl) { scope.tooltipStyles = {}; scope.tooltipStyles.left = 0; scope.tooltipStyles.top = 0; function activate() { $timeout(function() { setToo...
JavaScript
0
@@ -436,68 +436,305 @@ var -viewportWidth = null;%0A var viewportHeight = null; +container = $(%22#contentwrapper%22);%0A var containerLeft = container%5B0%5D.offsetLeft;%0A var containerRight = containerLeft + container%5B0%5D.offsetWidth;%0A var containerTop = container%5...
a6dcb0869c559614ee95a5d8a2f2717198a21068
Use base directory only
fetch-data.js
fetch-data.js
#!/usr/bin/env node // vim: set ft=javascript ts=2 sts=2 sw=2 et tw=80: if (process.argv.length != 6) { console.log('Usage: ' + [ process.argv[0], process.argv[1], '<remote>', '<start>', '<end>', '<out>' ].join(' ')); process.exit(1); } var fs = require('fs'); var q = require('q'); var request = require...
JavaScript
0
@@ -1340,41 +1340,51 @@ le.s -lice(0, file.lastIndexOf('/') + 1 +plit('/').slice(0, -1).slice(0, 1).join('/' )%5D %7C
d82e7fe7595b2ea1344fd45e96eca692973b8f13
Revert "js: target-init: write to screen for feedback in slow network conditions"
share/js/dochazka-www/target-init.js
share/js/dochazka-www/target-init.js
// ************************************************************************* // Copyright (c) 2014-2017, SUSE LLC // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of...
JavaScript
0
@@ -1802,22 +1802,8 @@ (%5B%0A - 'jquery',%0A @@ -2041,15 +2041,8 @@ n (%0A - $,%0A @@ -2411,1195 +2411,530 @@ -$('#mainarea').html(%22Loading dactions%22);%0A dactionInitRoundOne();%0A $('#mainarea').html(%22Loading dforms%22);%0A dformInitRoundOne();%0A $('#maina...
459a95838c4e8136d87b8ca0d97791b19672e040
Tweak comment.
js/jsfunfuzz/error-reporting.js
js/jsfunfuzz/error-reporting.js
function confused(s) { if (jsshell) { // Magic string that jsInteresting.py looks for print("jsfunfuzz broke its own scripting environment: " + s); quit(); } } function foundABug(summary, details) { // Magic pair of strings that jsInteresting.py looks for // Break up "Found a bug: " so internal js ...
JavaScript
0
@@ -286,23 +286,28 @@ up -%22Found a bug: %22 +the following string so @@ -345,19 +345,10 @@ int +i t -his string del
9029c164eed86adf903b020b25b9b2c03291d004
Revert "Trying to catch Node 0.10.x bug"
predefined_rules/blacklist.js
predefined_rules/blacklist.js
var _ = require("lodash"); var ipaddr = require('ipaddr.js'); function IP_MATCH_ALL(list, rangeList, ip) { if(!list) return false; // Stored Parsed IP var _IP_ = ipaddr.parse(ip); // Simple Compare of Provided, Valid & Normalized version of IP with Address List if( (list.indexOf(ip) !=...
JavaScript
0
@@ -1012,63 +1012,8 @@ e) %7B -%0A console.log(%22Warning%22, e)%0A %7D%0A
955bfa49711ab3b0d13b081a2d016c3dcf9ce218
Remove redundant code
share/qbs/modules/cpp/setuprunenv.js
share/qbs/modules/cpp/setuprunenv.js
/**************************************************************************** ** ** Copyright (C) 2017 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing ** ** This file is part of Qbs. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the c...
JavaScript
0
@@ -1780,19 +1780,10 @@ fact -, product )%0A + %7B%0A @@ -1868,670 +1868,73 @@ -var installBaseDir = FileInfo.joinPaths(artifact.qbs.installRoot, artifact.qbs.installPrefix,%0A artifact.qbs.installDir);%0A var installSourceBase = artifact.qbs.installSourceBase;%0...
14d500f9f3d7decc183b6e2530154df2159308c7
Reset drag node position on drag start
services/controllers/calibration/js/Handle.js
services/controllers/calibration/js/Handle.js
class Handle { constructor(parent, x, y) { this.parent = parent; this._x = x; this._y = y; this.bounds = null; this.radius = 4; this.rootNode; this.dragNode; this.lastX, this.lastY; this.dragX = x; this.dragY = y; } g...
JavaScript
0
@@ -3156,32 +3156,215 @@ s.lastY = e.y;%0A%0A + this.dragX = this.x;%0A this.dragY = this.y;%0A this.dragNode.setAttributeNS(null, %22cx%22, this.dragX);%0A this.dragNode.setAttributeNS(null, %22cy%22, this.dragY);%0A%0A this.roo
7a1010d337e94f553874dbc307089d6703fb4b86
load single chart data from the show chart restful route
app/main.js
app/main.js
var css = require('!css!sass!autoprefixer!./css/main.scss'); // => returns compiled css code from file.scss, resolves imports and url(...)s // require('!style!css!sass!./main.scss'); require('!style!css!sass!autoprefixer!./css/main.scss'); import React from 'react' import App from './components/app.js' import Fluxxor ...
JavaScript
0
@@ -2576,319 +2576,41 @@ var -keywordsList = this.flux.store(%22SnapShotStore%22).getKeywords(chartID)%0A var publishersList = this.flux.store(%22SnapShotStore%22).getPublishers(chartID) %0A var publisherIds = publishersList.map(function(publisher) %7B%0A return publisher.id%0A %7D)%0A var route = ro...
e2a2661aad044b91f14cd5feff84d94ab2318c05
Update resource to use public url (temporary)
js/services/skl-api-resource.js
js/services/skl-api-resource.js
angular.module('SceneSkeleton') .factory("Scene", function($resource) { return $resource("http://dockervm:8081/scene/:id"); });
JavaScript
0
@@ -97,21 +97,58 @@ p:// -dockervm:8081 +skl-api-426627428.ap-southeast-2.elb.amazonaws.com /sce
cb675c3393a437146ceac96ce28d099dea7c2bcc
edit doc and long line, https://github.com/phetsims/scenery-phet/issues/515
js/util/colorProfileProperty.js
js/util/colorProfileProperty.js
// Copyright 2021, University of Colorado Boulder /** * Singleton Property<string> which chooses between the available color profiles of a simulation, such as 'default', 'project', 'basics', etc. * * The color profile names available to a simulation are specified in package.json under phet.colorProfiles (or, if not...
JavaScript
0
@@ -164,16 +164,19 @@ efault', +%0A * 'projec @@ -373,15 +373,8 @@ rst -listed colo @@ -387,27 +387,34 @@ ile -is one that +that is listed will appear -s in @@ -420,19 +420,16 @@ the sim -%0A * on star @@ -432,16 +432,19 @@ startup, +%0A * unless @@ -468,17 +468,32 @@ sim or -a +the colorProfil...
2b7adf2dab8ba8b131ea2cf1313ac6e97f8e285e
Add material loader and replace semantic segment by material paper to Catalog component
src/Catalog/Catalog.js
src/Catalog/Catalog.js
import React, { Component } from 'react' import { Link } from 'react-router' import LastHarvesting from '../LastHarvesting/LastHarvesting' import Statistics from '../Statistics/Statistics' import Percent from '../Statistics/Percent/Percent' import './Catalog.css' class Catalog extends Component { constructor(props) ...
JavaScript
0
@@ -34,16 +34,114 @@ 'react'%0A +import Paper from 'material-ui/Paper'%0Aimport CircularProgress from 'material-ui/CircularProgress'%0A import %7B @@ -164,24 +164,24 @@ act-router'%0A - import LastH @@ -883,51 +883,37 @@ r = -%3Cdiv className=%22ui active big loader%22%3E%3C/div + %3CCircularProgress size=%7B1%7D...
b92bbe5b1232dcfe0d2eff369ffe226c0a628436
Add gray transition to level end
client/src/level-ending.js
client/src/level-ending.js
'use strict'; const eventBus = require('./event-bus'); const totalTime = 3000, // ms intensity = 0.75; class LevelEnding { constructor(stage, renderer) { this._stage = stage; this._renderer = renderer; this._timeLeft = 0; } start() { console.log('LevelEnding....
JavaScript
0.000001
@@ -68,22 +68,38 @@ -totalTime = 30 +TOTAL_GRAY_TRANSITION_TIME = 5 00, @@ -112,17 +112,22 @@ -intensity +GRAY_INTENSITY = 0 @@ -679,20 +679,22 @@ -let +this._ grayFilt @@ -729,16 +729,51 @@ lter();%0A + this._grayFilter.gray = 0;%0A @@ -797,16 +797,22 @@ ers = %5B +this....
16e56917c247a464ae1b21154a43c6e6a07c5419
debug layer: default to off
code/map_data_debug.js
code/map_data_debug.js
// MAP DATA DEBUG ////////////////////////////////////// // useful bits to assist debugging map data tiles window.RenderDebugTiles = function() { this.debugTileLayer = L.layerGroup(); window.addLayerGroup("DEBUG Data Tiles", this.debugTileLayer); this.debugTileToRectangle = {}; } window.RenderDebugTiles.proto...
JavaScript
0.000003
@@ -243,16 +243,23 @@ ileLayer +, false );%0A%0A th
a074025768c4bb56ba17213292f60e3cdec39d36
Add code comments to src/tasks/sitemap-xml.js module
src/tasks/sitemap-xml.js
src/tasks/sitemap-xml.js
var util = require('util'), _ = require('lodash'), vow = require('vow'), js2xml = require('js2xmlparser'), config = require('../config'), logger = require('../logger'), levelDb = require('../level-db'); module.exports = function(target) { logger.info('Start to build "sitemap.xml" file', m...
JavaScript
0
@@ -365,16 +365,132 @@ %7C%7C %7B%7D;%0A%0A + // check if any changes were collected during current synchronization%0A // otherwise we should skip this task%0A if(! @@ -522,24 +522,24 @@ dified()) %7B%0A - logg @@ -673,24 +673,142 @@ et);%0A %7D%0A%0A + // check if any hosts were configured...
f3e85916887a96d89ace44aba50fe3b212cd9949
Save XHR object for reuse in retry func
src/jquery.ajaxretry.js
src/jquery.ajaxretry.js
/**! * jQuery Ajax Retry * * project-site: http://plugins.jquery.com/project/jquery-ajax-retry * repository: http://github.com/execjosh/jquery-ajax-retry * * @author execjosh * * Copyright (c) 2010 execjosh, http://execjosh.blogspot.com * Licenced under the terms of the MIT License * (http://github.com/execjo...
JavaScript
0
@@ -2270,43 +2270,151 @@ %0A%09%09%09 -return original_ajax_func(settings) +// Save the XHR object for reuse!%0A%09%09%09var xhr = original_ajax_func(settings);%0A%09%09%09settings.xhr = function()%7B%0A%09%09%09%09return xhr;%0A%09%09%09%7D;%0A%0A%09%09%09return xhr ;%0A%09%09
489b9ed3f4f54ca5e995c9fecbe2c1ac06550c6b
Add base components to Race dashboard
src/client/react/stages/Race/Dashboard.js
src/client/react/stages/Race/Dashboard.js
import React from 'react'; import { connect } from 'react-redux'; import { Redirect } from 'react-router-dom'; import Base from '../components/Base'; import HelpMenu from '../components/HelpMenu'; const mapStateToProps = (state, ownProps) => { return { authenticated: state.auth.login.authenticated } } @connect(...
JavaScript
0
@@ -20,16 +20,58 @@ react';%0A +import %7B Route %7D from 'react-router-dom';%0A import %7B @@ -109,16 +109,24 @@ import %7B + Switch, Redirec @@ -240,16 +240,236 @@ pMenu';%0A +import Home from '../pages/Home';%0Aimport Help from '../pages/Help';%0Aimport Instructions from '../pages/Instructions';%0Aimport Image...
d300d0402ebc0695eb295531effccc1a64acecf0
fix missing var in modelist
lib/ace/ext/modelist.js
lib/ace/ext/modelist.js
define(function(require, exports, module) { "use strict"; var modes = []; /** * Suggests a mode based on the file extension present in the given path * @param {string} path The path to the file * @returns {object} Returns an object containing information about the * suggested mode. */ function getModeForPath(pat...
JavaScript
0.000003
@@ -3988,24 +3988,28 @@ Case();%0A +var mode = new M
efde9777bdf9666959ce26ac6a89536295d602f3
Remove web stuff, we are no longer making a web app.
app/main.js
app/main.js
'use strict' require('babel-polyfill') const crypto = require('crypto') const querystring = require('querystring') require('isomorphic-fetch') // remove leading # from urlHash let urlHash = window.location.hash if (urlHash.charAt(0) === '#') urlHash = urlHash.substr(1) urlHash = querystring.parse(urlHash) if ('stat...
JavaScript
0
@@ -1,18 +1,4 @@ -'use strict'%0A%0A requ @@ -129,559 +129,25 @@ )%0A%0A%0A -// remove leading # from urlHash%0Alet urlHash = window.location.hash%0Aif (urlHash.charAt(0) === '#') urlHash = urlHash.substr(1)%0AurlHash = querystring.parse(urlHash)%0A%0Aif ('state' in urlHash) %7B%0A // check if state matches dom stor...
8f107bb966c44262b36ccef7eeda9fb7e44c3000
Add code to handle cases where zIndex returns -Infinity.
jquery.easyModal.js
jquery.easyModal.js
/** * easyModal.js v1.3.0 * A minimal jQuery modal that works with your CSS. * Author: Flavius Matis - http://flaviusmatis.github.com/ * URL: https://github.com/flaviusmatis/easyModal.js */ /*jslint browser: true*/ /*global jQuery*/ (function ($) { "use strict"; var methods = { init: function (options...
JavaScript
0
@@ -17,17 +17,17 @@ js v1.3. -0 +1 %0A* A min @@ -772,12 +772,118 @@ urn -1 + +(function (value) %7B%0A return value === -Infinity ? 0 : value + 1;%0A %7D( Math @@ -1201,16 +1201,18 @@ %7D))) +)) ;%0A
dee445515947d115616d94cfbda09cfbd4b308c0
fix confusion again
mods/linked/statuses.js
mods/linked/statuses.js
'use strict'; exports.BattleStatuses = { slp: { inherit: true, onBeforeMove: function (pokemon, target, move) { if (this.effectData.timerDecreased !== this.turn) { this.effectData.timerDecreased = this.turn; if (pokemon.getAbility().isHalfSleep) { pokemon.statusData.time--; } pokemon.statu...
JavaScript
0.00004
@@ -2260,32 +2260,80 @@ ta.movePrevented + && this.effectData.timerDecreased === this.turn ) return false;%0A
ffe30e25ea73738a0a633cf48c284f6e5047496a
Remove unused method `checkTextIsEqual`
tests/nightwatch/modules/common-functions.js
tests/nightwatch/modules/common-functions.js
'use strict'; var util = require('util'); var _ = require('lodash'); var SAVINGS_QUESTIONS = require('../modules/constants').SAVINGS_QUESTIONS; SAVINGS_QUESTIONS.ALL = SAVINGS_QUESTIONS.MONEY.concat(SAVINGS_QUESTIONS.VALUABLES); module.exports = { setAllSavingsFieldsToValue: function(client, val) { SAVINGS_QUES...
JavaScript
0
@@ -1181,405 +1181,8 @@ %7D,%0A%0A - checkTextIsEqual: function(client, field, expectedText, xpath) %7B%0A if(xpath) %7B // this may come in handy using CSS selectors later on%0A client.useXpath();%0A %7D%0A client.getText(field, function(result) %7B%0A this.assert.equal(result.value, expectedText,...
26b249ad2dd04372aa56103ac59f9ece2eb58f0c
Fix short number formatting for numbers above million in web UI
app/javascript/flavours/glitch/util/numbers.js
app/javascript/flavours/glitch/util/numbers.js
import React, { Fragment } from 'react'; import { FormattedNumber } from 'react-intl'; export const shortNumberFormat = number => { if (number < 1000) { return <FormattedNumber value={number} />; } else { return <Fragment><FormattedNumber value={number / 1000} maximumFractionDigits={1} />K</Fragment>; } ...
JavaScript
0.000005
@@ -204,16 +204,38 @@ %7D else + if (number %3C 1000000) %7B%0A r @@ -331,15 +331,131 @@ gment%3E;%0A + %7D else %7B%0A return %3CFragment%3E%3CFormattedNumber value=%7Bnumber / 1000000%7D maximumFractionDigits=%7B1%7D /%3EM%3C/Fragment%3E;%0A %7D%0A%7D;%0A
46c93d8b244a8ddea9706d567ece3723e59fe0d2
Update choprifier.js
production_site/choprifier.js
production_site/choprifier.js
var Data = { starts : [ "Experiential truth ", "Coffee ", "Absinthe ", "The physical world ", "Non-judgment ", "Parsimony ", "Clarity ", "Erudition ", "Primacy ", "Apostasy ", "Infinity ", "Calamity ", "Honesty ", "Aperture science ", "Temporal quaquaversal...
JavaScript
0
@@ -157,24 +157,45 @@ %22Clarity %22,%0A + %22Heterodoxity %22,%0A %22Eruditi
0c2e7c68b6f7c62c2d279acbb2536fa0933bbbc0
Update choprifier.js
production_site/choprifier.js
production_site/choprifier.js
var Data = { starts : [ "Experiential truth ", "The physical world ", "Non-judgment ", "Infinity ", "Unity ", "Good health ", "A clean brain ", "A flexible thought pattern ", "Insightful visage ", "Mindfulness in action ", "Totality ", "Dynamic mutative creation ", ...
JavaScript
0
@@ -272,24 +272,44 @@ Totality %22,%0A + %22Insoucinace %22,%0A %22Dynamic
fcb3346d4cd6839293f7bb12bc3a1fcc7abbba4f
fix up tests
test/enterprise/index.js
test/enterprise/index.js
var Code = require('code'), Lab = require('lab'), lab = exports.lab = Lab.script(), describe = lab.experiment, before = lab.before, after = lab.after, it = lab.test, expect = Code.expect; var server; before(function(done) { require('../mocks/server')(function(obj) { server = obj; done(); })...
JavaScript
0.000007
@@ -394,25 +394,21 @@ to the -enterpris +onsit e page', @@ -499,25 +499,21 @@ url: '/ -enterpris +onsit e'%0A %7D
cdcc4e39a8c2ad558a994ed698fadcf1dd90d338
remove unnecessary error notification
webapps/ui/tasklist/client/scripts/api/index.js
webapps/ui/tasklist/client/scripts/api/index.js
'use strict'; var angular = require('camunda-commons-ui/vendor/angular'), CamSDK = require('camunda-commons-ui/vendor/camunda-bpm-sdk-angular'); var apiModule = angular.module('cam.tasklist.client', []); apiModule.value('HttpClient', CamSDK.Client); apiModule.value('CamForm', CamSDK.Form); apiModule.run([ '$roo...
JavaScript
0
@@ -296,454 +296,8 @@ );%0A%0A -apiModule.run(%5B '$rootScope', 'Notifications', '$translate', function($rootScope, Notifications, $translate) %7B%0A $rootScope.$on('authentication.login.required', function() %7B%0A $translate(%5B%0A 'SESSION_EXPIRED',%0A 'SESSION_EXPIRED_MESSAGE'%0A %5D).then(functio...
0c30aa74feb27379e668f9331338920803258b44
configure profile and gitstamp schemas
db/schema.js
db/schema.js
JavaScript
0
@@ -0,0 +1,592 @@ +// requiring mongoose dependency%0Avar mongoose = require('mongoose')%0A%0A// instantiate a name space for our Schema constructor defined by mongoose.%0Avar Schema = mongoose.Schema,%0A ObjectId = Schema.ObjectId%0A%0A// defining schema for reminders%0Avar GitstampSchema = new Schema(%7B%0A data:...
a3bf004a4763b43901fa6400ae77556a85f6a70d
Fix ListHeading
js/components/ListHeading.react.js
js/components/ListHeading.react.js
import React from "react"; import { Link } from "react-router"; import styled from 'styled-components'; const Wrapper = styled.div` padding: 1em; margin: 0; border-bottom: 1px solid $light-grey; text-align: center; width: 100%; position: relative; > h2 { padding: 0; margin: 0; } `; const Icon = styled.svg` height:...
JavaScript
0.000001
@@ -98,16 +98,55 @@ ents';%0A%0A +import constants from %22../constants%22;%0A%0A const Wr @@ -220,18 +220,29 @@ id $ +%7Bconstants. light --g +G rey +%7D ;%0Ate
0d8e44a3039084008c5cc3a4033a0f85709fd538
remove useless code
src/js/jump-to-const.js
src/js/jump-to-const.js
__$__.JumpToConstruction = { ClickElementContext: {}, ClickElement: {}, GraphData: {nodes: [], edges: []} }; /** * if you click on a node or edge, this function is executed. */ __$__.JumpToConstruction.ClickEventFunction = function(param) { // choose node if (param.nodes.length) { __$__....
JavaScript
0.006635
@@ -649,77 +649,8 @@ e);%0A - document.getElementById('context').textContent = 'Use Context';%0A%0A %0A
b6cb27534eac0073c369223eb87b173c52340c88
Remove getInitialData method #56
mixins/data-fetch.js
mixins/data-fetch.js
Cosmos.mixins.DataFetch = { /** * Bare functionality for fetching server-side JSON data inside a Component. * * Props: * - dataUrl: A URL to fetch data from. Once data is received it will be * set inside the Component's state, under the data key, and * will cause a reacti...
JavaScript
0
@@ -1785,310 +1785,8 @@ %7D,%0A - getInitialData: function() %7B%0A // The default data object is an empty Object. A List Component would%0A // override initialData with an empty Array and other Components might want%0A // some defaults inside the initial data%0A return this.initialData !== undefined ? t...
343d0c0dd1bd5497d5581cf4ca6b91a35ff9c858
Remove firebase details
src/config/constants.js
src/config/constants.js
import * as firebase from 'firebase'; import FirebaseImageUploader from 'firebase-image-uploader' const config = { apiKey: "AIzaSyDMkJOU44LTPfwIHDNYaG7SihfeQnYhvMw", authDomain: "mixmeals-144307.firebaseapp.com", databaseURL: "https://mixmeals-144307.firebaseio.com", storageBucket: "mixmeals-144307.appspot.com...
JavaScript
0
@@ -124,201 +124,66 @@ y: %22 -AIzaSyDMkJOU44LTPfwIHDNYaG7SihfeQnYhvMw%22,%0A authDomain: %22mixmeals-144307.firebaseapp.com%22,%0A databaseURL: %22https://mixmeals-144307.firebaseio.com%22,%0A storageBucket: %22mixmeals-144307.appspot.com +%22,%0A authDomain: %22%22,%0A databaseURL: %22%22,%0A storageBucket: %2...
a19deb5728c60e9b5fbc3f69c3b0a896172f0043
Add comment explaining funky math
shared/chat/conversation/list/index.native.js
shared/chat/conversation/list/index.native.js
// @flow import * as Constants from '../../../constants/chat' import React, {Component} from 'react' import {withPropsOnChange} from 'recompose' import messageFactory from '../messages' import {Box, NativeScrollView} from '../../../common-adapters/index.native' // $FlowIssue import FlatList from '../../../fixme/Lists/F...
JavaScript
0
@@ -891,16 +891,76 @@ dex + 1) + // adding instead of subtracting because of reversed index %0A con
53e659241d925ba89e1469461c970f20819d6372
Update docs
source/decorators/EntryCollection.js
source/decorators/EntryCollection.js
"use strict"; var instanceSearching = require("../tools/searching-instance.js"); /** * Find entries by searching properties/meta * When used within a group, that group's entries are also searched' * @param {Archive|Group} groupParent The target archive or group * @param {string} check Information to check (id/pro...
JavaScript
0.000001
@@ -392,16 +392,42 @@ rch with + (not needed for check=id) %0A * @par @@ -1857,24 +1857,245 @@ on(inst) %7B%0A%0A + /**%0A * Find an entry by its ID%0A * @param %7BString%7D id The ID to search for%0A * @returns %7Bnull%7CEntry%7D Null if not found, or the Entry instance%0A * @...
04e08b23e8d6f35b23bca9d0362681a21507fe49
Allow omitting options for tilize
modules/tilize-image.js
modules/tilize-image.js
'use strict'; var os = require('os') var fs = require('fs') var im = require('imagemagick') var path = require('path') var gdal = require('gdal') var async = require('async') var imgMeta = require('./image-meta') var geoCoords = require('./geo...
JavaScript
0.000004
@@ -826,16 +826,43 @@ lback)%7B%0A + options = options %7C%7C %7B%7D;%0A var ti
a2082abdaa31fd023d111a787733bb71055cbdd6
Trim slug before inserting dashes
src/config/constants.js
src/config/constants.js
export const liveRootUrl = 'https://bolg-app.herokuapp.com/posts/'; export const states = { LOADING: 0, EDITING: 1, SAVED: 2, ERROR: 3, EDITING_OFFLINE: 4, SAVED_OFFLINE: 5, PUBLISHED: 6, }; export const mapsAPIKey = 'AIzaSyBADvjevyMmDkHb_xjjh3FOltkO2Oa8iAQ'; export const sizes = [ { width: 2560,...
JavaScript
0.000001
@@ -628,16 +628,28 @@ g, ' ')%0A + .trim()%0A .rep
6b1661f1e26189ef25f39d2c6394d69531d2fd9e
Remove double slash from path
src/js/h5p-overwrite.js
src/js/h5p-overwrite.js
H5P.getLibraryPath = function (library) { return H5PIntegration.url + '/' + library.split('-')[0]; }; H5P.getPath = function (path, contentId) { var hasProtocol = function (path) { return path.match(/^[a-z0-9]+:\/\//i); }; if (hasProtocol(path)) { return path; } var prefix; if (contentId !== un...
JavaScript
0
@@ -367,17 +367,16 @@ /content -/ ';%0A %7D%0A
a94583dd77e3b4a982d734a016b96802c9b4ab17
Fix icons order, and warnings about svg properties
shared/components/grid-overlay/GridOverlay.js
shared/components/grid-overlay/GridOverlay.js
/* eslint-disable react/no-array-index-key */ import React, { Component, PropTypes } from 'react'; import autobind from 'core-decorators/lib/autobind'; import s from './GridOverlay.scss'; // Key to store visibility state of the grid overlay const LOCAL_STORAGE_KEY_HORIZONTAL = '_devtoolsHorizontalGridVisible'; const L...
JavaScript
0
@@ -3339,34 +3339,33 @@ ke=%22none%22 stroke --w +W idth=%221%22 fill=%22n @@ -3365,34 +3365,33 @@ fill=%22none%22 fill --r +R ule=%22evenodd%22 tr @@ -3391,102 +3391,8 @@ odd%22 - transform=%22translate(7.000000, 7.000000) rotate(-270.000000) translate(-7.000000, -7.000000)%22 %3E%0A @@ -3911,10 +3911,9 @@ ro...
a1395312115ac68d7ebc2eab7d4b57cb642ee635
Update FacebookLocales.js
src/FacebookLocales.js
src/FacebookLocales.js
"use strict" import * as Facebook from "../src/Facebook.js" import _ from 'lodash' // Facebook blanket locales. List of countries is generated by common sense. // @see <a href="https://developers.facebook.com/docs/internationalization#locales">Locales and Languages Supported by Facebook</a> let facebookVirtual...
JavaScript
0
@@ -114,40 +114,32 @@ ales -. List of countries is generated +, mapped to real locales by
db76dac37ebeb7cd7e349cf7bd1c9dc2b2fb9291
remove chars
lib/base.js
lib/base.js
module.exports = Base function Base() {} Base.prototype._getAll = function (mw) { return mw.stack.map(function (fn) { return fn.$of }) } Base.prototype._disableAll = function (mw) { mw.stack.forEach(function (fn) { fn.$of.disable() }) return this } Base.prototype._remove = function (mw, name) { ...
JavaScript
0.000008
@@ -723,17 +723,17 @@ item.$of -%C2%A0 + %7C%7C item%0A @@ -961,17 +961,16 @@ me%0A - %7C%7C node. @@ -1004,9 +1004,9 @@ ame) -%C2%A0 + %7B%0A
679cebec7b720ab5368b618495b96d3022d95680
Fix an error on admin UI due to improper variable handling
solr/webapp/web/js/angular/controllers/index.js
solr/webapp/web/js/angular/controllers/index.js
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this fi...
JavaScript
0
@@ -994,24 +994,25 @@ if ( +%22 username in data @@ -1003,16 +1003,17 @@ username +%22 in data
139998a09acff48252000ca319150c3d0670371f
migrate vendor module
modules/vendor/index.js
modules/vendor/index.js
const fs = require('fs-extra') const path = require('path') const path = require('path') module.exports = function nuxtAxios(options) { // Register plugin this.addPlugin({src: path.resolve(__dirname, 'plugin.js'), options}) } module.exports.meta = require('./package.json') module.exports = (nuxt) => { if (!...
JavaScript
0.000002
@@ -58,38 +58,8 @@ ')%0A%0A -const path = require('path')%0A%0A modu @@ -107,192 +107,25 @@ %7B%0A -// Register plugin%0A this.addPlugin(%7Bsrc: path.resolve(__dirname, 'plugin.js'), options%7D)%0A%0A%7D%0A%0Amodule.exports.meta = require('./package.json')%0A%0A%0Amodule.exports = (nuxt) =%3E %7B%0A if (!nuxt +i...
94c101296ff5920179664558300271be645871ac
change mobile controller to use a mobile service
src/js/helper/mobile.js
src/js/helper/mobile.js
angular.module('n52.core.mobile', []) .controller('IsMobileCtrl', ['$scope', function ($scope) { var check = false; (function (a) { if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle...
JavaScript
0
@@ -78,16 +78,175 @@ scope', +'isMobile',%0A function ($scope, isMobile) %7B%0A $scope.isMobile = isMobile();%0A %7D%5D)%0A .constant('isMobile', %0A function @@ -247,22 +247,16 @@ nction ( -$scope ) %7B%0A @@ -2423,33 +2423,22 @@ -$scope.isMobi...
12c75f5b0b686cf1bd4739163eeb8b01b3731fb9
bump distribution for dist/snuggsi.min.es.js
dist/snuggsi.min.es.js
dist/snuggsi.min.es.js
const HTMLLinkElement=function(e){const t={},n=document.querySelector("link#"+e+"[rel=import], link[href*="+e+"][rel=import]"),s=(e,t)=>HTMLImports&&!HTMLImports.useNative?HTMLImports.whenReady(e=>t({target:n})):n.addEventListener(e,t);return Object.defineProperties(t,{addEventListener:{writable:!1,value:function(e,o){...
JavaScript
0
@@ -314,17 +314,17 @@ n(e, -o +r )%7Bn?s(e, o):o @@ -323,12 +323,12 @@ s(e, -o):o +r):r (%7Bta @@ -601,14 +601,14 @@ ODE? -o +r (e): -r +o (e.a @@ -644,17 +644,17 @@ _REJECT, -o +r =e=%3En.te @@ -682,17 +682,17 @@ push(e), -r +o =e=%3EArra @@ -3428,20 +3428,14 @@ ent= -(e,t=window. +e=%3Et=%3E cust @@ -34...
411675e4cc68d4510dc0fc208df035cef6fc452f
Fix mistake in title of rate control
source/js/components/rate-control.js
source/js/components/rate-control.js
'use strict'; /** * @file rate-control.js * * Rate control */ import $ from 'jquery'; import Control from './control'; import ControlText from './control-text'; import Cookie from '../utils/cookie'; /** * @param {Player} player Main player * @class RateControl */ class RateControl extends Control { constructo...
JavaScript
0.091741
@@ -998,17 +998,16 @@ %D1%8C %D1%81%D0%BA%D0%BE%D1%80%D0%BE%D1%81 -%D0%B8 %D1%82%D1%8C %D0%BF%D1%80%D0%BE%D0%B8%D0%B3
54f320c1227423a7000de6c2668e3b7d300cd6cc
set inital state
src/components/Rankinglist/Rankinglist.js
src/components/Rankinglist/Rankinglist.js
import React from 'react'; import styles from './Rankinglist.less'; import withStyles from '../../decorators/withStyles'; import CircleSpinner from '../CircleSpinner/CircleSpinner'; @withStyles(styles) class Rankinglist extends React.Component { constructor() { super(); } render() { const playersList =...
JavaScript
0.000002
@@ -272,16 +272,435 @@ uper();%0A + this.state = %7B%0A ranking: %5B%7B%0A place: 1,%0A name: 'Sindre %C3%98ye Svendby',%0A points: 237%0A %7D,%0A %7B%0A place: 2,%0A name: 'H%C3%A5kon Tveitan',%0A points: 236%0A %7D,%0A %7B%0A ...
15c4dd56990130d3e753c705d6d035d1e8167f86
Update dynamic-simple-topedge-hints.js (#741)
showcase/axes/dynamic-simple-topedge-hints.js
showcase/axes/dynamic-simple-topedge-hints.js
// Copyright (c) 2016 - 2017 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...
JavaScript
0
@@ -2306,16 +2306,22 @@ l: Hint. +ALIGN. AUTO, ve
2178ed2b83bdd46bb5a5e7e595735842c6b783e9
Tweak a couple test things
test/features/plugins.js
test/features/plugins.js
import test from 'ava'; import mix from '../../src/index'; import WebpackConfig from '../../src/builder/WebpackConfig'; import sinon from 'sinon'; test('mix can be extended with new functionality as a callback', t => { let registration = sinon.spy(); mix.extend('foobar', registration); let config = new W...
JavaScript
0
@@ -295,55 +295,8 @@ );%0A%0A - let config = new WebpackConfig().build();%0A%0A @@ -571,55 +571,8 @@ );%0A%0A - let config = new WebpackConfig().build();%0A%0A @@ -846,20 +846,19 @@ eturn %5B' -some +npm -package @@ -864,35 +864,8 @@ e'%5D; -%0A%0A t.pass(); %0A @@ -926,55 +926...
79b56b4c6a86c450681d1866c6b78515d16ff926
Update it for JQuery 3.x the selector issue
jquery.scrolling.js
jquery.scrolling.js
/* * jquery.scrollIntoView * * Version: 0.1.20150317 * * Copyright (c) 2015 Darkseal/Ryadel * based on the work of Andrey Sidorov * licensed under MIT license. * * Project Home Page: * http://darkseal.github.io/jquery.scrolling/ * * GitHub repository: * https://github.com/darkseal/jquery.scrolling/ * * ...
JavaScript
0
@@ -1025,17 +1025,447 @@ InView;%0A + %0A //https://stackoverflow.com/a/46078814%0A //JQuery 3.x didn't send selector %0A //$arsalanshah%0A %0A $.fn._init = $.fn.init%0A $.fn.init = function( selector, context, root ) %7B%0A return (typeof selector === 'string') ? new $.fn._init(selector, context, root...
17dc2fe95ab3c13ece4856d2d6937388f3beda1a
Rename Base Class
lib/base.js
lib/base.js
/*! Copyright (c) 2016 Mikal Stordal | MIT Licensed */ 'use strict' /** * The base of all connections. * * @private */ class Connection { constructor () { // Add instance properties this.id = undefined this.channel = undefined this._started = false this._options = {} } /** * Sets an o...
JavaScript
0.000001
@@ -101,16 +101,41 @@ ons.%0A *%0A + * @class BaseConnection%0A * @priv @@ -148,16 +148,20 @@ /%0Aclass +Base Connecti @@ -4613,16 +4613,20 @@ ports = +Base Connecti
8ebef2bfcadadffcc9f767e047d1a9143627c1be
fix stats command not working when owner id was invalid
commands/misc/stats.js
commands/misc/stats.js
/** * @file stats command * @author Sankarsan Kampa (a.k.a k3rn31p4nic) * @license GPL-3.0 */ exports.exec = async (Bastion, message) => { let owners = []; for (let userID of Bastion.credentials.ownerId) { let user = await Bastion.fetchUser(userID).catch(() => {}); owners.push(user.tag); } let sha...
JavaScript
0.000132
@@ -275,16 +275,26 @@ %7B%7D);%0A + if (user) owners. @@ -3152,32 +3152,39 @@ wners.join('%5Cn') + %7C%7C '-' ,%0A inli
f223aa83ef10b7db3f703b9f17ed696e268e7410
Clear timeout in NotificationView on hide.
source/Vibrato/views/panels/NotificationView.js
source/Vibrato/views/panels/NotificationView.js
// -------------------------------------------------------------------------- \\ // File: NotificationView.js \\ // Module: View \\ // Requires: Core, Foundation, View.js ...
JavaScript
0
@@ -1066,16 +1066,35 @@ l: '',%0A%0A + _timer: null,%0A%0A show @@ -1328,32 +1328,62 @@ f ( timeout ) %7B%0A + this._timer =%0A NS.R @@ -1490,32 +1490,149 @@ : function () %7B%0A + if ( this._timer ) %7B%0A NS.RunLoop.cancel( this._timer );%0A this._ti...
cd57827f754b9b66bf125feb1313440a374d1ef7
Fix WFS service metadata handling
lib/helpers/convertDataset/iso19139/services.js
lib/helpers/convertDataset/iso19139/services.js
const { get, pick, chain } = require('lodash'); const { getAllKeywords, getAllOnLineResources } = require('./'); const { OnlineResource } = require('./onlineResources'); function isWFSService(record) { const title = get(record, 'identificationInfo.citation.title', '').toLowerCase(); const keywordsStr = getAllKeywo...
JavaScript
0.000004
@@ -736,16 +736,127 @@ (record) +.map(resource =%3E (%7B%0A name: resource.name,%0A href: resource.linkage,%0A protocol: resource.protocol,%0A %7D)) ;%0A%0A con