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 |
|---|---|---|---|---|---|---|---|
e0ada96ceab737926231ef0bc8cb40c4ee753fd4 | Use Object.assign instead of object spread | examples/navigation/reducers/reposByUser.js | examples/navigation/reducers/reposByUser.js | import * as ActionTypes from '../ActionTypes';
export default function reposByUser(state = {}, action) {
switch (action.type) {
case ActionTypes.REQUESTED_USER_REPOS:
return {
...state,
[action.payload.user]: undefined
};
case ActionTypes.RECEIVED_USER_REPOS:
return {
... | JavaScript | 0.000006 | @@ -180,35 +180,42 @@
return
-%7B%0A ...
+Object.assign(%7B%7D,
state,
+ %7B
%0A
@@ -251,24 +251,25 @@
ined%0A %7D
+)
;%0A case A
@@ -317,27 +317,34 @@
urn
-%7B%0A ...
+Object.assign(%7B%7D,
state,
+ %7B
%0A
@@ -392,23 +392,24 @@
d.repos%0A
-
%7D
+)
;%0A de
|
d5ab5dc53d3b1dd0d59c442d2ac78755195b869e | Update listTables.js | src/js/elements/listTables.js | src/js/elements/listTables.js | import { clearView, fadeIn } from '../transitions';
import { renderTable } from './listTableView';
const columnTitles = (col2, col3) => {
return ['name', col2, col3, 'detail'];
};
export const tableControl = ({sign, btnId, data, headings, element}) => {
if(sign === '+') clearView(element);
else {
... | JavaScript | 0.000001 | @@ -293,24 +293,28 @@
ew(element);
+
%0A else %7B%0A
@@ -347,24 +347,22 @@
let
-listData
+titles
;
@@ -543,30 +543,28 @@
-if(btnId === 'sector')
+const tableConfig =
%7B%0A
@@ -581,34 +581,31 @@
-listData =
+sector:
%7B%0A
@@ -842,39 +842,23 @@
%7D
+,
%... |
fa75114eb9b428d2274b64322d90a3716a05666d | Add the introductory paragraph for build entry | tools/build.js | tools/build.js | 'use strict';
var commander = require('commander');
var path = require('path');
var Queue = require('gear').Queue;
var registry = require('./tasks');
var build, dir = {};
commander
.usage('[options] [<languages ...>]')
.option('-n, --no-compress', 'Disable compression')
.option('-t, --target <name>',... | JavaScript | 0.999497 | @@ -1,8 +1,281 @@
+// For the basic introductions on using this build script, see:%0A//%0A// %3Chttps://highlightjs.readthedocs.org/en/latest/building-testing.html%3E%0A//%0A// Otherwise, lets explain what each build target does in more detail, for%0A// those that wish to know before running this script.%0A
'use str
|
508e9b1d4bf910043c018ccfb2cc9bd3c24bbaac | Add TODOs to build task. | tools/build.js | tools/build.js | #!/usr/bin/env node
var fs = require('fs'),
glob = require('glob'),
path = require('path');
var args = require('yargs').default({
watch: false
}).argv;
var browserify = require(args.watch ? 'watchify' : 'browserify');
function bundle(b, outpath) {
console.log("Writing out %s ...", outpath);
var outStream = b.... | JavaScript | 0 | @@ -294,16 +294,76 @@
path);%0A%0A
+%09// TODO check out source maps with bundle(%7B debug: true %7D)%0A
%09var out
@@ -1269,16 +1269,83 @@
mplates%0A
+%09%09%09// TODO add error handling to https://github.com/zertosh/jstify%0A
%09%09%09.tran
|
53ca24cb8d42861de1d0c03d54a7f3c57001033f | Clean up message content | angular-zk-notify.js | angular-zk-notify.js | 'use strict';
angular.module('zkNotify', [])
.constant('NOTIFY_TIMEOUT', 6000)
.service('zkNotifySrv', [function zkNotifySrv() {
this.message = null;
this.isShow = false;
this.setNotifyMsg = function(msg) {
this.message = msg;
};
this.getNotifyMsg = function() {
return this.messag... | JavaScript | 0.212964 | @@ -1068,32 +1068,73 @@
isShow = false;%0A
+ scope.notify.message = '';%0A
%7D, t
@@ -1640,32 +1640,76 @@
isShow = false;%0A
+ zkNotifySrv.setNotifyMsg('');%0A
%7D, t
|
9d6bc1fa04cceb8a1307417b0cfe096656334c8a | add Dependencies check | QuantumTunnel.Client.JS/QuantumTunnel.Core.js | QuantumTunnel.Client.JS/QuantumTunnel.Core.js | var QT = (function (qt) {
//#region init
var qTag = $("script[quantum-tunnel]");
//#endregion
//#region private helpers
function getCamelCase(str) {
return str.replace(/-([a-z])/g, function (g) { return g[1].toUpperCase(); });
}
function parseAttribute(value) {
if (!va... | JavaScript | 0 | @@ -21,16 +21,571 @@
(qt) %7B%0A%0A
+ //#region Dependencies check%0A%0A function printMessage(msg) %7B%0A if (console && console.log) %7B%0A console.log(%22QT : %22, msg);%0A %7D else %7B%0A alert(%22QT info : %22, msg);%0A %7D%0A %7D;%0A%0A function printError(e... |
823f24f022c74d8b926ff912a7f6d5bb8fb88500 | Add a boundary for function regexp | src/languages/coffeescript.js | src/languages/coffeescript.js | /*
Language: CoffeeScript
Author: Dmytrii Nagirniak <dnagir@gmail.com>
Contributors: Oleg Efimov <efimovov@gmail.com>, Cédric Néhémie <cedric.nehemie@gmail.com>
Description: CoffeeScript is a programming language that transcompiles to JavaScript. For info about language see http://coffeescript.org/
*/
function(hljs) {... | JavaScript | 0.000001 | @@ -2738,16 +2738,23 @@
begin: '
+%5C%5CB%5C%5Cs*
(' + JS_
|
8ae28c53c7713a5e65d6421ca1b78694317d714d | Fix cost recalculating bug when editing balance items | web/src/reducers/editable-updates.reducer.js | web/src/reducers/editable-updates.reducer.js | import { Map as map } from 'immutable';
import { PAGES } from '../misc/const';
import { sortRowsByDate, addWeeklyAverages } from '../misc/data';
import { pushToRequestQueue } from './request-queue.reducer';
import { rGetOverviewRows, rProcessDataOverview, rCalculateOverview } from './overview.reducer';
import { getEx... | JavaScript | 0 | @@ -1471,16 +1471,22 @@
', 'cost
+Actual
'%5D)%0A
|
62613fa91ee8665e23b4f2a30f52f531906708bf | Use `_.transform` to keep mutability in a function | tools/tasks.js | tools/tasks.js | 'use strict';
var _ = require('lodash');
var del = require('del');
var gear = require('gear');
var path = require('path');
var fs = require('fs');
var utility = require('./utility');
var parseHeader = utility.parseHeader;
var getStyleNames = utility.getStyleNames;
var tasks = require('g... | JavaScript | 0.000015 | @@ -2343,27 +2343,15 @@
var
-contributors = %5B%5D,%0A
+result,
%0A
@@ -2424,33 +2424,44 @@
)%3E$/
-,%0A result;%0A%0A _.each
+;%0A%0A json.contributors = _.transform
(lin
@@ -2473,16 +2473,24 @@
unction(
+result,
line) %7B%0A
@@ -2551,28 +2551,22 @@
%7B%0A
-contributors
+result
.push(%7B%0A
@... |
284fac379c822bd87f9cc9893ba18eaae082cae4 | patch over another scenario whe we leak room IDs. i have *zero* idea why or where the webclient is overriding message.membership to be "join" though, when it comes down the events pipe as "invite" (which was causing this failure mode) | webclient/components/matrix/matrix-filter.js | webclient/components/matrix/matrix-filter.js | /*
Copyright 2014 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | JavaScript | 0 | @@ -3268,16 +3268,24 @@
message.
+content.
membersh
|
993f6aee700369434b144ca1b8d6966b2d796c75 | fix red X button for removing an org from your profie (fixes #180) | website/templates/website/form_fields/org.js | website/templates/website/form_fields/org.js | var global_member_id = '';
var global_org_id = '';
$('#add_org').click(function(){
controller.postRequest('/organization/', {ajax: 'open_choose_org'});
return false;
});
$('.org_edit_link').click(function(event){
$target = $(event.target);
var orgId = $target.data('orgid');
controll... | JavaScript | 0 | @@ -1908,32 +1908,43 @@
= $(event.target
+.parentNode
);%0A%09%09var memberI
@@ -4440,31 +4440,29 @@
invitation%0A%09%09 %7D);%0A%09%09%7D
-%09%09%09
+%0A
|
a8e4a366e6b73f2547f5dcc22847dadfdb4d179a | Fix codeSandboxOption errors. | website/uiw/src/components/Markdown/index.js | website/uiw/src/components/Markdown/index.js | import React, { useEffect, useState } from 'react';
import ReactDOM from 'react-dom';
import CodePreview from '@uiw/react-code-preview';
import MarkdownPreview from '@uiw/react-markdown-preview';
import Heading from './Heading';
import Footer from './Footer';
import styles from './index.module.less';
const components ... | JavaScript | 0 | @@ -2223,17 +2223,16 @@
oxOption
-s
= !code
@@ -4540,17 +4540,16 @@
oxOption
-s
,%0A
|
d0a298cff7c25b51528226674197d6df56409637 | use shortcut ES6 object property | widgets/numeric-selector/numeric-selector.js | widgets/numeric-selector/numeric-selector.js | let React = require('react');
let ReactDOM = require('react-dom');
let utils = require('../../lib/utils.js');
let cx = require('classnames');
let find = require('lodash/collection/find');
let autoHideContainerHOC = require('../../decorators/autoHideContainer');
let bem = utils.bemHelper('ais-numeric-selector');
/**
... | JavaScript | 0.000001 | @@ -3051,18 +3051,8 @@
s, %7B
-operator:
oper
|
315cfc1380075f5d911a87f8ffdd454ac958f2c3 | Update contacts.js | new/example/contacts.js | new/example/contacts.js | var ContactsWidget = {
controller: function update(props) {
this.contacts = Contact.list(update.bind(this))
this.save = function(contact) {
this.contacts = Contact.save(contact, update.bind(this))
}.bind(this)
this.onload = function(element) {
console.log('contacts onload')
localS... | JavaScript | 0 | @@ -274,29 +274,46 @@
-console.log
+document.body.querySelector
('
+#
contacts
onl
@@ -312,15 +312,33 @@
acts
- onload
+').classList.remove('hide
')%0A
@@ -2036,94 +2036,8 @@
%0A%7D%0A%0A
-document.body.querySelector('#contacts').classList.remove('hide')%0Amag.logger(console)%0A
mag.
|
cc1fc286850ef404a9bd2b51e4c6f759619cc5f1 | Update customizePizza.js | docs/v1.0/js/customizePizza.js | docs/v1.0/js/customizePizza.js | //var customizePizza = angular.module('pizzaApp', []);
customizePizza.controller('cart', function($scope, $http) {
var self = this;
var url = '//gs-sts-cloud-foundry-deployment-nrsorg.cfapps.io/cart/items/count';
//url = 'http://localhost:8081/cart/items/count';
$http.get(url).then(function(response) {
... | JavaScript | 0.000001 | @@ -1,10 +1,8 @@
-//
var cust
|
e0b57c8de9af9672c7b0008a8e0a431bf5dd583f | Update example | todos.js | todos.js | // An example Backbone application contributed by
// [Jérôme Gravel-Niquet](http://jgn.me/). This demo uses a simple
// Firebase adapter to persist Backbone models.
// Load the application once the DOM is ready, using `jQuery.ready`:
$(function(){
// Todo Model
// ----------
// Our basic **Todo** model has `ti... | JavaScript | 0.000001 | @@ -3221,19 +3221,18 @@
.model.s
-av
e
+t
(%7Btitle:
@@ -4593,18 +4593,70 @@
this.add
+One);%0A this.listenTo(Todos, 'reset', this.addAll
)
-;
%0A t
@@ -5413,16 +5413,19 @@
%0A add
+One
: functi
@@ -5534,32 +5534,160 @@
().el);%0A %7D,%0A%0A
+ // Add all items in the **Todos** collection at ... |
f1b0cf3d0b2c1ddf9f00ddf6b9581725d6fef683 | undefined2 | Server/mysql.js | Server/mysql.js | var mysql = require('mysql'),
pool = mysql.createPool({
host: process.env.host,
user: process.env.user,
password: process.env.password,
database: process.env.database
});
function validate(string) {
return pool.escape(string) || '';
}
function query(string, callback) {
p... | JavaScript | 0.999509 | @@ -1637,24 +1637,47 @@
it, type) %7B%0A
+ var typeText = '';%0A
if (type
@@ -1677,20 +1677,16 @@
f (type)
- var
typeTex
|
a0b802f0b9827544bc4e5bc93b404eef9d7e76eb | fix user update notifications | server/database.js | server/database.js | const loki = require("lokijs");
let db = new loki("data.json");
let messages = db.addCollection("messages");
let sessions = db.addCollection("sessions");
let direct = db.addCollection("direct");
let _exports = module.exports = {};
/**
* Clone an object
* This is rather hacky
*
* @private
* @param {object} obj ... | JavaScript | 0.000002 | @@ -4714,24 +4714,27 @@
one(session)
+%5B0%5D
;%0A%0A%09if ( ses
@@ -4963,72 +4963,159 @@
ted.
-old = old;%0A%09updated.body = %22User data updated%22;%0A%0A%09_exports.store
+body = old.nick + %22#%22 + old.id + %22 is now %22 + updated.nick + %22#%22 + updated.id;%0A%09updated.nick = %22system%22;%0A%09updated.id ... |
9af397f214fd8519472943624a3f8f5ff1e373e3 | Use common example across SDKs | example-embedding.js | example-embedding.js | var Cumulio = require('./cumulio');
var http = require('http');
// Connect to Cumul.io API
var client = new Cumulio({
api_key: '< Your API key >',
api_token: '< Your API token >'
});
// Run a web server
var server = http.createServer(function(request, response) {
if (request.url !== '/') {
response.statusC... | JavaScript | 0 | @@ -422,44 +422,44 @@
= '
-6ae6a28d-b074-494f-a9bb-6b6ee7432973
+1d5db81a-3f88-4c17-bb4c-d796b2093dac
';%0A
|
a9340a19c46e52b2504cd5298f2f42c7af7fa629 | Test odata-reading-decimal-test fix import function | tests/unit/odata/odata-reading-decimal-test.js | tests/unit/odata/odata-reading-decimal-test.js | import Ember from 'ember';
import QueryBuilder from 'ember-flexberry-data/query/builder';
import executeTest from './execute-odata-CRUD-test';
import FilterOperator from 'ember-flexberry-data/query/filter-operator';
function initTestData(store) {
return Ember.RSVP.Promise.all([
store.createRecord('ember-flexberr... | JavaScript | 0.000001 | @@ -109,16 +109,28 @@
from '.
+./CRUD/odata
/execute
@@ -140,13 +140,8 @@
ata-
-CRUD-
test
|
bac853d4381d915361750d6c301431a9447009dd | fix default mutation bug | packages/vulcan-core/lib/modules/default_mutations.js | packages/vulcan-core/lib/modules/default_mutations.js | /*
Default mutations
*/
import { newMutation, editMutation, removeMutation, Utils } from 'meteor/vulcan:lib';
import Users from 'meteor/vulcan:users';
export const getDefaultMutations = (collectionName, options = {}) => ({
// mutation for inserting a new document
new: {
name: `${collectionName}New`,
... | JavaScript | 0.000001 | @@ -1542,32 +1542,42 @@
s.editCheck(user
+, document
);%0A %7D%0A%0A
@@ -2870,16 +2870,26 @@
eck(user
+, document
);%0A
|
669783d53be5282feab13811f527687e659a27d2 | Change project version | server/settings.js | server/settings.js | Meteor.release = "0.2.0";
| JavaScript | 0 | @@ -17,9 +17,9 @@
%220.
-2
+4
.0%22;
|
1f796ce944ad1eb5643a000fa121cfc83572c833 | Add 'hideLoadingImage()' function on Error status | project/dexter-server/public/AdminSE/adminSECtrl.js | project/dexter-server/public/AdminSE/adminSECtrl.js | "use strict";
adminSEApp.controller('adminSECtrl', function ($scope, $http, $location, $routeParams, $log) {
const NONE_MODULE_PATH = 'undefined';
$('.did-select').on('select2:select', function (event) {
addDidList(event);
changeSelectedDidCount();
});
$('.module-select').on('select2:s... | JavaScript | 0.000001 | @@ -3420,32 +3420,64 @@
ion (results) %7B%0A
+ hideLoadingImage();%0A
$log
@@ -4338,32 +4338,64 @@
ion (results) %7B%0A
+ hideLoadingImage();%0A
$log
|
5df5e4f9734da13d7c935f5344cba47ff3e01f47 | Improve Karma configuration | .config/karma.conf.js | .config/karma.conf.js | module.exports = function(config) {
config.set({
basePath: '../public',
// frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['mocha', 'sinon', 'chai', 'browserify', 'detectBrowsers'],
files: [
'app.js',
'../tests/helpers/browser.js',
'tests/*.js',
{patte... | JavaScript | 0 | @@ -35,19 +35,22 @@
%7B%0A
-config.set(
+var options =
%7B%0A
@@ -1022,33 +1022,13 @@
ch:
-process.env.CI !== 'true'
+false
,%0A%0A
@@ -1100,105 +1100,103 @@
-browsers: %5B'Chrome', 'Firefox'%5D,%0A%0A detectBrowsers: %7B%0A enabled: process.env.CI !== 'true',
+// This will actually get set by ... |
09ad31e2e8a702944255ccf3450ff5a26c080847 | Update jQuery to use .click() | app/assets/javascripts/application.js | app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ... | JavaScript | 0 | @@ -1291,28 +1291,22 @@
bmit%5D%22).
-on(%22
click
-%22,
+(
function
|
5471934d5cf1dcd33cde05894aef1ceac6221442 | mark notifications as read | app/assets/javascripts/application.js | app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ... | JavaScript | 0 | @@ -4531,16 +4531,66 @@
(%22%3Cli%3E%3Ca
+ class='notification' data-id='%22 + data%5Bi%5D.id + %22'
href='%22
@@ -4864,12 +4864,210 @@
%0A %7D);%0A%0A
+ $(%22ul.dropdown a.notification%22).bind(%22click%22, function(ev) %7B%0A ev.preventDefault();%0A $.post(%22/notifications/%22 + $(this).data(%22id%22) + ... |
88160ffc525e22ec78d3269fb1e38e20b11a6595 | fix code climate style issues | app/assets/javascripts/application.js | app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... | JavaScript | 0.000002 | @@ -1377,23 +1377,8 @@
data
-, status, jqXHR
) %7B%0A
@@ -1504,21 +1504,16 @@
tion(key
-, val
) %7B%0A
@@ -2552,62 +2552,8 @@
);%0A%0A
-%0A $(%22.track-file-input%22).on('change', checkfile);%0A%0A
|
56b746853d2b82f3b57daf4e24ec0b2a4ac45052 | add a table resort after updateing rows | app/assets/javascripts/application.js | app/assets/javascripts/application.js | //= require jquery
//= require jquery_ujs
//= require jquery.tipTip
//= require jquery.tablesorter
//= require jquery.timeago
//= require jquery.flot
//= require jquery.flot.errorbars
//= require jquery.flot.categories
//= require moment
//= require_self
moment.lang('en', {
calendar: {
sameDay: 'h:mma',
las... | JavaScript | 0 | @@ -1722,16 +1722,70 @@
%7D);%0A
+ $(%22table.tablesorter%22).trigger(%22update%22, %5Btrue%5D);%0A
%7D);%0A%7D%0A
|
5521f4b4a4e1bc3c90ac0680e1e04b2ba2d69c35 | add title to notifications and move message to the body | app/assets/javascripts/application.js | app/assets/javascripts/application.js | //= require jquery
//= require jquery_ujs
//= require jquery.tipTip
//= require jquery.tablesorter
//= require jquery.timeago
//= require jquery.flot
//= require jquery.flot.errorbars
//= require jquery.flot.categories
//= require moment
//= require_self
moment.lang('en', {
calendar: {
sameDay: 'h:mma',
las... | JavaScript | 0 | @@ -2391,16 +2391,44 @@
sage) %7B%0A
+ options = %7Bbody: message%7D%0A
if ( %22
@@ -2635,23 +2635,47 @@
ication(
-message
+%22Kochiku Build Status%22, options
);%0A
|
089eb3cd8679a5f17f99692b7cf9ca9362739afb | Include geneSynopsisUrl in Description field | src/js_src/containers/genePage/basicGeneInfo.js | src/js_src/containers/genePage/basicGeneInfo.js | import React, {Component} from 'react';
import DataSourceCard from './dataSourceCard';
import DataSourceLink from '../../components/dataSourceLink';
class BasicGeneInfo extends Component {
constructor(props) {
super(props);
this.state = {
geneData: this.props.geneData,
speciesData: {
spe... | JavaScript | 0 | @@ -491,119 +491,616 @@
lder
-IfBlank(text) %7B%0A if (text) %7B%0A return text;%0A %7D%0A return %3Ci className='text-muted'%3ENot Available%3C/i%3E
+() %7B%0A return %3Ci className='text-muted'%3ENot Available%3C/i%3E;%0A %7D%0A%0A placeholderIfBlank(text) %7B%0A if (text) %7B%0A return te... |
f13e1070b2c48f6416396f11215613c1942b0727 | remove turbolinks from the list of required js to prevent unnecessary js from being loaded on button link from home page to record#new | app/assets/javascripts/application.js | app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... | JavaScript | 0 | @@ -628,31 +628,8 @@
ujs%0A
-//= require turbolinks%0A
//=
|
cdf25ee580fffc58494d4a2d8bffe4e1b04548ec | Fix some syntax issues | app/assets/javascripts/admin/spree/calculator.js | app/assets/javascripts/admin/spree/calculator.js | $(function() {
var calculator_select = $('select#calc_type')
var original_calc_type = calculator_select.attr('value');
$('.calculator-settings-warning').hide();
calculator_select.change(function() {
if (calculator_select.attr('value') == original_calc_type) {
$('div.calculator-settings').show();
... | JavaScript | 0.020418 | @@ -55,16 +55,17 @@
c_type')
+;
%0A var o
@@ -102,28 +102,20 @@
_select.
-attr('value'
+val(
);%0A $('
@@ -153,16 +153,17 @@
hide();%0A
+%0A
calcul
@@ -178,15 +178,21 @@
ect.
+on(%22
change
-(
+%22,
func
@@ -230,24 +230,17 @@
ect.
-attr('value'
+val(
) ==
+=
ori
@@ -581,17 +581,16 @@
put,text
-t
are... |
7af36c6a2875aeb49609149eaaed25b3c69ace03 | Use event delegation for reveal button | app/assets/javascripts/application.js | app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ... | JavaScript | 0 | @@ -786,19 +786,9 @@
ment
- show page
%0A
+
$(do
@@ -818,16 +818,37 @@
) %7B%0A $(
+document).on('click',
'#reveal
@@ -853,28 +853,16 @@
al-info'
-).on('click'
, functi
@@ -910,10 +910,10 @@
gle(
-20
+15
0);%0A
|
cfe4e564928fbb9a735c3c77704f497d2b8462d6 | validate vimeo url | app/assets/javascripts/app/views/projects/new.js | app/assets/javascripts/app/views/projects/new.js | CATARSE.ProjectsNewView = Backbone.View.extend({
el: 'body',
initialize: function() {
//var video_valid = null
var permalink_valid = null
everything_ok = function(){
var all_ok = true
//if(video_valid == null) {
// all_ok = false
// verify_video()
//}
if(permalink_... | JavaScript | 0.999484 | @@ -88,18 +88,16 @@
) %7B%0A
-//
var vide
@@ -107,24 +107,24 @@
alid = null%0A
+
var perm
@@ -204,18 +204,16 @@
e%0A
-//
if(video
@@ -232,26 +232,24 @@
ll) %7B%0A
-//
all_ok = f
@@ -259,18 +259,16 @@
e%0A
-//
verify
@@ -282,18 +282,16 @@
)%0A
-//
%7D%0A
@@ -668,18 +... |
d2bee2eacb4f7bc2a7ccbc835be7e14d9389c276 | Use spleasy like JS behaviour initialization in application.js | app/assets/javascripts/application.js | app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directl... | JavaScript | 0 | @@ -3817,28 +3817,61 @@
d%22);%0A%7D%0A%0A
-function add
+// Initialize behaviours%0Afunction inititalize
Behaviou
@@ -4185,26 +4185,18 @@
ady(
-function() %7B%0A add
+initialize
Beha
@@ -4201,17 +4201,11 @@
haviours
-(
);%0A
-%7D);%0A%0A
|
9e0d5f7e4c02c03bae85b25e3991ed3714807829 | Add cursor to custom Quill toolbar | app/assets/javascripts/components/QuillEditor.js | app/assets/javascripts/components/QuillEditor.js | import React from 'react';
import ReactDOM from 'react-dom';
import Quill from 'quill';
import Delta from 'quill-delta';
import _ from 'lodash';
const toolbarOptions = [
['bold', 'italic', 'underline'],
[{ list: 'ordered' }, { list: 'bullet' }],
[{ script: 'sub' }, { script: 'super' }],
[{ header: [1, 2, 3, ... | JavaScript | 0 | @@ -6354,16 +6354,35 @@
t: '5px'
+, cursor: 'pointer'
%7D%7D%0A
|
56f8514866b870f9277b533058150ab63a93a176 | fix tags autocompletion | app/assets/javascripts/application.js | app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... | JavaScript | 0.000001 | @@ -1332,12 +1332,12 @@
ta('
+da
ta
-gs
');%0A
|
6ffc9b078f472de471a114845edb11e2df1cf8d4 | load startup once. | app/assets/javascripts/application.js | app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ... | JavaScript | 0 | @@ -995,34 +995,8 @@
%0A%7D;%0A
-$(document).ready(ready);%0A
$(do
|
7badd9c77c216c4affa5886a3c2047493bf7e227 | Add require_tree to application js.git | app/assets/javascripts/application.js | app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ... | JavaScript | 0.000001 | @@ -588,20 +588,12 @@
uire
- gmaps/googl
+_tre
e%0A//
|
9aa0c25774bdc848a9d0300c137d7e9f7cbe5648 | make sure formattedConfig ignores the .configured key | app/assets/javascripts/spec/models/build_spec.js | app/assets/javascripts/spec/models/build_spec.js | describe('Build', function() {
describe('class methods', function() {
describe('byRepositoryId', function() {
it('requests GET /repositories.json', function() {
Travis.Build.byRepositoryId(1);
expect(mostRecentAjaxRequest().url).toEqual('/repositories/1/builds.json?parent_id=');
});
... | JavaScript | 0.000001 | @@ -6124,23 +6124,11 @@
rns
-an empty string
+%22-%22
if
@@ -6259,16 +6259,17 @@
oEqual('
+-
');%0A
@@ -6590,32 +6590,217 @@
x');%0A %7D);
+%0A%0A it(%22ignores the .configured key%22, function() %7B%0A build.set('config', %7B '.configured': true %7D);%0A expect(build.get('fo... |
b238e9cf1ab7548890b5b6ff3f520359ead3180b | fix spinner show in restore | app/assets/javascripts/application.js | app/assets/javascripts/application.js | //= require jquery
//= require jquery_ujs
//= require turbolinks
//= require mousetrap
//= require_tree ./sitewide
//= require_tree ./application
$(function() {
// Client Side Validations - Turbolinks
$(document).on('page:change', function() {
$('form[data-validate]').validate();
});
$(document).on('page:... | JavaScript | 0 | @@ -378,12 +378,15 @@
age:
-load
+restore
', f
@@ -397,16 +397,42 @@
ion() %7B%0A
+ $('#spinner').hide();%0A
%7D);%0A%7D)
|
7e072fcbb48821194f2cd2b5dea119ea69c05c85 | update example | examples/calculate-shipping.js | examples/calculate-shipping.js | var address = {postalCode: $('#cep').val(), country: 'Brazil'};
vtexjs.checkout.getAddressInformation(address)
.then(function(completeAddress){
vtexjs.checkout.calculateShipping(completeAddress);
});
//----------------------------
$(window).on('vtexjs.checkout.orderform.update', function(orderForm){
... | JavaScript | 0.000001 | @@ -1,8 +1,68 @@
+vtexjs.checkout.getOrderForm()%0A.then(function(orderForm)%7B%0A
var addr
@@ -117,16 +117,25 @@
azil'%7D;%0A
+ return
vtexjs.c
@@ -177,17 +177,16 @@
ss)%0A
- .then
+%7D)%0A.done
(fun
@@ -209,22 +209,16 @@
dress)%7B%0A
-
vtexjs
@@ -267,17 +267,14 @@
s);%0A
-
%7D);%0A%0A
+%0A... |
b30b58de843a235471b62b3d3ca12e83a2b8b98e | fix bug with youtube player | app/assets/javascripts/transit/contexts/video.js | app/assets/javascripts/transit/contexts/video.js | //= require libs/jplayer
//= require transit/views/video_player
(function(transit){
var video = function( element, options ){
var self = this;
var data = transit.context.data( element, true ) || {},
inst, config = transit.merge( options, data ),
player, player_element,
pid = _.uniqueId();
confi... | JavaScript | 0 | @@ -515,17 +515,16 @@
0%25' %7D);%0A
-%0A
%09%09if( ty
@@ -552,16 +552,43 @@
defined'
+ %7C%7C data.type == 'you_tube'
)%7B%0A%09%09%09i
|
7450458991c8238736f70e5f843934b1483e45a4 | Remove example AJAX request | app/assets/javascripts/application.js | app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ... | JavaScript | 0.000001 | @@ -770,320 +770,4 @@
%7D);%0A
-%0Afunction getTags() %7B%0A $.ajax(%7B%0A url: '/api/tags',%0A dataType: 'json',%0A contentType: 'json',%0A headers: %7B%0A 'Authorization': window.localStorage.getItem('user.uuid')%0A %7D,%0A success: function(data) %7B%0A console.log(data);%0A %7D,%0A ... |
13c00d427c45965a7bad41c705afe108902b1e0a | add jquery and snapsvg dependency for injection | src/main/webapp/jsfull/app.js | src/main/webapp/jsfull/app.js | requirejs.config({
"baseUrl": "",
"paths": {
"app": "../app",
"jquery": "http://code.jquery.com/jquery-2.2.4.min"
}
});
/*
requirejs(["./js/chessboard.js"], function (myApp) {
var jsonC = '{"squares":{"C8":"B","A2":"p","A1":"r","C7":"P","A8":"R","A7":"P","E7":"P","E8":"K","G7":"P","G8":"... | JavaScript | 0 | @@ -134,510 +134,55 @@
min%22
-%0A %7D%0A%7D);%0A/*%0Arequirejs(%5B%22./js/chessboard.js%22%5D, function (myApp) %7B%0A var jsonC = '%7B%22squares%22:%7B%22C8%22:%22B%22,%22A2%22:%22p%22,%22A1%22:%22r%22,%22C7%22:%22P%22,%22A8%22:%22R%22,%22A7%22:%22P%22,%22E7%22:%22P%22,%22E8%22:%22K%22,%22G7%22:%22P%22,%22G8%2... |
3c799ee45aa469860ffab4ec719efaf65c6b2f3d | add code-theme-selector component documentation (#344) | app/components/code-theme-selector.js | app/components/code-theme-selector.js | import Ember from 'ember';
export default Ember.Component.extend({
classNames: ['code-theme-selector'],
classNameBindings: ['themeClass'],
codeTheme: Ember.inject.service(),
themeClass: Ember.computed.alias('codeTheme.className'),
click() {
this.get('codeTheme').toggle();
},
});
| JavaScript | 0 | @@ -24,249 +24,774 @@
r';%0A
-%0Aexport default Ember.Component.extend(%7B%0A classNames: %5B'code-theme-selector'%5D,%0A classNameBindings: %5B'themeClass'%5D,%0A%0A codeTheme: Ember.inject.service(),%0A%0A themeClass: Ember.computed.alias('codeTheme.className'),%0A%0A click() %7B%0A this.get(
+import %7B ali... |
a3c740c7108ecd24fe294b80e651176ce84ac270 | centralized the weird slashes suffix | Better_Paylocity.user.js | Better_Paylocity.user.js | // ==UserScript==
// @name Better Paylocity
// @namespace betterui
// @description Improvements to the Paylocity UI
// @include https://webtime2.paylocity.com/webtime/Employee/Timesheet
// @include https://webtime2.paylocity.com/webtime/Employee/Timesheet#
// @downloadURL https://raw.githubusercontent.... | JavaScript | 0.999971 | @@ -671,22 +671,18 @@
payType
-Suffix
+RE
= /PayT
@@ -689,16 +689,57 @@
ypeId$/;
+%0Avar chargeCodeSuffix = '//////////////';
%0A%0Avar on
@@ -838,22 +838,18 @@
(payType
-Suffix
+RE
, 'Labor
@@ -2536,30 +2536,50 @@
value=%22
-//////////////
+',%0A chargeCodeSuffix,%0A '
%22%3EUnassi
@@ -2747,31 +27... |
f437b29fd1ae80278f5b192f2cd994f7b050155c | Fix eslint errors. | app/components/intensity-bar.react.js | app/components/intensity-bar.react.js | var React = require('react');
class IntensityBar extends React.Component {
render(){
var dots = [];
var className = 'dot-on';
for(var i = 0; i < 12; i++){
if(i >= this.props.intensity) {
className = 'dot-off';
}
dots.push(<span className={className}></span>);
};
return <... | JavaScript | 0.000017 | @@ -24,16 +24,17 @@
act');%0A%0A
+%0A
class In
@@ -70,16 +70,18 @@
onent %7B%0A
+
render
@@ -84,16 +84,20 @@
nder()%7B%0A
+
var
@@ -107,24 +107,28 @@
s = %5B%5D;%0A
+
+
var classNam
@@ -141,16 +141,20 @@
ot-on';%0A
+
for(
@@ -184,16 +184,22 @@
%7B%0A
+
+
if(i %3E=
@... |
ed9f6232e2e2f37dd8d48e744c76245d211642c8 | fix click off on recording issue | app/containers/MarkerOverlay/index.js | app/containers/MarkerOverlay/index.js | /*
*
* MarkerOverlay
*
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import markersSelector from 'markersSelector';
import projectSelector from 'projectSelector';
import { addMarker } from './actions';
import Marker from 'Marker';
class MarkerOverl... | JavaScript | 0 | @@ -376,32 +376,83 @@
-if (!this.props.readOnly
+const %7B readOnly, recording %7D = this.props;%0A if (!readOnly && !recording
) %7B%0A
@@ -1523,16 +1523,57 @@
ject'),%0A
+ recording: project.get('recording'),%0A
%7D;%0A%7D%0A%0A
|
ef47eed2832a302f542f1552c7bd4f91c84e0ca3 | Add validation to models | models.js | models.js | var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/swagcab');
module.exports = {
Driver: mongoose.model('Driver', {
driverid: Number,
userid: Number,
seats: Number,
eventid: Number,
desc: String
}),
Event: mongoose.model('Event', {
eventid: Number,
name: String... | JavaScript | 0 | @@ -153,259 +153,565 @@
id:
-Number,%0A userid: Number,%0A seats: Number,%0A eventid: Number,%0A desc: String%0A %7D),%0A%0A Event: mongoose.model('Event', %7B%0A eventid: Number,%0A name: String,%0A location: String,%0A hostid: Number,%0A creationdate: Date,%0A queueid: Number
+%7B ty... |
951b4440e7273ce9c693296120e24a3c83809e30 | Remove useless code | app/javascript/packs/in_tail_parse.js | app/javascript/packs/in_tail_parse.js | 'use strict'
import 'lodash/lodash'
import 'popper.js/dist/popper'
import 'bootstrap/dist/js/bootstrap'
import OwnedPluginForm from './owned_plugin_form'
$(document).ready(() => {
new Vue({
el: '#in-tail-parse',
props: [
"path",
"parseType"
],
data: function() {
return {
hig... | JavaScript | 0.000001 | @@ -3561,70 +3561,8 @@
%3E %7B%0A
- this.params = _.merge(this.params, result.params)%0A
|
d74dff7b6dba52ab3c563ed5bcd158e9efda9e11 | disable cookie consent banner | app/javascript/packs/member_facing.js | app/javascript/packs/member_facing.js | import 'babel-polyfill';
import '../shared/pub_sub';
import '../shared/show_errors';
import '../member-facing/registration';
import '../member-facing/track_shares';
import 'whatwg-fetch';
import 'cookieconsent';
require('lodash');
require('backbone');
import URI from 'urijs';
import configureStore from '../state';
im... | JavaScript | 0 | @@ -1989,16 +1989,19 @@
%0A %7D);%0A
+ //
initial
|
cd1577e07904ae680b5c6c0b55536e62cd084828 | Fix copy and paste error | app/js/arethusa/treebank_persister.js | app/js/arethusa/treebank_persister.js | 'use strict';
angular.module('arethusa').factory('TreebankPersister', [
'documentStore',
'configurator',
'navigator',
'idHandler',
function (documentStore, configurator, navigator, idHandler) {
return function(conf) {
var self = this;
var resource = configurator.provideResource(conf.resource)... | JavaScript | 0 | @@ -1923,37 +1923,38 @@
._postag= morph.
-lemma
+postag
;%0A if (
|
a118f5f9a9db749c7310f1f28784eb20129e3ce1 | update issue response to include MEMBER association | actions/issues/src/plugins/add-issue-response.js | actions/issues/src/plugins/add-issue-response.js | /**
* Copyright IBM Corp. 2020, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const { events, states } = require('../conditions');
const labels = require('../labels');
const { needsTriage, waitingForAuth... | JavaScript | 0 | @@ -658,16 +658,26 @@
BORATOR'
+, 'MEMBER'
%5D);%0A%0A
|
e010486b023402ef2bc4858bdf00d0f0f0553207 | fix typo in dialog activity resolving | actor-sdk/sdk-web/src/components/Dialog.react.js | actor-sdk/sdk-web/src/components/Dialog.react.js | /*
* Copyright (C) 2015-2016 Actor LLC. <https://actor.im>
*/
import { isFunction } from 'lodash';
import React, { Component, PropTypes } from 'react';
import { Container } from 'flux/utils';
import PeerUtils from '../utils/PeerUtils';
import DefaultMessages from './dialog/MessagesSection.react';
import DialogFoo... | JavaScript | 0.000001 | @@ -2090,16 +2090,17 @@
res.call
+s
) %7B%0A
|
ef2f0bbeded3ebab941604f409875bd786ce0e10 | Allow `from` property to accept features or geometries | src/modes/draw_line_string.js | src/modes/draw_line_string.js | const CommonSelectors = require('../lib/common_selectors');
const LineString = require('../feature_types/line_string');
const isEventAtCoordinates = require('../lib/is_event_at_coordinates');
const doubleClickZoom = require('../lib/double_click_zoom');
const Constants = require('../constants');
const createVertex = req... | JavaScript | 0 | @@ -671,31 +671,272 @@
-const from = opts.from;
+let from = opts.from;%0A if (from.type === 'Feature' && from.geometry && from.geometry.type === 'Point') %7B%0A from = from.geometry;%0A %7D%0A if (from.type === 'Point' && from.coordinates && from.coordinates.length === 1) %7B%0A from = from.coo... |
05e3873f1341158a0709f66cbf1d39a1686325c5 | Add paddingLeft for Movies icon | src/modules/_global/Drawer.js | src/modules/_global/Drawer.js | import React, { Component, PropTypes } from 'react';
import {
Text,
View,
TouchableOpacity
} from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
import LinearGradient from 'react-native-linear-gradient';
import styles from './styles/Drawer';
class Drawer extends Component {
constructor(pro... | JavaScript | 0 | @@ -704,32 +704,33 @@
#9F9F9F%22 style=%7B
+%5B
styles.drawerLis
@@ -726,32 +726,53 @@
s.drawerListIcon
+, %7B paddingLeft: 3 %7D%5D
%7D /%3E);%0A%09%09const i
|
347b64e49fed793f80f0a8a513679c098f588d8c | Update get.js | data-streams/get.js | data-streams/get.js | /* Author: ... - Date: 2016/09/13 */
// Obtiene el valor de un parametro simulando el método 'GET'.
function getParameterByName(name) {
// ...
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
// ...
regex = new RegExp("[\\?&]" + name + "=([^&#]*)");
// ...
results = regex.exec(location.search);
... | JavaScript | 0.000001 | @@ -130,16 +130,18 @@
name) %7B%0A
+
// ...
@@ -141,16 +141,18 @@
// ...%0A
+
name =
@@ -210,16 +210,18 @@
;%0A
+
+
// ... %0A
re
@@ -216,16 +216,18 @@
// ... %0A
+
regex
@@ -271,16 +271,18 @@
#%5D*)%22);%0A
+
// ...
@@ -278,24 +278,26 @@
%0A // ...%0A
+
results =
@@ -325,16... |
b535ce195b436059b07a20ed73bffed6d07c2890 | Update selector to cope with changed HTML | app/static/javascripts/dit.tagging.js | app/static/javascripts/dit.tagging.js | // SOO Specific Tagging Functionality.
// -----------------------------------
// REQUIRES
// jQuery
// dit.js
// Because we're not on ExOpps, which has the full set
// of files, adding a little defensive namespacing.
var dit = dit || {};
dit.tagging = dit.tagging || {};
// Event tagging for SOO page types.
dit.tagg... | JavaScript | 0 | @@ -918,13 +918,17 @@
$(%22
-.more
+#exporter
-sto
|
3e30dccdd91a08a0e6ad94c653a3c8f7b27c9c0f | Remove commented-out code | nyan/assets/js/racer.js | nyan/assets/js/racer.js | function Game(){
this.$track = $('#racetrack');
this.finishLine = this.$track.width() - 90;
}
function Player(id,img){
this.player = $('.player')[id - 1];
this.position = 10;
this.img = img;
}
Player.prototype.updateImage = function(){
$player = $(this.player);
$player.css('background-image', 'url(' + t... | JavaScript | 0 | @@ -748,106 +748,8 @@
)%7B%0A
- // var again = window.confirm(%22Player %22 + player.player.id + %22 has won!%22 + %22%5Cn Play Again?%22);%0A
@@ -843,83 +843,8 @@
'));
-%0A%0A // if (again === true) %7B%0A // location.reload(document);%0A // %7D
%0A %7D
|
065e53574abad7621d949c45fd512d7b6384083a | Use correct hover color for back button of advanced menu | addon/utils/multi-user/menus/advanced-menu.js | addon/utils/multi-user/menus/advanced-menu.js | import Menu from '../menu';
let menu = null;
let prevMenu = null;
/**
* Creates and opens the Connect Menu.
*/
export function open(lastMenu) {
close.call(this);
menu = Menu.create({
name: 'advancedMenu'
});
menu.addTitle('Advanced Options');
menu.addText('Lefty Mode', 'isLeftyText', 28, { x: 100, ... | JavaScript | 0 | @@ -511,17 +511,16 @@
back', %7B
-
x: 100,
@@ -525,17 +525,16 @@
, y: 402
-
%7D, 316,
@@ -561,30 +561,30 @@
#ffffff', '#
-00e5ff
+929292
', true);%0A%0A
|
6d87c8e7d90c1e0c5276ef530a74e82ed91653c3 | fix chart of support | addons/content_support/ticket/report/chart.js | addons/content_support/ticket/report/chart.js | function chartDrawer()
{
if($("#chartdiv").length == 1){highChart();}
}
/**
* Synchronize zooming through the setExtremes event handler.
*/
function syncExtremes(e) {
var thisChart = this.chart;
if (e.trigger !== 'syncExtremes') { // Prevent feedback loop
Highcharts.each(Highcharts.charts, function (chart... | JavaScript | 0 | @@ -2966,16 +2966,128 @@
ttom: 20
+,%0A zoomType: 'x',%0A style: %7B%0A fontFamily: 'IRANSans, Tahoma, sans-serif'%0A %7D
%0A
@@ -3257,32 +3257,89 @@
alse%0A %7D,%0A
+ exporting: %7B%0A enabled: false%0A %7D,%0A
legend:
|
a9ccc2e43fb04670bb17292114e09e9c87d09327 | Rename pattern variable | src/mockup-tocify/js/patterns/tocify/pattern.js | src/mockup-tocify/js/patterns/tocify/pattern.js | /* Tocifypattern
*/
define([
'pat-base',
'jquery'
], function (Base, $) {
'use strict';
var Tocifypattern = Base.extend({
name: 'tocify',
trigger: '.pat-tocify', // has to be exact like this: 'pat-' + patternname.
init: function () {
var self = this;
console.log('Tocify!!!!!');
... | JavaScript | 0.000001 | @@ -103,23 +103,16 @@
r Tocify
-pattern
= Base.
@@ -352,21 +352,14 @@
n Tocify
-pattern
;%0A%7D);%0A
|
6e43565cab1f3bb1782e50aaa8cff940f63985fc | Allow drag to folder only for same account | app/assets/javascripts/pageflow/admin/entries.js | app/assets/javascripts/pageflow/admin/entries.js | jQuery(function($) {
var switchFolderSelect = function() {
var account = $(this).find('option:selected').text();
if($('#entry_folder_input :selected').parent().attr('label') !== account) {
$('option[value=""]').prop('selected', 'selected');
};
$('#entry_folder_input').val(0).find('optgroup').eac... | JavaScript | 0 | @@ -1299,16 +1299,20 @@
.find('.
+col-
account
|
3090f9a622d43f2a77c09383fc0764dbf8bb950b | Update to 0.1.6 | unit/runner.js | unit/runner.js | sink('ClassIE',function(test,ok,before,after){
var expected=prompt("What IE version should I expect? (please let empty for other browsers)","");
test('Browser version',2,function(){
try{
ok(IE==expected,"same JS version");
}
catch(e){
if(expected===''){
... | JavaScript | 0.000004 | @@ -155,115 +155,54 @@
-%0A test('Browser version',2,function()%7B%0A try%7B%0A ok(IE==expected,%22same JS version%22)
+if(expected=='')%7B%0A expected=undefined
;%0A
-
@@ -211,197 +211,93 @@
+%0A
-catch(e)%7B%0A if(expected==='')%7B%0A ... |
01f8970840c46cf0b1ae5715a30ce376d635a7f7 | fix initial load of publication text | app/components/document/render/documentRender.js | app/components/document/render/documentRender.js | 'use strict';
angular.module('snotes30App')
.directive('documentRender', function() {
return {
restrict: 'E',
replace: true,
scope: {
document: '=',
showFormats: '@',
publication: '=?',
refresh: '=?',
formatName: '=?'
},
templateUrl: '/compone... | JavaScript | 0.000348 | @@ -3128,32 +3128,55 @@
%7D)%0A %7D%0A%0A
+ updateText();%0A%0A
if($scop
@@ -3202,33 +3202,8 @@
) %7B%0A
- updateText();%0A%0A
|
331342bfdfcd7002a116db714f662bbc0aeece7e | clean up, use title-case, etc. | site/metalsmith.js | site/metalsmith.js | const Metalsmith = require('metalsmith')
const filter = require('metalsmith-filter')
const watch = require('metalsmith-watch')
const frontmatter = require('metalsmith-matters')
const {basename, join, resolve} = require('path')
const each = require('./lib/each')
const parseDocComments = require('./lib/parse-doc-comments... | JavaScript | 0 | @@ -82,50 +82,8 @@
r')%0A
-const watch = require('metalsmith-watch')%0A
cons
@@ -124,24 +124,64 @@
h-matters')%0A
+const titleCase = require('title-case')%0A
const %7Bbasen
@@ -214,24 +214,25 @@
ire('path')%0A
+%0A
const each =
@@ -445,16 +445,94 @@
/map')%0A%0A
+const args = process.argv.slice(2)%0Aconst has = ... |
b92a73778439d703294237e1dab32346e3ca02c1 | Remove obsolete sc_requires from mainPane | apps/my_system/resources/main_page.js | apps/my_system/resources/main_page.js | // ==========================================================================
// Project: MySystem - mainPage
// Copyright: ©2011 Concord Consortium
// ==========================================================================
/*globals MySystem RaphaelViews */
sc_require('views/node');
sc_require('views/node_palett... | JavaScript | 0.000001 | @@ -284,114 +284,15 @@
node
-');%0Asc_require('views/node_palette');%0Asc_require('views/sentence');%0Asc_require('views/sentence_connect_pan
+_palett
e');
|
859ce78bbc41f14c233b700dd1836ac6fa5a553c | Fix replacement of balance items based on month | api/src/routes/data/cashflow/updateBalance.js | api/src/routes/data/cashflow/updateBalance.js | /**
* Update cash flow data
*/
const { DateTime } = require('luxon');
const joi = require('joi');
const { balanceSchema } = require('../../../schema');
function updateQuery(db, user, value) {
const { year, month, balance } = value;
const date = DateTime.fromObject({ year, month })
.endOf('month')
... | JavaScript | 0 | @@ -352,148 +352,272 @@
db.
+t
ra
-w(%60%0A INSERT INTO balance (uid, date, value
+nsaction(async trx =%3E %7B%0A await trx('balance')%0A .whereRaw('YEAR(balance.date) = ?', year
)%0A
+
-VALUES (?,
+ .whereRaw('MONTH(balance.date) =
?
+'
,
-?
+month
)%0A
-ON DUPLICATE KEY UP... |
546b9f01fd0d81764588bb7ccd4713f4ce9ee0c0 | make textareas display errors properly | app/frontend/components/FieldShape/FieldShape.js | app/frontend/components/FieldShape/FieldShape.js | // @flow
import React, { Component } from 'react';
import SweetInput from '../SweetInput/SweetInput';
import SelectCountry from '../SelectCountry';
import SweetSelect from '../SweetSelect/SweetSelect';
import Checkbox from '../Checkbox/Checkbox';
import type { Element } from 'react';
type Field = {
data_type: string... | JavaScript | 0 | @@ -1302,16 +1302,29 @@
return
+(%3Cdiv%3E%0A
%3Ctextare
@@ -1349,16 +1349,32 @@
s.name %7D
+%0A
value=%7B
@@ -1392,16 +1392,32 @@
.value %7D
+%0A
placeho
@@ -1443,37 +1443,244 @@
bel%7D
- maxLength=%229999%22%3E%3C/textarea%3E
+%0A onChange=%7Be =%3E fieldP... |
461b7f4dedcaaf3029d3f93cc9618938f741cb0c | Fix keyboard shortcuts for "[" and "]" | app/assets/javascripts/_keyboard-shortcuts.js | app/assets/javascripts/_keyboard-shortcuts.js | $(function() {
var shortcutKeys = {
'117': 'u',
'97': 'a',
'114': 'r',
'91': '[',
'93': ']'
}
$(document).on('keypress', function(event) {
if ($(event.target).is(':input')) {
return;
}
switch (event.which) {
case 106: // j
focusNextFocusable();
scrol... | JavaScript | 0.007082 | @@ -907,16 +907,17 @@
hortcut=
+%22
' + key
@@ -919,16 +919,17 @@
key + '
+%22
%5D')%0A
|
c88c431815320996d39b9f6c2af8417dbf8ced10 | add started timestamp to export | app/scripts/services/RegistrationsViewService.js | app/scripts/services/RegistrationsViewService.js | 'use strict';
angular.module('confRegistrationWebApp')
.service('RegistrationsViewService', function RegistrationsViewService(ConferenceHelper, U, $filter) {
this.getTable = function (conference, registrations, onlyCompleted, visibleBlockIds) {
var table = [];
var header = getHeader(conference, vis... | JavaScript | 0.000001 | @@ -930,24 +930,54 @@
sh('Type');%0A
+ header.push('Started');%0A
header
@@ -2161,32 +2161,159 @@
).name + '%22'%5D);%0A
+ row.push.apply(row, %5B'%22' + $filter('evtDateFormat')(registration.createdTimestamp, conference.eventTimezone) + '%22'%5D);
%0A if(re
|
36b0713db61d22332202576d6a83fa63634509c2 | Add files via upload | app/scripts/services/dimBucketService.factory.js | app/scripts/services/dimBucketService.factory.js | (function() {
'use strict';
angular.module('dimApp')
.factory('dimBucketService', BucketService)
// Categories (sorts) and the types within them
.value('dimCategory', {
Weapons: [
'Class',
'Primary',
'Special',
'Heavy'
],
Armor: [
'Helmet',
... | JavaScript | 0 | @@ -476,25 +476,24 @@
'
-Ornaments
+Material
',%0A
@@ -492,32 +492,33 @@
',%0A '
-Material
+Ornaments
',%0A '
|
d27d32e888139947e5f7180a0ec6acb16bd8f8f5 | add jquery_ujs | app/assets/javascripts/wallaby/application.js | app/assets/javascripts/wallaby/application.js | //= require jquery
//= require bootstrap-sprockets
$(function () {
$('[data-toggle="tooltip"]').tooltip({ html: true });
}) | JavaScript | 0.000002 | @@ -12,16 +12,39 @@
jquery%0A
+//= require jquery_ujs%0A
//= requ
|
35099696a483a4e73ddae079f45214aa1b69cf3e | fix up embedded object hacks to work with some accessibility changes to holodex/enspiral-data | src/node_modules/api/index.js | src/node_modules/api/index.js | var express = require('express')
var FsDb = require('fs-db')
var pull = require('pull-stream')
var sendJson = require('send-data/json')
var debug = require('debug')('holodex:api')
var yaml = require('js-yaml')
var clone = require('lodash.clone')
var gitPullCron = require('git-pull-cron')
var Model = require('base/mode... | JavaScript | 0 | @@ -1790,32 +1790,34 @@
eddedRoleRe = /(
+.*
relationships%5C/%5B
@@ -1815,28 +1815,28 @@
nships%5C/%5B%5E%5C/
+#
%5D+)
-#
/%0A va
@@ -1917,32 +1917,32 @@
dedRoleMatch) %7B%0A
+
attrs.
@@ -1990,323 +1990,8 @@
%7D
-%0A // if embedded role type, reference parent relationship type%0A ... |
09d14f35faa63fdcc81ce134db9a97c18b6d4ad3 | Remove unused import. | assets/src/amp-story-editor-blocks.js | assets/src/amp-story-editor-blocks.js | /**
* WordPress dependencies
*/
import { addFilter } from '@wordpress/hooks';
import { compose, createHigherOrderComponent } from '@wordpress/compose';
import domReady from '@wordpress/dom-ready';
import { setDefaultBlockName } from '@wordpress/blocks';
import { select, subscribe } from '@wordpress/data';
const { get... | JavaScript | 0 | @@ -93,36 +93,8 @@
pose
-, createHigherOrderComponent
%7D f
|
5c1ee2c354872ecb4768d5b1abe47d30f052c456 | Update markdown.js | src/options/utils/markdown.js | src/options/utils/markdown.js | function markdown(string = '', marks) {
if (marks == null) {
return [{
mark: null,
text: string
}]
}
let offset = 0,
count = 0,
regex = new RegExp(marks
.map(a => '\\' + a)
.join('|')
);
return string
.spli... | JavaScript | 0.000003 | @@ -142,17 +142,16 @@
%5D%0A %7D%0A
-%0A
let
@@ -280,17 +280,16 @@
);%0A
-%0A
retu
@@ -822,8 +822,9 @@
arkdown;
+%0A
|
60cee2ae688b06e3c5124a131a6d35a25c6f7fa3 | add datavore benchmark with strings | benchmark/datavore/table.query.sum.js | benchmark/datavore/table.query.sum.js | var benchtap = require('benchtap'),
gen = require('../../generate'),
dv = require('./datavore');
function createSetup(N, K){
return function(event){
var groupCol = gen.Array.int(N, K);
var valueCol = gen.Array.int(N, 100);
//groupCol = groupCol.map(i => ["a", "b", "c"][i]);
// create table
this.table =... | JavaScript | 0.000001 | @@ -118,16 +118,28 @@
tup(N, K
+, useStrings
)%7B%0A%09retu
@@ -240,18 +240,34 @@
00);%0A%0A%09%09
-//
+if(useStrings)%0A%09%09%09
groupCol
@@ -838,33 +838,32 @@
+ N + %22x%22 + K;%0A
-%0A
benchtap(name, %7B
@@ -914,69 +914,246 @@
);%0A%0A
-%0Avar N = 1000000;%0A%0Aname = %22table.query.sum: %22 + N + %22x%22 +... |
94866d8257045565ba2771f5df64d3781401f402 | add method settle_accounts to PrivilegeRule | src/models/PrivilegeRule.js | src/models/PrivilegeRule.js | /**
* Created by zhouyong on 15-1-8.
*/
function PrivilegeRule(ruleName,type,category,rule,effective){
this.ruleName = ruleName;
this.type = type;
this.category = category;
this.rule = rule;
this.effective = effective?effective:'no';
}
PrivilegeRule.prototype = {
relevance: function(commodity... | JavaScript | 0.000001 | @@ -360,20 +360,20 @@
switch(
-this
+self
.type)%7B%0A
@@ -1145,12 +1145,372 @@
);%0A %7D
-%0A
+,%0A settle_accounts: function(subtotal)%7B%0A var self = this;%0A switch(self.category)%7B%0A case 'discount':%0A return subtotal * self.rule;%0A break;%0A ... |
c2942486fa3388ac3edf20c09ed0513733de0698 | fix typo for #461 | src/subset/values/index.js | src/subset/values/index.js | 'use strict';
const Text = require('../../text');
const Value = require('./value');
const parse = require('./parse');
//the Values() subset class
const methods = {
noDates: function() {
return this.not('#Date');
},
noUnits: function() {
return this.not('#Unit');
},
units: function() {
return this... | JavaScript | 0.000483 | @@ -2651,17 +2651,16 @@
hirty%7Cfo
-u
rty%7Cfift
@@ -2688,16 +2688,23 @@
y%7Cninety
+%7Cfourty
';%0A con
|
d3d6e597f017e3b31529dffa14810c4d5e1e8584 | Make sg label clicking act like a toggle | app/js/arethusa.sg/directives/sg_ancestors.js | app/js/arethusa.sg/directives/sg_ancestors.js | "use strict";
angular.module('arethusa.sg').directive('sgAncestors', [
'sg',
function(sg) {
return {
restrict: 'A',
scope: {
obj: '=sgAncestors'
},
link: function(scope, element, attrs) {
scope.requestGrammar = function(el) {
if (el.sections) {
sg.r... | JavaScript | 0 | @@ -293,24 +293,134 @@
sections) %7B%0A
+ if (sg.readerRequested === el) %7B%0A sg.readerRequested = false;%0A %7D else %7B%0A
@@ -444,16 +444,30 @@
d = el;%0A
+ %7D%0A
|
9ef46a06ee911f9e6430401b1bac0c472674bfd2 | Change indentation style for getField | src/main/webapp/components/utils/getField.js | src/main/webapp/components/utils/getField.js | /**
* Returns the value at obj[field] or defaultValue
* if obj[field] === undefined.
* Useful for extracting a field from an object, with a fallback.
*
* @param obj the object to query the fields for.
* @param field the target field, in string form.
* @param defaultValue the value to be used if obj[field... | JavaScript | 0 | @@ -387,16 +387,27 @@
alue) =%3E
+ %7B%0A return
obj%5Bfie
@@ -427,10 +427,12 @@
ined
-%0A?
+ ?%0A
obj
@@ -438,17 +438,17 @@
j%5Bfield%5D
-%0A
+
: (defau
@@ -493,8 +493,10 @@
null);%0A
+%7D%0A
|
3cc36ce3607056fee62cc0ca422e337a55bd9a14 | delete validation reference | src/managers/inventory/efr-tb-alt-manager.js | src/managers/inventory/efr-tb-alt-manager.js | 'use strict';
// external deps
var ObjectId = require('mongodb').ObjectId;
// internal deps
require('mongodb-toolkit');
var BateeqModels = require('bateeq-models');
var map = BateeqModels.map;
var generateCode = require('../../utils/code-generator');
var TransferOutDoc = BateeqModels.inventory.TransferOutDoc;
var ... | JavaScript | 0 | @@ -5452,24 +5452,27 @@
+ //
if(altIn)%7B%0A
@@ -5482,32 +5482,35 @@
+ //
errors%5B%22ref
@@ -5557,32 +5557,35 @@
+ //
%7D%0A
|
a62e89aa8b97e338fb4cc33b4671a82d4ce9ff8b | enable the continue button on the last page | app/scripts/controllers/specialErrorDetail.js | app/scripts/controllers/specialErrorDetail.js | 'use strict';
/**
* @ngdoc function
* @name hmdaPilotApp.controller:SpecialErrorDetailCtrl
* @description
* # SpecialErrorDetailCtrl
* Controller of the hmdaPilotApp
*/
module.exports = /*@ngInject*/ function ($scope, $routeParams, $location, $http, HMDAEngine, Session) {
// Get the list of errors from the ... | JavaScript | 0 | @@ -993,32 +993,211 @@
%7D%0A %7D%0A%0A
+ $scope.$watch(function() %7B%0A return $scope.isLastPage();%0A %7D, function(isLastPage) %7B%0A if (isLastPage) %7B%0A $scope.canVerify = true;%0A %7D%0A %7D);%0A%0A
$scope.pageS
|
a7f1b2c7610bf2a01f756ede1e3b963ce1702978 | swap order of year + quality | app/scripts/services/dimCsvService.factory.js | app/scripts/services/dimCsvService.factory.js | (function() {
'use strict';
angular.module('dimApp')
.factory('dimCsvService', CsvService);
CsvService.$inject = ['dimStoreService'];
function CsvService() {
// step node names we'll hide, we'll leave "* Chroma" for now though, since we don't otherwise indicate Chroma
var FILTER_NODE_NAMES = ["Up... | JavaScript | 0 | @@ -2240,32 +2240,66 @@
quipped + %22, %22;%0A
+ data += item.year + %22, %22;%0A
data +=
@@ -2350,42 +2350,8 @@
%22;%0A
- data += item.year + %22, %22;%0A
|
4896969c2efe6c9dfc580416d230bfb6a01c30cc | Fix example todo list: duplicated destroy | examples/todo-list/app/todo.js | examples/todo-list/app/todo.js | iris.ui(function (self) {
self.settings({
id : null
});
var todos = iris.resource(iris.path.resource);
self.create = function() {
self.tmplMode(self.APPEND);
self.tmpl(iris.path.todo.html);
self.get("check").on("click", function () {
todos.toggle(self.setting("id"));
self.render();
});
sel... | JavaScript | 0.999473 | @@ -393,37 +393,16 @@
%22id%22));%0A
-%09%09%09self.destroyUI();%0A
%09%09%7D);%0A%0A%09
|
f7931326f28b5454c7d2e80fd10d28948d29e18e | allow using a custom form id (closes #1899) | data/web/sf/sf_admin/js/double_list.js | data/web/sf/sf_admin/js/double_list.js |
function double_list_move(src, dest)
{
for (var i = 0; i < src.options.length; i++)
{
if (src.options[i].selected)
{
dest.options[dest.length] = new Option(src.options[i].text, src.options[i].value);
src.options[i] = null;
--i;
}
}
}
function double_list_submit()
{
var form = $('... | JavaScript | 0.000003 | @@ -293,20 +293,101 @@
_submit(
-)%0A%7B%0A
+form_name)%0A%7B%0A // default id to allow using a custom form id%0A if( ! form_name ) %7B%0A
var fo
@@ -392,13 +392,16 @@
form
+_name
=
-$(
'sf_
@@ -416,16 +416,47 @@
it_form'
+;%0A %7D%0A%0A var form = $(form_name
);%0A var
|
0a95c83b49b5d7451bd3fd903454f8247784df34 | Fix more syntax errors | EmailValidationClient.js | EmailValidationClient.js | var request = require('request');
var WaitForCompletionOptions = require('./WaitForCompletionOptions');
var EmailValidationClient = function(restClient) {
this.restClient = restClient;
};
EmailValidationClient.prototype.VALIDATION_STATUS_PENDING = 'pending';
EmailValidationClient.prototype.VALIDATION_STATUS_COMPLETE... | JavaScript | 0.000032 | @@ -3805,22 +3805,24 @@
ack) %7C%7C
+(
()=%3E%7B%7D
+)
;%0A%09%09%0A%09va
@@ -4260,22 +4260,24 @@
ack) %7C%7C
+(
()=%3E%7B%7D
+)
;%0A%0A%09requ
|
86a975ad558a0a7c063b85e05aa951711b5e3766 | Clarify name | byceps/blueprints/board/static/behavior/board.js | byceps/blueprints/board/static/behavior/board.js | onDomReady(function() {
confirmed_post_on_click('[data-action="topic-hide"]', 'Thema verstecken?');
confirmed_delete_on_click('[data-action="topic-unhide"]', 'Thema wieder anzeigen?');
confirmed_post_on_click('[data-action="topic-lock"]', 'Thema schließen?');
confirmed_delete_on_click('[data-action="topic-unlo... | JavaScript | 0.999051 | @@ -793,23 +793,24 @@
unction(
-element
+textarea
) %7B%0A
@@ -861,39 +861,40 @@
ving focus.%0A
-element
+textarea
.addEventListene
@@ -919,31 +919,32 @@
n() %7B%0A
-element
+textarea
.classList.r
@@ -1031,23 +1031,24 @@
us.%0A
-element
+textarea
.addEven
@@ -1088,23 +1088,24 @@
if (
-ele... |
0da9728902b34869918cb5ae897cd90b1c56c569 | Change the method name. | src/timestamp/Timestamp.js | src/timestamp/Timestamp.js | import React from 'react';
import { Component, PropTypes, formatDate, isDate } from '../utils/';
const fillZero = num => (num < 10 ? `0${num}` : num);
const hours = 60 * 60 * 1000;
const minutes = 60 * 1000;
function timeZoneConverter(date, timeZone) {
const oldDate = new Date(date);
const newDate = new Date();
... | JavaScript | 0 | @@ -1478,24 +1478,42 @@
this.props;%0A
+ this.clear();%0A
this.tim
@@ -1560,16 +1560,16 @@
erval);%0A
-
%7D%0A cl
@@ -1665,19 +1665,19 @@
, render
-Tim
+Dat
e, onCou
@@ -1862,19 +1862,19 @@
, render
-Tim
+Dat
e) %7D, ()
@@ -2412,19 +2412,19 @@
, render
-Tim
+Dat
e, tzc,
@@ -2953,19 +2953,19 @@
r... |
c944dfe0e75e34d89e03943fb6aa40152720210d | modify sql query | ChartGenerator/Repositories/DataRepository.js | ChartGenerator/Repositories/DataRepository.js | let Promise = require('bluebird')
let mapify = require('es6-mapify')
let projectRepository = require('./ProjectRepository')
let model = require('../connect')
let calPayOutDistribution = function (tableIndex, projectId, request) {
let table = ['overall', 'basegame', 'freegame']
let size = request.size
... | JavaScript | 0.999998 | @@ -859,16 +859,35 @@
s payOut
+, count(*) as count
', %5Bproj
@@ -925,16 +925,34 @@
, size).
+groupBy('payOut').
orderBy(
@@ -1140,25 +1140,33 @@
t(key%5Bi%5D) +
-1
+row.count
)%0A %7D%0A%0A
@@ -2310,39 +2310,280 @@
del.knex
-('overall' + projectId)
+.raw('select %60rtp%60, count(*) %60count%60 from (sel... |
cf8ae93a46844e5ddf1befe3fec27c7bd6b81062 | Remove compat layer for transitionend. | notify.js | notify.js | /*!
* jQuery Notify Plugin
*
* Copyright (c) 2012 David Persson
*
* Licensed under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
(function($) {
// All possible transition event names.
var TRANSITION_EV = 'transitionend mozTransitionEnd webkitTransitionEnd oTransitionEnd MSTransiti... | JavaScript | 0 | @@ -176,158 +176,8 @@
%7B%0A%0A
- // All possible transition event names.%0A var TRANSITION_EV = 'transitionend mozTransitionEnd webkitTransitionEnd oTransitionEnd MSTransitionEnd';%0A%0A
//
@@ -199,16 +199,16 @@
ration.%0A
+
var co
@@ -954,37 +954,39 @@
$m.one(
-TRANSITION_EV
+'transitionend'
, dfr.r... |
30ddf630a767fa719ca2f54b78ad6c8d8ae4f5d7 | fix typo | client/js/components/assessments/loading.spec.js | client/js/components/assessments/loading.spec.js | import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react/lib/ReactTestUtils';
import { Loading } from './loading';
describe('loading', function() {
var result = TestUtils.renderIntoDocument(<Loading
localizedStrings={loading:{loading:"Loadi... | JavaScript | 0.999991 | @@ -290,16 +290,17 @@
trings=%7B
+%7B
loading:
@@ -320,16 +320,17 @@
ding.%22%7D%7D
+%7D
/%3E);%0A%0A
|
3c9fa224ed67f35a7f9fd2ca51e50728203588f8 | Fix test descriptions for reducer tests | client/tests/views/git-importer/reducers.test.js | client/tests/views/git-importer/reducers.test.js | import { expect } from 'chai';
import fixtures from 'tests/views/git-importer/fixtures';
import gitImporter from 'src/views/git-importer/reducers';
import { conj } from 'src/utils';
describe(`gitImporter`, () => {
describe(`expand-step`, () => {
it(`should change the current step`, () => {
const state = f... | JavaScript | 0.000009 | @@ -225,19 +225,19 @@
be(%60
-expand-step
+EXPAND_STEP
%60, (
@@ -649,19 +649,19 @@
be(%60
-choose-site
+CHOOSE_SITE
%60, (
@@ -1102,19 +1102,19 @@
be(%60
-choose-main
+CHOOSE_MAIN
%60, (
@@ -1570,19 +1570,19 @@
be(%60
-change-site
+CHANGE_SITE
%60, (
@@ -2351,19 +2351,19 @@
be(%60
-change-main
+CHANGE_MAIN
%... |
73568e56269348b4a3672c7c9b61b9e6ed62969f | Add event actions.updateCounter. | xadmin/static/xadmin/js/xadmin.plugin.actions.js | xadmin/static/xadmin/js/xadmin.plugin.actions.js | (function($) {
$.fn.actions = function(opts) {
var options = $.extend({}, $.fn.actions.defaults, opts);
var actionCheckboxes = $(this);
updateCounter = function() {
var sel = $(actionCheckboxes).filter(":checked").length;
$(options.counterContainer).html(interpolat... | JavaScript | 0 | @@ -763,32 +763,135 @@
%7D%0A %7D%0A
+ // receiver action update%0A actionCheckboxes.on(%22actions.updateCounter%22, updateCounter);%0A
showQues
|
07f777482193656ec589351a2ebf770c806c14aa | Move progressbar to Fixed size | demos/KitchenSink/Resources/examples/progress_bar.js | demos/KitchenSink/Resources/examples/progress_bar.js | var win = Titanium.UI.currentWindow;
var flexSpace = Titanium.UI.createButton({
systemButton:Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE
});
var b = Titanium.UI.createButton({
title:'Start Progress',
height:40,
width:200,
top:10
});
var interval;
//
// BUTTON LISTENER TO KICK OFF PROGRESS BARS
//
b.addEventL... | JavaScript | 0 | @@ -1620,18 +1620,11 @@
dth:
-Ti.UI.SIZE
+100
,%0A%09m
|
1d6b952506acb3a483afebb747352be595cd328d | add users to the database upon login | routes/auth.js | routes/auth.js | var express = require('express');
var router = express.Router();
var sys = require("util");
router.get('/twitter', function(req, res, next) {
oauth.getOAuthRequestToken(function(error, oauthToken, oauthTokenSecret, results){
if (error) {
res.send("Error getting OAuth request token : " + sys.inspect(erro... | JavaScript | 0 | @@ -85,24 +85,71 @@
e(%22util%22);%0A%0A
+var User = require('../models/user').model;%0A%0A
router.get('
@@ -1785,32 +1785,929 @@
-res.redirect(%22/%22
+// Check if the user already has an account%0A new User(%7B%0A id: data%5B%22id%22%5D%0A %7D).fetch().then(funct... |
070728080ffbb9de07b7f9d69228c5e3c9de9897 | Fix typo | routes/auth.js | routes/auth.js | 'use strict';
import express from 'express';
import bcrypt from 'bcryptjs';
import jwt from 'jsonwebtoken';
import models from '../models';
import { config } from '../utils';
import { verifyJWT } from '../middleware';
let User = models.Soar_user;
let VerificationRequest = models.Soar_verificat... | JavaScript | 0.999999 | @@ -1111,16 +1111,18 @@
age: 'Ve
+ri
fication
|
916188f2f1a8c41fa4c092c24d0ced7b95302716 | fix action log | routes/user.js | routes/user.js | var notifications = require('../util/notifications.js');
var model = require('../domain/model.js');
var actions = require('./actions.js');
var mongoose = require('mongoose');
var Arrays = require("../public/js/util/util.js").Arrays;
/*
* GET users listing.
*/
function buildNewUser(google_id, name) {
var user = n... | JavaScript | 0.000001 | @@ -2714,32 +2714,34 @@
r);%0A
+//
actions.log(req.
|
05754bb56e3c8ff2a4b3404bd5f0e35cd0fd22e4 | update to eslint-plugin-react v6.8.0 | rules/react.js | rules/react.js | module.exports = {
"plugins": ["react"],
"parserOptions": {
"ecmaFeatures": { "jsx": true }
},
"rules": {
"jsx-quotes": ["error", "prefer-double"],
"react/display-name": "off",
"react/forbid-component-props": "off",
"react/forbid-prop-types": ["error", { forbid: ... | JavaScript | 0 | @@ -170,24 +170,25 @@
r-double%22%5D,%0A
+%0A
%22rea
@@ -341,24 +341,69 @@
bject%22%5D %7D%5D,%0A
+ %22react/no-array-index-key%22: %22error%22,%0A
%22rea
@@ -789,39 +789,16 @@
%22error%22,
-%0A%0A // suspended%E3%80%82
%0A
@@ -823,19 +823,21 @@
omp%22: %5B%22
-off
+error
%2... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.