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 |
|---|---|---|---|---|---|---|---|
0a0bca076d9b85468767a21d42a5fa0f2542e375 | Update storySort Function for Storybook (#5753) | storybook/preview.js | storybook/preview.js | import React, { useState, useEffect } from 'react';
import { hpe } from 'grommet-theme-hpe';
import { Grommet, grommet, Box, Text } from '../src/js';
const CUSTOM_THEMED = 'Custom Themed';
const THEMES = {
hpe,
grommet,
base: {},
};
export const decorators = [
(Story, context) => {
const [state, setState]... | JavaScript | 0 | @@ -1193,18 +1193,669 @@
t: (
-a, b) =%3E %7B
+first, second) =%3E %7B%0A /**%0A * The story sort algorithm will only ever compare two stories%0A * a single time. This means that every story will only ever be either%0A * the %22first%22 parameter OR the %22second%22 parameter, but not both.%0A ... |
0c8e0bdaf38b0c44ce28988708792ffe08cb3ebe | Remove unnecesary require from tweak | subcommands/tweak.js | subcommands/tweak.js | 'use strict';
const fs = require('fs'),
processors = require('../processors.js');
module.exports = {
help: 'Run a script against the objects in the loaded data, outputting its results.',
options: {
script: {
position: 1,
help: 'Script to run against the objects in the loa... | JavaScript | 0 | @@ -18,34 +18,8 @@
nst
-fs = require('fs'),%0A
proc
|
4b183071e234fa86deedfe79d71be5e9253b4bab | test path | Gruntfile.js | Gruntfile.js | /*
* grunt-ssis
* https://github.com/lee/grunt-ssi
*
* Copyright (c) 2015 Lee Goddard
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',
'tasks/*.js',
'<%= node... | JavaScript | 0.000002 | @@ -705,16 +705,20 @@
ixtures/
+foo/
1.shtml'
|
e365e19687c823fa0878b535d10a3a2658b27391 | Add Jade to Grunt config as empty: | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.file.defaultEncoding = 'utf8';
grunt.loadNpmTasks('grunt-contrib-requirejs');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-yui-compressor');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-git-describe');
grunt.initConf... | JavaScript | 0 | @@ -1190,32 +1190,63 @@
_gfm: 'empty:',%0A
+ cm_jade: 'empty:',%0A
cm_r
|
c9710f6d0bc24e3c5d85a3ef924045378a09e19a | use onlyLocals option instead of css-loader/locals (#1033) | packages/razzle-plugin-scss/index.js | packages/razzle-plugin-scss/index.js | 'use strict';
const autoprefixer = require('autoprefixer');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const PostCssFlexBugFixes = require('postcss-flexbugs-fixes');
const paths = require('razzle/config/paths');
const defaultOptions = {
postcss: {
dev: {
sourceMap: true,
ident:... | JavaScript | 0 | @@ -2373,15 +2373,8 @@
ader
-/locals
'),%0A
@@ -2387,32 +2387,50 @@
options:
+ Object.assign(%7B%7D,
options.css%5Bcon
@@ -2439,16 +2439,37 @@
antEnv%5D,
+ %7BonlyLocals: true%7D),
%0A
|
e84fea65565b4468bcb4b5af1d4c5050723efdb0 | Fix #133 | Gruntfile.js | Gruntfile.js | var fs = require('fs'),
path = require('path'),
browserify = require('browserify'),
Jasmine = require('jasmine');
module.exports = function(grunt) {
var WEB_ROOT = 'public',
BUILD_DIR = path.join(WEB_ROOT,'js'),
DIST_DIR = 'dist';
// Project configuration.
grunt.initConfig({
pkg... | JavaScript | 0.000001 | @@ -2060,16 +2060,17 @@
data',%22*
+*
%22),%0A
|
15c6f23ff43b1dcc1056c9d63bd7df10b79e65be | Create sourceMap for minified js | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
// 1. All configuration goes here
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
igv: {
src: [
'js/**/*.js',
'vendor/inflate.js',
'vendor/zlib_and... | JavaScript | 0 | @@ -483,16 +483,49 @@
e: false
+,%0A sourceMap: true
%0A
|
7d63e35e201e74733354672f5d55d0d7da2b72be | update node-webkit to v0.10.5 | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
less: {
development: {
files: {
'www/css/index.css': 'src/less/index.less'
}
}
},
nodewebkit: {
options: {
version: '0.9.1',
... | JavaScript | 0 | @@ -311,11 +311,12 @@
'0.
-9.1
+10.5
',%0A
|
334f379ef14f9ac3a1a32f35ef2666be92b59d20 | change gruntfile to fix css import and minification | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// ===========================================================================
// CONFIGURE GRUNT ===========================================================
// ===========================================================================
grunt.initConfig({
// get the conf... | JavaScript | 0 | @@ -3673,36 +3673,39 @@
cssmin: %7B%0A
-dist
+options
: %7B%0A file
@@ -3704,109 +3704,107 @@
-files: %5B%7B%0A expand: true,
+shorthandCompacting: false,%0A roundingPrecision: -1
%0A
+%7D,%0A
-cwd: 'build/css',%0A src: %5B'*.css', '!*.min.css'%5D,
+ target: %... |
8c13f0f6f49a082c3d1c96e28e5ef2791d0fe04e | Fix jasmine conf | Gruntfile.js | Gruntfile.js | /* jshint node: true */
"use strict";
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
simplemocha: {
options: {
timeout: 3000,
ui: "bdd",
reporter: "spec"
},
all: { src: "test/**/*.js" }... | JavaScript | 0.999921 | @@ -468,17 +468,8 @@
pec/
-jsverify/
*.js
|
bed44e2e362125a5b8916ce61b64bda49653ffc9 | Test firefox on Windows 10. | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
var browsers = [{
browserName: 'firefox',
version: '19',
platform: 'XP'
}, {
browserName: 'googlechrome',
platform: 'OS X 10.11'
}, {
browserName: 'googlechrome',
platform: 'linux'
}, {
browserName: 'internet explorer',
platform: 'WIN8',
... | JavaScript | 0 | @@ -80,27 +80,8 @@
x',%0A
- version: '19',%0A
@@ -91,18 +91,26 @@
tform: '
-XP
+Windows 10
'%0A %7D, %7B
|
d776faa401ec98b62f1b06094ffb9095846c23c5 | Update Gruntfile.js | Gruntfile.js | Gruntfile.js | /*
* grunt-po2mo
* https://github.com/MicheleBertoli/grunt-po2mo
*
* Copyright (c) 2013 Michele Bertoli
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',
'tasks/*.js',... | JavaScript | 0 | @@ -641,32 +641,40 @@
test/fixtures/fr
+/message
.po',%0A de
@@ -680,24 +680,32 @@
est: 'tmp/fr
+/message
.mo',%0A
@@ -792,34 +792,33 @@
src: 'tmp/f
-ixtures/fr
+r/message
.po',%0A
@@ -832,20 +832,95 @@
'tmp/fr
-.mo'
+/message.mo'%0A %7D,%0A multiple: %7B%0A src: %5B'test/fi... |
eaab5715d7efb3ed8b2f3a98e6c606a5a6034538 | delete qunit | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Metadata.
pkg: grunt.file.readJSON('resizeChecker.jquery.json'),
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= pkg.h... | JavaScript | 0.000022 | @@ -2139,17 +2139,8 @@
nt',
- 'qunit',
'cl
|
15be126928a51d33b8fec14ed1da1023c4f99619 | Use readable names for tests | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
mochaTest: {
test: {
src: 'test/**/*.js'
}
}
});
var aliases = [
'fn',
'fun',
'func',
'lam'
];
grunt.registerTask('build', function() {
var macro = grunt.file.read('./src/macro.js');
var regex = /MACR... | JavaScript | 0.000001 | @@ -1343,16 +1343,17 @@
modules:
+
%5BmoduleC
@@ -1355,16 +1355,44 @@
duleCtx%5D
+,%0A readableNames: true,
%0A %7D).
|
f5a24aa77fa329fc548fa8314c4d0c6b6cd91617 | Add `index.js` | Gruntfile.js | Gruntfile.js | /**
* Author: Umayr Shahid <umayrr@hotmail.com>,
* Created: 20:05, 29/06/15.
*/
'use strict';
module.exports = function (grunt) {
require('grunt-timer').init(grunt, {
deferLogs: true,
friendlyTime: true,
color: 'blue'
});
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshin... | JavaScript | 0.000001 | @@ -479,32 +479,29 @@
',%0A '
-src/**/*
+index
.js'%0A %5D
@@ -785,16 +785,13 @@
'
-src/**/*
+index
.js'
|
1919ee25b448e443bdcaf7e1c2f47b21c520eff7 | Use current rep | Gruntfile.js | Gruntfile.js | /*
* Jappix Me
* Test tasks (uses GruntJS)
*
* Copyright 2014, FrenchTouch Web Agency
* Author: Valérian Saliou <valerian@valeriansaliou.name>
*/
module.exports = function(grunt) {
// Project configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// Task: CSSLint
csslint:... | JavaScript | 0 | @@ -360,17 +360,16 @@
/*
-
%0A
@@ -1051,17 +1051,16 @@
'.
-.
/css/*.c
@@ -1064,16 +1064,16 @@
*.css',%0A
+
%0A
@@ -1097,33 +1097,32 @@
es%0A '!.
-.
/app/stylesheets
@@ -1145,17 +1145,16 @@
'!.
-.
/app/sty
@@ -1248,17 +1248,16 @@
les: %5B'.
-.
/js/*.js
@@ -1326,17 +13... |
092fc9fe656c6d70a22149f2b7c23cb1cefbb981 | Fix case in file reference | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
replace: {
// expose a couple of methods so they can be unit-tested
exposeTestMethods: {
src: ['src/*.js'],
overwrite: true,
replacements: [{
from: /^(\/(\*)*TESTS.*$)/gm,
to: '/$1'
}]
},
// hide private methods
hideTestMe... | JavaScript | 0 | @@ -1942,25 +1942,25 @@
tensions/pdf
-m
+M
ake.js:pdfMa
|
34022c2dde3caec9dbb2ab115f2f77dadc860e50 | Add chrome section to karma | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function (grunt) {
var path = require('path');
/**
* Gets the index.html file from the code coverage folder.
*
* @param {!string} folder The path to the code coverage folder.
*/
function getCoverageReport (folder) {
var reports = grunt.file.expand... | JavaScript | 0 | @@ -2893,32 +2893,206 @@
%0A %7D,%0A
+ chrome: %7B%0A configFile: 'test/karma.conf.js',%0A detectBrowsers: %7B%0A enabled: false%0A %7D%0A %7D,%0A
ci:
|
e1959bd3229ede3905ca7a85c48d5799c7588f49 | remove ie11 from test coverage | Gruntfile.js | Gruntfile.js | 'use strict';
var conf = require('./files.conf.js');
module.exports = function(grunt) {
// GRUNT CONFIGURATION
grunt.initConfig({
pkg: conf.pkg,
jshint: {
files: [
'*.js',
'src/**/*.js',
'*.json',
'.jshintrc',
... | JavaScript | 0 | @@ -3503,24 +3503,16 @@
IE10,BS_
-IE11,BS_
ANDROID_
|
59656824278b5efb2108fdf7d579266cfb1e0f5e | Update require shims | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
var
pkg = grunt.file.readJSON('package.json')
;
// project configuration
grunt.initConfig({
pkg: pkg,
jshint: {
all: [
'Gruntfile.js',
'src/js/src/**/*.js'
],
options: {
'boss': true,
'curly': true,
'eqeqeq': true,
'eqnull': true,
'expr... | JavaScript | 0 | @@ -1459,24 +1459,118 @@
r'%0A%09%09%09%09%09%09%7D,%0A
+%09%09%09%09%09%09babysitter: %7B%0A%09%09%09%09%09%09%09deps: %5B'backbone'%5D,%0A%09%09%09%09%09%09%09exports: 'Backbone.BabySitter'%0A%09%09%09%09%09%09%7D,%0A
%09%09%09%09%09%09marion
@@ -1598,16 +1598,30 @@
%5B'wreqr'
+, 'babysitter'
%5D,%0A%09%09%09%09%... |
f8af711896dd4c1f0fd9fbbdb988250f20ee8429 | Exclude helpers/ from nodeunit | Gruntfile.js | Gruntfile.js | /*
* grunt
* http://gruntjs.com/
*
* Copyright (c) 2013 "Cowboy" Ben Alman
* Licensed under the MIT license.
* https://github.com/gruntjs/grunt/blob/master/LICENSE-MIT
*/
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
nodeunit: {
all: ['tests/**.js'... | JavaScript | 0.000001 | @@ -335,16 +335,37 @@
ures/**'
+, '!tests/helpers/**'
%5D%0A %7D,
|
a3f9b0813465655cf2488f74853b1ec1a14489ba | Reorder release tasks | Gruntfile.js | Gruntfile.js | "use strict";
module.exports = function (grunt) {
grunt.initConfig({
bump: {
options: {
files: ["package.json"],
commit: true,
commitMessage: "Release %VERSION%",
commitFiles: ["package.json"],
createTag: true,
... | JavaScript | 0 | @@ -1187,32 +1187,16 @@
%5B%22bump%22,
- %22shell:heroku%22,
%22shell:
@@ -1209,32 +1209,48 @@
%22shell:publish%22
+, %22shell:heroku%22
%5D);%0A grunt.re
@@ -1284,38 +1284,36 @@
:minor%22, %22shell:
-heroku
+push
%22, %22shell:push%22,
@@ -1300,32 +1300,35 @@
push%22, %22shell:pu
+bli
sh%22, %22shell:publ... |
d9e47daf67a68942bcca12cb6c32c088d512cdcf | add syncRecords implementation | Gruntfile.js | Gruntfile.js | var _ = require('underscore');
module.exports = function(grunt) {
'use strict';
function makeTestArgs(testFile) {
return ['-u exports --recursive -t 10000 ./test/setup.js', testFile].join(' ');
}
function makeUnits(testArgString) {
return [test_runner, testArgString].join(' ');
}
function makeUn... | JavaScript | 0.000001 | @@ -1439,17 +1439,16 @@
lers.js'
-,
%0A %5D;%0A
|
f85a0fce36db2047868b81131b6290fc65136a67 | add charset=UTF-8 to Content-Type in cdn | Gruntfile.js | Gruntfile.js | var fs = require('fs');
var pkg = require('./package');
var cssPrefix = require('css-prefix');
var minor_version = pkg.version.replace(/\.(\d)*$/, '');
var major_version = pkg.version.replace(/\.(\d)*\.(\d)*$/, '');
var path = require('path');
function rename_release (v) {
return function (d, f) {
var dest = p... | JavaScript | 0.000007 | @@ -3988,16 +3988,82 @@
e=300',%0A
+ 'Content-Type': 'application/javascript; charset=UTF-8'%0A
|
0a316e2a304bfcd4cf5cd78c89c8d11c51687328 | Correct error in Grunt register agent task | Gruntfile.js | Gruntfile.js | 'use strict';
var utils = require('./lib/utils'),
nconf = require('nconf');
nconf.file({ file: 'gebo.json' });
var db = require('./schemata/gebo')(nconf.get('email')),
action = require('./actions/basic')(nconf.get('email'));
module.exports = function (grunt) {
// Project configuration.
grunt.initCo... | JavaScript | 0.000001 | @@ -7,17 +7,16 @@
trict';%0A
-%0A
var util
@@ -3843,16 +3843,27 @@
%7B
+ content: %7B
profile
@@ -3869,16 +3869,18 @@
e: agent
+ %7D
%7D).%0A
|
f8891476c4be26833e118f4984d0637b422148a8 | fix removing blank characters in grunt-combine | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function (grunt) {
grunt.util.linefeed = '\n';
// Project configuration.
grunt.initConfig({
// Metadata.
pkg: grunt.file.readJSON('package.json'),
banner: {
full: '/*! <%= pkg.title || pkg.name %> v<%= pkg.version %> <%= grunt.template.tod... | JavaScript | 0.011792 | @@ -1219,10 +1219,16 @@
t%5C2;
-%5Cs
+%5B %5Ct%5D*%5Cn
*/g,
|
7d5178507d0e5f8f38cddb28b52dd6a8f27b06c9 | Add clean task | Gruntfile.js | Gruntfile.js | /*
* svg_fallback
*
*
* Copyright (c) 2014 yoksel
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Configuration to be run (and then tested).
svg_fallback: {
options: {
debu... | JavaScript | 0.999997 | @@ -192,16 +192,69 @@
nfig(%7B%0A%0A
+ clean: %7B%0A temp: %5B%22temp%22%5D%0A %7D,%0A
@@ -533,47 +533,33 @@
-// Actually load this plugin's task(s).
+grunt.loadTasks('tasks');
%0A
@@ -565,36 +565,53 @@
grunt.load
+Npm
Tasks('
-tasks
+grunt-contrib-clean
');%0A%0A gru... |
37a225ffd4699615fe78214015f288fa77da54ef | use window before Transifex to prevent errors | app/assets/javascripts/map/presenters/LayersNavPresenter.js | app/assets/javascripts/map/presenters/LayersNavPresenter.js | /**
* The LayersNavPresenter class for the LayersNavView.
*
* @return LayersNavPresenter class.
*/
define([
'underscore',
'mps',
'map/presenters/PresenterClass',
'map/services/LayerSpecService'
], function(_, mps, PresenterClass, layerSpecService) {
'use strict';
var LayersNavPresenter = PresenterClas... | JavaScript | 0 | @@ -469,16 +469,23 @@
if (!!
+window.
Transife
@@ -489,32 +489,39 @@
ifex) %7B%0A
+window.
Transifex.live.o
@@ -629,16 +629,23 @@
+window.
Transife
|
2a5c56794ba90d34efff284e4771b5922f70c1e4 | Add braintree_error script into manifest | app/assets/javascripts/solidus_paypal_braintree/frontend.js | app/assets/javascripts/solidus_paypal_braintree/frontend.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.000001 | @@ -395,16 +395,70 @@
ile.%0A//%0A
+//= require solidus_paypal_braintree/braintree_errors%0A
//= requ
|
2af90912a08086e97e1cdce6785857703724414f | Update grunt tasks for heroku | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
NODE_MODULES_DIR: 'node_modules/',
STATIC_DIR: 'saleor/static/',
webpack: {
default: require('./webpack.config')
},
browserSync: {
dev: {
bsFiles: {
src: [
"<%= STATIC_DIR %>/css/*.css",
"<%... | JavaScript | 0 | @@ -3302,23 +3302,15 @@
%22, %22
-babel%22, %22uglify
+webpack
%22%5D);
|
1396a1392e1497ed2a08e8bba5783409eb1aa8f2 | modify grunt task copy.image | Gruntfile.js | Gruntfile.js | require("dotenv").config();
var sprintf = require("sprintf-js").sprintf;
module.exports = function(grunt) {
var forProduction = (function() {
var mode = process.env.EXTENSION_MODE || "development";
return mode === "production";
})();
var dist = (function() {
var baseDir = process.env.EXTENSION_DIST || ... | JavaScript | 0.000001 | @@ -2244,16 +2244,68 @@
src:
+ %5B%0A %22image/**/*.gif%22,%0A
%22image/
@@ -2313,16 +2313,30 @@
*/*.png%22
+%0A %5D
,%0A
|
55f901d3e8c4a7310954842b5ceed88d02917ba6 | rebuild added to speed up development | Gruntfile.js | Gruntfile.js | module.exports = function( grunt ) {
'use strict';
// helper function to load task configs
function loadConfig( path, config ) {
var glob = require( 'glob' );
var object = {}
, key;
glob.sync('*', { cwd: path })
.forEach(function( option ) {
... | JavaScript | 0 | @@ -504,17 +504,16 @@
fig = %7B%0A
-%0A
@@ -553,17 +553,16 @@
.json')%0A
-%0A
,
@@ -578,17 +578,16 @@
ess.env%0A
-%0A
,
@@ -607,17 +607,16 @@
dirname%0A
-%0A
%7D;%0A%0A
@@ -1304,32 +1304,95 @@
serify:test' %5D);
+%0A grunt.registerTask('rebuild' , %5B 'clean', 'build' %5D);
... |
7b40f9f5876f20cce2daee290277c343c10e4d50 | clean up gruntfile | Gruntfile.js | Gruntfile.js | var util = require('./config/grunt/utils.js');
var files = require('./config/files');
module.exports = function (grunt) {
var APP_VERSION = util.getVersion();
// Load grunt tasks automatically
require('load-grunt-tasks')(grunt);
// Time how long tasks take.
require('time-grunt')(grunt);
var ... | JavaScript | 0.000001 | @@ -5023,104 +5023,8 @@
%25%3E'%0A
- %7D,%0A open:%7B%0A command: 'node sample_app/scripts/web-server'%0A
|
c2a6b5c2adf07fa2b278c6d5ceebd1a36f342ac8 | disable sourcemap of css because .scss is not in public | Gruntfile.js | Gruntfile.js | 'use strict';
var fs = require('fs');
var path = require('path');
var glob = require('glob');
var through = require('through');
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
require('time-grunt')(grunt);
function globalJQ(rules) {
return function(file) {
var filename = file.r... | JavaScript | 0.000001 | @@ -1423,19 +1423,20 @@
rceMap:
-tru
+fals
e%0A
@@ -1899,16 +1899,20 @@
: %5B'sass
+:dev
'%5D%0A
@@ -2666,24 +2666,40 @@
sass: %7B%0A
+ dist: %7B%0A
option
@@ -2707,24 +2707,26 @@
: %7B%0A
+
+
style: 'comp
@@ -2731,32 +2731,34 @@
mpressed'%0A
+
%7D,%0A dist:... |
cb1bec8ee21af24bcd1b46b7d99f52b64934445a | Change copyright holder to `Symantec` | Gruntfile.js | Gruntfile.js | 'use strict';
/* jshint camelcase: false */
module.exports = function ( grunt ) {
require( 'load-grunt-tasks' )( grunt );
require( 'time-grunt' )( grunt );
// Define the configuration for all the tasks
grunt.initConfig( {
pkg: grunt.file.readJSON( 'package.json' ),
jshint: {
... | JavaScript | 0.000004 | @@ -2233,38 +2233,52 @@
+%0A '
-ZeusJS
+Symantec Corporation
%5Cn' +%0A
@@ -3040,14 +3040,28 @@
'
-ZeusJS
+Symantec Corporation
%5Cn'
|
f84fa6bb38757e7e7e563dc85e0d37975342fd21 | include license | Gruntfile.js | Gruntfile.js | /*!
* Zafree's Gruntfile
* http://zafree.github.io/salt
* Copyright 2014-2015 Zafree
* Licensed under MIT (https://github.com/zafree/salt/blob/master/LICENSE)
*/
module.exports = function(grunt) {
'use strict';
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
ba... | JavaScript | 0.000001 | @@ -483,24 +483,109 @@
hor %25%3E%5Cn' +%0A
+ ' * Licensed under %3C%25= pkg.license.type %25%3E (%3C%25= pkg.license.url %25%3E)%5Cn' +%0A
|
9ab89d9e422381cf98e305703b967cd8f6f647b7 | clean tasks | Gruntfile.js | Gruntfile.js |
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
eslint: {
target: ['Gruntfile.js', 'lib/**/*.js', 'routes/**/*/js', 'public/javascripts/*.js', 'test/**/*.js']
},
mochaTest: {
test: {
options: {... | JavaScript | 0.000342 | @@ -1,9 +1,8 @@
-%0A
module.e
@@ -400,21 +400,21 @@
%7D,%0A
-watch
+shell
: %7B%0A
@@ -419,70 +419,405 @@
-// files: %5B'%3C%25= eslint.target %25%3E'%5D,%0A // tasks: %5B'eslint'%5D
+templateSource: 'views/client-side/*.pug',%0A templateOutput: 'public/javascripts/template',%0A options... |
b89f33c27fe8efab95436414b625ee553cc45ac9 | Remove the copyright header | Gruntfile.js | Gruntfile.js | /**
* grunth-cli
* https://github.com/EE/grunth-cli
*
* Author Michał Gołębiowski <m.goleb@gmail.com>
* Copyright Laboratorium EE (http://laboratorium.ee/en)
* Licensed under the MIT license.
*/
'use strict';
const assert = require('assert');
module.exports = function (grunt) {
require('time-grunt')(grunt... | JavaScript | 0.000005 | @@ -1,207 +1,4 @@
-/**%0A * grunth-cli%0A * https://github.com/EE/grunth-cli%0A *%0A * Author Micha%C5%82 Go%C5%82%C4%99biowski %3Cm.goleb@gmail.com%3E%0A * Copyright Laboratorium EE (http://laboratorium.ee/en)%0A * Licensed under the MIT license.%0A */%0A%0A
'use
|
bbb0d4f0e892cefa8aaf4cb21c442745f567cdef | improve files plugin re #386 | component/ckeditor/resources/media/ckeditor/extras/files/plugin.js | component/ckeditor/resources/media/ckeditor/extras/files/plugin.js | var iframeWindow = null;
CKEDITOR.plugins.add('files',
{
requires: [ 'iframedialog' ],
icons: 'images',
init: function( editor )
{
var height = 480, width = 750;
CKEDITOR.dialog.addIframe(
'filesDialog',
'files',
... | JavaScript | 0 | @@ -3830,17 +3830,50 @@
ication%0A
-%0A
+ if(element)%7B%0A
@@ -3880,24 +3880,27 @@
+
if ( element
@@ -3976,16 +3976,20 @@
+
return %7B
@@ -4024,16 +4024,42 @@
_OFF %7D;%0A
+ %7D%0A
|
a2400daa556852622e0944d46fc47ca8d6f4aa67 | Use .jshintrc instead of the hardcoded JSHint configuration in Gruntfile.js. | Gruntfile.js | Gruntfile.js | // Gruntfile
module.exports = function(grunt) {
'use strict'
require('load-grunt-tasks')(grunt);
var baseJsSourcePath = 'src/js/',
fileToBuild = 'dist/js/' + 'proact.js';
grunt.initConfig({
concat: {
dist: {
src: '<%= customBuild.files %>',
dest: fileToBuild
}
},
... | JavaScript | 0 | @@ -1110,506 +1110,29 @@
-curly: true,%0A multistr: true,%0A quotmark: 'single',%0A camelcase: false,%0A bitwise: false,%0A unused: true,%0A eqeqeq: true,%0A indent: 2,%0A immed: true,%0A latedef: true,%0A newcap: true,%0A noarg: true,%0... |
3b638b244656ee0b50f649e6b94c99158c491739 | set graphite back to default backend | exampleConfig.js | exampleConfig.js | /*
Required Variables:
port: StatsD listening port [default: 8125]
Graphite Required Variables:
(Leave these unset to avoid sending stats to Graphite.
Set debug flag and leave these unset to run in 'dry' debug mode -
useful for testing statsd clients without a Graphite server.)
graphiteHost: ... | JavaScript | 0.000001 | @@ -2542,24 +2542,24 @@
ackends/
-repea
+graphi
te
-r
%22 %5D%0A, re
|
77066a2fdd50f06a7e7e1aae722b095bccfd03ee | Update Gruntfile | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
modernizr: {
dist: {
"parseFiles": true,
"customTests": [],
"devFile": "node_modules/modernizr/src/Modernizr.js",
"dest": "assets/dist/js/custom-modernizr.min.js",
... | JavaScript | 0.000001 | @@ -1,12 +1,47 @@
+var webpack = require('webpack');%0A%0A
module.expor
@@ -63,17 +63,16 @@
runt) %7B%0A
-%0A
grun
@@ -733,14 +733,14 @@
e: %22
-packed
+bundle
.js%22
@@ -1231,32 +1231,265 @@
%7D
+,%0A plugins: %5B%0A new webpack.optimize.UglifyJsPlugin(%7B%0A ... |
1228efb034f49bdea3f6c32f22aa9b980ac417fc | update gruntfile | Gruntfile.js | Gruntfile.js |
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.initConfig({
paths: {
src: {
app: {
... | JavaScript | 0.000001 | @@ -1048,32 +1048,234 @@
%5D,%0A
+ optout: %5B%0A 'src/index.js',%0A 'src/utils.js',%0A '%3C%25= paths.src.app.optout %25%3E',%0A 'src/init.js'%0A %5D,%0A
@@ -1273,32 +1273,32 @@
... |
6944ed9c85e4dfcbb3f616de99bf0167b81093c9 | modify tasks | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
var os = require('os');
var interfaces = os.networkInterfaces();
var addresses = [];
for (var k in interfaces) {
for (var k2 in interfaces[k]) {
var address = interfaces[k][k2];
if (address.family === 'IPv4' && !address.internal) {
... | JavaScript | 0.000012 | @@ -1548,20 +1548,20 @@
'
-.tmp
+dist
/index.h
@@ -1567,25 +1567,19 @@
html': '
-app/marku
+.tm
p/index.
@@ -1589,65 +1589,8 @@
l',%0A
- '.tmp/ui.html': 'app/markup/ui.html'%0A
@@ -2600,20 +2600,16 @@
/markup/
-src/
*.html',
@@ -2621,29 +2621,18 @@
/markup/
-src/_includes
+**
/*... |
64fa6d38223888f7a5f7daa60015642a99a9a404 | Fix mincss target description | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-watch');
var js = [
'static/js/jquery-2.1.3.js',
'static/js/chess.js',
'static/js/chessboard-0.3.0.js',
'static/js/client.js'
];
var ... | JavaScript | 0.012956 | @@ -827,19 +827,69 @@
files:
-css
+%7B%0A 'static/css/style.min.css': css%0A %7D
%0A %7D
|
00165ef7c923e04d813a698ef52e44d6a49a0cef | return non-string null as linkage | src/formatter-jsonapi/lib/link.js | src/formatter-jsonapi/lib/link.js | import _ from 'lodash';
import relate from './relate';
export default function (model, opts={}) {
var links = {};
var primaryType = model.constructor.typeName;
var linkWithoutIncludes = opts.linkWithoutInclude || [];
var linkWithIncludes = opts.linkWithInclude || [];
var exporter = opts.exporter;
var topL... | JavaScript | 0.02237 | @@ -2892,14 +2892,12 @@
e =
-'
null
-'
;%0A
|
2c83d814f9a3403e630b79272f715755c14e02ae | Copy lib/ and config.js to build/ | Gruntfile.js | Gruntfile.js | /*
* Copyright (C) 2014 James Ye, Simon Shields
*
* This file is part of SBHS-Timetable-Node.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, o... | JavaScript | 0 | @@ -2488,14 +2488,24 @@
', '
-secret
+lib/**', 'config
.js'
|
1b8575331ba9cfe7b8306e2b7498f93afc5ca5a7 | fix environment option | tasks/sails_tasks.js | tasks/sails_tasks.js | /*
* grunt-sails-tasks
* https://github.com/tobalsgithub/grunt-sails-tasks
*
* Copyright (c) 2015 TC
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Please see the Grunt documentation for more information regarding task
// creation: http://gruntjs.com/creating-tasks... | JavaScript | 0.000003 | @@ -930,20 +930,20 @@
nt:
-this
+grunt
.option
-s
('en
|
aef9fecf7b76c2be96546bc2d90ccacc426fbfee | remove console.log | analysis/reports/hourly/js/app.js | analysis/reports/hourly/js/app.js | (function (ReportFilters, Errors, HourlyCalendar, HourlyLine) {
var App = {
cfg: {
sdate: '#sdate',
edate: '#edate',
legend: '#legend',
welcome: '#welcome',
loading: '#loading',
errorTarget: '#error-... | JavaScript | 0.000006 | @@ -3654,60 +3654,8 @@
');%0A
- console.log('test', linkId, chartId)
%0A
@@ -6636,55 +6636,8 @@
) %7B%0A
- console.log('response', response);%0A
|
7becf373384cbe3384c7053eca6724aa8123097b | Create the new component in the Docker image | public/visifile_drivers/services/serverDockerStuff.js | public/visifile_drivers/services/serverDockerStuff.js | async function serverDockerStuff(args) {
/*
description("The VB6 style docker control communicates with this")
base_component_id("server_docker_stuff")
load_once_from_file(true)
only_run_on_server(true)
*/
var message = ""
var msg = function(m) {
console.log(m)
message += (m + "\n")
}
... | JavaScript | 0.000002 | @@ -3370,16 +3370,146 @@
on() %7B%22%0A
+extraFns += %22await evalLocalSystemDriver('%22 + args.app_id + %22', path.join(__dirname, '../src/extraComp.js'),%7Bsave_html: true%7D)%22%0A
extraFns
|
c7d3b971ed83703962e916842f747f841ca8d40f | add error handle on analysis function | analysis/index.js | analysis/index.js | const Services = require('../services/');
const tagoSocket = require('../comum/tago_socket');
function stringify_msg(msg) {
return (typeof msg === 'object' && !Array.isArray(msg) ? JSON.stringify(msg) : String(msg));
}
class Analysis {
constructor(analysis, token) {
this._token = token;
this._analysis ... | JavaScript | 0.000001 | @@ -786,48 +786,368 @@
%7D;%0A
- this._analysis(context, data %7C%7C %5B%5D);
+%0A if (!this._analysis %7C%7C typeof this._analysis !== 'function') %7B%0A throw 'Invalid analysis function';%0A %7D%0A%0A if (this._analysis.constructor.name === 'AsyncFunction') %7B%0A this._analysis(context, data ... |
f1d04dc041a465969791fc19b3ac53388322e592 | remove cleanup task. #226 | Gruntfile.js | Gruntfile.js | var versionFiles = [
'package.json',
'bower.json',
'public/humans.txt'
];
var jsFilesToCheck = [
'Gruntfile.js',
'app.js',
'public/js/main.js',
'archives/**/*.js',
'countdown/**/*.js',
'test/archives/*.js'
];
module.exports = function(grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file... | JavaScript | 0.000152 | @@ -2076,662 +2076,8 @@
);%0A%0A
- grunt.registerTask('cleanup', 'Remove past events in blacklist and whitelist', function() %7B%0A var cleanup = require('./tasks/cleanup');%0A var blacklistEventsFilepath = __dirname + '/config/blacklistEvents.json';%0A var whitelistEventsFilepath = __dirname + '/config/w... |
b1132cf57205913621a5b02ea73b959ec22baf2f | Read computed styles instead of element styles when toggling folders | antxetamedia/static/js/folders.js | antxetamedia/static/js/folders.js | (function() {
function toggleFold(event) {
var content = this.querySelector('.folderContent');
content.style.display = content.style.display !== 'none' ? 'none' : 'block';
}
var folders = document.querySelectorAll('.folder');
Array.forEach(folders, function(folder) {
folder.onclick = toggleFold;
... | JavaScript | 0 | @@ -122,29 +122,48 @@
splay =
+window.getComputedStyle(
content
-.style
+)
.display
|
f4ac183e473cca141d1b94ffac68e269a8beaf06 | call with rank >= 3 | player.js | player.js | 'use strict';
const getRanking = require('./ranking');
let gameState, myplayer, folded;
module.exports = {
VERSION: "Kickstarter",
bet_request: function(game_state, bet) {
new Promise((resolve, reject) => {
folded = false;
gameState = game_state;
myplayer = game_state.players[game_sta... | JavaScript | 0 | @@ -1544,24 +1544,74 @@
malRaise();%0A
+ %7D else if(rank %3E= 3) %7B%0A return call();%0A
%7D else %7B
|
dda53889f54a51ef99f3e48ee71ea86fd982cf05 | fix test-browser grunt task. | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
var testServer = require("./spec/test-server.js");
grunt.initConfig({
bower_concat: {
all: {
dest: "spec/browser-dependencies.js"
}
},
jasmine: {
src: ["spec/browser-dependencies.js", "spec/resources.js", "wadl-client.js"],
options: {
... | JavaScript | 0.000002 | @@ -1001,16 +1001,17 @@
owser%22,
+%5B
%22bower_c
@@ -1027,16 +1027,17 @@
jasmine%22
+%5D
);%0A gru
|
7ec7f8a2b29e15f7a5067cf1c514034dcc3ec7e2 | Add schema validation support for arbitrary top-level usermeta object. | packages/vega-parser/schema/index.js | packages/vega-parser/schema/index.js | import autosize from './autosize';
import axis from './axis';
import background from './background';
import bind from './bind';
import data from './data';
import encode from './encode';
import expr from './expr';
import layout from './layout';
import legend from './legend';
import mark from './mark';
import marktype fr... | JavaScript | 0 | @@ -1307,24 +1307,66 @@
t%22: %22uri%22%7D,%0A
+ %22usermeta%22: %7B%22type%22: %22object%22%7D,%0A
%22c
|
f76b8475fbcc9f0cb188c7e8373f0f211c9a4b03 | use fast click | static/index.js | static/index.js | import React from 'react'
import Routes from '../components/_routes/'
import Router from 'react-router'
import data from '../components/_routes/example/data.js'
Router.run(Routes, Router.HistoryLocation, (Handler) => {
React.render(<Handler {...data} />, document.getElementById('app'))
})
| JavaScript | 0.000001 | @@ -97,16 +97,50 @@
router'%0A
+import FastClick from 'fastclick'%0A
import d
@@ -189,16 +189,88 @@
ta.js'%0A%0A
+window.addEventListener('load', () =%3E FastClick.attach(document.body))%0A%0A
Router.r
|
77185ad01b4a73e76ac1fc053cff7c209f480186 | put logging filters in place | static/index.js | static/index.js | var socket = io.connect();
var streamOut = document.querySelector('#stream-output');
var statusElement = document.querySelector('#status')
var firstStream = true;
var machine = {};
socket.on('connect', function() {
var hash = window.location.hash;
if (hash) {
firstStream = true;
hash = hash.slice(1);
v... | JavaScript | 0.000001 | @@ -133,50 +133,290 @@
atus
-')%0Avar firstStream = true;%0Avar machine = %7B
+-text');%0Avar filterRegex = new RegExp('', 'g');%0Avar firstStream = true;%0Avar machine = %7B%7D;%0A%0Avar filterLogs = function(logs) %7B%0A var filterLogs = %5B%5D;%0A for (var i = 0; i %3C logs.length; i++) %7B%0A if (filterRegex.... |
f31591fa1e4fa13bb2d85523f98e6590116326bb | Rename Decoder.decodeNextString_ to decodeNextOctetSequence_ | header_decoder.js | header_decoder.js | 'use strict';
// emitFunction will be called with the name and value of each header
// encountered while decoding.
function Decoder(buffer, encodingContext, emitFunction) {
this.buffer_ = buffer;
this.i_ = 0;
this.encodingContext_ = encodingContext;
this.emitFunction_ = emitFunction;
}
Decoder.prototype.hasMo... | JavaScript | 0 | @@ -1520,22 +1520,29 @@
codeNext
-String
+OctetSequence
_ = func
@@ -2115,30 +2115,37 @@
s.decodeNext
-String
+OctetSequence
_();%0A %7D els
@@ -2527,22 +2527,29 @@
codeNext
-String
+OctetSequence
_();%0A i
|
53af0d972c4235b0494b9ac455beae8ffdfe850f | switch version number of electron (v0.36.3 crashes) | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
var path = require('path');
var cssBowerLibs = 'css/libs/bower/';
var jsBowerLibs = 'js/libs/bower/';
var appVersion = '0.2.6';
var electronVersion = '0.36.3';
var targets = ["linux-ia32", "linux-x64", "darwin-x64", "win32-ia32", "win32-x64"];
var editorD... | JavaScript | 0 | @@ -206,17 +206,17 @@
= '0.36.
-3
+2
';%0A v
|
c483f7ad84c172367a83244f4139431cd0c32e3b | simplify variable declaration | socmed/fbinsight.js | socmed/fbinsight.js | module.exports = function (url) {
var Horseman = require('node-horseman'),
horseman = new Horseman();
var fbElem = [
'meta[property="fb:admins"]',
'meta[property="fb:page_id"]',
'meta[property="fb:app_id"]'
];
var fbName = [
'fb:admins',
'fb:page_... | JavaScript | 0.205264 | @@ -123,143 +123,181 @@
-var fbElem = %5B%0A 'meta%5Bproperty=%22fb:admins%22%5D',
+function getElem (value) %7B%0A return 'meta%5Bname=%22' + value + '%22%5D';
%0A
+%7D%0A%0A
-'meta%5Bproperty=%22fb:page_id%22%5D',%0A 'meta%5Bproperty=%22fb:app_id%22%5D'
+function getTag (value) %... |
2708ad89a9d2cc5e5c95d4c638aa17951de217c8 | fix linkgearrequests cap issue | public/modules/linkgearrequests/config/linkgearrequests.client.routes.js | public/modules/linkgearrequests/config/linkgearrequests.client.routes.js | 'use strict';
//Setting up route
angular.module('linkGearRequests').config(['$stateProvider',
function($stateProvider) {
// LinkGearRequests state routing
$stateProvider.
state('listLinkGearRequests', {
url: '/linkGearRequests',
templateUrl: 'modules/linkgearrequests/views/list-linkgearrequests.client.vie... | JavaScript | 0 | @@ -183,25 +183,25 @@
te('list
-LinkGearR
+linkgearr
equests'
@@ -214,29 +214,29 @@
%09url: '/link
-GearR
+gearr
equests',%0A%09%09
@@ -233,19 +233,28 @@
uests',%0A
-%09%09%09
+
template
@@ -377,37 +377,37 @@
%7B%0A%09%09%09url: '/link
-GearR
+gearr
equests/create/:
@@ -549,37 +549,37 @@
%7B%0A%09%... |
2901f981edddc00db287e0c0ccdbb69ddf5a16e2 | Use email type input | src/frontend/components/Signup.js | src/frontend/components/Signup.js | import React from 'react';
import Relay from 'react-relay';
import {Paper, TextField} from 'material-ui';
import {BernieText, BernieColors} from './styles/bernie-css';
import GCForm from './forms/GCForm';
import Form from 'react-formal';
import yup from 'yup';
import superagent from 'superagent';
import {Styles} from '... | JavaScript | 0.000062 | @@ -1230,24 +1230,49 @@
ext='Email'%0A
+ type='email'%0A
|
8959a9f5bec89b1700c7e925e044c55b590c969d | Remove todo | redef/patron-client/src/frontend/containers/MyPage.js | redef/patron-client/src/frontend/containers/MyPage.js | import React, { PropTypes } from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { injectIntl, intlShape, defineMessages, FormattedMessage } from 'react-intl'
import { routerActions } from 'react-router-redux'
import * as ProfileActions from '../actions/ProfileActions'
i... | JavaScript | 0.000001 | @@ -563,182 +563,8 @@
a()%0A
- %7D else %7B%0A // TODO Find a solution for showing login dialog when refreshing / accessing a privileged page directly%0A // this.props.loginActions.showLoginDialog()%0A
|
c25cd50c8302da2be28a8d5269d334d1b8f3b0d2 | Rename variable | plugin.js | plugin.js | var correction = require('./correction');
var format = require('util').format;
// Will not change if 2 instances of tennu launched
const helps = {
"correction": [
"s/<target>/<replacement>",
"Correct a previously said message."
]
};
var TennuCorrection = {
//dblogger forces users to meet t... | JavaScript | 0.000003 | @@ -252,16 +252,73 @@
%5D%0A%7D;%0A%0A
+const requiresAdminHelp = %22Requires admin privileges.%22;%0A%0A
var Tenn
@@ -500,73 +500,8 @@
%7B%0A%0A
- const requiresAdminHelp = %22Requires admin privileges.%22;%0A%0A
@@ -1678,24 +1678,25 @@
(isadmin) %7B%0A
+%0A
@@ -1696,33 +1696,33 @@
... |
9373f5b2fb460b410ed10c9ab9c9cef6be5cc96e | fix check for observable | html-element.js | html-element.js | var applyProperties = require('./lib/apply-properties')
var isObservable = require('./is-observable')
var parseTag = require('./lib/parse-tag')
var walk = require('./lib/walk')
var watch = require('./watch')
var caches = new global.WeakMap()
var bindQueue = []
var currentlyBinding = false
var watcher = null
var invalid... | JavaScript | 0.000001 | @@ -767,16 +767,44 @@
perties)
+ %7C%7C isObservable(properties)
)) %7B%0A
|
5b315340cf73d2f3bb6b80660d2938b27b2b079f | rollback changes to Gruntfile.js | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function(grunt) {
require('time-grunt')(grunt);
// Project Configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {
js: {
files: ['gruntfile.js', 'application.js', 'lib/**/*.js', 'test/**/*.js'],
options: {
liverelo... | JavaScript | 0.000001 | @@ -1200,36 +1200,32 @@
%22mongodb://1
-92.168.33
+27.0.0
.1
-0
/FH_LOCAL%22,%0A
@@ -1912,20 +1912,16 @@
://1
-92.168.33
+27.0.0
.1
-0
/FH_
|
5b4afe6bb3b3fc4bdada37f75c455c4cf03836cd | Fix ESLint errors | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
require('load-grunt-tasks')(grunt)
// Project configuration
grunt.initConfig({
// Configure ESLint task
eslint: {
all: [
'**/*.js',
'!node_modules/**'
]
}
})
// Default tasks
grunt.registerTask('default', ['eslint'])
}
| JavaScript | 0.022289 | @@ -18,17 +18,16 @@
function
-
(grunt)
@@ -64,16 +64,17 @@
)(grunt)
+;
%0A%0A // P
@@ -220,16 +220,17 @@
/**'
+,
%0A %5D
%0A
@@ -229,19 +229,22 @@
%5D
+,
%0A %7D
+,
%0A %7D)
+;
%0A%0A
@@ -307,7 +307,9 @@
t'%5D)
+;
%0A%7D
+;
%0A
|
eeefdf14ed3589ff8d84c42ceec7d3fb76037bf7 | update changelog configuration | Gruntfile.js | Gruntfile.js | 'use strict';
var grunt = require('grunt');
function getVersion() {
var pkg = grunt.file.readJSON('./package.json');
return pkg.version;
}
module.exports = function () {
grunt.loadNpmTasks('grunt-bump');
grunt.loadNpmTasks('grunt-conventional-changelog');
grunt.loadNpmTasks('grunt-git');
grunt.registerT... | JavaScript | 0.000006 | @@ -869,24 +869,36 @@
%7D,%0A c
+onventionalC
hangelog: %7B%0A
@@ -926,24 +926,495 @@
-editor: 'open -W
+changelogOpts: %7B%0A // conventional-changelog options go here%0A preset: 'angular'%0A %7D,%0A context: %7B%0A // context goes here%0A %7D,%0A g... |
75a8703521435250f439ce8bd9d1a36ce952eb4b | Check all files | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
allFiles: ['Gruntfile.js', 'lib/**/*.js', 'tests/lib/**/*.js'],
options: {
jshintrc: '.jshintrc',
}
},
mochacl... | JavaScript | 0 | @@ -196,24 +196,32 @@
'tests/
-lib/
**/*
+.js', 'index
.js'%5D,%0A
|
7598e4f2b53b0a69b10eef5b8fc43c26b254a67b | Add icon to firefox. | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
// ----------
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.loadNpmTasks("grunt-contrib-clean");
grunt.loadNpmTasks("grunt-contrib-compress");
grunt.loadNpmTasks("grunt-jpm");
grunt.loadNpmTasks("grunt-crx");
// ----------
// Project configuration... | JavaScript | 0 | @@ -3024,32 +3024,116 @@
e);%0A %7D);%0A
+ grunt.file.copy(%22build/firefox/data/logo48.png%22, %22build/firefox/icon.png%22);%0A
grunt.ta
|
779899372498fdc3bf2ef21401532dba91de9525 | Update angular-meteor.js | angular-meteor.js | angular-meteor.js | // Define angular-meteor and its dependencies
var angularMeteor = angular.module('angular-meteor', [
'angular-meteor.subscribe',
'angular-meteor.collections',
'angular-meteor.meteor-collection',
'angular-meteor.object',
'angular-meteor.template',
'angular-meteor.user',
'angular-meteor.methods',
'angular... | JavaScript | 0.000001 | @@ -1882,23 +1882,16 @@
%09%7D%0A%09%09%09
-
%7D else %7B
@@ -1894,17 +1894,18 @@
se %7B%0A%09%09%09
-%09
+
$compile
|
9d3d4f5a278707b4684585703ff0f3c88654e814 | fix Gruntfile for 0.4.x | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
coffeelint: {
one: {
files: ['test/fixtures/*.coffee'],
options: {
indentation: {
value: 2,
level: "warn"
},
"no_trailing_semicolons": {
level:... | JavaScript | 0.000001 | @@ -123,16 +123,33 @@
files:
+ %7B%0A src:
%5B'test/
@@ -169,16 +169,27 @@
ffee'%5D,%0A
+ %7D,%0A
|
ff7ba820e6139d88ac282c707ad0e98b8e93d7bd | Update rests.js | drawing/rests.js | drawing/rests.js | function drawSemiBreveRest(ctx, x, y, height){
ctx.beginPath();
ctx.moveTo(x, y);
ctx.lineTo(x + 2 * height, y);
ctx.lineTo(x + 2 * height, y + height / 2);
ctx.lineTo(x, y + height / 2);
ctx.lineTo(x, y);
ctx.fill();
}
function drawMinimRest(ctx, x, y, height){
ctx.beginPath();
ctx.moveTo(x, y);
ctx.lineTo(... | JavaScript | 0.000001 | @@ -2232,25 +2232,29 @@
ration,
-h
+lineH
eight)%7B%0A
%09if(dura
@@ -2245,16 +2245,44 @@
eight)%7B%0A
+%09var height = lineHeight/2;%0A
%09if(dura
|
bf0971917b6fa1dc7a44413028b27f7941180638 | Add banner on build/minify | Gruntfile.js | Gruntfile.js | /* eslint strict: [2, "global"] */
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Metadata.
meta: {
version: '1.0.0'
},
pkg: grunt.file.readJSON('package.json'),
banner: '/** \n' +
'* Project: <%= pkg.name %>\n' +
... | JavaScript | 0 | @@ -132,25 +132,8 @@
g(%7B%0A
- // Metadata.%0A
@@ -238,17 +238,16 @@
** %5Cn' +
-
%0A
@@ -264,16 +264,18 @@
Project:
+
%3C%25= pkg
@@ -313,16 +313,18 @@
Version:
+
%3C%25= pkg
@@ -366,16 +366,18 @@
ate:
+
+
%3C%25= grun
@@ -407,32 +407,72 @@
mm-dd%22) %25%3E%5Cn' +%0A
+ ... |
fa999cbca3835e2ecd14012d381ef5e241ab9519 | Fix type in Gruntfile | Gruntfile.js | Gruntfile.js | var extend = require("xtend");
var getRequirejsConfig = function () {
var requirejsConfig;
global.define = function (config) {
requirejsConfig = config({ isBuild: true });
};
require('./app/config');
return requirejsConfig;
};
module.exports = function(grunt) {
"use strict";
// Project configuratio... | JavaScript | 0.000002 | @@ -4273,34 +4273,36 @@
'copy:vendor
+'
,
+'
copy:govuk_templ
@@ -4431,18 +4431,20 @@
y:vendor
+'
,
+'
copy:gov
@@ -4580,18 +4580,20 @@
y:vendor
+'
,
+'
jasmine_
|
4df7b97dc2210a605cf607fcfd4f24880fa8f651 | Add mocha-only test | Gruntfile.js | Gruntfile.js | 'use strict';
var paths = {
js: ['*.js', 'packages/**/*.js', 'test/**/*.js', '!test/coverage/**', '!bower_components/**',
'!packages/**/node_modules/**', '!packages/contrib/**', '!packages/**/vendor/**', '!packages/**/tests/**', '!test/**'],
coffee: ['**/*.coffee'],
html: ['packages/**/public/**/v... | JavaScript | 0.000001 | @@ -4940,17 +4940,73 @@
sk('
+mocha', %5B'env:test', 'mochaTest'%5D);%0A grunt.registerTask('
karma
-test
', %5B
|
352a4f11f7b7df28a3e54be264b34fdef0394ea6 | Update Grunt js scripts | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
'use strict';
// ====================
// == Edit this section
var jsFileList = [
'js/helpers.js',
'js/plugins.js',
'js/script.js'
];
var distDir = 'js/dist/';
var jsFile = 'app.min.js';
// ====================
// Project configuration
grunt.initConfig({
pkg: requ... | JavaScript | 0 | @@ -129,16 +129,24 @@
/helpers
+/helpers
.js',%0A%09%09
@@ -153,15 +153,23 @@
'js/
-plugins
+helpers/console
.js'
|
af6a07ba16c78956e74f886b3eed2464e88677de | Correct name error | packages/config/configDefaults.js | packages/config/configDefaults.js | const path = require("path");
const Provider = require("@truffle/provider");
// This is a list of multi-level keys with defaults
// we need to _.merge. Using this list for safety
// vs. just merging all objects.
const _values = ({ truffleDirectory, workingDirectory, network }) => {
return {
truffle_directory:
... | JavaScript | 0.998757 | @@ -1131,17 +1131,23 @@
%0A%0Aconst
-p
+configP
rops = (
@@ -6326,17 +6326,23 @@
lues,%0A
-p
+configP
rops%0A%7D;%0A
|
b8e948e8ca1a521055f8f5b6918c986e4dd40c70 | change cells color | js/src/GameOfLifeCanvasRender.js | js/src/GameOfLifeCanvasRender.js | function GameOfLifeCanvasRender(gameOfLife, pixelSize, numMaxGenerations, insertionElement) {
this.gameOfLife = gameOfLife;
this.generation = 0;
this.pixelSize = pixelSize;
this.insertionElement = insertionElement;
this.generationLabel = document.createElement("Label");
this.generationLabel.inne... | JavaScript | 0.000001 | @@ -1478,11 +1478,15 @@
= %22
-red
+#135AC3
%22;%0A%0A
|
ec83384637b8ffe863bd4c0559cd80fd5b2c7582 | Make client less verbose | html-example/likeButton.js | html-example/likeButton.js |
// Protect from weird console issues
(function () {
// Union of Chrome, Firefox, IE, Opera, and Safari console methods
var methods = ["assert", "cd", "clear", "count", "countReset",
"debug", "dir", "dirxml", "error", "exception", "group", "groupCollapsed",
"groupEnd", "info", "log", "markTimeline", "profile", "p... | JavaScript | 0.045998 | @@ -2309,29 +2309,8 @@
');%0A
-%09%09console.log(this);%0A
%09%09$(
@@ -3500,45 +3500,8 @@
) %7B%0A
-%09console.log(%22We have clicked it!%22);%0A
%09$.a
@@ -3723,30 +3723,8 @@
%7D);%0A
-%09console.log(caller);%0A
%7D%0A%0Av
@@ -3768,33 +3768,8 @@
) %7B%0A
-%09console.log(likesList);%0A
%09//
|
ac5a359c30b3b5a2dc012e77e9b05473e41e4323 | Update script.js | JS/script.js | JS/script.js | /**
* Script um die Funktionsweise von Events und EventListenern zu zeigen.
*
* created by Kai Karren
*/
document.getElementById("testListener").addEventListener("click", listenerDemo);
function change(){
document.getElementById("onclickDemo").innerHTML = "<p>Was nun auch passiert ist.<p><p><tag on... | JavaScript | 0.000002 | @@ -989,16 +989,17 @@
ction())
+;
%3C/p%3E%22;%0A%0A
@@ -995,12 +995,13 @@
));%3C/p%3E%22;%0A%0A%7D
+%0A
|
185ad3a0ac702ef4c72166fbb8bc7620380342ea | Add ability to specify profile from credentials file. Resolves #37 | dynamoDBtoCSV.js | dynamoDBtoCSV.js | var program = require('commander');
var AWS = require('aws-sdk');
var unmarshalItem = require('dynamodb-marshaler').unmarshalItem;
var unmarshal = require('dynamodb-marshaler').unmarshal;
var Papa = require('papaparse');
var headers = [];
var unMarshalledArray = [];
program
.version('0.0.1')
.option('-t, --table [... | JavaScript | 0 | @@ -527,16 +527,95 @@
amoDB')%0A
+ .option(%22-p, --profile %5Bprofile%5D%22, 'Use profile from your credentials file')%0A
.parse
@@ -630,16 +630,16 @@
.argv);%0A
-
%0Aif (!pr
@@ -738,24 +738,25 @@
exit(1);%0A%7D%0A%0A
+%0A
if (program.
@@ -914,24 +914,24 @@
endpoint) %7B%0A
-
AWS.config
@@ -971,16 +971,16... |
285dd162f9e87583c9491bc0acbc10e4b06a19b0 | Update stryker config | stryker.conf.js | stryker.conf.js | module.exports = (config) => {
config.set({
files: [
'src/config/**/*.js',
'src/push/**/*.js',
'src/bbq/sensor/**/*.js',
'src/**/*.test.js',
],
mutate: [
'src/config/**/*.js',
'src/push/**/*.js',
'src/bbq/sensor/**/*.js',
'!src/**/*.test.js',
],
test... | JavaScript | 0 | @@ -55,39 +55,32 @@
s: %5B%0A 'src/
-config/
**/*.js',%0A
@@ -76,36 +76,35 @@
js',%0A '
+!
src/
-push/**/
+server
*.js',%0A
@@ -105,35 +105,31 @@
%0A '
+!
src/b
-bq/sensor
+ackend
/**
-/*
.js',%0A
@@ -133,29 +133,60 @@
%0A '
+!
src/
-**/*.test
+promisetest/**/*.js',%0A '... |
954be593696f45e2c9d7421275e2de7cadd37578 | add missing `eventLog` argument in creep tick intent | src/processor/intents/creeps/tick.js | src/processor/intents/creeps/tick.js | var _ = require('lodash'),
utils = require('../../../utils'),
driver = utils.getDriver(),
C = driver.constants,
movement = require('../movement');
function _applyDamage(object, damage) {
let damageReduce = 0, damageEffective = damage;
if(_.any(object.body, i => !!i.boost)) {
for(let i... | JavaScript | 0.000002 | @@ -1134,16 +1134,26 @@
gameTime
+, eventLog
%7D = scop
|
6e28c5d71801f86be6de26a42f9acdb5b3eaefdc | use FlatList's refresh controller instead of my custom hoc | mobile/activities/Operation/index.js | mobile/activities/Operation/index.js | import React, { Component } from 'react'
import * as R from 'ramda'
import { connect } from 'react-redux'
import { compose, flattenProp, mapProps, setDisplayName } from 'recompose'
import { goToOrder } from 'Coopcon/data/navigation/actions'
import { isLoadingOperations, getCurrentOperation } from 'Coopcon/data/operatio... | JavaScript | 0 | @@ -234,16 +234,80 @@
ctions'%0A
+import %7B fetchOperation %7D from 'Coopcon/data/operation/actions'%0A
import %7B
@@ -493,77 +493,8 @@
er'%0A
-import withLoadingIndicator from 'Coopcon/hocs/withLoadingIndicator'%0A
impo
@@ -894,16 +894,68 @@
) =%3E (%7B%0A
+ fetchOperation: () =%3E dispatch(fetchOperation()),%0... |
c6d6f001aa36fdefccd341e37fd4444ee01d0dfe | Fix TokenActivationEmail expiration timeout. | models/users/TokenActivationEmail.js | models/users/TokenActivationEmail.js | /**
* class models.users.TokenActivationEmail
*
* Expirable secret key used for email address confirmation by newly
* registered users.
**/
'use strict';
var Mongoose = require('mongoose');
var Schema = Mongoose.Schema;
var crypto = require('crypto');
var TOKEN_EXPIRE_TIMEOUT = 6 * 60 * 60; // 6 ho... | JavaScript | 0 | @@ -304,16 +304,23 @@
60 * 60
+ * 1000
; // 6 h
@@ -323,16 +323,25 @@
6 hours
+ in msecs
.%0Avar TO
|
252ed2dcade012e55ac689b394bb091f00364e04 | Fix Arrayfild item and field name resolve recursing | src/resources/elements/arrayfield.js | src/resources/elements/arrayfield.js | import {containerless} from 'aurelia-framework';
import {Parentfield} from './abstract/parentfield';
import {Field} from './abstract/field';
/**
* Arrayfield is a {@link Parentfield} that has a variable number of the same kind of child.
*/
@containerless
export class Arrayfield extends Parentfield {
/**
* The b... | JavaScript | 0 | @@ -6623,16 +6623,44 @@
rn child
+.resolvePath(path.splice(1))
;%0A
@@ -6739,24 +6739,52 @@
rn this.item
+.resolvePath(path.splice(1))
;%0A %7D%0A
|
35fdaf00c8e11976b9bcc1dc03b661d4281ff012 | Fix format of messages for teamcity: 1. Replace " by ' - because Teamcity can't process messages with " 2. Change messages structrure | teamcity-reporter.js | teamcity-reporter.js | 'use strict';
var util = require('util');
/**
* @param {Errors[]} errorsCollection
*/
module.exports = function(errorsCollection) {
var errorCount = 0;
/**
* Formatting every error set.
*/
errorsCollection.forEach(function(errors) {
var file = errors.getFilename();
console.log(u... | JavaScript | 0.999988 | @@ -1,9 +1,9 @@
-'
+%22
use stri
@@ -4,17 +4,17 @@
e strict
-'
+%22
;%0A%0Avar u
@@ -31,14 +31,14 @@
ire(
-'
+%22
util
-'
+%22
);%0A/
@@ -152,16 +152,92 @@
nt = 0;%0A
+%0A console.log(util.format(%22##teamcity%5BtestSuiteStarted name='JSCS'%5D%22));%0A%0A
/**%0A
@@ -371,96 +371,8 @@
e();
-%0A con... |
63d22bfa615b999e0601da71acae794af3ee4865 | Remove tappable by default mixin | component.js | component.js | // This is a function that decorates React's createClass.
// It's used only internally in this library,
// but could be used externally eventually.
// See the mixins for more information on what this does.
var UI = require('reapp-ui');
var Component = require('reapp-component')();
var React = require('react');
var Id... | JavaScript | 0 | @@ -545,53 +545,8 @@
s');
-%0Avar Tappable = require('./mixins/Tappable');
%0A%0ACo
@@ -893,23 +893,8 @@
%5D,%0A%0A
- Tappable,%0A%0A
|
7ed00321c18c13bea37ba7105baad66680f41f58 | Use correct indentation character | client/components/profile/profile-category.component.js | client/components/profile/profile-category.component.js | 'use strict';
const PROFILE_CATEGORY_COMPONENT_NAME = 'profileCategory';
const profileCategoryComponent = {
bindings: {
options: '<',
profile: '<'
},
templateUrl: 'components/profile/profile-category.html',
controllerAs: 'profileCategoryCtrl',
controller: class demoController {
constructor($stat... | JavaScript | 0.001572 | @@ -1304,9 +1304,10 @@
%7D%0A
-%09
+
%7D%0A%7D;
|
a39087941938faf693253196d201e31558fe0186 | remove unneccessary classes from state data object | app/assets/javascripts/app/app.js | app/assets/javascripts/app/app.js | angular
.module('app', ['ui.router', 'templates', 'ngAnimate'])
.config(function($stateProvider) {
$stateProvider
.state('index', {
url: '/',
templateUrl: 'app/views/index.html',
controller: 'IndexController as vm_index',
data: {
... | JavaScript | 0.000107 | @@ -384,39 +384,32 @@
ass: 'bg-img
- bg-img
-index'%0A
@@ -388,32 +388,32 @@
'bg-img-index'%0A
+
%7D
@@ -872,23 +872,16 @@
'bg-img
- bg-img
-genre'%0A
@@ -1379,23 +1379,16 @@
'bg-img
- bg-img
-length'
@@ -1999,23 +1999,16 @@
'bg-img
- bg-img
-start-w
@@ -2832,23 +2832,16 @@
... |
1b87269072ccd9af054ef8bfb998af3502923049 | fix spacing and indentation | app/assets/javascripts/my_site.js | app/assets/javascripts/my_site.js | (function() {
"use strict";
var CommentModel = Backbone.Model.extend({
validate: function(attr) {
if( !attr.email ) {
alert('Email Required!');
return;
}
if ( !attr.content ) {
alert('Comment field cannot be blank!');
return;
}
},
initialize: f... | JavaScript | 0.000004 | @@ -1316,16 +1316,17 @@
s.remove
+
);%0A
@@ -1372,16 +1372,17 @@
s.render
+
);%0A %7D
@@ -3374,21 +3374,8 @@
data
-, status, xhr
) %7B%0A
|
86aac386f52dbc866afdbe03e78b70c039a7f681 | fix coords on viewscene | app/components/Views/ViewScene.js | app/components/Views/ViewScene.js | import React, { Component } from 'react';
import ViewActors from './ViewActors';
import ReactMapboxGl, { Layer, Feature, Marker } from 'react-mapbox-gl';
import ReactTimeout from 'react-timeout'
/* ----- COMPONENT ----- */
class Scene extends Component {
constructor() {
super();
this.state = {
coords... | JavaScript | 0.000001 | @@ -319,10 +319,16 @@
ds:
-''
+%5B37, 55%5D
,%0A
|
9041c0ae646a4f537468ea88778c06793e28e5ee | Add logic for adjusting width when resizing height. | assets/src/edit-story/utils/getAdjustedElementDimensions.js | assets/src/edit-story/utils/getAdjustedElementDimensions.js | /**
* Updates Text element's width and height if it's being resized from edges or there are font changes.
*/
function getAdjustedElementDimensions( { element, content, width, height, fixedMeasure } ) {
if ( ! element || ! content.length ) {
return { width, height };
}
if ( 'width' === fixedMeasure ) {
if ( ele... | JavaScript | 0 | @@ -1,8 +1,85 @@
+/**%0A * Internal dependencies%0A */%0Aimport %7B PAGE_WIDTH %7D from '../constants';%0A%0A
/**%0A * U
@@ -183,515 +183,1525 @@
.%0A *
-/%0Afunction getAdjustedElementDimensions( %7B element, content, width, height, fixedMeasure %7D ) %7B%0A%09if ( ! element %7C%7C ! content.length ) %7B%0A%09%09ret... |
0ec851372caa9309df9651126d71361d8163f889 | Convert `toggleClipboardProps()` to ember-concurrency task | app/components/crate-toml-copy.js | app/components/crate-toml-copy.js | import { action } from '@ember/object';
import { later } from '@ember/runloop';
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
export default class CrateTomlCopy extends Component {
@tracked showSuccess = false;
@tracked showNotification = false;
toggleClipboardProps(is... | JavaScript | 0.00279 | @@ -37,48 +37,8 @@
t';%0A
-import %7B later %7D from '@ember/runloop';%0A
impo
@@ -123,16 +123,71 @@
king';%0A%0A
+import %7B rawTimeout, task %7D from 'ember-concurrency';%0A%0A
export d
@@ -305,36 +305,33 @@
lse;%0A%0A
-toggleClipboardProps
+@(task(function*
(isSucce
@@ -408,54 +408,40 @@
ue;%0A
-%0A
... |
a3e802bbe7fe5d2a30bc38f39e9348110468799a | Add global definition for moment in datetime-picker component | app/components/datetime-picker.js | app/components/datetime-picker.js | import Ember from 'ember';
// DateTime picker component for Semantic UI (Semantic UI hasn't its own DateTime picker component yet).
export default Ember.Component.extend({
// String with input css classes.
classes: undefined,
// Flag to make control readonly.
readonly: false,
// Flag to make control requir... | JavaScript | 0 | @@ -1,8 +1,33 @@
+/* global moment:true */%0A
import E
@@ -799,20 +799,16 @@
rtDate =
- new
moment(
|
f0bbbce99266aaa8140c9f0e7c0715df6dab2144 | attach locale to props in Browser to fix propagate issue of react-intl | app/containers/Browser/Browser.js | app/containers/Browser/Browser.js | import './browser'
import React, { PropTypes } from 'react'
import { connect } from 'react-redux'
import Header from '../../components/Header'
import Spinner from '../../components/Spinner'
import Notification from '../../components/Notification'
import BrowserStack from '../BrowserStack'
import BrowserTabs from '../... | JavaScript | 0 | @@ -803,16 +803,56 @@
s.object
+,%0A locale: PropTypes.string.isRequired,
%0A%7D%0A%0Acons
@@ -881,16 +881,34 @@
corpora
+, intl: %7B locale %7D
%7D) =%3E (
@@ -961,16 +961,70 @@
a.status
+,%0A // hack needed to propagate locale change%0A locale
%0A%7D)%0A%0Aexp
|
3bc26a68f46782ec5d004cd9a74ea2795928e7e8 | add hook to deploy | authentication/.serverless_plugins/deployment-info/index.js | authentication/.serverless_plugins/deployment-info/index.js | /**
* Created by eetut on 23/11/2016.
*/
'use strict';
const _ = require('lodash');
const chalk = require('chalk');
class Deploy {
constructor(serverless, options) {
this.serverless = serverless;
this.options = options;
this.provider = this.serverless.providers.aws;
this.commands = {
authent... | JavaScript | 0 | @@ -620,24 +620,75 @@
bind(this),%0A
+ 'after:deploy:deploy': this.info.bind(this),%0A
%7D;%0A %7D%0A%0A
|
a34dfef91eec1291e3158b2c512418661a9f9192 | verify and tested create account functionality | app/controllers/UserManagement.js | app/controllers/UserManagement.js | var args = arguments[0] || {};
// function to call after login or user created
var callback = args.callback;
var parseService = Alloy.Globals.parseService;
/**
*
*/
function handleLoginClick(_event) {
Ti.API.debug('clicked: ' + _event.source.id);
return parseService.loginUser($.login_email.value, $.login... | JavaScript | 0 | @@ -2083,72 +2083,36 @@
%7D;%0A%0A
+%0A
-var user = Alloy.createModel('User');%0A user.createAccount
+parseService.createUser
(par
@@ -2331,32 +2331,40 @@
function(_error
+Response
) %7B%0A var
@@ -2363,119 +2363,112 @@
-var errorMsg = JSON.stringify(_error);%0A alert(_error.message);... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.