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 |
|---|---|---|---|---|---|---|---|
dcbf06ef80d59194dfb70c704dc3fc829b2b5ae2 | Add ability to sign cookies. | bin/start.js | bin/start.js | const _ = require('lodash')
const glob = require('glob')
const bodyParser = require('body-parser')
const cookieParser = require('cookie-parser')
const logger = require('../src/logger')
// Set default environment to 'development'
global.__ENV__ = process.env.NODE_ENV || 'development'
global.__DEV__ = __ENV__ === 'deve... | JavaScript | 0 | @@ -180,16 +180,79 @@
gger')%0A%0A
+const config = require(%60$%7Bprocess.cwd()%7D/config/application%60)%0A%0A
// Set d
@@ -518,16 +518,35 @@
eParser(
+config.cookieSecret
))%0Aapp.u
|
5d73b82bf3cc694874af0355e8b358fabb4331f0 | Remove native bootstrap | app/index.js | app/index.js | 'use strict';
var util = require('util');
var path = require('path');
var fs = require('fs');
var yeoman = require('yeoman-generator');
var AngularWithRequireGenerator = module.exports = function AngularWithRequireGenerator(args, options, config) {
yeoman.generators.Base.apply(this, arguments);
// setup the tes... | JavaScript | 0.000175 | @@ -4389,61 +4389,8 @@
%7D%0A
- if (this.cssFramework !== 'NativeBootstrap') %7B%0A
he
@@ -4432,20 +4432,16 @@
s';%5Cn%22;%0A
-
this.c
@@ -4502,20 +4502,16 @@
scss');%0A
- %7D%0A
this.w
|
f314b5627e5dd4113cf96f56e3a59f86bb90afa8 | Update index.js | app/index.js | app/index.js | 'use strict';
var util = require('util');
var path = require('path');
var spawn = require('child_process').spawn;
var yeoman = require('yeoman-generator');
var chalk = require('chalk');
var AppGenerator = module.exports = function Appgenerator(args, options, config) {
yeoman.generators.Base.apply(this, arguments);
... | JavaScript | 0.000002 | @@ -2648,24 +2648,40 @@
runtfile.js'
+, 'Gruntfile.js'
);%0A%0A // app
|
81b39465a191fd5405faeb615ee0b649671824ec | add debug option on supervisor polling | app/index.js | app/index.js | (function() {
'use strict';
const fs = require('fs');
const ini = require('ini');
const exec = require('child_process').exec;
const chalk = require("chalk");
const request = require('request');
const display = require(__dirname + '/libs/display.js');
let mopidy = ini.parse(fs.readFileS... | JavaScript | 0 | @@ -272,16 +272,60 @@
ay.js');
+%0A const debug = require('debug')('main');
%0A%0A le
@@ -3019,24 +3019,67 @@
e == 200) %7B%0A
+ debug('supervisor', body);%0A
@@ -3940,9 +3940,9 @@
%7D,
-4
+2
000)
|
c4be5ed37d69bb818c7c02d7fd0a6262dc908b3b | remove .DS_Store ignore | app/index.js | app/index.js | 'use strict';
var fs = require('fs');
var util = require('util');
var path = require('path');
var yeoman = require('yeoman-generator');
var wiredep = require('wiredep');
var chalk = require('chalk');
var MeanGenerator = yeoman.generators.Base.extend({
constructor: function(args, options) {
yeoman.generators.Base.a... | JavaScript | 0.000129 | @@ -4645,47 +4645,8 @@
) %7B%0A
-%09%09var ignores = %5B%0A%09%09%09'.DS_Store'%0A%09%09%5D;%0A%0A
%09%09th
|
da903ab0179bbafea8f28f0dc78ce7c93721bc57 | fix johnny-firve fix path | app/index.js | app/index.js | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, hashHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import routes from './routes';
import configureStore from './store/configureStore';
import './app.global.c... | JavaScript | 0.000001 | @@ -348,27 +348,21 @@
from './
-johnny-five
+utils
/johnny-
|
b1d47db908f012f07aae6c53fdb0c19b1c1eb437 | Comment out prompt | app/index.js | app/index.js | 'use strict';
var util = require('util');
var path = require('path');
var yeoman = require('yeoman-generator');
var DbmodGenerator = module.exports = function DbmodGenerator(args, options, config) {
yeoman.generators.Base.apply(this, arguments);
this.on('end', function () {
this.installDependencies({ skipIns... | JavaScript | 0 | @@ -646,16 +646,19 @@
man);%0A%0A
+ //
var pro
@@ -668,16 +668,19 @@
s = %5B%7B%0A
+ //
type:
@@ -692,16 +692,19 @@
firm',%0A
+ //
name:
@@ -719,16 +719,19 @@
tion',%0A
+ //
messa
@@ -776,16 +776,19 @@
ion?',%0A
+ //
defau
@@ -801,15 +801,21 @@
ue%0A
+ //
%7D%5D;%0A%0A
+ //
thi
@@ -85... |
d0dc320625fd3a02b8077b2e8d40702ce2515912 | Fix scaffold folders | app/index.js | app/index.js | var util = require('util');
var path = require('path');
var yeoman = require('yeoman-generator');
var yosay = require('yosay');
var chalk = require('chalk');
var Generator = yeoman.generators.Base.extend({
init: function() {
this.argument('appname', {
type: String,
required: false
... | JavaScript | 0.000002 | @@ -1940,21 +1940,52 @@
ir('
-app/templates
+src/client');%0A this.mkdir('src/server
');%0A
|
8bf4a8f0723578b0d20375d38077b58f010a0bb7 | Add missing jshint global declarations into MarketManager | src/wirecloud/static/js/wirecloud/MarketManager.js | src/wirecloud/static/js/wirecloud/MarketManager.js | /*
* (C) Copyright 2012 Universidad Politécnica de Madrid
*
* This file is part of Wirecloud Platform.
*
* Wirecloud Platform 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, e... | JavaScript | 0.000002 | @@ -850,23 +850,90 @@
*global
-gettext
+CatalogueView, Constants, gettext, LayoutManagerFactory, LogManagerFactory
, Styled
@@ -940,16 +940,27 @@
Elements
+, Wirecloud
*/%0A%0A(fun
|
9cf8a9dbd01de93a23ca582d703a0fa7acad876b | Remove otherwise statusCode | bootstrap.js | bootstrap.js | 'use strict';
const request = require('request-promise');
module.exports = function(app){
function setHeaders(res, origin){
res.header(origin.headers);
res.header('Access-Control-Allow-Origin', '*');
res.header('Access-Control-Allow-Credentials', false);
res.header('Access-Control-... | JavaScript | 0.00009 | @@ -845,15 +845,8 @@
Code
- %7C%7C 200
);%0A
@@ -904,8 +904,9 @@
%7D);%0A%7D;
+%0A
|
77ad079f274b0d5c1c0337c56f4e9786730c49c6 | fix up bootstrap | bootstrap.js | bootstrap.js | 'use strict';
chrome.tabs.onUpdate.addListener(function(id, info, tab) {
if (tab.url.toLocaleLowerCase().indexOf("banweb.pdx.edu") > -1) {
chrome.pageAction.show(tab.id);
chrome.tabs.executeScript(tab.id, {"file": "rateMyProfessor.js"})
}
}); | JavaScript | 0.000007 | @@ -1,19 +1,4 @@
-'use strict';%0A%0A
chro
@@ -208,29 +208,24 @@
%22: %22
-rateMyProfessor
+extension
.js%22%7D)
+;
%0A %7D
|
5ec016e2ab55ce85af8ccc10af5b3a3cca12178a | Fix FBTest console/breakOnError/breakOnError.js | tests/content/console/breakOnError/breakOnError.js | tests/content/console/breakOnError/breakOnError.js | function runTest()
{
FBTest.openNewTab(basePath + "console/breakOnError/breakOnError.html", function(win)
{
FBTest.openFirebug(function() {
FBTest.enablePanels(["console", "script"], function() {
FBTest.waitForBreakInDebugger(null, 28, false, function(row)
{
... | JavaScript | 0.000152 | @@ -540,41 +540,56 @@
-FBTest.clickBreakOnNextButton();%0A
+win.setTimeout(function()%0A %7B%0A
@@ -640,24 +640,28 @@
on next%22);%0A
+
@@ -732,32 +732,36 @@
+
+
testButton.addEv
@@ -812,34 +812,41 @@
-%7B%0A
+ %7B%0A
... |
903105dbd4b60aad098af22867369d45ecc7f6bf | Add version stripping unit test | tests/unit/utilities/get-package-base-name-test.js | tests/unit/utilities/get-package-base-name-test.js | 'use strict';
var expect = require('chai').expect;
var getPackageBaseName = require('../../../lib/utilities/get-package-base-name');
describe('getPackageBaseName', function() {
it('should return the full package name if it is unscoped', function() {
expect(getPackageBaseName('my-addon')).to.equal(... | JavaScript | 0 | @@ -480,13 +480,147 @@
);%0A %7D);
+%0A%0A it('should strip away version numbers', function() %7B%0A expect(getPackageBaseName('my-addon@~1.2.0')).to.equal('my-addon');%0A %7D);
%0A%7D);%0A
|
b851540b9f5a593a0d2c9cc7ff1b3c9c528694c7 | remove forcing option | common/js/plugins/ui.datepicker/jquery.ui.datepicker-ko.js | common/js/plugins/ui.datepicker/jquery.ui.datepicker-ko.js | /* Korean initialisation for the jQuery calendar extension. */
/* Written by DaeKwon Kang (ncrash.dk@gmail.com). */
jQuery(function($){
$.datepicker.regional['ko'] = {
closeText: '닫기',
prevText: '이전달',
nextText: '다음달',
currentText: '오늘',
monthNames: ['1월(JAN)','2월(FEB)','3월(MAR)','4월(APR)','5월(MAY)','6월(JUN)... | JavaScript | 0.999699 | @@ -798,63 +798,8 @@
'%7D;%0A
-%09$.datepicker.setDefaults($.datepicker.regional%5B'ko'%5D);%0A
%7D);
+%0A
|
8543984c6bdeafa5f8d98e58dfdfd06ee5286e9a | fix tblrOutput/tbrlOutput tests | build/tasks/unit.js | build/tasks/unit.js | module.exports = function ( grunt ) {
grunt.registerTask( 'unit', function () {
var assert = require( 'assert' ),
cssjanus = require( '../../src/cssjanus' ),
testData = require( '../../test/data.json' ),
failures = 0,
tests = 0,
name, test, settings, i, input, noop, output, tblrOutput, tbrlOutput;
... | JavaScript | 0.000002 | @@ -623,16 +623,21 @@
t.cases%5B
+ i %5D%5B
2 %5D %7C%7C
@@ -672,16 +672,21 @@
t.cases%5B
+ i %5D%5B
3 %5D %7C%7C
|
fcfb31558cb64ac09c821a347fd30a16a9efb838 | Add some things to vendor bundle for less total JS | frontend_build/modulesToIncludeInVendorBundle.js | frontend_build/modulesToIncludeInVendorBundle.js | /*
* Copyright (C) 2016 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas 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, version 3 of the License.
*
* Canvas is distribut... | JavaScript | 0.000004 | @@ -1947,10 +1947,977 @@
Editor'%0A
+ 'lodash',%0A '@instructure/ui-layout/lib/components/Grid',%0A%0A // didn't import all of '@instructure/ui-forms/lib/components' to avoid pulling in decimal.js w/ NumberInput%0A '@instructure/ui-forms/lib/components/Checkbox',%0A '@instructure/ui-forms/lib/components/CheckboxG... |
52acf44dc5ff9e21f5a83f9883df60f9331e099b | Update src/foam/nanos/medusa/ClusterConfigMonitor.js | src/foam/nanos/medusa/ClusterConfigMonitor.js | src/foam/nanos/medusa/ClusterConfigMonitor.js | /**
* @license
* Copyright 2020 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.CLASS({
package: 'foam.nanos.medusa',
name: 'ClusterConfigMonitor',
documentation: 'NOTE: do not start with cronjob. This process starts the ClusterConfigPingSing which polls the Media... | JavaScript | 0 | @@ -287,16 +287,21 @@
nfig
-PingSing
+MonitorAgents
whi
|
3c23a70bf1ef21e494d7ba0ef5622354473f13d0 | Remove dangling if-statement causing many false positive in UnfocusableElementsWithOnclick | src/audits/UnfocusableElementsWithOnClick.js | src/audits/UnfocusableElementsWithOnClick.js | // Copyright 2012 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | JavaScript | 0.99814 | @@ -1465,57 +1465,8 @@
) %7B%0A
- if (element.className == 'selected')%0A
|
fa5c565a43fe1b6f65f2b13bf5f784948594eb0b | Add function to append raw html | assets/data-loader.js | assets/data-loader.js | //Common fnctions for data Loading
// Base URL
var version = "v0.05";
var dataurl = "https://raw.githubusercontent.com/SDG-data/SDGs/"+version+"/";
//Read Goals, Targets and Indicators
var sdgs = [];
var stats = {};
files = ["goals","targets","indicators"];
var data_loaded = 0;
function load_data(){
//Reset and Read... | JavaScript | 0.000006 | @@ -1153,24 +1153,181 @@
stItem);%0A%7D%0A%0A
+function append_raw(hookElement,content)%7B%0A var wrapper = document.createElement(%22div%22);%0A wrapper.innerHTML=content;%0A hookElement.appendChild(wrapper);%0A%7D%0A%0A
function app
|
ea393c61da4eee0da8321e72c415b0bc4f78ca45 | fix typo in collapse.js fix #258 | assets/js/collapse.js | assets/js/collapse.js | /* ==========================================================
* collapse.js
* Add class when nav collapse is open
*
* Author: Yann, yann@antistatique.net
* Date: 2014-05-06
*
* Copyright 2014 Federal Chancellery of Switzerland
* Licensed under MIT
========================================================== */... | JavaScript | 0.000003 | @@ -561,33 +561,33 @@
'aria-exp
-e
+a
nded': 'true'%0A
@@ -819,17 +819,17 @@
aria-exp
-e
+a
nded': '
|
c28f4dcf857d0096ef255ba584eefe282c3aa54d | Fix other breaking change in googleapis@25 | login/loginServer.js | login/loginServer.js | /**
* @license
* Copyright 2017 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | JavaScript | 0 | @@ -3233,36 +3233,35 @@
, function(err,
-data
+res
) %7B%0A if (er
@@ -3496,16 +3496,20 @@
sword +
+res.
data.id;
|
534ee9f63ab743070a40ffcf29fa9bf48ed9705e | fix practice win nbMoves > 0 | ui/analyse/src/study/practice/studyPracticeCtrl.js | ui/analyse/src/study/practice/studyPracticeCtrl.js | var m = require('mithril');
var xhr = require('../studyXhr');
var readOnlyProp = function(value) {
return function() {
return value;
};
};
var drawInRegex = /draw in (\d+)/i;
module.exports = function(root, studyData, data) {
var goal = m.prop();
var comment = m.prop();
var nbMoves = m.prop(0);
var ... | JavaScript | 0 | @@ -1449,24 +1449,61 @@
ry) return;%0A
+ nbMoves(Math.max(1, nbMoves()));%0A
won(true
|
3a5aced12d06a111e6206bd30065c6cf28650eb5 | Remove tray chattiness. | src-electron/ui/tray.js | src-electron/ui/tray.js | /**
*
* Copyright (c) 2020 Silicon Labs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | JavaScript | 0 | @@ -857,47 +857,8 @@
) %7B%0A
- env.logInfo('Initializing tray...')%0A%0A
le
@@ -1127,71 +1127,8 @@
%0A %7D
- else %7B%0A env.logInfo(%60Using tray icon: $%7BtrayIconPath%7D%60)%0A %7D
%0A%0A
@@ -1844,43 +1844,8 @@
nu)%0A
- env.logInfo('Tray initialized.')%0A
%7D%0A%0Ae
|
8dea94096bed43377308bedfd299a1d18eb2a9fa | Disable eslint | src/client/routes/search-page-route.react.js | src/client/routes/search-page-route.react.js | import React from 'react';
import {getSearchQuery, getSearchPage} from '../search/store';
import {searchForQuery} from '../search/actions';
import SearchPage from '../pages/searchpage.react';
function isNewSearch(query) {
return query.q !== getSearchQuery() || query.page !== getSearchPage();
}
export default
clas... | JavaScript | 0.000632 | @@ -292,16 +292,75 @@
age();%0A%7D
+%0A/*eslint-disable indent */ //Eslint is bugged in this file
%0A%0Aexport
|
c308a805ccfa2e95d1f07e10a75c4aafc4496f48 | Allow ref to be an object (fixes #1271) | debug/index.js | debug/index.js | /* eslint-disable no-console */
if (process.env.NODE_ENV === 'development') {
const preact = require('preact');
const options = preact.options;
const oldVnodeOption = options.vnode;
options.vnode = function(vnode) {
const { nodeName, attributes, children } = vnode;
if (nodeName === void 0) {
console.error... | JavaScript | 0 | @@ -484,16 +484,57 @@
ion' &&%0A
+%09%09%09typeof attributes.ref !== 'object' &&%0A
%09%09%09!('$$
@@ -683,16 +683,38 @@
function
+ or createRef() object
,%60 +%0A%09%09%09
|
fa0319f14b005fc72d5d9368bf590b5afa69f848 | apply renamed (token -> from) option | src/components/views/dialogs/MessageEditHistoryDialog.js | src/components/views/dialogs/MessageEditHistoryDialog.js | /*
Copyright 2019 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | JavaScript | 0 | @@ -1581,13 +1581,12 @@
= %7B
-token
+from
: th
|
68a232a04b583949ba66f9d3371b3f8607e663f1 | add js text | empty.js | empty.js | JavaScript | 0.000181 | @@ -0,0 +1,31 @@
+var hoge;%0Ahoge = %22javascript%22;%0A
| |
db3cfbbbc3ebf4fba8ae4d15e9666615c721cdb2 | fix flakey loadEventListeners spec | ui/shared/rce/__tests__/loadEventListeners.test.js | ui/shared/rce/__tests__/loadEventListeners.test.js | /*
* Copyright (C) 2021 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas 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, version 3 of the License.
*
* Canvas is distribut... | JavaScript | 0 | @@ -2091,24 +2091,97 @@
t.restore()%0A
+ window.getComputedStyle.restore && window.getComputedStyle.restore()%0A
console.
@@ -2358,24 +2358,65 @@
, done =%3E %7B%0A
+ window.getComputedStyle = jest.fn()%0A%0A
loadEven
|
b7359c9c71150df34ee55fa6e2a1c3b7c149c132 | implement album update service | static/app/controllers.js | static/app/controllers.js | var albumApp = angular.module('albumApp', ['ui.bootstrap']);
/* Define an album metadata update service. It's a bit of overkill for what it does,
* but I wanted to learn how to do this. */
albumApp.factory('AlbumMetaUpdateService', ['$http', function ($http) {
return {
update: function (album_metadata) ... | JavaScript | 0 | @@ -4084,23 +4084,17 @@
humbnail
- update
+s
from th
@@ -4106,23 +4106,16 @@
cription
- update
? */%0A
|
d31a64837b466eb463f7301d7c366ae0da3201fd | fix docs path | docs/.vuepress/config.js | docs/.vuepress/config.js | module.exports = {
plugins: [require("./plugin.js")],
locales: {
"/": {
lang: "en-US",
title: "Vuejs Toast",
description: "Vuejs Toast"
}
},
themeConfig: {
repo: "/s4l1h/vue-toastr",
docsDir: "docs",
locales: {
"/": {
label: "English",
selectText: "Lan... | JavaScript | 0.000001 | @@ -49,16 +49,40 @@
.js%22)%5D,%0A
+ base: %22/vue-toastr/%22,%0A
locale
|
1ea61cdccaf6f9b5651c3ef6076b23ed50433964 | fix camera bug | assets/www/js/main.js | assets/www/js/main.js | // Get nearby events from last.fm and display them in a list.
com.eyekabob.nearbyEvents = function() {
$.mobile.showPageLoadingMsg();
// TODO: no need for desktop check when development is over.
if (com.eyekabob.platform.Desktop) {
var position = {
coords: {
latitude: 44.... | JavaScript | 0.000001 | @@ -703,16 +703,29 @@
if (
+com.eyekabob.
platform
|
74188bfc6affd64832dd409ec1ea436225f2bc00 | Fix possible crash in demos page. | demos/demos.js | demos/demos.js | 'use strict';
/* global $ */
function escape(string) {
return string ? String(string).replace(/[&<>"']/g, function(match) {
return {
'&': '&',
'<': '<',
'>': '>',
'"': '"',
'\'': '''
}[match];
}) : '';
}
$(document... | JavaScript | 0 | @@ -1643,24 +1643,68 @@
ubmenus') %7B%0A
+ if (selectivity.dropdown) %7B%0A
@@ -1765,32 +1765,36 @@
id;%0A
+
+
results = cities
@@ -1822,32 +1822,36 @@
unction(city) %7B%0A
+
@@ -1940,16 +1940,20 @@
+
city.tim
@@ -1984,16 +1984,20 @@
... |
5ee072573191ec3f0c8f5c0cfdd868a0a52e96e4 | Remove unnecessary comment. | static/js/portico/help.js | static/js/portico/help.js | const Ps = require('perfect-scrollbar');
(function () {
var html_map = {};
var loading = {
name: null,
};
var fetch_page = function (path, callback) {
$.get(path, function (res) {
var $html = $(res).find(".markdown .content");
$html.find(".back-to-home").remove(... | JavaScript | 0 | @@ -1104,75 +1104,8 @@
se,%0A
- // Picked so that each mousewheel bump moves 1 emoji down.%0A
|
1fac97154072a409fabe76acec1583e7f0449981 | fix the issue when set in storage | js/common.js | js/common.js | /**
* @author Joseph
*/
taskListKey="taskListKey";
var hosts=['i.doit.im','i.doitim.com'];
var openSetting=true
function ls(){
/** chrome.extension.sendRequest({method: "getLocalStorage"}, function (response) {
for (var k in response.data)
localStorage[k] = response.data[k];
});
*/
... | JavaScript | 0.000012 | @@ -1795,16 +1795,199 @@
-%7D%0A %7D)
+ removeTask(task);%0A %7D%0A %7D)%0A%7D%0A%0Afunction isEmpty(obj) %7B%0A for(var prop in obj) %7B%0A if(obj.hasOwnProperty(prop))%0A return false;%0A %7D%0A%0A return true;
%0A%7D%0A%0A
@@ -2054,36 +2054,35 @@
stKey,f... |
4615631d6592a278348a621193de88a000518386 | Update print prices | js/config.js | js/config.js | import $ from "jquery";
let config = {
// in cents
depositPrice: 500,
pricePerPage: 4,
previewPrefix: $.cookie('previewPrefix') || '/home/mi/info_Dokumente/',
configurePreview() {
$.cookie('previewPrefix', this.previewPrefix, {expires: 10000});
this.isPreviewConfigured = true;
},
get isPreviewCo... | JavaScript | 0 | @@ -88,9 +88,9 @@
ge:
-4
+3
,%0A%0A
|
180d75e4163e316421ba62411f006f078bf79206 | load active filters using JS and not jinja2 | flask_admin/static/admin/js/filters.js | flask_admin/static/admin/js/filters.js | var AdminFilters = function(element, filtersElement, filterGroups) {
var $root = $(element);
var $container = $('.filters', $root);
var lastCount = 0;
function getCount(name) {
var idx = name.indexOf('_');
if (idx === -1) {
return 0;
}
return parseInt(name.... | JavaScript | 0.000001 | @@ -58,16 +58,31 @@
erGroups
+, activeFilters
) %7B%0A
@@ -3863,16 +3863,48 @@
field);%0A
+ %0A return $field;%0A
%7D%0A%0A
@@ -4187,24 +4187,423 @@
lse;%0A %7D);
+%0A %0A if(activeFilters.length %3E 0)%7B%0A $('button', $root).show();%0A %7D%0A %0A // add active fil... |
6b1324a448eb88a4f9a34502fa9a771770bd93b0 | fix event | js/events.js | js/events.js | window.onload = function () {
var siteTitle = document.getElementsByClassName('site-title')[0];
siteTitle.onclick = logoClick;
var pageLinkAboutMe = document.getElementsByClassName('page-link about-me')[0];
pageLinkAboutMe.onclick = pageLinkAboutMeClick;
var pagination = document.getElementsByClassName('paginat... | JavaScript | 0.000698 | @@ -1405,16 +1405,17 @@
LinkArch
+i
veClick(
|
2c21e1138073aed696c6b57a62af883675e6143f | Rewrite test with utility methods | backend/test/users.js | backend/test/users.js | var expect = require('expect.js')
var mongo = require('mongodb')
var http = require('http')
describe("User registration", function () {
var user = { username: "KtorZ", password: "password" }
beforeEach(function (done) {
mongo.MongoClient
.connect("mongodb://localhost:27017/hexode")
... | JavaScript | 0.000001 | @@ -35,43 +35,13 @@
var
-mongo = require('mongodb')%0Avar http
+utils
= r
@@ -48,20 +48,23 @@
equire('
-http
+./utils
')%0A%0Adesc
@@ -89,27 +89,21 @@
ation%22,
-function ()
+() =%3E
%7B%0A v
@@ -174,24 +174,16 @@
Each
-(function
(done
-)
+ =%3E
%7B%0A
@@ -193,135 +193,46 @@
-mongo.MongoClient%... |
16fdeee494adf55df638f5d2d50b373260fbc4b4 | Fix download link; | docs/assets/js/script.js | docs/assets/js/script.js | ;$(function(){
var $window = $(window),
$document = $(document),
scrollTime = 1.2,
scrollDistance = 300,
$services = $('.service'),
$links = $('.link'),
$tutorials = $('.tutorial-item'),
$socialIcons = $('.social-icon-anchor'),
$serviceArea = $('#services-ar... | JavaScript | 0 | @@ -1789,11 +1789,16 @@
ses/
-tag
+download
/2.0
|
85705316e16876e163d01201442d8639fafad71e | Add the ability to set a maximum indentation to adjustBlockDepthForContentState | src/model/transaction/adjustBlockDepthForContentState.js | src/model/transaction/adjustBlockDepthForContentState.js | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow strict-local
* @emails oncall+draft_js
*/
'use strict';
import type ContentState from 'ContentState';
import... | JavaScript | 0.000008 | @@ -486,16 +486,37 @@
number,%0A
+ maxDepth?: number,%0A
): Conte
@@ -928,24 +928,105 @@
(0, depth);%0A
+ if (maxDepth != null) %7B%0A depth = Math.min(depth, maxDepth);%0A %7D%0A
return
|
f6999290845fdaeb64a762b223af47d768c9accf | Update module.js | js/module.js | js/module.js | typeof global != 'undefined' || (window.global = window);
var dirname;
var filename = '/module.js';
var scripts = document.scripts;
var length = scripts.length;
var src;
for (var i = 0; i < length; ++i) {
src = scripts[i].src;
if (src.indexOf(filename) > 0 )
dirname = src.split(filename)[0] + '/';
break;
}... | JavaScript | 0.000002 | @@ -404,16 +404,61 @@
rent) %7B%0A
+ if (path == '.') %7B%0A return path;%0A %7D%0A %0A
if (pa
@@ -1023,18 +1023,12 @@
che%5B
-m.filename
+path
%5D =
|
88b65a8943218bd0d5463cdaafb8e74855b82214 | add timeout | js/notify.js | js/notify.js | 'use strict';
// Create an immediately invoked functional expression to wrap our code
(function() {
// Define our constructor
window.notify = function() {
// Create global element here
// Define option defaults
var defaults = {
title: 'default title',
dir: 'ltr',
body: 'default notifi... | JavaScript | 0.000008 | @@ -1079,24 +1079,155 @@
ions.dir%7D);%0A
+ if(this.options.timeout)%7B%0A setTimeout(this.notification.close.bind(this.notification), this.options.timeout);%0A %7D%0A
%7D%0A el
@@ -1580,24 +1580,167 @@
ions.dir%7D);%0A
+ if(this.options.timeout)%7B%0A setTimeout(this.noti... |
923ad691ee9fabe92e6989ddc14f2eb4ee8da13c | Add warning that querying database can take a few minutes | js/report.js | js/report.js | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
function resetGenerateButton() {
$('#generate-button').prop('disabled', false);
$('#generate-button').html('Ge... | JavaScript | 0 | @@ -4836,16 +4836,48 @@
abase...
+ (this could take a few minutes)
');%0A%0A
|
e4cbd841e1cbe4882f7822e966387f7e354d547b | Fix template nesting | js/router.js | js/router.js | App.Router.map(function () {
this.resource('projects', {path: '/'});
this.resource('project', {path: '/project/:project_id'});
this.resource('investigation', {path: '/project/:project_id/:investigation_id'})
});
App.ProjectsRoute = Ember.Route.extend({
model: function () {
return this.store.find('project')... | JavaScript | 0 | @@ -61,19 +61,32 @@
th: '/'%7D
-);%0A
+, function()%7B%0A
this.r
@@ -137,16 +137,18 @@
_id'%7D);%0A
+
this.r
@@ -221,16 +221,24 @@
on_id'%7D)
+ %0A %7D);
%0A%7D);%0A%0AAp
|
0865921a8089f22dc2027ad8b32ae585571b0ab8 | Update script.js | js/script.js | js/script.js | (function(window, document, undefined) {
window.onload = init;
function init() {
//get the canvas
var canvas = document.getElementById("mapcanvas");
var c = canvas.getContext("2d");
var width = 512;
var height = 288;
var blockSize = 16;
document.getE... | JavaScript | 0.000002 | @@ -303,441 +303,161 @@
- document.getElementById(%22startbtn%22).onclick = paintscreen;%0A %0A document.onkeypress = myKeyPress(event);%0A %0A function myKeyPress(e)%7B%0A%0A var keynum;%0A%0A if(window.event)%7B // IE%09%09%09%09%09%0A %09keynum = e.k... |
4120db6c9e953f9a905f24d3e430039270fab797 | make ammendents to css and js | js/script.js | js/script.js | // current color of the brush
var currentColor = "black";
// This creates the rows of pixels
function createPixels() {
let pixels = document.getElementById('pixels');
pixels.className = "newDiv row";
//creates multiple divs within the board, and sets the width, height and floats left
for (let i = 0; i... | JavaScript | 0 | @@ -1281,24 +1281,181 @@
;%0A %7D);%0A
+ pixel%5Bk%5D.addEventListener('click', function() %7B%0A this.style.backgroundColor = currentColor;%0A this.style.border = currentColor;%0A %7D);%0A
%7D%0A%7D%0A%0Aini
|
e434162d7a5e4a691c92c5341645c552301430c5 | Update script.js | js/script.js | js/script.js | (function(window, document, undefined) {
window.onload = init;
function init() {
//get the canvas
var canvas = document.getElementById("mapcanvas");
var c = canvas.getContext("2d");
//create an empty map
var map = new Array(canvas.width);
for(var i ... | JavaScript | 0.000002 | @@ -3640,29 +3640,16 @@
it++;%0A
- %0A
|
f870423763d74001d605a8e5f5d4b09faab44a0e | test swipe plugin | js/script.js | js/script.js | /**
* Created by Warren on 2017-07-25.
*/
// todo: add search filter(filter on char keyup for images that contain the word in the search
//Write this function in vanilla javaScript as I need to get more comfortable with the language
function searchAndDetroy() {
var images = document.getElementsByClassName('imag... | JavaScript | 0.000001 | @@ -1035,32 +1035,94 @@
e.display = '';%0A
+ window.localStorage.setItem('intro', 'true');%0A
%7D el
@@ -2237,16 +2237,53 @@
ghtbox;%0A
+ $(image).swipe(%22enable%22); // test
%0A //
|
a26c4030eea987a7cab8054a6ab19de1d236591f | Clean up doxygen query string to have correct callback | js/search.js | js/search.js | ---
---
jQuery(function() {
// Initialize lunr with the fields to be searched, plus the boost.
console.log("Initializing lunr");
window.idx = lunr(function () {
this.field('id');
this.field('title');
this.field('content', { boost: 10 });
});
// Get the generated search_data.json file so lunr.js c... | JavaScript | 0.000113 | @@ -2618,28 +2618,8 @@
page
- + %22&cb=%22 + callback
;%0A
|
d92114f984eedee609fcd0bc127a7b967d04b87d | Update splash.js | js/splash.js | js/splash.js | splasha.innerHTML = "<span class='badge'>New</span>Badge internauta";
splashb.innerHTML = "<span class='badge'>New</span>Materiali della dott.ssa Galzerano e Badge Operatori della scuola";
splashc.innerHTML = "<span class='badge'>New</span>Materiali della dott.ssa Galzerano e Badge Operatori della scuola";
| JavaScript | 0.000001 | @@ -48,24 +48,58 @@
pan%3E
-Badge internauta
+Presto nuovi Badge in base alle ore di navigazione
%22;%0As
@@ -152,191 +152,161 @@
pan%3E
-Materiali della dott.ssa Galzerano e Badge Operatori della scuola%22;%0Asplashc.innerHTML = %22%3Cspan class='badge'%3ENew%3C/span%3EMateriali della dott.ssa Galzerano e Badge Ope... |
7d7f55f3bc7a8eb7acaeac29c17d9cae40f86cc1 | correct getpublicaudiostream file&token URL in js | js/viewer.js | js/viewer.js | /**
* Audio Player
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the LICENSE.md file.
*
* @author Marcel Scherello <audioplayer@scherello.de>
* @author Sebastian Doell <sebastian@libasys.de>
* @copyright 2016-2017 Marcel Scherello
* @copyright 2015 Sebastian Doell
... | JavaScript | 0 | @@ -829,39 +829,45 @@
ublicaudiostream
+?file=
%7Bfile%7D
-?
+&
token=%7Btoken%7D',%7B
|
d8c4416c4177ce57c66a16c2c9cb1057f73c6119 | Fix bug that prevents `sails generate role` from running more than once | Generator.js | Generator.js | /**
* Module dependencies
*/
var util = require('util');
var _ = require('lodash');
var indexFunc = require('./index');
var funcs = require('./lib/functions');
_.defaults = require('merge-defaults');
/**
* sails-generate-sails-generate-role
*
* Usage:
* `sails generate sails-generate-role`
*
* @description G... | JavaScript | 0 | @@ -793,19 +793,17 @@
indOne,%0A
-
%0A
+
before
@@ -1683,16 +1683,40 @@
extRole
+and hooks/role/index.js
exists y
@@ -1848,10 +1848,23 @@
ync(
-))
+roleCtxPath)) %7B
%0A
@@ -1944,16 +1944,256 @@
xt.js' %7D
+;%0A %7D%0A var roleHookPath = require('path').resolve(scope.rootPath, './api/hooks/role/i... |
68e3dc41ad4d1850306ddd7f044d980c92855bfd | Add new file to grunt | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// Modules
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('bootcamp');
// Grunt Tasks
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
... | JavaScript | 0.000001 | @@ -635,32 +635,95 @@
_consume.scss',%0A
+ 'src/decode/helpers/string/_find-ending-quote.scss',%0A
'src/d
|
48acb5332f83fcc02004ebcd9f62f7df82cba26b | Clean up some default code | Gruntfile.js | Gruntfile.js | /*
* grunt-purifycss
* https://github.com/purifycss/grunt-purify-css
*
* Copyright (c) 2015 Phoebe Li, Matthew Rourke, Kenny Tran
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all: [
'Gruntfile.... | JavaScript | 0.000044 | @@ -1451,88 +1451,8 @@
%7D%0A
- %7D,%0A%0A // Unit tests.grunt%0A nodeunit: %7B%0A tests: %5B'test/*_test.js'%5D%0A
@@ -1670,56 +1670,8 @@
n');
-%0A grunt.loadNpmTasks('grunt-contrib-nodeunit');
%0A%0A
|
ff64dae883cf683cdc32284697b54244e8afb7d1 | Add test task to alias qunit and jshint | Gruntfile.js | Gruntfile.js | /*jshint node: true */
/*global module */
var requirejs = require('requirejs');
requirejs.config({
appDir : __dirname + '/src/',
baseUrl : __dirname + '/src/'
});
var generateInit = requirejs('generate');
var license = '/*!\n' +
' * Modernizr v3.0.0pre\n' +
' * modernizr.com\n' +
' *\n' +
' * Copyright (c) Fa... | JavaScript | 0.000009 | @@ -4873,16 +4873,52 @@
%7D%0A %7D);%0A
+ // Load required contrib packages%0A
grunt.
@@ -5976,24 +5976,94 @@
fig));%0A %7D);
+%0A // Testing tasks%0A grunt.registerTask('test', %5B'jshint', 'qunit'%5D);
%0A%0A // Travi
@@ -6105,20 +6105,19 @@
avis', '
-quni
+tes
t');%0A%0A
|
77eeb13f08b71e0c303c89c2ea7b990c2998829d | Add "grunt generate" task | Gruntfile.js | Gruntfile.js | var path = require('path');
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
files: {
js: [
'public/js/vendor/jquery.js',
'public/js/vendor/jquery.stickytableheaders.js',
'public/js/vendor/underscore.js',
'public/js/vendo... | JavaScript | 0.999999 | @@ -3097,15 +3097,16 @@
sk('
-default
+generate
', %5B
@@ -3140,27 +3140,8 @@
cts'
-, 'jst', 'compress'
%5D);%0A
@@ -3197,12 +3197,78 @@
nmap'%5D);
+%0A grunt.registerTask('default', %5B'generate', 'jst', 'compress'%5D);
%0A%0A%7D;
|
25371dbe071ae3fe329d61618bf40867f088131d | Fix globbing error in watch task source specification so "grunt watch" now works properly | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTas... | JavaScript | 0 | @@ -2084,16 +2084,19 @@
%5B'src/*
+*/*
'%5D,%0A%09%09%09%09
|
5c4bbcf2037ed53732b65abe299243f91bcd7589 | Debug build | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! JS <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
build: {
... | JavaScript | 0.000001 | @@ -4142,24 +4142,82 @@
-keycdn');%0A%0A
+ console.log('zoneId: ', process.env.KEYCDN_ZONE_ID);%0A%0A
// Defau
|
91732fb2bfd25af8233e03a85d1b9b1dc8e4d81e | Restructure tweaks | Gruntfile.js | Gruntfile.js | /*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Metadata.
pkg: grunt.file.readJSON('package.json'),
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' ... | JavaScript | 0 | @@ -1707,19 +1707,28 @@
%09%09%09%7B
-src: %5B'src/
+expand: true, src: '
%3C%25=
@@ -1745,17 +1745,29 @@
%3E*.html'
-%5D
+, cwd: 'src/'
, dest:
@@ -1784,16 +1784,31 @@
ame %25%3E/'
+, flatten: true
%7D%0A%09%09%09%09%5D%0A
|
e05fd1df4a313b0014e04c6a9ba1ad70f67c1929 | fix indentation | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
grunt.initConfig({
jst: {
compile: {
options: {
namespace: 'TFT',
processName: function (filepath) {
return filepath.replace(/(app\/public\/js\/templates\/|\.tpl)/ig, '');
... | JavaScript | 0.000358 | @@ -55,24 +55,25 @@
(%7B%0A%09%09jst: %7B%0A
+%09
@@ -79,24 +79,25 @@
compile: %7B%0A
+%09
@@ -107,24 +107,25 @@
options: %7B%0A
+%09
@@ -150,16 +150,17 @@
'TFT',%0A
+%09
@@ -206,16 +206,17 @@
path) %7B%0A
+%09
@@ -302,16 +302,17 @@
g, '');%0A
+%09
... |
ad04a8267b17153dcf7f1ae54cf99c928ff3d874 | Update Gruntfile.js | Gruntfile.js | Gruntfile.js | /*!
* FastGap's Gruntfile
* http://fastgap.mobi/
* Licensed under MIT
*/
var buildConfig = require('./config/build');
module.exports = function (grunt) {
"use strict";
// Project configuration
grunt.initConfig({
// Default Paths
paths: {
src: "src",
dist: "dist"
},
// Assets d... | JavaScript | 0 | @@ -289,16 +289,49 @@
: %22dist%22
+,%0A bower: %22bower_components%22
%0A %7D,%0A
|
9d2cde8dac917d7ff593ce3e99836c9ac294a33a | Fix formatting in gruntfile | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dist: {
options: {
style: 'compressed',
sourcemap: 'none',
noCache: true
},
files: {
'src/fraction-grid.css' : 'sass/main.scss'
}
}
},... | JavaScript | 0.000045 | @@ -130,28 +130,19 @@
ns: %7B%0A%09%09
-
+%09%09%09
style: '
@@ -156,28 +156,19 @@
sed',%0A%09%09
-
+%09%09%09
sourcema
@@ -184,20 +184,11 @@
,%0A%09%09
-
+%09%09%09
noCa
@@ -203,16 +203,10 @@
e%0A%09%09
-
+%09%09
%7D,%0A%09
|
1525e111f7381c520eb04c6affcd89e04ee63aad | Remove empty configuration from `Gruntfile.js`. | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
'use strict';
// Configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jscs: {
options: {
config: '.jscsrc'
},
bin: 'bin/**/*.js',
grunt: 'Gruntfile.js',
lib... | JavaScript | 0 | @@ -776,62 +776,8 @@
s'%5D%0A
- %7D,%0A release: %7B%0A options: %7B%7D%0A
|
265f974cee4e5931127b1826e0492d19dd6810aa | Update repo settings. | Gruntfile.js | Gruntfile.js | /*global module */
module.exports = function (grunt) {
var pkg = grunt.file.readJSON('package.json');
var banner = '/* ' + pkg.name + ' ' + pkg.version + ' (c) ' + pkg.author + ' */\n';
grunt.initConfig({
pkg: pkg,
clean: {
api: [
'docs/api/*'
... | JavaScript | 0 | @@ -4452,16 +4452,166 @@
'dist'%5D
+,%0A github: %7B%0A repo: 'dpmcmlxxvi/olexp',%0A accessTokenVar: 'GITHUB_ACCESS_TOKEN'%0A %7D,
%0A
|
b5c9fb9d200f7ac4518fd1f94618da08455c851b | remove comma | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
build: {
... | JavaScript | 0.999966 | @@ -528,33 +528,32 @@
'%5D%0A %7D
-,
%0A %7D,%0A
@@ -740,33 +740,32 @@
%7D
-,
%0A %7D,%0A
@@ -846,25 +846,24 @@
%7D%0A %7D
-,
%0A %7D);%0A%0A
|
44f242ddd21df8b9c9537b874e68e4d4b490d424 | Add a git commit hash to perseus.js for easier subperseus debugging | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
var srcFiles = [
// TODO(alpert): Unify these paths
"src/core.js",
"src/util.js",
"build/src/info-tip.js",
"build/src/renderer.js",
"build/src/editor.js",
"src/widgets.js",
"build/src/components/number-input.js",
"build/src/components/graph-setting... | JavaScript | 0.000001 | @@ -1505,24 +1505,275 @@
%7D%0A
+ %7D,%0A gitRevision: %7B%0A command: 'echo %22// commit %60git rev-parse HEAD%60%22 %3E build/git-revision.js',%0A options: %7B%0A stderr: true,%0A stdout: true,%0A failOnError: true%0A ... |
ff2ba79055447771ae98d4fe481c28bdf78785b1 | Fix watch qunit | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
options: {
curly: true,
eqeqeq: true,
es3: true,
immed: true,
indent: 2,
latedef: true,
newcap: true,
noarg: true,
... | JavaScript | 0.000001 | @@ -2537,32 +2537,36 @@
int:src', 'qunit
+:all
'%5D%0A %7D,%0A
@@ -2670,16 +2670,20 @@
, 'qunit
+:all
'%5D%0A
|
b93893562bcc826455a28933ef32785a066af82f | removing the "use strict" duplication | Gruntfile.js | Gruntfile.js | /*
*
* * Copyright 2015 Acrolinx GmbH
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicabl... | JavaScript | 0.688515 | @@ -2101,24 +2101,246 @@
Banners:true
+,%0A banner: %22'use strict';%5Cn%22,%0A process: function(src, filepath) %7B%0A return '// Source: ' + filepath + '%5Cn' +%0A src.replace(/(%5E%7C%5Cn)%5B %5Ct%5D*('use strict'%7C%22use strict%22);?%5Cs*/g, '$1');%0A %7D
%0A %7D,%... |
a07b604c8c8cd0776afaad749c70b0e8968a2d8a | Update the default Grunt task to use the new build task instead of repeating the same task list. | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: {
build: {
src: "build"
}
},
copy: {
build: {
files: [
{
expand: true,
cwd: 'source/',
src: ['client/**/*.html', 'client/**/*.css', 'client/**/*.js', 'server/**'],... | JavaScript | 0 | @@ -2416,52 +2416,13 @@
, %5B'
-clean', 'copy', 'htmlmin', 'cssmin', 'uglify
+build
', '
|
f6046cd4c17ce0167179c05427f7f7a8ab12b0a0 | clean tmp after build | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function(grunt) {
// load grunt tasks based on dependencies in package.json
require('load-grunt-tasks')(grunt);
var help = function(){
grunt.log.writeln('use `grunt build:dev` to build to dist/dev folder');
grunt.log.writeln('use `grunt build:prod` to build to dist folder... | JavaScript | 0 | @@ -5206,22 +5206,19 @@
,%0A
-server
+tmp
: '.tmp'
@@ -7182,16 +7182,33 @@
st:prod'
+,%0A 'clean:tmp'
%0A %5D);%0A
|
905571f88bc2d6131de77da4ab3dc21aff084923 | Add ChromeNoSandobx declaration | Gruntfile.js | Gruntfile.js | /*
* Copyright (c) 2016 Vendor
* Licensed under the MIT license.
*/
var ConfigParser = require('wirecloud-config-parser');
var parser = new ConfigParser('src/config.xml');
module.exports = function (grunt) {
'use strict';
grunt.initConfig({
metadata: parser.getData(),
bower: {
... | JavaScript | 0.000001 | @@ -3219,32 +3219,235 @@
options: %7B%0A
+ customLaunchers: %7B%0A ChromeNoSandbox: %7B%0A base: %22Chrome%22,%0A flags: %5B'--no-sandbox'%5D%0A %7D%0A %7D,%0A
|
8c22e9967201e9672f0a3551d0920ee9db3781c4 | Add CNAME to build and rename task | Gruntfile.js | Gruntfile.js | /**
* Build system for the DJsMusic Client
* @param {Object} grunt
*/
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
cfg: {
},
clean: {
build: [
'build'
]
},
cssmin: {
production: {
expand: true,
... | JavaScript | 0 | @@ -1117,32 +1117,92 @@
build/', filter:
+ 'isFile'%7D,%0A%09%09 %7Bsrc: %5B'CNAME'%5D, dest: 'build/', filter:
'isFile'%7D%0A%09%09
@@ -3259,12 +3259,13 @@
sk('
-test
+build
', %5B
|
e887d43c156e854501eec406d4ba77bc49ce9101 | Add Hammer.js to 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 | @@ -935,32 +935,62 @@
nano: 'empty:',%0A
+ hammer: 'empty:',%0A
stri
|
abf735050ae5a68dbfe21fd2dd1eb78af6348b7d | add grunt task for compressing the chrome extension | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jade: {
debug: {
options: {
data: {
debug: true
},
pretty: true
},
files: {
"debug/popup.html": "modules/jade/popup.jade"
}
},
rel... | JavaScript | 0.000001 | @@ -2284,24 +2284,251 @@
.js%22%0A %7D,%0A
+ compress: %7B%0A deploy: %7B%0A options: %7B%0A archive: 'B%C3%A4ttre_Nyheter.zip'%0A %7D,%0A files: %0A %5B%0A %7B%0A src: %5B'chrome-plugin/**'%5D, dest: './'%0A %7D%0A %5D%0A %7D%0A ... |
9b2f1d6c6767243cdca80bb1aade56fdd68d48d8 | Rename assets for deploy | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: {
payload: {
src: ['dist/js/analytics*']
}
},
compress: {
dist: {
options: {
mode: 'gzip'
},
expand: true,
extDot: 'last',
... | JavaScript | 0.000001 | @@ -150,25 +150,23 @@
dist/js/
-analytics
+payload
*'%5D%0A
@@ -740,25 +740,23 @@
dist/js/
-analytics
+payload
.js',%0A
@@ -1012,25 +1012,23 @@
n')%5B'js/
-analytics
+payload
.js'%5D%0A
@@ -1302,30 +1302,33 @@
dest: 'dist/
-loader
+analytics
.js'%0A
@@ -1480,25 +1480,23 @@
dist/js/
-analytics
+p... |
a25408a57213ebe2171dc2cfc3bf251fa9bfede0 | test task fixed | Gruntfile.js | Gruntfile.js | 'use strict';
var path = require("path");
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-bump');
grunt.loadNpmTasks('grunt-exec');
grunt.initConfig({
bump: {
options: {
files: ['package.json'],
updateConfigs: [],
commit: t... | JavaScript | 0.000016 | @@ -744,44 +744,57 @@
md:
-'mocha ' + path.resolve(__dirname,
+path.relative(%22%22, %22node_modules/.bin/mocha%22) +
'
+
test
@@ -809,17 +809,16 @@
test.js'
-)
%0A
|
419e8d973f9fe702548d8b4b92fe1e1b217a5124 | Fix Gruntfile to build with Travis | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-yuidoc');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-uglify');
// Proj... | JavaScript | 0 | @@ -2310,25 +2310,17 @@
s',
-%5B'lint', 'quni
+'defaul
t'
-%5D
);%0A%0A
|
c86ac6fdb2119c3b1e276fa309052d8caa4cf5d5 | connect is back | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
connect: {
server: {
options: {
hostname: '127.0.0.1',
base: '.',
port: 8080
}
}
},
jshint: {
files: ['src/**/*.js'],
options: {
... | JavaScript | 0.000001 | @@ -2001,16 +2001,27 @@
uglify',
+ 'connect',
'qunit'
|
cdf490f36aa0bab90b1af0f999d8061ea487ff12 | add release plugin | Gruntfile.js | Gruntfile.js | /*
* grunt-tinify
* https://github.com/wensheng.yan/grunt-tinify
*
* Copyright (c) 2016 Wensheng Yan
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
var tmpFile = ".pngTinify";
var keyFile = '_key.json';
if(!grunt.file.exists(keyFile)){
grunt.fail.warn("Please go ... | JavaScript | 0.000001 | @@ -513,16 +513,168 @@
onfig(%7B%0A
+ release: %7B%0A options: %7B%0A npm: true,%0A npmtag: false,%0A indentation: '%5Ct',%0A tagName: 'v%3C%25= version %25%3E'%0A %7D%0A %7D,%0A%0A
jshi
@@ -1501,16 +1501,55 @@
eunit');
+%0A grunt.loadNpmTasks('grunt-release');
%0A%0... |
5f08679d21ac1529ef7848b412814077e5bcb636 | Update tests to add option test | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
grunt.initConfig({
nugetpack: {
dist: {
src: 'tests/Package.nuspec',
dest: 'tests/'
}
},
nugetrestore: {
restore: {
src: 'tests/packages.config',
dest: 'pa... | JavaScript | 0 | @@ -66,32 +66,101 @@
nugetpack: %7B%0A
+ options: %7B%0A verbose: true%0A %7D,%0A%0A
dist
|
78c522fbe68c2c77dce6fec6fde0bc5e9decd8f5 | add watch task for javascript | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
// Package configuration
grunt.initConfig({
// Metadata
pkg: grunt.file.readJSON('package.json'),
banner: '/*!\n' +
' * <%= pkg.name %> v<%= pkg.version %> (<%= pkg.homepage %>)\n' +
' * Copyright 2014-<%= grunt.template.today("yyyy") %> <%= ... | JavaScript | 0.000001 | @@ -2188,17 +2188,93 @@
ebanner'
-,
+%5D%0A %7D,%0A js: %7B%0A files: 'javascripts/**/*.js',%0A tasks: %5B
'concat'
@@ -2402,16 +2402,35 @@
s/*.css'
+,'javascripts/*.js'
%5D,%0A
|
1d7589471b51aee9d898b853de19e2e27a0c98ed | fix tasks run during watch | Gruntfile.js | Gruntfile.js | /*jshint node:true, maxstatements:false*/
module.exports = function(grunt) {
var MINJS = ~~grunt.option('minjs');
// Automatically load grunt tasks
require('load-grunt-tasks')(grunt);
// Show timing of each grunt task at the end of build
if (grunt.option('timing')) {
require('time-grunt'... | JavaScript | 0.000016 | @@ -1373,58 +1373,16 @@
%5B'b
-owerRequirejs', 'copy:src-to-dist', 'lint', 'babel
+uild:dev
'%5D,%0A
@@ -1603,58 +1603,16 @@
%5B'b
-owerRequirejs', 'copy:src-to-dist', 'lint', 'babel
+uild:dev
'%5D,%0A
|
223a65f5be9ec40c6eaa638935148d033b79f0b8 | No devel | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
options: {
curly: true,
eqeqeq: true,
immed: true,
indent: 2,
latedef: true,
newcap: true,
noarg: true,
quotmark: tru... | JavaScript | 0.999866 | @@ -716,31 +716,8 @@
: %7B%0A
- devel: true,%0A
|
573a885b964477a451e525c0fb3f1223bd1d2af1 | Use the console.log function | buttonclick.js | buttonclick.js | /*
* A simple test that fetches a list of items from the webserver
* and displays them in a UITableView.
*/
var testo = require ('./testo');
var host = testo.host;
var device = testo.device;
// This step is executed on the device. Device steps are always passed
// the target, app, and next object as their final ... | JavaScript | 0.000047 | @@ -662,54 +662,64 @@
*/%0A%09
-UIALogger.logDebug ('pressing the click button
+console.log ('using the log function, gawd this is nice!
');%0A
|
18ab7516bd844b9814c231d243da32d9410e56c0 | Add images to filerev | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
'use strict';
// Load Grunt tasks automatically
require('load-grunt-tasks')(grunt, { scope: 'devDependencies' });
grunt.initConfig({
// ---------------------------------------------------------------------
// | Project Settings ... | JavaScript | 0 | @@ -3215,24 +3215,82 @@
%3E/css/*.css'
+,%0A '%3C%25= settings.dir.dist %25%3E/img/*.png'
%0A
|
7eebc05447699aa6a7671cfd00847b5ce28749d2 | Fix ReferenceError: event is not defined | src/encoded/static/components/inputs/object.js | src/encoded/static/components/inputs/object.js | 'use strict';
var React = require('react');
var globals = require('../globals');
var fetched = require('../fetched');
var ResultTable = require('../search').ResultTable;
var openLinksInNewWindow = function(e) {
if (e.isDefaultPrevented()) return;
// intercept links and open in new tab
var target = event.... | JavaScript | 0.007581 | @@ -308,20 +308,16 @@
rget = e
-vent
.target;
|
63e8dd74a6b511c92ebf7fba437682136e706d2a | Allow user with "spid.read.{spid}" permission to select read the data | src/foam/nanos/auth/ServiceProviderAwareDAO.js | src/foam/nanos/auth/ServiceProviderAwareDAO.js | /**
* @license
* Copyright 2019 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.CLASS({
package: 'foam.nanos.auth',
name: 'ServiceProviderAwareDAO',
extends: 'foam.dao.ProxyDAO',
documentation: `A DAO decorator which:
- filters find and select by the 'owning' Se... | JavaScript | 0.000001 | @@ -3625,24 +3625,44 @@
dPredicate =
+ MLang.OR(%0A
MLang.EQ(sp
@@ -3677,16 +3677,100 @@
ty, spid
+),%0A new ServiceProviderAwarePredicate(x, null, getPropertyInfos())%0A
);%0A%0A
|
9e0bcb35fda9447cea81c9833859ddafda7b4830 | Rename app build file | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
var vendors = 'jquery backbone backbone.marionette'.split(' ');
grunt.initConfig({
browserify: {
options: {
extensions: [ '.coffee', '.js' ],
transform: ['coffeeify']
},
app: {
src:... | JavaScript | 0.000001 | @@ -363,14 +363,11 @@
ist/
-bundle
+app
.js'
|
781e426828783cc8eb13285f61d0cb0fa884ddb1 | Build files list for uglify dynamically. | Gruntfile.js | Gruntfile.js | // grunt-contrib-livereload Middleware
'use strict';
var path = require('path');
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet;
var folderMount = function folderMount(connect, point) {
return connect.static(path.resolve(point));
};
// Configuration
module.exports = function(grunt... | JavaScript | 0 | @@ -2304,154 +2304,52 @@
-colorbox: %7B%0A src: 'scripts/plugins/jquery.colorbox.js',%0A dest: 'dist/scripts/plugins/jquery.colorbox.js'%0A
+plugins: %7B%0A files: %5B%0A
%7D,%0A
@@ -2336,36 +2336,32 @@
iles: %5B%0A
- %7D,%0A
sync
@... |
3d6cc1530a9a69e1eb8b93060928cf6c5e71d3f7 | Test latest released patch versions of 1.x and 2.x | Gruntfile.js | Gruntfile.js | /*global module:false*/
module.exports = function(grunt) {
"use strict";
// The concatenated file won't pass onevar but our modules can
var readOptionalJSON = function( filepath ) {
var data = {};
try {
data = grunt.file.readJSON( filepath );
} catch(e) {}
return data;
},
srcHintOptions = readO... | JavaScript | 0 | @@ -744,17 +744,17 @@
dev+2.0.
-2
+3
%22,%0A%09%09%09%22d
@@ -761,17 +761,17 @@
ev+1.10.
-1
+2
%22,%0A%09%09%09%22d
|
119ca0dcdcc382696c0449bae19ce3818861e25e | Update Gruntfile.js | Gruntfile.js | Gruntfile.js | /*!
* FastGap's Gruntfile
* http://fastgap.mobi/
* Licensed under MIT
*/
var buildConfig = require('./config/build');
module.exports = function (grunt) {
"use strict";
var appConfig = {
// Default Paths
paths: {
src: 'src',
dist: 'dist',
bower: 'bower_components'
},
// Ass... | JavaScript | 0.000001 | @@ -1049,16 +1049,208 @@
*/%5Cn',%0A%0A
+ /************************************%0A * grunt-contrib-clean%0A * Clean files and folders%0A ************************************/%0A clean: %7B%0A dist: 'dist/%7Bcss,js%7D'%0A %7D,%0A%0A
/***
|
5f9e9908b694ed4c8eff44a3f07637a5fd54379e | Implement grunt-bump to easily manage versionning | Gruntfile.js | Gruntfile.js | /**
* grunt-angular-translate
* https://github.com/firehist/grunt-angular-translate
*
* Copyright (c) 2013 "firehist" Benjamin Longearet, contributors
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all:... | JavaScript | 0 | @@ -584,24 +584,457 @@
p'%5D%0A %7D,%0A%0A
+ /**%0A * Increments the version number, etc.%0A */%0A bump: %7B%0A options: %7B%0A files: %5B%0A %22package.json%22%0A %5D,%0A commit: true,%0A commitMessage: 'chore(release): v%25VERSION%25',%0A commitFiles:... |
b4a88f6816d1ae0f83733e83a0353eceeb5ee156 | make e2e coverage report like karma coverage | Gruntfile.js | Gruntfile.js | /* eslint-env node */
module.exports = function(grunt) {
grunt.initConfig({
connect: {
server: {
options: {
debug: true,
keepalive: true
}
}
},
eslint: {
target: ['app/js', 'test'],
... | JavaScript | 0 | @@ -2120,41 +2120,8 @@
e2e'
-,%0A print: 'detail'
%0A
|
43b1441f825d3322956b3472166cf4cb69de5790 | add directory to cleaning target | Gruntfile.js | Gruntfile.js | module.exports = function(grunt){
grunt.initConfig({
cssmin: {
target: {
expand: true,
src: ['app/webroot/css/**/openslideshare*.css', '!*.min.css'],
dest: './',
ext: '.min.css'
}
},
csslint: {
... | JavaScript | 0 | @@ -759,16 +759,33 @@
logs/*%22,
+ %22app/reports/*%22,
%22!app/t
|
45c172d316592927407235702be9d4f6f657ef17 | Remove IE7 | Gruntfile.js | Gruntfile.js | // browsers to test in saucelabs
var browsers = [{
browserName: "internet explorer",
platform: "XP",
version: "7"
}, {
browserName: "internet explorer",
platform: "WIN7",
version: "8"
}, {
browserName: "internet explorer",
platform: "WIN7",
version: "9"
}, {
browserName: "internet explorer",
platf... | JavaScript | 0.000009 | @@ -84,82 +84,8 @@
r%22,%0A
- platform: %22XP%22,%0A version: %227%22%0A%7D, %7B%0A browserName: %22internet explorer%22,%0A
pl
|
d29a8e38d3f838d901a8081b6458429c92c869bc | Update dist typings with a main module | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
require('grunt-dojo2').initConfig(grunt);
};
| JavaScript | 0 | @@ -69,14 +69,91 @@
ig(grunt
+, %7B%0A%09%09dtsGenerator: %7B%0A%09%09%09options: %7B%0A%09%09%09%09main: 'dojo-actions/main'%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D
);%0A%7D;%0A
|
655b0641babbd68aab2c70d8202c1f5b7f951f07 | Fix minor bug. | Gruntfile.js | Gruntfile.js |
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
//jshintrc: '.jshintrc',
all: ['Grunfile.js', 'talkie.js', 'public/js/*.js', 'routes/*.js'],
options: {
globals: {
'angular': true,
'_': true,
'c... | JavaScript | 0 | @@ -1493,35 +1493,36 @@
development:
-tru
+fals
e,%0A %7D,%0A
|
effa9eab4a46fe128f032743ed4baf54f0cd97f5 | add list to channel page for dev | src/component/channel.js | src/component/channel.js | import React, {PureComponent} from 'react'
import CSSModules from 'react-css-modules'
import MemberList from './member-list'
import NowPlaying from './now-playing'
import ActionPanel from './action-panel'
import PlayerAudio from './player-audio'
import style from './channel.css'
@CSSModules(style)
export default clas... | JavaScript | 0 | @@ -199,16 +199,51 @@
-panel'%0A
+import SongList from './song-list'%0A
import P
@@ -509,16 +509,36 @@
Panel/%3E%0A
+ %3CSongList/%3E%0A
|
deac9af0a50638a571734c1199d8db07f2928dbd | Fix window drag 3 | src/components/Editor.js | src/components/Editor.js | import React from "react";
import styled from "styled-components";
import {
Editor as FabricEditor,
EditorContext,
WithEditorActions
} from "@atlaskit/editor-core";
const EditorWrapper = styled.div`
flex-grow: 1;
overflow-y: scroll;
overflow-x: hidden;
height: 100%;
position: relative;
display: flex;... | JavaScript | 0 | @@ -524,41 +524,8 @@
00%25;
-%0A -webkit-app-region: no-drag;
%0A%0A
|
905397088ebdaa320767fa66cf4c2250d94ea8b7 | Convert <Nicety> to function component | src/components/Nicety.js | src/components/Nicety.js | import React from 'react';
import { Image } from 'react-bootstrap';
import suittie from '../suittie.png';
const Nicety = React.createClass({
render: function() {
let photo;
if (this.props.data.anonymous) {
photo = suittie;
} else {
photo = this.props.data.avatar_url... | JavaScript | 0.999992 | @@ -120,57 +120,21 @@
y =
-React.createClass(%7B%0A render: function() %7B%0A
+(props) =%3E %7B%0A
@@ -152,21 +152,12 @@
- if (this.
+if (
prop
@@ -176,36 +176,32 @@
mous) %7B%0A
-
photo = suittie;
@@ -201,28 +201,24 @@
uittie;%0A
-
-
%7D else %7B%0A
@@ -222,28 +222,2... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.