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 |
|---|---|---|---|---|---|---|---|
c551bd235273609103a9e8ff99902cccc6cf2169 | Use static keyword to identify static member | lib/epp-factory-es6.js | lib/epp-factory-es6.js | var winston = require('winston');
var EPP = require('../lib/epp-es6.js');
var EPPExtension = require('../lib/epp-extension-es6.js');
var SecDnsExtension = require('../lib/secdns-extension-es6.js');
var HexonetExtension = require('../lib/hexonet-extension-es6.js');
var AfiliasExtension = require('../lib/afilias-extensio... | JavaScript | 0 | @@ -729,16 +729,23 @@
%0A %7D%0A%0A
+static
generate
|
81f5ad04ef96262197b9986eb89951e112d02bed | Update to callback | actions/auth_github.js | actions/auth_github.js | passport = require('passport');
exports.auth_github = {
name: 'auth_github',
description: 'endpoint callback for GitHub authentication',
inputs: {
'required' : [],
'optional' : []
},
// authorisedGroups: void(0),
blockedConnectionTypes: [],
outputExample: {
},
run: function(api, connection, next) {
// a... | JavaScript | 0 | @@ -309,19 +309,16 @@
xt) %7B%0A%09%09
-//
api.log(
@@ -327,16 +327,52 @@
nnection
+.params);%0A%09%09// next(connection, true
);%0A%09%09pas
@@ -509,16 +509,100 @@
(err) %7B%0A
+%09%09%09api.log(%22This is the callback for the github authorize%22);%0A%09%09%09api.log(arguments);%0A
%09%09%09if (e
|
1adf660c46bc59fc9fbb1d1c5d4c10a04cdd3c17 | Rename app. | src/common/intl/messages/en.js | src/common/intl/messages/en.js | export default {
app: {
footer: {
madeBy: 'written by CjK based on Daniel Steigerwald\'s Este.js'
},
links: {
firebase: 'Firebase',
home: 'Home',
login: 'Login',
me: 'Me',
todos: 'Todos'
}
},
auth: {
form: {
button: {
login: 'Login',
si... | JavaScript | 0 | @@ -1184,23 +1184,33 @@
title: '
-Este.js
+CjK%5C's smart-home
',%0A t
|
35b1bee50dafcb0c683e2ea7cf273fb261efcbfe | Use custom root for S3 paths | admin/server/api/s3.js | admin/server/api/s3.js | /*
TODO: Needs Review and Spec
*/
module.exports = {
upload: function (req, res) {
var knox = require('knox-s3');
var keystone = req.keystone;
var Types = keystone.Field.Types;
if (!keystone.security.csrf.validate(req, req.body.authenticity_token)) {
return res.status(403).send({ error: { message: 'inval... | JavaScript | 0 | @@ -1058,16 +1058,139 @@
else %7B%0A
+%09%09%09%09%09%09%09if (s3Config.root) %7B%0A%09%09%09%09%09%09%09%09return res.send(%7B image: %7B url: s3Config.root + '/' + file.name %7D %7D);%0A%09%09%09%09%09%09%09%7D else %7B%0A%09
%09%09%09%09%09%09%09v
@@ -1207,16 +1207,17 @@
= 's3';%0A
+%09
%09%09%09%09%09%09%09i
@... |
80eea18352a3eb64aca85e1600f1748f5081705a | rename facebook-share to facebook-simple as socialite now has a facebook-share | extensions/socialite.facebook-share.js | extensions/socialite.facebook-share.js | /*!
* Socialite v2.0 - Plain FB Share Extension
* Copyright (c) 2013 Dan Drinkard
* Dual-licensed under the BSD or MIT licenses: http://socialitejs.com/license.txt
*/
(function(window, document, Socialite, undefined)
{
/**
* FB Share is no longer supported, but params are:
* u | data-url | URL to ... | JavaScript | 0.001485 | @@ -3243,19 +3243,20 @@
ook', 's
-har
+impl
e', %7B%0A
|
7495f7aa55dee962108ad588663b8ff2e747fd4a | add localstorage for state holding | src/component/header/Header.js | src/component/header/Header.js | import React, { useState } from "react"
import { Link } from "gatsby"
import '../../styles/header.scss'
import "../../styles/background.scss"
const cycleVisualization = (current) =>{
if(current === 'square'){
return 'Krzywinski'
}
else if(current === 'Krzywinski'){
return 'square'... | JavaScript | 0 | @@ -210,24 +210,86 @@
'square')%7B%0D%0A
+ localStorage.setItem('visualization', 'Krzywinski');%0D%0A
retu
@@ -348,24 +348,82 @@
ywinski')%7B%0D%0A
+ localStorage.setItem('visualization', 'square');%0D%0A
retu
@@ -497,16 +497,97 @@
) =%3E %7B%0D%0A
+ const loadedVisualization = loc... |
ccc23b2f835d561acd654efbb09293030e120900 | replace style with st | src/components/NavBar/index.js | src/components/NavBar/index.js | import React from 'react'
import style from './style.module.css'
import Link from 'gatsby-link'
export const NavBar = () => (
<div className={style.header}>
<nav className={style.wrapper}>
<Link to="/" className={style.logo}>
<img
src="http://galernaya20.com/wp-content/uploads/2015/06/Log... | JavaScript | 0.003423 | @@ -28,19 +28,16 @@
mport st
-yle
from '.
@@ -137,19 +137,16 @@
Name=%7Bst
-yle
.header%7D
@@ -169,19 +169,16 @@
Name=%7Bst
-yle
.wrapper
@@ -208,27 +208,24 @@
lassName=%7Bst
-yle
.logo%7D%3E%0A
@@ -455,19 +455,16 @@
Name=%7Bst
-yle
.logoImg
@@ -510,27 +510,24 @@
lassName=%7Bst
-yle
.menu%7D%3E%0A
... |
ec0dd5696d0afd3160538d5b54d09b447761a4c5 | Update Notification.js | src/components/Notification.js | src/components/Notification.js | 'use strict';
import React from 'react';
const PERMISSION_GRANTED = 'granted';
const PERMISSION_DENIED = 'denied';
const seqGen = () => {
let i = 0;
return () => {
return i++;
};
};
const seq = seqGen();
class Notification extends React.Component {
constructor(props) {
super(props);
let support... | JavaScript | 0 | @@ -543,46 +543,8 @@
%7D
- else %7B%0A supported = false;%0A %7D
%0A%0A
|
a49c9dc05f770f0bb09d000d454e020196ff5eb3 | update duration | src/components/ScaffoldItem.js | src/components/ScaffoldItem.js | import React from 'react';
import { Icon } from 'antd';
import { Link } from 'dva/router';
import Overdrive from 'react-overdrive';
import styles from './ScaffoldItem.less';
export default function ScaffoldItem({ name, description, stargazers_count, coverPicture }) {
return (
<li className={styles.card}>
<... | JavaScript | 0 | @@ -399,9 +399,9 @@
on=%7B
-3
+4
00%7D%3E
|
3623e7b2c3b70ef9a1ed8a14301aab1685a9b197 | Break words on long streamer titles | src/components/StreamerCard.js | src/components/StreamerCard.js | import React, { Component } from "react";
import { observer } from "mobx-react";
import styled from "styled-components";
import { Card, CardTitle, CardActions, CardText } from "react-toolbox/lib/card";
import Button from "react-toolbox/lib/button/Button";
import axios from "axios";
const OnlineCard = styled(Card)`
b... | JavaScript | 0 | @@ -195,16 +195,67 @@
/card%22;%0A
+import %7B Avatar %7D from %22react-toolbox/lib/avatar%22;%0A
import B
@@ -300,16 +300,16 @@
utton%22;%0A
-
import a
@@ -726,24 +726,236 @@
nt;%0A %7D%0A%60;%0A%0A
+const StyledAvatar = styled(Avatar)%60%0A flex-shrink: 0;%0A%60;%0A%0Aconst StyledTitle = styled.h5%60%0A margi... |
9c756b635de6dc42cdbefb63874102fcee977a92 | remove colorPicker import | src/components/action/index.js | src/components/action/index.js | import React, { Component } from 'react';
import Button from '../button';
import Switch from '../switch';
import Dropdown from '../dropdown';
import ColorPicker from '../color-picker';
import ActionTypes from 'butter-component-action-types';
export default class Action extends Component {
constructor (props) {
... | JavaScript | 0 | @@ -140,52 +140,8 @@
n';%0A
-import ColorPicker from '../color-picker';%0A%0A
impo
|
a12fbaca5a6fbe08298fccc2d969799bcbaa6e2f | Update Hero.js | src/components/general/Hero.js | src/components/general/Hero.js | import React from 'react'
import styled from 'styled-components'
import Img from 'gatsby-image'
const Hero = styled.div`
position: relative;
div {
height: 61.8vh !important;
width: 100%;
object-fit: cover !important;
}
box-shadow: 0px 5px 15px var(--color-secondary-50),
0px 10px 25px var(--colo... | JavaScript | 0.000001 | @@ -149,16 +149,20 @@
v %7B%0A
+max-
height:
|
92c111db8be36be2452fa3ce429d15c45f477b35 | Fix register form | src/containers/RegisterForm.js | src/containers/RegisterForm.js | import React, { Component } from 'react'
import { Button, Panel } from 'react-bootstrap'
import { connect } from 'react-redux'
import { Field, reduxForm } from 'redux-form'
import { postRegistration } from '../actions/register'
import TextInput from '../components/controls/TextInput'
class RegisterForm extends Compon... | JavaScript | 0.000003 | @@ -46,16 +46,8 @@
rt %7B
- Button,
Pan
@@ -353,27 +353,8 @@
bmit
-, invalid, register
%7D =
@@ -416,18 +416,8 @@
bmit
-(register)
%7D%3E%0A
|
37315bec07a4daac32a9146fa55d656c9b3037e9 | Fix accidental eval call | froide/problem/static/js/moderation.js | froide/problem/static/js/moderation.js | (function() {
const HEARTBEAT_INVERAL = 30 * 1000;
let socket, retryInterval, heartBeatInterval
function connectSocket() {
socket = createSocket();
if (retryInterval) {
window.clearInterval(retryInterval);
retryInterval = undefined;
}
socket.onopen = () => {
heartBeatInterval = setInterval(()... | JavaScript | 0.00001 | @@ -996,13 +996,8 @@
val(
-this.
conn
|
905eed0de17cdfee070bb7ca6dc0e444a1dceece | introduce format for `many2one_reference` for form view | addons/web/static/src/js/fields/field_registry.js | addons/web/static/src/js/fields/field_registry.js | odoo.define('web.field_registry', function (require) {
"use strict";
var Registry = require('web.Registry');
return new Registry();
});
odoo.define('web._field_registry', function (require) {
"use strict";
var AbstractField = require('web.AbstractField');
var basic_fields = require('web.basic_fields');
var relation... | JavaScript | 0.000011 | @@ -2785,16 +2785,74 @@
ldColor)
+%0A .add('many2one_reference', basic_fields.FieldInteger)
;%0A%0A// Re
|
3a073b0644d1c82b58c7db47402e90be367defc8 | Fix frontend bug in submit handler. | frontend/scripts/components/in-game.js | frontend/scripts/components/in-game.js | "use strict";
var React = require('react/addons')
, TestOutput = require('./test-output')
, Ide = require('./ide')
, InGameChat = require('./in-game-chat')
, InGameNav = require('./in-game-nav')
, Problem = require('./problem')
, Team = require('../team')
, moment = require('moment')
, request = requir... | JavaScript | 0 | @@ -4102,32 +4102,48 @@
submit', %7Bcode:
+this.teams.ours.
code%7D);%0A %7D,%0A c
|
148481a8941c168d5018fb74c77a54dc9f2c6c87 | Fix problem where overwriteStyle fail if source is empty | sashimi-webapp/src/helpers/domUtils.js | sashimi-webapp/src/helpers/domUtils.js | export default {
/**
* Get computed style of an element.
* @param {Element} element
* @return {Object} computerd style object
*/
getComputedStyle(element) {
return element.currentStyle || getComputedStyle(element);
},
/**
* Overwrite existing node's style with the given style
*/
overwri... | JavaScript | 0.000028 | @@ -335,24 +335,51 @@
, source) %7B%0A
+ source = source %7C%7C %7B%7D;%0A
Object.k
|
613d33a36f90be6d764f19f725b790acacf3a5f9 | Revert "changed path stuff for deployment" | poerelief/static/javascripts/app.js | poerelief/static/javascripts/app.js | $( document ).ready(function() {
$(".text-navigation a").on("click", function(e) {
e.preventDefault();
var current = $("a.active");
current.removeClass("active");
/* Maybe change such as here for animation? http://jqueryui.com/removeClass/ */
$(current.data("target")).hide();
$(this).addClass(... | JavaScript | 0 | @@ -444,16 +444,26 @@
tJSON('/
+poerelief/
doc/' +
@@ -1881,16 +1881,32 @@
Relief%22,
+ %22/poerelief/%22 +
data.lo
|
dfd1be57fe0277fb884fd4fb512a27622196663b | fix perf data dialog scrolling | src/debug/DebugCommandHandlers.js | src/debug/DebugCommandHandlers.js | /*
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the ri... | JavaScript | 0.000001 | @@ -3098,16 +3098,52 @@
dding: 0
+; max-height: 500px; overflow: auto;
' /%3E%22);%0A
@@ -3214,51 +3214,8 @@
ble'
- style='max-height: 600px; overflow: auto;'
%3E%22)%0A
|
2d1aa1ce4607836be97283e6ffaf3ad35e70ffcc | Refactored the code | src/astroprint/static/js/app/views/automatic-preheat.js | src/astroprint/static/js/app/views/automatic-preheat.js | /*********************************
* Code by Kanishka Mohan Madhuni *
**********************************/
var TempFilamentLoadPreheat = TempBarView.extend({
containerDimensions: null,
scale: null, // array of the values coming from the printer profile
type: null,
dragging: false,
// adding 'value' property t... | JavaScript | 0.668927 | @@ -104,807 +104,8 @@
*/%0A%0A
-var TempFilamentLoadPreheat = TempBarView.extend(%7B%0A containerDimensions: null,%0A scale: null, // array of the values coming from the printer profile%0A type: null,%0A dragging: false,%0A // adding 'value' property to hold the object when the temperature updates%0A value: null... |
7851faac17ebec683fa48c2dd265e472356c7a3e | Make iFrame size correctly when loaded | src/frontend/components/Survey.js | src/frontend/components/Survey.js | import React from 'react';
import Relay from 'react-relay';
class Survey extends React.Component {
styles = {
frame: {
display: 'block',
border: 'none',
width: '100%',
height: '100%',
},
container: {
width: '100%',
height: '800px',
}
}
render() {
return (
... | JavaScript | 0.000001 | @@ -53,16 +53,53 @@
relay';%0A
+import Radium from 'radium';%0A%0A@Radium
%0Aclass S
@@ -298,32 +298,687 @@
- height: '800px',%0A %7D
+%7D%0A %7D%0A%0A handleMessageEvent = (event) =%3E %7B%0A if (event.origin !== this.iframeHost())%0A return;%0A%0A if (typeof event.data === 'number') %7B%0A ... |
f79f76e63219a517712126f4186b2626704c7ef4 | Remove debug console output. | src/html/js/angular/navigation.js | src/html/js/angular/navigation.js | /* Raspberry Pi Dasboard
* =====================
* Copyright 2014 Domen Ipavec <domen.ipavec@z-v.si>
*
* 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.o... | JavaScript | 0 | @@ -2467,40 +2467,8 @@
) %7B%0A
- console.log(%22refresh%22);%0A
|
2fd5a7977156c178ca69c51d8f4286a8e048946d | stop trying to detect indexeddb | src/start-things/system-requirements.js | src/start-things/system-requirements.js | function supportsIndexedDB() {
// from http://bl.ocks.org/nolanlawson/c83e9039edf2278047e9
return new Promise((resolve, reject) => {
let req = indexedDB.open('test', 1)
req.onupgradeneeded = e => {
let db = e.target.result
db.createObjectStore('one', {
keyPath: 'key',
})
db.createObjectStore('tw... | JavaScript | 0 | @@ -884,16 +884,19 @@
ts() %7B%0A%09
+//
let inde
@@ -910,23 +910,29 @@
false%0A%09
+//
try %7B%0A%09
+//
%09support
@@ -945,16 +945,19 @@
edDB()%0A%09
+//
%09indexed
@@ -967,19 +967,25 @@
= true%0A%09
-%7D%0A%09
+// %7D%0A%09//
catch (e
@@ -991,16 +991,19 @@
err) %7B%0A%09
+//
%09indexed
@@ -1014,19 ... |
ee53b17c34ba92c51790b96ce2d3991527954c02 | update href | src/controllers/replacement.js | src/controllers/replacement.js | var boom = require('boom')
var braveHapi = require('../brave-hapi')
var bson = require('bson')
var Joi = require('joi')
var underscore = require('underscore')
var v1 = {}
/*
GET /v1/users/{userId}/replacement?...
*/
v1.get =
{ handler: function (runtime) {
return async function (request, reply) {
var ad, t... | JavaScript | 0 | @@ -4636,17 +4636,17 @@
nt_get_1
-4
+5
%22 target
|
e4ff2b2296967e604e700b1381b7979fbf4d23eb | Use relative paths for signing to avoid weird 7z error | script/lib/create-windows-installer.js | script/lib/create-windows-installer.js | 'use strict'
const downloadFileFromGithub = require('./download-file-from-github')
const electronInstaller = require('electron-winstaller')
const fs = require('fs-extra')
const glob = require('glob')
const os = require('os')
const path = require('path')
const spawnSync = require('./spawn-sync')
const CONFIG = require... | JavaScript | 0 | @@ -2586,33 +2586,91 @@
nst
-appPath = path.normalize(
+outPath = path.dirname(nupkgPath)%0A const appPath = path.relative(outPath,
pack
@@ -2717,16 +2717,39 @@
', %5B'e',
+ path.relative(outPath,
nupkgPa
@@ -2750,16 +2750,17 @@
upkgPath
+)
, 'lib%5C%5C
@@ -2785,17 +2785,16 @@
oa', %60-o
-%22
$%7Bap... |
1142561532c66295ac172d4c9837a6f35e5d4b95 | Improve config-parser JSON handling | ghost/admin/app/utils/config-parser.js | ghost/admin/app/utils/config-parser.js | var isNumeric = function (num) {
return !isNaN(num);
},
_mapType = function (val) {
if (val === '') {
return null;
} else if (val === 'true') {
return true;
} else if (val === 'false') {
return false;
} else if (isNumeric(val)) {
... | JavaScript | 0 | @@ -374,24 +374,46 @@
') === 0) %7B%0A
+ try %7B%0A
@@ -436,16 +436,125 @@
e(val);%0A
+ %7D catch (e) %7B%0A /*jshint unused:false */%0A return val;%0A %7D%0A
|
aa549934b48dfb36fb4d3d9a28665df46df4e800 | Add missing article | lib/node_modules/@stdlib/assert/is-json/test/test.js | lib/node_modules/@stdlib/assert/is-json/test/test.js | 'use strict';
// MODULES //
var tape = require( 'tape' );
var isJSON = require( './../lib' );
// TESTS //
tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof isJSON, 'function', 'main export is a function' );
t.end();
});
tape( 'function returns `true` if provided ... | JavaScript | 0.99986 | @@ -269,32 +269,36 @@
();%0A%7D);%0A%0Atape( '
+the
function returns
@@ -522,16 +522,20 @@
%0Atape( '
+the
function
|
2cc934432f6e7c8c5b652789c4280967fd749a42 | Fix joining/quitting server from server menu. | waartaa/client/chat/chat_connections/server.js | waartaa/client/chat/chat_connections/server.js | function serverRoomSelectHandler (event) {
var $target = $(event.target);
// Return if clicked on a server menu item
if ($target.parents('.btn-group').length > 0)
return;
var prev_room = Session.get('room') || {};
var roomtypes = {
'channel': true,
'server': true,
'pm': true
... | JavaScript | 0 | @@ -4424,33 +4424,40 @@
var $this = $(e.
-t
+currentT
arget);%0A var
@@ -4603,22 +4603,27 @@
= $this.
+attr('
data
-('
+-
status')
|
de56c8fb6af535040dcf6a5852b1a789954d7570 | Patch mismatch methods | modern/src/maki-interpreter/objectData/stdPatched.js | modern/src/maki-interpreter/objectData/stdPatched.js | const std = require("./std.json");
// Between myself and the author of the decompiler, a number of manual tweaks
// have been made to our current object definitions. This function recreates
// those tweaks so we can have an apples to apples comparison.
/*
* From object.js
*
* > The std.mi has this set as void, but... | JavaScript | 0.000001 | @@ -29,16 +29,267 @@
son%22);%0A%0A
+const NAME_TO_DEF = %7B%7D;%0A%0AObject.values(std).forEach(value =%3E %7B%0A NAME_TO_DEF%5Bvalue.name%5D = value;%0A%7D);%0A%0Afunction getMethod(className, methodName) %7B%0A return NAME_TO_DEF%5BclassName%5D.functions.find((%7B name %7D) =%3E %7B%0A return name === methodNa... |
1566f8d6003f413aedb52ed336b2bd19a45bd0ac | fix #949 | app/controllers/money/report/transactionReport.js | app/controllers/money/report/transactionReport.js | Alloy.Globals.extendsBaseViewController($, arguments[0]);
var title="收支汇总",interval="日",intervalQuery, d = new Date(), queryOptions = {
dateFrom : d.getUTCTimeOfDateStart().toISOString(),
dateTo : d.getUTCTimeOfDateEnd().toISOString(),
transactionDisplayType : Alloy.Models.User.xGet("defaultTransactionDisplayType")... | JavaScript | 0 | @@ -4550,17 +4550,17 @@
Value()
-+
+%EF%BC%8D
%0A%09%09%09%09%09$
|
418caa66775967a5799a1b15f796ce4c9fbf8d42 | Fix issue #24 | table/static/js/bootstrap.dataTables.js | table/static/js/bootstrap.dataTables.js | /* Set the defaults for DataTables initialisation */
$.extend( true, $.fn.dataTable.defaults, {
"sDom": "<'row'<'col-xs-6'l><'col-xs-6'f>r>t<'row'<'col-xs-6'i><'col-xs-6'p>>",
"sPaginationType": "bootstrap",
"oLanguage": {
"sLengthMenu": "_MENU_",
"sSearch": "",
"sInfoFiltered": "",
... | JavaScript | 0 | @@ -341,11 +341,15 @@
%22: %22
-%E5%8A%A0%E8%BD%BD%E4%B8%AD
+Loading
%22,%0A
|
d8d0bf8d4947b038418d7950c3c86bf1948d4c6e | add @pingy/cli to deps for install | packages/cli/init.js | packages/cli/init.js | 'use strict';
const inquirer = require('inquirer');
const ora = require('ora');
const fs = require('fs');
const chalk = require('chalk');
const path = require('path');
const validFilename = require('valid-filename');
const spawn = require('child_process').spawn;
const compilerMap = require('./compilerMap');
const dotP... | JavaScript | 0 | @@ -1475,62 +1475,48 @@
%7D%0A
+%0A
-// TODO: add '@pingy/cli' below%0A const deps = %5B
+const deps = %5B%0A '@pingy/cli',
modu
@@ -1548,16 +1548,21 @@
dules.js
+%0A
%5D.filter
|
6c9fce93ee7f95b7c2f01800a92d196a92da72ba | Fix protocol fee | www/js/controllers/exchange/TradeController.js | www/js/controllers/exchange/TradeController.js | angular.module("omniControllers")
.controller("ExchangeTradeController",["$scope", "PropertyManager","MIN_MINER_FEE","PROTOCOL_FEE",
function ExchangeTradeController($scope, PropertyManager,MIN_MINER_FEE,PROTOCOL_FEE) {
$scope.minersFee = MIN_MINER_FEE;
$scope.protocolFee = PROTOCOL_FEE;
//init and use g... | JavaScript | 0.000003 | @@ -112,16 +112,21 @@
R_FEE%22,%22
+OMNI_
PROTOCOL
@@ -126,19 +126,20 @@
ROTOCOL_
-FEE
+COST
%22,%0A%09%09fun
|
96d2679556b9707cfd0640f853ffa7cf50401049 | Remove setVersion from storage isolation test | chrome/test/data/extensions/platform_apps/web_view_isolation/storage.js | chrome/test/data/extensions/platform_apps/web_view_isolation/storage.js | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This method initializes the two types of DOM storage.
function initDomStorage(value) {
window.localStorage.setItem('foo', 'local-' + value);
wi... | JavaScript | 0.000002 | @@ -1222,46 +1222,374 @@
var
-request = indexedDB.open(%22isolation%22);
+v = 3;%0A var ranVersionChangeTransaction = false;%0A var request = indexedDB.open(%22isolation%22, v);%0A request.onupgradeneeded = function(e) %7B%0A isolation.db = e.target.result;%0A var store = isolation.db.createObjectStore(%0A ... |
0227e4d849b907d4aaa59d2b8f69467badf7a741 | update to new browserify script style | app/templates/assets/src/js/_script-browserify.js | app/templates/assets/src/js/_script-browserify.js | /* Author: <%= devNames %>
<%= projectName %>
*/
// --------------------------------------------- //
// DEFINE GLOBAL LIBS //
// --------------------------------------------- //
<% if (jsLibs.indexOf('jquery1') != -1 || jsLibs.indexOf('jquery2') != -1) {%>window.jQuery = window.$ = require... | JavaScript | 0 | @@ -1,215 +1,337 @@
/*
-%09Author: %3C%25= devNames %25%3E%0A%09%09%3C%25= projectName %25%3E%0A*/%0A%0A// --------------------------------------------- //%0A// DEFINE GLOBAL LIBS //%0A// --------------------------------------------- //%0A%3C%25
+*%0A * Project Name: %3C%25= projectName %25... |
617eaf7930cbfa93e479dc8ea3501ae2d2768fc3 | Fix prefetch path | Azkfile.js | Azkfile.js | systems({
'web': {
depends: ['db', 'memcached', 'redis'],
image: {'docker': 'azukiapp/node:5'},
provision: [
'npm install'
],
workdir: '/azk/#{manifest.dir}',
shell: '/bin/bash',
command: "node --use_strict src/web/web.js",
wait: 20,
... | JavaScript | 0.000013 | @@ -2152,23 +2152,22 @@
fetch/pr
-ocessor
+efetch
.js%22,%0A
|
1d123ef6226700b84d13a4242d660ad098517307 | Add dockblock for EventBridge | web/assets/js/browser/services/event-bridge.js | web/assets/js/browser/services/event-bridge.js | /* global define */
/* jshint indent:2 */
define([
'app'
], function(app) {
'use strict';
app.service('mbEventBridge', ['$rootScope', function($rootScope){
$rootScope.$on('browser.load', function() {
$rootScope.$broadcast('_browser.load');
});
$rootScope.$on('browser.loaded', function() {
... | JavaScript | 0 | @@ -89,16 +89,119 @@
rict';%0A%0A
+ /**%0A * EventBridge is in charge of broadcasting some custom events and forwarding some ones.%0A */%0A
app.se
@@ -259,16 +259,67 @@
tScope)%7B
+%0A%0A /**%0A * Forward browser.load event%0A */
%0A $ro
@@ -406,32 +406,84 @@
oad');%0A %7D);%0A%0A
+ /**%... |
20780c7c4b61e8ed8f1f4ab8c4be01925b9490dc | build agenda tree UI components | web/src/main/webapp/krms/scripts/agendaTree.js | web/src/main/webapp/krms/scripts/agendaTree.js |
function ajaxCall(controllerMethod, collectionGroupId) {
var elementToBlock = jq('#' + collectionGroupId + '_div');
var selectedItemId = jq('input[name="agenda_item_selected"]').val();
if (selectedItemId) {
var updateCollectionCallback = function(htmlContent){
var component = jq('#' +... | JavaScript | 0 | @@ -947,16 +947,78 @@
else %7B%0A
+ // TODO: refactor to disabled buttons, or externalize%0A
|
a224cccd2e8841c9d25c6e0261f2176b7aadb73e | Remove floating text edit toolbar | website/mosaicportfolio/static/js/app/views.js | website/mosaicportfolio/static/js/app/views.js |
var RepositoryView = Backbone.View.extend({
projectUri: null,
applicationState: null,
initialize: function(options) {
this.id = this.$('.repository-id').val();
this.projectModel = options.projectModel;
this.applicationState = options.applicationState;
this.applicationSta... | JavaScript | 0.000001 | @@ -5157,24 +5157,26 @@
+//
'halloformat
@@ -5194,24 +5194,26 @@
+//
'halloblock'
@@ -5226,32 +5226,34 @@
+//
'hallolists': %7B%7D
@@ -5266,24 +5266,26 @@
+//
'halloreundo
@@ -5307,16 +5307,18 @@
+//
'halloli
|
a1d68d4f11e6328979b1e0c01c776459356e9878 | Fix resolution of the control element associated with a label element | tools/docs/api/build-docs/static/js/script.js | tools/docs/api/build-docs/static/js/script.js | /* eslint-disable strict */
(function script() { // eslint-disable-line no-restricted-syntax
'use strict';
main();
/**
* Main execution sequence.
*
* @private
*/
function main() {
var state;
var links;
var el;
var i;
// Initialize the browser history state:
if ( history && history.replaceState ) ... | JavaScript | 0 | @@ -2323,16 +2323,55 @@
ent node
+ (we expect it to be a %60label%60 element)
:%0A%09%09pare
@@ -2429,28 +2429,31 @@
the
-parent
+control %60
input
+%60
element
:%0A%09%09
@@ -2452,34 +2452,134 @@
ment
-:%0A%09%09parent.previousSibling
+ associated with the %60label%60 (see https://developer.mozilla.org/en-US... |
29b23a29b8b7f15ffdcc74430fbb3b8fc9f9af47 | Add error-handling to fuzzy search and fix render | src/scenes/home/codeSchools/stateSortedSchools/stateSortedSchools.js | src/scenes/home/codeSchools/stateSortedSchools/stateSortedSchools.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Section from 'shared/components/section/section';
import SchoolCard from 'shared/components/schoolCard/schoolCard';
import FormInput from 'shared/components/form/formInput/formInput';
import styles from './stateSortedSchools.css';
impo... | JavaScript | 0 | @@ -1029,17 +1029,25 @@
const
-s
+matchingS
chools =
@@ -1074,17 +1074,21 @@
true if
-i
+thisI
nput mat
@@ -1092,16 +1092,29 @@
matches
+thisCampus's
state co
@@ -1179,25 +1179,47 @@
ate(
-school, input)
+thisInput, thisCampus) %7B%0A try
%7B%0A
+
@@ -1249,22 +1249,26 @@
teCodes%5B
-school
... |
7f0ca4caa8d44f037eae77792e32587e16310876 | Allow admin users to edit/update all of their attributes during profile edit. On successful edit/update, reload the UI to reflect the changes in the name and corresponding letter avatar. | www/app/modules/administrative/user/addedit.js | www/app/modules/administrative/user/addedit.js | angular.module('os.administrative.user.addedit', ['os.administrative.models'])
.controller('UserAddEditCtrl', function(
$scope, $rootScope, $state, $stateParams, user, users, currentUser,
User, Institute, AuthDomain, Util, TimeZone, LocationChangeListener) {
var instituteSites = {}, prevInstitute;
f... | JavaScript | 0 | @@ -492,16 +492,17 @@
s: %7B%7D%7D;%0A
+%0A
if
@@ -529,19 +529,28 @@
&&
-!
user.
-admin
+type != 'SUPER'
) %7B%0A
@@ -2088,36 +2088,96 @@
-LocationChangeListener.back(
+angular.extend(currentUser, savedUser);%0A $state.go('home', %7B%7D, %7Breload: true%7D
);%0A
|
f1891c9e6409d719f7bc2ae8bba837ff6f6542d0 | Improve notification animation | yeoman/app/scripts/directives/triggerListen.js | yeoman/app/scripts/directives/triggerListen.js | 'use strict';
yeomanApp.directive('triggerListen'
, ['$rootScope', 'UIEvents'
, function($rootScope, UIEvents) {
var highlightColor = "hsl(195,46%,70%)"; //blue
highlightColor = "hsl(48,83%,76%)"; // yellow
var highlightDuration = 6000;
return {
restrict: 'A',
link: function postLink(scope,... | JavaScript | 0.000002 | @@ -702,15 +702,24 @@
r: '
-#e59191
+hsl(353,77%25,57%25)
'%7D,
@@ -733,16 +733,27 @@
ectrum(%5B
+%22#e59191%22,
%22#edecb2
@@ -783,16 +783,21 @@
ent%22%5D, %5B
+100,
60000, 6
@@ -1015,15 +1015,35 @@
ed.f
-romNow(
+ormat(%22YYYY-MM-DD h:mm:ssa%22
));%0A
|
69e433bac8e5ef78ed85e8b6d6d7b4d4a7e3a76c | Clarify translation string context. | assets/js/components/setup-wizard/wizard-steps.js | assets/js/components/setup-wizard/wizard-steps.js | /**
* WizardSteps data map.
*
* Site Kit by Google, Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
... | JavaScript | 0.000128 | @@ -1609,14 +1609,29 @@
', '
-action
+complete module setup
', '
|
ecb27913f5da77ad2c4259607ce9f7649fd346f9 | Remove useless field. | lib/formidable-grid.js | lib/formidable-grid.js | var _ = require('underscore');
var debug = require('debug')('formidable-grid');
var formidable = require('formidable');
var onPart = function(part) {
var done = function(err) {
debug('-- done: err = ' + err);
stream.removeAllListeners();
if (err) {
this._error(err);
} el... | JavaScript | 0 | @@ -1632,38 +1632,8 @@
mime
-,%0A filename: file.name,
%0A
|
854aea33d5783bcde53ef59355ca932a5aa6bbd5 | Set an explicitly high quality for split jpg images. | lib/frame-converter.js | lib/frame-converter.js | var cuid = require('cuid')
, fs = require('fs')
, concat = require('concat-stream')
, rimraf = require('rimraf')
, child = require('child_process')
var TMP_DIR = __dirname + '/../tmp/'
var fileExtensions = {
'image/jpeg': '.jpg',
'video/webm': '.webm',
'video/mp4': '.mp4',
}
var videoCodecs = {
'webm'... | JavaScript | 0 | @@ -3139,16 +3139,28 @@
0.4*PTS%22
+ -qscale:v 1
%22$%7Bfold
|
eae6ea26ffc832ffb80acaafa4e8e7b2892947d9 | Remove unnecessary comments | lib/frequency-entry.js | lib/frequency-entry.js | /** Represents a single frequency entry */
import React, {Component, PropTypes} from 'react'
import TimetableEntry from './timetable-entry'
import SelectTrip from './select-trip'
import SelectPatterns from './select-patterns'
import {Text} from './components/input'
import Icon from './components/icon'
import {Button}... | JavaScript | 0.000043 | @@ -2797,110 +2797,8 @@
00,%0A
- // TODO this causes the backend to break, and it's unclear what it's used for%0A //patterns: %5B%5D,%0A
|
3071fb4aa4a65e2f7216bfaef8f1a2d376a7dd83 | Change default configuration in the tests and make one failing test pass | d3/test/helpers/defaultConf.js | d3/test/helpers/defaultConf.js | var defaultConf = {
linear: {
drawAllLinks: false,
startLineColor: "#49006a",
endLineColor: "#1d91c0",
},
circular: {
tickSize: 5
},
graphicalParameters: {
width: 1000,
height: 1000,
karyoHeight: 30,
karyoDistance: 10,
linkKaryoDistance: 10,
tickDistance: 100,
treeWidth: 300,... | JavaScript | 0 | @@ -802,37 +802,15 @@
se,%0A
-%09%09%09%09%09pattern: %22lines%22%0A
%09%09%09%09%7D,%0A
+
%09%09%09%09
@@ -900,32 +900,54 @@
visible: false,%0A
+%09%09%09%09%09pattern: %22woven%22%0A
%09%09%09%09%7D,%0A%09%09%09%09nStre
@@ -1040,37 +1040,37 @@
%0A%09%09%09%09%09pattern: %22
-woven
+lines
%22%0A%09%09%09%09%7D,... |
bf326d33d19ab88fd8084e33657f813a7dc71050 | remove log statement | xbrowse_server/staticfiles/js/base/igv_view.js | xbrowse_server/staticfiles/js/base/igv_view.js | window.IgvView = Backbone.View.extend({
className: 'igv-container',
initialize: function (options) {
this.individuals = options.individuals;
var tracks = [];
for (var i = 0; i < this.individuals.length; i += 1) {
var indiv = this.individuals[i];
console.log(indiv)
... | JavaScript | 0.000002 | @@ -290,32 +290,8 @@
i%5D;%0A
-%09 console.log(indiv)%0A
|
f3ecdc5af4e1eb3545ae717fa1ab1a67720839b3 | fix influxdb annotation query | public/app/plugins/datasource/influxdb/datasource.js | public/app/plugins/datasource/influxdb/datasource.js | define([
'angular',
'lodash',
'app/core/utils/datemath',
'./influx_series',
'./query_builder',
'./directives',
'./query_ctrl',
],
function (angular, _, dateMath, InfluxSeries, InfluxQueryBuilder) {
'use strict';
var module = angular.module('grafana.services');
module.factory('InfluxDatasource', fu... | JavaScript | 0.001098 | @@ -2472,16 +2472,19 @@
(%7B range
+Raw
: rangeU
|
c1d3edb55ce5d1021cf57672c9c53ad677309101 | change from rollup run script to simpler config generator | rollup/rollup-build-es6-flow.js | rollup/rollup-build-es6-flow.js | /**
* Mostly taken from `generator-javascript`
*
* @package: Everledger JS Toolchain
* @author: pospi <sam@everledger.io>
* @since: 2016-10-13
* @flow
*/
const { curry } = require('ramda');
const fs = require('fs');
const path = require('path');
const del = require('del');
const rollup = require('rollup');
c... | JavaScript | 0 | @@ -198,34 +198,8 @@
');%0A
-const fs = require('fs');%0A
cons
@@ -256,42 +256,8 @@
');%0A
-const rollup = require('rollup');%0A
cons
@@ -308,25 +308,32 @@
unction
-run
+make
Rollup
+Config
(pkg, de
@@ -357,44 +357,8 @@
) %7B%0A
- let promise = Promise.resolve();%0A%0A
co
@@ -463,162 +463,17 @@
%0A%0A
-... |
2f99fd78755c8987f6217bdb770d3ba6935be6a2 | add download ability | src/bots/actions.js | src/bots/actions.js | var template = require('./template.js');
var taskGet = require('./taskGet.js');
var request = require('./request.js');
var timeoutDuration = 30000;
var assertion = require('./assertion.js').assertion(casper);
var actions = {
assert: function (params) {
var output;
try {
if (params.attri... | JavaScript | 0 | @@ -1692,16 +1692,329 @@
n data;%0A
+ %7D,%0A download: function (params) %7B%0A%0A casper.click(params.selector);%0A%0A casper.waitForResource(params.filename, function () %7B%0A return log(params.filename + ' has been received', 'SUCCESS');%0A %7D, function () %7B%0A ... |
3e1a05ab1932d0fe5077b4513a5044f9263dbe64 | Allow overlap between response groups | plugins/jspsych-multi-stim-multi-response.js | plugins/jspsych-multi-stim-multi-response.js | /**
* jspsych-muli-stim-multi-response
* Josh de Leeuw
*
* plugin for displaying a set of stimuli and collecting a set of responses
* via the keyboard
*
* documentation: docs.jspsych.org
*
**/
(function($) {
jsPsych["multi-stim-multi-response"] = (function() {
var plugin = {};
plugin.create = func... | JavaScript | 0.000008 | @@ -3820,16 +3820,146 @@
; i++) %7B
+%0A %09%0A // allow overlap between response groups%0A if (validResponses%5Bi%5D) %7B%0A continue;%0A %7D
%0A%0A
|
0a5aa52dd3f41ed5c2a1caa03655e3044b3207b3 | Fix linux only path strings. | server/utils/utils.js | server/utils/utils.js | var path = require('path')
, fs = require('fs')
;
/**
* Reads all the JavaScript files within a directory, assuming they are all
* proper node.js modules, and loads them.
* @return {Array} Modules loaded.
*/
function initializeModulesWithin(dir, exclusions) {
var output = {}
, fullDir = path.join(_... | JavaScript | 0.000001 | @@ -366,15 +366,23 @@
h =
-'../' +
+path.join('..',
ful
@@ -403,17 +403,16 @@
rver
-/
').pop()
+ '
@@ -411,14 +411,9 @@
op()
- + '/'
+)
%0A
@@ -854,16 +854,26 @@
require(
+path.join(
requireP
@@ -879,10 +879,10 @@
Path
+,
-+
mod
@@ -889,16 +889,17 @@
uleName)
+)
;%0A
|
d31e2a4261112babcc14e04aea69463f22b8b1f1 | Change order of perf test URL hash to have the implementation first. | perf/create-tests.js | perf/create-tests.js | function createTests(Renderer, tests, impls) {
var patch = IncrementalDOM.patch;
var eo = IncrementalDOM.elementOpen;
var ec = IncrementalDOM.elementClose;
var tx = IncrementalDOM.text;
var currentTest;
var currentImpl;
var currentRenderer;
var results;
var running;
var container = document.create... | JavaScript | 0 | @@ -1024,20 +1024,20 @@
.hash =
-test
+impl
s.indexO
@@ -1038,20 +1038,20 @@
indexOf(
-test
+impl
) + ','
@@ -1052,20 +1052,20 @@
+ ',' +
-impl
+test
s.indexO
@@ -1066,20 +1066,20 @@
indexOf(
-impl
+test
);%0A %7D%0A%0A
@@ -2454,16 +2454,29 @@
on.hash.
+substring(1).
split(',
@@ -2485,20 +2485,20 @@
;%0A... |
de03c1f77c1bf8bfc75807a259e7bd78d08167f2 | use Ember.keys instead of Object.keys for older browsers support | addon/service.js | addon/service.js | import Ember from 'ember';
import { request } from 'ic-ajax';
import { get as readFromConfig } from './config';
export default Ember.Object.extend({
onAjaxComplete: function() {
var _this = this;
Ember.$(document).on("ajaxComplete", function(event, xhr, settings) {
var csrf_param = xhr.getResponseHeade... | JavaScript | 0 | @@ -792,22 +792,21 @@
param =
-Object
+Ember
.keys(da
|
ee206ed6bdabe5eb1bf1ad3741f41382d6e6dce5 | fix for map not moving the second time the extend button is pressed (#39) | src/component/searchTab/BackgroundMap.js | src/component/searchTab/BackgroundMap.js | import React from 'react'
import MapView from 'react-native-maps'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { View, StatusBar, ActivityIndicator } from 'react-native'
import _ from 'lodash'
import supercluster from 'supercluster'
import { MultilineText } from '../DefaultTex... | JavaScript | 0 | @@ -1466,68 +1466,530 @@
-if (!_.isEqual(nextProps.forceRegion, this.props.forceRegion
+/*%0A if we press on goToLocation from the same business twice in a row, %0A nextProps.forceRegion and this.props.forceRegion would be the same, %0A even if the map moved in the meantime%0A in this case, th... |
02eb783dfd233f8e5684d09f43c1a39650d475f7 | Add toggle all function | example/mongotodo/main.js | example/mongotodo/main.js | var PromisePipe = require('promise-pipe')();
var Promise = require('es6-promise').Promise;
var MongoPipeApi = require('mongo-pipe-api');
PromisePipe.use('db', MongoPipeApi('test', ['items']), {_env:"server"});
var ENV = 'CLIENT';
//set up server
if(typeof(window) !== 'object'){
PromisePipe.setEnv('server');
ENV = '... | JavaScript | 0.000001 | @@ -800,24 +800,227 @@
%7D%0A %7D;%0A%7D);%0A%0A
+var toggleAllItem = doOnServer(function(data, context)%7B%0A return %5B%0A %7B%0A uid: context.session.id%0A %7D,%0A %7B%0A $set: %7B%0A done: data%0A %7D%0A %7D,%0A %7B%0A multi: true%0A %7D%0A %5D%0A%7D);%0A%0A
var byI... |
2f2c95e30566d4d988c206f6551aee6d91d6c072 | Remove junks. | lib/ieditor/ieditor.js | lib/ieditor/ieditor.js | var IEditor = (function() {
/*
* Input is idea of document body
*/
function IEditor(editorPlace, terminalPlace) {
function clone(obj) {
// Handle the 3 simple types, and null or undefined
if (null == obj || "object" != typeof obj) return obj;
... | JavaScript | 0 | @@ -142,1635 +142,8 @@
-%0A %0A function clone(obj) %7B%0A // Handle the 3 simple types, and null or undefined%0A if (null == obj %7C%7C %22object%22 != typeof obj) return obj;%0A %0A // Handle Date%0A if (obj instanceof Date) %7B%0A ... |
5032a7f897f34d8365f8df3b1db55fd3eb14c009 | Remove jshint ignore | test/02.IV/ContractCommon.js | test/02.IV/ContractCommon.js | /*
Copyright 2016 - 2018 by Jan Dockx
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | JavaScript | 0.000001 | @@ -1539,30 +1539,8 @@
this
- // jshint ignore:line
%0A%0A
|
e019ead2e9b9b764a0bea25f705ea9d45d82c5c4 | fix variable config in task linux dist | grunt-tasks/register/createLinuxApp.js | grunt-tasks/register/createLinuxApp.js | /**
* createLinuxApp
*/
module.exports = function (grunt) {
grunt.registerTask('createLinuxApp', 'Create linux distribution.', function (version) {
var done = this.async();
var childProcess = require('child_process');
var exec = childProcess.exec;
var path = './' + (version === 'Linux64' ? config.d... | JavaScript | 0.000007 | @@ -258,16 +258,63 @@
s.exec;%0A
+ var config = grunt.config.get(%5B'config'%5D);%0A
var
@@ -952,8 +952,9 @@
%7D);%0A%0A%7D;
+%0A
|
22aab4846bbcc10e33b028c11cd65fa3cca9e3bc | Fix new_untitled notebook creation from notebook edit | public/ipython/notebook/js/kernelselector.js | public/ipython/notebook/js/kernelselector.js | // Copyright (c) IPython Development Team.
// Distributed under the terms of the Modified BSD License.
define([
'jquery',
'base/js/namespace',
'base/js/dialog',
'base/js/utils',
], function($, IPython, dialog, utils) {
"use strict";
var KernelSelector = function(selector, notebook) {
... | JavaScript | 0.000007 | @@ -7058,16 +7058,29 @@
otebook%22
+, custom: %7B%7D
%7D).then(
|
d16bc548a9bfa38123674cdd5109592ad25001d7 | return post deferred from scorer | examples/dscore/Scorer.js | examples/dscore/Scorer.js | define(['jquery','app/API','underscore','./computeD','./msgCat','./parcelMng'],function($,API,_,computeData,msgMan,parcelMng){
var Scorer = {};
//comment
$.extend(Scorer, {
/* Function: Void addSettings.
Input: settings object.
Output: set the settings in computeD object or msgCat according to input
Descrip... | JavaScript | 0 | @@ -2171,16 +2171,23 @@
%0A%0A %09%09
+return
$.post(u
|
d4ad95c9c433b5d959c69e900fe4732b3514e7a2 | Set user online on touch events too | client/client.js | client/client.js | var timer, status;
UserPresence = {
awayTime: 60000, //1 minute
awayOnWindowBlur: false,
onSetUserStatus: function() {},
startTimer: function() {
UserPresence.stopTimer();
timer = setTimeout(UserPresence.setAway, UserPresence.awayTime);
},
stopTimer: function() {
clearTimeout(timer);
},
restartTimer: fu... | JavaScript | 0 | @@ -1499,32 +1499,97 @@
nce.setOnline);%0A
+%09%09document.addEventListener('touchend', UserPresence.setOnline);%0A
%09%09document.addEv
|
066863a1f2e261a1beb7792e4bb4b72b11af6913 | remove one of duplicate $filter | grails-app/assets/javascripts/streama/controllers/admin-reports-ctrl.js | grails-app/assets/javascripts/streama/controllers/admin-reports-ctrl.js | //= wrapped
angular.module('streama').controller('adminReportsCtrl', [
'apiService', '$state', '$rootScope', '$filter', '$filter', function (apiService, $state, $rootScope, $filter) {
var vm = this;
var selectedReports = [];
vm.maxPerPage = 15;
vm.pagination = {};
vm.sortAndOrderBy = {
sor... | JavaScript | 0.000018 | @@ -115,27 +115,16 @@
filter',
- '$filter',
functio
|
3df70b37b62270abf5d3ed5867c60b519a9ea099 | send testing infos to content for notifications | src/js/background/notification.js | src/js/background/notification.js | /* eslint no-unused-vars: 0 */
var Notification = {
create: function(message, onClickCallback) {
var formNotificationId = null;
chrome.notifications.create(Math.random().toString(), {
"iconUrl": chrome.runtime.getURL("images/icon_48.png"),
"type": "basic",
"title": "Form-O-Fill",
"mess... | JavaScript | 0 | @@ -1,11 +1,37 @@
/*
-
+global Testing, Utils */%0A/*
eslint n
@@ -49,9 +49,27 @@
rs:
-0
+%5B2, %22Notification%22%5D
*/%0A
@@ -428,24 +428,235 @@
cationId) %7B%0A
+ if(!Utils.isLiveExtension()) %7B%0A Testing.setVar(%22notification-html%22, message, %22Last Notification HTML%22);%0A Testing.... |
3529c25395ca9dea338ea5e4006909e42a1565cb | fix color | sample/jasmine-inclass9.spec.js | sample/jasmine-inclass9.spec.js | describe('Jasmine In Class Exercise', function() {
beforeEach(function() {
$('#fixture').remove();
var html = '<span>This is a span with some color changing text</span>'
// add a checkbox to html
$('body').append('<div id="fixture">' + html + '</div>')
// this functio... | JavaScript | 0.000002 | @@ -581,16 +581,22 @@
e'))%5B0%5D.
+style.
color).t
|
f9f2c10deda6bf8610bf1c106211248df26c48e8 | Remove debug output | client/js/app.js | client/js/app.js | console.log('AI Lovers');
$(function () {
var runGameBtn = $('#runGame');
var host = window.document.location.host.replace(/:.*/, '');
var ws = new WebSocket('ws://' + host + ':8000');
runGameBtn.click(function () {
ws.send(JSON.stringify({
commands: _.map(_.range(4), function (i) ... | JavaScript | 0.000037 | @@ -863,68 +863,8 @@
) %7B%0A
- console.log('/replayer?' + JSON.stringify(replay));%0A
|
2768f8fba6e78042c0fcca86ed24f91c1c855d8b | Fix test about validation errors | test/batch-processor.test.js | test/batch-processor.test.js | var utils = require('./test-utils');
var assert = require('chai').assert;
var fs = require('fs');
var path = require('path');
var nroonga = require('nroonga');
var Processor = require('../lib/batch/processor').Processor;
var schemeDump = fs.readFileSync(__dirname + '/fixture/companies/ddl.grn', 'UTF-8').replace(/\s+... | JavaScript | 0.000011 | @@ -2961,69 +2961,477 @@
%5B
-%5D);%0A done();%0A %7D else %7B%0A done
+'invalidfield: The field %22unknown1%22 is unknown.',%0A 'invalidfield: The field %22unknown2%22 is unknown.',%0A 'invalidfield: The field %22name%22 is null.',%0A ... |
bf785db0b019be1a2d9ab9893cb6b1b75ae1b29f | change default maxlen to 999 | avalon/ui/form/textarea/td.textarea.js | avalon/ui/form/textarea/td.textarea.js | define(['avalon', 'text!./td.textarea.html', 'css!./td.textarea.css'], function(avalon, template) {
var _interface = function () {
};
avalon.component("td:textarea", {
//外部属性
label: '',
value: '',
name: 'textarea',
maxlen: -1, //最大长度
width: '100%',
must: false,
html: false,
disabled: false,
... | JavaScript | 0.000482 | @@ -233,10 +233,11 @@
en:
--1
+999
,
|
adc1222ba14fb635f77463c4b87bd390a140c876 | Fix class name | src/components/VerifyRegistrationInfo.js | src/components/VerifyRegistrationInfo.js | import React, {Component, PropTypes} from 'react'
import Grid from 'react-bootstrap/lib/Grid'
import Row from 'react-bootstrap/lib/Row'
import Col from 'react-bootstrap/lib/Col'
export default class RegistrationForm extends Component {
static propTypes = {
formUpdate: PropTypes.func
}
constructor(props) {
... | JavaScript | 0.001772 | @@ -193,16 +193,22 @@
t class
+Verify
Registra
@@ -215,12 +215,12 @@
tion
-Form
+Info
ext
|
49ab20456ea6f2393edea2c4f4b9229f251c94d7 | Update player view | client/player.js | client/player.js | function Player(parent){
parent.innerHTML += '<div id="dialog-player" title="Controller" style="width:100%;"></div>';
var audio_html =
'<audio id="audio_player"> \
<source src="/stream/" type="audio/wav" /> \
</audio> \
<span id="state" style="text-align:cen... | JavaScript | 0 | @@ -3247,18 +3247,18 @@
+ '
- sample-id
+%3Cbr%3ECount:
' +
@@ -3278,16 +3278,35 @@
le_count
+ +'%3Cbr%3E%3Cbr%3ESource:'
);%0A %7D
|
e44539d76e42e444106e44630f3407864455fca7 | hacker news relevancy, normalize | share/spice/hacker_news/hacker_news.js | share/spice/hacker_news/hacker_news.js | function ddg_spice_hacker_news(api_result) {
// Check for at least 1 result
if (!api_result.results.length) {
return;
}
var script = $('[src*="/js/spice/hacker_news/"]')[0];
var source = $(script).attr("src");
var query = source.match(/hacker_news\/([^\/]+)/)[1];
var source_url = 'h... | JavaScript | 0.999369 | @@ -42,104 +42,8 @@
) %7B%0A
- // Check for at least 1 result%0A if (!api_result.results.length) %7B%0A return;%0A %7D%0A%0A
@@ -282,535 +282,17 @@
-var items = api_result.results.map(function(result)%7B%0A var item = result.item;%0A item.url = (item.url) ? item.url : 'http://... |
29b8196468fb68a5240148c3685424ef5e0cbfad | make deploy depend on build | gulp/tasks/deploy.js | gulp/tasks/deploy.js | var gulp = require('gulp');
var deploy = require("gulp-gh-pages");
gulp.task('deploy', function () {
gulp.src("./build/**/*")
.pipe(deploy({}));
});
| JavaScript | 0.000001 | @@ -80,16 +80,27 @@
deploy',
+ %5B'build'%5D,
functio
|
e3fae01274a1f370dd70395b6ff87147abcbe217 | disable test until genesis hash updated | test/common/genesishashes.js | test/common/genesishashes.js | var genesisData = require('../../../tests/genesishashestest.json'),
assert = require('assert'),
Blockchain = require('../../lib/blockchain.js'),
Block = require('../../lib/block.js'),
levelup = require('levelup');
var blockDB = levelup('', {
db: require('memdown')
}),
detailsDB = levelup('/does/not/matter'... | JavaScript | 0.000001 | @@ -569,18 +569,87 @@
%7D);%0A%0A
-it
+// TODO: activate when test data has the correct genesis hash%0A it.skip
('should
|
4a26698e487e63002ed2c9351bd89e8b2661bff8 | Fix deprecation warning | plugins/templates.js | plugins/templates.js | const each = require("async/each");
const extend = require("extend");
const fs = require("fs");
const match = require("multimatch");
const nunjucks = require("nunjucks");
const nunjucksDate = require("nunjucks-date");
/**
* Applies the nunjucks template engine. Code has been copied from the
* metalsmith-templates pl... | JavaScript | 0.000099 | @@ -1945,19 +1945,20 @@
ts =
- new
Buffer
+.from
(str
|
ce6af00514513c5dd501a5b285c9887fd99225c0 | add update policy endpoint | lib/models/Policies.js | lib/models/Policies.js | "use strict";
const ShareTempusMethod = require('../ShareTempusMethod');
class Policies extends ShareTempusMethod {
constructor() {
super({
quote: {
method : 'POST',
path : '/policies/quote'
},
create: {
method : 'P... | JavaScript | 0 | @@ -379,16 +379,17 @@
%7D,%0A
+%0A
@@ -392,16 +392,120 @@
+update: %7B%0A method : 'POST',%0A path : '/policies/update'%0A %7D,%0A
%0A
|
e42c13f9ced0225543334f57bd27cff48c96b8b5 | handle anonymous stations for splays | src/js/viewer/walls/buildAlpha.js | src/js/viewer/walls/buildAlpha.js | import {
FACE_ALPHA, LEG_SPLAY, FACE_WALLS, LEG_CAVE
} from '../../core/constants';
import { WorkerPool } from '../../core/WorkerPool';
import { Walls } from './Walls';
import { Float32BufferAttribute } from '../../Three';
function getSplays( survey, segments ) {
const stations = survey.stations;
const splayLin... | JavaScript | 0 | @@ -657,10 +657,10 @@
ned
-%7C%7C
+&&
s2
@@ -714,16 +714,36 @@
s === 0
+%7C%7C s1 === undefined
) %7B%0A%0A%09%09%09
@@ -840,53 +840,8 @@
%09%7D%0A%0A
-%09%09// console.log( station.name, segments );%0A%0A
%09%09fo
|
2f1af4046157331738e63de86fd50c724252779b | Make error message more explicit | lib/parseLdapFilter.js | lib/parseLdapFilter.js | const ldap = require("ldapjs");
const parseLdapFilter = function (filterString) {
try {
const filter = ldap.parseFilter(filterString);
return { filter: filter, isValid: true };
} catch (err) {
console.log(err.message);
return { filter: null, isValid: false };
}
};
module.exports = parseLdapFilte... | JavaScript | 0.998785 | @@ -215,16 +215,60 @@
ole.log(
+%60Invalid filter: $%7BfilterString%7D. Reason: $%7B
err.mess
@@ -270,16 +270,18 @@
.message
+%7D%60
);%0A r
|
8e3a9169739a5b8c5740e1aa12a3aa1f40cd8729 | Fix assertions | lib/node_modules/@stdlib/math/base/complex/ceiln/benchmark/benchmark.js | lib/node_modules/@stdlib/math/base/complex/ceiln/benchmark/benchmark.js | /**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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.000102 | @@ -739,19 +739,21 @@
;%0Avar is
-nan
+Array
= requi
@@ -765,26 +765,16 @@
@stdlib/
-math/base/
assert/i
@@ -775,19 +775,21 @@
sert/is-
-nan
+array
' );%0Avar
@@ -1238,37 +1238,40 @@
%09b.toc();%0A%09if (
+!
is
-nan
+Array
( y ) ) %7B%0A%09%09b.fa
@@ -1278,38 +1278,39 @@
il( 'should
-not
return
-NaN
+an... |
c679a9e75c9405ba5bf037489804d175f16631b9 | Rename variable | lib/node_modules/@stdlib/math/fast/special/int32-log2/examples/index.js | lib/node_modules/@stdlib/math/fast/special/int32-log2/examples/index.js | 'use strict';
var llog2 = require( './../lib' );
var v;
var i;
for ( i = 1; i < 101; i++ ) {
v = llog2( i );
console.log( 'llog2(%d) ≈ %d', i, v );
}
| JavaScript | 0.000003 | @@ -12,21 +12,22 @@
';%0A%0Avar
-l
log2
+ul
= requi
@@ -99,17 +99,24 @@
v =
-l
log2
+ul
( i
+%3E%3E%3E 0
);%0A%09
@@ -129,17 +129,16 @@
e.log( '
-l
log2(%25d)
|
be5c20c690ff03322f31d1e84028a30975245fc7 | Fix DeferredWrapper utility module used for async store testing | test/data/DeferredWrapper.js | test/data/DeferredWrapper.js | define(["dojo/_base/lang", "dojo/_base/Deferred"],function(lang, Deferred){
// summary:
// Creates a store that wraps the delegate store's query results and total in Deferred
// instances. If delay is set, the Deferreds will be resolved asynchronously after delay +/-50%
// milliseconds to simulate network reques... | JavaScript | 0 | @@ -365,16 +365,17 @@
function
+
(store,
@@ -376,24 +376,25 @@
tore, delay)
+
%7B%0A%09%09return l
@@ -437,18 +437,20 @@
tion
+
()
+
%7B%0A%09%09%09%09if
(!th
@@ -445,16 +445,17 @@
%7B%0A%09%09%09%09if
+
(!this.d
@@ -481,29 +481,16 @@
hen)
+
%7B%0A%09%09%09%09%09
-var results =
stor
@@ -506,24 +506... |
af3f21f5a8fbec882f52b87b6444eb649f15fd1c | Remove margin around highlighted search match | lib/preview-element.js | lib/preview-element.js | /* @flow */
const LINE_BREAKS_REGEX = /(?:\r\n|\r|\n)/g
export default document.registerElement('textual-velocity-preview', {
prototype: Object.assign(Object.create(HTMLElement.prototype), {
updatePreview (path: string, content: string, searchRegex?: RegExp) {
this._path = path
if (searchRegex) {
... | JavaScript | 0 | @@ -445,21 +445,8 @@
ss=%22
-inline-block
high
|
b914d7ec327907ced15be879293bb6d4efebfd66 | Fix last linter error | lib/preview-element.js | lib/preview-element.js | /* @flow */
const LINE_BREAKS_REGEX = /(?:\r\n|\r|\n)/g
export default document.registerElement('textual-velocity-preview', {
prototype: Object.assign(Object.create(HTMLElement.prototype), {
attachedCallback () {},
attributeChangedCallback () {},
createdCallback () {},
detachedCallback () {},
... | JavaScript | 0.000012 | @@ -540,17 +540,19 @@
opyArray
-=
+ =
content.
|
a77ca1dc69408be83e80c1bed7fe7cfedb0b7b69 | Add test for Fastify POST | test/fastify/fastify-test.js | test/fastify/fastify-test.js | const fastify = require('fastify');
const chai = require('chai'),
expect = chai.expect,
chaiSinon = require('sinon-chai');
chai.use(chaiSinon);
const inputValidation = require('../../src/middleware');
describe('fastify plugin', () => {
let app;
before(() => {
inputValidation.init('test/pet-stor... | JavaScript | 0 | @@ -896,32 +896,127 @@
);%0A %7D);%0A%0A
+ app.post('/pets', (req, reply) =%3E %7B%0A reply.status(201).send();%0A %7D);%0A%0A
await ap
@@ -3522,13 +3522,1034 @@
%0A %7D);
+%0A%0A it('Accepts a valid POST request', async () =%3E %7B%0A const response = await app.i... |
226751cd7ed9aa0e601f6dfd59bcd997153dcba9 | Make getFilePath private. | lib/resource-mapper.js | lib/resource-mapper.js | const fs = require('fs')
const URL = require('url')
const { promisify } = require('util')
const { types, extensions } = require('mime-types')
const readdir = promisify(fs.readdir)
const HTTPError = require('./http-error')
// A ResourceMapper maintains the mapping between HTTP URLs and server filenames,
// following th... | JavaScript | 0 | @@ -1888,32 +1888,33 @@
FilePath = this.
+_
getFilePath(url)
@@ -4256,16 +4256,17 @@
= this.
+_
getFileP
@@ -6039,16 +6039,17 @@
a URL%0A
+_
getFileP
|
14b93b2550c4cb82bdefc97fc9381b54e050d4cd | update default lang value while format | lib/rules/html-lang.js | lib/rules/html-lang.js | /**
* @file rule: html-lang
* @author nighca<nighca@live.cn>
*/
module.exports = {
name: 'html-lang',
desc: 'Attribute "lang" of <html> recommended to be set.',
lint: function (enable, document, reporter) {
if (!enable) {
return;
}
var html = document.querySelecto... | JavaScript | 0 | @@ -774,32 +774,91 @@
bute('lang')) %7B%0A
+ // %E9%BB%98%E8%AE%A4%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87 ( http://tools.ietf.org/html/bcp47 )%0A
html
@@ -887,10 +887,16 @@
'zh-
-CN
+cmn-Hans
');%0A
|
1699b735afe14bef74d32853f623c1fb728000e8 | fix path to configure file | src/helpers/resolveEndpoint.js | src/helpers/resolveEndpoint.js | import { config } from './configure'
const resolveEndpoint = (endpoint) => {
if (!config.baseURL || /^http|^\//.test(endpoint)) {
return endpoint
}
else {
return config.baseURL + endpoint
}
}
export default resolveEndpoint
| JavaScript | 0 | @@ -18,16 +18,17 @@
from '.
+.
/configu
|
9f1be88529680baa48a3bc2d46c0b5ba411bd1df | add policy subsystem | lib/rules/subsystem.js | lib/rules/subsystem.js | 'use strict'
const id = 'subsystem'
const validSubsystems = [
'benchmark'
, 'build'
, 'bootstrap'
, 'deps'
, 'doc'
, 'errors'
, 'etw'
, 'esm'
, 'inspector'
, 'lib'
, 'loader'
, 'meta'
, 'msi'
, 'node'
, 'n-api'
, 'perfctr'
, 'src'
, 'test'
, 'tools'
, 'win'
// core libs
, 'assert'
, 'async_hooks'
, 'buffer'
, 'c... | JavaScript | 0.000001 | @@ -220,16 +220,27 @@
erfctr'%0A
+, 'policy'%0A
, 'src'%0A
|
8d5814131c62e395d039a20a750349e2f901ea83 | trim whitespaces for local datatips (line) | lib/runtime/datatip.js | lib/runtime/datatip.js | /** @babel */
/**
* @FIXME?
* Use `component` property instaed of `markedStrings` and reuse exisiting our full-featured
* components in ../ui/views.coffee.
* Code in https://github.com/TypeStrong/atom-typescript/blob/master/dist/main/atom-ide/datatipProvider.js
* can be helpful.
*/
import { client } from '../co... | JavaScript | 0 | @@ -1764,32 +1764,104 @@
(result.line) %7B%0A
+ const value = editor.lineTextForBufferRow(result.line).trim()%0A
return
@@ -1966,50 +1966,8 @@
alue
-: editor.lineTextForBufferRow(result.line)
,%0A
@@ -2396,32 +2396,104 @@
(result.line) %7B%0A
+ const value = editor.lineTextForBufferRo... |
e824debad946f13374ea749a708acb5c64c49d88 | Fix furball test | test/integration/composer.js | test/integration/composer.js | // Load modules
var Chai = require('chai');
var Hapi = require('../..');
// Declare internals
var internals = {};
// Test shortcuts
var expect = Chai.expect;
describe('Composer', function () {
it('composes pack', function (done) {
var options = {
servers: {
... | JavaScript | 0.000006 | @@ -1347,67 +1347,36 @@
sult
-).to.deep.equal(%5B%7B %22name%22: %22furball%22, %22version%22: %220.1.0%22 %7D%5D
+%5B0%5D.name).to.equal('furball'
);%0D%0A
|
1221dacb8e9b4a576414def6ca17e8bf4fe1f7ba | use query.sql more consequently | lib/sequelize/query.js | lib/sequelize/query.js | var Utils = require("./utils")
var Query = module.exports = function(databaseConfig, callee, options) {
this.config = databaseConfig
this.callee = callee
this.options = options || {}
}
Utils.addEventEmitter(Query)
Query.prototype.run = function(query) {
var self = this
var client = new (require("mysql").Clie... | JavaScript | 0 | @@ -486,61 +486,8 @@
%7D)
-%0A%0A // Save the query text for testing and debugging.
%0A t
@@ -562,21 +562,24 @@
ng: ' +
-query
+this.sql
)%0A%0A cli
@@ -607,21 +607,24 @@
t.query(
-query
+this.sql
, functi
@@ -697,21 +697,24 @@
Success(
-query
+self.sql
, result
|
9c8c89ef8aaee49e7f0d2b454c4e5a5d3ad7bc35 | add auth check to settings | src/javascript/app_2/routes.js | src/javascript/app_2/routes.js | import React from 'react';
import { Route, NavLink } from 'react-router-dom';
import PropTypes from 'prop-types';
import Client from '../_common/base/client_base';
import { redirectToLogin } from '../_common/base/login';
import { localize } from '../_common/localize';
impo... | JavaScript | 0.000001 | @@ -1642,16 +1642,48 @@
ttings,%0A
+ is_authenticated: true,%0A
|
014624a0f5d8e3844536bab4dc626d202a892858 | Handle ENOENT errors in codemod | src/codemod-repo.js | src/codemod-repo.js | import fs from 'fs';
import Promise from 'promise';
import github from 'github-basic';
import gethub from 'gethub';
import rimraf from 'rimraf';
import lsr from 'lsr';
import throat from 'throat';
import {pushError} from './db';
const client = github({version: 3, auth: process.env.GITHUB_BOT_TOKEN});
const readFile =... | JavaScript | 0 | @@ -1720,24 +1720,146 @@
%7D%0A
+ %7D, err =%3E %7B%0A if (err.code === 'ENOENT') %7B%0A return;%0A %7D%0A throw err;%0A
%7D)
|
e9f4a7825bc0a61d7d094b5a85c8c354bd10384f | Update storage.js | lib/storage/storage.js | lib/storage/storage.js | /*
* slack-bot
* https://github.com/usubram/slack-bot
*
* Copyright (c) 2016 Umashankar Subramanian
* Licensed under the MIT license.
*/
'use strict';
const fs = require('fs');
const _ = require('lodash');
const path = require('path');
const root = '..';
const botLogger = require(path.join(root, 'utils/logger'... | JavaScript | 0.000001 | @@ -2038,44 +2038,8 @@
%3E %7B%0A
- console.log('came to readh');%0A
|
0b8ef104cebbc526ec750fbac652a48e3487d21f | Change ref in broken test. | test/src/combat_util.spec.js | test/src/combat_util.spec.js | 'use strict';
const expect = require('chai').expect;
const Player = require('../../src/player.js').Player;
const Npc = require('../../src/npcs.js').Npc;
const CombatUtil = require('../../src/combat_util.js').CombatUtil;
const CombatHelper = require('../../src/combat_util.js').CombatHelper;
describe('Player/NPC... | JavaScript | 0 | @@ -2907,16 +2907,26 @@
tPrimary
+AttackName
();%0A
|
89027f32620fba6edbbd15e2a6f156ba8f671620 | Fix object destructuring | src/js/classes/InputHandler.js | src/js/classes/InputHandler.js | import config from '../config';
// ##############################################
// # Private functions ##########################
// ##############################################
const controls = {
playerAccelerate: false,
playerDecelerate: false,
playerTurnLeft: false,
playerTurnRight: false,
... | JavaScript | 0.000549 | @@ -1351,75 +1351,28 @@
nst
-%5Brotation%5D = cameraObject.camera.rotation;%0A const %5B
+%7B rotation,
position
%5D
@@ -1367,22 +1367,18 @@
position
-%5D
+%7D
= camer
@@ -1395,17 +1395,8 @@
mera
-.position
;%0A
@@ -1407,16 +1407,23 @@
nst
-%5B
+%7B
target
-%5D
+ %7D
@@ -144... |
d8f128d2880db5039a362e323a2b4a924bc23ef1 | countdown component | src/js/components/countdown.js | src/js/components/countdown.js | import Class from '../mixin/class';
import { $, empty, html } from 'uikit-util';
export default {
mixins: [Class],
props: {
date: String,
clsWrapper: String,
},
data: {
date: '',
clsWrapper: '.uk-countdown-%unit%',
},
computed: {
date({ date }) {
... | JavaScript | 0.99975 | @@ -44,15 +44,8 @@
%7B $,
- empty,
htm
@@ -68,16 +68,72 @@
util';%0A%0A
+const units = %5B'days', 'hours', 'minutes', 'seconds'%5D;%0A%0A
export d
@@ -326,238 +326,16 @@
co
-mputed: %7B%0A date(%7B date %7D) %7B%0A return Date.parse(date);%0A %7D,%0A%0A days(%7B clsWrapper %7D, $... |
b504f02c2b0d30d1cd1af0b851efd10920066d9e | remove alert from status code | src/js/oseam-views-register.js | src/js/oseam-views-register.js | // -------------------------------------------------------------------------------------------------
// OpenSeaMap Water Depth - Web frontend for depth data handling.
//
// Written in 2012 by Dominik Fässler dfa@bezono.org
//
// To the extent possible under law, the author(s) have dedicated all copyright
// and related... | JavaScript | 0.000001 | @@ -5969,37 +5969,8 @@
'';%0A
- alert(jqXHR.status);%0A
|
76968503f1f0b3c0753376c6415aeee0dc75e10f | Add a hasTS property to the build config, which defaults to true if the project has a tsconfig.json file | src/config/build.js | src/config/build.js | // External
const mem = require('mem');
// Ours
const { BUILD_DIRECTORY_NAME } = require('../constants');
const { combine } = require('../utils/structures');
const { getProjectConfig } = require('./project');
const PROJECT_TYPES_CONFIG = {
svelte: {
useCSSModules: false
}
};
module.exports.getBuildConfig = m... | JavaScript | 0 | @@ -1,8 +1,91 @@
+// Global%0Aconst %7B existsSync %7D = require('fs');%0Aconst %7B join %7D = require('path');%0A%0A
// Exter
@@ -361,16 +361,150 @@
e%0A %7D%0A%7D;
+%0Aconst DEFAULT_ENTRY_FILE_NAME = 'index';%0Aconst DEFAULT_SOURCE_DIRECTORY_NAME = 'src';%0Aconst DEFAULT_STATIC_DIRECTORY_NAME = 'public';
%0A%0Amo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.