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
0b4dafa2b5fabd00f94c1796f25a7b2aff5a23ed
configure cssmin
gruntfile.js
gruntfile.js
module.exports = function (grunt) { require('load-grunt-tasks')(grunt); grunt.initConfig({ jshint: { all: ['gruntfile.js', 'angular-defer-cloak.js'] }, uglify: { dist: { files: { 'angular-defer-cloak.min.js': ['angular-defer-cloak.js'] } ...
JavaScript
0.000001
@@ -161,24 +161,113 @@ r-cloak.js'%5D +,%0A options: %7B%0A globals: %7B%0A angular: true%0A %7D%0A %7D %0A %7D,%0A @@ -411,24 +411,210 @@ %7D%0A %7D,%0A + cssmin: %7B%0A target: %7B%0A files: %5B%7B%0A expand: true,%0A ...
f91384602f20af852c67b5a0d27e1ac722ee1628
Debug alarm clock trigger time
src/modules/SebastiaanLuca/AlarmClock/src/AlarmClock.js
src/modules/SebastiaanLuca/AlarmClock/src/AlarmClock.js
var debug = require('debug')('SebastiaanLuca:AlarmClock:AlarmClock'); var _ = require('lodash'); var Moment = require('moment'); var Schedule = require('node-schedule'); var Volume = require('modules/SebastiaanLuca/Volume/src/Volume.js'); // module.exports = function AlarmClock(options, player) { var alarmT...
JavaScript
0.000001
@@ -1660,17 +1660,74 @@ iggered! -' + It is now %25s', moment().format('MMMM Do YYYY, h:mm:ss a') );%0A
3f1f8489dc7d95a1a3e50a8eb40856c0116c36d7
update example
example/example.js
example/example.js
'use strict'; const Pornsearch = require('../').search('tits'); Pornsearch.driver('sex').gifs() .then((gifs) => { console.log(gifs); return Pornsearch.videos(); }) .then(videos => console.log(videos));
JavaScript
0.000001
@@ -53,14 +53,8 @@ rch( -'tits' );%0A%0A
01f4bbd020f12d25f17b5dc9cff435adbc379649
Add a resize function to noteViews and trigger it when window is resized (and the note has been rendered).
js/note_embed.js
js/note_embed.js
(function() { window.dc = window.dc || {}; dc.embed = dc.embed || {}; var notes = dc.embed.notes = dc.embed.notes || {}; var _ = dc._ = window._.noConflict(); var $ = dc.$ = dc.jQuery = window.jQuery.noConflict(true); dc.embed.loadNote = function(embedUrl, opts) { var options = opt...
JavaScript
0
@@ -239,24 +239,198 @@ t(true);%0A %0A + var resizeNotes = _.debounce(function()%7B%0A _.each(notes, function(note, id)%7B if (note.renderedWidth) note.resize(); %7D);%0A %7D, 250);%0A %0A $(window).resize(resizeNotes);%0A %0A dc.embed.l @@ -462,24 +462,24 @@ rl, opts) %7B%0A - var opti @@ -1563,32 +...
f4baef25ee52eae2615c5db2f8dcf3d8f45f4493
make secondary text colors match iOS in BusLine
views/transportation/bus/bus-line.js
views/transportation/bus/bus-line.js
// @flow import React from 'react' import {View, StyleSheet, Text} from 'react-native' import type {BusLineType} from './types' import getScheduleForNow from './get-schedule-for-now' import getSetOfStopsForNow from './get-set-of-stops-for-now' import zip from 'lodash/zip' import head from 'lodash/head' import last fro...
JavaScript
0.000001
@@ -988,32 +988,40 @@ color: c.ios +Disabled Text,%0A %7D,%0A bus @@ -1634,32 +1634,40 @@ color: c.ios +Disabled Text,%0A paddin @@ -2384,16 +2384,24 @@ r: c.ios +Disabled Text,%0A
a00e95a92571c18182c8d0d72f2015dd3348a355
Update mojang.username
lib/username.js
lib/username.js
'use strict'; const https = require('https'); function username(usernames, date) { date = date || Date.now() if (!Array.isArray) usernames = [ usernames ]; return new Promise(function(resolve, reject) { https.request({ method: 'POST', hostname: 'api.mojang.com', path: '/profiles/minecraf...
JavaScript
0.000007
@@ -14,21 +14,23 @@ %0A%0Aconst -https +request = requi @@ -33,21 +33,26 @@ equire(' -https +./_request ');%0A%0Afun @@ -70,21 +70,16 @@ ame(user -names , date) @@ -84,44 +84,14 @@ ) %7B%0A - date = date %7C%7C Date.now()%0A%0A if ( -! Arra @@ -103,38 +103,96 @@ rray -) +( user -names = %5B usernames ...
4ba7557e952269314f34ee8233f12d282e8c794b
use https in favour of http for the table of contents
content/proceedings/proc_links.js
content/proceedings/proc_links.js
function proc_versions() { var versions = ['2021', '2020', '2019', '2018', '2017', '2016', '2015', '2014', '2013','2011','2010', '2009', '2008']; var proc_url = 'http://conference.scipy.org/proceedings/scipy'; document.write('<ul id="navibar">'); for (i=0; i < versions.length; i++) { ...
JavaScript
0
@@ -185,16 +185,17 @@ = 'http +s ://confe
710bce1e98b52e3a687fc32986779eb923489731
allow for validation values to just be true
lib/validate.js
lib/validate.js
module.exports = function (requestQuery, validation) { var validator = validation.validator; var callback = validation.callback || function () { }; var validated; // Allow for catchall validation if (validator === true) { validated = true; } if (!validated) { validated = Ob...
JavaScript
0.00008
@@ -607,32 +607,118 @@ %0A %7D%0A%0A + if (validateValue === true) %7B%0A return true;%0A %7D%0A%0A if (
51f9718e380cfc8ea7592faa85c1f9e3dd7adf03
Remove whitespace
app/js/controllers/stats.js
app/js/controllers/stats.js
'use strict'; angular.module('OldSchool') .controller('StatsCtrl', ['$scope', '$http', 'XP', function ($scope, $http, XP) { $scope.skills = { 1: [ 'attack', 'strength', 'defence', 'ranged', 'prayer', ...
JavaScript
0.999999
@@ -933,24 +933,16 @@ viant';%0A - %0A
602c3b90c95c4920843cacdf7402e1da935d3fec
Add memo validation rules adapted from Stellar Laboratory
src/lib/Validate.js
src/lib/Validate.js
import _ from 'lodash'; import directory from '../directory'; // Some validation regexes and rules in this file are taken from Stellar Laboratory // Do not take code out from this file into other files // Stellar Laboratory is licensed under Apache 2.0 // https://github.com/stellar/laboratory const Validate = { pub...
JavaScript
0
@@ -289,16 +289,228 @@ ratory%0A%0A +// First argument is always input%0A%0Aconst RESULT_EMPTY = %7B%0A ready: false,%0A%7D%0Aconst RESULT_VALID = %7B%0A ready: true,%0A%7D%0A%0Afunction result(errorMessage) %7B%0A return %7B%0A ready: false,%0A message: errorMessage,%0A %7D%0A%7D%0A%0A const Va @@ -1117,16...
aac2930ccf307b7baba2f49f05be63adc58d98e0
Update svg.js
html1/svg/svg.js
html1/svg/svg.js
document.getElementById("id_logic_version").innerHTML = "Logic = 2019.12.02.1"; document.getElementById("id_cerere", request_clicked); function ok_f(p) { if (p == "granted") window.addEventListener("deviceorientation", on_gyro_data_uab); else alert("Nu am primit aprobare"); } function not_ok_f(p)...
JavaScript
0.000001
@@ -109,16 +109,42 @@ _cerere%22 +).addEventListener(%22click%22 , reques
eabfefb307e575c0ae53026e7d86060f7ef34532
remove manual router setup (#1548)
addon-test-support/index.js
addon-test-support/index.js
import { get } from '@ember/object'; import { getContext, settled } from '@ember/test-helpers'; import Promise from 'rsvp'; import Test from 'ember-simple-auth/authenticators/test'; const SESSION_SERVICE_KEY = 'service:session'; const TEST_CONTAINER_KEY = 'authenticator:test'; function ensureAuthenticator(owner) { ...
JavaScript
0
@@ -776,85 +776,8 @@ Y);%0A - owner.setupRouter(); // router must initialize fully before authentication%0A en
213ffcb9118f48ce5315a9fd54731a23f448eb66
Update vectorLength
fiesta/common.js
fiesta/common.js
/* Common Fiesta functions Here is a hodgepodge of Fiesta functions. */ // Does my browser support Fiesta? Fiesta.checkSupport = function() { var canvas = !!document.createElement("canvas").getContext; var audio = !!document.createElement("audio").canPlayType; return (canvas && audio); }; // Make a GUID Fiesta._g...
JavaScript
0
@@ -1481,13 +1481,49 @@ )%0A%09%09 -k = 0 +return Fiesta.pointDistance2D(0, 0, i, j) ;%0A%09r
0e70e57be0b6a8d7c648b0208e40dcf9236f7c14
change file names
gruntfile.js
gruntfile.js
module.exports = function(grunt){ grunt.initConfig({ /* concat: { options: { seperator: ";" }, target: { src: [], dest: "dest/main.js" } }, */ uglify: { options: { mangle: true, compress: true, sourceMap: 'dest/beagle.map'...
JavaScript
0.000003
@@ -306,20 +306,20 @@ est/ -beagle +localDB .map' -, %0A%09%09%09 @@ -356,14 +356,15 @@ src/ -Beagle +localDB .js' @@ -385,14 +385,15 @@ est/ -beagle +localDB .min
735c7caaae4c91ee04cb48e1caf59d8d574ae632
Fix typo for sb3 test files
test/integration/scratch-tests.js
test/integration/scratch-tests.js
/* global vm, render, Promise */ const {Chromeless} = require('chromeless'); const test = require('tap').test; const path = require('path'); const fs = require('fs'); const chromeless = new Chromeless(); const indexHTML = path.resolve(__dirname, 'index.html'); const testDir = (...args) => path.resolve(__dirname, 'scra...
JavaScript
0.000011
@@ -4201,17 +4201,16 @@ i.endsWi -d th('.sb3
aefc540db1a8b323d00bd7ded7b82e797b0c7200
add help for import
cli/commands.js
cli/commands.js
module.exports = { app: { default: true, desc: 'Create a new JHipster application based on the selected options' }, aws: { desc: 'Deploy the current application to Amazon Web Services' }, 'aws-containers': { desc: 'Deploy the current application to Amazon Web Services...
JavaScript
0
@@ -1340,32 +1340,55 @@ 'jdlFiles...'%5D,%0A + cliOnly: true,%0A desc: 'C @@ -1439,16 +1439,765 @@ rgument' +,%0A help: %60%0A --skip-install # Do not automatically install dependencies Default: false%0A --db # Provide DB option for the...
e64e4d446462477dff3c5347e7d3b5f3cb2044b5
Fix bug to make schedule url
assets/javascripts/discourse/initializers/discourse-calendar.js.es6
assets/javascripts/discourse/initializers/discourse-calendar.js.es6
import { withPluginApi } from "discourse/lib/plugin-api"; function initializeDiscourseCalendar(api) { const siteSettings = api.container.lookup("site-settings:main"); if (!siteSettings.calendar_enabled) return; api.onPageChange((url, title) => { const $button = $(".calendar-toggle-button"); if($button...
JavaScript
0.000001
@@ -293,24 +293,83 @@ le-button%22); +%0A const postfixUrl = url.replace(Discourse.BaseUri, %22%22); %0A%0A if($bu @@ -975,33 +975,40 @@ tializeCalendar( -u +postfixU rl, $div);%0A %7D); @@ -1039,17 +1039,24 @@ alendar( -u +postfixU rl, $div @@ -1477,16 +1477,33 @@ url: +Discourse.getURL( %22/calend ...
700cb238c41ea02cc90914dea929476b56aa926c
Remove subscription that did not do anything
src/GeoLocationForPhoneGap/widget/GeoLocationForPhoneGap.js
src/GeoLocationForPhoneGap/widget/GeoLocationForPhoneGap.js
define([ "mxui/widget/_WidgetBase", "mxui/dom", "dojo/dom-class", "dojo/dom-construct", "dojo/_base/declare" ], function(_WidgetBase, mxuiDom, dojoClass, dojoConstruct, declare) { "use strict"; return declare('GeoLocationForPhoneGap.widget.GeoLocationForPhoneGap', _WidgetBase, { buttonLabel: ...
JavaScript
0
@@ -488,32 +488,8 @@ ull, -%0A _objSub : null, %0A%0A @@ -907,17 +907,16 @@ function - (obj, ca @@ -933,28 +933,24 @@ -if ( this._objSub @@ -950,488 +950,15 @@ _obj -Sub) %7B%0A this.unsubscribe(this._objSub);%0A this._objSub = null;%0A %7D%0A%0A ...
1d8c5d0d92a79a9713887a1651c54f4ce5c06d88
Fix incorrect promise chain return
angular-quasar.js
angular-quasar.js
function unpackHttpRes(fn, value) { if (angular.isObject(value) && value.data && value.status && value.headers && value.config && value.statusText && angular.isFunction(value.headers)) { fn(value.data, value.status, value.headers, value.config); } else { fn(value); } } angular.module('jutaz.quasar', []).config(...
JavaScript
0.99867
@@ -779,32 +779,39 @@ tion (fn) %7B%0A%09%09%09%09 +return promise.then(unp @@ -843,36 +843,16 @@ , fn));%0A -%09%09%09%09return promise;%0A %09%09%09%7D;%0A%09%09 @@ -880,32 +880,39 @@ tion (fn) %7B%0A%09%09%09%09 +return promise.then(nul @@ -954,28 +954,8 @@ ));%0A -%09%09%09%09return promise;%0A %09%09%09%...
8476f6c9de440c1c5c14acdfdacf9ea118a970fc
fix jshint error
gruntfile.js
gruntfile.js
var GittyCache = require('./tasks/utils/gitty-cache'); module.exports = function(grunt) { require('load-grunt-config')(grunt); require('load-grunt-tasks')(grunt); grunt.loadTasks('tasks'); grunt.loadTasks('backbone.marionette/tasks'); GittyCache.setReleaseTag(grunt.option('TAG')); grunt.config.merge({ ...
JavaScript
0.000001
@@ -1421,32 +1421,66 @@ options: %7B%0A + /*jshint ignore:start*/%0A resUrl @@ -1565,16 +1565,48 @@ ME.md',%0A + /*jshint ignore:end*/%0A
89388e97d77002c45777714ffae489664de8a00c
fix ie10 scroller issue
aura-components/src/main/components/ui/treeNode/treeNodeRenderer.js
aura-components/src/main/components/ui/treeNode/treeNodeRenderer.js
/* * Copyright (C) 2012 salesforce.com, inc. * * 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 ...
JavaScript
0
@@ -1455,38 +1455,195 @@ -elem.scrollIntoViewIfNeeded(); +if(elem.scrollIntoViewIfNeeded)%7B%0A%09 elem.scrollIntoViewIfNeeded(); %0A %7D%0A else%7B%0A%09%09%09%09%09elem.scrollIntoView(false);%0A %7D %0A
2205e45aea4bb1bf685818a9827d7df2f9b2202e
Clean up code
examples/client.js
examples/client.js
'use strict'; const soupbintcp = require('../'); const client = soupbintcp.createClient(4000, 'localhost', () => { client.login({ username: 'foo', password: 'bar', requestedSession: '', requestedSequenceNumber: 0, }); }); client.on('accept', function(payload) { client.send(Buffer.from('Hello wo...
JavaScript
0.000004
@@ -258,24 +258,16 @@ ccept', -function (payload @@ -263,24 +263,27 @@ ', (payload) + =%3E %7B%0A client. @@ -356,16 +356,8 @@ e', -function (pay @@ -361,16 +361,19 @@ payload) + =%3E %7B%0A con
4351219a048b0fabb129dafffe699a17a24e30d9
Update files
gruntfile.js
gruntfile.js
module.exports = function(grunt){ require("matchdep").filterDev("grunt-*").forEach(grunt.loadNpmTasks); grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), htmlhint: { build: { options: { 'tag-pair': true, 'tagname-lowercase': true, ...
JavaScript
0.000001
@@ -96,24 +96,267 @@ NpmTasks);%0A%0A +%09var jsFiles = %5B%0A%09%09// maintain file order!%0A 'src/js/util.js',%0A 'src/js/files.js',%0A 'src/js/tables.js',%0A 'src/js/components.js',%0A 'src/js/convert.js',%0A 'src/js/main.js',%0A 'src/js/ui.js'%0A %5D;%0A%0A%0A ...
11d1513eedf26a4a955801c9e9d5d4e8656654c8
Add commas after object responses for default patterns, see https://github.com/phetsims/scenery/issues/1207
js/accessibility/speaker/VoicingResponsePatterns.js
js/accessibility/speaker/VoicingResponsePatterns.js
// Copyright 2021, University of Colorado Boulder /** * A collection of string patterns that are used with VoicingManager.collectResponses. Responses for Voicing are * categorized into one of "Name", "Object", "Context", or "Hint" responses. A node that implements voicing may * have any number of these responses an...
JavaScript
0
@@ -1378,32 +1378,33 @@ ME%7D%7D, %7B%7BOBJECT%7D%7D +, %7B%7BCONTEXT%7D%7D %7B%7BH @@ -1447,32 +1447,33 @@ ME%7D%7D, %7B%7BOBJECT%7D%7D +, %7B%7BCONTEXT%7D%7D',%0A @@ -1504,32 +1504,33 @@ ME%7D%7D, %7B%7BOBJECT%7D%7D +, %7B%7BHINT%7D%7D',%0A @@ -1609,32 +1609,33 @@ ME%7D%7D, %7B%7BOBJECT%7D%7D +, ',%0...
08a84485985fc5cf93a121ad0601b9e41e41affb
fix file path
gruntfile.js
gruntfile.js
module.exports = function(grunt) { require('load-grunt-tasks')(grunt); var srcPath = './src', distPath = './dist'; grunt.initConfig({ srcPath: srcPath, distPath: distPath, express: { server: { options: { server: 'server.js', port: Number(process.env.PORT ||...
JavaScript
0.000003
@@ -894,16 +894,22 @@ formats. +ngWig. js',%0A
a9769d824402999b37c922593c8840ae61821db5
Remove unused imports
index.android.js
index.android.js
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, TextInput, View, ScrollView, Button, Image, TouchableHighlight } from 'react-native'; import Realm from 'realm'; import SortableListView from 'react-native-sortable-listview'; import Utils from './src/utils'; import Rep...
JavaScript
0.000001
@@ -86,21 +86,8 @@ xt,%0A - TextInput,%0A Vi @@ -108,48 +108,8 @@ ew,%0A - Button,%0A Image,%0A TouchableHighlight%0A %7D fr @@ -297,50 +297,8 @@ y';%0A -import %7BDateOnly%7D from './src/util/time';%0A impo @@ -544,96 +544,8 @@ ';%0A%0A -import Icon from 'react-native-vector-icons/Ionicons';%0Aimport mome...
f65c4d005d285cac3a8ba3419bdbdc29dd0044bc
fix tests after migration to react16
lib/__tests__/Link.test.js
lib/__tests__/Link.test.js
/* eslint-env browser, jest */ import React from 'react'; import testRenderer from 'react-test-renderer'; import WithContext from 'react-with-context'; import { mount } from 'enzyme'; import Link from '../Link'; import RouterContext from '../RouterContext'; import Route from '../Route'; import history from './__mocks__...
JavaScript
0
@@ -159,16 +159,27 @@ %7B mount +, configure %7D from @@ -184,24 +184,71 @@ m 'enzyme';%0A +import Adapter from 'enzyme-adapter-react-16';%0A import Link @@ -385,16 +385,57 @@ ry';%0A%0A%0A%0A +configure(%7B adapter: new Adapter() %7D);%0A%0A%0A describe
bedc3bb4831cdd214c850c3590ff952546006f6c
Add title to description
app/models/booking_model.js
app/models/booking_model.js
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var Objectid = mongoose.Schema.Types.ObjectId; var Room = require("./room_model"); var User = require("./user_model"); var Reserve = require("./reserve_model"); var moment = require('moment'); var BookingSchema = new Schema({ room: { type:...
JavaScript
0.002184
@@ -1496,24 +1496,53 @@ Booking: %22 + + transaction.title + %22 :: %22 + room.locati @@ -1552,17 +1552,17 @@ name + %22 -: +, %22 + roo
40ebf7c76556af0dc6891a6672052b0ebf7d513f
Remove more traces
src/js/directives/chat.js
src/js/directives/chat.js
'use strict'; /** * @ngdoc function * @name Teem.controller:ChatCtrl * @description * # Chat Ctrl * Show Chat for a given project */ angular.module('Teem') .directive('chatScroll', [ '$timeout', function($timeout) { return function(scope, element) { if (scope.$last) { $timeout(function()...
JavaScript
0.000001
@@ -3970,24 +3970,8 @@ %7D%0A%0A -console.log(2);%0A @@ -4188,24 +4188,8 @@ %7D%0A%0A -console.log(3);%0A
c302dedaa00153f6417171c33481455266e72e75
Build Lesson class structure
client/desktop/app/components/teacher/classes/lessons/lessonData.js
client/desktop/app/components/teacher/classes/lessons/lessonData.js
JavaScript
0.000001
@@ -0,0 +1,257 @@ +import React from 'react'%0A%0Aclass LessonData extends React.Component %7B%0A // constructor(props)%7B%0A // super(props);%0A %0A // this.state = %7B%0A // //state here%0A // %7D;%0A // %7D%0A%0A render()%7B%0A return %3Cli%3ECS 101%3C/li%3E%0A %7D%0A%7D%0A%0Amodule.exports =...
5cef0cda5ac38034b82fde7030ec39b60acebe44
Expand example
examples/levels.js
examples/levels.js
'use strict' var Acho = require('..') var acho = Acho({ upperCase: true }) var levels = Object.keys(acho.types) var fixtureObj = { foo: 'bar', hello: 'world' } var fixtureArr = [1, 2, 3, 4, 5] acho.debug('%j', fixtureObj) acho.debug(fixtureObj) acho.debug(fixtureArr) levels.forEach(function (level) { setI...
JavaScript
0.999999
@@ -67,16 +67,40 @@ se: true +,%0A // keyword: 'symbol' %0A%7D)%0A%0Avar
f1edda2564b4ee70bbd151ed79b26991d575e4e4
Set default contentStyle prop to make message more readable
src/ErrorReporting.js
src/ErrorReporting.js
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Snackbar from 'material-ui/Snackbar'; import { red900, grey50 } from 'material-ui/styles/colors'; class ErrorReporting extends Component { static defaultProps = { open: false, action: '', error: null, ...
JavaScript
0
@@ -531,16 +531,645 @@ %7D +,%0A contentStyle: %7B%0A display: 'block',%0A textOverflow: 'ellipsis',%0A whiteSpace: 'nowrap',%0A overflow: 'hidden'%0A %7D%0A %7D%0A%0A exclusiveProps = %5B%0A 'getMessage',%0A 'error',%0A 'actio...
1379e926be2344de12652f5ac6ecd9704c44a350
Add watch for maps folder
gruntfile.js
gruntfile.js
var properties = require('./src/js/game/properties.js'); module.exports = function (grunt) { grunt.loadNpmTasks('grunt-browserify'); grunt.loadNpmTasks('grunt-cache-bust'); grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-compress'); grunt.loadNpmTasks('grunt-contrib-connect'); ...
JavaScript
0
@@ -2359,32 +2359,120 @@ dio'%5D%0A %7D%0A + , maps:%0A %7B files: 'src/maps/**/*'%0A , tasks: %5B'copy:maps'%5D%0A %7D%0A %7D%0A%0A , b
c86c03903c9f388c7997d576c08d92bed78df1b7
update libs
eln/libs.js
eln/libs.js
export {default as OCLE} from 'https://www.lactame.com/lib/openchemlib-extended/2.4.0/openchemlib-extended.js'; export {default as SD} from 'https://www.lactame.com/lib/spectra-data/3.1.6/spectra-data.min.js'; export {default as CCE} from 'https://www.lactame.com/lib/chemcalc-extended/1.27.5/chemcalc-extended.js'; exp...
JavaScript
0
@@ -184,9 +184,9 @@ 3.1. -6 +7 /spe @@ -389,17 +389,17 @@ gin/0.2. -0 +1 /eln-plu
fe93101f9e3b2c629cb773e8bda45c4a535b805a
Implement basic calculation of bpm, add visual elements
index.android.js
index.android.js
/** * Sample React Native App * https://github.com/facebook/react-native */ import React, { AppRegistry, Component, StyleSheet, Text, View } from 'react-native'; class TapTempo extends Component { render() { return ( <View style={styles.container}> <Text style={styles.welcome}> ...
JavaScript
0.000002
@@ -4,14 +4,17 @@ %0A * -Sample +Tap Tempo Rea @@ -53,29 +53,24 @@ com/ -facebook/react-native +SumeetR/TapTempo %0A */ @@ -137,16 +137,36 @@ Text,%0A + TouchableOpacity,%0A View%0A%7D @@ -223,16 +223,983 @@ onent %7B%0A + constructor(props) %7B%0A super(props)%0A this.state = %7B%0A samples: ...
62c5ed8718204749a644f8a18a556275e55566e5
Use new Function() instead of eval
lib/whiskers.js
lib/whiskers.js
// whiskers.js templating library // the encapsulating function (function(whiskers) { // for compiled templates whiskers.cache = {}; // main function whiskers.render = function(template, context, partials) { template = whiskers.expand(template, partials); // use cached if it exists if (whiskers.ca...
JavaScript
0.000004
@@ -426,21 +426,16 @@ late%5D = -eval( whiskers @@ -452,17 +452,16 @@ emplate) -) ;%0A re @@ -658,25 +658,27 @@ plate %7C%7C '') -+ + + '';%0A // d @@ -1375,26 +1375,16 @@ to -js string for eval +function %0A w @@ -1494,17 +1494,19 @@ e %7C%7C '') -+ + + '';%0A%0A @@ -3641,18 +3641,9 @@ ines -...
01d646eec28f87920ea3c148fd138faf0cae754e
Remove deprecated analytics event tests
anvil/driver/configSet/Resources/suites/analytics.js
anvil/driver/configSet/Resources/suites/analytics.js
/* * Appcelerator Titanium Mobile * Copyright (c) 2011-2012 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ module.exports = new function() { var finish; var valueOf; this.init = functio...
JavaScript
0
@@ -438,30 +438,8 @@ = %5B%0A -%09%09%7Bname: %22addEvent%22%7D,%0A %09%09%7Bn @@ -487,590 +487,9 @@ %7D,%0A%09 -%09%7Bname: %22settingsEvent%22%7D,%0A%09%09%7Bname: %22timedEvent%22%7D,%0A%09%09%7Bname: %22userEvent%22%7D%0A%09%5D%0A%0A%09//iOS: TIMOB-5014%0A%09//Android: TIMOB-5020%0A%09this.addEvent = function(te...
6169031cc9206f00b3a3c573e762aab43b02d125
Save the student when it changes
app/models/studentModel.es6
app/models/studentModel.es6
'use strict'; import * as _ from 'lodash' import uuid from '../helpers/uuid' import randomChar from '../helpers/randomChar' import emitter from '../helpers/emitter' import db from '../helpers/db' import ScheduleSet from './scheduleSet' import StudySet from './studySet' import * as demoStudent from '../../mockups/de...
JavaScript
0
@@ -1311,16 +1311,79 @@ ations%0A%0A +%09Object.observe(student, (changes) =%3E emitter.emit('change'))%0A%0A %09Object.
9ce78a430c87f3173e892b0d97eb68aa218bd8b4
resolve import/newline-after-import error
examples/simple.js
examples/simple.js
'use strict'; const express = require('express'); const app = module.exports = express(); const xapp = require('../'); // enabled X-App headers app.use(xapp({}, require('./package'))); // normal route app.get('/', (req, res) => { res.send('Hello World'); }); /* istanbul ignore next */ if (!module.parent) { app...
JavaScript
0.000001
@@ -44,16 +44,46 @@ ress');%0A +const xapp = require('../');%0A%0A const ap @@ -119,38 +119,8 @@ );%0A%0A -const xapp = require('../');%0A%0A // e
b28656a8c4e5e6e60dce4e988c01e32f9834b2f2
fix for google mail again
server/core/mail/ImapConnector.js
server/core/mail/ImapConnector.js
import IPromise from 'imap-promise'; import Promise from 'bluebird'; class ImapConnector { constructor(options) { this.options = options; this.options['debug'] = function(err) { console.log(err) }; this.options['authTimeout'] = 10000; this.imap = new IPromise(options); this.imap.on('er...
JavaScript
0
@@ -5084,10 +5084,10 @@ l%5D' -%7C%7C +&& key
c498ac23dce80163740246de521bf139418d3915
Remove ‘resrc’ reference in comment.
gruntfile.js
gruntfile.js
module.exports = function(grunt) { // Initialize config grunt.initConfig({ // Load package.json pkg: require('./package.json'), // Project paths project: { assets: 'assets', design_assets: 'design/assets', styles: '<%= project.assets %>/stylesheets', styles_scss: '<%= project.styles %>/scss', ...
JavaScript
0
@@ -2618,34 +2618,24 @@ ing lazyload - (+ resrc) + multiple @@ -5026,18 +5026,10 @@ load - (+ resrc) +ed + m
c78ca00ab1a3f243167e242faf287e1dbc2ff504
fix billing account form missing dependency
corehq/apps/accounting/static/accounting/js/billing_account_form.js
corehq/apps/accounting/static/accounting/js/billing_account_form.js
hqDefine('accounting/js/billing_account_form', [ 'jquery', 'knockout', 'hqwebapp/js/initial_page_data', 'accounting/js/credits_tab', 'hqwebapp/js/stay_on_tab', ], function ( $, ko, initialPageData ) { var billingAccountFormModel = function (is_active) { 'use strict'; ...
JavaScript
0.000002
@@ -173,16 +173,45 @@ n_tab',%0A + 'accounting/js/widgets',%0A %5D, funct
31d5374f4093eaba98c276b94b1e078457c7c125
Introduce WAITING and DELAYED status in Service struct
src/js/structs/Service.js
src/js/structs/Service.js
import HealthStatus from '../constants/HealthStatus'; import Item from './Item'; import ServiceImages from '../constants/ServiceImages'; import ServiceStatus from '../constants/ServiceStatus'; import TaskStats from './TaskStats'; module.exports = class Service extends Item { getArguments() { return this.get('arg...
JavaScript
0
@@ -2355,16 +2355,262 @@ ments(); +%0A let queue = this.getQueue();%0A%0A if (queue != null && queue.delay && queue.delay.overdue) %7B%0A return ServiceStatus.WAITING;%0A %7D%0A%0A if (queue != null && queue.delay && !queue.delay.overdue) %7B%0A return ServiceStatus.DELAYED;%0A %7D %0A%0A ...
3b1eec3dfec3a881be0b63d18feb045e3cd28660
remove partial pre-compiling (buggy)
lib/assemble-handlebars.js
lib/assemble-handlebars.js
var handlebars = require('handlebars'); var helpers = require('handlebars-helpers'); var _ = require('lodash'); var plugin = function() { 'use strict'; var init = function(options) { // register built-in helpers helpers.register(handlebars, options); }; var compile = function(src, options, callback) ...
JavaScript
0.000002
@@ -1038,139 +1038,8 @@ y %7B%0A - if(typeof content === 'string') %7B%0A tmpl = handlebars.compile(content);%0A %7D else %7B%0A tmpl = content;%0A %7D%0A @@ -1077,20 +1077,23 @@ lename, -tmpl +content );%0A %7D
bef9f3873d4b8f1052b8f3cc690ab6c8d5c5ba1b
Add tests to ensure that attributes are set when calling incremental dom directly for fu
test/unit/vdom/incremental-dom.js
test/unit/vdom/incremental-dom.js
import * as IncrementalDOM from 'incremental-dom'; import { vdom } from '../../../src/index'; function testBasicApi (name) { describe(name, () => { it('should be a function', () => expect(vdom[name]).to.be.a('function')); it('should not be the same one as in Incremental DOM', () => expect(vdom[name]).not.to....
JavaScript
0
@@ -616,16 +616,21 @@ describe +.only ('passin @@ -769,16 +769,42 @@ ert(elem +, %7B checkChildren = true %7D ) %7B%0A @@ -889,17 +889,17 @@ o.equal( -' +%60 %3Cdiv id= @@ -909,15 +909,59 @@ st%22%3E +$%7B checkChildren ? '%3Cspan%3Etest%3C/span%3E' : ' %3C/div%3E' +%7D%60 );%0A @@ -1063,24 +1063,153 @@ ...
aa999e4642279515e609b5da63c7be92e85a6fd6
Fix https can’t request
src/L.Routing.Conf.js
src/L.Routing.Conf.js
'use strict'; (function (factory, window) { if (typeof define === "function" && define.amd) { define(["leaflet"], factory); } else if (typeof exports === "object") { module.exports = factory(require("leaflet")); } if (typeof window !== "undefined" && window.L) { L.Routing.Con...
JavaScript
0
@@ -394,16 +394,17 @@ l: %22http +s ://resta
d67d0140ccf7adbc77f27a1b2333f08f44c317a5
Add client-side validation for attachment URLs
app/assets/javascripts/student_profile/take_notes.js
app/assets/javascripts/student_profile/take_notes.js
(function() { window.shared || (window.shared = {}); var dom = window.shared.ReactHelpers.dom; var createEl = window.shared.ReactHelpers.createEl; var merge = window.shared.ReactHelpers.merge; var PropTypes = window.shared.PropTypes; var styles = { dialog: { border: '1px solid #ccc', borde...
JavaScript
0
@@ -3965,38 +3965,28 @@ his. -state.eventNoteTypeId === null +disabledSaveButton() ) ? @@ -4047,38 +4047,28 @@ his. -state.eventNoteTypeId === null +disabledSaveButton() ),%0A @@ -4499,32 +4499,177 @@ );%0A %7D,%0A%0A + disabledSaveButton: function () %7B%0A return (%0A this.state.eventNot...
da199b5e82fc92feda1ffc8f48f62358e16a1764
Use errors instead of fatal, don't delete serverMgr on stop
lib/atom-delve.js
lib/atom-delve.js
'use babel'; import SourceView from './components/source.js'; import DelveServerMgr from './delve-server-mgr'; import Config from './config'; import { DelveConnMgr } from './delve-client'; import { CompositeDisposable } from 'atom'; export default { atomDelveView: null,...
JavaScript
0
@@ -530,136 +530,8 @@ s;%0A%0A - this.modalPanel = atom.workspace.addModalPanel(%7B%0A item: this.atomDelveView.getElement(),%0A visible: false%0A %7D);%0A%0A @@ -712,18 +712,81 @@ Session( +%0A 'debug', '/Users/tylerfowler/git/atom-delve/lib'%0A ) - %7D%0A )) @@ -1090,36 +109...
4f7c10a2abcd38f51fdc09dbdda60c6763a6afbc
fix experiment group without ip logic
app/services/experiments.js
app/services/experiments.js
import Service, { inject as service } from '@ember/service' import ENV from 'pilasbloques/config/environment' import seedrandom from 'seedrandom'; import { computed } from '@ember/object' export default Service.extend({ group: ENV.experimentGroup, storage: service(), pilasBloquesApi: service(), challengeExpec...
JavaScript
0.000001
@@ -222,16 +222,33 @@ %0A group +SelectionStrategy : ENV.ex @@ -917,21 +917,24 @@ toAssign -Group +Strategy ()%7B%0A @@ -950,16 +950,33 @@ is.group +SelectionStrategy === %22au @@ -991,16 +991,337 @@ %22%0A %7D,%0A%0A + /**%0A * If the group selection strategy is autoassign, returns a random group base...
3d4047e7054971aa80ca41a2318b5e743cd56aee
Include three `*` in horizontal_rule class
src/languages/markdown.js
src/languages/markdown.js
/* Language: Markdown Requires: xml.js Author: John Crepezzi <john.crepezzi@gmail.com> Website: http://seejohncode.com/ */ function(hljs) { return { contains: [ // highlight headers { className: 'header', variants: [ { begin: '^#{1,6}', end: '$' }, { begin: '^.+?\\...
JavaScript
0.000021
@@ -1291,17 +1291,22 @@ egin: '%5E -- +%5B-%5C%5C*%5D %7B3,%7D', e
0347c62101d40ab433da21a0d81a9e787aa51a67
use JSON.stringify for complex data on data export
app/src/utils/exportData.js
app/src/utils/exportData.js
import { search } from '../apis'; let jsonData = []; export const MAX_DATA = 100000; const defaultQuery = { query: { match_all: {}, }, }; /** * A function to convert multilevel object to single level object and use key value pairs as Column and row pairs using recursion */ export const flatten = data => { co...
JavaScript
0.000003
@@ -461,154 +461,43 @@ %0A%09%09%09 -const l = cur.length;%0A%09%09%09for (let i = 0; i %3C l; i += 1) %7B%0A%09%09%09%09recurse(cur%5Bi%5D, %60$%7Bprop%7D%5B$%7Bi%7D%5D%60);%0A%09%09%09%7D%0A%09%09%09if (l === 0) %7B%0A%09%09%09%09result%5Bprop%5D = %5B%5D;%0A%09%09%09%7D +result%5Bprop%5D = JSON.stringify(cur); %0A...
b67caf9be48294bef290eea69e90d98223fcf3eb
Add paragraph about browser add-ons when encountering some errors (#14801)
app/javascript/mastodon/components/error_boundary.js
app/javascript/mastodon/components/error_boundary.js
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { version, source_url } from 'mastodon/initial_state'; import StackTrace from 'stacktrace-js'; export default class ErrorBoundary extends React.PureComponent { static propTypes = { children: Prop...
JavaScript
0.000046
@@ -1720,16 +1720,30 @@ , copied +, errorMessage %7D = thi @@ -1810,24 +1810,117 @@ ren;%0A %7D%0A%0A + const likelyBrowserAddonIssue = errorMessage && errorMessage.includes('NotFoundError');%0A%0A return ( @@ -2020,16 +2020,314 @@ _error'%3E +%0A %7B likelyBrowserAddonIssue ? (%0A ...
b3202be81dc069d5b144f99a6d1a0387f9329a76
Update handling of artificialToken ids
app/js/arethusa.artificial_token/artificial_token.js
app/js/arethusa.artificial_token/artificial_token.js
"use strict"; angular.module('arethusa.artificialToken').service('artificialToken', [ 'state', 'configurator', 'idHandler', function(state, configurator, idHandler) { var self = this; function configure() { configurator.getConfAndDelegate('artificialToken', self); self.createdTokens = {}; ...
JavaScript
0
@@ -1325,65 +1325,8 @@ %7D;%0A%0A - function idIdentifier(id) %7B%0A return 'a';%0A %7D%0A%0A @@ -2056,24 +2056,21 @@ var -idBefore +newId = idHan @@ -2099,54 +2099,93 @@ -var newId = idBefore + idIdentifier(idBefore); +if (!idHandler.isExtendedId(id)) %7B%0A newId = idHandler.ext...
add244c6954d96f87d8b7d7f9459e4f940abb8dd
Improve results performance for `hain-plugin-filesearch` for recent items
app/main-es6/plugins/hain-plugin-filesearch/index.js
app/main-es6/plugins/hain-plugin-filesearch/index.js
'use strict'; const fs = require('original-fs'); const co = require('co'); const lo_reject = require('lodash.reject'); const path = require('path'); const readdir = require('./readdir'); const RECENT_ITEM_COUNT = 100; const RECENT_ITEM_WEIGHT = 1.2; const matchFunc = (filePath, stats) => { const ext = path.extnam...
JavaScript
0
@@ -4516,26 +4516,38 @@ rim, x =%3E x) +.slice(0, 2) ;%0A - const se @@ -4599,24 +4599,59 @@ =%3E x.elem);%0A + let recentSearchResults = %5B%5D;%0A%0A if (rece @@ -4676,31 +4676,23 @@ gth %3E 0) - %7B %0A -const recentSe @@ -4792,50 +4792,8 @@ HT); -%0A res.add(recentSearchResults);%0A ...
d48d9a5442a8a0ad4ed1b8d717518becb33cda6e
Add crack time to password strength bar
app/routes/users/components/PasswordStrengthMeter.js
app/routes/users/components/PasswordStrengthMeter.js
// @flow import React, { Component, Fragment } from 'react'; import { pick } from 'lodash'; import zxcvbn from 'zxcvbn'; import Bar from 'react-meter-bar'; import styles from './PasswordStrengthMeter.css'; import { passwordLabel, barColor, passwordFeedbackMessages } from './passwordStrengthVariables'; type Prop...
JavaScript
0.000003
@@ -86,16 +86,54 @@ odash';%0A +import moment from 'moment-timezone';%0A import z @@ -153,16 +153,16 @@ xcvbn';%0A - import B @@ -803,16 +803,289 @@ lean);%0A%0A + let crackTimeSec =%0A zxcvbnValue.crack_times_seconds.offline_slow_hashing_1e4_per_second;%0A let crackTimeDuration = moment.duration(crackT...
83475a320127a1dd1919589e86e91e2ae4ba0a0a
fix signup api loading
lib/boot/index.js
lib/boot/index.js
/** * Module dependencies. */ var express = require('express') var path = require('path') var translations = require('lib/translations') var t = require('t-component') var config = require('lib/config') var visibility = require('lib/visibility') var app = module.exports = express() /** * Set `views` directory for...
JavaScript
0
@@ -1031,28 +1031,30 @@ routes%0A */%0A +%0A if ( +! config.signu
36bce93eaf96513691fc8052ec57acb1e7f582da
Fix anvaka button position
extension/index.js
extension/index.js
// Escape HTML function esc(str) { return String(str) .replace(/&/g, '&amp;') .replace(/"/g, '&quot;') .replace(/'/g, '&#39;') .replace(/</g, '&lt;') .replace(/>/g, '&gt;'); } // Get DOM node from HTML function html(html) { if (html.raw) { // Shortcut for html`text` instead of html(`text`) ...
JavaScript
0.000001
@@ -1270,24 +1270,285 @@ es %7C%7C %7B%7D);%0A%0A + if (dependencies.length && !pkg.private) %7B%0A const link = html%60%3Ca class=%22npmhub-anvaka btn btn-sm%22%3EDependency tree visualization%60;%0A link.href = %60http://npm.anvaka.com/#/view/2d/$%7Besc(pkg.name)%7D%60;%0A dependenciesBox.appendChi...
22ffe9c0158a27314ae24163592752d392ec3b7c
Update helper to set auth type.
tests/e2e/utils/setup-site-kit.js
tests/e2e/utils/setup-site-kit.js
/** * setupSiteKit utility. * * Site Kit by Google, Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * ...
JavaScript
0
@@ -896,22 +896,148 @@ erty - %7D = %7B%7D ) =%3E %7B +, auth = 'proxy' %7D = %7B%7D ) =%3E %7B%0A%09if ( auth !== 'proxy' && auth !== 'gcp' ) %7B%0A%09%09throw new Error( 'Auth type must be either proxy or gcp' );%0A%09%7D %0A%09aw @@ -1056,17 +1056,17 @@ Plugin( -' +%60 e2e-test @@ -1067,16 +1067,26 @@ e-tests-...
a9e6dba5b9644c37137e0170cae99da4fcd570cd
remove a todo
src/scripts/components/piano-keyboard.js
src/scripts/components/piano-keyboard.js
/** @jsx REACT.DOM */ import React from 'react'; import cuid from 'cuid'; export default React.createClass({ componentDidMount: function() { let keyboardEl = this.refs.keyboard.getDOMNode(); keyboardEl.id = cuid(); this.hancock = new QwertyHancock({ id: keyboardEl.id, width: 600, height...
JavaScript
0.002849
@@ -663,31 +663,8 @@ rd%22%3E -TODO keyboard goes here %3C/di
c4c9560495ec7090751950b9a0cfa34552cf569e
Handle two forward slashes
favicon-request.js
favicon-request.js
/* eslint-disable no-console */ const http = require('http'); const https = require('https'); const MAX_REDIRECTS = 3; const KNOWN_ICONS = { 'gmail.com': 'https://ssl.gstatic.com/ui/v1/icons/mail/images/favicon5.ico' }; function faviconApp(req, res) { if (req.url === '/favicon.ico') { res.writeHead(2...
JavaScript
0.999999
@@ -4260,32 +4260,134 @@ ;%0A %7D%0A + if (iconHref.startsWith('//')) %7B%0A return 'http:' + iconHref;%0A %7D%0A retu
3619836fafb18ec388cfad94799028b3a0359251
Update wegas-app/src/main/webapp/wegas-app/js/plugin/wegas-surveylistener.js
wegas-app/src/main/webapp/wegas-app/js/plugin/wegas-surveylistener.js
wegas-app/src/main/webapp/wegas-app/js/plugin/wegas-surveylistener.js
/* * Wegas * http://wegas.albasim.ch * * Copyright (c) 2013-2020 School of Business and Engineering Vaud, Comem, MEI * Licensed under the MIT License */ /** * @fileOverview * @author Jarle Hulaas */ YUI.add('wegas-surveylistener', function(Y) { "use strict"; var SurveyListener, Plugin = Y.Plugin; ...
JavaScript
0
@@ -557,16 +557,24 @@ nSurveys +Handlers = %7B%7D;%0A
b0f926c31d0cda945a26d32b47ba6442261d49d1
simplify code
lib/collection.js
lib/collection.js
var EventEmitter = require('events').EventEmitter; var Collection = function (monk, name) { var self = this; self.monk = monk; self.name = name; self.connected = false; self._colInstance = null; self.monk._db(function (db) { self._colInstance = db.collection(self.name); self.connected = true; ...
JavaScript
0.000116
@@ -770,24 +770,440 @@ %7D%0A %7D;%0A%7D;%0A%0A +Collection.prototype._opts = function (opts) %7B%0A%0A opts = opts %7C%7C %7B%7D;%0A%0A if (!('safe' in opts)) %7B%0A opts.safe = true;%0A %7D%0A%0A return opts;%0A%7D;%0A%0ACollection.prototype._args = function (opts, cb, fn) %7B%0A%0A if (typeof opts === 'fu...
23603840bb4ff60bb5637ccd90f12f971d8a398c
Update BoundsArraySet_Pointwise.js
CNN/Conv/BoundsArraySet/BoundsArraySet_Pointwise.js
CNN/Conv/BoundsArraySet/BoundsArraySet_Pointwise.js
export { Pointwise }; import * as FloatValue from "../../Unpacker/FloatValue.js"; import * as ValueDesc from "../../Unpacker/ValueDesc.js"; import * as Weights from "../../Unpacker/Weights.js"; import { ConvBiasActivation } from "./BoundsArraySet_ConvBiasActivation.js"; import { ChannelPartInfo, FiltersBiasesPartInfo ...
JavaScript
0
@@ -628,33 +628,33 @@ nstructor( input -s +0 , outputChannelC @@ -679,17 +679,17 @@ r( input -s +0 , output
2767eb7caac82b306159f685ee3700e3407b7e15
Change grid amount
sketch.js
sketch.js
const WIDTH = 800; const HEIGHT = 600; const SPACING = 50; const RECT_SIZE_X = 25; const RECT_SIZE_Y = 5; var setup = function() { createCanvas(WIDTH, HEIGHT); background(0); fill(255); angleMode(DEGREES); stroke(255); strokeWeight(1); strokeCap(SQUARE); } var drawRectangle = (posX, posY, angle) => ...
JavaScript
0
@@ -527,16 +527,17 @@ 0; x %3C +1 5; x++) @@ -562,17 +562,18 @@ 0; y %3C -5 +11 ; y++) %7B
f79129b2a6b4238c1e7f552d653c724bd509950e
Fix initial server page tag rendering bug.
lib/common/app.js
lib/common/app.js
define(['requestFilters', 'underscore', 'utils/template', 'utils/model', 'utils/document', 'backbone', 'base', 'bundler'], function (filter, _, template, model, doc, Backbone, Base, Bundler) { 'use strict'; var bundle = new Bundler(); var LazoApp = Base.extend({ isClient: false, isS...
JavaScript
0
@@ -2428,16 +2428,31 @@ Tags(ctx +, this.isServer );%0A
84c671aaa4d23ef5bca7f6bf09d58dfe9d88a3e6
Revert "Revert "Fix for spaces in strings""
lib/connection.js
lib/connection.js
'use strict'; var Query_ = require('./binding').Query; var Options_ = require('./binding').Options; var Connection_ = require('./binding').Connection; var noop = require('./noop'); var ResultSet = require('./resultset'); var ReadStream = require('./read-stream'); module.exports = Connection; var conn = Connection.pr...
JavaScript
0.000003
@@ -1023,16 +1023,196 @@ x';%0A %7D%0A + %0A // Fix for spaces in query string%0A var queryArray = queryString.split(' ');%0A queryString = %5BqueryArray.slice(0,2).join(' '), queryArray.slice(2).join('%5Cu00A0')%5D.join(' ');%0A%0A var cl @@ -1265,17 +1265,16 @@ ery_();%0A -%0A if (!c @@ -2995,12 +2995,17...
4bc1ab6a97ded700aeaa2424f7e6286d92e79d50
fix validation error in oauth tests when prefilled email is not cleared
tests/functional/oauth_sign_in.js
tests/functional/oauth_sign_in.js
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ define([ 'intern', 'intern!object', 'intern/chai!assert', 'require', 'intern/node_modules/dojo/node!xmlh...
JavaScript
0.000001
@@ -1540,32 +1540,49 @@ m input.email')%0A + .clear()%0A .click() @@ -3363,32 +3363,53 @@ m input.email')%0A + .clear()%0A .cli @@ -5450,32 +5450,49 @@ m input.email')%0A + .clear()%0A .click()
21c771d14a9da82efec266b54ad2baec453dd781
remove dead code
lib/controller.js
lib/controller.js
/*global templatePath */ var fs = require('fs-extra'); module.exports = { controllerPath : 'both/controllers/', contrTemplates: templatePath + 'controller/', // Public: Creates a controller file and any type of controller needed. // By default if no options are passed in it will create all router and ...
JavaScript
0
@@ -727,89 +727,8 @@ ';%0A%0A - // ensure %60both/controllers%60 exists%0A fs.mkdirsSync(this.controllerPath);%0A%0A
cae745eee63931ce361e1f235c6c135ec973f8cb
Fix for textbox view bridge causing recursion
src/Presenters/Controls/Text/TextBox/TextBoxViewBridge.js
src/Presenters/Controls/Text/TextBox/TextBoxViewBridge.js
var bridge = function (presenterPath) { window.rhubarb.viewBridgeClasses.HtmlViewBridge.apply(this, arguments); }; bridge.prototype = new window.rhubarb.viewBridgeClasses.HtmlViewBridge(); bridge.prototype.constructor = bridge; bridge.spawn = function (spawnData, index, parentPresenterPath) { var textBox = do...
JavaScript
0
@@ -729,26 +729,26 @@ ototype. -onK +k eyPress +ed = funct @@ -1134,34 +1134,34 @@ ress%22, self. -onK +k eyPress +ed .bind(self)) @@ -1296,26 +1296,26 @@ ', self. -onK +k eyPress +ed .bind(se
9fa7e603a2c1b67ead8ce947a3ecf85f2c2cd534
Remove unnecessary import
lib/definition.js
lib/definition.js
// Copyright (c) 2015, salesforce.com, inc. - All rights reserved // Licensed under BSD 3-Clause - https://opensource.org/licenses/BSD-3-Clause const { constant, identity } = require('core.lambda') const Either = require('data.either') const Immutable = require('immutable-ext') const { isString } = require('lodash'...
JavaScript
0.000011
@@ -278,50 +278,8 @@ ')%0A%0A -const %7B%0A isString%0A%7D = require('lodash')%0A%0A cons
2a76e3faad166e0a9329894792f26466742846e1
rename 'marker' to 'name'
src/lib/timeline.js
src/lib/timeline.js
import mitt from 'mitt'; export default function tl(initialTimeline) { const emitter = mitt(); let timeline = initialTimeline || []; return { add(time, marker, callback = false) { timeline.push({ time, marker, callback, hasBeenCalled: false }); timeline.sort((a, b) => a.time - b.time); }, ...
JavaScript
0.999753
@@ -153,30 +153,28 @@ add(time, -marker +name , callback = @@ -211,22 +211,20 @@ %7B time, -marker +name , callba @@ -663,22 +663,20 @@ %0A on( -marker +name , callba @@ -705,22 +705,20 @@ tter.on( -marker +name , callba @@ -855,21 +855,8 @@ the -marker as an even @@ -894,14 +894,12 @@ ent. -marker ...
0b7859af149a65b7c0af8e187258c7a687b3d689
redefine ColorContrastCalc.prototype.contrastRatio as an alias of ColorContrastCalc.contrastRatio
lib/color-contrast-calc.js
lib/color-contrast-calc.js
"use strict"; class ColorContrastCalc { static tristimulusValue(primaryColor, base = 255) { const s = primaryColor / base; if (s <= 0.03928) { return s / 12.92; } else { return Math.pow((s + 0.055) / 1.055, 2.4); } } static relativeLuminance(rgb = [255, 255, 255]) { const [r, g, ...
JavaScript
0.000001
@@ -414,16 +414,23 @@ %0A %7D%0A%0A +static contrast @@ -536,20 +536,8 @@ his. -constructor. rela @@ -629,16 +629,130 @@ 05);%0A %7D +%0A%0A contrastRatio(foreground, background) %7B%0A return this.constructor.contrastRatio(foreground, background);%0A %7D %0A%7D%0A%0Amodu
aeaa863558f15de40e91c6207a689925fb43585f
Fix class name issue
src/SelectedOption.js
src/SelectedOption.js
import React, { Component } from 'react' export default ({ option, selectedLabel }) => { return ( <span class='powerselect__trigger-label'> { typeof selectedLabel === 'function' ? selectedLabel(option) : typeof selectedLabel === 'string' ? option[selectedLabel] : ...
JavaScript
0.000002
@@ -109,16 +109,20 @@ an class +Name ='powers
a74850c23873f3f6ac4033e1632262d43bf56689
Add email api url requirement
server/configuration/environment_configuration.js
server/configuration/environment_configuration.js
"use strict"; var config = require("12factor-config"); var appConfig = config({ apiUrl: { env: "AGFAPHD_WEBAPP_API_URL", type: "string", default: "http://localhost:8089" }, emailApiKey: { env: "AGFAPHD_WEBAPP_EMAIL_API_KEY", type: "string", required: true }, emailApiUrl: { env: "...
JavaScript
0.000001
@@ -372,70 +372,22 @@ -default: %22sandboxa92275a42f30470c860fda4a09140bf6.mailgun.org%22 +required: true %0A %7D
0ba6ea44e606936bb9720bba8397ba6685e00307
Use let instead of var
tests/integration/settled-test.js
tests/integration/settled-test.js
import Ember from 'ember'; import { later, run } from '@ember/runloop'; import Component from '@ember/component'; import { settled, setupContext, setupRenderingContext, teardownContext, teardownRenderingContext, } from 'ember-test-helpers'; import hasEmberVersion from 'ember-test-helpers/has-ember-version'; i...
JavaScript
0
@@ -1813,35 +1813,35 @@ %3E %7B%0A -var +let value = this.ge @@ -2285,35 +2285,35 @@ %3E %7B%0A -var +let value = this.ge @@ -2573,11 +2573,11 @@ -var +let val
ce735fc71cc0b5b8864141b067bef8d7364bfb13
remove logs
lib/downstream.js
lib/downstream.js
'use strict' const WsServer = require('websocket').server const http = require('http') const vstamp = require('vigour-stamp') const { ClocksyServer } = require('clocksy') const clocksy = new ClocksyServer() exports.properties = { downstream: true, port: { type: 'observable', noContext: true, on: { ...
JavaScript
0.000001
@@ -363,16 +363,54 @@ FIRE')%0A + if (!this.parent.context) %7B%0A @@ -436,16 +436,18 @@ arent()%0A + @@ -477,24 +477,26 @@ e()%0A + if (hub.down @@ -501,24 +501,26 @@ wnstream) %7B%0A + cl @@ -555,16 +555,18 @@ + hub.down @@ -579,16 +579,18 @@ ...
bea5aaa09bb893b290192a0871d31f3a82338918
Add basic popup
client/entry.js
client/entry.js
var bakerHoods = require('../data/neighborhoods/bakersfield.json'); function getCoords(coords) { return coords.map((coord) => { if (Array.isArray(coord[0])) { console.log(coord); } return { lat: coord[1], lng: coord[0] }; }); } var COLORS = ['#FF0000', '#00FF00']; global.initMap = () => { var...
JavaScript
0.000001
@@ -283,16 +283,267 @@ F00'%5D;%0A%0A +function getCenter(coords) %7B%0A var latSum = 0;%0A var lngSum = 0;%0A%0A coords.forEach((coord) =%3E %7B%0A latSum += coord.lat;%0A lngSum += coord.lng;%0A %7D);%0A%0A return %7B lat: latSum / coords.length, lng: lngSum / coords.length %7D;%0A%7D%0A%0Avar lastWindow ...
dc3d41ab1b8a5c5d2a142b6cbdd056e3fc5cbfcb
Use raw XHR rather than $http to access progress events on upload
client/files.js
client/files.js
/* * @license Apache-2.0 * * Copyright 2015 Google Inc. All rights reserved. * * 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 * * U...
JavaScript
0
@@ -770,16 +770,43 @@ %7D $http%0A + * @param %7B!angular.$q%7D $q%0A * @para @@ -907,16 +907,20 @@ $window +, $q ) %7B%0A /* @@ -972,16 +972,64 @@ $http;%0A + /** @private %7B!angular.$q%7D */%0A this.q_ = $q;%0A /** @p @@ -1504,32 +1504,91 @@ * Upload a file. + Returned promise provides updates via XHR...
5067846ea92a90aff409d966606854aae842ba28
Customize gatsby config
gatsby-config.js
gatsby-config.js
module.exports = { siteMetadata: { title: "IPv6-adresse.dk", }, plugins: [ "gatsby-plugin-sass", "gatsby-plugin-image", "gatsby-plugin-react-helmet", "gatsby-plugin-sitemap", { resolve: "gatsby-plugin-manifest", options: { icon: "src/images/icon.png", }, }, ...
JavaScript
0.000001
@@ -60,21 +60,64 @@ se.dk%22,%0A + siteUrl: 'https://www.ipv6-adresse.dk'%0A %7D,%0A - plugin @@ -434,24 +434,192 @@ mer-sharp%22,%0A + %22gatsby-transformer-json%22,%0A %7B%0A resolve: %22gatsby-source-filesystem%22,%0A options: %7B%0A name: %60data%60,%0A path: %60$%7B__dirnam...
d80b81170a6e50957ed2af8daaacaa0638d6ef98
add resources folder as nodes
gatsby-config.js
gatsby-config.js
var path = require("path"); module.exports = { siteMetadata: { title: "Gatsby Default Starter", }, plugins: [ { resolve: "gatsby-source-filesystem", options: { path: path.resolve('./src/pages/'), name: "pages", } }, { resolve: "gatsby-transformer-remark" ...
JavaScript
0
@@ -264,24 +264,181 @@ %7D,%0A %7B%0A + resolve: %22gatsby-source-filesystem%22,%0A options: %7B%0A name: %22images%22,%0A path: %60$%7B__dirname%7D/src/resources/images%60,%0A %7D,%0A %7D,%0A %7B%0A resolv @@ -725,15 +725,47 @@ n-sharp%22 +,%0A %22gatsby-transformer...
a6c9a399b8850a3ca7c47221748078d8d5a3f023
update formatting
gatsby-config.js
gatsby-config.js
/* eslint-disable @typescript-eslint/no-var-requires */ const path = require('path'); module.exports = { siteMetadata: { title: 'AlexSwensen.io', description: 'My personal blog and site.', siteUrl: 'https://alexswensen.io', // full path to blog - no ending slash }, mapping: { 'MarkdownRemark.fron...
JavaScript
0.000001
@@ -2136,25 +2136,25 @@ name: -%60 +' alexswensen. @@ -2155,17 +2155,17 @@ ensen.io -%60 +' ,%0A @@ -2178,17 +2178,17 @@ t_name: -%60 +' alexswen @@ -2192,17 +2192,17 @@ wensenio -%60 +' ,%0A @@ -2218,11 +2218,11 @@ rl: -%60/%60 +'/' ,%0A @@ -2249,17 +2249,17 @@ or: -%60 +' #ffffff -...
173528dd8b163f43af925368c6a49693e3f49865
disable gatsby-plugin-offline for now
gatsby-config.js
gatsby-config.js
module.exports = { siteMetadata: { title: '@resir014', description: 'Web developer based in Jakarta, Indonesia.', siteUrl: `https://resir014.xyz`, author: { name: 'Resi Respati', url: 'https://twitter.com/resir014', email: 'resir014@gmail.com' } }, plugins: [ { reso...
JavaScript
0
@@ -1864,37 +1864,8 @@ %7D,%0A - 'gatsby-plugin-offline',%0A
8b8d269665283723fe33ec1b41906dd608f577cd
add new progress bar tests
tests/jsPsych/progressbar.test.js
tests/jsPsych/progressbar.test.js
const root = '../../'; const utils = require('../testing-utils.js'); beforeEach(function(){ require(root + 'jspsych.js'); require(root + 'plugins/jspsych-html-keyboard-response.js'); }); describe('automatic progress bar', function(){ test('progress bar does not display by default', function(){ var trial = ...
JavaScript
0
@@ -3554,12 +3554,1302 @@ %0A %7D);%0A%0A + test('getProgressBarCompleted() -- manual updates', function()%7B%0A var trial = %7B%0A type: 'html-keyboard-response',%0A stimulus: 'foo',%0A on_finish: function()%7B%0A jsPsych.setProgressBar(0.2);%0A %7D%0A %7D%0A%0A var trial_2 = %7B...
ceaf61450c53d50119574d489e3cfe5f7e5ccdae
Fix possible bug
lib/file-icons.js
lib/file-icons.js
"use babel"; fs = require('fs-plus') /** * This class provides the file-icons service API implemented by tree-view * Please see https://github.com/atom/tree-view#api */ module.exports = class Perl6FileIconsProvider { iconClassForPath(filePath) { extension = path.extname(filePath) if (fs.isSymbolicLinkS...
JavaScript
0.000546
@@ -30,16 +30,39 @@ s-plus') +%0Apath = require('path') %0A%0A/**%0A *
29984554122f2690ba3218f7d20244cb3b6ced92
Fix for noHead option
lib/file-utils.js
lib/file-utils.js
import path from 'node:path'; import { createWriteStream } from 'node:fs'; import { fileURLToPath } from 'node:url'; import { readFile, rm, mkdir } from 'node:fs/promises'; import copydir from 'copy-dir'; import _ from 'lodash-es'; import archiver from 'archiver'; import beautify from 'js-beautify'; import { renderFil...
JavaScript
0.000001
@@ -1534,16 +1534,137 @@ nfig) %7B%0A + let fullTemplateFileName = templateFileName;%0A if (config.noHead !== true) %7B%0A fullTemplateFileName += '_full';%0A %7D%0A%0A if (co @@ -1750,25 +1750,29 @@ tePath), %60$%7B -t +fullT emplateFileN @@ -1865,17 +1865,21 @@ lt', %60$%7B -t +fullT emplateF
172e71201569760699ffe93ec9d69f2b6105ce6b
Fix plural ending for "X podcasts found"
src/static/libs/js/views/search/index.js
src/static/libs/js/views/search/index.js
require('../../navbar.js'); require('../../auth.js'); import {searchPodcasts} from '../../podcastHelper'; $('#search .search-podcasts').on('click', () => { loadSearchResults(); if (window.searchQuery) { window.searchQuery = null; history.pushState(null, "", location.href.split("?")[0]); } }); $('#searc...
JavaScript
0.002471
@@ -990,16 +990,39 @@ gth %3E 1 +&& results.length != 0 ? 's' :
112e5123bcbeddd3591cc5914c6b4639ea027688
remove debug code
server/helpers/wowCommunityApi.js
server/helpers/wowCommunityApi.js
import { blizzardApiResponseLatencyHistogram } from 'helpers/metrics'; import RequestTimeoutError from 'helpers/request/RequestTimeoutError'; import RequestSocketTimeoutError from 'helpers/request/RequestSocketTimeoutError'; import RequestConnectionResetError from 'helpers/request/RequestConnectionResetError'; import R...
JavaScript
0.02323
@@ -2202,37 +2202,8 @@ - console.log(err);%0A // end @@ -2212,19 +2212,16 @@ %0A - // statu @@ -2250,19 +2250,16 @@ %0A - // %7D);%0A @@ -2874,18 +2874,16 @@ ue%0A );%0A - %0A const
22930b0d5d2cac197d4f72c0cc814ca6b8888b0d
Add generic global error message for non 500's ajax calls
WebContent/js/global.js
WebContent/js/global.js
/* Cached Variables *******************************************************************************/ var $allModals = $('.modal'); var $globalSmallModal = $('#global-small-modal'); /* Initialization *********************************************************************************/ selectTab($('body').data('tab-id')); ...
JavaScript
0
@@ -663,18 +663,16 @@ erError) - %7B %0A $gl @@ -736,17 +736,94 @@ ext);%0A -%7D +else%0A $globalSmallModal.find('.modal-dialog').html(getGenericErrorModal()); %0A %0A $g @@ -2007,16 +2007,746 @@ e');%0A%7D%0A%0A +function getGenericErrorModal() %7B%0A %0A return '%3Cdiv class=%22modal-content%22%3E' +...
20066368cdd4336441d46700033e37d66650292c
add unit test to query.model.spec.js
server/models/query.model.spec.js
server/models/query.model.spec.js
'use strict'; // Set default node environment to development if (process.env.NODE_ENV === 'test') { process.env.DB_PASS='digdig'; process.env.DB_HOST='localhost'; } else { process.env.NODE_ENV = process.env.NODE_ENV || 'development'; } var config = require('../config/environment'); var should = require('sh...
JavaScript
0.000002
@@ -2172,12 +2172,414 @@ %7D);%0A%0A + it('should find no queries', function (done) %7B%0A return models.Query.findAll(%7B%0A where: %7B%0A notificationHasRun: true,%0A frequency: 'weekly'%0A %7D%0A %7D)%0A .then(function(queries) %7B%0A ...
903a3fa5ed6383de91b650992e500ff40df6c586
rewrite fly-fake-plugin test module
test/fixtures/alt/node_modules/fly-fake-plugin/index.js
test/fixtures/alt/node_modules/fly-fake-plugin/index.js
module.exports = function () { return this.filter("fakePlugin", function (src, opts) { return src.toString().split("").reverse().join("") }) }
JavaScript
0.000001
@@ -45,17 +45,17 @@ .filter( -%22 +' fakePlug @@ -56,17 +56,17 @@ kePlugin -%22 +' , functi @@ -114,18 +114,18 @@ ).split( -%22%22 +'' ).revers @@ -137,15 +137,17 @@ oin( -%22%22 +'' )%0A %7D) +; %0A%7D +; %0A
8b63fed4d791b0b5f4498667dfcb6f3638f18643
Add top/bottom/left/right properties to Rect.
canvas-animation/js/geometry/models/rect.js
canvas-animation/js/geometry/models/rect.js
/*globals define*/ define([ 'geometry/models/object2d' ], function( Object2D ) { 'use strict'; var Rect = Object2D.extend({ defaults: function() { var defaults = Object2D.prototype.defaults(); defaults.width = 0; defaults.height = 0; return defaults; }, drawPath: function( c...
JavaScript
0
@@ -523,16 +523,1713 @@ %0A %7D);%0A%0A + // left, right, top, and bottom properties are in world space.%0A Object.defineProperty( Rect.prototype, 'left', %7B%0A get: function() %7B%0A var halfWidth = 0.5 * this.get( 'width' );%0A return this.toWorld( -halfWidth, 0 );%0A %7D,%0A%0A set: function(...
14f748a4a37641eaf5e20175663c993cced1f409
remove spam
app/utils/SanitizeConfig.js
app/utils/SanitizeConfig.js
const iframeWhitelist = [ // { re: /^(https?:)?\/\/player.vimeo.com\/video\/.*/i }, // <-- medium-editor branch { re: /^(https?:)?\/\/www.youtube.com\/embed\/.*/i, fn: src => { return src.replace(/\?.+$/, ''); // strip query string (yt: autoplay=1,controls=0,showinfo=0, etc) } }, { ...
JavaScript
0.000001
@@ -1967,52 +1967,8 @@ rc;%0A - console.log('srcAtty', srcAtty)%0A
8598757945f4b9ee4ea7cf23b6e49b5ba62e2a76
refactor to es6 syntax
src/actions/retrieve_users_action.js
src/actions/retrieve_users_action.js
import axios from 'axios'; export const RETRIEVE_USERS = 'RETRIEVE_USERS'; const retrieveUsers = function() { const url = 'https://randomuser.me/api/?results=10' const response = axios.get(url); return { action: RETRIEVE_USERS, payload: response }; }; export default retrieveUsers;
JavaScript
0.999533
@@ -70,16 +70,23 @@ SERS';%0A%0A +export const re @@ -100,21 +100,22 @@ sers - = function() +Action = () =%3E %7B%0A%09 @@ -175,22 +175,21 @@ const re -sponse +quest = axios @@ -216,14 +216,12 @@ %7B%0A%09%09 -action +type : RE @@ -251,48 +251,15 @@ : re -sponse%0A%09%7D;%0A%7D;%0A%0Aexport default retrieve...
126998a6e86b119cbe970c054991a2f05a387788
remove onClick focus
src/lib/RichTextEditor.js
src/lib/RichTextEditor.js
/* @flow */ import React, {Component} from 'react'; import {CompositeDecorator, Editor, EditorState, RichUtils} from 'draft-js'; import getDefaultKeyBinding from 'draft-js/lib/getDefaultKeyBinding'; import EditorToolbar from './EditorToolbar'; import EditorValue from './EditorValue'; import LinkDecorator from './LinkDe...
JavaScript
0.000001
@@ -1787,30 +1787,8 @@ ame%7D - onClick=%7Bthis._focus%7D %3E%0A
d86b65a2cdf50d9d9c8020cc420de973f40ee408
fix firebaseConfig
lib/client/firebaseConfig.js
lib/client/firebaseConfig.js
module.exports = {"apiKey":"AIzaSyAQ7YJxZruXp5RhMetYq1idFJ8-y0svN-s","authDomain":"artbot-dev.firebaseapp.com","databaseURL":"https://artbot-dev.firebaseio.com","storageBucket":"artbot-dev.appspot.com","messagingSenderId":"1001646388415"}
JavaScript
0.000005
@@ -32,40 +32,40 @@ aSyA -Q7YJxZruXp5RhMetYq1idFJ8-y0svN-s +j07kPi_C4eGAZBkV7ElSLEa_yg3sHoDc %22,%22a @@ -79,27 +79,29 @@ in%22:%22artbot- -dev +26016 .firebaseapp @@ -136,19 +136,21 @@ /artbot- -dev +26016 .firebas @@ -186,11 +186,13 @@ bot- -dev +26016 .app @@ -226,19 +226,19 @@ d%22:%22 -1001646388415 +4938...
ebc230ce72f7b7de6237e73a875af6b8b5abd5ae
Add saveFile implementation into dataModifier.js
sashimi-webapp/src/database/data-modifier/dataModifier.js
sashimi-webapp/src/database/data-modifier/dataModifier.js
/* * CS3283/4 dataModifier.js * This acts as a facade class for modifying and update data for storage facade * */ import dataAdd from './dataAdd'; import dataDelete from './dataDelete'; import dataUpdate from './dataUpdate'; import exceptions from '../exceptions'; export default class dataModifier { static cons...
JavaScript
0.000001
@@ -1254,11 +1254,343 @@ %7D%0A %7D +%0A%0A static saveFile(fileId, file) %7B%0A if (typeof Promise === 'function') %7B%0A return new Promise((resolve, reject) =%3E %7B%0A resolve(dataUpdate.saveFile(fileId, file)%0A .then(() =%3E true))%0A .catch(sqlError =%3E sqlError);%0A ...
c88208ac07291631690ebd795f96e019a3a2f336
use aliasing
lib/hoodie-app.js
lib/hoodie-app.js
// Start a Hoodie app var fs = require("fs"); var http_proxy = require("http-proxy"); var hoodie_server = require("./hoodie-server"); var MultiCouch = require("multicouch"); var ltld; try { ltld = require("local-tld"); // TODO: check min version 2.0.0 } catch(e) { ltld = null; } var host = "0.0.0.0"; var http_p...
JavaScript
0.000016
@@ -661,16 +661,94 @@ name);%0A + ltld.setAlias(name, %22www.%22 + name);%0A ltld.setAlias(name, %22admin.%22 + name);%0A %7D%0A%0A// if
45cf4df698f1c62b5b26b42fe8dd1fdbd5e0d137
Add meta charset in the html output.
lib/html-table.js
lib/html-table.js
module.exports = function(options) { var head = options.head; var rows = []; var tableRow = function(columns, tag, index) { var startTag = index % 2 == 0 ? tag.replace(/>$/, ' style=\'background-color:#eee\'>') : tag; var endTag = tag.replace(/^</, '</'); var body = []; body.push('<tr...
JavaScript
0
@@ -537,15 +537,15 @@ ('%3C! -doctype +DOCTYPE htm @@ -592,32 +592,73 @@ push('%3Chead%3E');%0A + page.push('%3Cmeta charset=%22utf-8%22%3E');%0A page.push('%3C
4b87c9bf87359e22bdbc8aafb36e1a416c1b6bd2
Update service list tests
tests/services-list.state.spec.js
tests/services-list.state.spec.js
describe('Dashboard', function() { beforeEach(function() { module('app.states', 'app.components', 'app.config', 'gettext', bard.fakeToastr); bard.inject('$location', '$rootScope', '$state', '$templateCache', 'Session'); }); describe('route', function() { var views = { list: 'app/states/services...
JavaScript
0
@@ -2274,32 +2274,74 @@ ', function() %7B%0A + var action = %7BactionName: 'start'%7D;%0A expect(con @@ -2344,34 +2344,38 @@ (controller. -enableButt +updateMenuActi onForItemFn( @@ -2374,18 +2374,22 @@ rItemFn( -%7B%7D +action , servic @@ -2525,32 +2525,39 @@ 'stop'%7D;%0A +expect( controller...
de9a95211ce54c6e416675bfc07edd08345f1746
Change settings for uploading chunks
Dashboard/app/js/lib/views/data/bulk-upload-view.js
Dashboard/app/js/lib/views/data/bulk-upload-view.js
/*global Resumable, FLOW, $, Ember */ FLOW.uuid = function (file) { return Math.uuidFast(); }; FLOW.uploader = Ember.Object.create({ r: new Resumable({ target: FLOW.Env.flowServices + '/upload', uploadDomain: FLOW.Env.surveyuploadurl.split('/')[2], simultaneousUploads: 4, testChunks: false, th...
JavaScript
0
@@ -281,17 +281,17 @@ ploads: -4 +1 ,%0A te @@ -3087,22 +3087,34 @@ ted)');%0A +%0A +setTimeout( $.ajax(%7B @@ -3208,33 +3208,40 @@ a: data%0A %7D) -; +, 500);%0A %0A %7D);%0A%0A r.