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 |
|---|---|---|---|---|---|---|---|
c54a33af6d3a1afdbb13bfcf2ca571fb89fd25e9 | Disable debug in demo mode | lib/config.js | lib/config.js | /*jslint evil: true, expr: true, regexdash: true, bitwise: true, trailing: false, sub: true, eqeqeq: true,
forin: true, freeze: true, loopfunc: true, laxcomma: true, indent: false, white: true, nonew: true, newcap: true,
undef: true, unused: true, globalstrict: true, node: true */
"use strict";
var fs = require("f... | JavaScript | 0.000001 | @@ -2817,35 +2817,36 @@
debug%22 :
-tru
+fals
e,%0A %22
|
b779f8b733e254bcf04224bdf7dc40b74deaa4a1 | fix fixed slug for order model | models/Order.js | models/Order.js | /* global process */
const keystone = require('keystone');
const {Types} = keystone.Field;
const {numberToMoney} = require('./my-lib/format');
const moment = require('moment');
/**
* Order Model
* ==========
*/
const Order = new keystone.List('Order', {
autokey: {
from: 'name',
path: 'slug',
... | JavaScript | 0 | @@ -325,16 +325,37 @@
unique:
+ true,%0A fixed:
true%0A
|
6804e8d91d773ad1467b6d6919b49f0ca4215c2e | Remove ; symbol from lib/config module | lib/config.js | lib/config.js |
var dcopy = require('deep-copy');
// oauth scope transform
exports.scope = function (provider, options) {
var scope = options.scope||provider.scope;
provider.scope = (scope instanceof Array)
? scope.join(provider.scope_delimiter||',')
: scope;
if (provider.linkedin) {
// LinkedIn accepts an exten... | JavaScript | 0 | @@ -26,17 +26,16 @@
p-copy')
-;
%0A%0A%0A// oa
@@ -140,25 +140,24 @@
ovider.scope
-;
%0A%0A provider
@@ -249,17 +249,16 @@
: scope
-;
%0A%0A if (
@@ -625,17 +625,16 @@
*/,'$1')
-;
%0A pro
@@ -678,17 +678,16 @@
er.scope
-;
%0A %7D%0A%7D%0A%0A
@@ -1186,17 +1186,16 @@
nfig%7C%7C%7B%7D
-;
%0A // oa
@@ -... |
50992b57a11b13f7be25b4aaedeedf86e9b96eaf | add a new Topic type | models/Topic.js | models/Topic.js | var keystone = require('arch-keystone');
var transform = require('model-transform');
var Types = keystone.Field.Types;
var Topic = new keystone.List('Topic', {
autokey: { from: 'name', path: 'key', unique: true },
track: true,
sortable: true,
});
Topic.add({
name: { label: '專題名稱', type: String, required: true... | JavaScript | 0.000001 | @@ -1657,16 +1657,22 @@
ait wall
+, wide
', defau
|
d9255c82fd0e2816ec3063b74a90f5408a2114f4 | Revert "Allow port to be configured by env var without prefix" | lib/config.js | lib/config.js | // Shamelessly stolen from JS Bin
// See http://git.io/-6YTsA
var fs = require('fs')
var path = require('path')
var _ = require('lodash')
var config = require('../config.default.json')
var md = require('markdown-it')()
var localConfig = ''
if(process.env.GKNET_CONFIG)
localCon... | JavaScript | 0.000001 | @@ -658,34 +658,8 @@
ey =
- (/port/.test(key) ? key :
env
@@ -676,17 +676,16 @@
_' + key
-)
.toUpper
|
746f61e945dbe67e5c4052020dd82221908c9571 | Update gulpfile with arrow functions. | gulpfile.js | gulpfile.js | 'use strict';
const PORT = process.env.PORT || 3000;
const SOURCE_DIR = './src';
const BUILD_DIR = 'dist';
const _ = require('lodash');
const babelify = require('babelify');
const brfs = require( 'brfs' );
const browserify = require('browserify');
const browserSync = require('browser-sync').create();
const del = req... | JavaScript | 0 | @@ -634,26 +634,21 @@
-sync',
-function()
+() =%3E
%7B%0A ret
@@ -782,26 +782,21 @@
k('js',
-function()
+() =%3E
%7B%0A con
@@ -1286,26 +1286,21 @@
'html',
-function()
+() =%3E
%7B%0A ret
@@ -1435,128 +1435,111 @@
sk('
-watch', function() %7B%0A gulp.watch(%5BSOURCE_DIR + '/*.html'%5D, %5B'html'%5D);%0... |
7b3e04cfcca898d796035a43e1eae24bd4c3746e | fix houndci error | gulpfile.js | gulpfile.js | const gulp = require('gulp'),
eslint = require('gulp-eslint'),
spawn = require('child_process').spawn,
connect = require('gulp-connect');
const paths = {
jsFiles: ['./src/inverted-index.js'],
htmlFiles: '*.html',
cssFiles: 'public/css/*.css',
scriptFiles: 'public/js/*.js',
testFiles: 'jasmine/spec/inve... | JavaScript | 0.000001 | @@ -25,21 +25,22 @@
lp'),%0A
-eslin
+connec
t = requ
@@ -49,21 +49,22 @@
e('gulp-
-eslin
+connec
t'),%0A s
@@ -100,30 +100,29 @@
').spawn,%0A
-connec
+eslin
t = require(
@@ -127,22 +127,21 @@
e('gulp-
-connec
+eslin
t');%0A%0Aco
|
d18cbd41361ac0894934a19c401b9d5db402d703 | remove unused logic | lib/config.js | lib/config.js | 'use strict'
var os = require('os')
var bool = require('normalize-bool')
var OPTS_MATRIX = [
['appId', 'APP_ID'],
['organizationId', 'ORGANIZATION_ID'],
['secretToken', 'SECRET_TOKEN'],
['active', 'ACTIVE', true],
['logLevel', 'LOG_LEVEL', 'info'],
['hostname', 'HOSTNAME', os.hostname()],
['stackTraceLi... | JavaScript | 0.000587 | @@ -1338,34 +1338,8 @@
var
- env, val%0A%0A if (opt%5B1%5D)
env
@@ -1359,16 +1359,28 @@
+ opt%5B1%5D
+%0A var val
%0A%0A if
@@ -1441,15 +1441,8 @@
env
-&& env
in p
@@ -1488,82 +1488,8 @@
nv%5D%0A
- %7D else if (typeof opt%5B2%5D === 'function') %7B%0A val = opt%5B2%5D(result)%0A
|
5b642e5702bcccf50626e23130a7c3a74b1215d6 | Add PHP running to gulp | gulpfile.js | gulpfile.js | "use strict";
var fs = require("fs");
var gulp = require("gulp");
var plugins = require("gulp-load-plugins")();
var json = JSON.parse(fs.readFileSync("./package.json"));
var browserSync = require('browser-sync');
var reload = browserSync.reload;
var args = require('yargs').argv;
var config = (function () {
var appNa... | JavaScript | 0.000001 | @@ -273,16 +273,60 @@
).argv;%0A
+var spawn = require('child_process').spawn;%0A
%0A%0Avar co
@@ -2654,16 +2654,17 @@
k('serve
+r
', funct
@@ -2671,16 +2671,255 @@
ion ()%7B%0A
+%09var host = args.host %7C%7C 'localhost:8015';%0A%09spawn('php', %5B'-S', host, '-t', '.'%5D, %7B%0A%09%09detached: false,%0A%09%09stdi... |
b51cb1c2097fe01026522554d0d7e02ecc692096 | rename auto_reconnect | models/index.js | models/index.js | var config = require("config");
var mongoose = require("mongoose");
/**
* 连接数据库。
*/
function connectDB(callback)
{
mongoose.connect(
config.db,
{
server: {
auto_reconnect: config.autoReconnect,
poolSize: config.poolSize
},
},
... | JavaScript | 0.000003 | @@ -232,9 +232,10 @@
auto
-R
+_r
econ
|
be2a49610679b75f30f0a2e18b2e6caf80862d7f | Fix path coverage | gulpfile.js | gulpfile.js | /* eslint-env node */
/* eslint strict: ["error", "global"] */
'use strict';
var coveralls = require('gulp-coveralls'),
eslint = require('gulp-eslint'),
excludeGitignore = require('gulp-exclude-gitignore'),
gulp = require('gulp'),
istanbul = require('gulp-istanbul'),
mocha = require('gulp-mocha'),
... | JavaScript | 0.000006 | @@ -1431,38 +1431,8 @@
) %7B%0A
- console.log(process.env);%0A
@@ -1501,29 +1501,8 @@
src(
-path.join(__dirname,
'cov
@@ -1518,17 +1518,16 @@
v.info')
-)
%0A .pi
|
27a7d1e87184a445c33faee3919259f91ad6b125 | modify task name | gulpfile.js | gulpfile.js | var gulp = require('gulp'),
ghPages = require('gulp-gh-pages'),
webserver = require('gulp-webserver');
gulp.task('server', function() {
gulp.src('./src/')
.pipe(webserver({
livereload: true,
open: true
}));
});
// Rerun the task when a file changes
gulp.task('watch', function() {
... | JavaScript | 0.99999 | @@ -380,24 +380,22 @@
p.task('
-gh-pages
+deploy
', () =%3E
|
86be7e5a09a123cb5a4024ec6bc218fe5400ca11 | optimise templating, add data file | gulpfile.js | gulpfile.js | 'use strict';
var gulp = require('gulp'),
$ = require('gulp-load-plugins')({pattern: '*'}),
del = require('del'),
runSequence = require('run-sequence'),
browserSync = require('browser-sync'),
reload = browserSync.reload;
// file source and destination variables
... | JavaScript | 0 | @@ -1308,32 +1308,20 @@
pages/*.
-+(
html
-%7Cnunjucks)
%22, %5B'nun
@@ -1363,31 +1363,24 @@
lates/*.
-+(html%7C
nunjucks
)%22, %5B'nu
@@ -1371,17 +1371,16 @@
nunjucks
-)
%22, %5B'nun
@@ -2918,16 +2918,17 @@
);%0A%7D);%0A%0A
+%0A
// compi
@@ -3133,32 +3133,144 @@
handleError%7D))%0A
+ // add data nunjuck... |
1ab62e534829b2cc692bb0ab26f38bf58adb4bf4 | Fix gulp docs task | gulpfile.js | gulpfile.js | /* jshint node: true */
"use strict";
var gulp = require("gulp");
var jshint = require("gulp-jshint");
var jscs = require("gulp-jscs");
var plumber = require("gulp-plumber");
var purescript = require("gulp-purescript");
var run = require("gulp-run");
var rimraf = require("rimraf");
var sources = [
"src/**/*.purs",
... | JavaScript | 0.003267 | @@ -1287,57 +1287,8 @@
urn
-gulp.src(sources)%0A .pipe(plumber())%0A .pipe(
pure
@@ -1303,16 +1303,36 @@
scDocs(%7B
+%0A src: sources,
%0A d
@@ -2858,17 +2858,16 @@
%7D%0A %7D)
-)
;%0A%7D);%0A%0Ag
|
43a7e7daea08474785da4867db5cf26769b7a887 | Remove unneccessary comma | gulpfile.js | gulpfile.js | /*
* Copyright (C) 2022 con terra GmbH (info@conterra.de)
*
* 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 b... | JavaScript | 0.999993 | @@ -1180,25 +1180,24 @@
uetify: true
-,
%0A /*theme
|
d73c91a3fbb88c932708e5f5773c8f25efca27b5 | Change concat module to use plugins namespace | gulpfile.js | gulpfile.js | /*jslint node: true */
'use strict';
// Gulp
var gulp = require('gulp'),
plugins = require('gulp-load-plugins')({
rename: {
'gulp-compile-handlebars' : 'handlebars',
'gulp-sass-generate-contents' : 'sgc'
}
}),
gulpif = require('gulp-if'),
//... | JavaScript | 0 | @@ -555,16 +555,19 @@
ame'),%0A%09
+//
concat
@@ -1920,16 +1920,24 @@
%09%09.pipe(
+plugins.
concat('
|
132bf484c15d1f24681d32bee49ae1ffd0c095d0 | Fix position is out of bounds on edges | models/pixel.js | models/pixel.js | const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const bcrypt = require('bcrypt');
var colourPieceValidator = function(c) {
return Number.isInteger(c) && c >= 0 && c <= 255;
}
var PixelSchema = new Schema({
xPos: {
type: Number,
required: true,
validate: {
... | JavaScript | 0.000047 | @@ -1933,17 +1933,16 @@
if(x %3C
-=
0 %7C%7C y
@@ -1942,17 +1942,16 @@
0 %7C%7C y %3C
-=
0 %7C%7C x
@@ -1955,23 +1955,27 @@
x %3E
- 999
+= 1000
%7C%7C y %3E
- 999
+= 1000
) re
|
a8dd85d21e0852f94b449679e6d5b7571a95bd0e | Fix keep nick setting nick to undefined on socket close | src/plugins/irc-events/connection.js | src/plugins/irc-events/connection.js | "use strict";
const _ = require("lodash");
const log = require("../../log");
const Msg = require("../../models/msg");
const Chan = require("../../models/chan");
const Helper = require("../../helper");
module.exports = function(irc, network) {
const client = this;
network.channels[0].pushMessage(
client,
new Ms... | JavaScript | 0 | @@ -2988,20 +2988,22 @@
ll;%0A%0A%09%09%09
-this
+client
.emit(%22n
|
cd7da3f6d283b6918c0acf941b09b574d77c1b8f | Add Swagger version and disallow empty objects (ref #22) | jsonprocessor.js | jsonprocessor.js | /**
* Convert an array into a map
* @param {array[object]} object The array to convert.
* @param {string} keyField The name of the field is stored in within each
* object in the array.
* @return {object} The map converted from the array.
*/
function arrayToMap (... | JavaScript | 0 | @@ -536,16 +536,1255 @@
ect;%0A%7D%0A%0A
+function isEmpty (object) %7B%0A if (object === undefined) %7B%0A return true;%0A %7D else if (Array.isArray(object)) %7B%0A if (object.length === 0) %7B%0A return true;%0A %7D%0A let empty = true;%0A object.forEach((child) =%3E %7B%0A if (!isEmpty(c... |
38c05738dc83effb8750ffeb7136b41915583d6b | Revert "Revert "<Errors> component's props.errors must be an array"" | src/javascripts/components/errors.js | src/javascripts/components/errors.js | var React = require("react")
export default class Errors extends React.Component {
displayName = "FriggingBootstrap.Errors"
static defaultProps = require("../default_props.js")
render() {
return (
<div>
{
(this.props.errors||[]).map((error) => {
return (
<d... | JavaScript | 0 | @@ -183,18 +183,124 @@
%0A%0A
-render() %7B
+static propTypes = %7B%0A errors: React.PropTypes.array.isRequired,%0A %7D%0A%0A render() %7B%0A const %7Berrors%7D = this.props
%0A
@@ -345,31 +345,14 @@
-(this.props.
errors
-%7C%7C%5B%5D)
.map
@@ -366,34 +366,9 @@
) =%3E
- %7B%0A return ... |
ea6dd0a466ec04e6a9dd66af8b177d559f40a543 | fix issue dashboard | src/js/controllers/dashboard-ctrl.js | src/js/controllers/dashboard-ctrl.js | /**
* Alerts Controller
*/
angular
.module('RDash')
.config(['ChartJsProvider', function (ChartJsProvider) {
// Configure all charts
ChartJsProvider.setOptions({
chartColors: ['#FF5252', '#FF8A80'],
responsive: false
});
// Configure all line charts
ChartJsProvider.setO... | JavaScript | 0.000001 | @@ -1118,21 +1118,21 @@
graphic/
-daily
+month
%22)%0A .
|
b0187d202c11cdaf50de0e9130c744da2a255f5c | update port | config/default.js | config/default.js | require('dotenv').config();
module.exports = {
'host': 'localhost',
'port': 3030,
'public': '../public/',
'postgres': process.env.DB_URL,
'authentication': {
'secret': 'this is a very good secret',
'strategies': [
'jwt'
],
'path': '/authentication',
'service': 'users',
'jwt': {
... | JavaScript | 0 | @@ -78,12 +78,24 @@
t':
-3030
+process.env.PORT
,%0A
|
5614c042c9485fbf084d5e42cce497d07d123dd1 | Fix inconsistency with form that caused validation error | models/tutor.js | models/tutor.js | var mongoose = require('mongoose')
var bcrypt = require('bcryptjs')
var crypto = require('crypto')
var emailRegex = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
var phoneRegex = /^[6, 8, 9]\d{7}$/
var TutorSchem... | JavaScript | 0.000028 | @@ -1284,16 +1284,16 @@
'
-A
+a
bove 6
-6
+5
'%0A
|
efd06f1e1af520ec9858ab0cc6360c0594459a2f | add AWS credentials to make add user work | src/js/drivers/awsCognitoIdentity.js | src/js/drivers/awsCognitoIdentity.js | // Cognoto user identity pools
// Non federated auth with login/out in app
/*
// this is failing to work so are loaded as global scripts in asssit.html
require("script!./vendor/jsbn.js")
require("script!./vendor/jsbn2.js")
require("script!./vendor/sjcl.js")
require("script!./vendor/moment.min.js")
require("script!./ve... | JavaScript | 0 | @@ -1016,16 +1016,178 @@
ion */%0A%0A
+ // need these dummy credentials - though enabling unauthorised access also works%0A AWSCognito.config.update(%7BaccessKeyId: 'dummy', secretAccessKey: 'dummy'%7D)%0A%0A
const
|
e394993281a36619b354f89bbb7e6fcdd8d69b77 | Add link for TagsService example | src/popup/js/services/TagsService.js | src/popup/js/services/TagsService.js | angular.module('Shazam2Spotify').factory('TagsService', function(BackgroundService) {
return TagsService;
}); | JavaScript | 0 | @@ -80,16 +80,74 @@
ice) %7B%0A%09
+// Tags list : http://stackoverflow.com/a/18569690/1160800
%0A%09%0A%09retu
|
44bd18192c93c07806122d1d8dcb9883733f2baa | fix daemon | lib/daemon.js | lib/daemon.js | const cp = require('child_process');
const fs = require('fs-promise');
const path = require('path');
exports.start = function() {
return fs.readFile('pid', 'utf-8')
.catch(err => null)
.then(pid => {
try {
process.kill(pid - 0, 0);
return true;
... | JavaScript | 0.000002 | @@ -608,17 +608,27 @@
'TEST')
-;
+%0A %7D)
%0A
|
b888ffe52cf73c45d76553df7f60c9d8765e3db4 | Simplify functions | src/main/webapp/authentication.js | src/main/webapp/authentication.js | // 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
//
// Unless required by applicable law or agreed to in ... | JavaScript | 0.00003 | @@ -1847,38 +1847,32 @@
ed in user.%0A */%0A
-async
function loadPro
@@ -3174,35 +3174,16 @@
ut() %7B%0A
- const googleAuth =
gapi.au
@@ -3207,22 +3207,8 @@
ce()
-;%0A googleAuth
.sig
|
305b385753d00c25bec3797c6dd11a9a2b9ab9c5 | Validate against special characters (#6733) | src/js/letters/utils/validations.js | src/js/letters/utils/validations.js | import { isValidUSZipCode } from '../../common/utils/validations';
import { ADDRESS_TYPES, MILITARY_CITIES } from './constants';
const requiredMessage = 'Please enter a valid address'; // Change me!
/**
* Ensures the input isn't blank
*/
const requiredValidator = (input, fullAddress, message = requiredMessage) => ... | JavaScript | 0.00001 | @@ -430,16 +430,224 @@
ue;%0A%7D;%0A%0A
+const specialCharacterValidator = (input) =%3E %7B%0A if (/%5B%5EA-Za-z0-9 #%25&'()+,./:@%5D/.test(input)) %7B%0A return %22Please only use letters, numbers, and the special characters #%25&'()+,./:@%22;%0A %7D%0A%0A return true;%0A%7D;%0A%0A
%0A/**%0A *
@@ -1338,16 +13... |
d5ef3f52349b74216b1d6777988724ccb03894bd | refresh button add lint | src/refresh_button/refresh_button.js | src/refresh_button/refresh_button.js | /**
* @file Refresh button control
* @copyright Digital Living Software Corp. 2014-2016
*/
/* global angular */
(function () {
'use strict';
var thisModule = angular.module("pipRefreshButton", ['ngMaterial']);
thisModule.directive('pipRefreshButton',
function($parse) {
return {
... | JavaScript | 0.000001 | @@ -92,30 +92,8 @@
*/%0A%0A
-/* global angular */%0A%0A
(fun
@@ -99,16 +99,23 @@
nction (
+angular
) %7B%0A
@@ -165,17 +165,17 @@
.module(
-%22
+'
pipRefre
@@ -182,17 +182,17 @@
shButton
-%22
+'
, %5B'ngMa
@@ -247,18 +247,16 @@
Button',
-
%0A
@@ -264,16 +264,17 @@
function
+
($parse)
@@ -393,1... |
1af68c0cb4b60759c214c658b14a9da35c9309a4 | Update device.js | lib/device.js | lib/device.js | var stream = require('stream')
, util = require('util')
, exec = require('child_process').exec
, SunCalc = require('suncalc'),
child;
require('date-utils');
// Give our device a stream interface
util.inherits(Device,stream);
// Export it
module.exports=Device;
/**
* Creates a new Device Object
*
* @proper... | JavaScript | 0.000001 | @@ -2844,11 +2844,12 @@
ter
-%3E
+%3C
=
+-
1440
@@ -2868,17 +2868,17 @@
counter
--
++
1440;%0A
|
7f35393108714b2fc4add93745f5ffc951d961b1 | Add type to mock registry components | mocks/registry.js | mocks/registry.js | module.exports = [
{
"name": "mock-overdrive",
"description": "Mock Overdrive",
"version": "0.1.3",
"main": "index.js",
"repo": "mock/mock-overdrive",
"license": "MIT",
"scripts": [
"index.js"
],
"keywords": [
"mock",
"web audio api",
"overdrive"
],
... | JavaScript | 0 | @@ -336,32 +336,55 @@
%22web-audio%22: %7B%0A
+ %22type%22 : %22effect%22
%0A %7D%0A %7D,%0A %7B%0A
@@ -695,16 +695,39 @@
dio%22: %7B%0A
+ %22type%22 : %22effect%22
%0A %7D%0A
|
9c2267bb068b896c1c393ae1ae0bbeb2b14c93e0 | Add category for expenses | src/reports/category/_application.js | src/reports/category/_application.js |
angular.module('gnucash-reports-view.reports.category', ['gnucash-reports-view.reports.base',
'nvd3'])
.config(['ReportsManagementProvider', function(provider) {
provider.addTemplate('account_usage_categories', 'src/reports/category/category.html');... | JavaScript | 0.000002 | @@ -314,16 +314,107 @@
html');%0A
+ provider.addTemplate('expenses_categories', 'src/reports/category/category.html');%0A
%7D%5D);
|
55b75dac886866b957a9f450a1db7daa31528a68 | Revert to 7.8, unminified | assets/javascripts/auth0.js | assets/javascripts/auth0.js | /* global Auth0Lock */
(function () {
function appendScript(src, callback) {
var new_script = document.createElement('script');
new_script.setAttribute('src',src);
new_script.onload = callback;
document.head.appendChild(new_script);
}
var lock;
var script_url = '//cdn.auth0.com/js/lock-6.2.min... | JavaScript | 0.999999 | @@ -310,15 +310,11 @@
ock-
-6.2.min
+7.8
.js'
|
e36efdf971ddbb89a44c16403d6711cf7cf129a4 | Add describe block for action test. | assets/js/googlesitekit/modules/datastore/settings.test.js | assets/js/googlesitekit/modules/datastore/settings.test.js | /**
* `googlesitekit/modules` datastore: settings tests.
*
* 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.... | JavaScript | 0 | @@ -1928,16 +1928,54 @@
() =%3E %7B%0A
+%09%09describe( 'submitChanges', () =%3E %7B%0A%09
%09%09it( 'i
@@ -2052,16 +2052,17 @@
() =%3E %7B%0A
+%09
%09%09%09const
@@ -2168,24 +2168,25 @@
ion.%60 %7D;%0A%09%09%09
+%09
expect( awai
@@ -2283,24 +2283,25 @@
edError );%0A%0A
+%09
%09%09%09expect( a
@@ -2408,16 +2408... |
9e81a472783bda007cfc67f83d39d0dca6eaf345 | fix comments | example/modules/app/controllers/appTest.es6 | example/modules/app/controllers/appTest.es6 | angular.module('App')
//you can use $scope or controllerAs methods, anyway
.controller('App.controllers.appTest', ['PropertyBinder.services.binder', 'App.factories.users',
function(bind, userFactory){
// old method - just create a reference with the factory property
// this.users = userFactory.users;
thi... | JavaScript | 0.000001 | @@ -64,17 +64,9 @@
hods
-, anyway
%0A
+
%09.co
@@ -343,12 +343,10 @@
'/*c
-ould
+an
tak
@@ -600,16 +600,16 @@
apply()%0A
+
%09%09%09//bin
@@ -613,19 +613,16 @@
bind an
-an
event tr
|
f6efd18d7b90e54ed5f17cf0959073b922af1ca2 | work around edge case with creating a new tag | api/models/TagFollow.js | api/models/TagFollow.js | /* eslint-disable camelcase */
module.exports = bookshelf.Model.extend({
tableName: 'tag_follows',
community: function () {
return this.belongsTo(Community)
},
tag: function () {
return this.belongsTo(Tag)
},
user: function () {
return this.belongsTo(User)
}
}, {
create (attrs, { trans... | JavaScript | 0.000003 | @@ -1422,16 +1422,174 @@
return
+TagFollow.where(%7B%0A community_id: communityId,%0A tag_id: tagId,%0A user_id: userId%0A %7D).fetch(%7Btransacting%7D)%0A .then(follow =%3E follow %7C%7C%0A
new TagF
@@ -1627,24 +1627,26 @@
cting%7D)%0A
+
.tap(() =%3E C
@@ -1662,32 +1662,34 @@
ag... |
218a1780c684737c23fc236fcd080acb9b718dc3 | remove callback | lib/driver.js | lib/driver.js | "use strict";
var Cylon = require("cylon");
var Driver = module.exports = function Driver(opts) {
Driver.__super__.constructor.apply(this, arguments);
opts = opts || {};
// Include a list of commands that will be made available to external APIs.
this.commands = {
// This is how you register a command fun... | JavaScript | 0.000001 | @@ -1212,32 +1212,24 @@
= function(
-callback
) %7B%0A this.c
@@ -1273,38 +1273,24 @@
a.forward);%0A
- callback();%0A
%7D;%0A%0ADriver.p
@@ -1314,32 +1314,24 @@
= function(
-callback
) %7B%0A this.c
@@ -1380,30 +1380,16 @@
kward);%0A
- callback();%0A
%7D;%0A%0ADriv
@@ -1413,32 +1413,24 @@
= function(
-c... |
e96455d31ce0f308e40bc8815f575ca80c89eccf | fix scroll with long list | src/web/containers/App.js | src/web/containers/App.js | import React, { Component } from 'react';
import Board from '../components/Board'
import Header from '../components/Header'
import { connect } from 'react-redux'
import * as LamaActions from '../../common/actions'
import { bindActionCreators } from 'redux'
import HTML5Backend from 'react-dnd-html5-backend';
import {Dra... | JavaScript | 0.000003 | @@ -820,51 +820,39 @@
-height: '100%25',%0A width: '100%25'
+top: 0,%0A bottom: 0
,%0A
top:
@@ -839,35 +839,36 @@
ottom: 0,%0A
-top
+left
: 0,%0A left:
@@ -862,23 +862,62 @@
,%0A
-left: 0
+overflowY: 'scroll',%0A overflowX: 'scroll'
%0A %7D%0A%09
|
d20dc78ad126b003042e9452f864579aa37aac69 | Revert folderpicker.js to devevlop version | website/static/js/folderpicker.js | website/static/js/folderpicker.js | /**
* A simple folder picker plugin built on HGrid.
* Takes the same options as HGrid and additionally requires an
* `onPickFolder` option (the callback executed when a folder is selected).
*
* Usage:
*
* $('#myPicker').folderpicker({
* data: // Array of HGrid-formatted data or URL to fetch data
* o... | JavaScript | 0 | @@ -5769,24 +5769,22 @@
-var tb =
+return
new Fol
@@ -5821,156 +5821,14 @@
- $.fn.folderpicker.prototype.destroy = function() %7B%0A tb.grid.destroy();%0A %7D;%0A this._tb = tb;%0A %7D);%0A return this
+%7D)
;%0A%7D;
-
%0A%0A%0AF
|
2921800521fcef3a9ec8eb4ca9039f2f970db685 | Fix undefined reference to "result" in basic auth strategy callback. | api/routes/api/oauth.js | api/routes/api/oauth.js | var oauth2orize = require('oauth2orize');
var uid = require('uid');
var crypto = require('crypto');
var passport = require('passport');
var BasicStrategy = require('passport-http').BasicStrategy;
var ClientPasswordStrategy = require('passport-oauth2-client-password').Strategy;
var BearerStrategy = require('passport-htt... | JavaScript | 0 | @@ -1470,14 +1470,11 @@
ll,
-result
+app
? a
|
77fc4b054306ecf0a0db45999c5868f542e67c53 | Update models/Contact.js | models/Contact.js | models/Contact.js | var keystone = require('twreporter-keystone');
var transform = require('model-transform');
var Types = keystone.Field.Types;
var Contact = new keystone.List('Contact');
Contact.add({
name: { type: String, required: true, index: true },
email: { type: Types.Email, initial: true, index: true },
image: { type: Types.... | JavaScript | 0 | @@ -317,23 +317,39 @@
pes.
-Cloudinary
+ImageRelationship, ref: '
Image
+'
%7D,%0A
|
c1b202ea9d85ea61a4e1e773795e384c6780a8e6 | fix LookupTableIterator | src/lib/collections/lookup-table.js | src/lib/collections/lookup-table.js | import Grouping from './grouping';
import Iterator from '../iteration/iterator';
import EqualityComparer from './equality-comparer';
import resize from '../utils/resize';
import forOf from '../utils/for-of';
import extend from '../utils/extend';
import mixin from '../utils/mixin';
var emptyGrouping = new Grouping(null... | JavaScript | 0 | @@ -3397,18 +3397,16 @@
ts%5Bindex
-++
%5D.groupi
|
0ed53170d4bc9574f53cf093ab4b261e6220346f | Fix error inserting snippets | assets/js/pages-snippets.js | assets/js/pages-snippets.js | /*
* Handles snippet operations on the Pages main page
*/
+function ($) { "use strict";
if ($.oc.pages === undefined)
$.oc.pages = {}
var SnippetManager = function ($masterTabs) {
this.$masterTabs = $masterTabs
var self = this
$(document).on('hidden.oc.inspector', '.redactor... | JavaScript | 0.000013 | @@ -1443,16 +1443,21 @@
econdary
+-tabs
.tab-pa
@@ -7672,8 +7672,9 @@
jQuery);
+%0A
|
675da6243c4b65bc40666b1f7f8861724af86a13 | remove an unneeded conditional in generatePage() | generate.js | generate.js | var fs = require('fs'),
path = require('path'),
sys = require('sys'),
exec = require('child_process').exec,
hogan = require('hogan'),
models = require('./models.js'),
config = require('./config.js').config,
Page = models.Page,
Template = models.Template,
StaticFile = models.Static... | JavaScript | 0 | @@ -1967,99 +1967,139 @@
+// Make sure the page's
path
-.
+
exists
-(path.dirname(
+. i.e. if the
page
-.
+'s
path
-), function(exists) %7B%0A if (!exists) %7B%0A
+ is '/foo/bar/index.html',%0A // run a mkdir on %60webroot/foo/bar'%0A
@@ -2221,326 +2221,33 @@
- ... |
c2fb565d6fa3c0224adc2b37f76016072fdc9c23 | Patch officials function name. | src/main/webapp/scripts/toggle.js | src/main/webapp/scripts/toggle.js | const KEYWORD_TEMPLATE_PROMISE = loadTemplate('/templates/keyword.html');
const LOCATION_TEMPLATE_PROMISE = loadTemplate('/templates/location.html');
const NO_KEYWORDS_HTML = loadTemplate('/templates/noKeywords.html')
const KEYWORDS_OBJ_URL = '/keyword';
const CIVIC_OBJ_URL = '/actions/civic'
const BOOKS_OBJ_URL = '... | JavaScript | 0 | @@ -3073,24 +3073,17 @@
s =
-extractO
+o
fficials
(civ
@@ -3078,16 +3078,23 @@
fficials
+ByLevel
(civicOb
|
825252d994187e6eb0612043d32b7821781f81c4 | Fix operation jsdocs | lib/operation.js | lib/operation.js | 'use strict';
/**
* Module dependencies.
*/
var schema = require('./schema');
/**
* Initialize a new `Operation`.
*
* @param {Resource} resource
* @param {Object} spec
* @param {Function} fn
* @api private
*/
function Operation(spec, fn) {
if (!(this instanceof Operation)) {
return new Operation(spec... | JavaScript | 0.000009 | @@ -120,38 +120,8 @@
%0A *%0A
- * @param %7BResource%7D resource%0A
* @
@@ -169,30 +169,29 @@
fn%0A * @api p
-rivate
+ublic
%0A */%0A%0Afuncti
|
8a125d4f918cb51a2f0dfa2ebffa05c428bc036c | Fix JavaScript tests (#824) | web/src/test/webapp/spec/routeManipulationSpec.js | web/src/test/webapp/spec/routeManipulationSpec.js | // because leaflet-src.js requires window, document etc. we need to provide these variables...
global.window = {};
global.document = {
documentElement: {
style: {}
},
getElementsByTagName: function() { return []; },
createElement: function() { return {}; }
};
global.navigator = {
userAgent: ... | JavaScript | 0 | @@ -1,12 +1,12 @@
//
-b
+B
ecause l
@@ -48,13 +48,23 @@
ment
- etc.
+, and navigator
we
@@ -70,16 +70,19 @@
need to
+%0A//
provide
@@ -98,18 +98,16 @@
riables.
-..
%0Aglobal.
@@ -116,16 +116,32 @@
ndow = %7B
+%0A screen: %7B%7D%0A
%7D;%0Agloba
@@ -321,24 +321,48 @@
vigator = %7B%0A
+ platform: 'no... |
cbe557a838ab90a45a833d94208f51d24d1a995a | Add AND operators to account for undefined objects | src/main/webapp/scripts/toggle.js | src/main/webapp/scripts/toggle.js | const KEYWORD_TEMPLATE_PROMISE = loadTemplate('/templates/keyword.html');
const LOCATION_TEMPLATE_PROMISE = loadTemplate('/templates/location.html');
const NO_KEYWORDS_HTML = loadTemplate('/templates/noKeywords.html')
let locationObj = null;
let language = null;
const KEYWORDS_OBJ_URL = '/keyword';
const CIVIC_OBJ_UR... | JavaScript | 0 | @@ -3424,16 +3424,27 @@
j.news =
+ newsObj &&
newsObj
@@ -3479,16 +3479,28 @@
.books =
+ booksObj &&
booksOb
@@ -3540,16 +3540,31 @@
ojects =
+ projectsObj &&
project
|
e875478f2434beabc2247305a89c75bf2bf3553d | connect alllistings to store | client/src/components/Listing/AllListings/AllListings.js | client/src/components/Listing/AllListings/AllListings.js | import React, { Component } from 'react';
import { connect } from 'react-redux';
import moment from 'moment';
import { Container, Header, Card, Button, Divider } from 'semantic-ui-react';
export default class AllListings extends Component {
render() {
return (
<h2>AllListings</h2>
);
}
}
// const ma... | JavaScript | 0 | @@ -182,31 +182,16 @@
eact';%0A%0A
-export default
class Al
@@ -226,18 +226,102 @@
%7B%0A
-render() %7B
+constructor(props) %7B%0A super(props);%0A %7D%0A%0A render() %7B%0A console.log('props', this.props);
%0A
@@ -371,19 +371,16 @@
%0A %7D%0A%7D%0A%0A
-//
const ma
@@ -412,36 +412,127 @@
%3E %7B... |
c51dbc6ba604b31621bd4b520cf6c509330400ed | fix circular dependency detection | lib/engine.js | lib/engine.js | const minimatch = require('minimatch');
const cpp = require('child-process-promise');
const messages = require('./messages');
const Throat = require('throat');
const os = require('os');
const errors = require('./errors');
const fs = require('fs-extra');
const STARTED = Symbol('pending');
const COMPLETE = Symb... | JavaScript | 0.000005 | @@ -1142,24 +1142,58 @@
target)) %7B%0D%0A
+%09%09%09%09const ctx1 = ctx.for(target)%0D%0A
%09%09%09%09return c
@@ -1194,16 +1194,17 @@
turn ctx
+1
.start(t
@@ -1240,28 +1240,17 @@
.run(ctx
-.for(target)
+1
, target
@@ -2820,24 +2820,29 @@
n.add(target
+ + ''
);%0D%0A%09%09return
|
1d620ff868c96cb0a31ec2cf5264daeaf37783ee | Add the show method. | cleverlay.js | cleverlay.js | /*============================================================================*\
________ __
/ ____/ /__ _ _____ _____/ /___ ___ __
/ / / / _ \ | / / _ \/ ___/ / __ `/ / / /
/ /___/ / __/ |/ / __/ / / / /_/ / /_/ /
\____/_/\___/|___/\___/_/ /_/\__,_/\__, /
/____/
Jav... | JavaScript | 0.000001 | @@ -3748,32 +3748,261 @@
backdrop);%0A%09%7D;%0A%0A
+%09Cleverlay.prototype.show = function(object) %7B%0A%0A%09%09if (this.validateContentObject(object)) %7B%0A%0A%09%09%09return this.showContent(object.url, object.type, object.width, object.height, object.token);%0A%09%09%7D%0A%0A%09%09else %7B%0A%0A%09%09%09return ... |
e7e50318b561e191560faebe62e492ca2d06dd79 | fix cli/utils test | cli/utils.js | cli/utils.js | /**
* Copyright 2013-2019 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see https://www.jhipster.tech/
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... | JavaScript | 0.000001 | @@ -3154,17 +3154,17 @@
t.join('
-%7C
+
')%7D%5D%60;%0A
|
4364ba171fda9aa62b3d628d4754944a7c6ef5c9 | Add tests for toggle timer | edx_proctoring/static/proctoring/spec/proctored_exam_spec.js | edx_proctoring/static/proctoring/spec/proctored_exam_spec.js | describe('ProctoredExamView', function () {
beforeEach(function () {
this.server = sinon.fakeServer.create();
jasmine.clock().install();
setFixtures(
'<div class="proctored_exam_status">' +
'<script type="text/template" id="proctored-exam-status-tpl">' +
'... | JavaScript | 0 | @@ -574,68 +574,258 @@
pan
-id=%22time_remaining_id%22 class=%22pull-right%22%3E %3Cb%3E %3C/b%3E %3C/span%3E
+class=%22exam-timer-clock%22%3E %3Cspan id=%22time_remaining_id%22%3E' +%0A '%3Cb%3E %3C/b%3E %3Ca id=%22toggle_timer%22 href=%22#%22 title=%22Hide Timer%22%3E' +%0A '%3Ci class=%22fa ... |
808f2a844a49fc6d7168c1c5ef8216f4821e2f56 | Fix for de_DE locale | src/main/webapp/tests/testI18N.js | src/main/webapp/tests/testI18N.js | var testI18N = function()
{
var driver = new Gitana.Driver();
var setupHandler1 = function(status)
{
if (!status.isOk())
{
alert("Create failed");
}
// read the repository back
driver.repositories().read(status.getId(), setupHandler2);
};
var se... | JavaScript | 0.000006 | @@ -1240,18 +1240,18 @@
1%22, %22de_
-E
D
+E
%22, germa
@@ -2268,10 +2268,10 @@
%22de_
-E
D
+E
%22, f
|
55228e89d3b42a5e9af041b0d3eb78b63406352c | Make sure service is defined when instanciating a Publisher | lib/publisher.js | lib/publisher.js | 'use strict';
var Map = require('immutable').Map;
var Moment = require('moment');
var Promise = require('promise');
/**
* Pure function that publish a set of metadata to an external service.
*
* @class
* @param {Object} service - An object implementing a `post` function
*/
var Publisher = function (service) {
... | JavaScript | 0 | @@ -323,16 +323,47 @@
(typeof
+ service !== 'object' %7C%7C typeof
(service
@@ -425,16 +425,31 @@
ce must
+be defined and
implemen
|
db9702150c52347ebbe225ad0f68eefea5e9c2b7 | improve comments in create method file | src/methods/create.js | src/methods/create.js | // CREATE TASK
// this is the first task you can call from teleport to build project:
// - it decides if the name of the project is good set
// (and if not, it will give you one random)
// - it checks if there is a folder with the same project name here
// - it checks if there is no such project already refered into th... | JavaScript | 0 | @@ -74,16 +74,17 @@
ild
+
project
-:
+.
%0A//
@@ -127,15 +127,16 @@
ect
-is good
+has been
set
@@ -173,18 +173,24 @@
you
-o
+a ge
ne
-
ra
-ndom
+ted name
)%0A//
@@ -206,130 +206,132 @@
cks
-if there is a folder with the same project name here%0A// - it checks if there is no such project already refere... |
ac662c0a82919e01082e1aff873971f38424c462 | fix an error when res.count is not defined. | lib/queryable.js | lib/queryable.js | var _ = require("underscore")._;
var assert = require("assert");
var util = require('util');
var Entity = require('./entity');
var Where = require("./where");
var ArgTypes = require("./arg_types");
var DA = require("deasync");
/**
* Represents a queryable database entity (table or view).
* @param {[type]} args [desc... | JavaScript | 0 | @@ -2261,33 +2261,101 @@
lse
-args.next(null, res.count
+if (res && res.count !== undefined) args.next(null, res.count);%0A else args.next(null, null
);%0A
|
ced41eb65e11b098739ac596be056091e0bf0883 | Fix #371 - bug with hovers | src/misc/sigma.misc.drawHovers.js | src/misc/sigma.misc.drawHovers.js | ;(function(undefined) {
'use strict';
if (typeof sigma === 'undefined')
throw 'sigma is not declared';
// Initialize packages:
sigma.utils.pkg('sigma.misc');
/**
* This method listens to "overNodes" and "outNodes" events from a renderer
* and renders the nodes differently on the top layer. The go... | JavaScript | 0 | @@ -509,24 +509,26 @@
this,%0A
+
hoveredNodes
@@ -534,10 +534,10 @@
s =
-%5B%5D
+%7B%7D
;%0A%0A
@@ -589,44 +589,102 @@
-hoveredNodes.push(event.data.node);%0A
+var node = event.data.node;%0A if (!node.hidden) %7B%0A hoveredNodes%5Bnode.id%5D = node;%0A
@@ -685,32 +685,40 @@
... |
749cd238f0598d1ac6c9ab4f138266b051536461 | Allow arrays in responses. | src/shared/state/util/npmsRequest.js | src/shared/state/util/npmsRequest.js | import Promise from 'bluebird';
import axios from 'axios';
import config from 'config';
import isPlainObject from 'lodash/isPlainObject';
function createUrl(path) {
return `${config.api.url.replace(/\/+$/, '')}/${path.replace(/^\/+/, '')}`;
}
function onFullfilled(res) {
if (!isPlainObject(res.data)) {
... | JavaScript | 0 | @@ -295,32 +295,60 @@
Object(res.data)
+ && !Array.isArray(res.data)
) %7B%0A thro
@@ -615,32 +615,60 @@
Object(res.data)
+ && !Array.isArray(res.data)
) %7B%0A thro
|
8cc9f3b58043cf10421ea84c4fa0a8f2e9ae1245 | Use startsWith for string match | src/modules/email/welcomeEmail.js | src/modules/email/welcomeEmail.js | import Logger from '../../lib/logger';
import fs from 'fs';
import jwt from 'jsonwebtoken';
import handlebars from 'handlebars';
import * as pg from '../../lib/pg';
import send from './sendEmail';
import { config } from '../../core-server';
import * as Constants from '../../lib/Constants';
const log = new Logger(__file... | JavaScript | 0.000004 | @@ -854,25 +854,31 @@
urn
-/mailto:/.test(el
+el.startsWith('mailto:'
);%0A%09
|
860c5481bcca4fd2e9749c0646ae962375f421f7 | Add lisence file to lib/change_tracker.ts | firestore-document-histories/functions/lib/change_tracker.js | firestore-document-histories/functions/lib/change_tracker.js | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const diff_1 = require("./diff");
var ChangeType;
(function (ChangeType) {
ChangeType[ChangeType["CREATE"] = 0] = "CREATE";
ChangeType[ChangeType["DELETE"] = 1] = "DELETE";
ChangeType[ChangeType["UPDATE"] = 2] = "UPDATE";
})(Change... | JavaScript | 0 | @@ -7,16 +7,610 @@
trict%22;%0A
+/*%0A * Copyright 2019 Google LLC%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * https://www.apache.org/licenses/LICENSE-2.0%0A... |
e7eb815940acca712c9cf3ad3c28aaef14a16de8 | fix the test --flow options description | cmds/test.js | cmds/test.js | 'use strict'
module.exports = {
command: 'test',
desc: 'Test your code in different environments',
builder: {
target: {
alias: 't',
describe: 'In which target environment to execute the tests',
type: 'array',
choices: ['node', 'browser', 'webworker'],
default: ['node', 'browser'... | JavaScript | 0.000033 | @@ -1334,25 +1334,34 @@
e: '
-Flow Type awesome
+Run test with Flow support
',%0A
|
277ddc9c5e386324b98dcc25dbc7a4a8b8053af3 | fix order | lib/rich-text.js | lib/rich-text.js | var Delta = require('quill-delta');
module.exports = {
name: 'rich-text',
uri: 'http://sharejs.org/types/rich-text/v0',
create: function (initial) {
var delta = new Delta(initial)
return delta.ops;
},
apply: function (snapshot, ops) {
snapshot = new Delta(snapshot);
var delta = new Delta(o... | JavaScript | 0.000046 | @@ -706,17 +706,17 @@
= delta
-1
+2
.transfo
@@ -723,17 +723,17 @@
rm(delta
-2
+1
, side =
|
c1ffa9ed8aedb55dc343d7ae974fdb448955ace1 | remove old code | js/client.js | js/client.js | var socket = io();
$('#add').click(function(e){
socket.emit('add', {
id: 'shape-' + Math.floor(Math.random() * 1000000000),
opacity: $('#opacity').val(),
backgroundColor: $('#color').val(),
width: $('#size').val() + 'px',
height: $('#size').val() + 'px',
mixBlendMode: $('#mix-blend').val(),
... | JavaScript | 0.000049 | @@ -4232,17 +4232,16 @@
);%0A %7D%0A%0A
-%0A
socket
@@ -4395,788 +4395,8 @@
%7D);%0A
-%0A%0A // .draggable()%0A // .on('dragstart', function( event, ui ) %7B%0A // $(this).addClass('grabbing');%0A // %7D)%0A // .on('drag', function ( event, ui ) %7B%0A // socket.emit('move', %7B%... |
dbcb98136ecf6d2f6200d2e5fb29f7d1684c9edf | Correct color value for Black | js/colors.js | js/colors.js | module.exports = {
BLACK: 1,
RED: 1,
GREEN: 2,
BLUE: 3
} | JavaScript | 0.000005 | @@ -20,17 +20,17 @@
%09BLACK:
-1
+0
,%0A%09RED:
|
0c133c2c098009c1159484e0b69a87854cce07ad | change repo name | js/config.js | js/config.js | $(function() {
CMS.init({
// Name of your site or location of logo file, relative to root directory (img/logo.png)
siteName: 'John-Henry Beats The Machine',
// Tagline for your site
siteTagline: "I'm John-Henry and I Beat The Machine",
// Email address
siteEmail: 'om@johnhenrybeatsthemachi... | JavaScript | 0.000002 | @@ -1350,25 +1350,11 @@
'jh
-liberty.github.io
+btm
'%0A
|
5ca496397a1f948ecd2e1e0cb07fc3ad3e40bc64 | Add missing "domReady" module declaration | src/main/webapp/public/app-reset.js | src/main/webapp/public/app-reset.js | require.config({
paths: {
"jquery": "js/jquery-2.1.4.min",
"underscore": "js/underscore-min",
"knockout": "js/knockout-min-3.3.0"
}
});
require(['jquery', 'js/modules/dukecondb', 'js/modules/dukeconsettings', 'domReady!'], function($, db, settings) {
console.log("Clearing DB");
... | JavaScript | 0.000144 | @@ -103,24 +103,59 @@
score-min%22,%0A
+ %22domReady%22: %22js/domReady%22,%0A
%22kno
|
24d05aba0db15d570ece81db8aad240722d321da | change mode | js/config.js | js/config.js | $(function() {
CMS.init({
// Name of your site or location of logo file ,relative to root directory (img/logo.png)
siteName: 'Médric Chouan',
// Tagline for your site
siteTagline: 'Your site tagline',
// Email address
siteEmail: 'your_email@example.com',
// Name
siteAuthor: 'Médric Chouan',
// ... | JavaScript | 0.000003 | @@ -846,22 +846,22 @@
%09mode: '
-Apache
+Github
',%0A%0A%09%09//
|
22538093e4fe2d1c5a9548f4a10746f9183d91a3 | Remove probably useless commented code. | content/addons.js | content/addons.js | /*
(function() {
// Override the existing showView() function
var _origShowView = showView;
showView = function(aView) {
dump('show view '+aView+'\n');
if ('userscripts'==aView) {
greasemonkeyAddons.selectMe();
} else {
_origShowView(aView);
}
};
})();
var greasemonkeyAddons={
onc... | JavaScript | 0 | @@ -1,2289 +1,4 @@
-/*%0A(function() %7B%0A // Override the existing showView() function%0A var _origShowView = showView;%0A showView = function(aView) %7B%0A dump('show view '+aView+'%5Cn');%0A if ('userscripts'==aView) %7B%0A greasemonkeyAddons.selectMe();%0A %7D else %7B%0A _origShowView(aView)... |
aea3fc23355b1b6bb778b474b0b213f34145e185 | Add setter to $cell | src/ng/components/body/td.core.js | src/ng/components/body/td.core.js | import Directive from 'ng/directives/directive';
import cellBuilder from '../cell/cell.build';
import AppError from 'core/infrastructure/error'
import {VIEW_CORE_NAME, TD_CORE_NAME} from 'ng/definition';
import {GRID_PREFIX} from 'core/definition';
class TdCore extends Directive(TD_CORE_NAME, {view: `^^${VIEW_CORE_NAM... | JavaScript | 0.000004 | @@ -2100,24 +2100,154 @@
olumn);%0A%09%7D%0A%0A
+%09set value(value) %7B%0A%09%09const column = this.column;%0A%09%09const row = this.row;%0A%09%09this.view.edit.cell.setValue(row, column, value);%0A%09%7D%0A%0A
%09get rowInde
|
ff2a47ce977b9e086ae54550f86f279f50bb0736 | Fix #394 | modules/github.js | modules/github.js | const WebhooksApi = require('@octokit/webhooks')
const http = require('http') // core
const colors = require('irc').colors
let server
let webhook
let listener
const announce = (bot, msg) => {
return bot.notice(bot.config.get('github.channel'), colors.wrap('dark_green', '[github] ') + msg)
}
module.exports = {
on... | JavaScript | 0.000001 | @@ -3001,17 +3001,16 @@
mment on
-
'%0A
|
1fd7a9a1559fb1e9dda535872bcb1c82ba814fe1 | remove tags to parse comments correctly | modules/parser.js | modules/parser.js | define(function (require, exports, module) {
'use strict';
var Async = brackets.getModule('utils/Async'),
ProjectManager = brackets.getModule('project/ProjectManager'),
DocumentManager = brackets.getModule('document/DocumentManager'),
LanguageManager = brackets.getModule('language/Langu... | JavaScript | 0 | @@ -4577,43 +4577,8 @@
ent,
- %5B'idea', 'todo', 'doing', 'done'%5D,
lan
|
cc9389a689ee851e5b296aee5fa8ffe1990d39a1 | change from dropdown and simplify styling plus make some minor fixes. | src/widget.facetviewer.js | src/widget.facetviewer.js | /*jshint multistr:true */
this.recline = this.recline || {};
this.recline.View = this.recline.View || {};
(function($, my) {
// ## FacetViewer
//
// Widget for displaying facets
//
// Usage:
//
// var viewer = new FacetViewer({
// model: dataset
// });
my.FacetViewer = Backbone.View.extend({
clas... | JavaScript | 0 | @@ -387,86 +387,13 @@
cets
- row
%22%3E %5C%0A
- %3Cdiv class=%22span1%22%3E %5C%0A %3Ch3%3EFacets%3C/h3%3E %5C%0A %3C/div%3E %5C%0A
@@ -443,23 +443,8 @@
mary
- span2 dropdown
%22 da
@@ -477,123 +477,45 @@
%3C
-a class=%22btn dropdown-toggle%22 data-toggle=%22dropdown%22 href=%22#%22%3E%3... |
903bc664f7d704f1c9bbc507ac707ba78bc1bd2c | change error | wkD/M1_HelloFirebase/js/script.js | wkD/M1_HelloFirebase/js/script.js | $(document).ready(function(){
// REGISTER DOM ELEMENTS
const $title = $('#title');
const $id = $("#id");
// INITIALIZE FIREBASE
firebase.initializeApp({
apiKey: "AIzaSyDUH6vOCALEXSjYHgv8P9d2y3tKklE44qA",
authDomain: "f2e2020-bd468.firebaseapp.com",
databaseURL: "https://f2e2020-bd468.firebaseio.c... | JavaScript | 0.000003 | @@ -93,19 +93,21 @@
st $
-i
d
+oc
= $(%22#
-i
d
+oc
%22);%0A
@@ -798,21 +798,17 @@
1167%22);%0A
-%0A //
+
docRef.
@@ -839,16 +839,19 @@
%7B%0A
-// $id
+ $(%22#doc%22)
.htm
@@ -861,17 +861,16 @@
doc 1167
-'
name =
@@ -891,19 +891,16 @@
ame%7D%60)%0A
- //
%7D);%0A%0A%0A%0A
|
f1e9d6f728e11bd1411994061441b79b036e0d16 | fix for new_post quickfix | js/helper.js | js/helper.js | /*
* helper.js
*
* Helper file, you probably will not need this one.
* Must be loaded as the very last js file, be careful.
*
*/
$(document).ready(function(){
$('#navigation a, #markup a').css({
"cursor": 'pointer',
"text-decoration": 'none'
});
if (settings.showInfo) {
$('footer').append("<p id=\... | JavaScript | 0 | @@ -797,17 +797,28 @@
-$
+element.find
('video'
@@ -842,24 +842,25 @@
yer();%0A %7D
+;
%0A%0A var do
@@ -957,24 +957,25 @@
data')%0A %7D
+;
%0A%0A var do
@@ -1234,16 +1234,17 @@
);%0A %7D
+;
%0A%0A do
|
5bdde209167da50affffb6aadc55678a751ec027 | allow identifier header | backend/middlewares/cors.js | backend/middlewares/cors.js | module.exports = function (req, res, next) {
const method = req.raw.method && req.raw.method.toUpperCase && req.raw.method.toUpperCase()
const allowedOrigins = ['https://wago.io', 'http://io:8080']
if (!req.headers.origin) {
res.header('Access-Control-Allow-Origin', '*')
}
else if (allowedOrigins.indexOf... | JavaScript | 0.000002 | @@ -927,24 +927,35 @@
st-id,origin
+,identifier
')%0A %0A
|
ce3ae68d2bfe5a389949c544c085d06fd1996996 | Fix favicon error | app/api/image-search.js | app/api/image-search.js | /*jslint node: true */
'use strict';
var Imgur = require('imgur-search');
module.exports = function (app, db) {
app.route('/api/imagesearch/:query')
.get(function(req, res){
var query = req.params.query;
var page = req.query.offset || 0;
var imgur = new Imgur(process.env.IMGUR_CLIENT_ID);
... | JavaScript | 0.000092 | @@ -384,16 +384,55 @@
(resp)%7B%0A
+ if(query !== 'favicon.ico')%7B%0A
@@ -457,24 +457,26 @@
b);%0A
+
res.send(res
@@ -492,16 +492,26 @@
tify));%0A
+ %7D%0A
%7D)
|
f50db741a42903aff1e9c9054df967255c160b1a | change variable name | www/js/directives/autocomplete.js | www/js/directives/autocomplete.js | angular.module('app.directives')
.directive('iAutocomplete', function($document, $rootScope, $compile, $window, search, $timeout) {
var autocompleteScope = $rootScope.$new();
var autoCompleteEl = $compile(
'<div class="autocomplete-popup"><ul>' +
'<li ng-repeat="item in items | limitTo:6" n... | JavaScript | 0.00008 | @@ -569,18 +569,18 @@
var m
-ax
+in
QueryLen
@@ -2301,34 +2301,34 @@
query.length %3E m
-ax
+in
QueryLength && a
@@ -2902,10 +2902,10 @@
%3E m
-ax
+in
Quer
|
23b3ba56043fed9a53a3ec6ed6e622063d7ca5e5 | Update CC BY 3.0 link to zh-TW localized version. | src/nls/zh-tw/urls.js | src/nls/zh-tw/urls.js | /*
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the ri... | JavaScript | 0 | @@ -1529,14 +1529,24 @@
/by/3.0/
+deed.zh_TW
%22%0A%7D);%0A
|
e29bb8a1c8a663bf25deeffe2a7a9a663406db4f | remove re-deploy service, since this may be causing a race condition in deploying the service and checking if the text is on the website, and add retries (#506) | background/test/app.test.js | background/test/app.test.js | const cp = require('child_process');
const path = require('path');
const projectId = process.env.GCLOUD_PROJECT;
const regionId = process.env.REGION_ID;
const app = `https://testservice-dot-${projectId}.${regionId}.r.appspot.com`;
const assert = require('assert');
const {v4: uuidv4} = require('uuid');
const {Firestore}... | JavaScript | 0.000228 | @@ -2998,25 +2998,25 @@
his.retries(
-4
+6
);%0A this.
@@ -3036,35 +3036,8 @@
0);%0A
- await deployService();%0A
|
a3021f922d91ae0df1bdecf3b06503d6cb5dc296 | Fix CANCEL_EDIT_MESSAGE test to actually work. | src/session/__tests__/sessionReducer-test.js | src/session/__tests__/sessionReducer-test.js | import deepFreeze from 'deep-freeze';
import {
ACCOUNT_SWITCH,
CANCEL_EDIT_MESSAGE,
START_EDIT_MESSAGE,
LOGIN_SUCCESS,
} from '../../actionConstants';
import sessionReducer from '../sessionReducer';
describe('sessionReducer', () => {
describe('ACCOUNT_SWITCH', () => {
test('reissues initial fetch', () =... | JavaScript | 0.000039 | @@ -1586,37 +1586,38 @@
%7B%0A type:
-START
+CANCEL
_EDIT_MESSAGE,%0A
@@ -1758,74 +1758,12 @@
ge:
-%7B%0A content: undefined,%0A id: undefined,%0A %7D
+null
,%0A
|
2d59e8fbba61a2da79d32dca73197ea7f5901556 | correct syncup | lib/sync/sync.js | lib/sync/sync.js | 'use strict'
// need to use a function for sync -- in the funciton will recieve true if up or somethign
// addhere to play state content api -- add down / up
// this will be default behaviour for child: 'Constructor'
// if its allready the case and its own dont change it
exports.properties = {
syncUpIsFn: true,
s... | JavaScript | 0.000114 | @@ -517,32 +517,36 @@
prototype.syncUp
+IsFn
= this.syncUp =
@@ -543,24 +543,28 @@
s.syncUp
+IsFn
= true%0A
%7D%0A
@@ -547,32 +547,68 @@
ncUpIsFn = true%0A
+ val = resolveState(val, this)%0A
%7D%0A this.c
@@ -645,39 +645,19 @@
yncUp =
-resolveState(val, this)
+val
%0A %7D,%0A
@@ -879,24... |
8923137c551fd8ab14798e0fe35ff2018f6b966f | Add file paths to icons | app/constants/Images.js | app/constants/Images.js | /*
* Copyright 2017-present, Hippothesis, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
'use strict';
export const Images = {
logo: null
};
export default Images;
| JavaScript | 0.000001 | @@ -262,18 +262,167 @@
%7B%0A %09
-logo: null
+icons: %7B%0A home: require('../images/home-icon.png'),%0A search: require('../images/search-icon.png'),%0A profile: require('../images/profile-icon.png')%0A %7D
%0A%7D;%0A
|
372f58d452e985b09ecd32b943e19e2f7873b3ab | improve on hover business view | lib/assets/javascripts/yoolk/jquery.business-view-overlay.js | lib/assets/javascripts/yoolk/jquery.business-view-overlay.js | /*
* Plugin Name: Bussiness View Overlay
*
* Author: Instant Website Team
*
* Note: Call Business View Overlay after jQuery in Application JS loaded
*/
window.onload = function() {
(function($) {
BusinessViewOverlay = function(element, options) {
this.options = null;
this.$element = n... | JavaScript | 0 | @@ -1088,38 +1088,36 @@
self.$overlay.
-toggle
+show
();%0A %7D,
@@ -1160,13 +1160,11 @@
lay.
-toggl
+hid
e();
|
f093c4a1426c376615f8fb3f9acd882ac1b31132 | update dialog text and flow again | lib/drivers/onetouch/catalina-sudo/sudo-askpass.osascript.js | lib/drivers/onetouch/catalina-sudo/sudo-askpass.osascript.js | #!/usr/bin/env osascript -l JavaScript
/*
* == BSD2 LICENSE ==
* Copyright (c) 2020, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiativ... | JavaScript | 0 | @@ -891,14 +891,22 @@
%7B%0A
-return
+const result =
app
@@ -1174,25 +1174,11 @@
%7D)%0A
-%7D%0A%0AshowDialog()%0A%0A
+%0A
if (
@@ -1213,16 +1213,18 @@
K') %7B%0A
+
+
result.t
@@ -1235,16 +1235,18 @@
eturned%0A
+
%7D else i
@@ -1305,16 +1305,18 @@
is?') %7B%0A
+
app.op
@@ -1335,16 +1335,24 @@
... |
4da5631cfbf37e7d77f1c8bb76b571a2d77c8200 | Update logger.js | js/logger.js | js/logger.js | /* global console */
/* exported Log */
/* Magic Mirror
* Logger
*
* By Michael Teeuw http://michaelteeuw.nl
* MIT Licensed.
*/
// This logger is very simple, but needs to be extended.
// This system can eventually be used to push the log messages to an external target.
var Log = (function() {
return {
info:... | JavaScript | 0.000001 | @@ -41,13 +41,13 @@
%0A/*
-Magic
+Smart
Mir
@@ -64,71 +64,8 @@
ger%0A
- *%0A * By Michael Teeuw http://michaelteeuw.nl%0A * MIT Licensed.%0A
*/%0A
|
6da180e3b3504ee7d625e98311b8735626f53e70 | Update melvin.js | js/melvin.js | js/melvin.js | /*!
* melvin.io v1.7.1
* Copyright © 2013 Melvin Chien <hello@melvin.io> (http://melvin.io/)
* Licensed under the MIT license
*/
(function() {
$(document).ready(function() {
$(this).foundation();
$("#js-navbar .name a, #js-navbar .top-bar-section a").click(function() {
var topbar;
topbar = $(... | JavaScript | 0 | @@ -39,9 +39,9 @@
201
-3
+4
Mel
|
69207913a784288cbc3ed5a1f251ca4083430c78 | update files | lib/transform.js | lib/transform.js | /**
* Created by nuintun on 2015/4/27.
*/
'use strict';
var fs = require('fs');
var path = require('path');
var util = require('./util');
var through = require('@nuintun/through');
var gutil = require('@nuintun/gulp-util');
var join = path.join;
var relative = path.relative;
/**
* include
*
* @param options
*... | JavaScript | 0.000001 | @@ -3609,16 +3609,21 @@
t.yellow
+.bold
(gutil.p
|
09ee21d74260d3419ecb63fcfb4cc3772bc36d27 | update files | lib/transform.js | lib/transform.js | /*!
* transform
* Version: 0.0.1
* Date: 2017/05/19
* https://github.com/nuintun/gulp-css
*
* This is licensed under the MIT License (MIT).
* For details, see: https://github.com/nuintun/gulp-css/blob/master/LICENSE
*/
'use strict';
var fs = require('fs');
var path = require('path');
var util = require('./uti... | JavaScript | 0.000001 | @@ -3642,16 +3642,19 @@
lk file%0A
+ *%0A
* @para
@@ -4354,31 +4354,8 @@
-if (error) %7B%0A
// s
@@ -4363,32 +4363,53 @@
ow error message
+%0A if (error) %7B
%0A util.
|
e89d1eb860afdf08dc5d847d4aa1b3eb111754ea | make popups dissapear after 4 seconds | js/popUps.js | js/popUps.js | function addNotification(notificationText, typeClass) {
notification = $("#notificationsDiv .notification.prototype").clone();
notification.removeClass("prototype");
notification.find(".text").text(notificationText);
notification.addClass(typeClass);
$("#notificationsDiv").append(notification);
}
| JavaScript | 0.000001 | @@ -305,11 +305,106 @@
ation);%0A
+ window.setTimeout(function() %7B%0A notification.alert().alert(%22close%22);%0A %7D, %0A 5000);%0A
%7D%0A%0A
|
c6c10c75a8b06e5387707f9d350fe50adb9ec927 | Update minified script. | lib/trier.min.js | lib/trier.min.js | !function(n){"use strict";function t(n){function t(){if(i()){if(d(n))return j(n),e();j(n,function(){e()})}}function i(){return u("when")}function u(r){return g(n,r)?(v(n),x(n)?h(n):A(t,b(n)),!1):!0}function e(){u("until")&&w(n)}n=r(n),t()}function r(n){return{count:0,when:i(n.when),until:i(n.until),action:o(n.action),f... | JavaScript | 0 | @@ -51,60 +51,15 @@
()%7Bi
-f(i())%7Bif(d(n))return j(n),e();j(n,function()%7Be()%7D)%7D
+()&&o()
%7Dfun
@@ -83,16 +83,18 @@
u(%22when%22
+,t
)%7Dfuncti
@@ -98,16 +98,18 @@
ction u(
+t,
r)%7Bretur
@@ -114,17 +114,17 @@
urn g(n,
-r
+t
)?(v(n),
@@ -135,17 +135,17 @@
?h(n):A(
-t
+r
,b(n)),!
@@ -155,24 +155,90 @@... |
c68294b3aea028f3b4eee93f6637ae5bbf334032 | Add focus shortcut, comments; Expose parseInput | js/prompt.js | js/prompt.js | const prompt = (() => {
'use strict';
const stdin = document.getElementById('stdin');
const stdout = document.getElementById('stdout');
const history = []; // history of inputs
// --- Functions ---
// Get data from the user on return
function getInput () {
let parsed = parseInput(stdin.value);
... | JavaScript | 0 | @@ -204,16 +204,369 @@
ns ---%0A%0A
+ // Focus the input when the slash (/) key is pressed%0A function focusInput () %7B%0A if (document.activeElement.tagName !== 'INPUT' && document.activeElement.tagName !== 'TEXTAREA') %7B%0A const e = event;%0A const code = e.keyCode %7C%7C e.which;%0A if (code ... |
c7ad79e8dfafafd0adade5e9723846693fb6979d | Make unpublish *actually* work without args | lib/unpublish.js | lib/unpublish.js |
module.exports = unpublish
var registry = require("./utils/registry")
, log = require("./utils/log")
, npm = require("../npm")
, readJson = require("./utils/read-json")
, path = require("path")
unpublish.usage = "npm unpublish <project>[@<version>]"
unpublish.completion = function (args, index, cb) {
var ... | JavaScript | 0.000002 | @@ -470,16 +470,30 @@
thing =
+ args.length ?
args.sh
@@ -508,16 +508,21 @@
lit(%22@%22)
+ : %5B%5D
%0A , p
|
1e9fbd18d2bc9e162e8385ddab9455fee6a4eb9f | consolidate export | lib/utils/app.js | lib/utils/app.js | 'use strict';
import moduleUtils from './module';
import path from 'path';
/**
* Return JSON contents of file name from root
* @param {String} fileName - name of file to read
* @returns {Object} - file contents
*/
function getFileFromRoot(fileName) {
return require(path.join(moduleUtils.getYoPath(), fileName));
... | JavaScript | 0.000002 | @@ -459,20 +459,41 @@
s');%0A%7D%0A%0A
+export default %7B%0A
/**%0A
+
* Gets
@@ -525,32 +525,34 @@
build.config.js%0A
+
* @return %7BStri
@@ -576,28 +576,24 @@
ry path%0A
+
*/%0A
-exports.
+
getAppDi
@@ -593,35 +593,25 @@
etAppDir
- = function
() %7B%0A
+
+
return g
@@ -634,24 +634,30 @@
... |
5fcd952765580e3e7f4cb206e1810028039b2f0a | Add `ss.api.log` unified logging API | lib/utils/log.js | lib/utils/log.js | 'use strict';
/**
* @ngdoc service
* @name utils.log#debug
* @methodOf utils.log:log
* @function
*
* @description
* Debug level logging, silent by default. Override by assigning a
* function that takes the same parameters as console.log. Example:
* ```
* var ss = require('socketstream');
* ss.log... | JavaScript | 0.000038 | @@ -8,16 +8,213 @@
rict';%0D%0A
+/**%0D%0A * @ngdoc service%0D%0A * @name utils.log:log%0D%0A * @function%0D%0A *%0D%0A * @description%0D%0A * Contains method stubs for logging to console (by default) or%0D%0A * whatever logging provider you choose.%0D%0A */%0D%0A%0D%0A
/**%0D%0A *
@@ -439,33 +439,24 @@
console.lo... |
9687fd2c66bfeedf5b92dd7598f5e959ae82d866 | update script | js/script.js | js/script.js | jQuery('#pixad1101d').css('overflow', 'hidden');jQuery('.sticky-box').remove();jQuery('#main').css('overflow', 'hidden');jQuery('.article-body iframe').remove();jQuery('.article-body .adsbygoogle').remove(); | JavaScript | 0.000001 | @@ -188,20 +188,154 @@
bygoogle').remove();
+jQuery('.article-body').removeClass('show-summary');jQuery('.article-header .adsbygoogle').css(%7Bheight: '120px', overflow: 'hidden'%7D);
|
ac702c662a26b2cbbea384add761e5d435f3cae0 | add function parallax | js/script.js | js/script.js | var items = document.querySelectorAll('.parallax');
for (var i = 0; i < items.length; i++ ) {
var item = items[i];
item.classList.add('out');
var parallax = new Parallax(item);
console.log(parallax, item);
}
function Parallax(elem) {
if( !(this instanceof Parallax) ) {
return new Parallax(elem);
}
this.... | JavaScript | 0.000003 | @@ -88,17 +88,16 @@
i++ ) %7B%0A
-%0A
%09var ite
@@ -114,96 +114,19 @@
i%5D;%0A
-%09item.classList.add('out');%0A%0A%09var parallax = new Parallax(item);%0A%09console.log(parallax,
+%0A%09parallax(
item
@@ -140,25 +140,25 @@
unction
-P
+p
arallax(
elem) %7B%0A
@@ -153,196 +153,476 @@
lax(
-el
+it
em) %7B%0A
... |
8e0afd65465ae0154fca6655b9c8056c202ded11 | Update social.js | js/social.js | js/social.js | var social = {
shareToFacebook: function(url) {
FB.ui({
method: 'share',
href: url
}, function(response){});
}
}
| JavaScript | 0.000001 | @@ -12,25 +12,28 @@
= %7B%0A
- shareToFacebook
+%09facebook: %7B%0A%09%09share
: fu
@@ -50,20 +50,19 @@
) %7B%0A
-
+%09%09%09
FB.ui(%7B%0A
@@ -61,57 +61,243 @@
i(%7B%0A
- method: 'share',%0A href: url%0A
+%09%09%09%09method: 'share',%0A%09%09%09%09href: url%0A%09%09 %7D%09, function... |
06aa2d41785b19844b440e0ca3572570b8b823fd | access token managment added | js/social.js | js/social.js |
var access_token = "";
// This is called with the results from from FB.getLoginStatus().
function statusChangeCallback(response) {
console.log('statusChangeCallback');
console.log(response);
// The response object is returned with a status field that lets the
// app know the current login status of the person... | JavaScript | 0 | @@ -2195,26 +2195,8 @@
x(%7B%0A
- type: %22POST%22,%0A
@@ -2222,175 +2222,42 @@
-dataType: %22jsonp%22,%0A jsonp: false,%0A jsonpCallback: %22succ%22,%0A headers: %7B %0A 'Accept': 'application/json',%0A 'Content-
+type:'POST',%0A data
Type
-'
: '
-application/json' %0A %7... |
0b59a3e95fc9cf1b85a30778ded235e9623f271e | Update status.js | js/status.js | js/status.js | sharepointProcessHelpers.status = sharepointProcessHelpers.status || {};
sharepointProcessHelpers.status.config = {
statusButtonsField: 'MoveToStatusButtons', /* field in the Statuses list that contains the status move buttons to show at each status */
};
sharepointProcessHelpers.guidance.getStatuses = function () {... | JavaScript | 0.000002 | @@ -3464,41 +3464,40 @@
%7B%0A
-_spBodyOnLoadFunctionNames.push(%22
+ExecuteOrDelayUntilScriptLoaded(
shar
@@ -3537,14 +3537,22 @@
Statuses
+, %22sp.js
%22);%0A%7D%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.