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
b0f47604687764924f09341bc94eb7fb8b519235
Read file source and save to vyper compilation output
packages/truffle-compile-vyper/index.js
packages/truffle-compile-vyper/index.js
const path = require("path"); const exec = require("child_process").exec; const async = require("async"); const colors = require("colors"); const minimatch = require("minimatch"); const find_contracts = require("truffle-contract-sources"); const Profiler = require("truffle-compile/profiler"); const compiler = { na...
JavaScript
0
@@ -66,16 +66,49 @@ %22).exec; +%0Aconst fse = require(%22fs-extra%22); %0A%0Aconst @@ -3442,16 +3442,22 @@ s.paths%0A +async function @@ -3481,32 +3481,32 @@ ns, callback) %7B%0A - options.logger @@ -3680,16 +3680,22 @@ ce_path, + async functio @@ -4134,24 +4134,146 @@ asename));%0A%0A + const sou...
81646b2d5fad5f2cb2a124607292a04183c84ce7
move parent object so that anchor is working
passwordpolicy/js/user.js
passwordpolicy/js/user.js
$(document).ready(function() { $('#passwordform').after($('#password_policy').detach()); });
JavaScript
0.000001
@@ -73,16 +73,25 @@ olicy'). +parent(). detach()
44c1262a4e975941d7fc74c852c03d47390e828e
replace className by class, export a div container instead of a pre container (code block)
src/exporter.js
src/exporter.js
import React from 'react'; import { convertToHTML } from 'draft-convert'; import { Inline, Block, Entity } from './util/constants'; export const styleToHTML = (style) => { switch (style) { case Inline.ITALIC: return <em className={`md-inline-${style.toLowerCase()}`} />; case Inline.BOLD: return ...
JavaScript
0
@@ -2262,28 +2262,24 @@ aption class -Name =%22md-block-i @@ -3729,27 +3729,27 @@ nest: %3C -pre +div className=%22
d4220b04da09b5ba4a572a82a515f8265b598602
rewrite app.react
logspace-frontend/src/client/app/app.react.js
logspace-frontend/src/client/app/app.react.js
/* * Logspace * Copyright (c) 2015 Indoqa Software Design und Beratung GmbH. All rights reserved. * This program and the accompanying materials are made available under the terms of * the Eclipse Public License Version 1.0, which accompanies this distribution and * is available at http://www.eclipse.org/legal/epl-...
JavaScript
0.000012
@@ -454,22 +454,29 @@ er'%0A +%0A import -%7Bs +* as appS tate -%7D fro @@ -493,82 +493,676 @@ e'%0A%0A -require('./app.styl');%0A%0Aexport default class App extends React.Component %7B +import '../intl/store'%0Aimport '../time-window/store'%0Aimport '../time-series/store'%0Aimport '../result/store'%0Aimport '.....
cc6501a48a8116ea33234300a37af70002071bda
Handle empty or missing user agent responses.
usragent.js
usragent.js
function parse_user_agent(agent) { "use strict"; var fields = []; fields[0] = agent; fields[1] = "Mozilla-compatible"; fields[2] = "Unix-derived"; return (fields); }
JavaScript
0.000002
@@ -160,16 +160,140 @@ erived%22; +%0A%0A if (fields%5B0%5D === %22%22) %7B%0A fields%5B0%5D = %22(no browser identification sent)%22;%0A fields%5B1%5D = %22(unknown)%22;%0A %7D %0A ret
a57f65c8e4ec973921d876ed223b8cd7e45e9c6f
Create login functionality in Ally framework
plugins/gui-core/gui-resources/scripts/js/views/auth.js
plugins/gui-core/gui-resources/scripts/js/views/auth.js
define ([ 'jquery', 'jquery/superdesk', 'dust/core', 'utils/sha512', 'jquery/tmpl', 'jquery/rest', 'bootstrap', 'tmpl!auth', ], function($, superdesk, dust, jsSHA) { <<<<<<< HEAD var AuthLogin = function(username, password, logintoken){ ======= var AuthDetails = function(username){ var authDetails ...
JavaScript
0
@@ -1220,29 +1220,16 @@ ssion);%0A -%3C%3C%3C%3C%3C%3C%3C HEAD%0A %09%09%09local @@ -1445,437 +1445,8 @@ ');%0A -=======%0A%09%09%09//localStorage.setItem('superdesk.login.id', user.Id);%0A%09%09%09localStorage.setItem('superdesk.login.name', user.UserName);%0A%09%09%09localStorage.setItem('superdesk.login.email', u...
f1b1c153d98440bbde019b452736a8e1bab5fe47
Add TODO comment
packages/uikit-default/src/js/panels.js
packages/uikit-default/src/js/panels.js
/*! * Default Panels for Pattern Lab plus Panel related events * * Copyright (c) 2016 Dave Olsen, http://dmolsen.com * Licensed under the MIT license * * config is coming from the default viewer and is passed through from PL's config * * @requires prism-languages.js */ var Panels = { panels: [], cou...
JavaScript
0
@@ -964,24 +964,56 @@ bo': '' %7D);%0A +// TODO: sort out sg-panel-html%0A Panels.add(%7B
74b576b2d4f98c1059f48be6c127e9dc0025e16d
test setting inner html
__tests__/src/index-test.js
__tests__/src/index-test.js
/* eslint-env jest */ jest.unmock('../../src'); import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import marked from 'marked'; import MarkdownRenderer from '../../src'; describe('MarkdownRenderer', () => { const markdown = '# This is a H1 \n## This is ...
JavaScript
0
@@ -412,19 +412,736 @@ -it('renders +describe('sets innerHTML', () =%3E %7B%0A let containerNode;%0A let html;%0A%0A afterEach(() =%3E %7B%0A expect(marked.mock.calls.length).toEqual(1);%0A expect(marked).toBeCalledWith(markdown, %7B sanitize: true %7D);%0A%0A ...
26f4d77e51d9de91b0332f54237edf7f868735a8
fix context of confirm modal
src/app/ui/components/modal/modal-confirm/component.js
src/app/ui/components/modal/modal-confirm/component.js
import { get } from "@ember/object"; import ModalDialogComponent from "../modal-dialog/component"; import layout from "./template.hbs"; function actionFactory( action ) { return function( success, failure ) { get( this, "modal.context" ).send( action, success, failure ); }; } export default ModalDialogComponent...
JavaScript
0.000002
@@ -1,41 +1,4 @@ -import %7B get %7D from %22@ember/object%22;%0A impo @@ -174,36 +174,25 @@ %7B%0A%09%09 -get( this -, %22 +. modal -.c +C ontext -%22 ) .sen
4cdf4227d39304b0c6f7ab9e6e62fa27977617d1
fix directory permission hang
src/service.js
src/service.js
import {createServer as httpServer} from 'http' import {parse as parseURL} from 'url' import {join as joinPath} from 'path' import {exists as existsFile, stat} from 'fs' import {transpile} from './index' export default function service({base, lang, port}) { //var watched = [] httpServer((req, res) => { if (req.m...
JavaScript
0.000001
@@ -963,24 +963,38 @@ Date.now()%0A +%09%09%09%09%09%09%09try %7B%0A%09 %09%09%09%09%09%09%09lang. @@ -1017,16 +1017,18 @@ (lang)%7B%0A +%09%09 %09%09%09%09%09%09%09%09 @@ -1083,27 +1083,133 @@ ang)%0A%09%09%09%09%09%09%09 +%09 %7D)%0A +%09%09%09%09%09%09%09%7D catch (e) %7B%0A%09%09%09%09%09%09%09%09send(403, '...
7ac2d4067579d8dd943f7764ba19fa50e6360b85
remove overflow use
runners.js
runners.js
export function generator(node, method) { const iter = method(node); return function(nextDelay) { const out = iter.next(); if (out.done) { return true; // stop calling me } if (out.value !== true) { throw new Error('unsupported generator value: ' + value); } } } export function...
JavaScript
0.000001
@@ -770,136 +770,8 @@ %7D%0A%0A - // FIXME: incorporate overflow into styling of scene%0A // if ('overflow' in frame) %7B device.overflow = frame.overflow; %7D%0A%0A
ab5bc27c7cc8ea1e8d6b9e73f0b26bd516b24188
Set base row structure
app/app.module.js
app/app.module.js
var app = angular.module('weather-app', []); app.factory('SearchService', [function() { var queryTerms = []; var updateNotifications = []; function updateTerms(terms) { queryTerms = terms; notifyDidUpdateTerms(terms); return true; } // Notify contexts that the terms were updated function did...
JavaScript
0.000001
@@ -3795,32 +3795,95 @@ pe.terms = %5B%5D;%0A%0A + var dataRowBase = %7B%0A label: '',%0A isLoading: true%0A %7D;%0A%0A // Recieve ter
e946e8f5a70091ab8817d4744aff152f651c14dd
fix routing bug
src/core/router/index.js
src/core/router/index.js
import Router from 'vue-router'; import store from '@/core/store'; import langShortCodes from '@/translations/getShortCodes'; import routesDefault from './routes-default'; import routesWallet from './routes-wallet'; import { ROUTES_HOME } from '../configs/configRoutes'; const routes = [routesDefault, routesWallet]; co...
JavaScript
0.000028
@@ -848,16 +848,167 @@ t) =%3E %7B%0A + // If route point doesn't exist, re-route to 404 page%0A if (to.name === null) %7B%0A next(%7B name: ROUTES_HOME.PAGE_NOT_FOUND.NAME %7D);%0A return;%0A %7D%0A // Che @@ -1354,38 +1354,37 @@ ROUTES_HOME. -PAGE_NOT_FOUND +ACCESS_WALLET .NAME %7D);%0A
5be15f2f3e5d45fef4d4c20c34b2b5d3a8f90b7d
Fix JS hints
app/scripts/app.js
app/scripts/app.js
'use strict'; require('scripts/components/*'); require('scripts/compiled/components'); require('scripts/scenes/*'); require('scripts/compiled/scenes'); require('scripts/game'); window.Game.start(); // Handle the fullscreen button $(document).on('click', function () { if (screenfull.enabled) { screenfull.reques...
JavaScript
0.000001
@@ -341,22 +341,22 @@ ;%0A $( -%22 +' body -%22 +' ).addCla @@ -354,25 +354,25 @@ ').addClass( -%22 +' fullscreen%22) @@ -365,25 +365,25 @@ ('fullscreen -%22 +' );%0A docum @@ -539,14 +539,14 @@ $( -%22 +' body -%22 +' ).re @@ -555,17 +555,17 @@ veClass( -%22 +' fullscre @@ -566,17 +566,17 @@ llscr...
9f60f404bbff89d8ad7c4bcb102745ff90e9c713
add reactivity on object3ds (namespace)
src/core/vgl-object3d.js
src/core/vgl-object3d.js
import { Object3D } from 'three'; import { parseVector3, parseEuler, parseQuaternion } from '../parsers'; import { vector3, euler, quaternion, boolean, string, } from '../validators'; /** * This is the base mixin component for most object components in VueGL, * corresponding [THREE.Object3D](https://threej...
JavaScript
0
@@ -1920,23 +1920,29 @@ = inst) +this.$ delete - +( vglNames @@ -1955,22 +1955,23 @@ bject3ds -%5B +, name -%5D +) ;%0A vg @@ -2800,24 +2800,34 @@ ;%0A +this.$set( this.vglName @@ -2841,17 +2841,18 @@ bject3ds -%5B +, this.nam @@ -2848,32 +2848,31 @@ s, this.name -%5D = +, inst +) ;%0A ...
1060ee1db3dd5b0b587d6834ed122dffe7ad8990
Set the current document to the first search result
src/sidebar.js
src/sidebar.js
// SidebarView define(function (require) { var _ = require('underscore'), $ = require('jquery'), Backbone = require('backbone'), Handlebars = require('handlebars'), SimpleSearchListItemView = require('./simple_search_list_item'); var SidebarView = Backbone.View.extend({ tagName: 'div', cl...
JavaScript
0.000002
@@ -727,15 +727,22 @@ -_.each( +var records = t.re @@ -766,16 +766,104 @@ ecords() +;%0A%0A // Create a list item view for each record in the results.%0A _.each(records , functi @@ -1088,16 +1088,16 @@ ().el);%0A - %7D) @@ -1094,24 +1094,307 @@ ;%0A %7D);%0A +%0A // Set the curren...
13a56423ec7b22c6e94e0cd0475e1be39e7beb7c
fix name
app/utils/index.js
app/utils/index.js
const mapToFakeStatus = (fakeStatus, fakeResolution) => fakeStatus === 'resolved' ? fakeResolution : fakeStatus; const needToAlter = [ 'successful', 'partially_successful', 'not_held', 'refused', 'user_withdrew_costs', 'user_withdrew', ]; function mapToFakeStatus(realStatus) { if (needToAlter.indexOf(...
JavaScript
0.019891
@@ -1,27 +1,27 @@ const mapTo -Fake +Real Status = (fa
52851e9cf6de788ded2e86f64b92fc356ff4a8dd
update content
app/views/index.js
app/views/index.js
define(['app', 'angular', 'authentication'], function() { 'use strict'; return ['$scope', '$rootScope', '$route', '$browser', '$location', '$window', 'authentication', function ($scope, $rootScope, $route, $browser, $location, $window, authentication) { $scope.carouselData= { items :[ { title:...
JavaScript
0
@@ -1067,16 +1067,42 @@ title: %22 +PANORAMA portal hosted by Blue Sol @@ -1111,17 +1111,8 @@ ions - Panorama %22,%0A%09
e5110938e6ccf52c42d9c5c057ca01435e3a7aa9
Add unique identifier in front of the label
src/getChart.js
src/getChart.js
'use strict'; // convert an experiment, an array of spectra, to a chart var types=require('./types.js'); module.exports=function (experiments, channels, index) { var channels = channels || 'RGBWZE' if (! Array.isArray(experiments)) experiments=[experiments]; var chart = { type: "chart", ...
JavaScript
0.000031
@@ -595,24 +595,43 @@ %7D%0A %7D%0A + var counter=0;%0A for (var @@ -1050,16 +1050,33 @@ %22label%22: +(++counter)+%22. %22+ types%5Bke
f79ad552152b640a32aa007dfcd9c39dfc875dff
Update TemperatureSensor_MRz_accessory.js
accessories/TemperatureSensor_MRz_accessory.js
accessories/TemperatureSensor_MRz_accessory.js
var Accessory = require('../').Accessory; var Service = require('../').Service; var Characteristic = require('../').Characteristic; var uuid = require('../').uuid; var DS3231ESPTEMP = { currentTemperature: 50, getTemperature: function() { console.log("Getting the current temperature!"); retur...
JavaScript
0
@@ -1006,16 +1006,20 @@ e Sensor + MRz ', senso
e87e9975541f61872c7bf1fd8e2e2192d805da29
Update standard.spec.js
tests/viewerpreferences/standard.spec.js
tests/viewerpreferences/standard.spec.js
'use strict' /* global describe, it, expect, jsPDF, comparePdf */ /** * Standard spec tests * * These tests return the datauristring so that reference files can be generated. * We compare the exact output. */ describe('viewerpreferences plugin', () => { it('HideToolbar', () => { const doc = new jsPDF() d...
JavaScript
0
@@ -1129,14 +1129,8 @@ %7D)%0A - /**%0A it @@ -1740,13 +1740,8 @@ %7D)%0A - */%0A it
c32812b171ff81f678aebf846d276f1bb1ea8989
Store currentVideo playing data
devServer.js
devServer.js
var webpack = require('webpack'); var webpackDevMiddleware = require('webpack-dev-middleware'); var webpackHotMiddleware = require('webpack-hot-middleware'); var app = require('express')(); var server = require('http').Server(app); var io = require('socket.io')(server); var config = require('./webpack.config'); var toI...
JavaScript
0
@@ -799,38 +799,8 @@ %5B%5D;%0A -var currentVideoDuration = 0;%0A var @@ -843,16 +843,60 @@ = false; +%0Avar currentVideo = %7Bvideoid: '', start: 0%7D; %0A%0Afuncti @@ -1666,16 +1666,76 @@ = true;%0A + currentVideo = %7Bvideoid: videoid, start: Date.now()%7D;%0A se
32bf964785b24d0bd45d8b71c6c98d73ed3300ef
Fix misleading sign up success Bert Alert
imports/ui/components/account/AccountAlerts.js
imports/ui/components/account/AccountAlerts.js
/** * Notification functions for displaying accounts-related user feedback, * such as success or failure messages for logging in, logging out, * signing in and forgetting password. */ const MAX_PASSWORD_TRIES = 5; export const successMsgs = { SUCCESS_LOGIN: "Welcome back!", SUCCESS_SIGNUP: "Welcome! Please lo...
JavaScript
0.002296
@@ -299,52 +299,88 @@ P: %22 -Welcome! Please log in with your new +Thanks for signing up! Please check your email to verify your NUS Oracle account bel @@ -379,14 +379,8 @@ ount - below !%22,%0A
ece21e18feb6871c83f02bc4a2516471c61c4bee
Make options argument to ol.style.Text optional
src/ol/style/textstyle.js
src/ol/style/textstyle.js
goog.provide('ol.style.Text'); /** * @constructor * @param {olx.style.TextOptions} options Options. */ ol.style.Text = function(options) { /** * @type {string|undefined} */ this.font = options.font; /** * @type {number|undefined} */ this.rotation = options.rotation; /** * @type {string...
JavaScript
0.002239
@@ -79,18 +79,23 @@ tOptions += %7D +opt_ options @@ -132,16 +132,20 @@ unction( +opt_ options) @@ -148,16 +148,77 @@ ons) %7B%0A%0A + var options = goog.isDef(opt_options) ? opt_options : %7B%7D;%0A%0A /**%0A
5ecd31f7971e524db1c0ea9ec8300c17297f97f6
Add updateQueuePosition function to Chatbody
frontend/src/components/chat/body/Chatbody.js
frontend/src/components/chat/body/Chatbody.js
import React, { Component } from 'react'; import ChatMessages from './ChatMessages'; import ChatFooter from './ChatFooter'; import realtimeConnector from '../connection/realtimeConnector'; import presenceConnector from '../connection/presenceConnector'; import * as config from '../../config'; import QueueMessage from '...
JavaScript
0.000001
@@ -1373,32 +1373,192 @@ ected%7D);%0A %7D%0A%0A + updateQueuePosition = (queuePosition) =%3E %7B%0A this.setState(%7BinfoMessage: INFO_MESSAGES.queued + ' (%CE%98%CE%AD%CF%83%CE%B7: ' + queuePosition.toString() + ')'%7D);%0A %7D%0A%0A handleNext =
7458eddac266564b7bef0e675fa57c2ac97554f9
Add line chart
host/Chart.js
host/Chart.js
import React, { Component } from 'react' import { connect } from 'react-redux' import ReactHighcharts from 'react-highcharts' import HighchartsMore from 'highcharts-more' HighchartsMore(ReactHighcharts.Highcharts) function computeQuartile(array, length, n, d) { const pos = (length - 1.0) * n / d const divisible =...
JavaScript
0.000003
@@ -1206,24 +1206,74 @@ high%5D%0A %7D)%0A + const lineData = finalData.map(list =%3E list%5B2%5D)%0A const conf @@ -1748,24 +1748,74 @@ /%3E'%0A %7D%0A + %7D, %7B%0A type: %22line%22,%0A data: lineData%0A %7D%5D%0A %7D%0A
a5b8d890d73b49020bb79a49e9a9eb86cc35da80
Update openClosedVines2.user.js
openClosedVines2.user.js
openClosedVines2.user.js
// ==UserScript== // @name Auto open sensitive Vines // @namespace http://nindogo.tumblr.com/ // @version 0.1.0.4 // @description open vines that are hidden due to sensitivity. // @match https://vine.co/* // @downloadURL https://github.com/nindogo/test_repo/raw/master/openClosedVines2.user.js // @includ...
JavaScript
0
@@ -115,17 +115,17 @@ 0.1.0. -4 +5 %0A// @des @@ -311,14 +311,14 @@ // @ -includ +requir e ht @@ -462,35 +462,282 @@ ==%0A%0A -%0Awindow.onload = openVines; +var observer = new MutationSummary(%7B%0A callback: openVines,%0A queries: %5B%7B%0A element: 'button.small',%0A elementAttributes: %22...
f8341ec90424c2a8a02588ff2f8e4abb6821d734
Tidy up
packages/udaru-hapi-plugin/index.js
packages/udaru-hapi-plugin/index.js
'use strict' const buildUdaru = require('@nearform/udaru-core') const buildConfig = require('./lib/config') const buildAuthorization = require('./lib/authorization') const HapiAuthService = require('./lib/authentication') const pluginName = 'udaru-hapi-plugin' module.exports = { pkg: require('./package'), name: ...
JavaScript
0.000027
@@ -221,48 +221,8 @@ ')%0A%0A -const pluginName = 'udaru-hapi-plugin'%0A%0A modu @@ -277,18 +277,27 @@ me: +'udaru-hapi- plugin -Name +' ,%0A
b7b01e71b1cb06f06e497715db8a97bc814792b3
create file with 'settings.output' option
packages/uglify-es/src/uglify-es.js
packages/uglify-es/src/uglify-es.js
/*! * node-minify * Copyright(c) 2011-2019 Rodolphe Stoclin * MIT Licensed */ /** * Module dependencies. */ import uglifyES from 'uglify-es'; import { utils } from '@node-minify/utils'; /** * Run uglifyES. * * @param {Object} settings * @param {String} content * @param {Function} callback */ const minifyU...
JavaScript
0.000007
@@ -625,32 +625,35 @@ iteFile(%7B file: +%60$%7B settings.options @@ -650,28 +650,19 @@ gs.o -ptions.sourceMap.url +utput%7D.map%60 , co
8b4ef0eac6ef41228fdc86621dea66d3bd59aa23
add item workflow improvements
src/flows/addItem.js
src/flows/addItem.js
'use strict' module.exports = (app) => { let slapp = app.slapp let kv = app.kv slapp.message('new item', ['direct_mention', 'direct_message'], (msg, text, role) => { slapp.client.users.info({ token: msg.meta.bot_token, user: msg.meta.user_id }, (err, data) => { kv.get("owners", (err, role...
JavaScript
0
@@ -1525,16 +1525,35 @@ %5C%60%5C%60%60)%0A%0A + msg.say()%0A%0A @@ -1620,32 +1620,159 @@ element + ' -Please R +' + state.title + ' changes do not require QA or have automated test coverage?')%0A msg.say('@'+element + ' Please reply %22qa r eview ' + st @@ -1772,32 +1772,46 @@ ' + sta...
679aeefc869eb69b873c5220b9f6104b6b03b6e2
Update FFA.js
src/gamemodes/FFA.js
src/gamemodes/FFA.js
var Mode = require('./Mode'); function FFA() { Mode.apply(this, Array.prototype.slice.call(arguments)); this.ID = 0; this.name = "Free For All"; this.specByLeaderboard = true; } module.exports = FFA; FFA.prototype = new Mode(); // Gamemode Specific Functions FFA.prototype.onPlayerSpa...
JavaScript
0
@@ -365,17 +365,16 @@ yer. -setC +c olor -( + = game @@ -396,17 +396,16 @@ mColor() -) ;%0D%0A /
5bb07fdc737d974fc2c52647c355053ffb0bdce1
Add host specification
src/githubFactory.js
src/githubFactory.js
var GithubLib = require('github') var queue = require('queue') var rawGithubFactory = function (token) { // Allow to inject a GitHub API instead of a token if (token.repos) { return token } var res = new GithubLib({ version: '3.0.0' }) res.authenticate({ type: 'oauth', token: token }) ...
JavaScript
0
@@ -243,16 +243,44 @@ '3.0.0' +,%0A host: 'api.github.com' %0A %7D)%0A
601894e24d59c2784bfd746346e5fd9b4dd8350f
add back DELETE method context as POST support
src/helpers/fetch.js
src/helpers/fetch.js
import {isObject, isString, startsWith, endsWith} from './util'; import { encodeUriQuery, encodeUriSegment, replaceUrlParamFromUrl, replaceQueryStringParamFromUrl, splitUrlByProtocolAndDomain } from './url'; import {defaultGlobals, defaultHeaders, defaultIdKeys} from '../defaults'; export class HttpError ext...
JavaScript
0.000002
@@ -2220,16 +2220,23 @@ UT%7CPATCH +%7CDELETE )$/i.tes
ac377996cd5b970d1765641fc13eabfe7558ca59
Change GroupStateModel to not be storable on the contact
go/base/static/js/src/apps/dialogue/models.js
go/base/static/js/src/apps/dialogue/models.js
// go.apps.dialogue.models // ======================= // Models for dialogue screen. (function(exports) { var Model = go.components.models.Model; var stateMachine = go.components.stateMachine, EndpointModel = stateMachine.EndpointModel, ConnectionModel = stateMachine.ConnectionModel, StateModel ...
JavaScript
0
@@ -3386,32 +3386,63 @@ eModel.extend(%7B%0A + storableOnContact: false,%0A%0A relations: %5B
18ca3a216ef05bc8647d1a25b7fae66ddd9ea104
Fix typos
packages/ratings/lib/ratings.js
packages/ratings/lib/ratings.js
Rating = {}; function K(rating) { return 32; } function Q(rating) { return Math.exp(rating / 400); } /** * Returns initial player rating. * @returns {number} */ Rating.initial = function () { return 500; }; /** * Calculate new ratings. * @param {number} blue - Rating of red player. * @param {number} red...
JavaScript
0.999999
@@ -271,35 +271,36 @@ lue - Rating of -red +blue player.%0A * @par @@ -475,22 +475,18 @@ %7D - -Expected score +New rating s fo @@ -787,35 +787,36 @@ lue - Rating of -red +blue player.%0A * @par @@ -895,34 +895,38 @@ number%7D%7D - -New rating +Expected score s for player
18f29494d789febec73100b6987747a01110184d
Validate URL
scholar.js
scholar.js
window.onload = initialize; var DATAFILE = "research.json"; var DONE_READYSTATE = 4; var DONE_STATUS = 200; var references = {}; function initialize() { validateHost(); loadExternalData(); } function validateHost() { if( window.location.hostname != "www.ecst.csuchico.edu" ) { window.location.href = "htt...
JavaScript
0.000026
@@ -101,16 +101,80 @@ S = 200; +%0Avar OFFICIAL_URL = %22https://www.ecst.csuchico.edu/~kbuffardi/%22; %0A%0Avar re @@ -377,51 +377,20 @@ f = -%22https://www.ecst.csuchico.edu/~kbuffardi/%22 +OFFICIAL_URL ;%0A
92b51edcfe1d1be3f7e5c5b0ce3b6bad51363edd
Remove model argument from View altogether
web/src/js/base/view.js
web/src/js/base/view.js
import domify from 'domify'; export default class View { constructor({app, model}) { this.app = app; this.model = model; } render() { const html = this.getHTML(); const element = domify(html); this.mount(element); return element; } renderInto(target) { target.innerHTML = this.g...
JavaScript
0
@@ -74,15 +74,8 @@ %7Bapp -, model %7D) %7B @@ -99,32 +99,8 @@ pp;%0A - this.model = model;%0A %7D%0A
4dda6bc2c80e02e7284c349abd96fff6d0809f9a
fix service to return values
packages/tyranid/src/service.js
packages/tyranid/src/service.js
import { handleException } from './express'; import { submitJob } from './job'; import Tyr from './tyr'; export function instrumentServerServices(col) { // col.def.service = service metadata // col.service = implementation of services const { def: cdef } = col; const { service } = cdef; if (service) { f...
JavaScript
0.000005
@@ -2791,24 +2791,31 @@ +return res.json(ret @@ -2853,15 +2853,9 @@ %7D - else %7B +%0A %0A @@ -2857,25 +2857,30 @@ %0A%0A - +return res.sendSta @@ -2889,28 +2889,16 @@ s(200);%0A - %7D%0A
0fce1f86b4d8efcdb422ad1a9ce98203912e5601
Clean -> CleanPlugin
webpack.config.babel.js
webpack.config.babel.js
import * as path from 'path'; import webpack from 'webpack'; import HtmlWebpackPlugin from 'html-webpack-plugin'; import ExtractTextPlugin from 'extract-text-webpack-plugin'; import SystemBellPlugin from 'system-bell-webpack-plugin'; import Clean from 'clean-webpack-plugin'; import merge from 'webpack-merge'; import R...
JavaScript
0
@@ -240,16 +240,22 @@ rt Clean +Plugin from 'c @@ -4273,16 +4273,22 @@ ew Clean +Plugin (%5B'gh-pa
9b1a6eaee0f58016b1c820f383ac76197af0ea03
Move html generation into start script
webpack.config.babel.js
webpack.config.babel.js
import * as path from 'path'; import webpack from 'webpack'; import HtmlWebpackPlugin from 'html-webpack-plugin'; import ExtractTextPlugin from 'extract-text-webpack-plugin'; import SystemBellPlugin from 'system-bell-webpack-plugin'; import CleanWebpackPlugin from 'clean-webpack-plugin'; import merge from 'webpack-mer...
JavaScript
0.000002
@@ -1664,221 +1664,8 @@ : %5B%0A - new HtmlWebpackPlugin(%7B%0A template: require('html-webpack-template'), // eslint-disable-line global-require%0A inject: false,%0A mobile: true,%0A title: pkg.name,%0A appMountId: 'app',%0A %7D),%0A @@ -1991,32 +1991,259 @@ %0A plugins: %5B%0...
e7fb1622ee3ec1bb4fa068d741c493b9a827c9d2
Fix bug that delete key still works when dialog is showing
src/js/keyHandler.js
src/js/keyHandler.js
/* * Rapid Interface Builder (RIB) - A simple WYSIWYG HTML5 app creator * Copyright (c) 2011, Intel Corporation. * * This program is licensed under the terms and conditions of the * Apache License, version 2.0. The full text of the Apache License is at * http://www.apache.org/licenses/LICENSE-2.0 * */ "use str...
JavaScript
0
@@ -548,62 +548,8 @@ r);%0A - $(element).keyup(navUtils.deleteHandler);%0A @@ -547,32 +547,32 @@ er);%0A %7D,%0A + shortCut @@ -1015,47 +1015,456 @@ -if (e.ctrlKey && !navUtils.ignoreText() +// If there is modal dialog or need to ignore text elements, do nothing.%0A i...
7bcdad4a64c8289b7cc750fca42b83e308536c2f
Correct App
src/js/mainAssist.js
src/js/mainAssist.js
import {run} from '@cycle/core' import drivers from './drivers/drivers.js' import addGlobalErrorHandler from './utilities/globalError' import runHot from './utilities/runHot' import AssistApp from './components/AssistApp' const PRODUCTION = (process.env.NODE_ENV === 'production') // note while this is usefull it bre...
JavaScript
0.000064
@@ -592,16 +592,22 @@ %7B%0A run( +Assist App, dri @@ -610,13 +610,12 @@ drivers)%0A%7D%0A -%0A
b071eabe4b2942544d773767c9574f0128090334
disable shortcuts if inspector closed
src/lib/shortcuts.js
src/lib/shortcuts.js
/* globals AFRAME */ var Events = require('./Events'); import { removeSelectedEntity, cloneSelectedEntity, cloneEntity } from '../lib/entity'; import { os } from '../lib/utils.js'; function shouldCaptureKeyEvent(event) { if (event.metaKey) { return false; } return ( event.target.closest('#cameraToo...
JavaScript
0.000002
@@ -556,32 +556,60 @@ eKeyEvent(event) + %7C%7C !AFRAME.INSPECTOR.opened ) %7B%0A return @@ -3207,16 +3207,44 @@ t(event) + %7C%7C !AFRAME.INSPECTOR.opened ) %7B%0A
bbf26a3f382529a7e81b2c9ca7993934d37f9877
Update fontstacks URL according to https://github.com/klokantech/tileserver-gl/pull/104#issuecomment-274444087
src/libs/metadata.js
src/libs/metadata.js
import request from 'request' function loadJSON(url, defaultValue, cb) { request({ url: url, withCredentials: false, }, (error, response, body) => { if (!error && body && response.statusCode == 200) { try { cb(JSON.parse(body)) } catch(err) { console.error(err) cb(de...
JavaScript
0
@@ -22,16 +22,41 @@ request' +%0Aimport npmurl from 'url' %0A%0Afuncti @@ -698,50 +698,102 @@ /104 -%0A let url = urlTemplate.replace('/fonts/%7B +#issuecomment-274444087%0A let urlObj = npmurl.parse(urlTemplate);%0A const normPathPart = '/%257B font @@ -801,109 +801,232 @@ tack -%7D/%7B +%257D/%257B range -%7...
9028f49d7608ef3c488b69482b0ec1ad8aa9c399
make attach chainable when using livequery
src/lowpro.jquery.js
src/lowpro.jquery.js
(function($) { var addMethods = function(source) { var ancestor = this.superclass && this.superclass.prototype; var properties = $.keys(source); if (!$.keys({ toString: true }).length) properties.push("toString", "valueOf"); for (var i = 0, length = properties.length; i < length; i++) { v...
JavaScript
0
@@ -3254,24 +3254,31 @@ ) %7B%0A +return this.liveque @@ -3351,16 +3351,17 @@ %7D) +; %0A %7D
6ca3efecd2d57bb1019495eb612a9e10efd14768
add comment
src/main/gulpfile.js
src/main/gulpfile.js
var gulp = require("gulp"); var print = require("gulp-print"); var console = require("console"); var server = require("browser-sync").create("sabbat.notes static server"); var glob = require('glob'); var srcDirsUi = ['sabbat.notes.ui/**/*.html', 'sabbat.notes.ui/**/*.css', 'sabbat.notes.ui/**/*.js']; gulp.task('reloa...
JavaScript
0
@@ -1,12 +1,26 @@ +// gulp file%0A%0A var gulp = r
1d276e06bce5981e98629530adc193b832c97015
remove attribute disabled
widget/loader/loader.js
widget/loader/loader.js
Editor.registerWidget( 'editor-loader', { is: 'editor-loader', properties: { text: { type: String, notify: true, value: '', } }, ready: function () { this.stopUpdate = false; this.originPosition = ''; this.node = null; }, ...
JavaScript
0.000001
@@ -352,39 +352,8 @@ ) %7B%0A - this.disabled = false;%0A @@ -1788,38 +1788,8 @@ on;%0A - this.disabled = true;%0A
e16a7bfd6456b49910fc8c4728fc0a9dcf1a8c57
fix text field: fix dependency injection
modules/text-field/js/text-field_directive.js
modules/text-field/js/text-field_directive.js
(function() { 'use strict'; angular .module('lumx.text-field') .directive('lxTextField', lxTextField); LxTextFieldController.$inject = ['$timeout']; function lxTextField($timeout) { return { restrict: 'E', templateUrl: 'text-field.html', ...
JavaScript
0.000241
@@ -122,25 +122,25 @@ ield);%0A%0A -L +l xTextFieldCo @@ -133,34 +133,24 @@ lxTextField -Controller .$inject = %5B
43e7955e154cffb1765a5d58c1f96b6d728e1384
fix grouped bar example (#1014)
site/src/components/series/grouped-example.js
site/src/components/series/grouped-example.js
var width = 500, height = 250; var container = d3.select('#grouped') .append('svg') .attr({'width': width, 'height': height}); var data = [{ 'State': 'AL', 'Under 5 Years': '310', '5 to 13 Years': '552', '14 to 17 Years': '259', '18 to 24 Years': '450', '25 to 44 Years': '1215', '45...
JavaScript
0
@@ -1229,11 +1229,100 @@ ds(%5B -'y' +%0A function(a) %7B%0A return a.map(function(d) %7B return d.y; %7D);%0A %7D%0A %5D)%0A
95cfc674508fe9934998b46bce412c12ec7cb381
Remove redundant expectations
addons/knobs/src/components/__tests__/Array.js
addons/knobs/src/components/__tests__/Array.js
import React from 'react'; import { shallow } from 'enzyme'; // eslint-disable-line import ArrayType from '../types/Array'; describe('Array', () => { it('should subscribe to setKnobs event of channel', () => { const onChange = jest.fn(); const wrapper = shallow( <ArrayType onChange={onChange} ...
JavaScript
0.000009
@@ -723,63 +723,8 @@ );%0A%0A - expect(Array.isArray(deserialized)).toEqual(true);%0A @@ -944,63 +944,8 @@ );%0A%0A - expect(Array.isArray(deserialized)).toEqual(true);%0A
73503de802e186ff86cabc8c276bf6fea38364b4
Make readByte private.
binary_reader.js
binary_reader.js
/** * @fileoverview Reads binary data. */ /** * @param {!ArrayBuffer} arraybuffer The binary data to read. * @param {number=} opt_length The length of the data, uses the ArrayBuffers * byte length if this isn't specified. * @constructor */ keepasschrome.BinaryReader = function(arraybuffer, opt_length) { ...
JavaScript
0
@@ -1684,24 +1684,36 @@ next byte.%0A + * @private%0A */%0Akeepassc @@ -1745,24 +1745,25 @@ ype.readByte +_ = function( @@ -2113,16 +2113,17 @@ readByte +_ ());%0A %7D @@ -3873,24 +3873,25 @@ his.readByte +_ ();%0A while @@ -3960,16 +3960,17 @@ readByte +_ ();%0A %7D%0A
68f515e2e6839624490b4fa7c97441f08d6b516b
Fix bug related to URL handling.
src/js/index.js
src/js/index.js
// @flow import * as React from 'react'; import * as ReactDOM from 'react-dom'; import DocumentTitle from 'react-document-title'; import IconSettings from '@salesforce/design-system-react/components/icon-settings'; import logger from 'redux-logger'; import settings from '@salesforce/design-system-react/components/sett...
JavaScript
0
@@ -3440,16 +3440,23 @@ athParts +.length -2%5D%7D)%0A
2368117705c5afdd6865cd9ec697e0a2aaaca600
Implement min and max for grow shrink effect
src/js/index.js
src/js/index.js
// Creates the main splash scene (if you can even call it a scene) // // times: [Array<SplashTime>] All of the timing objects of your splash // // If you assign an onEnd property to the object and it's a function, it'll fire // once the splash is completed. class Splash { constructor(times) { this._times = times; ...
JavaScript
0
@@ -3467,48 +3467,34 @@ min -;%0A%09%09if (typeof max == %22undefined%22) + %7C%7C 0;%0A%09%09this.max = max -= +%7C%7C 1;%0A @@ -3539,21 +3539,56 @@ scale%22, -value +(this.max - this.min) * value + this.min );%0A%09%7D%0A%0A%09 @@ -3629,16 +3629,41 @@ scale%22, +(this.max - this.min) * ( value * @@ -366...
7eebe1b0d49235b9a5dc668602d055d0b883754b
Increase e2e test analysis timeout
nightwatchSpec/cribbageAnalystEndToEndTest.js
nightwatchSpec/cribbageAnalystEndToEndTest.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/. */ /* globals module */ (function() { 'use strict'; const siteUrl = 'http://localhost:8080', bodySe...
JavaScript
0
@@ -519,10 +519,11 @@ s = -85 +120 0;%0A%0A
ab2b4ed242de1f9e6de6ab3618d00d52a364679c
Fix bug in overall feedback view for students.
js/components/activity-feedback-for-student.js
js/components/activity-feedback-for-student.js
import React, { PureComponent } from 'react' import '../../css/activity-feedback.less' export default class ActivityFeedbackForStudent extends PureComponent { render() { const student = this.props.student const feedback = this.props.feedbacks .find( (f) => f.get('studentId') == student.get('id')) ...
JavaScript
0
@@ -208,16 +208,106 @@ student%0A + let feedback = %7B%0A hasBeenReviewed: false,%0A score:0,%0A feedback:%22%22%0A %7D%0A cons @@ -308,24 +308,25 @@ const +_ feedback = this. @@ -317,16 +317,17 @@ feedback +s = this. @@ -407,60 +407,170 @@ '))%0A +%0A - .get('feedbacks')%0A...
4f3c62d3c58dbe55647b414bd4a89c5996204d3b
Make View spec skeleton
spec/filesize-view-spec.js
spec/filesize-view-spec.js
'use babel'; import filesizeView from '../lib/filesize-view'; const workspaceView = atom.views.getView(atom.workspace); beforeEach(() => { waitsForPromise(() => atom.packages.activate('status-bar') .then(() => atom.workspace.open('../fixtures/test.txt')) .then(() => atom.packages.activate('filesize'))); })...
JavaScript
0
@@ -61,266 +61,835 @@ ';%0A%0A -const workspaceView = atom.views.getView(atom.workspace);%0A%0AbeforeEach(() =%3E %7B%0A waitsForPromise(() =%3E atom.packages.activate('status-bar')%0A .then(() =%3E atom.workspace.open('../fixtures/test.txt'))%0A .then(() =%3E atom.packages.activate('filesize')) +describe('View...
4ce2559fe7d0a2a967ba37b53c7132b9f21db9f6
Add css custom class
src/js/shade.js
src/js/shade.js
(function(factory) { if (typeof define === 'function' && define.amd) { define([ '$', 'plugin', 'velocity' ], factory); } else { var framework = window.Zepto || window.jQuery; factory(framework, window.Plugin, framework.Velocity); } }(functi...
JavaScript
0.000001
@@ -670,16 +670,38 @@ dex: 1,%0A + cssClass: '',%0A @@ -1136,16 +1136,65 @@ shade')%0A + .addClass(this.options.cssClass)%0A
7d1bd7d81c89ebdb27b4bb118ea55e78f7c08c86
Update Date
contentScript.js
contentScript.js
var woman=[]; var graceHopper = {name:"Grace Hopper", field:"Computer Science/Math", description:"Born in New York City in 1906, Grace Hopper joined the U.S. Navy during World War II and was assigned to program the Mark I computer. She continued to work in computing after the war, leading the team that created the...
JavaScript
0.000024
@@ -559,46 +559,146 @@ y);%0A -%09document.write( +%0Avar d = new Date(); %0Avar t = d.getTime(); %0Avar days = Math.floor(t / (1000));%0A%0Avar i = days %25 woman.length; %0A%0Avar today = woman%5B -0 +i %5D.name - + %22%5Cn%22) ; +%0A %0A%09do @@ -714,20 +714,11 @@ ite( -woman%5B0%5D.field +today );
7116034b345a1cb56481eb15ab9bef6a8d9011a1
Update new renderer for StatusList
app/assets/javascripts/repositories/renderers/new_renderers.js
app/assets/javascripts/repositories/renderers/new_renderers.js
/* global ListColumnHelper ChecklistColumnHelper Status SmartAnnotation I18n GLOBAL_CONSTANTS DateTimeHelper */ $.fn.dataTable.render.newRowName = function(formId, $cell) { $cell.html(` <div class="form-group"> <input class="form-control editing" form="${formId}" type="text" ...
JavaScript
0
@@ -48,16 +48,28 @@ r Status +ColumnHelper SmartAn @@ -1941,456 +1941,72 @@ %7B%0A -let url = $cell.closest('table').data('status-items-path');%0A let hiddenField = %60%0A %3Cinput form=%22$%7BformId%7D%22%0A type=%22hidden%22%0A name=%22repository_cells%5B$%7BcolumnId%7D%5D%22%0A ...
86e11f3bbae8fee1accf1774b5847503c988c675
raise timeout duration for sessions xhr requests
app/assets/javascripts/admin/views/sessions.js
app/assets/javascripts/admin/views/sessions.js
var SessionView = Backbone.View.extend({ el: "#session-form", readyToSubmit: false, initialize: function () { this.$submitButton = this.$("#session-form-submit"); this.$emailInput = this.$("#session-form-email"); this.$passcodeInput = this.$("#session-form-passcode"); this.$spinner = this.$("#se...
JavaScript
0
@@ -1774,17 +1774,18 @@ imeout: -5 +29 000,%0A
e0cf6c755e7f3fbdff5a63d1ce233146da2d67a7
Clean up semantics of ConditionalPromises.
kolibri/core/assets/src/conditionalPromise.js
kolibri/core/assets/src/conditionalPromise.js
class ConditionalPromise { /** * Create a conditional promise - like a promise, but cancelable! */ constructor(...args) { if ([...args].length) { this._promise = new Promise(...args); } } catch(...args) { this._promise.catch(...args); return this; } then(...args) { this._pr...
JavaScript
0.015832
@@ -86,19 +86,157 @@ but -cancelable! +with an additional method 'only'%0A * that allows for chaining resolve/reject handlers that will only be called if a%0A * certain condition pertains. %0A @@ -502,21 +502,23 @@ only(c -ancel +ontinue Check, r @@ -581,20 +581,16 @@ s, call -the resolve @@ -608,21 ...
2e901b358beb0121f37bf37f9dbc3c7b6d62e6e8
Introduce StandingOrderListContainer
src/OutgoingOrderListContainer.js
src/OutgoingOrderListContainer.js
import React, {Component} from 'react'; import {Table} from 'react-bootstrap'; import OutgoingOrderList from './OutgoingOrderList' class OutgoingOrderListContainer extends Component { constructor(props){ console.log("OutgoingOrderListContainer props: ") console.log(props) super(props) ...
JavaScript
0
@@ -532,26 +532,35 @@ toryInstance + === null )%0A - %7B%0A @@ -631,32 +631,115 @@ return%0A %7D + else %7B%0A console.log(%22Factory: %22 + self.props.factoryInstance)%0A %7D %0A%0A // Oka @@ -844,28 +844,28 @@ allEvents = -this +self .props.facto @@ -1909,20 +1909,20 ...
ab70dd753efa6801e4328cc45956c3741efff431
remove prelude references
src/lib/game.js
src/lib/game.js
import compact from 'prelude-es6/lib/List/compact'; import curry from 'prelude-es6/lib/Func/curry'; function newKey(key, offset, size) { let $key = key + offset; if ($key < 0) { $key = size - 1; } if ($key >= size) { $key = 0; } return $key; } export function getNeighbours(grid, { y, x }) { const size = gri...
JavaScript
0.000001
@@ -1,105 +1,4 @@ -import compact from 'prelude-es6/lib/List/compact';%0Aimport curry from 'prelude-es6/lib/Func/curry';%0A%0A func
d955093d6340f79023330047cebc7646834e1292
fix for empty count bug
src/lib/main.js
src/lib/main.js
//Todo: option to count all unread mail var request = require("sdk/request").Request; var tabs = require("sdk/tabs"); var tmr = require('sdk/timers'); var self = require("sdk/self"); var preferences = require("sdk/simple-prefs").prefs; var notifications = require("sdk/notifications"); var { ActionButt...
JavaScript
0
@@ -1266,34 +1266,14 @@ %09%09%09%09 -if (!(parseInt(old count -) %3E + = pa @@ -1288,17 +1288,48 @@ ount%5B1%5D) -) + %7C%7C 0;%0A%09%09%09%09%09if (count %3E oldcount ) %7B%0A%09%09%09%09 @@ -1342,27 +1342,24 @@ ount = count -%5B1%5D ;%0A%09%09%09%09%09%09if ( @@ -1357,35 +1357,22 @@ %09%09%09%09%09if -(par...
a51107bcea9d4ce711b73ab5fdd6cc703590f865
Update 2017.09.24
assets/js/index.js
assets/js/index.js
/** * Main JS file for kaldorei behaviours */ /* globals jQuery, document */ (function($, undefined) { "use strict"; var $document = $(document); $document.ready(function() { var $postContent = $(".post-content"); $postContent.fitVids(); $(".scroll-down").arctic_scroll(); ...
JavaScript
0
@@ -2684,40 +2684,188 @@ -var target = $(this).attr('href' +// Thanks to @https://github.com/xiongchengqing fixed this bug.%0A var target = document.getElementById($(this).attr('href').split('#')%5B1%5D);%0A console.log(target );%0A
a7719b5a30ad6024afa31c082c6fd57f46f0f065
Add util functions
src/lib/util.js
src/lib/util.js
export const focusNextInput = $el => { setTimeout(() => { const $nextEl = $el.nextElementSibling if ($nextEl && $nextEl instanceof HTMLInputElement) { $nextEl && $nextEl.focus && $nextEl.focus() } }) } export const focusPrevInput = $el => { const $nextEl = $el.nextElementSibling const $prevEl...
JavaScript
0.000039
@@ -704,12 +704,817 @@ oString()%0A%7D%0A +%0Aexport const transDate = date =%3E %7B%0A const year = date.getFullYear()%0A const month = (month =%3E %7B%0A let ret = (month + 1).toString()%0A return ret.length === 1 ? '0' + ret : ret%0A %7D)(date.getMonth())%0A const day = (date =%3E %7B%0A let ret = date...
3a928beeb209ca67b38324011d4aca46fd2b82e7
Update mohan.js
assets/js/mohan.js
assets/js/mohan.js
<script type="text/javascript"> $(document).ready(function() { var date = Date.today().second().thursday(); $('nextmeetingdate').html = date; }); </script>
JavaScript
0
@@ -108,16 +108,17 @@ );%0A $(' +# nextmeet
6fc441ec20666fc7803fdc325452f2349a61fa1a
Set margin instead of padding for body
assets/js/table.js
assets/js/table.js
function TeiTable() { var XSLTProc; var hiddenCols = []; /** Populate the hide and show menus. */ function _populateMenus() { var headings = [] $('table th').each(function(i) { var h = {'label': $(this).html(), 'visible': hiddenCols.indexOf(i) == -1, ...
JavaScript
0
@@ -2624,23 +2624,22 @@ ').css(' -padd +marg in -g -top', h
3d6a9424f054bfeebe05fc00c4bf4bd538bc8efb
Use exact equals in video.js
assets/js/video.js
assets/js/video.js
angular .module('video', []) .factory('$video', ['$http', '$log', function($http, $log) { var videos = []; const YOUTUBE_URL = 'https://www.youtube.com/watch?v='; function push(video) { videos.push(video); } function update(v) { let video = findById(v.id); if (video) { videos[videos.index...
JavaScript
0.000017
@@ -585,16 +585,17 @@ ing() == += id);%0A @@ -663,16 +663,17 @@ v.key == += key);%0A
79d86493529ebe02f1041da95565b19125cebb88
Update tests.
assets/src/edit-story/components/fontPicker/test/fontPicker.js
assets/src/edit-story/components/fontPicker/test/fontPicker.js
/* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
JavaScript
0
@@ -3871,32 +3871,68 @@ r' %7D);%0A %7D);%0A%0A + // The second font in the list.%0A expect(onCha @@ -3964,24 +3964,12 @@ th(' -Roboto Condensed +Abel ');%0A @@ -4871,32 +4871,249 @@ TheDocument();%0A%0A + // Move down by 2%0A act(() =%3E %7B%0A fireEvent.keyDown(fontsList, %7B%0A key: ...
9f0a08ae356a7491eec2fe3f384a9252e82b0453
Update `listView` to match type resolver
src/listView.js
src/listView.js
import { OrderedMap } from 'immutable' import { memoize, rawValue, createType } from './lowlevel/common' import initFactory from './lowlevel/initFactory' import { hash } from './crypto' const LIST_VIEW_NODE_DEF = { name: 'ListViewNode', union: [ { name: 'branch', type: { struct: [ ...
JavaScript
0
@@ -672,60 +672,8 @@ ) %7B%0A - // XXX: works only with %22native%22 type definitions%0A re @@ -2870,46 +2870,8 @@ ) %7B%0A - ValType = resolver.resolve(ValType)%0A co @@ -3813,16 +3813,18 @@ tView, %7B +%0A name: ' @@ -3832,12 +3832,81 @@ istView' - +,%0A%0A prepare (Type, resolver) %7B%0A return r...
c59b53ffa3d47f2cbbd3763d55aa473112cba250
Fix invalid source map for imported files in transformer-less
packages/pundle-transformer-less/src/index.js
packages/pundle-transformer-less/src/index.js
// @flow import path from 'path' import { createFileTransformer, loadLocalFromContext } from 'pundle-api' import manifest from '../package.json' function createComponent({ extensions = ['.less'], options = {} }: { extensions?: Array<string>, options?: Object } = {}) { return createFileTransformer({ name: 'pund...
JavaScript
0
@@ -850,67 +850,54 @@ -sourceMap: %7B%7D,%0A paths: %5Bpath.dirname(file.filePath)%5D +filename: file.filePath,%0A sourceMap: %7B%7D ,%0A
2d25b1d0f23b9b55f1e3369f6e6250339eca71bc
Update index.js
packages/strapi/lib/middlewares/cron/index.js
packages/strapi/lib/middlewares/cron/index.js
'use strict'; /** * Module dependencies */ // Public node modules. const _ = require('lodash'); const cron = require('node-schedule'); /** * CRON hook */ module.exports = strapi => { return { /** * Initialize the hook */ initialize() { if (strapi.config.get('server.cron.enabled', fals...
JavaScript
0.000002
@@ -489,16 +489,17 @@ ssion%5D;%0A +%0A @@ -504,87 +504,35 @@ -const isFunctionValue = _.isFunction(taskValue);%0A%0A if (isFunctionValue +if (_.isFunction(taskValue) ) %7B%0A @@ -535,32 +535,39 @@ ) %7B%0A +return cron.scheduleJob @@ -587,74 +587,18 @@ on, -strapi.config.fun...
96e33f7179bcc9f651633da0321cad2679f390dc
fix display when last_delete is null
assets/settings.js
assets/settings.js
import Banner from '../components/Banner.html'; (function(){ if(!('fetch' in window)){ return; } let status_timeout = null; let settings_section = document.querySelector('#settings-section'); let form = document.forms.settings; let backoff_level = 0; let banner_el = document.quer...
JavaScript
0.000004
@@ -4796,24 +4796,60 @@ val = 500;%0A%0A + if(viewer.next_delete)%7B%0A view @@ -4887,32 +4887,78 @@ r.next_delete);%0A + %7D%0A if(viewer.last_delete)%7B%0A viewer.l @@ -4992,32 +4992,42 @@ r.last_delete);%0A + %7D%0A banner.s
c2013197f946f1a65b42a30f66645aae3b216d25
update viewer immediately after enabling/disabling
assets/settings.js
assets/settings.js
import Banner from '../components/Banner.html'; (function(){ if(!('fetch' in window)){ return; } let status_timeout = null; let settings_section = document.querySelector('#settings-section'); let form = document.forms.settings; let backoff_level = 0; let banner_el = document.quer...
JavaScript
0
@@ -5340,16 +5340,55 @@ nabled%7D) +.then(fetch_viewer).then(update_viewer) ;%0A
17570bc3907d47f4b653ea695da85e0492d9bec3
Fix how we assert mappPagesToSelect results
src/app/global/PreviewNav.test.js
src/app/global/PreviewNav.test.js
import React from 'react'; import { shallow } from 'enzyme'; import { PreviewNav } from './PreviewNav'; let dispatchedActions = []; const defaultProps = { preview: {}, dispatch: action => dispatchedActions.push(action), workingOn: { id: "test-collection", }, rootPath: "/florence" } const ...
JavaScript
0
@@ -1082,34 +1082,27 @@ sult +%5B0%5D ).to -ContainEqual(%0A +MatchObject( %7Bid: @@ -1143,26 +1143,59 @@ dition%22%7D -, +) %0A - +expect(pagesResult%5B1%5D).toMatchObject( %7Bid: %22/t @@ -1230,19 +1230,51 @@ 2%22%7D -, +) %0A - +expect(pagesResult%5B2%5D).toMatchObject( %7Bid: @@ -...
a7d351a760ba3915e4341bdfc114f5e6ea32e259
fix genotype index filter, closes #289
src/webcomponents/commons/forms/select-field-filter.js
src/webcomponents/commons/forms/select-field-filter.js
/** * Copyright 2015-2019 OpenCB * * 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...
JavaScript
0
@@ -5449,16 +5449,51 @@ +%7D, %7Bbubbles: false, composed: false %7D);%0A @@ -6858,33 +6858,32 @@ %3Coption - %0A @@ -7637,17 +7637,16 @@ %3Coption - %0A
d10ccceae7a3985cd2b591a20e19603fe04e3d02
use a per Trait Timer
lib/behaviour/traits/showcase/jumpingcrate.js
lib/behaviour/traits/showcase/jumpingcrate.js
(function () { // Jump all 5 seconds. var jumpTimer = new Bloob.Timer(5); Bloob.Trait.Repository.add("showcase/jumpingcrate", function jump(entity) { if(jumpTimer.get() > 0) { jumpTimer.reset(); var body = entity.getBody(); body.addGlobalForce(body.getDerivedPosition().add(new Jello.Vector2(0.1, ...
JavaScript
0
@@ -13,73 +13,8 @@ %7B%0D%0A -%09// Jump all 5 seconds.%0D%0A%09var jumpTimer = new Bloob.Timer(5);%0D%0A%0D%0A %09Blo @@ -89,19 +89,166 @@ y) %7B%0D%0A%09%09 -if( +// lazy initialization%0D%0A%09%09if(typeof this.jumpTimer === %22undefined%22)%0D%0A%09%09%09// Jump all 5 seconds.%0D%0A%09%09%09this.jumpTimer = ne...
4fc7d0b7a0560b39a57341aafa299886f01b5829
Fix error notifications
src/browser/extension/background/messaging.js
src/browser/extension/background/messaging.js
import { onConnect, onMessage, sendToTab } from 'crossmessaging'; import updateState from 'remotedev-app/lib/store/updateState'; import syncOptions from '../options/syncOptions'; import openDevToolsWindow from './openWindow'; let panelConnections = {}; let tabConnections = {}; let catchedErrors = {}; let monitors = 0; ...
JavaScript
0.000004
@@ -2966,21 +2966,29 @@ const -error +computedState = paylo @@ -3031,16 +3031,85 @@ teIndex%5D +;%0A if (!computedState) return;%0A const error = computedState .error;%0A
09e97ddb319bb99fc099f197743e0d9606379402
Put the type extraction route in place but only if the command line is right
lib/modules/apostrophe-documentation/index.js
lib/modules/apostrophe-documentation/index.js
var _ = require('lodash'); var fs = require('fs'); // Assists in generating documentation for A2 module.exports = { enabled: false, construct: function(self, options) { if (!options.enabled) { return; } self.route('get', 'scripts', function(req, res) { req.scene = 'user'; return self...
JavaScript
0
@@ -176,56 +176,226 @@ -if (!options.enabled) %7B%0A return;%0A %7D%0A +// Routes have to be added before tasks get executed, but we don't%0A // want this route in place when we're not running the task%0A if (self.apos.argv._%5B0%5D === 'apostrophe-documentation:extract-moog-types') %7B%0A + ...
8bff0e876faaa259c8ba0194e3c8186c6b3de887
Remove the need for getRootModelClass()
lib/queryBuilder/graphUpserter/UpsertGraph.js
lib/queryBuilder/graphUpserter/UpsertGraph.js
'use strict'; const keyBy = require('lodash/keyBy'); const difference = require('lodash/difference'); const RelationExpression = require('../RelationExpression'); const UpsertNode = require('./UpsertNode'); const isSqlite = require('../../utils/knexUtils').isSqlite; const asArray = require('../../utils/objectUtils').a...
JavaScript
0.000002
@@ -825,33 +825,34 @@ s = -getRootModelClass(upsert) +this.upsert%5B0%5D.constructor ;%0A @@ -4352,155 +4352,8 @@ %0A%7D%0A%0A -function getRootModelClass(graph) %7B%0A if (Array.isArray(graph)) %7B%0A return graph%5B0%5D.constructor;%0A %7D else %7B%0A return graph.constructor;%0A %7D%0A%7D%0A%0A func
7fbd16b29573ed16c274da82fa3d23e38a7fb1d4
use context
src/commands/Worldstate/ConclaveChallenges.js
src/commands/Worldstate/ConclaveChallenges.js
'use strict'; const Command = require('../../models/Command.js'); const ConclaveChallengeEmbed = require('../../embeds/ConclaveChallengeEmbed.js'); const values = ['all', 'day', 'week']; /** * Displays the currently active Invasions */ class ConclaveChallenges extends Command { /** * Constructs a callable co...
JavaScript
0.99865
@@ -834,16 +834,21 @@ (message +, ctx ) %7B%0A @@ -1311,74 +1311,19 @@ %7C%7C -await this.settings.getChannelSetting(message.channel, 'platform') +ctx.context ;%0A
723a6fb603c36258411d2149a0be4ab8c4eb27f4
Fix bad Autocomplete component import
src/common/field/mixin/built-in-components.js
src/common/field/mixin/built-in-components.js
// Dependencies import React, {PropTypes} from 'react'; import find from 'lodash/collection/find'; import result from 'lodash/object/result'; import assign from 'object-assign'; import {addRefToPropsIfNotPure, INPUT, DISPLAY} from '../../../utils/is-react-class-component'; // Components import AutocompleteSelectCompo...
JavaScript
0.000003
@@ -695,32 +695,46 @@ /label';%0Aimport +%7Bcomponent as Autocomplete fro @@ -729,16 +729,17 @@ complete +%7D from '.
80117210001318240d2795bbadedd745f7f86299
deploy sign tx form styling
src/components/tx/SendTx/SignTx/SignTxForm.js
src/components/tx/SendTx/SignTx/SignTxForm.js
import React from 'react'; import { trimEnd } from 'lodash'; import { Button, ButtonGroup, IdentityIcon, Input } from 'emerald-js-ui'; import { ArrowRight } from 'emerald-js-ui/lib/icons3'; import { required } from 'lib/validators'; import { Divider } from 'material-ui'; import { List, ListItem } from 'material-ui/List...
JavaScript
0.000001
@@ -544,16 +544,56 @@ s) =%3E %7B%0A + if (props.hide) %7B%0A return null%0A %7D%0A return @@ -2506,25 +2506,24 @@ '35px' %7D%7D /%3E -, %0A %3CTy @@ -2556,25 +2556,24 @@ ypedData%7D /%3E -, %0A %3CDi @@ -2602,33 +2602,32 @@ op: '35px' %7D%7D /%3E -, %0A %3C/React.F @@ -2743,32 +2743,3...
890183cc91b7c1bb426413071ffc00cb82f76b73
Change port from 8443 to 443
src/config/zoomdata-connections/production.js
src/config/zoomdata-connections/production.js
import { map } from 'mobx'; export const server = { credentials: map(), application: { secure: true, host: 'live.zoomdata.com', path: '/zoomdata', port: 8443 }, oauthOptions: { client_id: 'bmh0c2FfY2xpZW50MTQ1ODA2NzM4MTE3NDdkNzAxZGIzLTA3MDMtNDk4Mi1iNThiLTQ4NzU2OT...
JavaScript
0.000011
@@ -187,17 +187,16 @@ port: -8 443%0A
970b60841a05762d471ff7ead5867385a7c8312e
Add new action
system_user/system_user_manager/system_user_manager.js
system_user/system_user_manager/system_user_manager.js
"use strict"; //load the application configuration var app_config = require ('./public/javascript/application_config.js'); // Loading and initializing the library: var pgp = require('pg-promise')({ // Initialization Options }); // Preparing the connection details: // Need to change var cn = 'postgres...
JavaScript
0.000003
@@ -3457,24 +3457,445 @@ %09%7D);%0D%0A%09%7D);%0D%0A +%0D%0A// list_user_actions%0D%0A%09this.add(%7Brole:'system_user_manager', cmd:'list_user_actions'%7D, function (msg, respond) %7B%0D%0A %09%09db.func('system_user_schema.action_list_actions_for_a_user', msg._in_data)%0D%0A%09%09.then(function (data) %7B%0D%0A%09%...
90a7356e8fa00e2378980a25247bdc7f7d4d5ef8
fix data not set in interceptedview's cardview
src/foam/u2/crunch/CapabilityInterceptView.js
src/foam/u2/crunch/CapabilityInterceptView.js
/** * @license * Copyright 2020 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.u2.crunch', name: 'CapabilityInterceptView', extends: 'foam.u2.View', implements: [ 'foam.mlang.Expressions' ], requires: [ 'foam.log.LogLevel', 'fo...
JavaScript
0
@@ -749,173 +749,8 @@ %7B%0A - name: 'capabilityView',%0A class: 'foam.u2.ViewSpec',%0A factory: function () %7B%0A return 'foam.u2.crunch.CapabilityCardView';%0A %7D%0A %7D,%0A %7B%0A @@ -1770,17 +1770,17 @@ ag(self. -c +C apabilit @@ -1780,16 +1780,20 @@ pability +Card Vi...
34580932cb5e18b4e8df4aec85d8470e3114a1b2
Fix for creating paygroup without tax rule
main/app/lib/collections/schemas/paygroups.js
main/app/lib/collections/schemas/paygroups.js
/** * Order Types Schema */ Core.Schemas.PayGroup = new SimpleSchema({ _id: { type: String, optional: true }, code: { type: String }, name: { type: String }, businessId: { type: String }, tax: { type: String }, pension: { ...
JavaScript
0
@@ -279,32 +279,56 @@ type: String +,%0A optional: true %0A %7D,%0A pens
68629ee5a11a0fe505e0864009226c6e1e5d22ae
Fix offset for jumpToElement module
assets/src/javascript/modules/jumpToElement.js
assets/src/javascript/modules/jumpToElement.js
/* eslint-disable */ import jump from 'jump.js'; /* eslint-enable */ // Listen for clicks on this trigger class name const JUMP_TRIGGER_CLASS = '.js-jump'; // Enabling A11Y will add tabindex and focus on the target. We disable it by default, because // it could cause scroll jumping const ENABLE_A11Y = false; // Get ...
JavaScript
0
@@ -2312,16 +2312,21 @@ ntHeight + * -1 ;%0A %7D,%0A%7D
19c71e5e10957520845c940ede630343699637fa
Migrate leaflet.mesure
mapentity/static/mapentity/leaflet-measure.js
mapentity/static/mapentity/leaflet-measure.js
L.Polyline.Measure = L.Draw.Polyline.extend({ addHooks: function() { L.Handler.Draw.prototype.addHooks.call(this); if (this._map) { this._markerGroup = new L.LayerGroup(); this._map.addLayer(this._markerGroup); this._markers = []; this._map.on('click'...
JavaScript
0.000001
@@ -72,36 +72,37 @@ %7B%0A L. -Handler.Draw +Draw.Polyline .prototype.a @@ -433,20 +433,21 @@ L. -Handler.Draw +Draw.Polyline .pro @@ -1301,32 +1301,61 @@ _cleanUpShape(); +%0A this._clearGuides(); %0A%0A this._ @@ -1428,37 +1428,14 @@ Move -);%0A this._clearGuides( +, this );%0A ...
ae0e0ebcbee10fa883685c92ac1aba7f332a9dee
enable mux test cases
benchmark/cases/transports/transports.bench.js
benchmark/cases/transports/transports.bench.js
const path = require('path'); const clonedeep = require('lodash.clonedeep'); const json = { "service": "tcp://127.0.0.1:1081?forward=127.0.0.1:1083", "server": { "service": "", "key": "secret", "presets": [ { "name": "ss-base" }, ], "tls_cert": path.join(__dirname, "cert.pem"), "tls_k...
JavaScript
0.000001
@@ -665,19 +665,16 @@ p'),%0A - // 'tcp + @@ -731,19 +731,16 @@ s'),%0A - // 'tls + @@ -791,27 +791,24 @@ e('ws'),%0A - // 'ws + mux': @@ -859,19 +859,16 @@ s'),%0A - // 'wss +
bdf5f93368f0b4fa018270e245592c6c90c832c5
update blueprint server config
blueprints/ember-eureka/files/config/server.js
blueprints/ember-eureka/files/config/server.js
/* jshint node: true */ var pkg = require('../package.json'); var requireDir = require('require-dir'); var dockerLinks = require('docker-links'); var links = dockerLinks.parseLinks(process.env); var internals = { port: 8888, uploadDirectory: './uploads', endpoint: 'http://<path/to/sparqlendpoint>' // TOD...
JavaScript
0
@@ -217,109 +217,454 @@ -port: 8888,%0A uploadDirectory: './uploads +database: %7B%0A config: %7B%0A engine: 'virtuoso ',%0A + -endpoint: 'http://%3Cpath/to/sparqlendpoint%3E' // TODO + graphUri: 'http://%3C%25= dasherizedPackageName %25%3E.com',%0A port: 8890,%0A ...
082d1a712e3bddb02c226b6ddf947d53764e7105
Refactor to resolve promise
addon/components/course/objective-list.js
addon/components/course/objective-list.js
import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; import { restartableTask } from 'ember-concurrency-decorators'; import { map } from 'rsvp'; import { inject as service } from '@ember/service'; import { use } from 'ember-could-get-used-to-this'; import AsyncProcess from '../../cla...
JavaScript
0
@@ -955,34 +955,287 @@ @use co -hortObjectiveAsync +urseCohortsAsync = new ResolveAsyncValue(() =%3E %5B%0A this.args.course.cohorts,%0A %5D);%0A%0A get courseCohorts() %7B%0A if (this.load.lastSuccessful && this.courseCohortsAsync) %7B%0A return this.courseCohortsAsync.toArray();%0A %7D%0A%0A retu...
f5ca0d98f734215a6258793cbdc991cec515b2f7
add data-title and stroke to arcs
addon/components/plaid-donut/component.js
addon/components/plaid-donut/component.js
import { arc, pie } from 'd3-shape'; import Ember from 'ember'; import layout from './template'; import GroupElement from '../../mixins/group-element'; import { interpolateCool } from 'd3-scale'; const { Component, computed, get, getProperties, run, run: { scheduleOnce } } = Ember; const DonutComponent =...
JavaScript
0.000001
@@ -2113,16 +2113,64 @@ 'arc')%0A + .attr('data-title', (d) =%3E d.data%5B0%5D)%0A @@ -2509,24 +2509,76 @@ d.data%5B0%5D))%0A + .attr('stroke', (d) =%3E colorScale(d.data%5B0%5D))%0A .attr(
a826651b7d1e0258e7e67f167f6deadc91ec318c
Fix a typo in code documentation
addon/mixins/flexberry-file-controller.js
addon/mixins/flexberry-file-controller.js
/** * @module ember-flexberry */ import Ember from 'ember'; /** * Mixin for {{#crossLink "DS.Controller"}}Controller{{/crossLink}} to support * opening current selected image at flexberry-file at modal window. * * @class Controller * @extends Ember.Mixin * @public */ export default Ember.Mixin.create({ /**...
JavaScript
0.999887
@@ -222,16 +222,29 @@ @class +FlexberryFile Controll
734cb50c1997fe3e461a0bd325cf5503a4431ee1
Fix paths for CKEditor config
view/src/main/resources/static/js/configureCkEditor.js
view/src/main/resources/static/js/configureCkEditor.js
// CKEditor incompatibility with jquery and bootstrap $.fn.modal.Constructor.prototype.enforceFocus = function() { modal_this = this; $(document).on('focusin.modal', function (e) { if (modal_this.$element[0] !== e.target && !modal_this.$element.has(e.target).length && !$(e.target.parentN...
JavaScript
0
@@ -3261,31 +3261,23 @@ onfig: ' -$%7B_libJsFolder%7D +/js/lib /newcked @@ -5450,23 +5450,15 @@ ' -$%7B_libJsFolder%7D +/js/lib /new
bef6ef251a08ba27cfdf99b732901c460ccee72f
call AirTable Post HelperService test
Septa/Controllers/MainController.js
Septa/Controllers/MainController.js
(function () { "use strict"; var MainController = function ($scope, HelperService, TrainViewFactory, $http, $timeout) { var trainno = '1111'; //temp value $scope.ThisTrain = null; var TrainIsLate = false; //default value $scope.isLoading = true; //default value var lig...
JavaScript
0
@@ -2942,17 +2942,8 @@ - var XX = Hel @@ -3011,24 +3011,8 @@ -console.log(XX); %0A
0051fdb77b92d88bff9ab2b40895e2878a22479e
Fix URLs in video specs
Specs/Core/VideoSynchronizerSpec.js
Specs/Core/VideoSynchronizerSpec.js
defineSuite([ 'Core/VideoSynchronizer', 'Core/Clock', 'Core/FeatureDetection', 'Core/Iso8601', 'Core/JulianDate', 'Core/Math', 'Specs/pollToPromise' ], function( VideoSynchronizer, Clock, FeatureDetection, Iso8601, Julia...
JavaScript
0.999596
@@ -675,33 +675,32 @@ tribute('src', ' -. /Data/Videos/big @@ -725,32 +725,32 @@ r-small.webm');%0A + source.s @@ -901,33 +901,32 @@ tribute('src', ' -. /Data/Videos/big @@ -1089,32 +1089,32 @@ ment('source');%0A + source.s @@ -1133,17 +1133,16 @@ 'src', ' -. /Data/Vi
4a3645b3710755967f0797a37c9bbacc20c63763
Add API to unfollow blogs.
api/blogs/follow_blog_by_mail_resource.js
api/blogs/follow_blog_by_mail_resource.js
var resources = require('jest'), util = require('util'), models = require('../../models'), common = require('./../common'), async = require('async'), _ = require('underscore'); var follow_blog_by_mail_resource = module.exports = common.GamificationMongooseResource.extend({ init: function(){ ...
JavaScript
0
@@ -853,38 +853,260 @@ );%0A%0A - +%09%09if (req.body.unfollow) %7B%0A%09%09%09// Unfollow request%0A%09%09%09 if + (blog) + %7B%0A - +%09%09%09%09blog.remove(function(err, res)%7B%0A%09%09%09%09%09if(!err)%7B%0A%09%09%09%09%09%09object.save(function(err, obj)%7B%0A%09%09%09%09%09%09%09obj.is_...
fff8b6b567038580627189e7d35d69d14dfdff56
Add example of custom command query
modules/phenyl-api-explorer/examples/index.js
modules/phenyl-api-explorer/examples/index.js
// @flow import http from 'http' import PhenylRestApi from 'phenyl-rest-api' import { createEntityClient } from 'phenyl-memory-db' import { StandardUserDefinition, StandardEntityDefinition } from 'phenyl-standards' import PhenylHttpServer from 'phenyl-http-server' import PhenylApiExplorer from '../src/PhenylApiExplorer...
JavaScript
0.000007
@@ -328,16 +328,18 @@ t type %7B +%0A Session @@ -339,16 +339,18 @@ Session, +%0A Request @@ -353,17 +353,146 @@ uestData - +,%0A CustomCommand,%0A CustomCommandDefinition,%0A CustomCommandResult,%0A CustomQuery,%0A CustomQueryDefinition,%0A CustomQueryResult,%0A %7D from ' @@ -1274,79 +1274,1485 @@ %...